Whamcloud - gitweb
LU-13717 sec: support encrypted files handling in pfsck mode
[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 ARCHIVE_LIB
710 MAGIC_LIB
711 SOCKET_LIB
712 SIZEOF_TIME_T
713 SIZEOF_OFF_T
714 SIZEOF_LONG_LONG
715 SIZEOF_LONG
716 SIZEOF_INT
717 SIZEOF_SHORT
718 DD
719 BUILD_CC
720 MAKEINFO
721 STRIP
722 RANLIB
723 AR
724 LDCONFIG
725 PERL
726 AWK
727 CHMOD
728 RM
729 CP
730 MV
731 LN_S
732 mkdir_p
733 LN
734 ifNotGNUmake
735 ifGNUmake
736 BINARY_TYPE
737 POSUB
738 LTLIBINTL
739 LIBINTL
740 INTLLIBS
741 LTLIBICONV
742 LIBICONV
743 INTL_MACOSX_LIBS
744 XGETTEXT_EXTRA_OPTIONS
745 MSGMERGE_FOR_MSGFMT_OPTION
746 MSGMERGE
747 XGETTEXT_015
748 XGETTEXT
749 GMSGFMT_015
750 GMSGFMT
751 MSGFMT
752 GETTEXT_MACRO_VERSION
753 USE_NLS
754 MKDIR_P
755 INSTALL_DATA
756 INSTALL_SCRIPT
757 INSTALL_PROGRAM
758 SET_MAKE
759 VERSION
760 PACKAGE
761 GETTEXT_PACKAGE
762 TDB_MAN_COMMENT
763 TDB_CMT
764 UUIDD_CMT
765 PTHREAD_CFLAGS
766 PTHREAD_LIBS
767 PTHREAD_CXX
768 PTHREAD_CC
769 ax_pthread_config
770 EGREP
771 GREP
772 SED
773 E2INITRD_MAN
774 E2INITRD_PROG
775 FSCK_MAN
776 FSCK_PROG
777 DEFRAG_CMT
778 RESIZER_CMT
779 IMAGER_CMT
780 DEBUGFS_CMT
781 SUBSET_CMT
782 ALL_CMT
783 BLKID_CMT
784 DEPPROFILED_LIBBLKID
785 PROFILED_LIBBLKID
786 DEPSTATIC_LIBBLKID
787 STATIC_LIBBLKID
788 DEPLIBBLKID
789 LIBBLKID
790 UUID_CMT
791 DEPPROFILED_LIBUUID
792 PROFILED_LIBUUID
793 DEPSTATIC_LIBUUID
794 STATIC_LIBUUID
795 DEPLIBUUID
796 LIBUUID
797 PKG_CONFIG_LIBDIR
798 PKG_CONFIG_PATH
799 PKG_CONFIG
800 DEV_FEATURES_CMT
801 TEST_IO_CMT
802 PRIVATE_LIBS_CMT
803 LDFLAG_DYNAMIC
804 PROFILED_LIB_EXT
805 STATIC_LIB_EXT
806 LIB_EXT
807 PROFILE_CMT
808 BSDLIB_CMT
809 ELF_CMT
810 Q
811 ES
812 E
813 LINK_BUILD_FLAGS
814 SYMLINK_RELATIVE
815 LINK_INSTALL_FLAGS
816 MAINTAINER_CMT
817 CPP
818 RDYNAMIC
819 DLOPEN_LIB
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 E2FSPROGS_DATE
829 E2FSPROGS_PKGVER
830 E2FSPROGS_PKGREL
831 E2FSPROGS_VERSION
832 E2FSPROGS_DAY
833 E2FSPROGS_MONTH
834 E2FSPROGS_YEAR
835 OBJEXT
836 EXEEXT
837 ac_ct_CC
838 CPPFLAGS
839 LDFLAGS
840 CFLAGS
841 CC
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 runstatedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL'
881 ac_subst_files='MCONFIG
882 MAKEFILE_ELF
883 MAKEFILE_BSDLIB
884 MAKEFILE_PROFILE
885 MAKEFILE_LIBRARY
886 ASM_TYPES_HEADER
887 PUBLIC_CONFIG_HEADER'
888 ac_user_opts='
889 enable_option_checking
890 with_diet_libc
891 with_cc
892 with_ccopts
893 with_ldopts
894 with_root_prefix
895 enable_maintainer_mode
896 enable_symlink_install
897 enable_relative_symlinks
898 enable_symlink_relative_symlinks
899 enable_symlink_build
900 enable_verbose_makecmds
901 enable_elf_shlibs
902 enable_bsd_shlibs
903 enable_profile
904 enable_gcov
905 enable_hardening
906 enable_jbd_debug
907 enable_blkid_debug
908 enable_testio_debug
909 enable_developer_features
910 enable_libuuid
911 enable_libblkid
912 enable_subset
913 enable_backtrace
914 enable_debugfs
915 enable_imager
916 enable_resizer
917 enable_defrag
918 enable_fsck
919 enable_e2initrd_helper
920 enable_tls
921 with_pthread
922 enable_uuidd
923 enable_mmp
924 enable_tdb
925 enable_bmap_stats
926 enable_bmap_stats_ops
927 enable_nls
928 with_gnu_ld
929 enable_rpath
930 with_libiconv_prefix
931 with_libintl_prefix
932 enable_largefile
933 with_libarchive
934 enable_fuse2fs
935 enable_lto
936 enable_ubsan
937 enable_addrsan
938 enable_threadsan
939 enable_fuzzing
940 with_multiarch
941 with_udev_rules_dir
942 with_crond_dir
943 with_systemd_unit_dir
944 '
945       ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
953 CPP
954 PKG_CONFIG
955 PKG_CONFIG_PATH
956 PKG_CONFIG_LIBDIR
957 fuse3_CFLAGS
958 fuse3_LIBS
959 CXX
960 CXXFLAGS
961 CCC
962 udev_CFLAGS
963 udev_LIBS
964 systemd_CFLAGS
965 systemd_LIBS'
966
967
968 # Initialize some variables set by options.
969 ac_init_help=
970 ac_init_version=false
971 ac_unrecognized_opts=
972 ac_unrecognized_sep=
973 # The variables have the same names as the options, with
974 # dashes changed to underlines.
975 cache_file=/dev/null
976 exec_prefix=NONE
977 no_create=
978 no_recursion=
979 prefix=NONE
980 program_prefix=NONE
981 program_suffix=NONE
982 program_transform_name=s,x,x,
983 silent=
984 site=
985 srcdir=
986 verbose=
987 x_includes=NONE
988 x_libraries=NONE
989
990 # Installation directory options.
991 # These are left unexpanded so users can "make install exec_prefix=/foo"
992 # and all the variables that are supposed to be based on exec_prefix
993 # by default will actually change.
994 # Use braces instead of parens because sh, perl, etc. also accept them.
995 # (The list follows the same order as the GNU Coding Standards.)
996 bindir='${exec_prefix}/bin'
997 sbindir='${exec_prefix}/sbin'
998 libexecdir='${exec_prefix}/libexec'
999 datarootdir='${prefix}/share'
1000 datadir='${datarootdir}'
1001 sysconfdir='${prefix}/etc'
1002 sharedstatedir='${prefix}/com'
1003 localstatedir='${prefix}/var'
1004 runstatedir='${localstatedir}/run'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE}'
1008 infodir='${datarootdir}/info'
1009 htmldir='${docdir}'
1010 dvidir='${docdir}'
1011 pdfdir='${docdir}'
1012 psdir='${docdir}'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1016
1017 ac_prev=
1018 ac_dashdash=
1019 for ac_option
1020 do
1021   # If the previous option needs an argument, assign it.
1022   if test -n "$ac_prev"; then
1023     eval $ac_prev=\$ac_option
1024     ac_prev=
1025     continue
1026   fi
1027
1028   case $ac_option in
1029   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030   *=)   ac_optarg= ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   case $ac_dashdash$ac_option in
1035   --)
1036     ac_dashdash=yes ;;
1037
1038   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1039     ac_prev=bindir ;;
1040   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1041     bindir=$ac_optarg ;;
1042
1043   -build | --build | --buil | --bui | --bu)
1044     ac_prev=build_alias ;;
1045   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1046     build_alias=$ac_optarg ;;
1047
1048   -cache-file | --cache-file | --cache-fil | --cache-fi \
1049   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1050     ac_prev=cache_file ;;
1051   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1052   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1053     cache_file=$ac_optarg ;;
1054
1055   --config-cache | -C)
1056     cache_file=config.cache ;;
1057
1058   -datadir | --datadir | --datadi | --datad)
1059     ac_prev=datadir ;;
1060   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1061     datadir=$ac_optarg ;;
1062
1063   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1064   | --dataroo | --dataro | --datar)
1065     ac_prev=datarootdir ;;
1066   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1067   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1068     datarootdir=$ac_optarg ;;
1069
1070   -disable-* | --disable-*)
1071     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1075     ac_useropt_orig=$ac_useropt
1076     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1077     case $ac_user_opts in
1078       *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1082          ac_unrecognized_sep=', ';;
1083     esac
1084     eval enable_$ac_useropt=no ;;
1085
1086   -docdir | --docdir | --docdi | --doc | --do)
1087     ac_prev=docdir ;;
1088   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089     docdir=$ac_optarg ;;
1090
1091   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092     ac_prev=dvidir ;;
1093   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094     dvidir=$ac_optarg ;;
1095
1096   -enable-* | --enable-*)
1097     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1101     ac_useropt_orig=$ac_useropt
1102     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1103     case $ac_user_opts in
1104       *"
1105 "enable_$ac_useropt"
1106 "*) ;;
1107       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108          ac_unrecognized_sep=', ';;
1109     esac
1110     eval enable_$ac_useropt=\$ac_optarg ;;
1111
1112   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114   | --exec | --exe | --ex)
1115     ac_prev=exec_prefix ;;
1116   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118   | --exec=* | --exe=* | --ex=*)
1119     exec_prefix=$ac_optarg ;;
1120
1121   -gas | --gas | --ga | --g)
1122     # Obsolete; use --with-gas.
1123     with_gas=yes ;;
1124
1125   -help | --help | --hel | --he | -h)
1126     ac_init_help=long ;;
1127   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128     ac_init_help=recursive ;;
1129   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130     ac_init_help=short ;;
1131
1132   -host | --host | --hos | --ho)
1133     ac_prev=host_alias ;;
1134   -host=* | --host=* | --hos=* | --ho=*)
1135     host_alias=$ac_optarg ;;
1136
1137   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138     ac_prev=htmldir ;;
1139   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140   | --ht=*)
1141     htmldir=$ac_optarg ;;
1142
1143   -includedir | --includedir | --includedi | --included | --include \
1144   | --includ | --inclu | --incl | --inc)
1145     ac_prev=includedir ;;
1146   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147   | --includ=* | --inclu=* | --incl=* | --inc=*)
1148     includedir=$ac_optarg ;;
1149
1150   -infodir | --infodir | --infodi | --infod | --info | --inf)
1151     ac_prev=infodir ;;
1152   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153     infodir=$ac_optarg ;;
1154
1155   -libdir | --libdir | --libdi | --libd)
1156     ac_prev=libdir ;;
1157   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158     libdir=$ac_optarg ;;
1159
1160   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161   | --libexe | --libex | --libe)
1162     ac_prev=libexecdir ;;
1163   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164   | --libexe=* | --libex=* | --libe=*)
1165     libexecdir=$ac_optarg ;;
1166
1167   -localedir | --localedir | --localedi | --localed | --locale)
1168     ac_prev=localedir ;;
1169   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170     localedir=$ac_optarg ;;
1171
1172   -localstatedir | --localstatedir | --localstatedi | --localstated \
1173   | --localstate | --localstat | --localsta | --localst | --locals)
1174     ac_prev=localstatedir ;;
1175   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177     localstatedir=$ac_optarg ;;
1178
1179   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180     ac_prev=mandir ;;
1181   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182     mandir=$ac_optarg ;;
1183
1184   -nfp | --nfp | --nf)
1185     # Obsolete; use --without-fp.
1186     with_fp=no ;;
1187
1188   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189   | --no-cr | --no-c | -n)
1190     no_create=yes ;;
1191
1192   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194     no_recursion=yes ;;
1195
1196   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198   | --oldin | --oldi | --old | --ol | --o)
1199     ac_prev=oldincludedir ;;
1200   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203     oldincludedir=$ac_optarg ;;
1204
1205   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206     ac_prev=prefix ;;
1207   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208     prefix=$ac_optarg ;;
1209
1210   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211   | --program-pre | --program-pr | --program-p)
1212     ac_prev=program_prefix ;;
1213   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215     program_prefix=$ac_optarg ;;
1216
1217   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218   | --program-suf | --program-su | --program-s)
1219     ac_prev=program_suffix ;;
1220   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222     program_suffix=$ac_optarg ;;
1223
1224   -program-transform-name | --program-transform-name \
1225   | --program-transform-nam | --program-transform-na \
1226   | --program-transform-n | --program-transform- \
1227   | --program-transform | --program-transfor \
1228   | --program-transfo | --program-transf \
1229   | --program-trans | --program-tran \
1230   | --progr-tra | --program-tr | --program-t)
1231     ac_prev=program_transform_name ;;
1232   -program-transform-name=* | --program-transform-name=* \
1233   | --program-transform-nam=* | --program-transform-na=* \
1234   | --program-transform-n=* | --program-transform-=* \
1235   | --program-transform=* | --program-transfor=* \
1236   | --program-transfo=* | --program-transf=* \
1237   | --program-trans=* | --program-tran=* \
1238   | --progr-tra=* | --program-tr=* | --program-t=*)
1239     program_transform_name=$ac_optarg ;;
1240
1241   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242     ac_prev=pdfdir ;;
1243   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244     pdfdir=$ac_optarg ;;
1245
1246   -psdir | --psdir | --psdi | --psd | --ps)
1247     ac_prev=psdir ;;
1248   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249     psdir=$ac_optarg ;;
1250
1251   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252   | -silent | --silent | --silen | --sile | --sil)
1253     silent=yes ;;
1254
1255   -runstatedir | --runstatedir | --runstatedi | --runstated \
1256   | --runstate | --runstat | --runsta | --runst | --runs \
1257   | --run | --ru | --r)
1258     ac_prev=runstatedir ;;
1259   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1260   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1261   | --run=* | --ru=* | --r=*)
1262     runstatedir=$ac_optarg ;;
1263
1264   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265     ac_prev=sbindir ;;
1266   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267   | --sbi=* | --sb=*)
1268     sbindir=$ac_optarg ;;
1269
1270   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272   | --sharedst | --shareds | --shared | --share | --shar \
1273   | --sha | --sh)
1274     ac_prev=sharedstatedir ;;
1275   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278   | --sha=* | --sh=*)
1279     sharedstatedir=$ac_optarg ;;
1280
1281   -site | --site | --sit)
1282     ac_prev=site ;;
1283   -site=* | --site=* | --sit=*)
1284     site=$ac_optarg ;;
1285
1286   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287     ac_prev=srcdir ;;
1288   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289     srcdir=$ac_optarg ;;
1290
1291   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292   | --syscon | --sysco | --sysc | --sys | --sy)
1293     ac_prev=sysconfdir ;;
1294   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296     sysconfdir=$ac_optarg ;;
1297
1298   -target | --target | --targe | --targ | --tar | --ta | --t)
1299     ac_prev=target_alias ;;
1300   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301     target_alias=$ac_optarg ;;
1302
1303   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304     verbose=yes ;;
1305
1306   -version | --version | --versio | --versi | --vers | -V)
1307     ac_init_version=: ;;
1308
1309   -with-* | --with-*)
1310     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311     # Reject names that are not valid shell variable names.
1312     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313       as_fn_error $? "invalid package name: \`$ac_useropt'"
1314     ac_useropt_orig=$ac_useropt
1315     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1316     case $ac_user_opts in
1317       *"
1318 "with_$ac_useropt"
1319 "*) ;;
1320       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321          ac_unrecognized_sep=', ';;
1322     esac
1323     eval with_$ac_useropt=\$ac_optarg ;;
1324
1325   -without-* | --without-*)
1326     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327     # Reject names that are not valid shell variable names.
1328     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329       as_fn_error $? "invalid package name: \`$ac_useropt'"
1330     ac_useropt_orig=$ac_useropt
1331     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1332     case $ac_user_opts in
1333       *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337          ac_unrecognized_sep=', ';;
1338     esac
1339     eval with_$ac_useropt=no ;;
1340
1341   --x)
1342     # Obsolete; use --with-x.
1343     with_x=yes ;;
1344
1345   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346   | --x-incl | --x-inc | --x-in | --x-i)
1347     ac_prev=x_includes ;;
1348   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350     x_includes=$ac_optarg ;;
1351
1352   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354     ac_prev=x_libraries ;;
1355   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357     x_libraries=$ac_optarg ;;
1358
1359   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information"
1361     ;;
1362
1363   *=*)
1364     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365     # Reject names that are not valid shell variable names.
1366     case $ac_envvar in #(
1367       '' | [0-9]* | *[!_$as_cr_alnum]* )
1368       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1369     esac
1370     eval $ac_envvar=\$ac_optarg
1371     export $ac_envvar ;;
1372
1373   *)
1374     # FIXME: should be removed in autoconf 3.0.
1375     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1376     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1378     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1379     ;;
1380
1381   esac
1382 done
1383
1384 if test -n "$ac_prev"; then
1385   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386   as_fn_error $? "missing argument to $ac_option"
1387 fi
1388
1389 if test -n "$ac_unrecognized_opts"; then
1390   case $enable_option_checking in
1391     no) ;;
1392     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394   esac
1395 fi
1396
1397 # Check all directory arguments for consistency.
1398 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399                 datadir sysconfdir sharedstatedir localstatedir includedir \
1400                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401                 libdir localedir mandir runstatedir
1402 do
1403   eval ac_val=\$$ac_var
1404   # Remove trailing slashes.
1405   case $ac_val in
1406     */ )
1407       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408       eval $ac_var=\$ac_val;;
1409   esac
1410   # Be sure to have absolute directory names.
1411   case $ac_val in
1412     [\\/$]* | ?:[\\/]* )  continue;;
1413     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414   esac
1415   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1416 done
1417
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1424
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427   if test "x$build_alias" = x; then
1428     cross_compiling=maybe
1429   elif test "x$build_alias" != "x$host_alias"; then
1430     cross_compiling=yes
1431   fi
1432 fi
1433
1434 ac_tool_prefix=
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437 test "$silent" = yes && exec 6>/dev/null
1438
1439
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443   as_fn_error $? "working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445   as_fn_error $? "pwd does not report name of working directory"
1446
1447
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450   ac_srcdir_defaulted=yes
1451   # Try the directory containing this script, then the parent directory.
1452   ac_confdir=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454          X"$as_myself" : 'X\(//\)[^/]' \| \
1455          X"$as_myself" : 'X\(//\)$' \| \
1456          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 printf "%s\n" X"$as_myself" |
1458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\/\)[^/].*/{
1463             s//\1/
1464             q
1465           }
1466           /^X\(\/\/\)$/{
1467             s//\1/
1468             q
1469           }
1470           /^X\(\/\).*/{
1471             s//\1/
1472             q
1473           }
1474           s/.*/./; q'`
1475   srcdir=$ac_confdir
1476   if test ! -r "$srcdir/$ac_unique_file"; then
1477     srcdir=..
1478   fi
1479 else
1480   ac_srcdir_defaulted=no
1481 fi
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1485 fi
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489         pwd)`
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492   srcdir=.
1493 fi
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1497 case $srcdir in
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 esac
1500 for ac_var in $ac_precious_vars; do
1501   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502   eval ac_env_${ac_var}_value=\$${ac_var}
1503   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505 done
1506
1507 #
1508 # Report the --help message.
1509 #
1510 if test "$ac_init_help" = "long"; then
1511   # Omit some internal or obsolete options to make the list less imposing.
1512   # This message is too long to be a string in the A/UX 3.1 sh.
1513   cat <<_ACEOF
1514 \`configure' configures this package to adapt to many kinds of systems.
1515
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE.  See below for descriptions of some of the useful variables.
1520
1521 Defaults for the options are specified in brackets.
1522
1523 Configuration:
1524   -h, --help              display this help and exit
1525       --help=short        display options specific to this package
1526       --help=recursive    display the short help of all the included packages
1527   -V, --version           display version information and exit
1528   -q, --quiet, --silent   do not print \`checking ...' messages
1529       --cache-file=FILE   cache test results in FILE [disabled]
1530   -C, --config-cache      alias for \`--cache-file=config.cache'
1531   -n, --no-create         do not create output files
1532       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1533
1534 Installation directories:
1535   --prefix=PREFIX         install architecture-independent files in PREFIX
1536                           [$ac_default_prefix]
1537   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1538                           [PREFIX]
1539
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1544
1545 For better control, use the options below.
1546
1547 Fine tuning of the installation directories:
1548   --bindir=DIR            user executables [EPREFIX/bin]
1549   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1550   --libexecdir=DIR        program executables [EPREFIX/libexec]
1551   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1552   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1553   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1554   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1555   --libdir=DIR            object code libraries [EPREFIX/lib]
1556   --includedir=DIR        C header files [PREFIX/include]
1557   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1558   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1559   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1560   --infodir=DIR           info documentation [DATAROOTDIR/info]
1561   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1562   --mandir=DIR            man documentation [DATAROOTDIR/man]
1563   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1564   --htmldir=DIR           html documentation [DOCDIR]
1565   --dvidir=DIR            dvi documentation [DOCDIR]
1566   --pdfdir=DIR            pdf documentation [DOCDIR]
1567   --psdir=DIR             ps documentation [DOCDIR]
1568 _ACEOF
1569
1570   cat <<\_ACEOF
1571
1572 System types:
1573   --build=BUILD     configure for building on BUILD [guessed]
1574   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1575 _ACEOF
1576 fi
1577
1578 if test -n "$ac_init_help"; then
1579
1580   cat <<\_ACEOF
1581
1582 Optional Features:
1583   --disable-option-checking  ignore unrecognized --enable/--with options
1584   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1585   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1586   --enable-maintainer-mode
1587                           enable makefile rules useful for maintainers
1588   --enable-symlink-install
1589                           use symlinks when installing instead of hard links
1590   --enable-relative-symlinks
1591                           use relative symlinks when installing
1592
1593   --enable-symlink-build  use symlinks while building instead of hard links
1594   --enable-verbose-makecmds
1595                           enable verbose make command output
1596   --enable-elf-shlibs     select ELF shared libraries
1597   --enable-bsd-shlibs     select BSD shared libraries
1598   --enable-profile        build profiling libraries
1599   --enable-gcov           build for coverage testing using gcov
1600   --enable-hardening      build with hardening flags such as fortify
1601   --enable-jbd-debug      enable journal debugging
1602   --enable-blkid-debug    enable blkid debugging
1603   --disable-testio-debug  disable the use of the test I/O manager for
1604                           debugging
1605   --enable-developer-features
1606                           enable features for use by ext4 developers
1607   --enable-libuuid        build and use private uuid library
1608   --enable-libblkid       build and use private blkid library
1609   --enable-subset         enable subset-only build
1610   --disable-backtrace     disable use backtrace
1611   --disable-debugfs       disable support of debugfs program
1612   --disable-imager        disable support of e2image program
1613   --disable-resizer       disable support of e2resize program
1614   --disable-defrag        disable support of e4defrag program
1615   --enable-fsck           build fsck wrapper program
1616   --enable-e2initrd-helper
1617                           build e2initrd-helper program
1618   --disable-tls           disable use of thread local support
1619   --disable-uuidd         disable building the uuid daemon
1620   --disable-mmp           disable support mmp, Multi Mount Protection
1621   --disable-tdb           disable tdb support
1622   --disable-bmap-stats    disable collection of bitmap stats
1623   --enable-bmap-stats-ops enable collection of additional bitmap stats
1624   --disable-nls           do not use Native Language Support
1625   --disable-rpath         do not hardcode runtime library paths
1626   --disable-largefile     omit support for large files
1627   --disable-fuse2fs       do not build fuse2fs
1628   --enable-lto            enable link time optimization
1629   --enable-ubsan          enable undefined behavior sanitizer
1630   --enable-addrsan        enable address sanitizer
1631   --enable-threadsan      enable thread sanitizer
1632   --enable-fuzzing        enable fuzzing sanitizer
1633
1634 Optional Packages:
1635   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1636   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1637   --with-diet-libc        use diet libc
1638   --with-cc               no longer supported, use CC= instead
1639   --with-ccopts           no longer supported, use CFLAGS= instead
1640   --with-ldopts           no longer supported, use LDFLAGS= instead
1641   --with-root-prefix=PREFIX
1642                           override prefix variable for files to be placed in
1643                           the root
1644   --without-pthread       disable use of pthread support
1645   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1646   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1647   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1648   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1649   --without-libintl-prefix     don't search for libintl in includedir and libdir
1650   --without-libarchive    disable use of libarchive
1651   --with-multiarch=ARCH   specify the multiarch triplet
1652   --with-udev-rules-dir[=DIR]
1653                           Install udev rules into DIR.
1654   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1655   --with-systemd-unit-dir[=DIR]
1656                           Install systemd system units into DIR.
1657
1658 Some influential environment variables:
1659   CC          C compiler command
1660   CFLAGS      C compiler flags
1661   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1662               nonstandard directory <lib dir>
1663   LIBS        libraries to pass to the linker, e.g. -l<library>
1664   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665               you have headers in a nonstandard directory <include dir>
1666   CPP         C preprocessor
1667   PKG_CONFIG  path to pkg-config utility
1668   PKG_CONFIG_PATH
1669               directories to add to pkg-config's search path
1670   PKG_CONFIG_LIBDIR
1671               path overriding pkg-config's built-in search path
1672   CXX         C++ compiler command
1673   CXXFLAGS    C++ compiler flags
1674   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1675   udev_LIBS   linker flags for udev, overriding pkg-config
1676   systemd_CFLAGS
1677               C compiler flags for systemd, overriding pkg-config
1678   systemd_LIBS
1679               linker flags for systemd, overriding pkg-config
1680
1681 Use these variables to override the choices made by `configure' or to help
1682 it to find libraries and programs with nonstandard names/locations.
1683
1684 Report bugs to the package provider.
1685 _ACEOF
1686 ac_status=$?
1687 fi
1688
1689 if test "$ac_init_help" = "recursive"; then
1690   # If there are subdirs, report their specific --help.
1691   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692     test -d "$ac_dir" ||
1693       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1694       continue
1695     ac_builddir=.
1696
1697 case "$ac_dir" in
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 *)
1700   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1701   # A ".." for each directory in $ac_dir_suffix.
1702   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703   case $ac_top_builddir_sub in
1704   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706   esac ;;
1707 esac
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1712
1713 case $srcdir in
1714   .)  # We are building in place.
1715     ac_srcdir=.
1716     ac_top_srcdir=$ac_top_builddir_sub
1717     ac_abs_top_srcdir=$ac_pwd ;;
1718   [\\/]* | ?:[\\/]* )  # Absolute name.
1719     ac_srcdir=$srcdir$ac_dir_suffix;
1720     ac_top_srcdir=$srcdir
1721     ac_abs_top_srcdir=$srcdir ;;
1722   *) # Relative name.
1723     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724     ac_top_srcdir=$ac_top_build_prefix$srcdir
1725     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 esac
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1728
1729     cd "$ac_dir" || { ac_status=$?; continue; }
1730     # Check for configure.gnu first; this name is used for a wrapper for
1731     # Metaconfig's "Configure" on case-insensitive file systems.
1732     if test -f "$ac_srcdir/configure.gnu"; then
1733       echo &&
1734       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735     elif test -f "$ac_srcdir/configure"; then
1736       echo &&
1737       $SHELL "$ac_srcdir/configure" --help=recursive
1738     else
1739       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740     fi || ac_status=$?
1741     cd "$ac_pwd" || { ac_status=$?; break; }
1742   done
1743 fi
1744
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1747   cat <<\_ACEOF
1748 configure
1749 generated by GNU Autoconf 2.71
1750
1751 Copyright (C) 2021 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755   exit
1756 fi
1757
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1761
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   rm -f conftest.$ac_objext conftest.beam
1769   if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 printf "%s\n" "$ac_try_echo"; } >&5
1776   (eval "$ac_compile") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && {
1785          test -z "$ac_c_werror_flag" ||
1786          test ! -s conftest.err
1787        } && test -s conftest.$ac_objext
1788 then :
1789   ac_retval=0
1790 else $as_nop
1791   printf "%s\n" "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794         ac_retval=1
1795 fi
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797   as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_compile
1800
1801 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists and can be compiled using the include files in
1804 # INCLUDES, setting the cache variable VAR accordingly.
1805 ac_fn_c_check_header_compile ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 printf %s "checking for $2... " >&6; }
1810 if eval test \${$3+y}
1811 then :
1812   printf %s "(cached) " >&6
1813 else $as_nop
1814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h.  */
1816 $4
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"
1820 then :
1821   eval "$3=yes"
1822 else $as_nop
1823   eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 printf "%s\n" "$ac_res" >&6; }
1830   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832 } # ac_fn_c_check_header_compile
1833
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_link ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1841   if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844   *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 printf "%s\n" "$ac_try_echo"; } >&5
1848   (eval "$ac_link") 2>conftest.err
1849   ac_status=$?
1850   if test -s conftest.err; then
1851     grep -v '^ *+' conftest.err >conftest.er1
1852     cat conftest.er1 >&5
1853     mv -f conftest.er1 conftest.err
1854   fi
1855   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856   test $ac_status = 0; } && {
1857          test -z "$ac_c_werror_flag" ||
1858          test ! -s conftest.err
1859        } && test -s conftest$ac_exeext && {
1860          test "$cross_compiling" = yes ||
1861          test -x conftest$ac_exeext
1862        }
1863 then :
1864   ac_retval=0
1865 else $as_nop
1866   printf "%s\n" "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869         ac_retval=1
1870 fi
1871   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873   # interfere with the next link command; also delete a directory that is
1874   # left behind by Apple's compiler.  We do this before executing the actions.
1875   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877   as_fn_set_status $ac_retval
1878
1879 } # ac_fn_c_try_link
1880
1881 # ac_fn_c_try_cpp LINENO
1882 # ----------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_c_try_cpp ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890   *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 printf "%s\n" "$ac_try_echo"; } >&5
1894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895   ac_status=$?
1896   if test -s conftest.err; then
1897     grep -v '^ *+' conftest.err >conftest.er1
1898     cat conftest.er1 >&5
1899     mv -f conftest.er1 conftest.err
1900   fi
1901   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; } > conftest.i && {
1903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1904          test ! -s conftest.err
1905        }
1906 then :
1907   ac_retval=0
1908 else $as_nop
1909   printf "%s\n" "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912     ac_retval=1
1913 fi
1914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915   as_fn_set_status $ac_retval
1916
1917 } # ac_fn_c_try_cpp
1918
1919 # ac_fn_c_try_run LINENO
1920 # ----------------------
1921 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1922 # executables *can* be run.
1923 ac_fn_c_try_run ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929   *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 printf "%s\n" "$ac_try_echo"; } >&5
1933   (eval "$ac_link") 2>&5
1934   ac_status=$?
1935   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1937   { { case "(($ac_try" in
1938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939   *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 printf "%s\n" "$ac_try_echo"; } >&5
1943   (eval "$ac_try") 2>&5
1944   ac_status=$?
1945   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946   test $ac_status = 0; }; }
1947 then :
1948   ac_retval=0
1949 else $as_nop
1950   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1951        printf "%s\n" "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954        ac_retval=$ac_status
1955 fi
1956   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958   as_fn_set_status $ac_retval
1959
1960 } # ac_fn_c_try_run
1961
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 printf %s "checking for $2... " >&6; }
1970 if eval test \${$3+y}
1971 then :
1972   printf %s "(cached) " >&6
1973 else $as_nop
1974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1978 #define $2 innocuous_$2
1979
1980 /* System header to define __stub macros and hopefully few prototypes,
1981    which can conflict with char $2 (); below.  */
1982
1983 #include <limits.h>
1984 #undef $2
1985
1986 /* Override any GCC internal prototype to avoid an error.
1987    Use char because int might match the return type of a GCC
1988    builtin and then its argument prototype would still apply.  */
1989 #ifdef __cplusplus
1990 extern "C"
1991 #endif
1992 char $2 ();
1993 /* The GNU C library defines this for functions which it implements
1994     to always fail with ENOSYS.  Some functions are actually named
1995     something starting with __ and the normal name is an alias.  */
1996 #if defined __stub_$2 || defined __stub___$2
1997 choke me
1998 #endif
1999
2000 int
2001 main (void)
2002 {
2003 return $2 ();
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_link "$LINENO"
2009 then :
2010   eval "$3=yes"
2011 else $as_nop
2012   eval "$3=no"
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015     conftest$ac_exeext conftest.$ac_ext
2016 fi
2017 eval ac_res=\$$3
2018                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 printf "%s\n" "$ac_res" >&6; }
2020   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022 } # ac_fn_c_check_func
2023
2024 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2025 # ----------------------------------------------------
2026 # Tries to find if the field MEMBER exists in type AGGR, after including
2027 # INCLUDES, setting cache variable VAR accordingly.
2028 ac_fn_c_check_member ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2032 printf %s "checking for $2.$3... " >&6; }
2033 if eval test \${$4+y}
2034 then :
2035   printf %s "(cached) " >&6
2036 else $as_nop
2037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $5
2040 int
2041 main (void)
2042 {
2043 static $2 ac_aggr;
2044 if (ac_aggr.$3)
2045 return 0;
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"
2051 then :
2052   eval "$4=yes"
2053 else $as_nop
2054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 $5
2057 int
2058 main (void)
2059 {
2060 static $2 ac_aggr;
2061 if (sizeof ac_aggr.$3)
2062 return 0;
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"
2068 then :
2069   eval "$4=yes"
2070 else $as_nop
2071   eval "$4=no"
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2076 fi
2077 eval ac_res=\$$4
2078                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 printf "%s\n" "$ac_res" >&6; }
2080   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081
2082 } # ac_fn_c_check_member
2083
2084 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2085 # -------------------------------------------
2086 # Tests whether TYPE exists after having included INCLUDES, setting cache
2087 # variable VAR accordingly.
2088 ac_fn_c_check_type ()
2089 {
2090   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 printf %s "checking for $2... " >&6; }
2093 if eval test \${$3+y}
2094 then :
2095   printf %s "(cached) " >&6
2096 else $as_nop
2097   eval "$3=no"
2098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 $4
2101 int
2102 main (void)
2103 {
2104 if (sizeof ($2))
2105          return 0;
2106   ;
2107   return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"
2111 then :
2112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h.  */
2114 $4
2115 int
2116 main (void)
2117 {
2118 if (sizeof (($2)))
2119             return 0;
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"
2125 then :
2126
2127 else $as_nop
2128   eval "$3=yes"
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2133 fi
2134 eval ac_res=\$$3
2135                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 printf "%s\n" "$ac_res" >&6; }
2137   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139 } # ac_fn_c_check_type
2140
2141 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2142 # ------------------------------------------------------------------
2143 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2144 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2145 ac_fn_check_decl ()
2146 {
2147   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148   as_decl_name=`echo $2|sed 's/ *(.*//'`
2149   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2150 printf %s "checking whether $as_decl_name is declared... " >&6; }
2151 if eval test \${$3+y}
2152 then :
2153   printf %s "(cached) " >&6
2154 else $as_nop
2155   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2156   eval ac_save_FLAGS=\$$6
2157   as_fn_append $6 " $5"
2158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h.  */
2160 $4
2161 int
2162 main (void)
2163 {
2164 #ifndef $as_decl_name
2165 #ifdef __cplusplus
2166   (void) $as_decl_use;
2167 #else
2168   (void) $as_decl_name;
2169 #endif
2170 #endif
2171
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"
2177 then :
2178   eval "$3=yes"
2179 else $as_nop
2180   eval "$3=no"
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2183   eval $6=\$ac_save_FLAGS
2184
2185 fi
2186 eval ac_res=\$$3
2187                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 printf "%s\n" "$ac_res" >&6; }
2189   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190
2191 } # ac_fn_check_decl
2192
2193 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2194 # --------------------------------------------
2195 # Tries to find the compile-time value of EXPR in a program that includes
2196 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2197 # computed
2198 ac_fn_c_compute_int ()
2199 {
2200   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201   if test "$cross_compiling" = yes; then
2202     # Depending upon the size, compute the lo and hi bounds.
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h.  */
2205 $4
2206 int
2207 main (void)
2208 {
2209 static int test_array [1 - 2 * !(($2) >= 0)];
2210 test_array [0] = 0;
2211 return test_array [0];
2212
2213   ;
2214   return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"
2218 then :
2219   ac_lo=0 ac_mid=0
2220   while :; do
2221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 int
2225 main (void)
2226 {
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228 test_array [0] = 0;
2229 return test_array [0];
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"
2236 then :
2237   ac_hi=$ac_mid; break
2238 else $as_nop
2239   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2240                         if test $ac_lo -le $ac_mid; then
2241                           ac_lo= ac_hi=
2242                           break
2243                         fi
2244                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2247   done
2248 else $as_nop
2249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h.  */
2251 $4
2252 int
2253 main (void)
2254 {
2255 static int test_array [1 - 2 * !(($2) < 0)];
2256 test_array [0] = 0;
2257 return test_array [0];
2258
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"
2264 then :
2265   ac_hi=-1 ac_mid=-1
2266   while :; do
2267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h.  */
2269 $4
2270 int
2271 main (void)
2272 {
2273 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2274 test_array [0] = 0;
2275 return test_array [0];
2276
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"
2282 then :
2283   ac_lo=$ac_mid; break
2284 else $as_nop
2285   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2286                         if test $ac_mid -le $ac_hi; then
2287                           ac_lo= ac_hi=
2288                           break
2289                         fi
2290                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2293   done
2294 else $as_nop
2295   ac_lo= ac_hi=
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2300 # Binary search between lo and hi bounds.
2301 while test "x$ac_lo" != "x$ac_hi"; do
2302   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h.  */
2305 $4
2306 int
2307 main (void)
2308 {
2309 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2310 test_array [0] = 0;
2311 return test_array [0];
2312
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"
2318 then :
2319   ac_hi=$ac_mid
2320 else $as_nop
2321   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2324 done
2325 case $ac_lo in #((
2326 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2327 '') ac_retval=1 ;;
2328 esac
2329   else
2330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h.  */
2332 $4
2333 static long int longval (void) { return $2; }
2334 static unsigned long int ulongval (void) { return $2; }
2335 #include <stdio.h>
2336 #include <stdlib.h>
2337 int
2338 main (void)
2339 {
2340
2341   FILE *f = fopen ("conftest.val", "w");
2342   if (! f)
2343     return 1;
2344   if (($2) < 0)
2345     {
2346       long int i = longval ();
2347       if (i != ($2))
2348         return 1;
2349       fprintf (f, "%ld", i);
2350     }
2351   else
2352     {
2353       unsigned long int i = ulongval ();
2354       if (i != ($2))
2355         return 1;
2356       fprintf (f, "%lu", i);
2357     }
2358   /* Do not output a trailing newline, as this causes \r\n confusion
2359      on some platforms.  */
2360   return ferror (f) || fclose (f) != 0;
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_c_try_run "$LINENO"
2367 then :
2368   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2369 else $as_nop
2370   ac_retval=1
2371 fi
2372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2373   conftest.$ac_objext conftest.beam conftest.$ac_ext
2374 rm -f conftest.val
2375
2376   fi
2377   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378   as_fn_set_status $ac_retval
2379
2380 } # ac_fn_c_compute_int
2381
2382 # ac_fn_cxx_try_compile LINENO
2383 # ----------------------------
2384 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_cxx_try_compile ()
2386 {
2387   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388   rm -f conftest.$ac_objext conftest.beam
2389   if { { ac_try="$ac_compile"
2390 case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 printf "%s\n" "$ac_try_echo"; } >&5
2396   (eval "$ac_compile") 2>conftest.err
2397   ac_status=$?
2398   if test -s conftest.err; then
2399     grep -v '^ *+' conftest.err >conftest.er1
2400     cat conftest.er1 >&5
2401     mv -f conftest.er1 conftest.err
2402   fi
2403   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404   test $ac_status = 0; } && {
2405          test -z "$ac_cxx_werror_flag" ||
2406          test ! -s conftest.err
2407        } && test -s conftest.$ac_objext
2408 then :
2409   ac_retval=0
2410 else $as_nop
2411   printf "%s\n" "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414         ac_retval=1
2415 fi
2416   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417   as_fn_set_status $ac_retval
2418
2419 } # ac_fn_cxx_try_compile
2420 ac_configure_args_raw=
2421 for ac_arg
2422 do
2423   case $ac_arg in
2424   *\'*)
2425     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2426   esac
2427   as_fn_append ac_configure_args_raw " '$ac_arg'"
2428 done
2429
2430 case $ac_configure_args_raw in
2431   *$as_nl*)
2432     ac_safe_unquote= ;;
2433   *)
2434     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2435     ac_unsafe_a="$ac_unsafe_z#~"
2436     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2437     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2438 esac
2439
2440 cat >config.log <<_ACEOF
2441 This file contains any messages produced by compilers while
2442 running configure, to aid debugging if configure makes a mistake.
2443
2444 It was created by $as_me, which was
2445 generated by GNU Autoconf 2.71.  Invocation command line was
2446
2447   $ $0$ac_configure_args_raw
2448
2449 _ACEOF
2450 exec 5>>config.log
2451 {
2452 cat <<_ASUNAME
2453 ## --------- ##
2454 ## Platform. ##
2455 ## --------- ##
2456
2457 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2458 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2459 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2460 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2461 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2462
2463 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2464 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2465
2466 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2467 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2468 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2469 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2470 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2471 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2472 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2473
2474 _ASUNAME
2475
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479   IFS=$as_save_IFS
2480   case $as_dir in #(((
2481     '') as_dir=./ ;;
2482     */) ;;
2483     *) as_dir=$as_dir/ ;;
2484   esac
2485     printf "%s\n" "PATH: $as_dir"
2486   done
2487 IFS=$as_save_IFS
2488
2489 } >&5
2490
2491 cat >&5 <<_ACEOF
2492
2493
2494 ## ----------- ##
2495 ## Core tests. ##
2496 ## ----------- ##
2497
2498 _ACEOF
2499
2500
2501 # Keep a trace of the command line.
2502 # Strip out --no-create and --no-recursion so they do not pile up.
2503 # Strip out --silent because we don't want to record it for future runs.
2504 # Also quote any args containing shell meta-characters.
2505 # Make two passes to allow for proper duplicate-argument suppression.
2506 ac_configure_args=
2507 ac_configure_args0=
2508 ac_configure_args1=
2509 ac_must_keep_next=false
2510 for ac_pass in 1 2
2511 do
2512   for ac_arg
2513   do
2514     case $ac_arg in
2515     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2516     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2517     | -silent | --silent | --silen | --sile | --sil)
2518       continue ;;
2519     *\'*)
2520       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2521     esac
2522     case $ac_pass in
2523     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2524     2)
2525       as_fn_append ac_configure_args1 " '$ac_arg'"
2526       if test $ac_must_keep_next = true; then
2527         ac_must_keep_next=false # Got value, back to normal.
2528       else
2529         case $ac_arg in
2530           *=* | --config-cache | -C | -disable-* | --disable-* \
2531           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2532           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2533           | -with-* | --with-* | -without-* | --without-* | --x)
2534             case "$ac_configure_args0 " in
2535               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2536             esac
2537             ;;
2538           -* ) ac_must_keep_next=true ;;
2539         esac
2540       fi
2541       as_fn_append ac_configure_args " '$ac_arg'"
2542       ;;
2543     esac
2544   done
2545 done
2546 { ac_configure_args0=; unset ac_configure_args0;}
2547 { ac_configure_args1=; unset ac_configure_args1;}
2548
2549 # When interrupted or exit'd, cleanup temporary files, and complete
2550 # config.log.  We remove comments because anyway the quotes in there
2551 # would cause problems or look ugly.
2552 # WARNING: Use '\'' to represent an apostrophe within the trap.
2553 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2554 trap 'exit_status=$?
2555   # Sanitize IFS.
2556   IFS=" ""      $as_nl"
2557   # Save into config.log some information that might help in debugging.
2558   {
2559     echo
2560
2561     printf "%s\n" "## ---------------- ##
2562 ## Cache variables. ##
2563 ## ---------------- ##"
2564     echo
2565     # The following way of writing the cache mishandles newlines in values,
2566 (
2567   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2568     eval ac_val=\$$ac_var
2569     case $ac_val in #(
2570     *${as_nl}*)
2571       case $ac_var in #(
2572       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2573 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2574       esac
2575       case $ac_var in #(
2576       _ | IFS | as_nl) ;; #(
2577       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2578       *) { eval $ac_var=; unset $ac_var;} ;;
2579       esac ;;
2580     esac
2581   done
2582   (set) 2>&1 |
2583     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2584     *${as_nl}ac_space=\ *)
2585       sed -n \
2586         "s/'\''/'\''\\\\'\'''\''/g;
2587           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2588       ;; #(
2589     *)
2590       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2591       ;;
2592     esac |
2593     sort
2594 )
2595     echo
2596
2597     printf "%s\n" "## ----------------- ##
2598 ## Output variables. ##
2599 ## ----------------- ##"
2600     echo
2601     for ac_var in $ac_subst_vars
2602     do
2603       eval ac_val=\$$ac_var
2604       case $ac_val in
2605       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2606       esac
2607       printf "%s\n" "$ac_var='\''$ac_val'\''"
2608     done | sort
2609     echo
2610
2611     if test -n "$ac_subst_files"; then
2612       printf "%s\n" "## ------------------- ##
2613 ## File substitutions. ##
2614 ## ------------------- ##"
2615       echo
2616       for ac_var in $ac_subst_files
2617       do
2618         eval ac_val=\$$ac_var
2619         case $ac_val in
2620         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2621         esac
2622         printf "%s\n" "$ac_var='\''$ac_val'\''"
2623       done | sort
2624       echo
2625     fi
2626
2627     if test -s confdefs.h; then
2628       printf "%s\n" "## ----------- ##
2629 ## confdefs.h. ##
2630 ## ----------- ##"
2631       echo
2632       cat confdefs.h
2633       echo
2634     fi
2635     test "$ac_signal" != 0 &&
2636       printf "%s\n" "$as_me: caught signal $ac_signal"
2637     printf "%s\n" "$as_me: exit $exit_status"
2638   } >&5
2639   rm -f core *.core core.conftest.* &&
2640     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2641     exit $exit_status
2642 ' 0
2643 for ac_signal in 1 2 13 15; do
2644   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2645 done
2646 ac_signal=0
2647
2648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2649 rm -f -r conftest* confdefs.h
2650
2651 printf "%s\n" "/* confdefs.h */" > confdefs.h
2652
2653 # Predefined preprocessor variables.
2654
2655 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2656
2657 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2658
2659 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2660
2661 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2662
2663 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2664
2665 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2666
2667
2668 # Let the site file select an alternate cache file if it wants to.
2669 # Prefer an explicitly selected file to automatically selected ones.
2670 if test -n "$CONFIG_SITE"; then
2671   ac_site_files="$CONFIG_SITE"
2672 elif test "x$prefix" != xNONE; then
2673   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2674 else
2675   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2676 fi
2677
2678 for ac_site_file in $ac_site_files
2679 do
2680   case $ac_site_file in #(
2681   */*) :
2682      ;; #(
2683   *) :
2684     ac_site_file=./$ac_site_file ;;
2685 esac
2686   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2687     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2688 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2689     sed 's/^/| /' "$ac_site_file" >&5
2690     . "$ac_site_file" \
2691       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2693 as_fn_error $? "failed to load site script $ac_site_file
2694 See \`config.log' for more details" "$LINENO" 5; }
2695   fi
2696 done
2697
2698 if test -r "$cache_file"; then
2699   # Some versions of bash will fail to source /dev/null (special files
2700   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2701   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2702     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2703 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2704     case $cache_file in
2705       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2706       *)                      . "./$cache_file";;
2707     esac
2708   fi
2709 else
2710   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2711 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2712   >$cache_file
2713 fi
2714
2715 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2716 # Test code for whether the C compiler supports C89 (global declarations)
2717 ac_c_conftest_c89_globals='
2718 /* Does the compiler advertise C89 conformance?
2719    Do not test the value of __STDC__, because some compilers set it to 0
2720    while being otherwise adequately conformant. */
2721 #if !defined __STDC__
2722 # error "Compiler does not advertise C89 conformance"
2723 #endif
2724
2725 #include <stddef.h>
2726 #include <stdarg.h>
2727 struct stat;
2728 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2729 struct buf { int x; };
2730 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2732      char **p;
2733      int i;
2734 {
2735   return p[i];
2736 }
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2738 {
2739   char *s;
2740   va_list v;
2741   va_start (v,p);
2742   s = g (p, va_arg (v,int));
2743   va_end (v);
2744   return s;
2745 }
2746
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2748    function prototypes and stuff, but not \xHH hex character constants.
2749    These do not provoke an error unfortunately, instead are silently treated
2750    as an "x".  The following induces an error, until -std is added to get
2751    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2752    array size at least.  It is necessary to write \x00 == 0 to get something
2753    that is true only with -std.  */
2754 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2755
2756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2757    inside strings and character constants.  */
2758 #define FOO(x) '\''x'\''
2759 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2760
2761 int test (int i, double x);
2762 struct s1 {int (*f) (int a);};
2763 struct s2 {int (*f) (double a);};
2764 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2765                int, int);'
2766
2767 # Test code for whether the C compiler supports C89 (body of main).
2768 ac_c_conftest_c89_main='
2769 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2770 '
2771
2772 # Test code for whether the C compiler supports C99 (global declarations)
2773 ac_c_conftest_c99_globals='
2774 // Does the compiler advertise C99 conformance?
2775 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2776 # error "Compiler does not advertise C99 conformance"
2777 #endif
2778
2779 #include <stdbool.h>
2780 extern int puts (const char *);
2781 extern int printf (const char *, ...);
2782 extern int dprintf (int, const char *, ...);
2783 extern void *malloc (size_t);
2784
2785 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2786 // dprintf is used instead of fprintf to avoid needing to declare
2787 // FILE and stderr.
2788 #define debug(...) dprintf (2, __VA_ARGS__)
2789 #define showlist(...) puts (#__VA_ARGS__)
2790 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2791 static void
2792 test_varargs_macros (void)
2793 {
2794   int x = 1234;
2795   int y = 5678;
2796   debug ("Flag");
2797   debug ("X = %d\n", x);
2798   showlist (The first, second, and third items.);
2799   report (x>y, "x is %d but y is %d", x, y);
2800 }
2801
2802 // Check long long types.
2803 #define BIG64 18446744073709551615ull
2804 #define BIG32 4294967295ul
2805 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2806 #if !BIG_OK
2807   #error "your preprocessor is broken"
2808 #endif
2809 #if BIG_OK
2810 #else
2811   #error "your preprocessor is broken"
2812 #endif
2813 static long long int bignum = -9223372036854775807LL;
2814 static unsigned long long int ubignum = BIG64;
2815
2816 struct incomplete_array
2817 {
2818   int datasize;
2819   double data[];
2820 };
2821
2822 struct named_init {
2823   int number;
2824   const wchar_t *name;
2825   double average;
2826 };
2827
2828 typedef const char *ccp;
2829
2830 static inline int
2831 test_restrict (ccp restrict text)
2832 {
2833   // See if C++-style comments work.
2834   // Iterate through items via the restricted pointer.
2835   // Also check for declarations in for loops.
2836   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2837     continue;
2838   return 0;
2839 }
2840
2841 // Check varargs and va_copy.
2842 static bool
2843 test_varargs (const char *format, ...)
2844 {
2845   va_list args;
2846   va_start (args, format);
2847   va_list args_copy;
2848   va_copy (args_copy, args);
2849
2850   const char *str = "";
2851   int number = 0;
2852   float fnumber = 0;
2853
2854   while (*format)
2855     {
2856       switch (*format++)
2857         {
2858         case '\''s'\'': // string
2859           str = va_arg (args_copy, const char *);
2860           break;
2861         case '\''d'\'': // int
2862           number = va_arg (args_copy, int);
2863           break;
2864         case '\''f'\'': // float
2865           fnumber = va_arg (args_copy, double);
2866           break;
2867         default:
2868           break;
2869         }
2870     }
2871   va_end (args_copy);
2872   va_end (args);
2873
2874   return *str && number && fnumber;
2875 }
2876 '
2877
2878 # Test code for whether the C compiler supports C99 (body of main).
2879 ac_c_conftest_c99_main='
2880   // Check bool.
2881   _Bool success = false;
2882   success |= (argc != 0);
2883
2884   // Check restrict.
2885   if (test_restrict ("String literal") == 0)
2886     success = true;
2887   char *restrict newvar = "Another string";
2888
2889   // Check varargs.
2890   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2891   test_varargs_macros ();
2892
2893   // Check flexible array members.
2894   struct incomplete_array *ia =
2895     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2896   ia->datasize = 10;
2897   for (int i = 0; i < ia->datasize; ++i)
2898     ia->data[i] = i * 1.234;
2899
2900   // Check named initializers.
2901   struct named_init ni = {
2902     .number = 34,
2903     .name = L"Test wide string",
2904     .average = 543.34343,
2905   };
2906
2907   ni.number = 58;
2908
2909   int dynamic_array[ni.number];
2910   dynamic_array[0] = argv[0][0];
2911   dynamic_array[ni.number - 1] = 543;
2912
2913   // work around unused variable warnings
2914   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2915          || dynamic_array[ni.number - 1] != 543);
2916 '
2917
2918 # Test code for whether the C compiler supports C11 (global declarations)
2919 ac_c_conftest_c11_globals='
2920 // Does the compiler advertise C11 conformance?
2921 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2922 # error "Compiler does not advertise C11 conformance"
2923 #endif
2924
2925 // Check _Alignas.
2926 char _Alignas (double) aligned_as_double;
2927 char _Alignas (0) no_special_alignment;
2928 extern char aligned_as_int;
2929 char _Alignas (0) _Alignas (int) aligned_as_int;
2930
2931 // Check _Alignof.
2932 enum
2933 {
2934   int_alignment = _Alignof (int),
2935   int_array_alignment = _Alignof (int[100]),
2936   char_alignment = _Alignof (char)
2937 };
2938 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2939
2940 // Check _Noreturn.
2941 int _Noreturn does_not_return (void) { for (;;) continue; }
2942
2943 // Check _Static_assert.
2944 struct test_static_assert
2945 {
2946   int x;
2947   _Static_assert (sizeof (int) <= sizeof (long int),
2948                   "_Static_assert does not work in struct");
2949   long int y;
2950 };
2951
2952 // Check UTF-8 literals.
2953 #define u8 syntax error!
2954 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2955
2956 // Check duplicate typedefs.
2957 typedef long *long_ptr;
2958 typedef long int *long_ptr;
2959 typedef long_ptr long_ptr;
2960
2961 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2962 struct anonymous
2963 {
2964   union {
2965     struct { int i; int j; };
2966     struct { int k; long int l; } w;
2967   };
2968   int m;
2969 } v1;
2970 '
2971
2972 # Test code for whether the C compiler supports C11 (body of main).
2973 ac_c_conftest_c11_main='
2974   _Static_assert ((offsetof (struct anonymous, i)
2975                    == offsetof (struct anonymous, w.k)),
2976                   "Anonymous union alignment botch");
2977   v1.i = 2;
2978   v1.w.k = 5;
2979   ok |= v1.i != 5;
2980 '
2981
2982 # Test code for whether the C compiler supports C11 (complete).
2983 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2984 ${ac_c_conftest_c99_globals}
2985 ${ac_c_conftest_c11_globals}
2986
2987 int
2988 main (int argc, char **argv)
2989 {
2990   int ok = 0;
2991   ${ac_c_conftest_c89_main}
2992   ${ac_c_conftest_c99_main}
2993   ${ac_c_conftest_c11_main}
2994   return ok;
2995 }
2996 "
2997
2998 # Test code for whether the C compiler supports C99 (complete).
2999 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3000 ${ac_c_conftest_c99_globals}
3001
3002 int
3003 main (int argc, char **argv)
3004 {
3005   int ok = 0;
3006   ${ac_c_conftest_c89_main}
3007   ${ac_c_conftest_c99_main}
3008   return ok;
3009 }
3010 "
3011
3012 # Test code for whether the C compiler supports C89 (complete).
3013 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3014
3015 int
3016 main (int argc, char **argv)
3017 {
3018   int ok = 0;
3019   ${ac_c_conftest_c89_main}
3020   return ok;
3021 }
3022 "
3023
3024 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3025 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3026 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3027 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3028 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3029 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3030 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3031 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3032 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3033 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3034 gt_needs="$gt_needs "
3035 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3036 # Test code for whether the C++ compiler supports C++98 (global declarations)
3037 ac_cxx_conftest_cxx98_globals='
3038 // Does the compiler advertise C++98 conformance?
3039 #if !defined __cplusplus || __cplusplus < 199711L
3040 # error "Compiler does not advertise C++98 conformance"
3041 #endif
3042
3043 // These inclusions are to reject old compilers that
3044 // lack the unsuffixed header files.
3045 #include <cstdlib>
3046 #include <exception>
3047
3048 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3049 extern void assert (int);
3050 namespace std {
3051   extern int strcmp (const char *, const char *);
3052 }
3053
3054 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3055 using std::exception;
3056 using std::strcmp;
3057
3058 namespace {
3059
3060 void test_exception_syntax()
3061 {
3062   try {
3063     throw "test";
3064   } catch (const char *s) {
3065     // Extra parentheses suppress a warning when building autoconf itself,
3066     // due to lint rules shared with more typical C programs.
3067     assert (!(strcmp) (s, "test"));
3068   }
3069 }
3070
3071 template <typename T> struct test_template
3072 {
3073   T const val;
3074   explicit test_template(T t) : val(t) {}
3075   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3076 };
3077
3078 } // anonymous namespace
3079 '
3080
3081 # Test code for whether the C++ compiler supports C++98 (body of main)
3082 ac_cxx_conftest_cxx98_main='
3083   assert (argc);
3084   assert (! argv[0]);
3085 {
3086   test_exception_syntax ();
3087   test_template<double> tt (2.0);
3088   assert (tt.add (4) == 6.0);
3089   assert (true && !false);
3090 }
3091 '
3092
3093 # Test code for whether the C++ compiler supports C++11 (global declarations)
3094 ac_cxx_conftest_cxx11_globals='
3095 // Does the compiler advertise C++ 2011 conformance?
3096 #if !defined __cplusplus || __cplusplus < 201103L
3097 # error "Compiler does not advertise C++11 conformance"
3098 #endif
3099
3100 namespace cxx11test
3101 {
3102   constexpr int get_val() { return 20; }
3103
3104   struct testinit
3105   {
3106     int i;
3107     double d;
3108   };
3109
3110   class delegate
3111   {
3112   public:
3113     delegate(int n) : n(n) {}
3114     delegate(): delegate(2354) {}
3115
3116     virtual int getval() { return this->n; };
3117   protected:
3118     int n;
3119   };
3120
3121   class overridden : public delegate
3122   {
3123   public:
3124     overridden(int n): delegate(n) {}
3125     virtual int getval() override final { return this->n * 2; }
3126   };
3127
3128   class nocopy
3129   {
3130   public:
3131     nocopy(int i): i(i) {}
3132     nocopy() = default;
3133     nocopy(const nocopy&) = delete;
3134     nocopy & operator=(const nocopy&) = delete;
3135   private:
3136     int i;
3137   };
3138
3139   // for testing lambda expressions
3140   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3141   {
3142     return f(v);
3143   }
3144
3145   // for testing variadic templates and trailing return types
3146   template <typename V> auto sum(V first) -> V
3147   {
3148     return first;
3149   }
3150   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3151   {
3152     return first + sum(rest...);
3153   }
3154 }
3155 '
3156
3157 # Test code for whether the C++ compiler supports C++11 (body of main)
3158 ac_cxx_conftest_cxx11_main='
3159 {
3160   // Test auto and decltype
3161   auto a1 = 6538;
3162   auto a2 = 48573953.4;
3163   auto a3 = "String literal";
3164
3165   int total = 0;
3166   for (auto i = a3; *i; ++i) { total += *i; }
3167
3168   decltype(a2) a4 = 34895.034;
3169 }
3170 {
3171   // Test constexpr
3172   short sa[cxx11test::get_val()] = { 0 };
3173 }
3174 {
3175   // Test initializer lists
3176   cxx11test::testinit il = { 4323, 435234.23544 };
3177 }
3178 {
3179   // Test range-based for
3180   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3181                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3182   for (auto &x : array) { x += 23; }
3183 }
3184 {
3185   // Test lambda expressions
3186   using cxx11test::eval;
3187   assert (eval ([](int x) { return x*2; }, 21) == 42);
3188   double d = 2.0;
3189   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3190   assert (d == 5.0);
3191   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3192   assert (d == 5.0);
3193 }
3194 {
3195   // Test use of variadic templates
3196   using cxx11test::sum;
3197   auto a = sum(1);
3198   auto b = sum(1, 2);
3199   auto c = sum(1.0, 2.0, 3.0);
3200 }
3201 {
3202   // Test constructor delegation
3203   cxx11test::delegate d1;
3204   cxx11test::delegate d2();
3205   cxx11test::delegate d3(45);
3206 }
3207 {
3208   // Test override and final
3209   cxx11test::overridden o1(55464);
3210 }
3211 {
3212   // Test nullptr
3213   char *c = nullptr;
3214 }
3215 {
3216   // Test template brackets
3217   test_template<::test_template<int>> v(test_template<int>(12));
3218 }
3219 {
3220   // Unicode literals
3221   char const *utf8 = u8"UTF-8 string \u2500";
3222   char16_t const *utf16 = u"UTF-8 string \u2500";
3223   char32_t const *utf32 = U"UTF-32 string \u2500";
3224 }
3225 '
3226
3227 # Test code for whether the C compiler supports C++11 (complete).
3228 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3229 ${ac_cxx_conftest_cxx11_globals}
3230
3231 int
3232 main (int argc, char **argv)
3233 {
3234   int ok = 0;
3235   ${ac_cxx_conftest_cxx98_main}
3236   ${ac_cxx_conftest_cxx11_main}
3237   return ok;
3238 }
3239 "
3240
3241 # Test code for whether the C compiler supports C++98 (complete).
3242 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3243 int
3244 main (int argc, char **argv)
3245 {
3246   int ok = 0;
3247   ${ac_cxx_conftest_cxx98_main}
3248   return ok;
3249 }
3250 "
3251
3252
3253 # Auxiliary files required by this configure script.
3254 ac_aux_files="config.rpath install-sh config.guess config.sub"
3255
3256 # Locations in which to look for auxiliary files.
3257 ac_aux_dir_candidates="${srcdir}/config"
3258
3259 # Search for a directory containing all of the required auxiliary files,
3260 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3261 # If we don't find one directory that contains all the files we need,
3262 # we report the set of missing files from the *first* directory in
3263 # $ac_aux_dir_candidates and give up.
3264 ac_missing_aux_files=""
3265 ac_first_candidate=:
3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 as_found=false
3269 for as_dir in $ac_aux_dir_candidates
3270 do
3271   IFS=$as_save_IFS
3272   case $as_dir in #(((
3273     '') as_dir=./ ;;
3274     */) ;;
3275     *) as_dir=$as_dir/ ;;
3276   esac
3277   as_found=:
3278
3279   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3280   ac_aux_dir_found=yes
3281   ac_install_sh=
3282   for ac_aux in $ac_aux_files
3283   do
3284     # As a special case, if "install-sh" is required, that requirement
3285     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3286     # and $ac_install_sh is set appropriately for whichever one is found.
3287     if test x"$ac_aux" = x"install-sh"
3288     then
3289       if 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}install.sh"; then
3293         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3294         ac_install_sh="${as_dir}install.sh -c"
3295       elif test -f "${as_dir}shtool"; then
3296         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3297         ac_install_sh="${as_dir}shtool install -c"
3298       else
3299         ac_aux_dir_found=no
3300         if $ac_first_candidate; then
3301           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3302         else
3303           break
3304         fi
3305       fi
3306     else
3307       if test -f "${as_dir}${ac_aux}"; then
3308         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3309       else
3310         ac_aux_dir_found=no
3311         if $ac_first_candidate; then
3312           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3313         else
3314           break
3315         fi
3316       fi
3317     fi
3318   done
3319   if test "$ac_aux_dir_found" = yes; then
3320     ac_aux_dir="$as_dir"
3321     break
3322   fi
3323   ac_first_candidate=false
3324
3325   as_found=false
3326 done
3327 IFS=$as_save_IFS
3328 if $as_found
3329 then :
3330
3331 else $as_nop
3332   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3333 fi
3334
3335
3336 # These three variables are undocumented and unsupported,
3337 # and are intended to be withdrawn in a future Autoconf release.
3338 # They can cause serious problems if a builder's source tree is in a directory
3339 # whose full name contains unusual characters.
3340 if test -f "${ac_aux_dir}config.guess"; then
3341   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3342 fi
3343 if test -f "${ac_aux_dir}config.sub"; then
3344   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3345 fi
3346 if test -f "$ac_aux_dir/configure"; then
3347   ac_configure="$SHELL ${ac_aux_dir}configure"
3348 fi
3349
3350 # Check that the precious variables saved in the cache have kept the same
3351 # value.
3352 ac_cache_corrupted=false
3353 for ac_var in $ac_precious_vars; do
3354   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3355   eval ac_new_set=\$ac_env_${ac_var}_set
3356   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3357   eval ac_new_val=\$ac_env_${ac_var}_value
3358   case $ac_old_set,$ac_new_set in
3359     set,)
3360       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3361 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3362       ac_cache_corrupted=: ;;
3363     ,set)
3364       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3365 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3366       ac_cache_corrupted=: ;;
3367     ,);;
3368     *)
3369       if test "x$ac_old_val" != "x$ac_new_val"; then
3370         # differences in whitespace do not lead to failure.
3371         ac_old_val_w=`echo x $ac_old_val`
3372         ac_new_val_w=`echo x $ac_new_val`
3373         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3374           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3375 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3376           ac_cache_corrupted=:
3377         else
3378           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3379 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3380           eval $ac_var=\$ac_old_val
3381         fi
3382         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3383 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3384         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3385 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3386       fi;;
3387   esac
3388   # Pass precious variables to config.status.
3389   if test "$ac_new_set" = set; then
3390     case $ac_new_val in
3391     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3392     *) ac_arg=$ac_var=$ac_new_val ;;
3393     esac
3394     case " $ac_configure_args " in
3395       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3396       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3397     esac
3398   fi
3399 done
3400 if $ac_cache_corrupted; then
3401   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3404 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3405   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3406             and start over" "$LINENO" 5
3407 fi
3408 ## -------------------- ##
3409 ## Main body of script. ##
3410 ## -------------------- ##
3411
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417
3418
3419
3420
3421
3422 ac_config_headers="$ac_config_headers lib/config.h"
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 printf %s "checking for $ac_word... " >&6; }
3444 if test ${ac_cv_prog_CC+y}
3445 then :
3446   printf %s "(cached) " >&6
3447 else $as_nop
3448   if test -n "$CC"; then
3449   ac_cv_prog_CC="$CC" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454   IFS=$as_save_IFS
3455   case $as_dir in #(((
3456     '') as_dir=./ ;;
3457     */) ;;
3458     *) as_dir=$as_dir/ ;;
3459   esac
3460     for ac_exec_ext in '' $ac_executable_extensions; do
3461   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3462     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3463     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467   done
3468 IFS=$as_save_IFS
3469
3470 fi
3471 fi
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 printf "%s\n" "$CC" >&6; }
3476 else
3477   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 printf "%s\n" "no" >&6; }
3479 fi
3480
3481
3482 fi
3483 if test -z "$ac_cv_prog_CC"; then
3484   ac_ct_CC=$CC
3485   # Extract the first word of "gcc", so it can be a program name with args.
3486 set dummy gcc; ac_word=$2
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 printf %s "checking for $ac_word... " >&6; }
3489 if test ${ac_cv_prog_ac_ct_CC+y}
3490 then :
3491   printf %s "(cached) " >&6
3492 else $as_nop
3493   if test -n "$ac_ct_CC"; then
3494   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499   IFS=$as_save_IFS
3500   case $as_dir in #(((
3501     '') as_dir=./ ;;
3502     */) ;;
3503     *) as_dir=$as_dir/ ;;
3504   esac
3505     for ac_exec_ext in '' $ac_executable_extensions; do
3506   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3507     ac_cv_prog_ac_ct_CC="gcc"
3508     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512   done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 printf "%s\n" "$ac_ct_CC" >&6; }
3521 else
3522   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 printf "%s\n" "no" >&6; }
3524 fi
3525
3526   if test "x$ac_ct_CC" = x; then
3527     CC=""
3528   else
3529     case $cross_compiling:$ac_tool_warned in
3530 yes:)
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533 ac_tool_warned=yes ;;
3534 esac
3535     CC=$ac_ct_CC
3536   fi
3537 else
3538   CC="$ac_cv_prog_CC"
3539 fi
3540
3541 if test -z "$CC"; then
3542           if test -n "$ac_tool_prefix"; then
3543     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}cc; ac_word=$2
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 printf %s "checking for $ac_word... " >&6; }
3547 if test ${ac_cv_prog_CC+y}
3548 then :
3549   printf %s "(cached) " >&6
3550 else $as_nop
3551   if test -n "$CC"; then
3552   ac_cv_prog_CC="$CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   case $as_dir in #(((
3559     '') as_dir=./ ;;
3560     */) ;;
3561     *) as_dir=$as_dir/ ;;
3562   esac
3563     for ac_exec_ext in '' $ac_executable_extensions; do
3564   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3565     ac_cv_prog_CC="${ac_tool_prefix}cc"
3566     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570   done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 CC=$ac_cv_prog_CC
3576 if test -n "$CC"; then
3577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 printf "%s\n" "$CC" >&6; }
3579 else
3580   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 printf "%s\n" "no" >&6; }
3582 fi
3583
3584
3585   fi
3586 fi
3587 if test -z "$CC"; then
3588   # Extract the first word of "cc", so it can be a program name with args.
3589 set dummy cc; ac_word=$2
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 printf %s "checking for $ac_word... " >&6; }
3592 if test ${ac_cv_prog_CC+y}
3593 then :
3594   printf %s "(cached) " >&6
3595 else $as_nop
3596   if test -n "$CC"; then
3597   ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599   ac_prog_rejected=no
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603   IFS=$as_save_IFS
3604   case $as_dir in #(((
3605     '') as_dir=./ ;;
3606     */) ;;
3607     *) as_dir=$as_dir/ ;;
3608   esac
3609     for ac_exec_ext in '' $ac_executable_extensions; do
3610   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3611     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3612        ac_prog_rejected=yes
3613        continue
3614      fi
3615     ac_cv_prog_CC="cc"
3616     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3617     break 2
3618   fi
3619 done
3620   done
3621 IFS=$as_save_IFS
3622
3623 if test $ac_prog_rejected = yes; then
3624   # We found a bogon in the path, so make sure we never use it.
3625   set dummy $ac_cv_prog_CC
3626   shift
3627   if test $# != 0; then
3628     # We chose a different compiler from the bogus one.
3629     # However, it has the same basename, so the bogon will be chosen
3630     # first if we set CC to just the basename; use the full file name.
3631     shift
3632     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3633   fi
3634 fi
3635 fi
3636 fi
3637 CC=$ac_cv_prog_CC
3638 if test -n "$CC"; then
3639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640 printf "%s\n" "$CC" >&6; }
3641 else
3642   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 printf "%s\n" "no" >&6; }
3644 fi
3645
3646
3647 fi
3648 if test -z "$CC"; then
3649   if test -n "$ac_tool_prefix"; then
3650   for ac_prog in cl.exe
3651   do
3652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 printf %s "checking for $ac_word... " >&6; }
3656 if test ${ac_cv_prog_CC+y}
3657 then :
3658   printf %s "(cached) " >&6
3659 else $as_nop
3660   if test -n "$CC"; then
3661   ac_cv_prog_CC="$CC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   case $as_dir in #(((
3668     '') as_dir=./ ;;
3669     */) ;;
3670     *) as_dir=$as_dir/ ;;
3671   esac
3672     for ac_exec_ext in '' $ac_executable_extensions; do
3673   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3674     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3675     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3676     break 2
3677   fi
3678 done
3679   done
3680 IFS=$as_save_IFS
3681
3682 fi
3683 fi
3684 CC=$ac_cv_prog_CC
3685 if test -n "$CC"; then
3686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 printf "%s\n" "$CC" >&6; }
3688 else
3689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3691 fi
3692
3693
3694     test -n "$CC" && break
3695   done
3696 fi
3697 if test -z "$CC"; then
3698   ac_ct_CC=$CC
3699   for ac_prog in cl.exe
3700 do
3701   # Extract the first word of "$ac_prog", so it can be a program name with args.
3702 set dummy $ac_prog; ac_word=$2
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 printf %s "checking for $ac_word... " >&6; }
3705 if test ${ac_cv_prog_ac_ct_CC+y}
3706 then :
3707   printf %s "(cached) " >&6
3708 else $as_nop
3709   if test -n "$ac_ct_CC"; then
3710   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3714 do
3715   IFS=$as_save_IFS
3716   case $as_dir in #(((
3717     '') as_dir=./ ;;
3718     */) ;;
3719     *) as_dir=$as_dir/ ;;
3720   esac
3721     for ac_exec_ext in '' $ac_executable_extensions; do
3722   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3723     ac_cv_prog_ac_ct_CC="$ac_prog"
3724     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728   done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3736 printf "%s\n" "$ac_ct_CC" >&6; }
3737 else
3738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 printf "%s\n" "no" >&6; }
3740 fi
3741
3742
3743   test -n "$ac_ct_CC" && break
3744 done
3745
3746   if test "x$ac_ct_CC" = x; then
3747     CC=""
3748   else
3749     case $cross_compiling:$ac_tool_warned in
3750 yes:)
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3753 ac_tool_warned=yes ;;
3754 esac
3755     CC=$ac_ct_CC
3756   fi
3757 fi
3758
3759 fi
3760 if test -z "$CC"; then
3761   if test -n "$ac_tool_prefix"; then
3762   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}clang; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_CC+y}
3767 then :
3768   printf %s "(cached) " >&6
3769 else $as_nop
3770   if test -n "$CC"; then
3771   ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776   IFS=$as_save_IFS
3777   case $as_dir in #(((
3778     '') as_dir=./ ;;
3779     */) ;;
3780     *) as_dir=$as_dir/ ;;
3781   esac
3782     for ac_exec_ext in '' $ac_executable_extensions; do
3783   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3784     ac_cv_prog_CC="${ac_tool_prefix}clang"
3785     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3786     break 2
3787   fi
3788 done
3789   done
3790 IFS=$as_save_IFS
3791
3792 fi
3793 fi
3794 CC=$ac_cv_prog_CC
3795 if test -n "$CC"; then
3796   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 printf "%s\n" "$CC" >&6; }
3798 else
3799   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 printf "%s\n" "no" >&6; }
3801 fi
3802
3803
3804 fi
3805 if test -z "$ac_cv_prog_CC"; then
3806   ac_ct_CC=$CC
3807   # Extract the first word of "clang", so it can be a program name with args.
3808 set dummy clang; ac_word=$2
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810 printf %s "checking for $ac_word... " >&6; }
3811 if test ${ac_cv_prog_ac_ct_CC+y}
3812 then :
3813   printf %s "(cached) " >&6
3814 else $as_nop
3815   if test -n "$ac_ct_CC"; then
3816   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821   IFS=$as_save_IFS
3822   case $as_dir in #(((
3823     '') as_dir=./ ;;
3824     */) ;;
3825     *) as_dir=$as_dir/ ;;
3826   esac
3827     for ac_exec_ext in '' $ac_executable_extensions; do
3828   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3829     ac_cv_prog_ac_ct_CC="clang"
3830     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834   done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3842 printf "%s\n" "$ac_ct_CC" >&6; }
3843 else
3844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 printf "%s\n" "no" >&6; }
3846 fi
3847
3848   if test "x$ac_ct_CC" = x; then
3849     CC=""
3850   else
3851     case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857     CC=$ac_ct_CC
3858   fi
3859 else
3860   CC="$ac_cv_prog_CC"
3861 fi
3862
3863 fi
3864
3865
3866 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5; }
3870
3871 # Provide some information about the compiler.
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 set X $ac_compile
3874 ac_compiler=$2
3875 for ac_option in --version -v -V -qversion -version; do
3876   { { ac_try="$ac_compiler $ac_option >&5"
3877 case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 printf "%s\n" "$ac_try_echo"; } >&5
3883   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884   ac_status=$?
3885   if test -s conftest.err; then
3886     sed '10a\
3887 ... rest of stderr output deleted ...
3888          10q' conftest.err >conftest.er1
3889     cat conftest.er1 >&5
3890   fi
3891   rm -f conftest.er1 conftest.err
3892   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893   test $ac_status = 0; }
3894 done
3895
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898
3899 int
3900 main (void)
3901 {
3902
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3911 # of exeext.
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 printf %s "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3915
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3918
3919 ac_rmfiles=
3920 for ac_file in $ac_files
3921 do
3922   case $ac_file in
3923     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925   esac
3926 done
3927 rm -f $ac_rmfiles
3928
3929 if { { ac_try="$ac_link_default"
3930 case "(($ac_try" in
3931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932   *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 printf "%s\n" "$ac_try_echo"; } >&5
3936   (eval "$ac_link_default") 2>&5
3937   ac_status=$?
3938   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939   test $ac_status = 0; }
3940 then :
3941   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3945 # Autoconf.
3946 for ac_file in $ac_files ''
3947 do
3948   test -f "$ac_file" || continue
3949   case $ac_file in
3950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951         ;;
3952     [ab].out )
3953         # We found the default executable, but exeext='' is most
3954         # certainly right.
3955         break;;
3956     *.* )
3957         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3958         then :; else
3959            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960         fi
3961         # We set ac_cv_exeext here because the later test for it is not
3962         # safe: cross compilers may not add the suffix if given an `-o'
3963         # argument, so we may need to know it at that point already.
3964         # Even if this section looks crufty: it has the advantage of
3965         # actually working.
3966         break;;
3967     * )
3968         break;;
3969   esac
3970 done
3971 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972
3973 else $as_nop
3974   ac_file=''
3975 fi
3976 if test -z "$ac_file"
3977 then :
3978   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 printf "%s\n" "no" >&6; }
3980 printf "%s\n" "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error 77 "C compiler cannot create executables
3986 See \`config.log' for more details" "$LINENO" 5; }
3987 else $as_nop
3988   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3989 printf "%s\n" "yes" >&6; }
3990 fi
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3992 printf %s "checking for C compiler default output file name... " >&6; }
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3994 printf "%s\n" "$ac_file" >&6; }
3995 ac_exeext=$ac_cv_exeext
3996
3997 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3998 ac_clean_files=$ac_clean_files_save
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4000 printf %s "checking for suffix of executables... " >&6; }
4001 if { { ac_try="$ac_link"
4002 case "(($ac_try" in
4003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004   *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 printf "%s\n" "$ac_try_echo"; } >&5
4008   (eval "$ac_link") 2>&5
4009   ac_status=$?
4010   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011   test $ac_status = 0; }
4012 then :
4013   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4014 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4015 # work properly (i.e., refer to `conftest.exe'), while it won't with
4016 # `rm'.
4017 for ac_file in conftest.exe conftest conftest.*; do
4018   test -f "$ac_file" || continue
4019   case $ac_file in
4020     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4021     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4022           break;;
4023     * ) break;;
4024   esac
4025 done
4026 else $as_nop
4027   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4030 See \`config.log' for more details" "$LINENO" 5; }
4031 fi
4032 rm -f conftest conftest$ac_cv_exeext
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4034 printf "%s\n" "$ac_cv_exeext" >&6; }
4035
4036 rm -f conftest.$ac_ext
4037 EXEEXT=$ac_cv_exeext
4038 ac_exeext=$EXEEXT
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h.  */
4041 #include <stdio.h>
4042 int
4043 main (void)
4044 {
4045 FILE *f = fopen ("conftest.out", "w");
4046  return ferror (f) || fclose (f) != 0;
4047
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 ac_clean_files="$ac_clean_files conftest.out"
4053 # Check that the compiler produces executables we can run.  If not, either
4054 # the compiler is broken, or we cross compile.
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4056 printf %s "checking whether we are cross compiling... " >&6; }
4057 if test "$cross_compiling" != yes; then
4058   { { ac_try="$ac_link"
4059 case "(($ac_try" in
4060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061   *) ac_try_echo=$ac_try;;
4062 esac
4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064 printf "%s\n" "$ac_try_echo"; } >&5
4065   (eval "$ac_link") 2>&5
4066   ac_status=$?
4067   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068   test $ac_status = 0; }
4069   if { ac_try='./conftest$ac_cv_exeext'
4070   { { case "(($ac_try" in
4071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072   *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075 printf "%s\n" "$ac_try_echo"; } >&5
4076   (eval "$ac_try") 2>&5
4077   ac_status=$?
4078   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079   test $ac_status = 0; }; }; then
4080     cross_compiling=no
4081   else
4082     if test "$cross_compiling" = maybe; then
4083         cross_compiling=yes
4084     else
4085         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error 77 "cannot run C compiled programs.
4088 If you meant to cross compile, use \`--host'.
4089 See \`config.log' for more details" "$LINENO" 5; }
4090     fi
4091   fi
4092 fi
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4094 printf "%s\n" "$cross_compiling" >&6; }
4095
4096 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4097 ac_clean_files=$ac_clean_files_save
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4099 printf %s "checking for suffix of object files... " >&6; }
4100 if test ${ac_cv_objext+y}
4101 then :
4102   printf %s "(cached) " >&6
4103 else $as_nop
4104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h.  */
4106
4107 int
4108 main (void)
4109 {
4110
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.o conftest.obj
4116 if { { ac_try="$ac_compile"
4117 case "(($ac_try" in
4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119   *) ac_try_echo=$ac_try;;
4120 esac
4121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122 printf "%s\n" "$ac_try_echo"; } >&5
4123   (eval "$ac_compile") 2>&5
4124   ac_status=$?
4125   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126   test $ac_status = 0; }
4127 then :
4128   for ac_file in conftest.o conftest.obj conftest.*; do
4129   test -f "$ac_file" || continue;
4130   case $ac_file in
4131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4132     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4133        break;;
4134   esac
4135 done
4136 else $as_nop
4137   printf "%s\n" "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4139
4140 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error $? "cannot compute suffix of object files: cannot compile
4143 See \`config.log' for more details" "$LINENO" 5; }
4144 fi
4145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4146 fi
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4148 printf "%s\n" "$ac_cv_objext" >&6; }
4149 OBJEXT=$ac_cv_objext
4150 ac_objext=$OBJEXT
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4152 printf %s "checking whether the compiler supports GNU C... " >&6; }
4153 if test ${ac_cv_c_compiler_gnu+y}
4154 then :
4155   printf %s "(cached) " >&6
4156 else $as_nop
4157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h.  */
4159
4160 int
4161 main (void)
4162 {
4163 #ifndef __GNUC__
4164        choke me
4165 #endif
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"
4172 then :
4173   ac_compiler_gnu=yes
4174 else $as_nop
4175   ac_compiler_gnu=no
4176 fi
4177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4179
4180 fi
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4182 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185 if test $ac_compiler_gnu = yes; then
4186   GCC=yes
4187 else
4188   GCC=
4189 fi
4190 ac_test_CFLAGS=${CFLAGS+y}
4191 ac_save_CFLAGS=$CFLAGS
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4193 printf %s "checking whether $CC accepts -g... " >&6; }
4194 if test ${ac_cv_prog_cc_g+y}
4195 then :
4196   printf %s "(cached) " >&6
4197 else $as_nop
4198   ac_save_c_werror_flag=$ac_c_werror_flag
4199    ac_c_werror_flag=yes
4200    ac_cv_prog_cc_g=no
4201    CFLAGS="-g"
4202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h.  */
4204
4205 int
4206 main (void)
4207 {
4208
4209   ;
4210   return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"
4214 then :
4215   ac_cv_prog_cc_g=yes
4216 else $as_nop
4217   CFLAGS=""
4218       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h.  */
4220
4221 int
4222 main (void)
4223 {
4224
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 if ac_fn_c_try_compile "$LINENO"
4230 then :
4231
4232 else $as_nop
4233   ac_c_werror_flag=$ac_save_c_werror_flag
4234          CFLAGS="-g"
4235          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237
4238 int
4239 main (void)
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"
4247 then :
4248   ac_cv_prog_cc_g=yes
4249 fi
4250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4255    ac_c_werror_flag=$ac_save_c_werror_flag
4256 fi
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4258 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4259 if test $ac_test_CFLAGS; then
4260   CFLAGS=$ac_save_CFLAGS
4261 elif test $ac_cv_prog_cc_g = yes; then
4262   if test "$GCC" = yes; then
4263     CFLAGS="-g -O2"
4264   else
4265     CFLAGS="-g"
4266   fi
4267 else
4268   if test "$GCC" = yes; then
4269     CFLAGS="-O2"
4270   else
4271     CFLAGS=
4272   fi
4273 fi
4274 ac_prog_cc_stdc=no
4275 if test x$ac_prog_cc_stdc = xno
4276 then :
4277   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4278 printf %s "checking for $CC option to enable C11 features... " >&6; }
4279 if test ${ac_cv_prog_cc_c11+y}
4280 then :
4281   printf %s "(cached) " >&6
4282 else $as_nop
4283   ac_cv_prog_cc_c11=no
4284 ac_save_CC=$CC
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287 $ac_c_conftest_c11_program
4288 _ACEOF
4289 for ac_arg in '' -std=gnu11
4290 do
4291   CC="$ac_save_CC $ac_arg"
4292   if ac_fn_c_try_compile "$LINENO"
4293 then :
4294   ac_cv_prog_cc_c11=$ac_arg
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.beam
4297   test "x$ac_cv_prog_cc_c11" != "xno" && break
4298 done
4299 rm -f conftest.$ac_ext
4300 CC=$ac_save_CC
4301 fi
4302
4303 if test "x$ac_cv_prog_cc_c11" = xno
4304 then :
4305   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 printf "%s\n" "unsupported" >&6; }
4307 else $as_nop
4308   if test "x$ac_cv_prog_cc_c11" = x
4309 then :
4310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 printf "%s\n" "none needed" >&6; }
4312 else $as_nop
4313   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4314 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4315      CC="$CC $ac_cv_prog_cc_c11"
4316 fi
4317   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4318   ac_prog_cc_stdc=c11
4319 fi
4320 fi
4321 if test x$ac_prog_cc_stdc = xno
4322 then :
4323   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4324 printf %s "checking for $CC option to enable C99 features... " >&6; }
4325 if test ${ac_cv_prog_cc_c99+y}
4326 then :
4327   printf %s "(cached) " >&6
4328 else $as_nop
4329   ac_cv_prog_cc_c99=no
4330 ac_save_CC=$CC
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h.  */
4333 $ac_c_conftest_c99_program
4334 _ACEOF
4335 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4336 do
4337   CC="$ac_save_CC $ac_arg"
4338   if ac_fn_c_try_compile "$LINENO"
4339 then :
4340   ac_cv_prog_cc_c99=$ac_arg
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext conftest.beam
4343   test "x$ac_cv_prog_cc_c99" != "xno" && break
4344 done
4345 rm -f conftest.$ac_ext
4346 CC=$ac_save_CC
4347 fi
4348
4349 if test "x$ac_cv_prog_cc_c99" = xno
4350 then :
4351   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4352 printf "%s\n" "unsupported" >&6; }
4353 else $as_nop
4354   if test "x$ac_cv_prog_cc_c99" = x
4355 then :
4356   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4357 printf "%s\n" "none needed" >&6; }
4358 else $as_nop
4359   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4360 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4361      CC="$CC $ac_cv_prog_cc_c99"
4362 fi
4363   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4364   ac_prog_cc_stdc=c99
4365 fi
4366 fi
4367 if test x$ac_prog_cc_stdc = xno
4368 then :
4369   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4370 printf %s "checking for $CC option to enable C89 features... " >&6; }
4371 if test ${ac_cv_prog_cc_c89+y}
4372 then :
4373   printf %s "(cached) " >&6
4374 else $as_nop
4375   ac_cv_prog_cc_c89=no
4376 ac_save_CC=$CC
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h.  */
4379 $ac_c_conftest_c89_program
4380 _ACEOF
4381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4382 do
4383   CC="$ac_save_CC $ac_arg"
4384   if ac_fn_c_try_compile "$LINENO"
4385 then :
4386   ac_cv_prog_cc_c89=$ac_arg
4387 fi
4388 rm -f core conftest.err conftest.$ac_objext conftest.beam
4389   test "x$ac_cv_prog_cc_c89" != "xno" && break
4390 done
4391 rm -f conftest.$ac_ext
4392 CC=$ac_save_CC
4393 fi
4394
4395 if test "x$ac_cv_prog_cc_c89" = xno
4396 then :
4397   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4398 printf "%s\n" "unsupported" >&6; }
4399 else $as_nop
4400   if test "x$ac_cv_prog_cc_c89" = x
4401 then :
4402   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4403 printf "%s\n" "none needed" >&6; }
4404 else $as_nop
4405   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4406 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4407      CC="$CC $ac_cv_prog_cc_c89"
4408 fi
4409   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4410   ac_prog_cc_stdc=c89
4411 fi
4412 fi
4413
4414 ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419
4420
4421 ac_header= ac_cache=
4422 for ac_item in $ac_header_c_list
4423 do
4424   if test $ac_cache; then
4425     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4426     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4427       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4428     fi
4429     ac_header= ac_cache=
4430   elif test $ac_header; then
4431     ac_cache=$ac_item
4432   else
4433     ac_header=$ac_item
4434   fi
4435 done
4436
4437
4438
4439
4440
4441
4442
4443
4444 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4445 then :
4446
4447 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4448
4449 fi
4450
4451
4452
4453
4454
4455
4456   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4457 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4458 if test ${ac_cv_safe_to_define___extensions__+y}
4459 then :
4460   printf %s "(cached) " >&6
4461 else $as_nop
4462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h.  */
4464
4465 #         define __EXTENSIONS__ 1
4466           $ac_includes_default
4467 int
4468 main (void)
4469 {
4470
4471   ;
4472   return 0;
4473 }
4474 _ACEOF
4475 if ac_fn_c_try_compile "$LINENO"
4476 then :
4477   ac_cv_safe_to_define___extensions__=yes
4478 else $as_nop
4479   ac_cv_safe_to_define___extensions__=no
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4482 fi
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4484 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4485
4486   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4487 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4488 if test ${ac_cv_should_define__xopen_source+y}
4489 then :
4490   printf %s "(cached) " >&6
4491 else $as_nop
4492   ac_cv_should_define__xopen_source=no
4493     if test $ac_cv_header_wchar_h = yes
4494 then :
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497
4498           #include <wchar.h>
4499           mbstate_t x;
4500 int
4501 main (void)
4502 {
4503
4504   ;
4505   return 0;
4506 }
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"
4509 then :
4510
4511 else $as_nop
4512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h.  */
4514
4515             #define _XOPEN_SOURCE 500
4516             #include <wchar.h>
4517             mbstate_t x;
4518 int
4519 main (void)
4520 {
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_c_try_compile "$LINENO"
4527 then :
4528   ac_cv_should_define__xopen_source=yes
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4531 fi
4532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4533 fi
4534 fi
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4536 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4537
4538   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4539
4540   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4541
4542   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4543
4544   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4545
4546   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4547
4548   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4549
4550   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4551
4552   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4553
4554   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4555
4556   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4557
4558   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4559
4560   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4561
4562   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4563
4564   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4565
4566   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4567
4568   if test $ac_cv_header_minix_config_h = yes
4569 then :
4570   MINIX=yes
4571     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4572
4573     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4574
4575     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4576
4577 else $as_nop
4578   MINIX=
4579 fi
4580   if test $ac_cv_safe_to_define___extensions__ = yes
4581 then :
4582   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4583
4584 fi
4585   if test $ac_cv_should_define__xopen_source = yes
4586 then :
4587   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4588
4589 fi
4590
4591 MCONFIG=./MCONFIG
4592
4593 BINARY_TYPE=bin
4594 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4595 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4596 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4597 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4598 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4599
4600 if expr $YEAR ">" 1900 > /dev/null ; then
4601         E2FSPROGS_YEAR=$YEAR
4602 elif expr $YEAR ">" 90 >/dev/null ; then
4603         E2FSPROGS_YEAR=19$YEAR
4604 else
4605         E2FSPROGS_YEAR=20$YEAR
4606 fi
4607
4608 case $MONTH in
4609 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4610 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4611 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4612 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4613 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4614 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4615 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4616 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4617 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4618 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4619 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4620 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4621 *)      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4622 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4623 esac
4624
4625 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4626 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4627
4628 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4629
4630 case $E2FSPROGS_VERSION in
4631 *-WIP|pre-*)
4632         E2FSPROGS_PKGVER="$base_ver"
4633         E2FSPROGS_PKGREL="WIP.$date_spec"
4634         ;;
4635 *)
4636         E2FSPROGS_PKGVER="$base_ver"
4637         E2FSPROGS_PKGREL="$base_rel"
4638         ;;
4639 esac
4640
4641 unset DATE MONTH YEAR base_ver pre_vers date_spec
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4643 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4645 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4647 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4648
4649
4650
4651
4652
4653
4654
4655 WITH_DIET_LIBC=
4656
4657 # Check whether --with-diet-libc was given.
4658 if test ${with_diet_libc+y}
4659 then :
4660   withval=$with_diet_libc; CC="diet cc -nostdinc"
4661 WITH_DIET_LIBC=yes
4662 if test -z "$LIBS"
4663 then
4664         LIBS="-lcompat"
4665 else
4666         LIBS="$LIBS -lcompat"
4667 fi
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4669 printf "%s\n" "CC=$CC" >&6; }
4670 fi
4671
4672
4673
4674   # Make sure we can run config.sub.
4675 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4676   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4677
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4679 printf %s "checking build system type... " >&6; }
4680 if test ${ac_cv_build+y}
4681 then :
4682   printf %s "(cached) " >&6
4683 else $as_nop
4684   ac_build_alias=$build_alias
4685 test "x$ac_build_alias" = x &&
4686   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4687 test "x$ac_build_alias" = x &&
4688   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4689 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4690   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4691
4692 fi
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4694 printf "%s\n" "$ac_cv_build" >&6; }
4695 case $ac_cv_build in
4696 *-*-*) ;;
4697 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4698 esac
4699 build=$ac_cv_build
4700 ac_save_IFS=$IFS; IFS='-'
4701 set x $ac_cv_build
4702 shift
4703 build_cpu=$1
4704 build_vendor=$2
4705 shift; shift
4706 # Remember, the first character of IFS is used to create $*,
4707 # except with old shells:
4708 build_os=$*
4709 IFS=$ac_save_IFS
4710 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4711
4712
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4714 printf %s "checking host system type... " >&6; }
4715 if test ${ac_cv_host+y}
4716 then :
4717   printf %s "(cached) " >&6
4718 else $as_nop
4719   if test "x$host_alias" = x; then
4720   ac_cv_host=$ac_cv_build
4721 else
4722   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4723     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4724 fi
4725
4726 fi
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4728 printf "%s\n" "$ac_cv_host" >&6; }
4729 case $ac_cv_host in
4730 *-*-*) ;;
4731 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4732 esac
4733 host=$ac_cv_host
4734 ac_save_IFS=$IFS; IFS='-'
4735 set x $ac_cv_host
4736 shift
4737 host_cpu=$1
4738 host_vendor=$2
4739 shift; shift
4740 # Remember, the first character of IFS is used to create $*,
4741 # except with old shells:
4742 host_os=$*
4743 IFS=$ac_save_IFS
4744 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4745
4746
4747 DLOPEN_LIB=''
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4749 printf %s "checking for dlopen in -ldl... " >&6; }
4750 if test ${ac_cv_lib_dl_dlopen+y}
4751 then :
4752   printf %s "(cached) " >&6
4753 else $as_nop
4754   ac_check_lib_save_LIBS=$LIBS
4755 LIBS="-ldl  $LIBS"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h.  */
4758
4759 /* Override any GCC internal prototype to avoid an error.
4760    Use char because int might match the return type of a GCC
4761    builtin and then its argument prototype would still apply.  */
4762 char dlopen ();
4763 int
4764 main (void)
4765 {
4766 return dlopen ();
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_link "$LINENO"
4772 then :
4773   ac_cv_lib_dl_dlopen=yes
4774 else $as_nop
4775   ac_cv_lib_dl_dlopen=no
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4778     conftest$ac_exeext conftest.$ac_ext
4779 LIBS=$ac_check_lib_save_LIBS
4780 fi
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4782 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4783 if test "x$ac_cv_lib_dl_dlopen" = xyes
4784 then :
4785   DLOPEN_LIB=-ldl
4786 fi
4787
4788
4789
4790 # Check whether --with-cc was given.
4791 if test ${with_cc+y}
4792 then :
4793   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4794 fi
4795
4796
4797 # Check whether --with-ccopts was given.
4798 if test ${with_ccopts+y}
4799 then :
4800   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4801 fi
4802
4803
4804 # Check whether --with-ldopts was given.
4805 if test ${with_ldopts+y}
4806 then :
4807   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4808 fi
4809
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 if test -n "$ac_tool_prefix"; then
4816   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 printf %s "checking for $ac_word... " >&6; }
4820 if test ${ac_cv_prog_CC+y}
4821 then :
4822   printf %s "(cached) " >&6
4823 else $as_nop
4824   if test -n "$CC"; then
4825   ac_cv_prog_CC="$CC" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   case $as_dir in #(((
4832     '') as_dir=./ ;;
4833     */) ;;
4834     *) as_dir=$as_dir/ ;;
4835   esac
4836     for ac_exec_ext in '' $ac_executable_extensions; do
4837   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4838     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4839     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4840     break 2
4841   fi
4842 done
4843   done
4844 IFS=$as_save_IFS
4845
4846 fi
4847 fi
4848 CC=$ac_cv_prog_CC
4849 if test -n "$CC"; then
4850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 printf "%s\n" "$CC" >&6; }
4852 else
4853   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 printf "%s\n" "no" >&6; }
4855 fi
4856
4857
4858 fi
4859 if test -z "$ac_cv_prog_CC"; then
4860   ac_ct_CC=$CC
4861   # Extract the first word of "gcc", so it can be a program name with args.
4862 set dummy gcc; ac_word=$2
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 printf %s "checking for $ac_word... " >&6; }
4865 if test ${ac_cv_prog_ac_ct_CC+y}
4866 then :
4867   printf %s "(cached) " >&6
4868 else $as_nop
4869   if test -n "$ac_ct_CC"; then
4870   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   case $as_dir in #(((
4877     '') as_dir=./ ;;
4878     */) ;;
4879     *) as_dir=$as_dir/ ;;
4880   esac
4881     for ac_exec_ext in '' $ac_executable_extensions; do
4882   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4883     ac_cv_prog_ac_ct_CC="gcc"
4884     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888   done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4896 printf "%s\n" "$ac_ct_CC" >&6; }
4897 else
4898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 printf "%s\n" "no" >&6; }
4900 fi
4901
4902   if test "x$ac_ct_CC" = x; then
4903     CC=""
4904   else
4905     case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911     CC=$ac_ct_CC
4912   fi
4913 else
4914   CC="$ac_cv_prog_CC"
4915 fi
4916
4917 if test -z "$CC"; then
4918           if test -n "$ac_tool_prefix"; then
4919     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}cc; ac_word=$2
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 printf %s "checking for $ac_word... " >&6; }
4923 if test ${ac_cv_prog_CC+y}
4924 then :
4925   printf %s "(cached) " >&6
4926 else $as_nop
4927   if test -n "$CC"; then
4928   ac_cv_prog_CC="$CC" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   case $as_dir in #(((
4935     '') as_dir=./ ;;
4936     */) ;;
4937     *) as_dir=$as_dir/ ;;
4938   esac
4939     for ac_exec_ext in '' $ac_executable_extensions; do
4940   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4941     ac_cv_prog_CC="${ac_tool_prefix}cc"
4942     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4943     break 2
4944   fi
4945 done
4946   done
4947 IFS=$as_save_IFS
4948
4949 fi
4950 fi
4951 CC=$ac_cv_prog_CC
4952 if test -n "$CC"; then
4953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4954 printf "%s\n" "$CC" >&6; }
4955 else
4956   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 printf "%s\n" "no" >&6; }
4958 fi
4959
4960
4961   fi
4962 fi
4963 if test -z "$CC"; then
4964   # Extract the first word of "cc", so it can be a program name with args.
4965 set dummy cc; ac_word=$2
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 printf %s "checking for $ac_word... " >&6; }
4968 if test ${ac_cv_prog_CC+y}
4969 then :
4970   printf %s "(cached) " >&6
4971 else $as_nop
4972   if test -n "$CC"; then
4973   ac_cv_prog_CC="$CC" # Let the user override the test.
4974 else
4975   ac_prog_rejected=no
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   case $as_dir in #(((
4981     '') as_dir=./ ;;
4982     */) ;;
4983     *) as_dir=$as_dir/ ;;
4984   esac
4985     for ac_exec_ext in '' $ac_executable_extensions; do
4986   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4987     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4988        ac_prog_rejected=yes
4989        continue
4990      fi
4991     ac_cv_prog_CC="cc"
4992     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996   done
4997 IFS=$as_save_IFS
4998
4999 if test $ac_prog_rejected = yes; then
5000   # We found a bogon in the path, so make sure we never use it.
5001   set dummy $ac_cv_prog_CC
5002   shift
5003   if test $# != 0; then
5004     # We chose a different compiler from the bogus one.
5005     # However, it has the same basename, so the bogon will be chosen
5006     # first if we set CC to just the basename; use the full file name.
5007     shift
5008     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5009   fi
5010 fi
5011 fi
5012 fi
5013 CC=$ac_cv_prog_CC
5014 if test -n "$CC"; then
5015   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5016 printf "%s\n" "$CC" >&6; }
5017 else
5018   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 printf "%s\n" "no" >&6; }
5020 fi
5021
5022
5023 fi
5024 if test -z "$CC"; then
5025   if test -n "$ac_tool_prefix"; then
5026   for ac_prog in cl.exe
5027   do
5028     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 printf %s "checking for $ac_word... " >&6; }
5032 if test ${ac_cv_prog_CC+y}
5033 then :
5034   printf %s "(cached) " >&6
5035 else $as_nop
5036   if test -n "$CC"; then
5037   ac_cv_prog_CC="$CC" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   case $as_dir in #(((
5044     '') as_dir=./ ;;
5045     */) ;;
5046     *) as_dir=$as_dir/ ;;
5047   esac
5048     for ac_exec_ext in '' $ac_executable_extensions; do
5049   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5050     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5051     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5052     break 2
5053   fi
5054 done
5055   done
5056 IFS=$as_save_IFS
5057
5058 fi
5059 fi
5060 CC=$ac_cv_prog_CC
5061 if test -n "$CC"; then
5062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5063 printf "%s\n" "$CC" >&6; }
5064 else
5065   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 printf "%s\n" "no" >&6; }
5067 fi
5068
5069
5070     test -n "$CC" && break
5071   done
5072 fi
5073 if test -z "$CC"; then
5074   ac_ct_CC=$CC
5075   for ac_prog in cl.exe
5076 do
5077   # Extract the first word of "$ac_prog", so it can be a program name with args.
5078 set dummy $ac_prog; ac_word=$2
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 printf %s "checking for $ac_word... " >&6; }
5081 if test ${ac_cv_prog_ac_ct_CC+y}
5082 then :
5083   printf %s "(cached) " >&6
5084 else $as_nop
5085   if test -n "$ac_ct_CC"; then
5086   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   case $as_dir in #(((
5093     '') as_dir=./ ;;
5094     */) ;;
5095     *) as_dir=$as_dir/ ;;
5096   esac
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5099     ac_cv_prog_ac_ct_CC="$ac_prog"
5100     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104   done
5105 IFS=$as_save_IFS
5106
5107 fi
5108 fi
5109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5110 if test -n "$ac_ct_CC"; then
5111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5112 printf "%s\n" "$ac_ct_CC" >&6; }
5113 else
5114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 printf "%s\n" "no" >&6; }
5116 fi
5117
5118
5119   test -n "$ac_ct_CC" && break
5120 done
5121
5122   if test "x$ac_ct_CC" = x; then
5123     CC=""
5124   else
5125     case $cross_compiling:$ac_tool_warned in
5126 yes:)
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131     CC=$ac_ct_CC
5132   fi
5133 fi
5134
5135 fi
5136 if test -z "$CC"; then
5137   if test -n "$ac_tool_prefix"; then
5138   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}clang; ac_word=$2
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 printf %s "checking for $ac_word... " >&6; }
5142 if test ${ac_cv_prog_CC+y}
5143 then :
5144   printf %s "(cached) " >&6
5145 else $as_nop
5146   if test -n "$CC"; then
5147   ac_cv_prog_CC="$CC" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152   IFS=$as_save_IFS
5153   case $as_dir in #(((
5154     '') as_dir=./ ;;
5155     */) ;;
5156     *) as_dir=$as_dir/ ;;
5157   esac
5158     for ac_exec_ext in '' $ac_executable_extensions; do
5159   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5160     ac_cv_prog_CC="${ac_tool_prefix}clang"
5161     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5162     break 2
5163   fi
5164 done
5165   done
5166 IFS=$as_save_IFS
5167
5168 fi
5169 fi
5170 CC=$ac_cv_prog_CC
5171 if test -n "$CC"; then
5172   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5173 printf "%s\n" "$CC" >&6; }
5174 else
5175   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 printf "%s\n" "no" >&6; }
5177 fi
5178
5179
5180 fi
5181 if test -z "$ac_cv_prog_CC"; then
5182   ac_ct_CC=$CC
5183   # Extract the first word of "clang", so it can be a program name with args.
5184 set dummy clang; ac_word=$2
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 printf %s "checking for $ac_word... " >&6; }
5187 if test ${ac_cv_prog_ac_ct_CC+y}
5188 then :
5189   printf %s "(cached) " >&6
5190 else $as_nop
5191   if test -n "$ac_ct_CC"; then
5192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197   IFS=$as_save_IFS
5198   case $as_dir in #(((
5199     '') as_dir=./ ;;
5200     */) ;;
5201     *) as_dir=$as_dir/ ;;
5202   esac
5203     for ac_exec_ext in '' $ac_executable_extensions; do
5204   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5205     ac_cv_prog_ac_ct_CC="clang"
5206     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210   done
5211 IFS=$as_save_IFS
5212
5213 fi
5214 fi
5215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5216 if test -n "$ac_ct_CC"; then
5217   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5218 printf "%s\n" "$ac_ct_CC" >&6; }
5219 else
5220   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 printf "%s\n" "no" >&6; }
5222 fi
5223
5224   if test "x$ac_ct_CC" = x; then
5225     CC=""
5226   else
5227     case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233     CC=$ac_ct_CC
5234   fi
5235 else
5236   CC="$ac_cv_prog_CC"
5237 fi
5238
5239 fi
5240
5241
5242 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5244 as_fn_error $? "no acceptable C compiler found in \$PATH
5245 See \`config.log' for more details" "$LINENO" 5; }
5246
5247 # Provide some information about the compiler.
5248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5249 set X $ac_compile
5250 ac_compiler=$2
5251 for ac_option in --version -v -V -qversion -version; do
5252   { { ac_try="$ac_compiler $ac_option >&5"
5253 case "(($ac_try" in
5254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255   *) ac_try_echo=$ac_try;;
5256 esac
5257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5258 printf "%s\n" "$ac_try_echo"; } >&5
5259   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5260   ac_status=$?
5261   if test -s conftest.err; then
5262     sed '10a\
5263 ... rest of stderr output deleted ...
5264          10q' conftest.err >conftest.er1
5265     cat conftest.er1 >&5
5266   fi
5267   rm -f conftest.er1 conftest.err
5268   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269   test $ac_status = 0; }
5270 done
5271
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5273 printf %s "checking whether the compiler supports GNU C... " >&6; }
5274 if test ${ac_cv_c_compiler_gnu+y}
5275 then :
5276   printf %s "(cached) " >&6
5277 else $as_nop
5278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h.  */
5280
5281 int
5282 main (void)
5283 {
5284 #ifndef __GNUC__
5285        choke me
5286 #endif
5287
5288   ;
5289   return 0;
5290 }
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"
5293 then :
5294   ac_compiler_gnu=yes
5295 else $as_nop
5296   ac_compiler_gnu=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5300
5301 fi
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5303 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306 if test $ac_compiler_gnu = yes; then
5307   GCC=yes
5308 else
5309   GCC=
5310 fi
5311 ac_test_CFLAGS=${CFLAGS+y}
5312 ac_save_CFLAGS=$CFLAGS
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5314 printf %s "checking whether $CC accepts -g... " >&6; }
5315 if test ${ac_cv_prog_cc_g+y}
5316 then :
5317   printf %s "(cached) " >&6
5318 else $as_nop
5319   ac_save_c_werror_flag=$ac_c_werror_flag
5320    ac_c_werror_flag=yes
5321    ac_cv_prog_cc_g=no
5322    CFLAGS="-g"
5323    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h.  */
5325
5326 int
5327 main (void)
5328 {
5329
5330   ;
5331   return 0;
5332 }
5333 _ACEOF
5334 if ac_fn_c_try_compile "$LINENO"
5335 then :
5336   ac_cv_prog_cc_g=yes
5337 else $as_nop
5338   CFLAGS=""
5339       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h.  */
5341
5342 int
5343 main (void)
5344 {
5345
5346   ;
5347   return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"
5351 then :
5352
5353 else $as_nop
5354   ac_c_werror_flag=$ac_save_c_werror_flag
5355          CFLAGS="-g"
5356          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h.  */
5358
5359 int
5360 main (void)
5361 {
5362
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"
5368 then :
5369   ac_cv_prog_cc_g=yes
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5376    ac_c_werror_flag=$ac_save_c_werror_flag
5377 fi
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5379 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5380 if test $ac_test_CFLAGS; then
5381   CFLAGS=$ac_save_CFLAGS
5382 elif test $ac_cv_prog_cc_g = yes; then
5383   if test "$GCC" = yes; then
5384     CFLAGS="-g -O2"
5385   else
5386     CFLAGS="-g"
5387   fi
5388 else
5389   if test "$GCC" = yes; then
5390     CFLAGS="-O2"
5391   else
5392     CFLAGS=
5393   fi
5394 fi
5395 ac_prog_cc_stdc=no
5396 if test x$ac_prog_cc_stdc = xno
5397 then :
5398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5399 printf %s "checking for $CC option to enable C11 features... " >&6; }
5400 if test ${ac_cv_prog_cc_c11+y}
5401 then :
5402   printf %s "(cached) " >&6
5403 else $as_nop
5404   ac_cv_prog_cc_c11=no
5405 ac_save_CC=$CC
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h.  */
5408 $ac_c_conftest_c11_program
5409 _ACEOF
5410 for ac_arg in '' -std=gnu11
5411 do
5412   CC="$ac_save_CC $ac_arg"
5413   if ac_fn_c_try_compile "$LINENO"
5414 then :
5415   ac_cv_prog_cc_c11=$ac_arg
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.beam
5418   test "x$ac_cv_prog_cc_c11" != "xno" && break
5419 done
5420 rm -f conftest.$ac_ext
5421 CC=$ac_save_CC
5422 fi
5423
5424 if test "x$ac_cv_prog_cc_c11" = xno
5425 then :
5426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5427 printf "%s\n" "unsupported" >&6; }
5428 else $as_nop
5429   if test "x$ac_cv_prog_cc_c11" = x
5430 then :
5431   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5432 printf "%s\n" "none needed" >&6; }
5433 else $as_nop
5434   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5435 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5436      CC="$CC $ac_cv_prog_cc_c11"
5437 fi
5438   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5439   ac_prog_cc_stdc=c11
5440 fi
5441 fi
5442 if test x$ac_prog_cc_stdc = xno
5443 then :
5444   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5445 printf %s "checking for $CC option to enable C99 features... " >&6; }
5446 if test ${ac_cv_prog_cc_c99+y}
5447 then :
5448   printf %s "(cached) " >&6
5449 else $as_nop
5450   ac_cv_prog_cc_c99=no
5451 ac_save_CC=$CC
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h.  */
5454 $ac_c_conftest_c99_program
5455 _ACEOF
5456 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5457 do
5458   CC="$ac_save_CC $ac_arg"
5459   if ac_fn_c_try_compile "$LINENO"
5460 then :
5461   ac_cv_prog_cc_c99=$ac_arg
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.beam
5464   test "x$ac_cv_prog_cc_c99" != "xno" && break
5465 done
5466 rm -f conftest.$ac_ext
5467 CC=$ac_save_CC
5468 fi
5469
5470 if test "x$ac_cv_prog_cc_c99" = xno
5471 then :
5472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5473 printf "%s\n" "unsupported" >&6; }
5474 else $as_nop
5475   if test "x$ac_cv_prog_cc_c99" = x
5476 then :
5477   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5478 printf "%s\n" "none needed" >&6; }
5479 else $as_nop
5480   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5481 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5482      CC="$CC $ac_cv_prog_cc_c99"
5483 fi
5484   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5485   ac_prog_cc_stdc=c99
5486 fi
5487 fi
5488 if test x$ac_prog_cc_stdc = xno
5489 then :
5490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5491 printf %s "checking for $CC option to enable C89 features... " >&6; }
5492 if test ${ac_cv_prog_cc_c89+y}
5493 then :
5494   printf %s "(cached) " >&6
5495 else $as_nop
5496   ac_cv_prog_cc_c89=no
5497 ac_save_CC=$CC
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h.  */
5500 $ac_c_conftest_c89_program
5501 _ACEOF
5502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5503 do
5504   CC="$ac_save_CC $ac_arg"
5505   if ac_fn_c_try_compile "$LINENO"
5506 then :
5507   ac_cv_prog_cc_c89=$ac_arg
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.beam
5510   test "x$ac_cv_prog_cc_c89" != "xno" && break
5511 done
5512 rm -f conftest.$ac_ext
5513 CC=$ac_save_CC
5514 fi
5515
5516 if test "x$ac_cv_prog_cc_c89" = xno
5517 then :
5518   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5519 printf "%s\n" "unsupported" >&6; }
5520 else $as_nop
5521   if test "x$ac_cv_prog_cc_c89" = x
5522 then :
5523   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5524 printf "%s\n" "none needed" >&6; }
5525 else $as_nop
5526   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5527 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5528      CC="$CC $ac_cv_prog_cc_c89"
5529 fi
5530   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5531   ac_prog_cc_stdc=c89
5532 fi
5533 fi
5534
5535 ac_ext=c
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540
5541 if test "$GCC" = yes; then
5542    RDYNAMIC="-rdynamic"
5543
5544 fi
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 printf %s "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5554   CPP=
5555 fi
5556 if test -z "$CPP"; then
5557   if test ${ac_cv_prog_CPP+y}
5558 then :
5559   printf %s "(cached) " >&6
5560 else $as_nop
5561       # Double quotes because $CC needs to be expanded
5562     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5563     do
5564       ac_preproc_ok=false
5565 for ac_c_preproc_warn_flag in '' yes
5566 do
5567   # Use a header file that comes with gcc, so configuring glibc
5568   # with a fresh cross-compiler works.
5569   # On the NeXT, cc -E runs the code through the compiler's parser,
5570   # not just through cpp. "Syntax error" is here to catch this case.
5571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h.  */
5573 #include <limits.h>
5574                      Syntax error
5575 _ACEOF
5576 if ac_fn_c_try_cpp "$LINENO"
5577 then :
5578
5579 else $as_nop
5580   # Broken: fails on valid input.
5581 continue
5582 fi
5583 rm -f conftest.err conftest.i conftest.$ac_ext
5584
5585   # OK, works on sane cases.  Now check whether nonexistent headers
5586   # can be detected and how.
5587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h.  */
5589 #include <ac_nonexistent.h>
5590 _ACEOF
5591 if ac_fn_c_try_cpp "$LINENO"
5592 then :
5593   # Broken: success on invalid input.
5594 continue
5595 else $as_nop
5596   # Passes both tests.
5597 ac_preproc_ok=:
5598 break
5599 fi
5600 rm -f conftest.err conftest.i conftest.$ac_ext
5601
5602 done
5603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604 rm -f conftest.i conftest.err conftest.$ac_ext
5605 if $ac_preproc_ok
5606 then :
5607   break
5608 fi
5609
5610     done
5611     ac_cv_prog_CPP=$CPP
5612
5613 fi
5614   CPP=$ac_cv_prog_CPP
5615 else
5616   ac_cv_prog_CPP=$CPP
5617 fi
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5619 printf "%s\n" "$CPP" >&6; }
5620 ac_preproc_ok=false
5621 for ac_c_preproc_warn_flag in '' yes
5622 do
5623   # Use a header file that comes with gcc, so configuring glibc
5624   # with a fresh cross-compiler works.
5625   # On the NeXT, cc -E runs the code through the compiler's parser,
5626   # not just through cpp. "Syntax error" is here to catch this case.
5627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h.  */
5629 #include <limits.h>
5630                      Syntax error
5631 _ACEOF
5632 if ac_fn_c_try_cpp "$LINENO"
5633 then :
5634
5635 else $as_nop
5636   # Broken: fails on valid input.
5637 continue
5638 fi
5639 rm -f conftest.err conftest.i conftest.$ac_ext
5640
5641   # OK, works on sane cases.  Now check whether nonexistent headers
5642   # can be detected and how.
5643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h.  */
5645 #include <ac_nonexistent.h>
5646 _ACEOF
5647 if ac_fn_c_try_cpp "$LINENO"
5648 then :
5649   # Broken: success on invalid input.
5650 continue
5651 else $as_nop
5652   # Passes both tests.
5653 ac_preproc_ok=:
5654 break
5655 fi
5656 rm -f conftest.err conftest.i conftest.$ac_ext
5657
5658 done
5659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5660 rm -f conftest.i conftest.err conftest.$ac_ext
5661 if $ac_preproc_ok
5662 then :
5663
5664 else $as_nop
5665   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5666 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5667 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5668 See \`config.log' for more details" "$LINENO" 5; }
5669 fi
5670
5671 ac_ext=c
5672 ac_cpp='$CPP $CPPFLAGS'
5673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5676
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5678 printf %s "checking for additional special compiler flags... " >&6; }
5679 if test "$GCC" = yes
5680 then
5681     case "$host_cpu" in
5682         alpha)          addcflags="-mieee" ;;
5683     esac
5684 fi
5685 if test "x$addcflags" != x
5686 then
5687     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5688 printf "%s\n" "$addcflags" >&6; }
5689     CFLAGS="$addcflags $CFLAGS"
5690 else
5691     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5692 printf "%s\n" "(none)" >&6; }
5693 fi
5694 LIB_EXT=.a
5695 STATIC_LIB_EXT=.a
5696 PROFILED_LIB_EXT=.a
5697
5698 # Check whether --with-root-prefix was given.
5699 if test ${with_root_prefix+y}
5700 then :
5701   withval=$with_root_prefix; root_prefix=$withval
5702 else $as_nop
5703   root_prefix=NONE
5704 fi
5705 # Check whether --enable-maintainer-mode was given.
5706 if test ${enable_maintainer_mode+y}
5707 then :
5708   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5709 then
5710         MAINTAINER_CMT=#
5711         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5712 printf "%s\n" "Disabling maintainer mode" >&6; }
5713 else
5714         MAINTAINER_CMT=
5715         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5716 printf "%s\n" "Enabling maintainer mode" >&6; }
5717 fi
5718
5719 else $as_nop
5720   MAINTAINER_CMT=#
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5722 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5723
5724 fi
5725
5726
5727 # Check whether --enable-symlink-install was given.
5728 if test ${enable_symlink_install+y}
5729 then :
5730   enableval=$enable_symlink_install; if test "$enableval" = "no"
5731 then
5732         LINK_INSTALL_FLAGS=-f
5733         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5734 printf "%s\n" "Disabling symlinks for install" >&6; }
5735 else
5736         LINK_INSTALL_FLAGS=-sf
5737         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5738 printf "%s\n" "Enabling symlinks for install" >&6; }
5739 fi
5740
5741 else $as_nop
5742   LINK_INSTALL_FLAGS=-f
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5744 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5745
5746 fi
5747
5748
5749 relative_symlink_defined=
5750 # Check whether --enable-relative-symlinks was given.
5751 if test ${enable_relative_symlinks+y}
5752 then :
5753   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5754 then
5755         SYMLINK_RELATIVE=
5756         relative_symlink_defined=yes
5757         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5758 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5759 else
5760         SYMLINK_RELATIVE=--relative
5761         relative_symlink_defined=yes
5762         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5763 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5764 fi
5765 fi
5766
5767 # Check whether --enable-symlink-relative-symlinks was given.
5768 if test ${enable_symlink_relative_symlinks+y}
5769 then :
5770   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5771 then
5772         SYMLINK_RELATIVE=yes
5773         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5774 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5775 else
5776         SYMLINK_RELATIVE=--relative
5777         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5778 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5779 fi
5780
5781 else $as_nop
5782   if test -z "$relative_symlink_defined"
5783 then
5784         SYMLINK_RELATIVE=
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5786 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5787 fi
5788
5789 fi
5790
5791
5792 # Check whether --enable-symlink-build was given.
5793 if test ${enable_symlink_build+y}
5794 then :
5795   enableval=$enable_symlink_build; if test "$enableval" = "no"
5796 then
5797         LINK_BUILD_FLAGS=
5798         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5799 printf "%s\n" "Disabling symlinks for build" >&6; }
5800 else
5801         LINK_BUILD_FLAGS=-s
5802         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5803 printf "%s\n" "Enabling symlinks for build" >&6; }
5804 fi
5805
5806 else $as_nop
5807   LINK_BUILD_FLAGS=
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5809 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5810
5811 fi
5812
5813
5814 # Check whether --enable-verbose-makecmds was given.
5815 if test ${enable_verbose_makecmds+y}
5816 then :
5817   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5818 then
5819         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5820 printf "%s\n" "Disabling verbose make commands" >&6; }
5821         E=@echo
5822         ES=echo
5823         Q=@
5824 else
5825         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5826 printf "%s\n" "Enabling verbose make commands" >&6; }
5827         E=@\\#
5828         ES=\\#
5829         Q=
5830 fi
5831
5832 else $as_nop
5833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5834 printf "%s\n" "Disabling verbose make commands" >&6; }
5835 E=@echo
5836 ES=echo
5837 Q=@
5838
5839 fi
5840
5841
5842
5843
5844 E2_PKG_CONFIG_STATIC=--static
5845 LDFLAG_DYNAMIC=
5846 PRIVATE_LIBS_CMT=
5847 # Check whether --enable-elf-shlibs was given.
5848 if test ${enable_elf_shlibs+y}
5849 then :
5850   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5851 then
5852         ELF_CMT=#
5853         MAKEFILE_ELF=/dev/null
5854         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5855 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5856 else
5857         E2_PKG_CONFIG_STATIC=
5858         ELF_CMT=
5859         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5860         case "$host_os" in
5861         solaris2.*)
5862                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5863         ;;
5864         esac
5865         BINARY_TYPE=elfbin
5866         LIB_EXT=.so
5867         PRIVATE_LIBS_CMT=#
5868         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5869         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5870 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5871 fi
5872
5873 else $as_nop
5874   MAKEFILE_ELF=/dev/null
5875 ELF_CMT=#
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5877 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5878
5879 fi
5880
5881
5882
5883 # Check whether --enable-bsd-shlibs was given.
5884 if test ${enable_bsd_shlibs+y}
5885 then :
5886   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5887 then
5888         BSDLIB_CMT=#
5889         MAKEFILE_BSDLIB=/dev/null
5890         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5891 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5892 else
5893         E2_PKG_CONFIG_STATIC=
5894         BSDLIB_CMT=
5895         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5896         LIB_EXT=.so
5897         case "$host_os" in
5898         darwin*)
5899                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5900                 LIB_EXT=.dylib
5901         ;;
5902         esac
5903         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5904 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5905 fi
5906
5907 else $as_nop
5908   MAKEFILE_BSDLIB=/dev/null
5909 BSDLIB_CMT=#
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5911 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5912
5913 fi
5914
5915
5916
5917 # Check whether --enable-profile was given.
5918 if test ${enable_profile+y}
5919 then :
5920   enableval=$enable_profile; if test "$enableval" = "no"
5921 then
5922         PROFILE_CMT=#
5923         MAKEFILE_PROFILE=/dev/null
5924         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5925 printf "%s\n" "Disabling profiling libraries" >&6; }
5926 else
5927         PROFILE_CMT=
5928         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5929         PROFILED_LIB_EXT=_p.a
5930         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5931 printf "%s\n" "Building profiling libraries" >&6; }
5932 fi
5933
5934 else $as_nop
5935   PROFILE_CMT=#
5936 MAKEFILE_PROFILE=/dev/null
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5938 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5939
5940 fi
5941
5942
5943
5944 # Check whether --enable-gcov was given.
5945 if test ${enable_gcov+y}
5946 then :
5947   enableval=$enable_gcov; if test "$enableval" = "yes"
5948 then
5949         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5950         LDFLAGS="-fprofile-arcs -ftest-coverage"
5951         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5952 printf "%s\n" "Enabling gcov support" >&6; }
5953 fi
5954
5955 fi
5956
5957 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5958 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5959 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5960 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5961 # Check whether --enable-hardening was given.
5962 if test ${enable_hardening+y}
5963 then :
5964   enableval=$enable_hardening; if test "$enableval" = "yes"
5965 then
5966         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=3 -fstack-protector-strong"
5967         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5968         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5969         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5970         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5971         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5972         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5973         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5974         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5975 printf "%s\n" "Enabling hardening support" >&6; }
5976 fi
5977
5978 fi
5979
5980
5981
5982
5983
5984
5985 # Check whether --enable-jbd-debug was given.
5986 if test ${enable_jbd_debug+y}
5987 then :
5988   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5989 then
5990         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5991 printf "%s\n" "Disabling journal debugging" >&6; }
5992 else
5993
5994 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5995
5996         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5997 printf "%s\n" "Enabling journal debugging" >&6; }
5998 fi
5999
6000 else $as_nop
6001   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
6002 printf "%s\n" "Disabling journal debugging by default" >&6; }
6003
6004 fi
6005
6006 # Check whether --enable-blkid-debug was given.
6007 if test ${enable_blkid_debug+y}
6008 then :
6009   enableval=$enable_blkid_debug; if test "$enableval" = "no"
6010 then
6011         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6012 printf "%s\n" "Disabling blkid debugging" >&6; }
6013 else
6014
6015 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6016
6017         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6018 printf "%s\n" "Enabling blkid debugging" >&6; }
6019 fi
6020
6021 else $as_nop
6022   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6023 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6024
6025 fi
6026
6027 # Check whether --enable-testio-debug was given.
6028 if test ${enable_testio_debug+y}
6029 then :
6030   enableval=$enable_testio_debug;
6031 if test "$enableval" = "no"
6032 then
6033         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6034 printf "%s\n" "Disabling testio debugging" >&6; }
6035         TEST_IO_CMT="#"
6036 else
6037         TEST_IO_CMT=
6038         printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6039
6040         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6041 printf "%s\n" "Enabling testio debugging" >&6; }
6042 fi
6043
6044 else $as_nop
6045   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6046 printf "%s\n" "Enabling testio debugging by default" >&6; }
6047 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6048
6049 TEST_IO_CMT=
6050
6051 fi
6052
6053
6054 # Check whether --enable-developer-features was given.
6055 if test ${enable_developer_features+y}
6056 then :
6057   enableval=$enable_developer_features;
6058 if test "$enableval" = "yes"
6059 then
6060         DEV_FEATURES_CMT=
6061         printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6062
6063         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6064 printf "%s\n" "Enabling ext4 developer features" >&6; }
6065 else
6066         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6067 printf "%s\n" "Disabling ext4 developer features" >&6; }
6068         DEV_FEATURES_CMT="#"
6069 fi
6070
6071 else $as_nop
6072   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6073 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6074 DEV_FEATURES_CMT=
6075
6076 fi
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6087         if test -n "$ac_tool_prefix"; then
6088   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 printf %s "checking for $ac_word... " >&6; }
6092 if test ${ac_cv_path_PKG_CONFIG+y}
6093 then :
6094   printf %s "(cached) " >&6
6095 else $as_nop
6096   case $PKG_CONFIG in
6097   [\\/]* | ?:[\\/]*)
6098   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6099   ;;
6100   *)
6101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   case $as_dir in #(((
6106     '') as_dir=./ ;;
6107     */) ;;
6108     *) as_dir=$as_dir/ ;;
6109   esac
6110     for ac_exec_ext in '' $ac_executable_extensions; do
6111   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6112     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6113     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6114     break 2
6115   fi
6116 done
6117   done
6118 IFS=$as_save_IFS
6119
6120   ;;
6121 esac
6122 fi
6123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6124 if test -n "$PKG_CONFIG"; then
6125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6126 printf "%s\n" "$PKG_CONFIG" >&6; }
6127 else
6128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 printf "%s\n" "no" >&6; }
6130 fi
6131
6132
6133 fi
6134 if test -z "$ac_cv_path_PKG_CONFIG"; then
6135   ac_pt_PKG_CONFIG=$PKG_CONFIG
6136   # Extract the first word of "pkg-config", so it can be a program name with args.
6137 set dummy pkg-config; ac_word=$2
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 printf %s "checking for $ac_word... " >&6; }
6140 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6141 then :
6142   printf %s "(cached) " >&6
6143 else $as_nop
6144   case $ac_pt_PKG_CONFIG in
6145   [\\/]* | ?:[\\/]*)
6146   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6147   ;;
6148   *)
6149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   case $as_dir in #(((
6154     '') as_dir=./ ;;
6155     */) ;;
6156     *) as_dir=$as_dir/ ;;
6157   esac
6158     for ac_exec_ext in '' $ac_executable_extensions; do
6159   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6160     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6161     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6162     break 2
6163   fi
6164 done
6165   done
6166 IFS=$as_save_IFS
6167
6168   ;;
6169 esac
6170 fi
6171 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6172 if test -n "$ac_pt_PKG_CONFIG"; then
6173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6174 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6175 else
6176   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 printf "%s\n" "no" >&6; }
6178 fi
6179
6180   if test "x$ac_pt_PKG_CONFIG" = x; then
6181     PKG_CONFIG=""
6182   else
6183     case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6188 esac
6189     PKG_CONFIG=$ac_pt_PKG_CONFIG
6190   fi
6191 else
6192   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6193 fi
6194
6195 fi
6196 if test -n "$PKG_CONFIG"; then
6197         _pkg_min_version=0.9.0
6198         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6199 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6200         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6201                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202 printf "%s\n" "yes" >&6; }
6203         else
6204                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 printf "%s\n" "no" >&6; }
6206                 PKG_CONFIG=""
6207         fi
6208 fi
6209 LIBUUID=
6210 DEPLIBUUID=
6211 STATIC_LIBUUID=
6212 DEPSTATIC_LIBUUID=
6213 PROFILED_LIBUUID=
6214 DEPPROFILED_LIBUUID=
6215 UUID_CMT=
6216 # Check whether --enable-libuuid was given.
6217 if test ${enable_libuuid+y}
6218 then :
6219   enableval=$enable_libuuid; if test "$enableval" = "no"
6220 then
6221         if test -z "$PKG_CONFIG"; then
6222                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6223         fi
6224
6225         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6226 printf %s "checking for uuid_generate in -luuid... " >&6; }
6227 if test ${ac_cv_lib_uuid_uuid_generate+y}
6228 then :
6229   printf %s "(cached) " >&6
6230 else $as_nop
6231   ac_check_lib_save_LIBS=$LIBS
6232 LIBS="-luuid  $LIBS"
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h.  */
6235
6236 /* Override any GCC internal prototype to avoid an error.
6237    Use char because int might match the return type of a GCC
6238    builtin and then its argument prototype would still apply.  */
6239 char uuid_generate ();
6240 int
6241 main (void)
6242 {
6243 return uuid_generate ();
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 if ac_fn_c_try_link "$LINENO"
6249 then :
6250   ac_cv_lib_uuid_uuid_generate=yes
6251 else $as_nop
6252   ac_cv_lib_uuid_uuid_generate=no
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6255     conftest$ac_exeext conftest.$ac_ext
6256 LIBS=$ac_check_lib_save_LIBS
6257 fi
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6259 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6260 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6261 then :
6262   LIBUUID=`$PKG_CONFIG --libs uuid`;
6263                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6264 else $as_nop
6265   as_fn_error $? "external uuid library not found" "$LINENO" 5
6266 fi
6267
6268         PROFILED_LIBUUID=$LIBUUID
6269         UUID_CMT=#
6270         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6271 printf "%s\n" "Disabling private uuid library" >&6; }
6272 else
6273         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6274         DEPLIBUUID=$LIBUUID
6275         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6276         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6277         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6278         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6279         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6280 printf "%s\n" "Enabling private uuid library" >&6; }
6281 fi
6282
6283 else $as_nop
6284   if test -n "$PKG_CONFIG"; then
6285         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6286 printf %s "checking for uuid_generate in -luuid... " >&6; }
6287 if test ${ac_cv_lib_uuid_uuid_generate+y}
6288 then :
6289   printf %s "(cached) " >&6
6290 else $as_nop
6291   ac_check_lib_save_LIBS=$LIBS
6292 LIBS="-luuid  $LIBS"
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h.  */
6295
6296 /* Override any GCC internal prototype to avoid an error.
6297    Use char because int might match the return type of a GCC
6298    builtin and then its argument prototype would still apply.  */
6299 char uuid_generate ();
6300 int
6301 main (void)
6302 {
6303 return uuid_generate ();
6304   ;
6305   return 0;
6306 }
6307 _ACEOF
6308 if ac_fn_c_try_link "$LINENO"
6309 then :
6310   ac_cv_lib_uuid_uuid_generate=yes
6311 else $as_nop
6312   ac_cv_lib_uuid_uuid_generate=no
6313 fi
6314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6315     conftest$ac_exeext conftest.$ac_ext
6316 LIBS=$ac_check_lib_save_LIBS
6317 fi
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6319 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6320 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6321 then :
6322   LIBUUID=`$PKG_CONFIG --libs uuid`;
6323                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6324 fi
6325
6326 fi
6327 if test -n "$LIBUUID"; then
6328         PROFILED_LIBUUID=$LIBUUID
6329         UUID_CMT=#
6330         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6331 printf "%s\n" "Using system uuid by default" >&6; }
6332 else
6333         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6334         DEPLIBUUID=$LIBUUID
6335         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6336         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6337         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6338         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6339         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6340 printf "%s\n" "Enabling private uuid library by default" >&6; }
6341 fi
6342
6343 fi
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6360         if test -n "$ac_tool_prefix"; then
6361   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 printf %s "checking for $ac_word... " >&6; }
6365 if test ${ac_cv_path_PKG_CONFIG+y}
6366 then :
6367   printf %s "(cached) " >&6
6368 else $as_nop
6369   case $PKG_CONFIG in
6370   [\\/]* | ?:[\\/]*)
6371   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6372   ;;
6373   *)
6374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377   IFS=$as_save_IFS
6378   case $as_dir in #(((
6379     '') as_dir=./ ;;
6380     */) ;;
6381     *) as_dir=$as_dir/ ;;
6382   esac
6383     for ac_exec_ext in '' $ac_executable_extensions; do
6384   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6385     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6386     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390   done
6391 IFS=$as_save_IFS
6392
6393   ;;
6394 esac
6395 fi
6396 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6397 if test -n "$PKG_CONFIG"; then
6398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6399 printf "%s\n" "$PKG_CONFIG" >&6; }
6400 else
6401   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 printf "%s\n" "no" >&6; }
6403 fi
6404
6405
6406 fi
6407 if test -z "$ac_cv_path_PKG_CONFIG"; then
6408   ac_pt_PKG_CONFIG=$PKG_CONFIG
6409   # Extract the first word of "pkg-config", so it can be a program name with args.
6410 set dummy pkg-config; ac_word=$2
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6414 then :
6415   printf %s "(cached) " >&6
6416 else $as_nop
6417   case $ac_pt_PKG_CONFIG in
6418   [\\/]* | ?:[\\/]*)
6419   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6420   ;;
6421   *)
6422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   case $as_dir in #(((
6427     '') as_dir=./ ;;
6428     */) ;;
6429     *) as_dir=$as_dir/ ;;
6430   esac
6431     for ac_exec_ext in '' $ac_executable_extensions; do
6432   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6433     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6434     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438   done
6439 IFS=$as_save_IFS
6440
6441   ;;
6442 esac
6443 fi
6444 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6445 if test -n "$ac_pt_PKG_CONFIG"; then
6446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6447 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6448 else
6449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 printf "%s\n" "no" >&6; }
6451 fi
6452
6453   if test "x$ac_pt_PKG_CONFIG" = x; then
6454     PKG_CONFIG=""
6455   else
6456     case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462     PKG_CONFIG=$ac_pt_PKG_CONFIG
6463   fi
6464 else
6465   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6466 fi
6467
6468 fi
6469 if test -n "$PKG_CONFIG"; then
6470         _pkg_min_version=0.9.0
6471         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6472 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6473         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6474                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6475 printf "%s\n" "yes" >&6; }
6476         else
6477                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 printf "%s\n" "no" >&6; }
6479                 PKG_CONFIG=""
6480         fi
6481 fi
6482 LIBBLKID=
6483 DEPLIBBLKID=
6484 STATIC_LIBBLKID=
6485 DEPSTATIC_LIBBLKID=
6486 PROFILED_LIBBLKID=
6487 DEPPROFILED_LIBBLKID=
6488 BLKID_CMT=
6489
6490 # Check whether --enable-libblkid was given.
6491 if test ${enable_libblkid+y}
6492 then :
6493   enableval=$enable_libblkid; if test "$enableval" = "no"
6494 then
6495         if test -z "$PKG_CONFIG"; then
6496                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6497         fi
6498
6499         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6500 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6501 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6502 then :
6503   printf %s "(cached) " >&6
6504 else $as_nop
6505   ac_check_lib_save_LIBS=$LIBS
6506 LIBS="-lblkid -luuid $LIBS"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h.  */
6509
6510 /* Override any GCC internal prototype to avoid an error.
6511    Use char because int might match the return type of a GCC
6512    builtin and then its argument prototype would still apply.  */
6513 char blkid_get_cache ();
6514 int
6515 main (void)
6516 {
6517 return blkid_get_cache ();
6518   ;
6519   return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_c_try_link "$LINENO"
6523 then :
6524   ac_cv_lib_blkid_blkid_get_cache=yes
6525 else $as_nop
6526   ac_cv_lib_blkid_blkid_get_cache=no
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6529     conftest$ac_exeext conftest.$ac_ext
6530 LIBS=$ac_check_lib_save_LIBS
6531 fi
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6533 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6534 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6535 then :
6536   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6537                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6538 else $as_nop
6539   as_fn_error $? "external blkid library not found" "$LINENO" 5
6540 fi
6541
6542         BLKID_CMT=#
6543         PROFILED_LIBBLKID=$LIBBLKID
6544         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6545 printf "%s\n" "Disabling private blkid library" >&6; }
6546 else
6547         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6548         DEPLIBBLKID=$LIBBLKID
6549         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6550         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6551         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6552         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6553         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6554
6555         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6556 printf "%s\n" "Enabling private blkid library" >&6; }
6557 fi
6558
6559 else $as_nop
6560   if test -n "$PKG_CONFIG"; then
6561         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6562 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6563 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6564 then :
6565   printf %s "(cached) " >&6
6566 else $as_nop
6567   ac_check_lib_save_LIBS=$LIBS
6568 LIBS="-lblkid  $LIBS"
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h.  */
6571
6572 /* Override any GCC internal prototype to avoid an error.
6573    Use char because int might match the return type of a GCC
6574    builtin and then its argument prototype would still apply.  */
6575 char blkid_get_cache ();
6576 int
6577 main (void)
6578 {
6579 return blkid_get_cache ();
6580   ;
6581   return 0;
6582 }
6583 _ACEOF
6584 if ac_fn_c_try_link "$LINENO"
6585 then :
6586   ac_cv_lib_blkid_blkid_get_cache=yes
6587 else $as_nop
6588   ac_cv_lib_blkid_blkid_get_cache=no
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6591     conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6593 fi
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6595 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6596 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6597 then :
6598   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6599                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6600 fi
6601
6602 fi
6603 if test -n "$LIBBLKID"; then
6604         BLKID_CMT=#
6605         PROFILED_LIBBLKID=$LIBBLKID
6606         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6607 printf "%s\n" "Using system blkid library by default" >&6; }
6608 else
6609         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6610         DEPLIBBLKID=$LIBBLKID
6611         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6612         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6613         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6614         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6615         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6616
6617         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6618 printf "%s\n" "Enabling private blkid library by default" >&6; }
6619 fi
6620
6621 fi
6622
6623
6624
6625
6626
6627
6628
6629
6630 ALL_CMT=
6631 SUBSET_CMT=
6632 # Check whether --enable-subset was given.
6633 if test ${enable_subset+y}
6634 then :
6635   enableval=$enable_subset; if test "$enableval" = "no"
6636 then
6637         SUBSET_CMT=#
6638         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6639 printf "%s\n" "Disabling subset-only build" >&6; }
6640 else
6641         ALL_CMT=#
6642         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6643 printf "%s\n" "Enabling subset-only-build" >&6; }
6644 fi
6645
6646 fi
6647
6648
6649
6650
6651 # Check whether --enable-backtrace was given.
6652 if test ${enable_backtrace+y}
6653 then :
6654   enableval=$enable_backtrace; if test "$enableval" = "no"
6655 then
6656         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6657 printf "%s\n" "Disabling use of backtrace" >&6; }
6658         printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6659
6660 else
6661         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6662 printf "%s\n" "Enabling use of backtrace" >&6; }
6663 fi
6664
6665 else $as_nop
6666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6667 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6668
6669 fi
6670
6671 # Check whether --enable-debugfs was given.
6672 if test ${enable_debugfs+y}
6673 then :
6674   enableval=$enable_debugfs; if test "$enableval" = "no"
6675 then
6676         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6677 printf "%s\n" "Disabling debugfs support" >&6; }
6678         DEBUGFS_CMT="#"
6679 else
6680         DEBUGFS_CMT=
6681         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6682 printf "%s\n" "Enabling debugfs support" >&6; }
6683 fi
6684
6685 else $as_nop
6686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6687 printf "%s\n" "Enabling debugfs support by default" >&6; }
6688 DEBUGFS_CMT=
6689
6690 fi
6691
6692
6693 # Check whether --enable-imager was given.
6694 if test ${enable_imager+y}
6695 then :
6696   enableval=$enable_imager; if test "$enableval" = "no"
6697 then
6698         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6699 printf "%s\n" "Disabling e2image support" >&6; }
6700         IMAGER_CMT="#"
6701 else
6702         IMAGER_CMT=
6703         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6704 printf "%s\n" "Enabling e2image support" >&6; }
6705 fi
6706
6707 else $as_nop
6708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6709 printf "%s\n" "Enabling e2image support by default" >&6; }
6710 IMAGER_CMT=
6711
6712 fi
6713
6714
6715 # Check whether --enable-resizer was given.
6716 if test ${enable_resizer+y}
6717 then :
6718   enableval=$enable_resizer; if test "$enableval" = "no"
6719 then
6720         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6721 printf "%s\n" "Disabling e2resize support" >&6; }
6722         RESIZER_CMT="#"
6723 else
6724         RESIZER_CMT=
6725         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6726 printf "%s\n" "Enabling e2resize support" >&6; }
6727 fi
6728
6729 else $as_nop
6730   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6731 printf "%s\n" "Enabling e2resize support by default" >&6; }
6732 RESIZER_CMT=
6733
6734 fi
6735
6736
6737 # Check whether --enable-defrag was given.
6738 if test ${enable_defrag+y}
6739 then :
6740   enableval=$enable_defrag; if test "$enableval" = "no"
6741 then
6742         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6743 printf "%s\n" "Disabling e4defrag support" >&6; }
6744         DEFRAG_CMT="#"
6745 else
6746         DEFRAG_CMT=
6747         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6748 printf "%s\n" "Enabling e4defrag support" >&6; }
6749 fi
6750
6751 else $as_nop
6752   if test -z "$WITH_DIET_LIBC"
6753 then
6754         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6755 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6756         DEFRAG_CMT=
6757 else
6758         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6759 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6760         DEFRAG_CMT="#"
6761 fi
6762
6763 fi
6764
6765
6766 # Check whether --enable-fsck was given.
6767 if test ${enable_fsck+y}
6768 then :
6769   enableval=$enable_fsck; if test "$enableval" = "no"
6770 then
6771         FSCK_PROG='' FSCK_MAN=''
6772         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6773 printf "%s\n" "Not building fsck wrapper" >&6; }
6774 else
6775         FSCK_PROG=fsck FSCK_MAN=fsck.8
6776         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6777 printf "%s\n" "Building fsck wrapper" >&6; }
6778 fi
6779
6780 else $as_nop
6781   case "$host_os" in
6782   gnu*)
6783     FSCK_PROG='' FSCK_MAN=''
6784     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6785 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6786     ;;
6787   *)
6788     FSCK_PROG=fsck FSCK_MAN=fsck.8
6789     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6790 printf "%s\n" "Building fsck wrapper by default" >&6; }
6791 esac
6792
6793 fi
6794
6795
6796
6797 # Check whether --enable-e2initrd-helper was given.
6798 if test ${enable_e2initrd_helper+y}
6799 then :
6800   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6801 then
6802         E2INITRD_PROG='' E2INITRD_MAN=''
6803         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6804 printf "%s\n" "Not building e2initrd helper" >&6; }
6805 else
6806         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6807         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6808 printf "%s\n" "Building e2initrd helper" >&6; }
6809 fi
6810
6811 else $as_nop
6812   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6814 printf "%s\n" "Building e2initrd helper by default" >&6; }
6815
6816 fi
6817
6818
6819
6820 # Check whether --enable-tls was given.
6821 if test ${enable_tls+y}
6822 then :
6823   enableval=$enable_tls; if test "$enableval" = "no"
6824 then
6825         try_tls=""
6826         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6827 printf "%s\n" "Disabling thread local support" >&6; }
6828 else
6829         try_tls="yes"
6830         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6831 printf "%s\n" "Enabling thread local support" >&6; }
6832 fi
6833
6834 else $as_nop
6835   if test -n "$WITH_DIET_LIBC"
6836 then
6837         try_tls=""
6838         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6839 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6840 else
6841         try_tls="yes"
6842         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6843 printf "%s\n" "Try using thread local support by default" >&6; }
6844 fi
6845
6846 fi
6847
6848 if test "$try_tls" = "yes"
6849 then
6850
6851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6852 printf %s "checking for thread local storage (TLS) class... " >&6; }
6853   if test ${ac_cv_tls+y}
6854 then :
6855   printf %s "(cached) " >&6
6856 else $as_nop
6857
6858     ax_tls_keywords="__thread __declspec(thread) none"
6859     for ax_tls_keyword in $ax_tls_keywords; do
6860        case $ax_tls_keyword in
6861           none) ac_cv_tls=none ; break ;;
6862           *)
6863              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h.  */
6865 #include <stdlib.h>
6866                  static void
6867                  foo(void) {
6868                  static  $ax_tls_keyword  int bar;
6869                  exit(1);
6870                  }
6871 int
6872 main (void)
6873 {
6874
6875   ;
6876   return 0;
6877 }
6878 _ACEOF
6879 if ac_fn_c_try_compile "$LINENO"
6880 then :
6881   ac_cv_tls=$ax_tls_keyword ; break
6882 else $as_nop
6883   ac_cv_tls=none
6884
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6887           esac
6888     done
6889
6890 fi
6891
6892
6893   if test "$ac_cv_tls" != "none"; then
6894
6895 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6896
6897   fi
6898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6899 printf "%s\n" "$ac_cv_tls" >&6; }
6900
6901 fi
6902
6903 # Check whether --with-pthread was given.
6904 if test ${with_pthread+y}
6905 then :
6906   withval=$with_pthread; if test "$withval" = "no"
6907 then
6908         try_pthread=""
6909         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6910 printf "%s\n" "Disabling pthread support" >&6; }
6911 else
6912         try_pthread="yes"
6913         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6914 printf "%s\n" "Testing for pthread support" >&6; }
6915 fi
6916
6917 else $as_nop
6918   try_pthread="yes"
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6920 printf "%s\n" "Try testing for pthread support by default" >&6; }
6921
6922 fi
6923
6924 if test "$try_pthread" = "yes"
6925 then
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6927 printf %s "checking for a sed that does not truncate output... " >&6; }
6928 if test ${ac_cv_path_SED+y}
6929 then :
6930   printf %s "(cached) " >&6
6931 else $as_nop
6932             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6933      for ac_i in 1 2 3 4 5 6 7; do
6934        ac_script="$ac_script$as_nl$ac_script"
6935      done
6936      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6937      { ac_script=; unset ac_script;}
6938      if test -z "$SED"; then
6939   ac_path_SED_found=false
6940   # Loop through the user's path and test for each of PROGNAME-LIST
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   case $as_dir in #(((
6946     '') as_dir=./ ;;
6947     */) ;;
6948     *) as_dir=$as_dir/ ;;
6949   esac
6950     for ac_prog in sed gsed
6951    do
6952     for ac_exec_ext in '' $ac_executable_extensions; do
6953       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6954       as_fn_executable_p "$ac_path_SED" || continue
6955 # Check for GNU ac_path_SED and select it if it is found.
6956   # Check for GNU $ac_path_SED
6957 case `"$ac_path_SED" --version 2>&1` in
6958 *GNU*)
6959   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6960 *)
6961   ac_count=0
6962   printf %s 0123456789 >"conftest.in"
6963   while :
6964   do
6965     cat "conftest.in" "conftest.in" >"conftest.tmp"
6966     mv "conftest.tmp" "conftest.in"
6967     cp "conftest.in" "conftest.nl"
6968     printf "%s\n" '' >> "conftest.nl"
6969     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6970     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6971     as_fn_arith $ac_count + 1 && ac_count=$as_val
6972     if test $ac_count -gt ${ac_path_SED_max-0}; then
6973       # Best one so far, save it but keep looking for a better one
6974       ac_cv_path_SED="$ac_path_SED"
6975       ac_path_SED_max=$ac_count
6976     fi
6977     # 10*(2^10) chars as input seems more than enough
6978     test $ac_count -gt 10 && break
6979   done
6980   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6981 esac
6982
6983       $ac_path_SED_found && break 3
6984     done
6985   done
6986   done
6987 IFS=$as_save_IFS
6988   if test -z "$ac_cv_path_SED"; then
6989     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6990   fi
6991 else
6992   ac_cv_path_SED=$SED
6993 fi
6994
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6997 printf "%s\n" "$ac_cv_path_SED" >&6; }
6998  SED="$ac_cv_path_SED"
6999   rm -f conftest.sed
7000
7001
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7003 printf %s "checking for grep that handles long lines and -e... " >&6; }
7004 if test ${ac_cv_path_GREP+y}
7005 then :
7006   printf %s "(cached) " >&6
7007 else $as_nop
7008   if test -z "$GREP"; then
7009   ac_path_GREP_found=false
7010   # Loop through the user's path and test for each of PROGNAME-LIST
7011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7013 do
7014   IFS=$as_save_IFS
7015   case $as_dir in #(((
7016     '') as_dir=./ ;;
7017     */) ;;
7018     *) as_dir=$as_dir/ ;;
7019   esac
7020     for ac_prog in grep ggrep
7021    do
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7024       as_fn_executable_p "$ac_path_GREP" || continue
7025 # Check for GNU ac_path_GREP and select it if it is found.
7026   # Check for GNU $ac_path_GREP
7027 case `"$ac_path_GREP" --version 2>&1` in
7028 *GNU*)
7029   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7030 *)
7031   ac_count=0
7032   printf %s 0123456789 >"conftest.in"
7033   while :
7034   do
7035     cat "conftest.in" "conftest.in" >"conftest.tmp"
7036     mv "conftest.tmp" "conftest.in"
7037     cp "conftest.in" "conftest.nl"
7038     printf "%s\n" 'GREP' >> "conftest.nl"
7039     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7040     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7041     as_fn_arith $ac_count + 1 && ac_count=$as_val
7042     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7043       # Best one so far, save it but keep looking for a better one
7044       ac_cv_path_GREP="$ac_path_GREP"
7045       ac_path_GREP_max=$ac_count
7046     fi
7047     # 10*(2^10) chars as input seems more than enough
7048     test $ac_count -gt 10 && break
7049   done
7050   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7051 esac
7052
7053       $ac_path_GREP_found && break 3
7054     done
7055   done
7056   done
7057 IFS=$as_save_IFS
7058   if test -z "$ac_cv_path_GREP"; then
7059     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7060   fi
7061 else
7062   ac_cv_path_GREP=$GREP
7063 fi
7064
7065 fi
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7067 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7068  GREP="$ac_cv_path_GREP"
7069
7070
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7072 printf %s "checking for egrep... " >&6; }
7073 if test ${ac_cv_path_EGREP+y}
7074 then :
7075   printf %s "(cached) " >&6
7076 else $as_nop
7077   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7078    then ac_cv_path_EGREP="$GREP -E"
7079    else
7080      if test -z "$EGREP"; then
7081   ac_path_EGREP_found=false
7082   # Loop through the user's path and test for each of PROGNAME-LIST
7083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7085 do
7086   IFS=$as_save_IFS
7087   case $as_dir in #(((
7088     '') as_dir=./ ;;
7089     */) ;;
7090     *) as_dir=$as_dir/ ;;
7091   esac
7092     for ac_prog in egrep
7093    do
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7096       as_fn_executable_p "$ac_path_EGREP" || continue
7097 # Check for GNU ac_path_EGREP and select it if it is found.
7098   # Check for GNU $ac_path_EGREP
7099 case `"$ac_path_EGREP" --version 2>&1` in
7100 *GNU*)
7101   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7102 *)
7103   ac_count=0
7104   printf %s 0123456789 >"conftest.in"
7105   while :
7106   do
7107     cat "conftest.in" "conftest.in" >"conftest.tmp"
7108     mv "conftest.tmp" "conftest.in"
7109     cp "conftest.in" "conftest.nl"
7110     printf "%s\n" 'EGREP' >> "conftest.nl"
7111     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7112     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7113     as_fn_arith $ac_count + 1 && ac_count=$as_val
7114     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7115       # Best one so far, save it but keep looking for a better one
7116       ac_cv_path_EGREP="$ac_path_EGREP"
7117       ac_path_EGREP_max=$ac_count
7118     fi
7119     # 10*(2^10) chars as input seems more than enough
7120     test $ac_count -gt 10 && break
7121   done
7122   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7123 esac
7124
7125       $ac_path_EGREP_found && break 3
7126     done
7127   done
7128   done
7129 IFS=$as_save_IFS
7130   if test -z "$ac_cv_path_EGREP"; then
7131     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7132   fi
7133 else
7134   ac_cv_path_EGREP=$EGREP
7135 fi
7136
7137    fi
7138 fi
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7140 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7141  EGREP="$ac_cv_path_EGREP"
7142
7143
7144
7145
7146
7147
7148 ac_ext=c
7149 ac_cpp='$CPP $CPPFLAGS'
7150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7153
7154 ax_pthread_ok=no
7155
7156 # We used to check for pthread.h first, but this fails if pthread.h
7157 # requires special compiler flags (e.g. on Tru64 or Sequent).
7158 # It gets checked for in the link test anyway.
7159
7160 # First of all, check if the user has set any of the PTHREAD_LIBS,
7161 # etcetera environment variables, and if threads linking works using
7162 # them:
7163 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7164         ax_pthread_save_CC="$CC"
7165         ax_pthread_save_CFLAGS="$CFLAGS"
7166         ax_pthread_save_LIBS="$LIBS"
7167         if test "x$PTHREAD_CC" != "x"
7168 then :
7169   CC="$PTHREAD_CC"
7170 fi
7171         if test "x$PTHREAD_CXX" != "x"
7172 then :
7173   CXX="$PTHREAD_CXX"
7174 fi
7175         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7176         LIBS="$PTHREAD_LIBS $LIBS"
7177         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7178 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7179         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181
7182 /* Override any GCC internal prototype to avoid an error.
7183    Use char because int might match the return type of a GCC
7184    builtin and then its argument prototype would still apply.  */
7185 char pthread_join ();
7186 int
7187 main (void)
7188 {
7189 return pthread_join ();
7190   ;
7191   return 0;
7192 }
7193 _ACEOF
7194 if ac_fn_c_try_link "$LINENO"
7195 then :
7196   ax_pthread_ok=yes
7197 fi
7198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7199     conftest$ac_exeext conftest.$ac_ext
7200         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7201 printf "%s\n" "$ax_pthread_ok" >&6; }
7202         if test "x$ax_pthread_ok" = "xno"; then
7203                 PTHREAD_LIBS=""
7204                 PTHREAD_CFLAGS=""
7205         fi
7206         CC="$ax_pthread_save_CC"
7207         CFLAGS="$ax_pthread_save_CFLAGS"
7208         LIBS="$ax_pthread_save_LIBS"
7209 fi
7210
7211 # We must check for the threads library under a number of different
7212 # names; the ordering is very important because some systems
7213 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7214 # libraries is broken (non-POSIX).
7215
7216 # Create a list of thread flags to try. Items with a "," contain both
7217 # C compiler flags (before ",") and linker flags (after ","). Other items
7218 # starting with a "-" are C compiler flags, and remaining items are
7219 # library names, except for "none" which indicates that we try without
7220 # any flags at all, and "pthread-config" which is a program returning
7221 # the flags for the Pth emulation library.
7222
7223 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7224
7225 # The ordering *is* (sometimes) important.  Some notes on the
7226 # individual items follow:
7227
7228 # pthreads: AIX (must check this before -lpthread)
7229 # none: in case threads are in libc; should be tried before -Kthread and
7230 #       other compiler flags to prevent continual compiler warnings
7231 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7232 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7233 #           (Note: HP C rejects this with "bad form for `-t' option")
7234 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7235 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7236 #      doesn't hurt to check since this sometimes defines pthreads and
7237 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7238 #      is present but should not be used directly; and before -mthreads,
7239 #      because the compiler interprets this as "-mt" + "-hreads")
7240 # -mthreads: Mingw32/gcc, Lynx/gcc
7241 # pthread: Linux, etcetera
7242 # --thread-safe: KAI C++
7243 # pthread-config: use pthread-config program (for GNU Pth library)
7244
7245 case $host_os in
7246
7247         freebsd*)
7248
7249         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7250         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7251
7252         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7253         ;;
7254
7255         hpux*)
7256
7257         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7258         # multi-threading and also sets -lpthread."
7259
7260         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7261         ;;
7262
7263         openedition*)
7264
7265         # IBM z/OS requires a feature-test macro to be defined in order to
7266         # enable POSIX threads at all, so give the user a hint if this is
7267         # not set. (We don't define these ourselves, as they can affect
7268         # other portions of the system API in unpredictable ways.)
7269
7270         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h.  */
7272
7273 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7274              AX_PTHREAD_ZOS_MISSING
7275 #            endif
7276
7277 _ACEOF
7278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7279   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7280 then :
7281   { 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
7282 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7283 fi
7284 rm -rf conftest*
7285
7286         ;;
7287
7288         solaris*)
7289
7290         # On Solaris (at least, for some versions), libc contains stubbed
7291         # (non-functional) versions of the pthreads routines, so link-based
7292         # tests will erroneously succeed. (N.B.: The stubs are missing
7293         # pthread_cleanup_push, or rather a function called by this macro,
7294         # so we could check for that, but who knows whether they'll stub
7295         # that too in a future libc.)  So we'll check first for the
7296         # standard Solaris way of linking pthreads (-mt -lpthread).
7297
7298         ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7299         ;;
7300 esac
7301
7302 # Are we compiling with Clang?
7303
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7305 printf %s "checking whether $CC is Clang... " >&6; }
7306 if test ${ax_cv_PTHREAD_CLANG+y}
7307 then :
7308   printf %s "(cached) " >&6
7309 else $as_nop
7310   ax_cv_PTHREAD_CLANG=no
7311      # Note that Autoconf sets GCC=yes for Clang as well as GCC
7312      if test "x$GCC" = "xyes"; then
7313         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h.  */
7315 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7316 #            if defined(__clang__) && defined(__llvm__)
7317              AX_PTHREAD_CC_IS_CLANG
7318 #            endif
7319
7320 _ACEOF
7321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7322   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7323 then :
7324   ax_cv_PTHREAD_CLANG=yes
7325 fi
7326 rm -rf conftest*
7327
7328      fi
7329
7330 fi
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7332 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7333 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7334
7335
7336 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7337
7338 # Note that for GCC and Clang -pthread generally implies -lpthread,
7339 # except when -nostdlib is passed.
7340 # This is problematic using libtool to build C++ shared libraries with pthread:
7341 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7342 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7343 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7344 # To solve this, first try -pthread together with -lpthread for GCC
7345
7346 if test "x$GCC" = "xyes"
7347 then :
7348   ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7349 fi
7350
7351 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7352
7353 if test "x$ax_pthread_clang" = "xyes"
7354 then :
7355   ax_pthread_flags="-pthread,-lpthread -pthread"
7356 fi
7357
7358
7359 # The presence of a feature test macro requesting re-entrant function
7360 # definitions is, on some systems, a strong hint that pthreads support is
7361 # correctly enabled
7362
7363 case $host_os in
7364         darwin* | hpux* | linux* | osf* | solaris*)
7365         ax_pthread_check_macro="_REENTRANT"
7366         ;;
7367
7368         aix*)
7369         ax_pthread_check_macro="_THREAD_SAFE"
7370         ;;
7371
7372         *)
7373         ax_pthread_check_macro="--"
7374         ;;
7375 esac
7376 if test "x$ax_pthread_check_macro" = "x--"
7377 then :
7378   ax_pthread_check_cond=0
7379 else $as_nop
7380   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7381 fi
7382
7383
7384 if test "x$ax_pthread_ok" = "xno"; then
7385 for ax_pthread_try_flag in $ax_pthread_flags; do
7386
7387         case $ax_pthread_try_flag in
7388                 none)
7389                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7390 printf %s "checking whether pthreads work without any flags... " >&6; }
7391                 ;;
7392
7393                 *,*)
7394                 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7395                 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7396                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7397 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7398                 ;;
7399
7400                 -*)
7401                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7402 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7403                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7404                 ;;
7405
7406                 pthread-config)
7407                 # Extract the first word of "pthread-config", so it can be a program name with args.
7408 set dummy pthread-config; ac_word=$2
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 printf %s "checking for $ac_word... " >&6; }
7411 if test ${ac_cv_prog_ax_pthread_config+y}
7412 then :
7413   printf %s "(cached) " >&6
7414 else $as_nop
7415   if test -n "$ax_pthread_config"; then
7416   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   case $as_dir in #(((
7423     '') as_dir=./ ;;
7424     */) ;;
7425     *) as_dir=$as_dir/ ;;
7426   esac
7427     for ac_exec_ext in '' $ac_executable_extensions; do
7428   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7429     ac_cv_prog_ax_pthread_config="yes"
7430     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434   done
7435 IFS=$as_save_IFS
7436
7437   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7438 fi
7439 fi
7440 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7441 if test -n "$ax_pthread_config"; then
7442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7443 printf "%s\n" "$ax_pthread_config" >&6; }
7444 else
7445   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 printf "%s\n" "no" >&6; }
7447 fi
7448
7449
7450                 if test "x$ax_pthread_config" = "xno"
7451 then :
7452   continue
7453 fi
7454                 PTHREAD_CFLAGS="`pthread-config --cflags`"
7455                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7456                 ;;
7457
7458                 *)
7459                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7460 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7461                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7462                 ;;
7463         esac
7464
7465         ax_pthread_save_CFLAGS="$CFLAGS"
7466         ax_pthread_save_LIBS="$LIBS"
7467         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7468         LIBS="$PTHREAD_LIBS $LIBS"
7469
7470         # Check for various functions.  We must include pthread.h,
7471         # since some functions may be macros.  (On the Sequent, we
7472         # need a special flag -Kthread to make this header compile.)
7473         # We check for pthread_join because it is in -lpthread on IRIX
7474         # while pthread_create is in libc.  We check for pthread_attr_init
7475         # due to DEC craziness with -lpthreads.  We check for
7476         # pthread_cleanup_push because it is one of the few pthread
7477         # functions on Solaris that doesn't have a non-functional libc stub.
7478         # We try pthread_create on general principles.
7479
7480         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h.  */
7482 #include <pthread.h>
7483 #                       if $ax_pthread_check_cond
7484 #                        error "$ax_pthread_check_macro must be defined"
7485 #                       endif
7486                         static void *some_global = NULL;
7487                         static void routine(void *a)
7488                           {
7489                              /* To avoid any unused-parameter or
7490                                 unused-but-set-parameter warning.  */
7491                              some_global = a;
7492                           }
7493                         static void *start_routine(void *a) { return a; }
7494 int
7495 main (void)
7496 {
7497 pthread_t th; pthread_attr_t attr;
7498                         pthread_create(&th, 0, start_routine, 0);
7499                         pthread_join(th, 0);
7500                         pthread_attr_init(&attr);
7501                         pthread_cleanup_push(routine, 0);
7502                         pthread_cleanup_pop(0) /* ; */
7503   ;
7504   return 0;
7505 }
7506 _ACEOF
7507 if ac_fn_c_try_link "$LINENO"
7508 then :
7509   ax_pthread_ok=yes
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7512     conftest$ac_exeext conftest.$ac_ext
7513
7514         CFLAGS="$ax_pthread_save_CFLAGS"
7515         LIBS="$ax_pthread_save_LIBS"
7516
7517         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7518 printf "%s\n" "$ax_pthread_ok" >&6; }
7519         if test "x$ax_pthread_ok" = "xyes"
7520 then :
7521   break
7522 fi
7523
7524         PTHREAD_LIBS=""
7525         PTHREAD_CFLAGS=""
7526 done
7527 fi
7528
7529
7530 # Clang needs special handling, because older versions handle the -pthread
7531 # option in a rather... idiosyncratic way
7532
7533 if test "x$ax_pthread_clang" = "xyes"; then
7534
7535         # Clang takes -pthread; it has never supported any other flag
7536
7537         # (Note 1: This will need to be revisited if a system that Clang
7538         # supports has POSIX threads in a separate library.  This tends not
7539         # to be the way of modern systems, but it's conceivable.)
7540
7541         # (Note 2: On some systems, notably Darwin, -pthread is not needed
7542         # to get POSIX threads support; the API is always present and
7543         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7544         # -pthread does define _REENTRANT, and while the Darwin headers
7545         # ignore this macro, third-party headers might not.)
7546
7547         # However, older versions of Clang make a point of warning the user
7548         # that, in an invocation where only linking and no compilation is
7549         # taking place, the -pthread option has no effect ("argument unused
7550         # during compilation").  They expect -pthread to be passed in only
7551         # when source code is being compiled.
7552         #
7553         # Problem is, this is at odds with the way Automake and most other
7554         # C build frameworks function, which is that the same flags used in
7555         # compilation (CFLAGS) are also used in linking.  Many systems
7556         # supported by AX_PTHREAD require exactly this for POSIX threads
7557         # support, and in fact it is often not straightforward to specify a
7558         # flag that is used only in the compilation phase and not in
7559         # linking.  Such a scenario is extremely rare in practice.
7560         #
7561         # Even though use of the -pthread flag in linking would only print
7562         # a warning, this can be a nuisance for well-run software projects
7563         # that build with -Werror.  So if the active version of Clang has
7564         # this misfeature, we search for an option to squash it.
7565
7566         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7567 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7568 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7569 then :
7570   printf %s "(cached) " >&6
7571 else $as_nop
7572   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7573              # Create an alternate version of $ac_link that compiles and
7574              # links in two steps (.c -> .o, .o -> exe) instead of one
7575              # (.c -> exe), because the warning occurs only in the second
7576              # step
7577              ax_pthread_save_ac_link="$ac_link"
7578              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7579              ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7580              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7581              ax_pthread_save_CFLAGS="$CFLAGS"
7582              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7583                 if test "x$ax_pthread_try" = "xunknown"
7584 then :
7585   break
7586 fi
7587                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7588                 ac_link="$ax_pthread_save_ac_link"
7589                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h.  */
7591 int main(void){return 0;}
7592 _ACEOF
7593 if ac_fn_c_try_link "$LINENO"
7594 then :
7595   ac_link="$ax_pthread_2step_ac_link"
7596                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h.  */
7598 int main(void){return 0;}
7599 _ACEOF
7600 if ac_fn_c_try_link "$LINENO"
7601 then :
7602   break
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7605     conftest$ac_exeext conftest.$ac_ext
7606
7607 fi
7608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7609     conftest$ac_exeext conftest.$ac_ext
7610              done
7611              ac_link="$ax_pthread_save_ac_link"
7612              CFLAGS="$ax_pthread_save_CFLAGS"
7613              if test "x$ax_pthread_try" = "x"
7614 then :
7615   ax_pthread_try=no
7616 fi
7617              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7618
7619 fi
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7621 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7622
7623         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7624                 no | unknown) ;;
7625                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7626         esac
7627
7628 fi # $ax_pthread_clang = yes
7629
7630
7631
7632 # Various other checks:
7633 if test "x$ax_pthread_ok" = "xyes"; then
7634         ax_pthread_save_CFLAGS="$CFLAGS"
7635         ax_pthread_save_LIBS="$LIBS"
7636         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7637         LIBS="$PTHREAD_LIBS $LIBS"
7638
7639         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7640         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7641 printf %s "checking for joinable pthread attribute... " >&6; }
7642 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7643 then :
7644   printf %s "(cached) " >&6
7645 else $as_nop
7646   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7647              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7648                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h.  */
7650 #include <pthread.h>
7651 int
7652 main (void)
7653 {
7654 int attr = $ax_pthread_attr; return attr /* ; */
7655   ;
7656   return 0;
7657 }
7658 _ACEOF
7659 if ac_fn_c_try_link "$LINENO"
7660 then :
7661   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7664     conftest$ac_exeext conftest.$ac_ext
7665              done
7666
7667 fi
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7669 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7670         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7671                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7672                test "x$ax_pthread_joinable_attr_defined" != "xyes"
7673 then :
7674
7675 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7676
7677                ax_pthread_joinable_attr_defined=yes
7678
7679 fi
7680
7681         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7682 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7683 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7684 then :
7685   printf %s "(cached) " >&6
7686 else $as_nop
7687   ax_cv_PTHREAD_SPECIAL_FLAGS=no
7688              case $host_os in
7689              solaris*)
7690              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7691              ;;
7692              esac
7693
7694 fi
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7696 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7697         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7698                test "x$ax_pthread_special_flags_added" != "xyes"
7699 then :
7700   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7701                ax_pthread_special_flags_added=yes
7702 fi
7703
7704         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7705 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7706 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7707 then :
7708   printf %s "(cached) " >&6
7709 else $as_nop
7710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h.  */
7712 #include <pthread.h>
7713 int
7714 main (void)
7715 {
7716 int i = PTHREAD_PRIO_INHERIT;
7717                                                return i;
7718   ;
7719   return 0;
7720 }
7721 _ACEOF
7722 if ac_fn_c_try_link "$LINENO"
7723 then :
7724   ax_cv_PTHREAD_PRIO_INHERIT=yes
7725 else $as_nop
7726   ax_cv_PTHREAD_PRIO_INHERIT=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7729     conftest$ac_exeext conftest.$ac_ext
7730
7731 fi
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7733 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7734         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7735                test "x$ax_pthread_prio_inherit_defined" != "xyes"
7736 then :
7737
7738 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7739
7740                ax_pthread_prio_inherit_defined=yes
7741
7742 fi
7743
7744         CFLAGS="$ax_pthread_save_CFLAGS"
7745         LIBS="$ax_pthread_save_LIBS"
7746
7747         # More AIX lossage: compile with *_r variant
7748         if test "x$GCC" != "xyes"; then
7749             case $host_os in
7750                 aix*)
7751                 case "x/$CC" in #(
7752   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7753     #handle absolute path differently from PATH based program lookup
7754                      case "x$CC" in #(
7755   x/*) :
7756
7757                            if as_fn_executable_p ${CC}_r
7758 then :
7759   PTHREAD_CC="${CC}_r"
7760 fi
7761                            if test "x${CXX}" != "x"
7762 then :
7763   if as_fn_executable_p ${CXX}_r
7764 then :
7765   PTHREAD_CXX="${CXX}_r"
7766 fi
7767 fi
7768                           ;; #(
7769   *) :
7770
7771                            for ac_prog in ${CC}_r
7772 do
7773   # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 printf %s "checking for $ac_word... " >&6; }
7777 if test ${ac_cv_prog_PTHREAD_CC+y}
7778 then :
7779   printf %s "(cached) " >&6
7780 else $as_nop
7781   if test -n "$PTHREAD_CC"; then
7782   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   case $as_dir in #(((
7789     '') as_dir=./ ;;
7790     */) ;;
7791     *) as_dir=$as_dir/ ;;
7792   esac
7793     for ac_exec_ext in '' $ac_executable_extensions; do
7794   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7795     ac_cv_prog_PTHREAD_CC="$ac_prog"
7796     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7797     break 2
7798   fi
7799 done
7800   done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7806 if test -n "$PTHREAD_CC"; then
7807   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7808 printf "%s\n" "$PTHREAD_CC" >&6; }
7809 else
7810   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 printf "%s\n" "no" >&6; }
7812 fi
7813
7814
7815   test -n "$PTHREAD_CC" && break
7816 done
7817 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7818
7819                            if test "x${CXX}" != "x"
7820 then :
7821   for ac_prog in ${CXX}_r
7822 do
7823   # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 printf %s "checking for $ac_word... " >&6; }
7827 if test ${ac_cv_prog_PTHREAD_CXX+y}
7828 then :
7829   printf %s "(cached) " >&6
7830 else $as_nop
7831   if test -n "$PTHREAD_CXX"; then
7832   ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837   IFS=$as_save_IFS
7838   case $as_dir in #(((
7839     '') as_dir=./ ;;
7840     */) ;;
7841     *) as_dir=$as_dir/ ;;
7842   esac
7843     for ac_exec_ext in '' $ac_executable_extensions; do
7844   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7845     ac_cv_prog_PTHREAD_CXX="$ac_prog"
7846     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850   done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7856 if test -n "$PTHREAD_CXX"; then
7857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7858 printf "%s\n" "$PTHREAD_CXX" >&6; }
7859 else
7860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 printf "%s\n" "no" >&6; }
7862 fi
7863
7864
7865   test -n "$PTHREAD_CXX" && break
7866 done
7867 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7868
7869 fi
7870
7871                       ;;
7872 esac
7873                      ;; #(
7874   *) :
7875      ;;
7876 esac
7877                 ;;
7878             esac
7879         fi
7880 fi
7881
7882 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7883 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7884
7885
7886
7887
7888
7889
7890 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7891 if test "x$ax_pthread_ok" = "xyes"; then
7892
7893 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7894
7895         :
7896 else
7897         ax_pthread_ok=no
7898
7899 fi
7900 ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906
7907 else
7908 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7909
7910 fi
7911
7912 # Check whether --enable-uuidd was given.
7913 if test ${enable_uuidd+y}
7914 then :
7915   enableval=$enable_uuidd; if test "$enableval" = "no"
7916 then
7917         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7918 printf "%s\n" "Not building uuidd" >&6; }
7919         UUIDD_CMT="#"
7920 else
7921         printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7922
7923         UUIDD_CMT=""
7924         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7925 printf "%s\n" "Building uuidd" >&6; }
7926 fi
7927
7928 else $as_nop
7929   printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7930
7931 if test -z "$UUID_CMT"
7932 then
7933         UUIDD_CMT=""
7934         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7935 printf "%s\n" "Building uuidd by default" >&6; }
7936 else
7937         UUIDD_CMT="#"
7938         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7939 printf "%s\n" "Disabling uuidd by default" >&6; }
7940 fi
7941
7942 fi
7943
7944
7945
7946 # Check whether --enable-mmp was given.
7947 if test ${enable_mmp+y}
7948 then :
7949   enableval=$enable_mmp; if test "$enableval" = "no"
7950 then
7951         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7952 printf "%s\n" "Disabling mmp support" >&6; }
7953 else
7954         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7955 printf "%s\n" "Enabling mmp support" >&6; }
7956         printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7957
7958 fi
7959
7960 else $as_nop
7961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7962 printf "%s\n" "Enabling mmp support by default" >&6; }
7963 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7964
7965
7966 fi
7967
7968
7969 # Check whether --enable-tdb was given.
7970 if test ${enable_tdb+y}
7971 then :
7972   enableval=$enable_tdb;
7973 if test "$enableval" = "no"
7974 then
7975         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7976 printf "%s\n" "Disabling tdb support" >&6; }
7977         CONFIG_TDB=0
7978 else
7979         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7980 printf "%s\n" "Enabling tdb support" >&6; }
7981         CONFIG_TDB=1
7982 fi
7983
7984
7985 else $as_nop
7986
7987 case "$host_os" in
7988 mingw*)
7989         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7990 printf "%s\n" "Disabling tdb support by default" >&6; }
7991         CONFIG_TDB=0
7992         ;;
7993 *)
7994         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7995 printf "%s\n" "Enabling tdb support by default" >&6; }
7996         CONFIG_TDB=1
7997         ;;
7998 esac
7999
8000
8001 fi
8002
8003 if test "$CONFIG_TDB" = "1"
8004 then
8005         printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8006
8007         TDB_CMT=""
8008         TDB_MAN_COMMENT=""
8009 else
8010         TDB_CMT="#"
8011         TDB_MAN_COMMENT='.\"'
8012 fi
8013
8014
8015
8016 # Check whether --enable-bmap-stats was given.
8017 if test ${enable_bmap_stats+y}
8018 then :
8019   enableval=$enable_bmap_stats; if test "$enableval" = "no"
8020 then
8021         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8022 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8023 else
8024         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8025 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8026         printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8027
8028 fi
8029
8030 else $as_nop
8031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8032 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8033 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8034
8035
8036 fi
8037
8038
8039 # Check whether --enable-bmap-stats-ops was given.
8040 if test ${enable_bmap_stats_ops+y}
8041 then :
8042   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8043 then
8044         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8045 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8046 else
8047                 if test "x${enable_bmap_stats}" = "xno"
8048 then :
8049   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8050 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8051 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8052 See \`config.log' for more details" "$LINENO" 5; }
8053 fi
8054
8055         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8056 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8057         printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8058
8059 fi
8060
8061 else $as_nop
8062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8063 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8064
8065 fi
8066
8067 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8068
8069 GETTEXT_PACKAGE=e2fsprogs
8070 PACKAGE=e2fsprogs
8071 VERSION="$E2FSPROGS_VERSION"
8072 VERSION=0.14.1
8073
8074 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8075
8076
8077 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8078
8079
8080
8081
8082
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8084 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8085 set x ${MAKE-make}
8086 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8087 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8088 then :
8089   printf %s "(cached) " >&6
8090 else $as_nop
8091   cat >conftest.make <<\_ACEOF
8092 SHELL = /bin/sh
8093 all:
8094         @echo '@@@%%%=$(MAKE)=@@@%%%'
8095 _ACEOF
8096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8098   *@@@%%%=?*=@@@%%%*)
8099     eval ac_cv_prog_make_${ac_make}_set=yes;;
8100   *)
8101     eval ac_cv_prog_make_${ac_make}_set=no;;
8102 esac
8103 rm -f conftest.make
8104 fi
8105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8106   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8107 printf "%s\n" "yes" >&6; }
8108   SET_MAKE=
8109 else
8110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 printf "%s\n" "no" >&6; }
8112   SET_MAKE="MAKE=${MAKE-make}"
8113 fi
8114
8115
8116   # Find a good install program.  We prefer a C program (faster),
8117 # so one script is as good as another.  But avoid the broken or
8118 # incompatible versions:
8119 # SysV /etc/install, /usr/sbin/install
8120 # SunOS /usr/etc/install
8121 # IRIX /sbin/install
8122 # AIX /bin/install
8123 # AmigaOS /C/install, which installs bootblocks on floppy discs
8124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8127 # OS/2's system install, which has a completely different semantic
8128 # ./install, which can be erroneously created by make from ./install.sh.
8129 # Reject install programs that cannot install multiple files.
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8131 printf %s "checking for a BSD-compatible install... " >&6; }
8132 if test -z "$INSTALL"; then
8133 if test ${ac_cv_path_install+y}
8134 then :
8135   printf %s "(cached) " >&6
8136 else $as_nop
8137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8139 do
8140   IFS=$as_save_IFS
8141   case $as_dir in #(((
8142     '') as_dir=./ ;;
8143     */) ;;
8144     *) as_dir=$as_dir/ ;;
8145   esac
8146     # Account for fact that we put trailing slashes in our PATH walk.
8147 case $as_dir in #((
8148   ./ | /[cC]/* | \
8149   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8150   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8151   /usr/ucb/* ) ;;
8152   *)
8153     # OSF1 and SCO ODT 3.0 have their own names for install.
8154     # Don't use installbsd from OSF since it installs stuff as root
8155     # by default.
8156     for ac_prog in ginstall scoinst install; do
8157       for ac_exec_ext in '' $ac_executable_extensions; do
8158         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8159           if test $ac_prog = install &&
8160             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8161             # AIX install.  It has an incompatible calling convention.
8162             :
8163           elif test $ac_prog = install &&
8164             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8165             # program-specific install script used by HP pwplus--don't use.
8166             :
8167           else
8168             rm -rf conftest.one conftest.two conftest.dir
8169             echo one > conftest.one
8170             echo two > conftest.two
8171             mkdir conftest.dir
8172             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8173               test -s conftest.one && test -s conftest.two &&
8174               test -s conftest.dir/conftest.one &&
8175               test -s conftest.dir/conftest.two
8176             then
8177               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8178               break 3
8179             fi
8180           fi
8181         fi
8182       done
8183     done
8184     ;;
8185 esac
8186
8187   done
8188 IFS=$as_save_IFS
8189
8190 rm -rf conftest.one conftest.two conftest.dir
8191
8192 fi
8193   if test ${ac_cv_path_install+y}; then
8194     INSTALL=$ac_cv_path_install
8195   else
8196     # As a last resort, use the slow shell script.  Don't cache a
8197     # value for INSTALL within a source directory, because that will
8198     # break other packages using the cache if that directory is
8199     # removed, or if the value is a relative name.
8200     INSTALL=$ac_install_sh
8201   fi
8202 fi
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8204 printf "%s\n" "$INSTALL" >&6; }
8205
8206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8207 # It thinks the first close brace ends the variable substitution.
8208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8209
8210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8211
8212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8213
8214
8215   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8216 printf %s "checking for a race-free mkdir -p... " >&6; }
8217 if test -z "$MKDIR_P"; then
8218   if test ${ac_cv_path_mkdir+y}
8219 then :
8220   printf %s "(cached) " >&6
8221 else $as_nop
8222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8224 do
8225   IFS=$as_save_IFS
8226   case $as_dir in #(((
8227     '') as_dir=./ ;;
8228     */) ;;
8229     *) as_dir=$as_dir/ ;;
8230   esac
8231     for ac_prog in mkdir gmkdir; do
8232          for ac_exec_ext in '' $ac_executable_extensions; do
8233            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8234            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8235              'mkdir ('*'coreutils) '* | \
8236              'BusyBox '* | \
8237              'mkdir (fileutils) '4.1*)
8238                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8239                break 3;;
8240            esac
8241          done
8242        done
8243   done
8244 IFS=$as_save_IFS
8245
8246 fi
8247
8248   test -d ./--version && rmdir ./--version
8249   if test ${ac_cv_path_mkdir+y}; then
8250     MKDIR_P="$ac_cv_path_mkdir -p"
8251   else
8252     # As a last resort, use the slow shell script.  Don't cache a
8253     # value for MKDIR_P within a source directory, because that will
8254     # break other packages using the cache if that directory is
8255     # removed, or if the value is a relative name.
8256     MKDIR_P="$ac_install_sh -d"
8257   fi
8258 fi
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8260 printf "%s\n" "$MKDIR_P" >&6; }
8261
8262
8263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8264 printf %s "checking whether NLS is requested... " >&6; }
8265     # Check whether --enable-nls was given.
8266 if test ${enable_nls+y}
8267 then :
8268   enableval=$enable_nls; USE_NLS=$enableval
8269 else $as_nop
8270   USE_NLS=yes
8271 fi
8272
8273   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8274 printf "%s\n" "$USE_NLS" >&6; }
8275
8276
8277
8278
8279       GETTEXT_MACRO_VERSION=0.20
8280
8281
8282
8283
8284 # Prepare PATH_SEPARATOR.
8285 # The user is always right.
8286 if test "${PATH_SEPARATOR+set}" != set; then
8287   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8288   # contains only /bin. Note that ksh looks also at the FPATH variable,
8289   # so we have to set that as well for the test.
8290   PATH_SEPARATOR=:
8291   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8292     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8293            || PATH_SEPARATOR=';'
8294        }
8295 fi
8296
8297 # Find out how to test for executable files. Don't use a zero-byte file,
8298 # as systems may use methods other than mode bits to determine executability.
8299 cat >conf$$.file <<_ASEOF
8300 #! /bin/sh
8301 exit 0
8302 _ASEOF
8303 chmod +x conf$$.file
8304 if test -x conf$$.file >/dev/null 2>&1; then
8305   ac_executable_p="test -x"
8306 else
8307   ac_executable_p="test -f"
8308 fi
8309 rm -f conf$$.file
8310
8311 # Extract the first word of "msgfmt", so it can be a program name with args.
8312 set dummy msgfmt; ac_word=$2
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 printf %s "checking for $ac_word... " >&6; }
8315 if test ${ac_cv_path_MSGFMT+y}
8316 then :
8317   printf %s "(cached) " >&6
8318 else $as_nop
8319   case "$MSGFMT" in
8320   [\\/]* | ?:[\\/]*)
8321     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8322     ;;
8323   *)
8324     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8325     for ac_dir in $PATH; do
8326       IFS="$ac_save_IFS"
8327       test -z "$ac_dir" && ac_dir=.
8328       for ac_exec_ext in '' $ac_executable_extensions; do
8329         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8330           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8331           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8332      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8333             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8334             break 2
8335           fi
8336         fi
8337       done
8338     done
8339     IFS="$ac_save_IFS"
8340   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8341     ;;
8342 esac
8343 fi
8344 MSGFMT="$ac_cv_path_MSGFMT"
8345 if test "$MSGFMT" != ":"; then
8346   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8347 printf "%s\n" "$MSGFMT" >&6; }
8348 else
8349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 printf "%s\n" "no" >&6; }
8351 fi
8352
8353   # Extract the first word of "gmsgfmt", so it can be a program name with args.
8354 set dummy gmsgfmt; ac_word=$2
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 printf %s "checking for $ac_word... " >&6; }
8357 if test ${ac_cv_path_GMSGFMT+y}
8358 then :
8359   printf %s "(cached) " >&6
8360 else $as_nop
8361   case $GMSGFMT in
8362   [\\/]* | ?:[\\/]*)
8363   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8364   ;;
8365   *)
8366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   case $as_dir in #(((
8371     '') as_dir=./ ;;
8372     */) ;;
8373     *) as_dir=$as_dir/ ;;
8374   esac
8375     for ac_exec_ext in '' $ac_executable_extensions; do
8376   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8377     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8378     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382   done
8383 IFS=$as_save_IFS
8384
8385   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8386   ;;
8387 esac
8388 fi
8389 GMSGFMT=$ac_cv_path_GMSGFMT
8390 if test -n "$GMSGFMT"; then
8391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8392 printf "%s\n" "$GMSGFMT" >&6; }
8393 else
8394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 printf "%s\n" "no" >&6; }
8396 fi
8397
8398
8399
8400     case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8401     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8402     *) GMSGFMT_015=$GMSGFMT ;;
8403   esac
8404
8405
8406
8407 # Prepare PATH_SEPARATOR.
8408 # The user is always right.
8409 if test "${PATH_SEPARATOR+set}" != set; then
8410   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8411   # contains only /bin. Note that ksh looks also at the FPATH variable,
8412   # so we have to set that as well for the test.
8413   PATH_SEPARATOR=:
8414   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8415     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8416            || PATH_SEPARATOR=';'
8417        }
8418 fi
8419
8420 # Find out how to test for executable files. Don't use a zero-byte file,
8421 # as systems may use methods other than mode bits to determine executability.
8422 cat >conf$$.file <<_ASEOF
8423 #! /bin/sh
8424 exit 0
8425 _ASEOF
8426 chmod +x conf$$.file
8427 if test -x conf$$.file >/dev/null 2>&1; then
8428   ac_executable_p="test -x"
8429 else
8430   ac_executable_p="test -f"
8431 fi
8432 rm -f conf$$.file
8433
8434 # Extract the first word of "xgettext", so it can be a program name with args.
8435 set dummy xgettext; ac_word=$2
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 printf %s "checking for $ac_word... " >&6; }
8438 if test ${ac_cv_path_XGETTEXT+y}
8439 then :
8440   printf %s "(cached) " >&6
8441 else $as_nop
8442   case "$XGETTEXT" in
8443   [\\/]* | ?:[\\/]*)
8444     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8445     ;;
8446   *)
8447     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8448     for ac_dir in $PATH; do
8449       IFS="$ac_save_IFS"
8450       test -z "$ac_dir" && ac_dir=.
8451       for ac_exec_ext in '' $ac_executable_extensions; do
8452         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8453           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8454           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8455      (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
8456             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8457             break 2
8458           fi
8459         fi
8460       done
8461     done
8462     IFS="$ac_save_IFS"
8463   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8464     ;;
8465 esac
8466 fi
8467 XGETTEXT="$ac_cv_path_XGETTEXT"
8468 if test "$XGETTEXT" != ":"; then
8469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8470 printf "%s\n" "$XGETTEXT" >&6; }
8471 else
8472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 printf "%s\n" "no" >&6; }
8474 fi
8475
8476     rm -f messages.po
8477
8478     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8479     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8480     *) XGETTEXT_015=$XGETTEXT ;;
8481   esac
8482
8483
8484
8485 # Prepare PATH_SEPARATOR.
8486 # The user is always right.
8487 if test "${PATH_SEPARATOR+set}" != set; then
8488   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8489   # contains only /bin. Note that ksh looks also at the FPATH variable,
8490   # so we have to set that as well for the test.
8491   PATH_SEPARATOR=:
8492   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8493     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8494            || PATH_SEPARATOR=';'
8495        }
8496 fi
8497
8498 # Find out how to test for executable files. Don't use a zero-byte file,
8499 # as systems may use methods other than mode bits to determine executability.
8500 cat >conf$$.file <<_ASEOF
8501 #! /bin/sh
8502 exit 0
8503 _ASEOF
8504 chmod +x conf$$.file
8505 if test -x conf$$.file >/dev/null 2>&1; then
8506   ac_executable_p="test -x"
8507 else
8508   ac_executable_p="test -f"
8509 fi
8510 rm -f conf$$.file
8511
8512 # Extract the first word of "msgmerge", so it can be a program name with args.
8513 set dummy msgmerge; ac_word=$2
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 printf %s "checking for $ac_word... " >&6; }
8516 if test ${ac_cv_path_MSGMERGE+y}
8517 then :
8518   printf %s "(cached) " >&6
8519 else $as_nop
8520   case "$MSGMERGE" in
8521   [\\/]* | ?:[\\/]*)
8522     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8523     ;;
8524   *)
8525     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8526     for ac_dir in $PATH; do
8527       IFS="$ac_save_IFS"
8528       test -z "$ac_dir" && ac_dir=.
8529       for ac_exec_ext in '' $ac_executable_extensions; do
8530         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8531           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8532           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8533             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8534             break 2
8535           fi
8536         fi
8537       done
8538     done
8539     IFS="$ac_save_IFS"
8540   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8541     ;;
8542 esac
8543 fi
8544 MSGMERGE="$ac_cv_path_MSGMERGE"
8545 if test "$MSGMERGE" != ":"; then
8546   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8547 printf "%s\n" "$MSGMERGE" >&6; }
8548 else
8549   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 printf "%s\n" "no" >&6; }
8551 fi
8552
8553
8554     if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8555     MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8556   else
8557         if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8558       MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8559     else
8560                         MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8561     fi
8562   fi
8563
8564
8565     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8566
8567
8568   ac_config_commands="$ac_config_commands po-directories"
8569
8570
8571
8572       if test "X$prefix" = "XNONE"; then
8573     acl_final_prefix="$ac_default_prefix"
8574   else
8575     acl_final_prefix="$prefix"
8576   fi
8577   if test "X$exec_prefix" = "XNONE"; then
8578     acl_final_exec_prefix='${prefix}'
8579   else
8580     acl_final_exec_prefix="$exec_prefix"
8581   fi
8582   acl_save_prefix="$prefix"
8583   prefix="$acl_final_prefix"
8584   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8585   prefix="$acl_save_prefix"
8586
8587
8588
8589 # Check whether --with-gnu-ld was given.
8590 if test ${with_gnu_ld+y}
8591 then :
8592   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8593 else $as_nop
8594   with_gnu_ld=no
8595 fi
8596
8597 # Prepare PATH_SEPARATOR.
8598 # The user is always right.
8599 if test "${PATH_SEPARATOR+set}" != set; then
8600   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8601   # contains only /bin. Note that ksh looks also at the FPATH variable,
8602   # so we have to set that as well for the test.
8603   PATH_SEPARATOR=:
8604   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8605     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8606            || PATH_SEPARATOR=';'
8607        }
8608 fi
8609
8610 if test -n "$LD"; then
8611   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8612 printf %s "checking for ld... " >&6; }
8613 elif test "$GCC" = yes; then
8614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8615 printf %s "checking for ld used by $CC... " >&6; }
8616 elif test "$with_gnu_ld" = yes; then
8617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8618 printf %s "checking for GNU ld... " >&6; }
8619 else
8620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8621 printf %s "checking for non-GNU ld... " >&6; }
8622 fi
8623 if test -n "$LD"; then
8624   # Let the user override the test with a path.
8625   :
8626 else
8627   if test ${acl_cv_path_LD+y}
8628 then :
8629   printf %s "(cached) " >&6
8630 else $as_nop
8631
8632     acl_cv_path_LD= # Final result of this test
8633     ac_prog=ld # Program to search in $PATH
8634     if test "$GCC" = yes; then
8635       # Check if gcc -print-prog-name=ld gives a path.
8636       case $host in
8637         *-*-mingw*)
8638           # gcc leaves a trailing carriage return which upsets mingw
8639           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8640         *)
8641           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8642       esac
8643       case $acl_output in
8644         # Accept absolute paths.
8645         [\\/]* | ?:[\\/]*)
8646           re_direlt='/[^/][^/]*/\.\./'
8647           # Canonicalize the pathname of ld
8648           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8649           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8650             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8651           done
8652           # Got the pathname. No search in PATH is needed.
8653           acl_cv_path_LD="$acl_output"
8654           ac_prog=
8655           ;;
8656         "")
8657           # If it fails, then pretend we aren't using GCC.
8658           ;;
8659         *)
8660           # If it is relative, then search for the first ld in PATH.
8661           with_gnu_ld=unknown
8662           ;;
8663       esac
8664     fi
8665     if test -n "$ac_prog"; then
8666       # Search for $ac_prog in $PATH.
8667       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8668       for ac_dir in $PATH; do
8669         IFS="$acl_save_ifs"
8670         test -z "$ac_dir" && ac_dir=.
8671         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8672           acl_cv_path_LD="$ac_dir/$ac_prog"
8673           # Check to see if the program is GNU ld.  I'd rather use --version,
8674           # but apparently some variants of GNU ld only accept -v.
8675           # Break only if it was the GNU/non-GNU ld that we prefer.
8676           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8677             *GNU* | *'with BFD'*)
8678               test "$with_gnu_ld" != no && break
8679               ;;
8680             *)
8681               test "$with_gnu_ld" != yes && break
8682               ;;
8683           esac
8684         fi
8685       done
8686       IFS="$acl_save_ifs"
8687     fi
8688     case $host in
8689       *-*-aix*)
8690         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h.  */
8692 #if defined __powerpc64__ || defined _ARCH_PPC64
8693                 int ok;
8694                #else
8695                 error fail
8696                #endif
8697
8698 _ACEOF
8699 if ac_fn_c_try_compile "$LINENO"
8700 then :
8701   # The compiler produces 64-bit code. Add option '-b64' so that the
8702            # linker groks 64-bit object files.
8703            case "$acl_cv_path_LD " in
8704              *" -b64 "*) ;;
8705              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8706            esac
8707
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8710         ;;
8711       sparc64-*-netbsd*)
8712         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h.  */
8714 #if defined __sparcv9 || defined __arch64__
8715                 int ok;
8716                #else
8717                 error fail
8718                #endif
8719
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"
8722 then :
8723
8724 else $as_nop
8725   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8726            # so that the linker groks 32-bit object files.
8727            case "$acl_cv_path_LD " in
8728              *" -m elf32_sparc "*) ;;
8729              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8730            esac
8731
8732 fi
8733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8734         ;;
8735     esac
8736
8737 fi
8738
8739   LD="$acl_cv_path_LD"
8740 fi
8741 if test -n "$LD"; then
8742   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8743 printf "%s\n" "$LD" >&6; }
8744 else
8745   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 printf "%s\n" "no" >&6; }
8747   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8748 fi
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8750 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8751 if test ${acl_cv_prog_gnu_ld+y}
8752 then :
8753   printf %s "(cached) " >&6
8754 else $as_nop
8755   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8756 case `$LD -v 2>&1 </dev/null` in
8757 *GNU* | *'with BFD'*)
8758   acl_cv_prog_gnu_ld=yes
8759   ;;
8760 *)
8761   acl_cv_prog_gnu_ld=no
8762   ;;
8763 esac
8764 fi
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8766 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8767 with_gnu_ld=$acl_cv_prog_gnu_ld
8768
8769
8770
8771
8772
8773
8774                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8775 printf %s "checking for shared library run path origin... " >&6; }
8776 if test ${acl_cv_rpath+y}
8777 then :
8778   printf %s "(cached) " >&6
8779 else $as_nop
8780
8781     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8782     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8783     . ./conftest.sh
8784     rm -f ./conftest.sh
8785     acl_cv_rpath=done
8786
8787 fi
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8789 printf "%s\n" "$acl_cv_rpath" >&6; }
8790   wl="$acl_cv_wl"
8791   acl_libext="$acl_cv_libext"
8792   acl_shlibext="$acl_cv_shlibext"
8793   acl_libname_spec="$acl_cv_libname_spec"
8794   acl_library_names_spec="$acl_cv_library_names_spec"
8795   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8796   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8797   acl_hardcode_direct="$acl_cv_hardcode_direct"
8798   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8799     # Check whether --enable-rpath was given.
8800 if test ${enable_rpath+y}
8801 then :
8802   enableval=$enable_rpath; :
8803 else $as_nop
8804   enable_rpath=yes
8805 fi
8806
8807
8808
8809
8810   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8811 printf %s "checking 32-bit host C ABI... " >&6; }
8812 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8813 then :
8814   printf %s "(cached) " >&6
8815 else $as_nop
8816   if test -n "$gl_cv_host_cpu_c_abi"; then
8817        case "$gl_cv_host_cpu_c_abi" in
8818          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8819            gl_cv_host_cpu_c_abi_32bit=yes ;;
8820          x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8821            gl_cv_host_cpu_c_abi_32bit=no ;;
8822          *)
8823            gl_cv_host_cpu_c_abi_32bit=unknown ;;
8824        esac
8825      else
8826        case "$host_cpu" in
8827
8828          # CPUs that only support a 32-bit ABI.
8829          arc \
8830          | bfin \
8831          | cris* \
8832          | csky \
8833          | epiphany \
8834          | ft32 \
8835          | h8300 \
8836          | m68k \
8837          | microblaze | microblazeel \
8838          | nds32 | nds32le | nds32be \
8839          | nios2 | nios2eb | nios2el \
8840          | or1k* \
8841          | or32 \
8842          | sh | sh1234 | sh1234elb \
8843          | tic6x \
8844          | xtensa* )
8845            gl_cv_host_cpu_c_abi_32bit=yes
8846            ;;
8847
8848          # CPUs that only support a 64-bit ABI.
8849          alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8850          | mmix )
8851            gl_cv_host_cpu_c_abi_32bit=no
8852            ;;
8853
8854          i[34567]86 )
8855            gl_cv_host_cpu_c_abi_32bit=yes
8856            ;;
8857
8858          x86_64 )
8859            # On x86_64 systems, the C compiler may be generating code in one of
8860            # these ABIs:
8861            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8862            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8863            #   with native Windows (mingw, MSVC).
8864            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8865            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8866            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h.  */
8868 #if (defined __x86_64__ || defined __amd64__ \
8869                        || defined _M_X64 || defined _M_AMD64) \
8870                       && !(defined __ILP32__ || defined _ILP32)
8871                    int ok;
8872                   #else
8873                    error fail
8874                   #endif
8875
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"
8878 then :
8879   gl_cv_host_cpu_c_abi_32bit=no
8880 else $as_nop
8881   gl_cv_host_cpu_c_abi_32bit=yes
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8884            ;;
8885
8886          arm* | aarch64 )
8887            # Assume arm with EABI.
8888            # On arm64 systems, the C compiler may be generating code in one of
8889            # these ABIs:
8890            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8891            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8892            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8893            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h.  */
8895 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8896                    int ok;
8897                   #else
8898                    error fail
8899                   #endif
8900
8901 _ACEOF
8902 if ac_fn_c_try_compile "$LINENO"
8903 then :
8904   gl_cv_host_cpu_c_abi_32bit=no
8905 else $as_nop
8906   gl_cv_host_cpu_c_abi_32bit=yes
8907 fi
8908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8909            ;;
8910
8911          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8912            # On hppa, the C compiler may be generating 32-bit code or 64-bit
8913            # code. In the latter case, it defines _LP64 and __LP64__.
8914            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h.  */
8916 #ifdef __LP64__
8917                    int ok;
8918                   #else
8919                    error fail
8920                   #endif
8921
8922 _ACEOF
8923 if ac_fn_c_try_compile "$LINENO"
8924 then :
8925   gl_cv_host_cpu_c_abi_32bit=no
8926 else $as_nop
8927   gl_cv_host_cpu_c_abi_32bit=yes
8928 fi
8929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8930            ;;
8931
8932          ia64* )
8933            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8934            # 32-bit code. In the latter case, it defines _ILP32.
8935            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h.  */
8937 #ifdef _ILP32
8938                    int ok;
8939                   #else
8940                    error fail
8941                   #endif
8942
8943 _ACEOF
8944 if ac_fn_c_try_compile "$LINENO"
8945 then :
8946   gl_cv_host_cpu_c_abi_32bit=yes
8947 else $as_nop
8948   gl_cv_host_cpu_c_abi_32bit=no
8949 fi
8950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8951            ;;
8952
8953          mips* )
8954            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8955            # at 32.
8956            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h.  */
8958 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8959                    int ok;
8960                   #else
8961                    error fail
8962                   #endif
8963
8964 _ACEOF
8965 if ac_fn_c_try_compile "$LINENO"
8966 then :
8967   gl_cv_host_cpu_c_abi_32bit=no
8968 else $as_nop
8969   gl_cv_host_cpu_c_abi_32bit=yes
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8972            ;;
8973
8974          powerpc* )
8975            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8976            # No need to distinguish them here; the caller may distinguish
8977            # them based on the OS.
8978            # On powerpc64 systems, the C compiler may still be generating
8979            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8980            # be generating 64-bit code.
8981            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h.  */
8983 #if defined __powerpc64__ || defined _ARCH_PPC64
8984                    int ok;
8985                   #else
8986                    error fail
8987                   #endif
8988
8989 _ACEOF
8990 if ac_fn_c_try_compile "$LINENO"
8991 then :
8992   gl_cv_host_cpu_c_abi_32bit=no
8993 else $as_nop
8994   gl_cv_host_cpu_c_abi_32bit=yes
8995 fi
8996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8997            ;;
8998
8999          rs6000 )
9000            gl_cv_host_cpu_c_abi_32bit=yes
9001            ;;
9002
9003          riscv32 | riscv64 )
9004            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9005            # Size of 'long' and 'void *':
9006            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h.  */
9008 #if defined __LP64__
9009                     int ok;
9010                   #else
9011                     error fail
9012                   #endif
9013
9014 _ACEOF
9015 if ac_fn_c_try_compile "$LINENO"
9016 then :
9017   gl_cv_host_cpu_c_abi_32bit=no
9018 else $as_nop
9019   gl_cv_host_cpu_c_abi_32bit=yes
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9022            ;;
9023
9024          s390* )
9025            # On s390x, the C compiler may be generating 64-bit (= s390x) code
9026            # or 31-bit (= s390) code.
9027            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h.  */
9029 #if defined __LP64__ || defined __s390x__
9030                     int ok;
9031                   #else
9032                     error fail
9033                   #endif
9034
9035 _ACEOF
9036 if ac_fn_c_try_compile "$LINENO"
9037 then :
9038   gl_cv_host_cpu_c_abi_32bit=no
9039 else $as_nop
9040   gl_cv_host_cpu_c_abi_32bit=yes
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9043            ;;
9044
9045          sparc | sparc64 )
9046            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9047            # C compiler still generates 32-bit code.
9048            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h.  */
9050 #if defined __sparcv9 || defined __arch64__
9051                    int ok;
9052                   #else
9053                    error fail
9054                   #endif
9055
9056 _ACEOF
9057 if ac_fn_c_try_compile "$LINENO"
9058 then :
9059   gl_cv_host_cpu_c_abi_32bit=no
9060 else $as_nop
9061   gl_cv_host_cpu_c_abi_32bit=yes
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9064            ;;
9065
9066          *)
9067            gl_cv_host_cpu_c_abi_32bit=unknown
9068            ;;
9069        esac
9070      fi
9071
9072 fi
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9074 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9075
9076   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9077
9078
9079
9080
9081
9082   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9083 printf %s "checking for ELF binary format... " >&6; }
9084 if test ${gl_cv_elf+y}
9085 then :
9086   printf %s "(cached) " >&6
9087 else $as_nop
9088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h.  */
9090 #ifdef __ELF__
9091         Extensible Linking Format
9092         #endif
9093
9094 _ACEOF
9095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9096   $EGREP "Extensible Linking Format" >/dev/null 2>&1
9097 then :
9098   gl_cv_elf=yes
9099 else $as_nop
9100   gl_cv_elf=no
9101 fi
9102 rm -rf conftest*
9103
9104
9105 fi
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9107 printf "%s\n" "$gl_cv_elf" >&6; }
9108   if test $gl_cv_elf; then
9109     # Extract the ELF class of a file (5th byte) in decimal.
9110     # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9111     if od -A x < /dev/null >/dev/null 2>/dev/null; then
9112       # Use POSIX od.
9113       func_elfclass ()
9114       {
9115         od -A n -t d1 -j 4 -N 1
9116       }
9117     else
9118       # Use BSD hexdump.
9119       func_elfclass ()
9120       {
9121         dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9122         echo
9123       }
9124     fi
9125     case $HOST_CPU_C_ABI_32BIT in
9126       yes)
9127         # 32-bit ABI.
9128         acl_is_expected_elfclass ()
9129         {
9130           test "`func_elfclass | sed -e 's/[    ]//g'`" = 1
9131         }
9132         ;;
9133       no)
9134         # 64-bit ABI.
9135         acl_is_expected_elfclass ()
9136         {
9137           test "`func_elfclass | sed -e 's/[    ]//g'`" = 2
9138         }
9139         ;;
9140       *)
9141         # Unknown.
9142         acl_is_expected_elfclass ()
9143         {
9144           :
9145         }
9146         ;;
9147     esac
9148   else
9149     acl_is_expected_elfclass ()
9150     {
9151       :
9152     }
9153   fi
9154
9155     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9156 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9157 if test ${acl_cv_libdirstems+y}
9158 then :
9159   printf %s "(cached) " >&6
9160 else $as_nop
9161             acl_libdirstem=lib
9162      acl_libdirstem2=
9163      acl_libdirstem3=
9164      case "$host_os" in
9165        solaris*)
9166                                                       if test $HOST_CPU_C_ABI_32BIT = no; then
9167            acl_libdirstem2=lib/64
9168            case "$host_cpu" in
9169              sparc*)        acl_libdirstem3=lib/sparcv9 ;;
9170              i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9171            esac
9172          fi
9173          ;;
9174        *)
9175                                                                                  searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9176                      | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9177          if test $HOST_CPU_C_ABI_32BIT != no; then
9178            # 32-bit or unknown ABI.
9179            if test -d /usr/lib32; then
9180              acl_libdirstem2=lib32
9181            fi
9182          fi
9183          if test $HOST_CPU_C_ABI_32BIT != yes; then
9184            # 64-bit or unknown ABI.
9185            if test -d /usr/lib64; then
9186              acl_libdirstem3=lib64
9187            fi
9188          fi
9189          if test -n "$searchpath"; then
9190            acl_save_IFS="${IFS=         }"; IFS=":"
9191            for searchdir in $searchpath; do
9192              if test -d "$searchdir"; then
9193                case "$searchdir" in
9194                  */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9195                  */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9196                  */../ | */.. )
9197                    # Better ignore directories of this form. They are misleading.
9198                    ;;
9199                  *) searchdir=`cd "$searchdir" && pwd`
9200                     case "$searchdir" in
9201                       */lib32 ) acl_libdirstem2=lib32 ;;
9202                       */lib64 ) acl_libdirstem3=lib64 ;;
9203                     esac ;;
9204                esac
9205              fi
9206            done
9207            IFS="$acl_save_IFS"
9208            if test $HOST_CPU_C_ABI_32BIT = yes; then
9209              # 32-bit ABI.
9210              acl_libdirstem3=
9211            fi
9212            if test $HOST_CPU_C_ABI_32BIT = no; then
9213              # 64-bit ABI.
9214              acl_libdirstem2=
9215            fi
9216          fi
9217          ;;
9218      esac
9219      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9220      test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9221      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9222
9223 fi
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9225 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9226       acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9227   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9228   acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240     use_additional=yes
9241
9242   acl_save_prefix="$prefix"
9243   prefix="$acl_final_prefix"
9244   acl_save_exec_prefix="$exec_prefix"
9245   exec_prefix="$acl_final_exec_prefix"
9246
9247     eval additional_includedir=\"$includedir\"
9248     eval additional_libdir=\"$libdir\"
9249     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9250     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9251
9252   exec_prefix="$acl_save_exec_prefix"
9253   prefix="$acl_save_prefix"
9254
9255
9256 # Check whether --with-libiconv-prefix was given.
9257 if test ${with_libiconv_prefix+y}
9258 then :
9259   withval=$with_libiconv_prefix;
9260     if test "X$withval" = "Xno"; then
9261       use_additional=no
9262     else
9263       if test "X$withval" = "X"; then
9264
9265   acl_save_prefix="$prefix"
9266   prefix="$acl_final_prefix"
9267   acl_save_exec_prefix="$exec_prefix"
9268   exec_prefix="$acl_final_exec_prefix"
9269
9270           eval additional_includedir=\"$includedir\"
9271           eval additional_libdir=\"$libdir\"
9272           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9273           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9274
9275   exec_prefix="$acl_save_exec_prefix"
9276   prefix="$acl_save_prefix"
9277
9278       else
9279         additional_includedir="$withval/include"
9280         additional_libdir="$withval/$acl_libdirstem"
9281         additional_libdir2="$withval/$acl_libdirstem2"
9282         additional_libdir3="$withval/$acl_libdirstem3"
9283       fi
9284     fi
9285
9286 fi
9287
9288   if test "X$additional_libdir2" = "X$additional_libdir"; then
9289     additional_libdir2=
9290   fi
9291   if test "X$additional_libdir3" = "X$additional_libdir"; then
9292     additional_libdir3=
9293   fi
9294       LIBICONV=
9295   LTLIBICONV=
9296   INCICONV=
9297   LIBICONV_PREFIX=
9298       HAVE_LIBICONV=
9299   rpathdirs=
9300   ltrpathdirs=
9301   names_already_handled=
9302   names_next_round='iconv '
9303   while test -n "$names_next_round"; do
9304     names_this_round="$names_next_round"
9305     names_next_round=
9306     for name in $names_this_round; do
9307       already_handled=
9308       for n in $names_already_handled; do
9309         if test "$n" = "$name"; then
9310           already_handled=yes
9311           break
9312         fi
9313       done
9314       if test -z "$already_handled"; then
9315         names_already_handled="$names_already_handled $name"
9316                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9317         eval value=\"\$HAVE_LIB$uppername\"
9318         if test -n "$value"; then
9319           if test "$value" = yes; then
9320             eval value=\"\$LIB$uppername\"
9321             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9322             eval value=\"\$LTLIB$uppername\"
9323             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9324           else
9325                                     :
9326           fi
9327         else
9328                               found_dir=
9329           found_la=
9330           found_so=
9331           found_a=
9332           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9333           if test -n "$acl_shlibext"; then
9334             shrext=".$acl_shlibext"             # typically: shrext=.so
9335           else
9336             shrext=
9337           fi
9338           if test $use_additional = yes; then
9339             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9340               if test "X$found_dir" = "X"; then
9341                 eval dir=\$$additional_libdir_variable
9342                 if test -n "$dir"; then
9343                                                       if test -n "$acl_shlibext"; then
9344                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9345                       found_dir="$dir"
9346                       found_so="$dir/$libname$shrext"
9347                     else
9348                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9349                         ver=`(cd "$dir" && \
9350                               for f in "$libname$shrext".*; do echo "$f"; done \
9351                               | sed -e "s,^$libname$shrext\\\\.,," \
9352                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9353                               | sed 1q ) 2>/dev/null`
9354                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9355                           found_dir="$dir"
9356                           found_so="$dir/$libname$shrext.$ver"
9357                         fi
9358                       else
9359                         eval library_names=\"$acl_library_names_spec\"
9360                         for f in $library_names; do
9361                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9362                             found_dir="$dir"
9363                             found_so="$dir/$f"
9364                             break
9365                           fi
9366                         done
9367                       fi
9368                     fi
9369                   fi
9370                                     if test "X$found_dir" = "X"; then
9371                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9372                       found_dir="$dir"
9373                       found_a="$dir/$libname.$acl_libext"
9374                     fi
9375                   fi
9376                   if test "X$found_dir" != "X"; then
9377                     if test -f "$dir/$libname.la"; then
9378                       found_la="$dir/$libname.la"
9379                     fi
9380                   fi
9381                 fi
9382               fi
9383             done
9384           fi
9385           if test "X$found_dir" = "X"; then
9386             for x in $LDFLAGS $LTLIBICONV; do
9387
9388   acl_save_prefix="$prefix"
9389   prefix="$acl_final_prefix"
9390   acl_save_exec_prefix="$exec_prefix"
9391   exec_prefix="$acl_final_exec_prefix"
9392   eval x=\"$x\"
9393   exec_prefix="$acl_save_exec_prefix"
9394   prefix="$acl_save_prefix"
9395
9396               case "$x" in
9397                 -L*)
9398                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9399                                     if test -n "$acl_shlibext"; then
9400                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9401                       found_dir="$dir"
9402                       found_so="$dir/$libname$shrext"
9403                     else
9404                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9405                         ver=`(cd "$dir" && \
9406                               for f in "$libname$shrext".*; do echo "$f"; done \
9407                               | sed -e "s,^$libname$shrext\\\\.,," \
9408                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9409                               | sed 1q ) 2>/dev/null`
9410                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9411                           found_dir="$dir"
9412                           found_so="$dir/$libname$shrext.$ver"
9413                         fi
9414                       else
9415                         eval library_names=\"$acl_library_names_spec\"
9416                         for f in $library_names; do
9417                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9418                             found_dir="$dir"
9419                             found_so="$dir/$f"
9420                             break
9421                           fi
9422                         done
9423                       fi
9424                     fi
9425                   fi
9426                                     if test "X$found_dir" = "X"; then
9427                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9428                       found_dir="$dir"
9429                       found_a="$dir/$libname.$acl_libext"
9430                     fi
9431                   fi
9432                   if test "X$found_dir" != "X"; then
9433                     if test -f "$dir/$libname.la"; then
9434                       found_la="$dir/$libname.la"
9435                     fi
9436                   fi
9437                   ;;
9438               esac
9439               if test "X$found_dir" != "X"; then
9440                 break
9441               fi
9442             done
9443           fi
9444           if test "X$found_dir" != "X"; then
9445                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9446             if test "X$found_so" != "X"; then
9447                                                         if test "$enable_rpath" = no \
9448                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9449                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9450                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9451                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9452               else
9453                                                                                 haveit=
9454                 for x in $ltrpathdirs; do
9455                   if test "X$x" = "X$found_dir"; then
9456                     haveit=yes
9457                     break
9458                   fi
9459                 done
9460                 if test -z "$haveit"; then
9461                   ltrpathdirs="$ltrpathdirs $found_dir"
9462                 fi
9463                                 if test "$acl_hardcode_direct" = yes; then
9464                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9465                 else
9466                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9467                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9468                                                             haveit=
9469                     for x in $rpathdirs; do
9470                       if test "X$x" = "X$found_dir"; then
9471                         haveit=yes
9472                         break
9473                       fi
9474                     done
9475                     if test -z "$haveit"; then
9476                       rpathdirs="$rpathdirs $found_dir"
9477                     fi
9478                   else
9479                                                                                 haveit=
9480                     for x in $LDFLAGS $LIBICONV; do
9481
9482   acl_save_prefix="$prefix"
9483   prefix="$acl_final_prefix"
9484   acl_save_exec_prefix="$exec_prefix"
9485   exec_prefix="$acl_final_exec_prefix"
9486   eval x=\"$x\"
9487   exec_prefix="$acl_save_exec_prefix"
9488   prefix="$acl_save_prefix"
9489
9490                       if test "X$x" = "X-L$found_dir"; then
9491                         haveit=yes
9492                         break
9493                       fi
9494                     done
9495                     if test -z "$haveit"; then
9496                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9497                     fi
9498                     if test "$acl_hardcode_minus_L" != no; then
9499                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9500                     else
9501                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9502                     fi
9503                   fi
9504                 fi
9505               fi
9506             else
9507               if test "X$found_a" != "X"; then
9508                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9509               else
9510                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9511               fi
9512             fi
9513                         additional_includedir=
9514             case "$found_dir" in
9515               */$acl_libdirstem | */$acl_libdirstem/)
9516                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9517                 if test "$name" = 'iconv'; then
9518                   LIBICONV_PREFIX="$basedir"
9519                 fi
9520                 additional_includedir="$basedir/include"
9521                 ;;
9522               */$acl_libdirstem2 | */$acl_libdirstem2/)
9523                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9524                 if test "$name" = 'iconv'; then
9525                   LIBICONV_PREFIX="$basedir"
9526                 fi
9527                 additional_includedir="$basedir/include"
9528                 ;;
9529               */$acl_libdirstem3 | */$acl_libdirstem3/)
9530                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9531                 if test "$name" = 'iconv'; then
9532                   LIBICONV_PREFIX="$basedir"
9533                 fi
9534                 additional_includedir="$basedir/include"
9535                 ;;
9536             esac
9537             if test "X$additional_includedir" != "X"; then
9538                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9539                 haveit=
9540                 if test "X$additional_includedir" = "X/usr/local/include"; then
9541                   if test -n "$GCC"; then
9542                     case $host_os in
9543                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9544                     esac
9545                   fi
9546                 fi
9547                 if test -z "$haveit"; then
9548                   for x in $CPPFLAGS $INCICONV; do
9549
9550   acl_save_prefix="$prefix"
9551   prefix="$acl_final_prefix"
9552   acl_save_exec_prefix="$exec_prefix"
9553   exec_prefix="$acl_final_exec_prefix"
9554   eval x=\"$x\"
9555   exec_prefix="$acl_save_exec_prefix"
9556   prefix="$acl_save_prefix"
9557
9558                     if test "X$x" = "X-I$additional_includedir"; then
9559                       haveit=yes
9560                       break
9561                     fi
9562                   done
9563                   if test -z "$haveit"; then
9564                     if test -d "$additional_includedir"; then
9565                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9566                     fi
9567                   fi
9568                 fi
9569               fi
9570             fi
9571                         if test -n "$found_la"; then
9572                                                         save_libdir="$libdir"
9573               case "$found_la" in
9574                 */* | *\\*) . "$found_la" ;;
9575                 *) . "./$found_la" ;;
9576               esac
9577               libdir="$save_libdir"
9578                             for dep in $dependency_libs; do
9579                 case "$dep" in
9580                   -L*)
9581                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9582                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9583                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9584                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9585                       haveit=
9586                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9587                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9588                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9589                         if test -n "$GCC"; then
9590                           case $host_os in
9591                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9592                           esac
9593                         fi
9594                       fi
9595                       if test -z "$haveit"; then
9596                         haveit=
9597                         for x in $LDFLAGS $LIBICONV; do
9598
9599   acl_save_prefix="$prefix"
9600   prefix="$acl_final_prefix"
9601   acl_save_exec_prefix="$exec_prefix"
9602   exec_prefix="$acl_final_exec_prefix"
9603   eval x=\"$x\"
9604   exec_prefix="$acl_save_exec_prefix"
9605   prefix="$acl_save_prefix"
9606
9607                           if test "X$x" = "X-L$dependency_libdir"; then
9608                             haveit=yes
9609                             break
9610                           fi
9611                         done
9612                         if test -z "$haveit"; then
9613                           if test -d "$dependency_libdir"; then
9614                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9615                           fi
9616                         fi
9617                         haveit=
9618                         for x in $LDFLAGS $LTLIBICONV; do
9619
9620   acl_save_prefix="$prefix"
9621   prefix="$acl_final_prefix"
9622   acl_save_exec_prefix="$exec_prefix"
9623   exec_prefix="$acl_final_exec_prefix"
9624   eval x=\"$x\"
9625   exec_prefix="$acl_save_exec_prefix"
9626   prefix="$acl_save_prefix"
9627
9628                           if test "X$x" = "X-L$dependency_libdir"; then
9629                             haveit=yes
9630                             break
9631                           fi
9632                         done
9633                         if test -z "$haveit"; then
9634                           if test -d "$dependency_libdir"; then
9635                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9636                           fi
9637                         fi
9638                       fi
9639                     fi
9640                     ;;
9641                   -R*)
9642                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9643                     if test "$enable_rpath" != no; then
9644                                                                   haveit=
9645                       for x in $rpathdirs; do
9646                         if test "X$x" = "X$dir"; then
9647                           haveit=yes
9648                           break
9649                         fi
9650                       done
9651                       if test -z "$haveit"; then
9652                         rpathdirs="$rpathdirs $dir"
9653                       fi
9654                                                                   haveit=
9655                       for x in $ltrpathdirs; do
9656                         if test "X$x" = "X$dir"; then
9657                           haveit=yes
9658                           break
9659                         fi
9660                       done
9661                       if test -z "$haveit"; then
9662                         ltrpathdirs="$ltrpathdirs $dir"
9663                       fi
9664                     fi
9665                     ;;
9666                   -l*)
9667                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9668                     ;;
9669                   *.la)
9670                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9671                     ;;
9672                   *)
9673                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9674                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9675                     ;;
9676                 esac
9677               done
9678             fi
9679           else
9680                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9681             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9682           fi
9683         fi
9684       fi
9685     done
9686   done
9687   if test "X$rpathdirs" != "X"; then
9688     if test -n "$acl_hardcode_libdir_separator"; then
9689                         alldirs=
9690       for found_dir in $rpathdirs; do
9691         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9692       done
9693             acl_save_libdir="$libdir"
9694       libdir="$alldirs"
9695       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9696       libdir="$acl_save_libdir"
9697       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9698     else
9699             for found_dir in $rpathdirs; do
9700         acl_save_libdir="$libdir"
9701         libdir="$found_dir"
9702         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9703         libdir="$acl_save_libdir"
9704         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9705       done
9706     fi
9707   fi
9708   if test "X$ltrpathdirs" != "X"; then
9709             for found_dir in $ltrpathdirs; do
9710       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9711     done
9712   fi
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
9740
9741
9742     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9743 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9744 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9745 then :
9746   printf %s "(cached) " >&6
9747 else $as_nop
9748   gt_save_LIBS="$LIBS"
9749      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9750      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h.  */
9752 #include <CoreFoundation/CFPreferences.h>
9753 int
9754 main (void)
9755 {
9756 CFPreferencesCopyAppValue(NULL, NULL)
9757   ;
9758   return 0;
9759 }
9760 _ACEOF
9761 if ac_fn_c_try_link "$LINENO"
9762 then :
9763   gt_cv_func_CFPreferencesCopyAppValue=yes
9764 else $as_nop
9765   gt_cv_func_CFPreferencesCopyAppValue=no
9766 fi
9767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9768     conftest$ac_exeext conftest.$ac_ext
9769      LIBS="$gt_save_LIBS"
9770 fi
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9772 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9773   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9774
9775 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9776
9777   fi
9778                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9779 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9780 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9781 then :
9782   printf %s "(cached) " >&6
9783 else $as_nop
9784   gt_save_LIBS="$LIBS"
9785      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9786      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h.  */
9788 #include <CoreFoundation/CFLocale.h>
9789 int
9790 main (void)
9791 {
9792 CFLocaleCopyPreferredLanguages();
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 if ac_fn_c_try_link "$LINENO"
9798 then :
9799   gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9800 else $as_nop
9801   gt_cv_func_CFLocaleCopyPreferredLanguages=no
9802 fi
9803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9804     conftest$ac_exeext conftest.$ac_ext
9805      LIBS="$gt_save_LIBS"
9806 fi
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9808 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9809   if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9810
9811 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9812
9813   fi
9814   INTL_MACOSX_LIBS=
9815   if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9816      || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9817     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9818   fi
9819
9820
9821
9822
9823
9824
9825   LIBINTL=
9826   LTLIBINTL=
9827   POSUB=
9828
9829     case " $gt_needs " in
9830     *" need-formatstring-macros "*) gt_api_version=3 ;;
9831     *" need-ngettext "*) gt_api_version=2 ;;
9832     *) gt_api_version=1 ;;
9833   esac
9834   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9835   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9836
9837     if test "$USE_NLS" = "yes"; then
9838     gt_use_preinstalled_gnugettext=no
9839
9840
9841         if test $gt_api_version -ge 3; then
9842           gt_revision_test_code='
9843 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9844 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9845 #endif
9846 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9847 '
9848         else
9849           gt_revision_test_code=
9850         fi
9851         if test $gt_api_version -ge 2; then
9852           gt_expression_test_code=' + * ngettext ("", "", 0)'
9853         else
9854           gt_expression_test_code=
9855         fi
9856
9857         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9858 printf %s "checking for GNU gettext in libc... " >&6; }
9859 if eval test \${$gt_func_gnugettext_libc+y}
9860 then :
9861   printf %s "(cached) " >&6
9862 else $as_nop
9863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h.  */
9865
9866 #include <libintl.h>
9867 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9868 extern int _nl_msg_cat_cntr;
9869 extern int *_nl_domain_bindings;
9870 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9871 #else
9872 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9873 #endif
9874 $gt_revision_test_code
9875
9876 int
9877 main (void)
9878 {
9879
9880 bindtextdomain ("", "");
9881 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9882
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 if ac_fn_c_try_link "$LINENO"
9888 then :
9889   eval "$gt_func_gnugettext_libc=yes"
9890 else $as_nop
9891   eval "$gt_func_gnugettext_libc=no"
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9894     conftest$ac_exeext conftest.$ac_ext
9895 fi
9896 eval ac_res=\$$gt_func_gnugettext_libc
9897                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9898 printf "%s\n" "$ac_res" >&6; }
9899
9900         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9901
9902
9903
9904
9905
9906           am_save_CPPFLAGS="$CPPFLAGS"
9907
9908   for element in $INCICONV; do
9909     haveit=
9910     for x in $CPPFLAGS; do
9911
9912   acl_save_prefix="$prefix"
9913   prefix="$acl_final_prefix"
9914   acl_save_exec_prefix="$exec_prefix"
9915   exec_prefix="$acl_final_exec_prefix"
9916   eval x=\"$x\"
9917   exec_prefix="$acl_save_exec_prefix"
9918   prefix="$acl_save_prefix"
9919
9920       if test "X$x" = "X$element"; then
9921         haveit=yes
9922         break
9923       fi
9924     done
9925     if test -z "$haveit"; then
9926       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9927     fi
9928   done
9929
9930
9931   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9932 printf %s "checking for iconv... " >&6; }
9933 if test ${am_cv_func_iconv+y}
9934 then :
9935   printf %s "(cached) " >&6
9936 else $as_nop
9937
9938     am_cv_func_iconv="no, consider installing GNU libiconv"
9939     am_cv_lib_iconv=no
9940     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h.  */
9942
9943 #include <stdlib.h>
9944 #include <iconv.h>
9945
9946 int
9947 main (void)
9948 {
9949 iconv_t cd = iconv_open("","");
9950            iconv(cd,NULL,NULL,NULL,NULL);
9951            iconv_close(cd);
9952   ;
9953   return 0;
9954 }
9955 _ACEOF
9956 if ac_fn_c_try_link "$LINENO"
9957 then :
9958   am_cv_func_iconv=yes
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9961     conftest$ac_exeext conftest.$ac_ext
9962     if test "$am_cv_func_iconv" != yes; then
9963       am_save_LIBS="$LIBS"
9964       LIBS="$LIBS $LIBICONV"
9965       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h.  */
9967
9968 #include <stdlib.h>
9969 #include <iconv.h>
9970
9971 int
9972 main (void)
9973 {
9974 iconv_t cd = iconv_open("","");
9975              iconv(cd,NULL,NULL,NULL,NULL);
9976              iconv_close(cd);
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"
9982 then :
9983   am_cv_lib_iconv=yes
9984         am_cv_func_iconv=yes
9985 fi
9986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9987     conftest$ac_exeext conftest.$ac_ext
9988       LIBS="$am_save_LIBS"
9989     fi
9990
9991 fi
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9993 printf "%s\n" "$am_cv_func_iconv" >&6; }
9994   if test "$am_cv_func_iconv" = yes; then
9995     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9996 printf %s "checking for working iconv... " >&6; }
9997 if test ${am_cv_func_iconv_works+y}
9998 then :
9999   printf %s "(cached) " >&6
10000 else $as_nop
10001
10002                   am_save_LIBS="$LIBS"
10003       if test $am_cv_lib_iconv = yes; then
10004         LIBS="$LIBS $LIBICONV"
10005       fi
10006       am_cv_func_iconv_works=no
10007       for ac_iconv_const in '' 'const'; do
10008         if test "$cross_compiling" = yes
10009 then :
10010   case "$host_os" in
10011              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10012              *)            am_cv_func_iconv_works="guessing yes" ;;
10013            esac
10014 else $as_nop
10015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h.  */
10017
10018 #include <iconv.h>
10019 #include <string.h>
10020
10021 #ifndef ICONV_CONST
10022 # define ICONV_CONST $ac_iconv_const
10023 #endif
10024
10025 int
10026 main (void)
10027 {
10028 int result = 0;
10029   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10030      returns.  */
10031   {
10032     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10033     if (cd_utf8_to_88591 != (iconv_t)(-1))
10034       {
10035         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10036         char buf[10];
10037         ICONV_CONST char *inptr = input;
10038         size_t inbytesleft = strlen (input);
10039         char *outptr = buf;
10040         size_t outbytesleft = sizeof (buf);
10041         size_t res = iconv (cd_utf8_to_88591,
10042                             &inptr, &inbytesleft,
10043                             &outptr, &outbytesleft);
10044         if (res == 0)
10045           result |= 1;
10046         iconv_close (cd_utf8_to_88591);
10047       }
10048   }
10049   /* Test against Solaris 10 bug: Failures are not distinguishable from
10050      successful returns.  */
10051   {
10052     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10053     if (cd_ascii_to_88591 != (iconv_t)(-1))
10054       {
10055         static ICONV_CONST char input[] = "\263";
10056         char buf[10];
10057         ICONV_CONST char *inptr = input;
10058         size_t inbytesleft = strlen (input);
10059         char *outptr = buf;
10060         size_t outbytesleft = sizeof (buf);
10061         size_t res = iconv (cd_ascii_to_88591,
10062                             &inptr, &inbytesleft,
10063                             &outptr, &outbytesleft);
10064         if (res == 0)
10065           result |= 2;
10066         iconv_close (cd_ascii_to_88591);
10067       }
10068   }
10069   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
10070   {
10071     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10072     if (cd_88591_to_utf8 != (iconv_t)(-1))
10073       {
10074         static ICONV_CONST char input[] = "\304";
10075         static char buf[2] = { (char)0xDE, (char)0xAD };
10076         ICONV_CONST char *inptr = input;
10077         size_t inbytesleft = 1;
10078         char *outptr = buf;
10079         size_t outbytesleft = 1;
10080         size_t res = iconv (cd_88591_to_utf8,
10081                             &inptr, &inbytesleft,
10082                             &outptr, &outbytesleft);
10083         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10084           result |= 4;
10085         iconv_close (cd_88591_to_utf8);
10086       }
10087   }
10088 #if 0 /* This bug could be worked around by the caller.  */
10089   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
10090   {
10091     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10092     if (cd_88591_to_utf8 != (iconv_t)(-1))
10093       {
10094         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10095         char buf[50];
10096         ICONV_CONST char *inptr = input;
10097         size_t inbytesleft = strlen (input);
10098         char *outptr = buf;
10099         size_t outbytesleft = sizeof (buf);
10100         size_t res = iconv (cd_88591_to_utf8,
10101                             &inptr, &inbytesleft,
10102                             &outptr, &outbytesleft);
10103         if ((int)res > 0)
10104           result |= 8;
10105         iconv_close (cd_88591_to_utf8);
10106       }
10107   }
10108 #endif
10109   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10110      provided.  */
10111   {
10112     /* Try standardized names.  */
10113     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10114     /* Try IRIX, OSF/1 names.  */
10115     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10116     /* Try AIX names.  */
10117     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10118     /* Try HP-UX names.  */
10119     iconv_t cd4 = iconv_open ("utf8", "eucJP");
10120     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10121         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10122       result |= 16;
10123     if (cd1 != (iconv_t)(-1))
10124       iconv_close (cd1);
10125     if (cd2 != (iconv_t)(-1))
10126       iconv_close (cd2);
10127     if (cd3 != (iconv_t)(-1))
10128       iconv_close (cd3);
10129     if (cd4 != (iconv_t)(-1))
10130       iconv_close (cd4);
10131   }
10132   return result;
10133
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 if ac_fn_c_try_run "$LINENO"
10139 then :
10140   am_cv_func_iconv_works=yes
10141 fi
10142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10143   conftest.$ac_objext conftest.beam conftest.$ac_ext
10144 fi
10145
10146         test "$am_cv_func_iconv_works" = no || break
10147       done
10148       LIBS="$am_save_LIBS"
10149
10150 fi
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10152 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10153     case "$am_cv_func_iconv_works" in
10154       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10155       *)   am_func_iconv=yes ;;
10156     esac
10157   else
10158     am_func_iconv=no am_cv_lib_iconv=no
10159   fi
10160   if test "$am_func_iconv" = yes; then
10161
10162 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10163
10164   fi
10165   if test "$am_cv_lib_iconv" = yes; then
10166     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10167 printf %s "checking how to link with libiconv... " >&6; }
10168     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10169 printf "%s\n" "$LIBICONV" >&6; }
10170   else
10171             CPPFLAGS="$am_save_CPPFLAGS"
10172     LIBICONV=
10173     LTLIBICONV=
10174   fi
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185     use_additional=yes
10186
10187   acl_save_prefix="$prefix"
10188   prefix="$acl_final_prefix"
10189   acl_save_exec_prefix="$exec_prefix"
10190   exec_prefix="$acl_final_exec_prefix"
10191
10192     eval additional_includedir=\"$includedir\"
10193     eval additional_libdir=\"$libdir\"
10194     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10195     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10196
10197   exec_prefix="$acl_save_exec_prefix"
10198   prefix="$acl_save_prefix"
10199
10200
10201 # Check whether --with-libintl-prefix was given.
10202 if test ${with_libintl_prefix+y}
10203 then :
10204   withval=$with_libintl_prefix;
10205     if test "X$withval" = "Xno"; then
10206       use_additional=no
10207     else
10208       if test "X$withval" = "X"; then
10209
10210   acl_save_prefix="$prefix"
10211   prefix="$acl_final_prefix"
10212   acl_save_exec_prefix="$exec_prefix"
10213   exec_prefix="$acl_final_exec_prefix"
10214
10215           eval additional_includedir=\"$includedir\"
10216           eval additional_libdir=\"$libdir\"
10217           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10218           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10219
10220   exec_prefix="$acl_save_exec_prefix"
10221   prefix="$acl_save_prefix"
10222
10223       else
10224         additional_includedir="$withval/include"
10225         additional_libdir="$withval/$acl_libdirstem"
10226         additional_libdir2="$withval/$acl_libdirstem2"
10227         additional_libdir3="$withval/$acl_libdirstem3"
10228       fi
10229     fi
10230
10231 fi
10232
10233   if test "X$additional_libdir2" = "X$additional_libdir"; then
10234     additional_libdir2=
10235   fi
10236   if test "X$additional_libdir3" = "X$additional_libdir"; then
10237     additional_libdir3=
10238   fi
10239       LIBINTL=
10240   LTLIBINTL=
10241   INCINTL=
10242   LIBINTL_PREFIX=
10243       HAVE_LIBINTL=
10244   rpathdirs=
10245   ltrpathdirs=
10246   names_already_handled=
10247   names_next_round='intl '
10248   while test -n "$names_next_round"; do
10249     names_this_round="$names_next_round"
10250     names_next_round=
10251     for name in $names_this_round; do
10252       already_handled=
10253       for n in $names_already_handled; do
10254         if test "$n" = "$name"; then
10255           already_handled=yes
10256           break
10257         fi
10258       done
10259       if test -z "$already_handled"; then
10260         names_already_handled="$names_already_handled $name"
10261                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10262         eval value=\"\$HAVE_LIB$uppername\"
10263         if test -n "$value"; then
10264           if test "$value" = yes; then
10265             eval value=\"\$LIB$uppername\"
10266             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10267             eval value=\"\$LTLIB$uppername\"
10268             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10269           else
10270                                     :
10271           fi
10272         else
10273                               found_dir=
10274           found_la=
10275           found_so=
10276           found_a=
10277           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10278           if test -n "$acl_shlibext"; then
10279             shrext=".$acl_shlibext"             # typically: shrext=.so
10280           else
10281             shrext=
10282           fi
10283           if test $use_additional = yes; then
10284             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10285               if test "X$found_dir" = "X"; then
10286                 eval dir=\$$additional_libdir_variable
10287                 if test -n "$dir"; then
10288                                                       if test -n "$acl_shlibext"; then
10289                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10290                       found_dir="$dir"
10291                       found_so="$dir/$libname$shrext"
10292                     else
10293                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10294                         ver=`(cd "$dir" && \
10295                               for f in "$libname$shrext".*; do echo "$f"; done \
10296                               | sed -e "s,^$libname$shrext\\\\.,," \
10297                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10298                               | sed 1q ) 2>/dev/null`
10299                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10300                           found_dir="$dir"
10301                           found_so="$dir/$libname$shrext.$ver"
10302                         fi
10303                       else
10304                         eval library_names=\"$acl_library_names_spec\"
10305                         for f in $library_names; do
10306                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10307                             found_dir="$dir"
10308                             found_so="$dir/$f"
10309                             break
10310                           fi
10311                         done
10312                       fi
10313                     fi
10314                   fi
10315                                     if test "X$found_dir" = "X"; then
10316                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10317                       found_dir="$dir"
10318                       found_a="$dir/$libname.$acl_libext"
10319                     fi
10320                   fi
10321                   if test "X$found_dir" != "X"; then
10322                     if test -f "$dir/$libname.la"; then
10323                       found_la="$dir/$libname.la"
10324                     fi
10325                   fi
10326                 fi
10327               fi
10328             done
10329           fi
10330           if test "X$found_dir" = "X"; then
10331             for x in $LDFLAGS $LTLIBINTL; do
10332
10333   acl_save_prefix="$prefix"
10334   prefix="$acl_final_prefix"
10335   acl_save_exec_prefix="$exec_prefix"
10336   exec_prefix="$acl_final_exec_prefix"
10337   eval x=\"$x\"
10338   exec_prefix="$acl_save_exec_prefix"
10339   prefix="$acl_save_prefix"
10340
10341               case "$x" in
10342                 -L*)
10343                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10344                                     if test -n "$acl_shlibext"; then
10345                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10346                       found_dir="$dir"
10347                       found_so="$dir/$libname$shrext"
10348                     else
10349                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10350                         ver=`(cd "$dir" && \
10351                               for f in "$libname$shrext".*; do echo "$f"; done \
10352                               | sed -e "s,^$libname$shrext\\\\.,," \
10353                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10354                               | sed 1q ) 2>/dev/null`
10355                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10356                           found_dir="$dir"
10357                           found_so="$dir/$libname$shrext.$ver"
10358                         fi
10359                       else
10360                         eval library_names=\"$acl_library_names_spec\"
10361                         for f in $library_names; do
10362                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10363                             found_dir="$dir"
10364                             found_so="$dir/$f"
10365                             break
10366                           fi
10367                         done
10368                       fi
10369                     fi
10370                   fi
10371                                     if test "X$found_dir" = "X"; then
10372                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10373                       found_dir="$dir"
10374                       found_a="$dir/$libname.$acl_libext"
10375                     fi
10376                   fi
10377                   if test "X$found_dir" != "X"; then
10378                     if test -f "$dir/$libname.la"; then
10379                       found_la="$dir/$libname.la"
10380                     fi
10381                   fi
10382                   ;;
10383               esac
10384               if test "X$found_dir" != "X"; then
10385                 break
10386               fi
10387             done
10388           fi
10389           if test "X$found_dir" != "X"; then
10390                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10391             if test "X$found_so" != "X"; then
10392                                                         if test "$enable_rpath" = no \
10393                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10394                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10395                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10396                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10397               else
10398                                                                                 haveit=
10399                 for x in $ltrpathdirs; do
10400                   if test "X$x" = "X$found_dir"; then
10401                     haveit=yes
10402                     break
10403                   fi
10404                 done
10405                 if test -z "$haveit"; then
10406                   ltrpathdirs="$ltrpathdirs $found_dir"
10407                 fi
10408                                 if test "$acl_hardcode_direct" = yes; then
10409                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10410                 else
10411                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10412                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10413                                                             haveit=
10414                     for x in $rpathdirs; do
10415                       if test "X$x" = "X$found_dir"; then
10416                         haveit=yes
10417                         break
10418                       fi
10419                     done
10420                     if test -z "$haveit"; then
10421                       rpathdirs="$rpathdirs $found_dir"
10422                     fi
10423                   else
10424                                                                                 haveit=
10425                     for x in $LDFLAGS $LIBINTL; do
10426
10427   acl_save_prefix="$prefix"
10428   prefix="$acl_final_prefix"
10429   acl_save_exec_prefix="$exec_prefix"
10430   exec_prefix="$acl_final_exec_prefix"
10431   eval x=\"$x\"
10432   exec_prefix="$acl_save_exec_prefix"
10433   prefix="$acl_save_prefix"
10434
10435                       if test "X$x" = "X-L$found_dir"; then
10436                         haveit=yes
10437                         break
10438                       fi
10439                     done
10440                     if test -z "$haveit"; then
10441                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10442                     fi
10443                     if test "$acl_hardcode_minus_L" != no; then
10444                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10445                     else
10446                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10447                     fi
10448                   fi
10449                 fi
10450               fi
10451             else
10452               if test "X$found_a" != "X"; then
10453                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10454               else
10455                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10456               fi
10457             fi
10458                         additional_includedir=
10459             case "$found_dir" in
10460               */$acl_libdirstem | */$acl_libdirstem/)
10461                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10462                 if test "$name" = 'intl'; then
10463                   LIBINTL_PREFIX="$basedir"
10464                 fi
10465                 additional_includedir="$basedir/include"
10466                 ;;
10467               */$acl_libdirstem2 | */$acl_libdirstem2/)
10468                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10469                 if test "$name" = 'intl'; then
10470                   LIBINTL_PREFIX="$basedir"
10471                 fi
10472                 additional_includedir="$basedir/include"
10473                 ;;
10474               */$acl_libdirstem3 | */$acl_libdirstem3/)
10475                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10476                 if test "$name" = 'intl'; then
10477                   LIBINTL_PREFIX="$basedir"
10478                 fi
10479                 additional_includedir="$basedir/include"
10480                 ;;
10481             esac
10482             if test "X$additional_includedir" != "X"; then
10483                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10484                 haveit=
10485                 if test "X$additional_includedir" = "X/usr/local/include"; then
10486                   if test -n "$GCC"; then
10487                     case $host_os in
10488                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10489                     esac
10490                   fi
10491                 fi
10492                 if test -z "$haveit"; then
10493                   for x in $CPPFLAGS $INCINTL; do
10494
10495   acl_save_prefix="$prefix"
10496   prefix="$acl_final_prefix"
10497   acl_save_exec_prefix="$exec_prefix"
10498   exec_prefix="$acl_final_exec_prefix"
10499   eval x=\"$x\"
10500   exec_prefix="$acl_save_exec_prefix"
10501   prefix="$acl_save_prefix"
10502
10503                     if test "X$x" = "X-I$additional_includedir"; then
10504                       haveit=yes
10505                       break
10506                     fi
10507                   done
10508                   if test -z "$haveit"; then
10509                     if test -d "$additional_includedir"; then
10510                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10511                     fi
10512                   fi
10513                 fi
10514               fi
10515             fi
10516                         if test -n "$found_la"; then
10517                                                         save_libdir="$libdir"
10518               case "$found_la" in
10519                 */* | *\\*) . "$found_la" ;;
10520                 *) . "./$found_la" ;;
10521               esac
10522               libdir="$save_libdir"
10523                             for dep in $dependency_libs; do
10524                 case "$dep" in
10525                   -L*)
10526                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10527                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10528                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10529                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10530                       haveit=
10531                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10532                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10533                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10534                         if test -n "$GCC"; then
10535                           case $host_os in
10536                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10537                           esac
10538                         fi
10539                       fi
10540                       if test -z "$haveit"; then
10541                         haveit=
10542                         for x in $LDFLAGS $LIBINTL; do
10543
10544   acl_save_prefix="$prefix"
10545   prefix="$acl_final_prefix"
10546   acl_save_exec_prefix="$exec_prefix"
10547   exec_prefix="$acl_final_exec_prefix"
10548   eval x=\"$x\"
10549   exec_prefix="$acl_save_exec_prefix"
10550   prefix="$acl_save_prefix"
10551
10552                           if test "X$x" = "X-L$dependency_libdir"; then
10553                             haveit=yes
10554                             break
10555                           fi
10556                         done
10557                         if test -z "$haveit"; then
10558                           if test -d "$dependency_libdir"; then
10559                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10560                           fi
10561                         fi
10562                         haveit=
10563                         for x in $LDFLAGS $LTLIBINTL; do
10564
10565   acl_save_prefix="$prefix"
10566   prefix="$acl_final_prefix"
10567   acl_save_exec_prefix="$exec_prefix"
10568   exec_prefix="$acl_final_exec_prefix"
10569   eval x=\"$x\"
10570   exec_prefix="$acl_save_exec_prefix"
10571   prefix="$acl_save_prefix"
10572
10573                           if test "X$x" = "X-L$dependency_libdir"; then
10574                             haveit=yes
10575                             break
10576                           fi
10577                         done
10578                         if test -z "$haveit"; then
10579                           if test -d "$dependency_libdir"; then
10580                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10581                           fi
10582                         fi
10583                       fi
10584                     fi
10585                     ;;
10586                   -R*)
10587                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10588                     if test "$enable_rpath" != no; then
10589                                                                   haveit=
10590                       for x in $rpathdirs; do
10591                         if test "X$x" = "X$dir"; then
10592                           haveit=yes
10593                           break
10594                         fi
10595                       done
10596                       if test -z "$haveit"; then
10597                         rpathdirs="$rpathdirs $dir"
10598                       fi
10599                                                                   haveit=
10600                       for x in $ltrpathdirs; do
10601                         if test "X$x" = "X$dir"; then
10602                           haveit=yes
10603                           break
10604                         fi
10605                       done
10606                       if test -z "$haveit"; then
10607                         ltrpathdirs="$ltrpathdirs $dir"
10608                       fi
10609                     fi
10610                     ;;
10611                   -l*)
10612                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10613                     ;;
10614                   *.la)
10615                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10616                     ;;
10617                   *)
10618                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10619                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10620                     ;;
10621                 esac
10622               done
10623             fi
10624           else
10625                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10626             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10627           fi
10628         fi
10629       fi
10630     done
10631   done
10632   if test "X$rpathdirs" != "X"; then
10633     if test -n "$acl_hardcode_libdir_separator"; then
10634                         alldirs=
10635       for found_dir in $rpathdirs; do
10636         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10637       done
10638             acl_save_libdir="$libdir"
10639       libdir="$alldirs"
10640       eval flag=\"$acl_hardcode_libdir_flag_spec\"
10641       libdir="$acl_save_libdir"
10642       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10643     else
10644             for found_dir in $rpathdirs; do
10645         acl_save_libdir="$libdir"
10646         libdir="$found_dir"
10647         eval flag=\"$acl_hardcode_libdir_flag_spec\"
10648         libdir="$acl_save_libdir"
10649         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10650       done
10651     fi
10652   fi
10653   if test "X$ltrpathdirs" != "X"; then
10654             for found_dir in $ltrpathdirs; do
10655       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10656     done
10657   fi
10658
10659
10660
10661
10662
10663           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10664 printf %s "checking for GNU gettext in libintl... " >&6; }
10665 if eval test \${$gt_func_gnugettext_libintl+y}
10666 then :
10667   printf %s "(cached) " >&6
10668 else $as_nop
10669   gt_save_CPPFLAGS="$CPPFLAGS"
10670             CPPFLAGS="$CPPFLAGS $INCINTL"
10671             gt_save_LIBS="$LIBS"
10672             LIBS="$LIBS $LIBINTL"
10673                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h.  */
10675
10676 #include <libintl.h>
10677 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10678 extern int _nl_msg_cat_cntr;
10679 extern
10680 #ifdef __cplusplus
10681 "C"
10682 #endif
10683 const char *_nl_expand_alias (const char *);
10684 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10685 #else
10686 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10687 #endif
10688 $gt_revision_test_code
10689
10690 int
10691 main (void)
10692 {
10693
10694 bindtextdomain ("", "");
10695 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10696
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 if ac_fn_c_try_link "$LINENO"
10702 then :
10703   eval "$gt_func_gnugettext_libintl=yes"
10704 else $as_nop
10705   eval "$gt_func_gnugettext_libintl=no"
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10708     conftest$ac_exeext conftest.$ac_ext
10709                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10710               LIBS="$LIBS $LIBICONV"
10711               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h.  */
10713
10714 #include <libintl.h>
10715 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10716 extern int _nl_msg_cat_cntr;
10717 extern
10718 #ifdef __cplusplus
10719 "C"
10720 #endif
10721 const char *_nl_expand_alias (const char *);
10722 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10723 #else
10724 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10725 #endif
10726 $gt_revision_test_code
10727
10728 int
10729 main (void)
10730 {
10731
10732 bindtextdomain ("", "");
10733 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10734
10735   ;
10736   return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"
10740 then :
10741   LIBINTL="$LIBINTL $LIBICONV"
10742                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10743                  eval "$gt_func_gnugettext_libintl=yes"
10744
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10747     conftest$ac_exeext conftest.$ac_ext
10748             fi
10749             CPPFLAGS="$gt_save_CPPFLAGS"
10750             LIBS="$gt_save_LIBS"
10751 fi
10752 eval ac_res=\$$gt_func_gnugettext_libintl
10753                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10754 printf "%s\n" "$ac_res" >&6; }
10755         fi
10756
10757                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10758            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10759                 && test "$PACKAGE" != gettext-runtime \
10760                 && test "$PACKAGE" != gettext-tools; }; then
10761           gt_use_preinstalled_gnugettext=yes
10762         else
10763                     LIBINTL=
10764           LTLIBINTL=
10765           INCINTL=
10766         fi
10767
10768
10769
10770     if test -n "$INTL_MACOSX_LIBS"; then
10771       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10772          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10773                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10774         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10775       fi
10776     fi
10777
10778     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10779        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10780
10781 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10782
10783     else
10784       USE_NLS=no
10785     fi
10786   fi
10787
10788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10789 printf %s "checking whether to use NLS... " >&6; }
10790   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10791 printf "%s\n" "$USE_NLS" >&6; }
10792   if test "$USE_NLS" = "yes"; then
10793     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10794 printf %s "checking where the gettext function comes from... " >&6; }
10795     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10796       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10797         gt_source="external libintl"
10798       else
10799         gt_source="libc"
10800       fi
10801     else
10802       gt_source="included intl directory"
10803     fi
10804     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10805 printf "%s\n" "$gt_source" >&6; }
10806   fi
10807
10808   if test "$USE_NLS" = "yes"; then
10809
10810     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10811       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10812         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10813 printf %s "checking how to link with libintl... " >&6; }
10814         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10815 printf "%s\n" "$LIBINTL" >&6; }
10816
10817   for element in $INCINTL; do
10818     haveit=
10819     for x in $CPPFLAGS; do
10820
10821   acl_save_prefix="$prefix"
10822   prefix="$acl_final_prefix"
10823   acl_save_exec_prefix="$exec_prefix"
10824   exec_prefix="$acl_final_exec_prefix"
10825   eval x=\"$x\"
10826   exec_prefix="$acl_save_exec_prefix"
10827   prefix="$acl_save_prefix"
10828
10829       if test "X$x" = "X$element"; then
10830         haveit=yes
10831         break
10832       fi
10833     done
10834     if test -z "$haveit"; then
10835       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10836     fi
10837   done
10838
10839       fi
10840
10841
10842 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10843
10844
10845 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10846
10847     fi
10848
10849         POSUB=po
10850   fi
10851
10852
10853
10854     INTLLIBS="$LIBINTL"
10855
10856
10857
10858
10859
10860
10861
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10863 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10864 set x ${MAKE-make}
10865 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10866 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10867 then :
10868   printf %s "(cached) " >&6
10869 else $as_nop
10870   cat >conftest.make <<\_ACEOF
10871 SHELL = /bin/sh
10872 all:
10873         @echo '@@@%%%=$(MAKE)=@@@%%%'
10874 _ACEOF
10875 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10876 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10877   *@@@%%%=?*=@@@%%%*)
10878     eval ac_cv_prog_make_${ac_make}_set=yes;;
10879   *)
10880     eval ac_cv_prog_make_${ac_make}_set=no;;
10881 esac
10882 rm -f conftest.make
10883 fi
10884 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10886 printf "%s\n" "yes" >&6; }
10887   SET_MAKE=
10888 else
10889   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 printf "%s\n" "no" >&6; }
10891   SET_MAKE="MAKE=${MAKE-make}"
10892 fi
10893
10894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10895 printf %s "checking for GNU make... " >&6; }
10896 if test ${_cv_gnu_make_command+y}
10897 then :
10898   printf %s "(cached) " >&6
10899 else $as_nop
10900   _cv_gnu_make_command='' ;
10901                 if test -n "$FORCE_NATIVE_MAKE" ; then
10902                    MAKES="make"
10903                 else
10904                    MAKES="make gmake gnumake"
10905                 fi
10906                 for a in "$MAKE" $MAKES ; do
10907                         if test -z "$a" ; then continue ; fi ;
10908                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
10909                                 _cv_gnu_make_command=$a ;
10910                                 break;
10911                         fi
10912                 done ;
10913
10914 fi
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10916 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10917         if test  "x$_cv_gnu_make_command" != "x"  ; then
10918                 ifGNUmake='' ;
10919                 ifNotGNUmake='#' ;
10920         else
10921                 ifGNUmake='#' ;
10922                 ifNotGNUmake='' ;
10923                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10924 printf "%s\n" "\"Not found\"" >&6; };
10925         fi
10926
10927
10928
10929 # Extract the first word of "ln", so it can be a program name with args.
10930 set dummy ln; ac_word=$2
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10932 printf %s "checking for $ac_word... " >&6; }
10933 if test ${ac_cv_path_LN+y}
10934 then :
10935   printf %s "(cached) " >&6
10936 else $as_nop
10937   case $LN in
10938   [\\/]* | ?:[\\/]*)
10939   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10940   ;;
10941   *)
10942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945   IFS=$as_save_IFS
10946   case $as_dir in #(((
10947     '') as_dir=./ ;;
10948     */) ;;
10949     *) as_dir=$as_dir/ ;;
10950   esac
10951     for ac_exec_ext in '' $ac_executable_extensions; do
10952   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10953     ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10954     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10955     break 2
10956   fi
10957 done
10958   done
10959 IFS=$as_save_IFS
10960
10961   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10962   ;;
10963 esac
10964 fi
10965 LN=$ac_cv_path_LN
10966 if test -n "$LN"; then
10967   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10968 printf "%s\n" "$LN" >&6; }
10969 else
10970   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 printf "%s\n" "no" >&6; }
10972 fi
10973
10974
10975
10976 mkdir_p=$MKDIR_P
10977
10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10979 printf %s "checking whether ln -s works... " >&6; }
10980 LN_S=$as_ln_s
10981 if test "$LN_S" = "ln -s"; then
10982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10983 printf "%s\n" "yes" >&6; }
10984 else
10985   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10986 printf "%s\n" "no, using $LN_S" >&6; }
10987 fi
10988
10989 # Extract the first word of "mv", so it can be a program name with args.
10990 set dummy mv; ac_word=$2
10991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992 printf %s "checking for $ac_word... " >&6; }
10993 if test ${ac_cv_path_MV+y}
10994 then :
10995   printf %s "(cached) " >&6
10996 else $as_nop
10997   case $MV in
10998   [\\/]* | ?:[\\/]*)
10999   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11000   ;;
11001   *)
11002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11004 do
11005   IFS=$as_save_IFS
11006   case $as_dir in #(((
11007     '') as_dir=./ ;;
11008     */) ;;
11009     *) as_dir=$as_dir/ ;;
11010   esac
11011     for ac_exec_ext in '' $ac_executable_extensions; do
11012   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11013     ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11014     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11015     break 2
11016   fi
11017 done
11018   done
11019 IFS=$as_save_IFS
11020
11021   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11022   ;;
11023 esac
11024 fi
11025 MV=$ac_cv_path_MV
11026 if test -n "$MV"; then
11027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11028 printf "%s\n" "$MV" >&6; }
11029 else
11030   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 printf "%s\n" "no" >&6; }
11032 fi
11033
11034
11035 # Extract the first word of "cp", so it can be a program name with args.
11036 set dummy cp; ac_word=$2
11037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 printf %s "checking for $ac_word... " >&6; }
11039 if test ${ac_cv_path_CP+y}
11040 then :
11041   printf %s "(cached) " >&6
11042 else $as_nop
11043   case $CP in
11044   [\\/]* | ?:[\\/]*)
11045   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11046   ;;
11047   *)
11048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11050 do
11051   IFS=$as_save_IFS
11052   case $as_dir in #(((
11053     '') as_dir=./ ;;
11054     */) ;;
11055     *) as_dir=$as_dir/ ;;
11056   esac
11057     for ac_exec_ext in '' $ac_executable_extensions; do
11058   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11059     ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11060     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11061     break 2
11062   fi
11063 done
11064   done
11065 IFS=$as_save_IFS
11066
11067   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11068   ;;
11069 esac
11070 fi
11071 CP=$ac_cv_path_CP
11072 if test -n "$CP"; then
11073   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11074 printf "%s\n" "$CP" >&6; }
11075 else
11076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 printf "%s\n" "no" >&6; }
11078 fi
11079
11080
11081 # Extract the first word of "rm", so it can be a program name with args.
11082 set dummy rm; ac_word=$2
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 printf %s "checking for $ac_word... " >&6; }
11085 if test ${ac_cv_path_RM+y}
11086 then :
11087   printf %s "(cached) " >&6
11088 else $as_nop
11089   case $RM in
11090   [\\/]* | ?:[\\/]*)
11091   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11092   ;;
11093   *)
11094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11096 do
11097   IFS=$as_save_IFS
11098   case $as_dir in #(((
11099     '') as_dir=./ ;;
11100     */) ;;
11101     *) as_dir=$as_dir/ ;;
11102   esac
11103     for ac_exec_ext in '' $ac_executable_extensions; do
11104   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11105     ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11106     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11107     break 2
11108   fi
11109 done
11110   done
11111 IFS=$as_save_IFS
11112
11113   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11114   ;;
11115 esac
11116 fi
11117 RM=$ac_cv_path_RM
11118 if test -n "$RM"; then
11119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11120 printf "%s\n" "$RM" >&6; }
11121 else
11122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 printf "%s\n" "no" >&6; }
11124 fi
11125
11126
11127 # Extract the first word of "chmod", so it can be a program name with args.
11128 set dummy chmod; ac_word=$2
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 printf %s "checking for $ac_word... " >&6; }
11131 if test ${ac_cv_path_CHMOD+y}
11132 then :
11133   printf %s "(cached) " >&6
11134 else $as_nop
11135   case $CHMOD in
11136   [\\/]* | ?:[\\/]*)
11137   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11138   ;;
11139   *)
11140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11142 do
11143   IFS=$as_save_IFS
11144   case $as_dir in #(((
11145     '') as_dir=./ ;;
11146     */) ;;
11147     *) as_dir=$as_dir/ ;;
11148   esac
11149     for ac_exec_ext in '' $ac_executable_extensions; do
11150   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11151     ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11152     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11153     break 2
11154   fi
11155 done
11156   done
11157 IFS=$as_save_IFS
11158
11159   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11160   ;;
11161 esac
11162 fi
11163 CHMOD=$ac_cv_path_CHMOD
11164 if test -n "$CHMOD"; then
11165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11166 printf "%s\n" "$CHMOD" >&6; }
11167 else
11168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 printf "%s\n" "no" >&6; }
11170 fi
11171
11172
11173 for ac_prog in gawk mawk nawk awk
11174 do
11175   # Extract the first word of "$ac_prog", so it can be a program name with args.
11176 set dummy $ac_prog; ac_word=$2
11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 printf %s "checking for $ac_word... " >&6; }
11179 if test ${ac_cv_prog_AWK+y}
11180 then :
11181   printf %s "(cached) " >&6
11182 else $as_nop
11183   if test -n "$AWK"; then
11184   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11185 else
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11188 do
11189   IFS=$as_save_IFS
11190   case $as_dir in #(((
11191     '') as_dir=./ ;;
11192     */) ;;
11193     *) as_dir=$as_dir/ ;;
11194   esac
11195     for ac_exec_ext in '' $ac_executable_extensions; do
11196   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11197     ac_cv_prog_AWK="$ac_prog"
11198     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11199     break 2
11200   fi
11201 done
11202   done
11203 IFS=$as_save_IFS
11204
11205 fi
11206 fi
11207 AWK=$ac_cv_prog_AWK
11208 if test -n "$AWK"; then
11209   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11210 printf "%s\n" "$AWK" >&6; }
11211 else
11212   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 printf "%s\n" "no" >&6; }
11214 fi
11215
11216
11217   test -n "$AWK" && break
11218 done
11219
11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11221 printf %s "checking for egrep... " >&6; }
11222 if test ${ac_cv_path_EGREP+y}
11223 then :
11224   printf %s "(cached) " >&6
11225 else $as_nop
11226   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11227    then ac_cv_path_EGREP="$GREP -E"
11228    else
11229      if test -z "$EGREP"; then
11230   ac_path_EGREP_found=false
11231   # Loop through the user's path and test for each of PROGNAME-LIST
11232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11234 do
11235   IFS=$as_save_IFS
11236   case $as_dir in #(((
11237     '') as_dir=./ ;;
11238     */) ;;
11239     *) as_dir=$as_dir/ ;;
11240   esac
11241     for ac_prog in egrep
11242    do
11243     for ac_exec_ext in '' $ac_executable_extensions; do
11244       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11245       as_fn_executable_p "$ac_path_EGREP" || continue
11246 # Check for GNU ac_path_EGREP and select it if it is found.
11247   # Check for GNU $ac_path_EGREP
11248 case `"$ac_path_EGREP" --version 2>&1` in
11249 *GNU*)
11250   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11251 *)
11252   ac_count=0
11253   printf %s 0123456789 >"conftest.in"
11254   while :
11255   do
11256     cat "conftest.in" "conftest.in" >"conftest.tmp"
11257     mv "conftest.tmp" "conftest.in"
11258     cp "conftest.in" "conftest.nl"
11259     printf "%s\n" 'EGREP' >> "conftest.nl"
11260     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11261     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11262     as_fn_arith $ac_count + 1 && ac_count=$as_val
11263     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11264       # Best one so far, save it but keep looking for a better one
11265       ac_cv_path_EGREP="$ac_path_EGREP"
11266       ac_path_EGREP_max=$ac_count
11267     fi
11268     # 10*(2^10) chars as input seems more than enough
11269     test $ac_count -gt 10 && break
11270   done
11271   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11272 esac
11273
11274       $ac_path_EGREP_found && break 3
11275     done
11276   done
11277   done
11278 IFS=$as_save_IFS
11279   if test -z "$ac_cv_path_EGREP"; then
11280     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11281   fi
11282 else
11283   ac_cv_path_EGREP=$EGREP
11284 fi
11285
11286    fi
11287 fi
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11289 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11290  EGREP="$ac_cv_path_EGREP"
11291
11292
11293 # Extract the first word of "sed", so it can be a program name with args.
11294 set dummy sed; ac_word=$2
11295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296 printf %s "checking for $ac_word... " >&6; }
11297 if test ${ac_cv_path_SED+y}
11298 then :
11299   printf %s "(cached) " >&6
11300 else $as_nop
11301   case $SED in
11302   [\\/]* | ?:[\\/]*)
11303   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11304   ;;
11305   *)
11306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11308 do
11309   IFS=$as_save_IFS
11310   case $as_dir in #(((
11311     '') as_dir=./ ;;
11312     */) ;;
11313     *) as_dir=$as_dir/ ;;
11314   esac
11315     for ac_exec_ext in '' $ac_executable_extensions; do
11316   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11317     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11318     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11319     break 2
11320   fi
11321 done
11322   done
11323 IFS=$as_save_IFS
11324
11325   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11326   ;;
11327 esac
11328 fi
11329 SED=$ac_cv_path_SED
11330 if test -n "$SED"; then
11331   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11332 printf "%s\n" "$SED" >&6; }
11333 else
11334   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 printf "%s\n" "no" >&6; }
11336 fi
11337
11338
11339 # Extract the first word of "perl", so it can be a program name with args.
11340 set dummy perl; ac_word=$2
11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 printf %s "checking for $ac_word... " >&6; }
11343 if test ${ac_cv_path_PERL+y}
11344 then :
11345   printf %s "(cached) " >&6
11346 else $as_nop
11347   case $PERL in
11348   [\\/]* | ?:[\\/]*)
11349   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11350   ;;
11351   *)
11352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355   IFS=$as_save_IFS
11356   case $as_dir in #(((
11357     '') as_dir=./ ;;
11358     */) ;;
11359     *) as_dir=$as_dir/ ;;
11360   esac
11361     for ac_exec_ext in '' $ac_executable_extensions; do
11362   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11363     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11364     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11365     break 2
11366   fi
11367 done
11368   done
11369 IFS=$as_save_IFS
11370
11371   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11372   ;;
11373 esac
11374 fi
11375 PERL=$ac_cv_path_PERL
11376 if test -n "$PERL"; then
11377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11378 printf "%s\n" "$PERL" >&6; }
11379 else
11380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 printf "%s\n" "no" >&6; }
11382 fi
11383
11384
11385 # Extract the first word of "ldconfig", so it can be a program name with args.
11386 set dummy ldconfig; ac_word=$2
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388 printf %s "checking for $ac_word... " >&6; }
11389 if test ${ac_cv_path_LDCONFIG+y}
11390 then :
11391   printf %s "(cached) " >&6
11392 else $as_nop
11393   case $LDCONFIG in
11394   [\\/]* | ?:[\\/]*)
11395   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11396   ;;
11397   *)
11398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11400 do
11401   IFS=$as_save_IFS
11402   case $as_dir in #(((
11403     '') as_dir=./ ;;
11404     */) ;;
11405     *) as_dir=$as_dir/ ;;
11406   esac
11407     for ac_exec_ext in '' $ac_executable_extensions; do
11408   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11409     ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11410     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11411     break 2
11412   fi
11413 done
11414   done
11415 IFS=$as_save_IFS
11416
11417   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11418   ;;
11419 esac
11420 fi
11421 LDCONFIG=$ac_cv_path_LDCONFIG
11422 if test -n "$LDCONFIG"; then
11423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11424 printf "%s\n" "$LDCONFIG" >&6; }
11425 else
11426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 printf "%s\n" "no" >&6; }
11428 fi
11429
11430
11431 if test -n "$ac_tool_prefix"; then
11432   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11433 set dummy ${ac_tool_prefix}ar; ac_word=$2
11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 printf %s "checking for $ac_word... " >&6; }
11436 if test ${ac_cv_prog_AR+y}
11437 then :
11438   printf %s "(cached) " >&6
11439 else $as_nop
11440   if test -n "$AR"; then
11441   ac_cv_prog_AR="$AR" # Let the user override the test.
11442 else
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11445 do
11446   IFS=$as_save_IFS
11447   case $as_dir in #(((
11448     '') as_dir=./ ;;
11449     */) ;;
11450     *) as_dir=$as_dir/ ;;
11451   esac
11452     for ac_exec_ext in '' $ac_executable_extensions; do
11453   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11454     ac_cv_prog_AR="${ac_tool_prefix}ar"
11455     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11456     break 2
11457   fi
11458 done
11459   done
11460 IFS=$as_save_IFS
11461
11462 fi
11463 fi
11464 AR=$ac_cv_prog_AR
11465 if test -n "$AR"; then
11466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11467 printf "%s\n" "$AR" >&6; }
11468 else
11469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 printf "%s\n" "no" >&6; }
11471 fi
11472
11473
11474 fi
11475 if test -z "$ac_cv_prog_AR"; then
11476   ac_ct_AR=$AR
11477   # Extract the first word of "ar", so it can be a program name with args.
11478 set dummy ar; ac_word=$2
11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 printf %s "checking for $ac_word... " >&6; }
11481 if test ${ac_cv_prog_ac_ct_AR+y}
11482 then :
11483   printf %s "(cached) " >&6
11484 else $as_nop
11485   if test -n "$ac_ct_AR"; then
11486   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11487 else
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11490 do
11491   IFS=$as_save_IFS
11492   case $as_dir in #(((
11493     '') as_dir=./ ;;
11494     */) ;;
11495     *) as_dir=$as_dir/ ;;
11496   esac
11497     for ac_exec_ext in '' $ac_executable_extensions; do
11498   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11499     ac_cv_prog_ac_ct_AR="ar"
11500     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11501     break 2
11502   fi
11503 done
11504   done
11505 IFS=$as_save_IFS
11506
11507 fi
11508 fi
11509 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11510 if test -n "$ac_ct_AR"; then
11511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11512 printf "%s\n" "$ac_ct_AR" >&6; }
11513 else
11514   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 printf "%s\n" "no" >&6; }
11516 fi
11517
11518   if test "x$ac_ct_AR" = x; then
11519     AR="ar"
11520   else
11521     case $cross_compiling:$ac_tool_warned in
11522 yes:)
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11525 ac_tool_warned=yes ;;
11526 esac
11527     AR=$ac_ct_AR
11528   fi
11529 else
11530   AR="$ac_cv_prog_AR"
11531 fi
11532
11533 if test -n "$ac_tool_prefix"; then
11534   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537 printf %s "checking for $ac_word... " >&6; }
11538 if test ${ac_cv_prog_RANLIB+y}
11539 then :
11540   printf %s "(cached) " >&6
11541 else $as_nop
11542   if test -n "$RANLIB"; then
11543   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11544 else
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548   IFS=$as_save_IFS
11549   case $as_dir in #(((
11550     '') as_dir=./ ;;
11551     */) ;;
11552     *) as_dir=$as_dir/ ;;
11553   esac
11554     for ac_exec_ext in '' $ac_executable_extensions; do
11555   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11556     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11557     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11558     break 2
11559   fi
11560 done
11561   done
11562 IFS=$as_save_IFS
11563
11564 fi
11565 fi
11566 RANLIB=$ac_cv_prog_RANLIB
11567 if test -n "$RANLIB"; then
11568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11569 printf "%s\n" "$RANLIB" >&6; }
11570 else
11571   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572 printf "%s\n" "no" >&6; }
11573 fi
11574
11575
11576 fi
11577 if test -z "$ac_cv_prog_RANLIB"; then
11578   ac_ct_RANLIB=$RANLIB
11579   # Extract the first word of "ranlib", so it can be a program name with args.
11580 set dummy ranlib; ac_word=$2
11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 printf %s "checking for $ac_word... " >&6; }
11583 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11584 then :
11585   printf %s "(cached) " >&6
11586 else $as_nop
11587   if test -n "$ac_ct_RANLIB"; then
11588   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11589 else
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11592 do
11593   IFS=$as_save_IFS
11594   case $as_dir in #(((
11595     '') as_dir=./ ;;
11596     */) ;;
11597     *) as_dir=$as_dir/ ;;
11598   esac
11599     for ac_exec_ext in '' $ac_executable_extensions; do
11600   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11601     ac_cv_prog_ac_ct_RANLIB="ranlib"
11602     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11603     break 2
11604   fi
11605 done
11606   done
11607 IFS=$as_save_IFS
11608
11609 fi
11610 fi
11611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11612 if test -n "$ac_ct_RANLIB"; then
11613   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11614 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11615 else
11616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 printf "%s\n" "no" >&6; }
11618 fi
11619
11620   if test "x$ac_ct_RANLIB" = x; then
11621     RANLIB=":"
11622   else
11623     case $cross_compiling:$ac_tool_warned in
11624 yes:)
11625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11626 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11627 ac_tool_warned=yes ;;
11628 esac
11629     RANLIB=$ac_ct_RANLIB
11630   fi
11631 else
11632   RANLIB="$ac_cv_prog_RANLIB"
11633 fi
11634
11635 if test -n "$ac_tool_prefix"; then
11636   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11637 set dummy ${ac_tool_prefix}strip; ac_word=$2
11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 printf %s "checking for $ac_word... " >&6; }
11640 if test ${ac_cv_prog_STRIP+y}
11641 then :
11642   printf %s "(cached) " >&6
11643 else $as_nop
11644   if test -n "$STRIP"; then
11645   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11646 else
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650   IFS=$as_save_IFS
11651   case $as_dir in #(((
11652     '') as_dir=./ ;;
11653     */) ;;
11654     *) as_dir=$as_dir/ ;;
11655   esac
11656     for ac_exec_ext in '' $ac_executable_extensions; do
11657   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11658     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11659     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11660     break 2
11661   fi
11662 done
11663   done
11664 IFS=$as_save_IFS
11665
11666 fi
11667 fi
11668 STRIP=$ac_cv_prog_STRIP
11669 if test -n "$STRIP"; then
11670   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11671 printf "%s\n" "$STRIP" >&6; }
11672 else
11673   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 printf "%s\n" "no" >&6; }
11675 fi
11676
11677
11678 fi
11679 if test -z "$ac_cv_prog_STRIP"; then
11680   ac_ct_STRIP=$STRIP
11681   # Extract the first word of "strip", so it can be a program name with args.
11682 set dummy strip; ac_word=$2
11683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 printf %s "checking for $ac_word... " >&6; }
11685 if test ${ac_cv_prog_ac_ct_STRIP+y}
11686 then :
11687   printf %s "(cached) " >&6
11688 else $as_nop
11689   if test -n "$ac_ct_STRIP"; then
11690   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11691 else
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11694 do
11695   IFS=$as_save_IFS
11696   case $as_dir in #(((
11697     '') as_dir=./ ;;
11698     */) ;;
11699     *) as_dir=$as_dir/ ;;
11700   esac
11701     for ac_exec_ext in '' $ac_executable_extensions; do
11702   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11703     ac_cv_prog_ac_ct_STRIP="strip"
11704     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11705     break 2
11706   fi
11707 done
11708   done
11709 IFS=$as_save_IFS
11710
11711 fi
11712 fi
11713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11714 if test -n "$ac_ct_STRIP"; then
11715   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11716 printf "%s\n" "$ac_ct_STRIP" >&6; }
11717 else
11718   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 printf "%s\n" "no" >&6; }
11720 fi
11721
11722   if test "x$ac_ct_STRIP" = x; then
11723     STRIP=":"
11724   else
11725     case $cross_compiling:$ac_tool_warned in
11726 yes:)
11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11728 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11729 ac_tool_warned=yes ;;
11730 esac
11731     STRIP=$ac_ct_STRIP
11732   fi
11733 else
11734   STRIP="$ac_cv_prog_STRIP"
11735 fi
11736
11737 # Extract the first word of "makeinfo", so it can be a program name with args.
11738 set dummy makeinfo; ac_word=$2
11739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 printf %s "checking for $ac_word... " >&6; }
11741 if test ${ac_cv_prog_MAKEINFO+y}
11742 then :
11743   printf %s "(cached) " >&6
11744 else $as_nop
11745   if test -n "$MAKEINFO"; then
11746   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11747 else
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11750 do
11751   IFS=$as_save_IFS
11752   case $as_dir in #(((
11753     '') as_dir=./ ;;
11754     */) ;;
11755     *) as_dir=$as_dir/ ;;
11756   esac
11757     for ac_exec_ext in '' $ac_executable_extensions; do
11758   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11759     ac_cv_prog_MAKEINFO="makeinfo"
11760     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11761     break 2
11762   fi
11763 done
11764   done
11765 IFS=$as_save_IFS
11766
11767 fi
11768 fi
11769 MAKEINFO=$ac_cv_prog_MAKEINFO
11770 if test -n "$MAKEINFO"; then
11771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11772 printf "%s\n" "$MAKEINFO" >&6; }
11773 else
11774   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 printf "%s\n" "no" >&6; }
11776 fi
11777
11778
11779 if test "_$MAKEINFO" = "_"; then
11780     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11781 else
11782     case "$MAKEINFO" in
11783       */missing.*)
11784         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11785 *** Makeinfo is missing. Info documentation will not be built." >&5
11786 printf "%s\n" "$as_me: WARNING:
11787 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11788         ;;
11789       *)
11790         ;;
11791     esac
11792 fi
11793
11794
11795 # See if we need a separate native compiler.
11796 if test $cross_compiling = no; then
11797   BUILD_CC="$CC"
11798
11799 else
11800   for ac_prog in gcc cc
11801 do
11802   # Extract the first word of "$ac_prog", so it can be a program name with args.
11803 set dummy $ac_prog; ac_word=$2
11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 printf %s "checking for $ac_word... " >&6; }
11806 if test ${ac_cv_prog_BUILD_CC+y}
11807 then :
11808   printf %s "(cached) " >&6
11809 else $as_nop
11810   if test -n "$BUILD_CC"; then
11811   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11812 else
11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814 for as_dir in $PATH
11815 do
11816   IFS=$as_save_IFS
11817   case $as_dir in #(((
11818     '') as_dir=./ ;;
11819     */) ;;
11820     *) as_dir=$as_dir/ ;;
11821   esac
11822     for ac_exec_ext in '' $ac_executable_extensions; do
11823   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11824     ac_cv_prog_BUILD_CC="$ac_prog"
11825     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11826     break 2
11827   fi
11828 done
11829   done
11830 IFS=$as_save_IFS
11831
11832 fi
11833 fi
11834 BUILD_CC=$ac_cv_prog_BUILD_CC
11835 if test -n "$BUILD_CC"; then
11836   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11837 printf "%s\n" "$BUILD_CC" >&6; }
11838 else
11839   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 printf "%s\n" "no" >&6; }
11841 fi
11842
11843
11844   test -n "$BUILD_CC" && break
11845 done
11846
11847 fi
11848 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11849 if test "x$ac_cv_header_dirent_h" = xyes
11850 then :
11851   printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11852
11853 fi
11854 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11855 if test "x$ac_cv_header_errno_h" = xyes
11856 then :
11857   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11858
11859 fi
11860 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11861 if test "x$ac_cv_header_execinfo_h" = xyes
11862 then :
11863   printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11864
11865 fi
11866 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11867 if test "x$ac_cv_header_getopt_h" = xyes
11868 then :
11869   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11870
11871 fi
11872 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_malloc_h" = xyes
11874 then :
11875   printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11876
11877 fi
11878 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11879 if test "x$ac_cv_header_mntent_h" = xyes
11880 then :
11881   printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11882
11883 fi
11884 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11885 if test "x$ac_cv_header_paths_h" = xyes
11886 then :
11887   printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11888
11889 fi
11890 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11891 if test "x$ac_cv_header_pthread_h" = xyes
11892 then :
11893   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11894
11895 fi
11896 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_semaphore_h" = xyes
11898 then :
11899   printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11900
11901 fi
11902 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11903 if test "x$ac_cv_header_setjmp_h" = xyes
11904 then :
11905   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11906
11907 fi
11908 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11909 if test "x$ac_cv_header_signal_h" = xyes
11910 then :
11911   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11912
11913 fi
11914 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11915 if test "x$ac_cv_header_stdarg_h" = xyes
11916 then :
11917   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11918
11919 fi
11920 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11921 if test "x$ac_cv_header_stdint_h" = xyes
11922 then :
11923   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11924
11925 fi
11926 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11927 if test "x$ac_cv_header_stdlib_h" = xyes
11928 then :
11929   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11930
11931 fi
11932 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11933 if test "x$ac_cv_header_termios_h" = xyes
11934 then :
11935   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11936
11937 fi
11938 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11939 if test "x$ac_cv_header_termio_h" = xyes
11940 then :
11941   printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11942
11943 fi
11944 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11945 if test "x$ac_cv_header_unistd_h" = xyes
11946 then :
11947   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11948
11949 fi
11950 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11951 if test "x$ac_cv_header_utime_h" = xyes
11952 then :
11953   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11954
11955 fi
11956 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11957 if test "x$ac_cv_header_attr_xattr_h" = xyes
11958 then :
11959   printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11960
11961 fi
11962 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11963 if test "x$ac_cv_header_linux_falloc_h" = xyes
11964 then :
11965   printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11966
11967 fi
11968 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11969 if test "x$ac_cv_header_linux_fd_h" = xyes
11970 then :
11971   printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11972
11973 fi
11974 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11975 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11976 then :
11977   printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11978
11979 fi
11980 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11981 if test "x$ac_cv_header_linux_major_h" = xyes
11982 then :
11983   printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11984
11985 fi
11986 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11987 if test "x$ac_cv_header_linux_loop_h" = xyes
11988 then :
11989   printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11990
11991 fi
11992 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11993 if test "x$ac_cv_header_linux_types_h" = xyes
11994 then :
11995   printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11996
11997 fi
11998 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11999 if test "x$ac_cv_header_net_if_dl_h" = xyes
12000 then :
12001   printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
12002
12003 fi
12004 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12005 if test "x$ac_cv_header_netinet_in_h" = xyes
12006 then :
12007   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12008
12009 fi
12010 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12011 if test "x$ac_cv_header_sys_acl_h" = xyes
12012 then :
12013   printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12014
12015 fi
12016 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12017 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12018 then :
12019   printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12020
12021 fi
12022 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12023 if test "x$ac_cv_header_sys_disk_h" = xyes
12024 then :
12025   printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12026
12027 fi
12028 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12029 if test "x$ac_cv_header_sys_file_h" = xyes
12030 then :
12031   printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12032
12033 fi
12034 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12035 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12036 then :
12037   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12038
12039 fi
12040 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12041 if test "x$ac_cv_header_sys_key_h" = xyes
12042 then :
12043   printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12044
12045 fi
12046 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12047 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12048 then :
12049   printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12050
12051 fi
12052 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12053 if test "x$ac_cv_header_sys_mman_h" = xyes
12054 then :
12055   printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12056
12057 fi
12058 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12059 if test "x$ac_cv_header_sys_mount_h" = xyes
12060 then :
12061   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12062
12063 fi
12064 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12065 if test "x$ac_cv_header_sys_prctl_h" = xyes
12066 then :
12067   printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12068
12069 fi
12070 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12071 if test "x$ac_cv_header_sys_random_h" = xyes
12072 then :
12073   printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12074
12075 fi
12076 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12077 if test "x$ac_cv_header_sys_resource_h" = xyes
12078 then :
12079   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12080
12081 fi
12082 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12083 if test "x$ac_cv_header_sys_select_h" = xyes
12084 then :
12085   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12086
12087 fi
12088 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12089 if test "x$ac_cv_header_sys_socket_h" = xyes
12090 then :
12091   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12092
12093 fi
12094 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12095 if test "x$ac_cv_header_sys_sockio_h" = xyes
12096 then :
12097   printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12098
12099 fi
12100 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12101 if test "x$ac_cv_header_sys_stat_h" = xyes
12102 then :
12103   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12104
12105 fi
12106 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12107 if test "x$ac_cv_header_sys_syscall_h" = xyes
12108 then :
12109   printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12110
12111 fi
12112 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12114 then :
12115   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12116
12117 fi
12118 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_sys_time_h" = xyes
12120 then :
12121   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12122
12123 fi
12124 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12125 if test "x$ac_cv_header_sys_types_h" = xyes
12126 then :
12127   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12128
12129 fi
12130 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12131 if test "x$ac_cv_header_sys_un_h" = xyes
12132 then :
12133   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12134
12135 fi
12136 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12137 if test "x$ac_cv_header_sys_wait_h" = xyes
12138 then :
12139   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12140
12141 fi
12142 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12143 if test "x$ac_cv_header_sys_xattr_h" = xyes
12144 then :
12145   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12146
12147 fi
12148
12149 case "$host_os" in
12150 mingw*)
12151         # The above checks only detect system headers, not the headers in
12152         # ./include/mingw/, so explicitly define them to be available.
12153         printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12154
12155         printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12156
12157         printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12158
12159         printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12160
12161         printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12162
12163         ;;
12164 esac
12165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12166 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12167 DD=
12168 for i in dd gdd ; do
12169         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12170                 DD=$i
12171                 break
12172         fi
12173 done
12174 if test -n "$DD" ; then
12175         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12176 printf "%s\n" "$DD" >&6; }
12177 else
12178         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12179 printf "%s\n" "not found, using dd" >&6; }
12180         DD=dd
12181         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12182 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12183 fi
12184
12185
12186 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12187 #if HAVE_SYS_TYPES_H
12188 #include <sys/types.h>
12189 #endif
12190 #if HAVE_SYS_SOCKET
12191 #include <sys/socket.h>
12192 #endif
12193
12194 "
12195 if test "x$ac_cv_header_net_if_h" = xyes
12196 then :
12197   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12198
12199 fi
12200
12201 ac_func=
12202 for ac_item in $ac_func_c_list
12203 do
12204   if test $ac_func; then
12205     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12206     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12207       echo "#define $ac_item 1" >> confdefs.h
12208     fi
12209     ac_func=
12210   else
12211     ac_func=$ac_item
12212   fi
12213 done
12214
12215 if test "x$ac_cv_func_vprintf" = xno
12216 then :
12217   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12218 if test "x$ac_cv_func__doprnt" = xyes
12219 then :
12220
12221 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12222
12223 fi
12224
12225 fi
12226 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12227 "
12228 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12229 then :
12230
12231 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12232
12233 fi
12234
12235 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12236 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12237 then :
12238
12239 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12240
12241
12242 fi
12243
12244 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12245 "
12246 if test "x$ac_cv_type_ssize_t" = xyes
12247 then :
12248
12249 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12250
12251 fi
12252
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12254 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12255 if test ${ac_cv_c_undeclared_builtin_options+y}
12256 then :
12257   printf %s "(cached) " >&6
12258 else $as_nop
12259   ac_save_CFLAGS=$CFLAGS
12260    ac_cv_c_undeclared_builtin_options='cannot detect'
12261    for ac_arg in '' -fno-builtin; do
12262      CFLAGS="$ac_save_CFLAGS $ac_arg"
12263      # This test program should *not* compile successfully.
12264      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h.  */
12266
12267 int
12268 main (void)
12269 {
12270 (void) strchr;
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_compile "$LINENO"
12276 then :
12277
12278 else $as_nop
12279   # This test program should compile successfully.
12280         # No library function is consistently available on
12281         # freestanding implementations, so test against a dummy
12282         # declaration.  Include always-available headers on the
12283         # off chance that they somehow elicit warnings.
12284         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h.  */
12286 #include <float.h>
12287 #include <limits.h>
12288 #include <stdarg.h>
12289 #include <stddef.h>
12290 extern void ac_decl (int, char *);
12291
12292 int
12293 main (void)
12294 {
12295 (void) ac_decl (0, (char *) 0);
12296   (void) ac_decl;
12297
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_compile "$LINENO"
12303 then :
12304   if test x"$ac_arg" = x
12305 then :
12306   ac_cv_c_undeclared_builtin_options='none needed'
12307 else $as_nop
12308   ac_cv_c_undeclared_builtin_options=$ac_arg
12309 fi
12310           break
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12313 fi
12314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12315     done
12316     CFLAGS=$ac_save_CFLAGS
12317
12318 fi
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12320 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12321   case $ac_cv_c_undeclared_builtin_options in #(
12322   'cannot detect') :
12323     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12324 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12325 as_fn_error $? "cannot make $CC report undeclared builtins
12326 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12327   'none needed') :
12328     ac_c_undeclared_builtin_options='' ;; #(
12329   *) :
12330     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12331 esac
12332
12333 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12334 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12335 if test "x$ac_cv_have_decl_llseek" = xyes
12336 then :
12337
12338 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12339
12340 fi
12341 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12342                  #define _LARGEFILE64_SOURCE
12343                  #include <unistd.h>
12344 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12345 if test "x$ac_cv_have_decl_lseek64" = xyes
12346 then :
12347
12348 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12349
12350 fi
12351
12352 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12353 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12354 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12355 then :
12356
12357 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12358
12359 fi
12360 # Check whether --enable-largefile was given.
12361 if test ${enable_largefile+y}
12362 then :
12363   enableval=$enable_largefile;
12364 fi
12365
12366 if test "$enable_largefile" != no; then
12367
12368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12369 printf %s "checking for special C compiler options needed for large files... " >&6; }
12370 if test ${ac_cv_sys_largefile_CC+y}
12371 then :
12372   printf %s "(cached) " >&6
12373 else $as_nop
12374   ac_cv_sys_largefile_CC=no
12375      if test "$GCC" != yes; then
12376        ac_save_CC=$CC
12377        while :; do
12378          # IRIX 6.2 and later do not support large files by default,
12379          # so use the C compiler's -n32 option if that helps.
12380          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h.  */
12382 #include <sys/types.h>
12383  /* Check that off_t can represent 2**63 - 1 correctly.
12384     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12385     since some C++ compilers masquerading as C compilers
12386     incorrectly reject 9223372036854775807.  */
12387 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12388   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12389                        && LARGE_OFF_T % 2147483647 == 1)
12390                       ? 1 : -1];
12391 int
12392 main (void)
12393 {
12394
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399          if ac_fn_c_try_compile "$LINENO"
12400 then :
12401   break
12402 fi
12403 rm -f core conftest.err conftest.$ac_objext conftest.beam
12404          CC="$CC -n32"
12405          if ac_fn_c_try_compile "$LINENO"
12406 then :
12407   ac_cv_sys_largefile_CC=' -n32'; break
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext conftest.beam
12410          break
12411        done
12412        CC=$ac_save_CC
12413        rm -f conftest.$ac_ext
12414     fi
12415 fi
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12417 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12418   if test "$ac_cv_sys_largefile_CC" != no; then
12419     CC=$CC$ac_cv_sys_largefile_CC
12420   fi
12421
12422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12423 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12424 if test ${ac_cv_sys_file_offset_bits+y}
12425 then :
12426   printf %s "(cached) " >&6
12427 else $as_nop
12428   while :; do
12429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h.  */
12431 #include <sys/types.h>
12432  /* Check that off_t can represent 2**63 - 1 correctly.
12433     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12434     since some C++ compilers masquerading as C compilers
12435     incorrectly reject 9223372036854775807.  */
12436 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12437   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12438                        && LARGE_OFF_T % 2147483647 == 1)
12439                       ? 1 : -1];
12440 int
12441 main (void)
12442 {
12443
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 if ac_fn_c_try_compile "$LINENO"
12449 then :
12450   ac_cv_sys_file_offset_bits=no; break
12451 fi
12452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h.  */
12455 #define _FILE_OFFSET_BITS 64
12456 #include <sys/types.h>
12457  /* Check that off_t can represent 2**63 - 1 correctly.
12458     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12459     since some C++ compilers masquerading as C compilers
12460     incorrectly reject 9223372036854775807.  */
12461 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12462   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12463                        && LARGE_OFF_T % 2147483647 == 1)
12464                       ? 1 : -1];
12465 int
12466 main (void)
12467 {
12468
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"
12474 then :
12475   ac_cv_sys_file_offset_bits=64; break
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12478   ac_cv_sys_file_offset_bits=unknown
12479   break
12480 done
12481 fi
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12483 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12484 case $ac_cv_sys_file_offset_bits in #(
12485   no | unknown) ;;
12486   *)
12487 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12488 ;;
12489 esac
12490 rm -rf conftest*
12491   if test $ac_cv_sys_file_offset_bits = unknown; then
12492     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12493 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12494 if test ${ac_cv_sys_large_files+y}
12495 then :
12496   printf %s "(cached) " >&6
12497 else $as_nop
12498   while :; do
12499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h.  */
12501 #include <sys/types.h>
12502  /* Check that off_t can represent 2**63 - 1 correctly.
12503     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12504     since some C++ compilers masquerading as C compilers
12505     incorrectly reject 9223372036854775807.  */
12506 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12507   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12508                        && LARGE_OFF_T % 2147483647 == 1)
12509                       ? 1 : -1];
12510 int
12511 main (void)
12512 {
12513
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 if ac_fn_c_try_compile "$LINENO"
12519 then :
12520   ac_cv_sys_large_files=no; break
12521 fi
12522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h.  */
12525 #define _LARGE_FILES 1
12526 #include <sys/types.h>
12527  /* Check that off_t can represent 2**63 - 1 correctly.
12528     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12529     since some C++ compilers masquerading as C compilers
12530     incorrectly reject 9223372036854775807.  */
12531 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12532   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12533                        && LARGE_OFF_T % 2147483647 == 1)
12534                       ? 1 : -1];
12535 int
12536 main (void)
12537 {
12538
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 if ac_fn_c_try_compile "$LINENO"
12544 then :
12545   ac_cv_sys_large_files=1; break
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12548   ac_cv_sys_large_files=unknown
12549   break
12550 done
12551 fi
12552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12553 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12554 case $ac_cv_sys_large_files in #(
12555   no | unknown) ;;
12556   *)
12557 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12558 ;;
12559 esac
12560 rm -rf conftest*
12561   fi
12562 fi
12563
12564 # The cast to long int works around a bug in the HP C Compiler
12565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12567 # This bug is HP SR number 8606223364.
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12569 printf %s "checking size of short... " >&6; }
12570 if test ${ac_cv_sizeof_short+y}
12571 then :
12572   printf %s "(cached) " >&6
12573 else $as_nop
12574   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
12575 then :
12576
12577 else $as_nop
12578   if test "$ac_cv_type_short" = yes; then
12579      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12580 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12581 as_fn_error 77 "cannot compute sizeof (short)
12582 See \`config.log' for more details" "$LINENO" 5; }
12583    else
12584      ac_cv_sizeof_short=0
12585    fi
12586 fi
12587
12588 fi
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12590 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12591
12592
12593
12594 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12595
12596
12597 # The cast to long int works around a bug in the HP C Compiler
12598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12600 # This bug is HP SR number 8606223364.
12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12602 printf %s "checking size of int... " >&6; }
12603 if test ${ac_cv_sizeof_int+y}
12604 then :
12605   printf %s "(cached) " >&6
12606 else $as_nop
12607   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
12608 then :
12609
12610 else $as_nop
12611   if test "$ac_cv_type_int" = yes; then
12612      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12614 as_fn_error 77 "cannot compute sizeof (int)
12615 See \`config.log' for more details" "$LINENO" 5; }
12616    else
12617      ac_cv_sizeof_int=0
12618    fi
12619 fi
12620
12621 fi
12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12623 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12624
12625
12626
12627 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12628
12629
12630 # The cast to long int works around a bug in the HP C Compiler
12631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12633 # This bug is HP SR number 8606223364.
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12635 printf %s "checking size of long... " >&6; }
12636 if test ${ac_cv_sizeof_long+y}
12637 then :
12638   printf %s "(cached) " >&6
12639 else $as_nop
12640   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
12641 then :
12642
12643 else $as_nop
12644   if test "$ac_cv_type_long" = yes; then
12645      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12646 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12647 as_fn_error 77 "cannot compute sizeof (long)
12648 See \`config.log' for more details" "$LINENO" 5; }
12649    else
12650      ac_cv_sizeof_long=0
12651    fi
12652 fi
12653
12654 fi
12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12656 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12657
12658
12659
12660 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12661
12662
12663 # The cast to long int works around a bug in the HP C Compiler
12664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12666 # This bug is HP SR number 8606223364.
12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12668 printf %s "checking size of long long... " >&6; }
12669 if test ${ac_cv_sizeof_long_long+y}
12670 then :
12671   printf %s "(cached) " >&6
12672 else $as_nop
12673   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
12674 then :
12675
12676 else $as_nop
12677   if test "$ac_cv_type_long_long" = yes; then
12678      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12680 as_fn_error 77 "cannot compute sizeof (long long)
12681 See \`config.log' for more details" "$LINENO" 5; }
12682    else
12683      ac_cv_sizeof_long_long=0
12684    fi
12685 fi
12686
12687 fi
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12689 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12690
12691
12692
12693 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12694
12695
12696 # The cast to long int works around a bug in the HP C Compiler
12697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12699 # This bug is HP SR number 8606223364.
12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12701 printf %s "checking size of off_t... " >&6; }
12702 if test ${ac_cv_sizeof_off_t+y}
12703 then :
12704   printf %s "(cached) " >&6
12705 else $as_nop
12706   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
12707 then :
12708
12709 else $as_nop
12710   if test "$ac_cv_type_off_t" = yes; then
12711      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12713 as_fn_error 77 "cannot compute sizeof (off_t)
12714 See \`config.log' for more details" "$LINENO" 5; }
12715    else
12716      ac_cv_sizeof_off_t=0
12717    fi
12718 fi
12719
12720 fi
12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12722 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12723
12724
12725
12726 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12727
12728
12729 # The cast to long int works around a bug in the HP C Compiler
12730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12732 # This bug is HP SR number 8606223364.
12733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12734 printf %s "checking size of time_t... " >&6; }
12735 if test ${ac_cv_sizeof_time_t+y}
12736 then :
12737   printf %s "(cached) " >&6
12738 else $as_nop
12739   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
12740 then :
12741
12742 else $as_nop
12743   if test "$ac_cv_type_time_t" = yes; then
12744      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12745 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12746 as_fn_error 77 "cannot compute sizeof (time_t)
12747 See \`config.log' for more details" "$LINENO" 5; }
12748    else
12749      ac_cv_sizeof_time_t=0
12750    fi
12751 fi
12752
12753 fi
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12755 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12756
12757
12758
12759 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12760
12761
12762 SIZEOF_SHORT=$ac_cv_sizeof_short
12763 SIZEOF_INT=$ac_cv_sizeof_int
12764 SIZEOF_LONG=$ac_cv_sizeof_long
12765 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12766 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12767 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12768
12769
12770
12771
12772
12773
12774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12775 printf %s "checking whether byte ordering is bigendian... " >&6; }
12776 if test ${ac_cv_c_bigendian+y}
12777 then :
12778   printf %s "(cached) " >&6
12779 else $as_nop
12780   ac_cv_c_bigendian=unknown
12781     # See if we're dealing with a universal compiler.
12782     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h.  */
12784 #ifndef __APPLE_CC__
12785                not a universal capable compiler
12786              #endif
12787              typedef int dummy;
12788
12789 _ACEOF
12790 if ac_fn_c_try_compile "$LINENO"
12791 then :
12792
12793         # Check for potential -arch flags.  It is not universal unless
12794         # there are at least two -arch flags with different values.
12795         ac_arch=
12796         ac_prev=
12797         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12798          if test -n "$ac_prev"; then
12799            case $ac_word in
12800              i?86 | x86_64 | ppc | ppc64)
12801                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12802                  ac_arch=$ac_word
12803                else
12804                  ac_cv_c_bigendian=universal
12805                  break
12806                fi
12807                ;;
12808            esac
12809            ac_prev=
12810          elif test "x$ac_word" = "x-arch"; then
12811            ac_prev=arch
12812          fi
12813        done
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12816     if test $ac_cv_c_bigendian = unknown; then
12817       # See if sys/param.h defines the BYTE_ORDER macro.
12818       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h.  */
12820 #include <sys/types.h>
12821              #include <sys/param.h>
12822
12823 int
12824 main (void)
12825 {
12826 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12827                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12828                      && LITTLE_ENDIAN)
12829               bogus endian macros
12830              #endif
12831
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 if ac_fn_c_try_compile "$LINENO"
12837 then :
12838   # It does; now see whether it defined to BIG_ENDIAN or not.
12839          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h.  */
12841 #include <sys/types.h>
12842                 #include <sys/param.h>
12843
12844 int
12845 main (void)
12846 {
12847 #if BYTE_ORDER != BIG_ENDIAN
12848                  not big endian
12849                 #endif
12850
12851   ;
12852   return 0;
12853 }
12854 _ACEOF
12855 if ac_fn_c_try_compile "$LINENO"
12856 then :
12857   ac_cv_c_bigendian=yes
12858 else $as_nop
12859   ac_cv_c_bigendian=no
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12862 fi
12863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12864     fi
12865     if test $ac_cv_c_bigendian = unknown; then
12866       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h.  */
12869 #include <limits.h>
12870
12871 int
12872 main (void)
12873 {
12874 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12875               bogus endian macros
12876              #endif
12877
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_c_try_compile "$LINENO"
12883 then :
12884   # It does; now see whether it defined to _BIG_ENDIAN or not.
12885          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h.  */
12887 #include <limits.h>
12888
12889 int
12890 main (void)
12891 {
12892 #ifndef _BIG_ENDIAN
12893                  not big endian
12894                 #endif
12895
12896   ;
12897   return 0;
12898 }
12899 _ACEOF
12900 if ac_fn_c_try_compile "$LINENO"
12901 then :
12902   ac_cv_c_bigendian=yes
12903 else $as_nop
12904   ac_cv_c_bigendian=no
12905 fi
12906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12909     fi
12910     if test $ac_cv_c_bigendian = unknown; then
12911       # Compile a test program.
12912       if test "$cross_compiling" = yes
12913 then :
12914   # Try to guess by grepping values from an object file.
12915          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h.  */
12917 unsigned short int ascii_mm[] =
12918                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12919                 unsigned short int ascii_ii[] =
12920                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12921                 int use_ascii (int i) {
12922                   return ascii_mm[i] + ascii_ii[i];
12923                 }
12924                 unsigned short int ebcdic_ii[] =
12925                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12926                 unsigned short int ebcdic_mm[] =
12927                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12928                 int use_ebcdic (int i) {
12929                   return ebcdic_mm[i] + ebcdic_ii[i];
12930                 }
12931                 extern int foo;
12932
12933 int
12934 main (void)
12935 {
12936 return use_ascii (foo) == use_ebcdic (foo);
12937   ;
12938   return 0;
12939 }
12940 _ACEOF
12941 if ac_fn_c_try_compile "$LINENO"
12942 then :
12943   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12944               ac_cv_c_bigendian=yes
12945             fi
12946             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12947               if test "$ac_cv_c_bigendian" = unknown; then
12948                 ac_cv_c_bigendian=no
12949               else
12950                 # finding both strings is unlikely to happen, but who knows?
12951                 ac_cv_c_bigendian=unknown
12952               fi
12953             fi
12954 fi
12955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12956 else $as_nop
12957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h.  */
12959 $ac_includes_default
12960 int
12961 main (void)
12962 {
12963
12964              /* Are we little or big endian?  From Harbison&Steele.  */
12965              union
12966              {
12967                long int l;
12968                char c[sizeof (long int)];
12969              } u;
12970              u.l = 1;
12971              return u.c[sizeof (long int) - 1] == 1;
12972
12973   ;
12974   return 0;
12975 }
12976 _ACEOF
12977 if ac_fn_c_try_run "$LINENO"
12978 then :
12979   ac_cv_c_bigendian=no
12980 else $as_nop
12981   ac_cv_c_bigendian=yes
12982 fi
12983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12984   conftest.$ac_objext conftest.beam conftest.$ac_ext
12985 fi
12986
12987     fi
12988 fi
12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12990 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12991  case $ac_cv_c_bigendian in #(
12992    yes)
12993      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12994 ;; #(
12995    no)
12996       ;; #(
12997    universal)
12998
12999 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13000
13001      ;; #(
13002    *)
13003      as_fn_error $? "unknown endianness
13004  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13005  esac
13006
13007 if test $cross_compiling = no; then
13008   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13009 else
13010   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13011 fi
13012 ASM_TYPES_HEADER=./asm_types.h
13013
13014 echo "/* These defines are needed for the public ext2fs.h header file */" \
13015      > public_config.h
13016 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13017   uniq tmp_config.$$ >> public_config.h
13018 else
13019   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13020 fi
13021 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13022   uniq tmp_config.$$ >> public_config.h
13023 else
13024   echo "#undef WORDS_BIGENDIAN" >> public_config.h
13025 fi
13026 rm -f tmp_config.$$
13027 PUBLIC_CONFIG_HEADER=./public_config.h
13028
13029 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13030 if test "x$ac_cv_header_inttypes_h" = xyes
13031 then :
13032   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13033
13034 fi
13035
13036 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13037 if test "x$ac_cv_type_intptr_t" = xyes
13038 then :
13039
13040 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
13041
13042
13043 fi
13044
13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13046 printf %s "checking whether struct stat has a st_flags field... " >&6; }
13047 if test ${e2fsprogs_cv_struct_st_flags+y}
13048 then :
13049   printf %s "(cached) " >&6
13050 else $as_nop
13051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h.  */
13053 #include <sys/stat.h>
13054 int
13055 main (void)
13056 {
13057 struct stat stat; stat.st_flags = 0;
13058   ;
13059   return 0;
13060 }
13061 _ACEOF
13062 if ac_fn_c_try_compile "$LINENO"
13063 then :
13064   e2fsprogs_cv_struct_st_flags=yes
13065 else $as_nop
13066   e2fsprogs_cv_struct_st_flags=no
13067 fi
13068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13069 fi
13070
13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13072 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
13073 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13075 printf %s "checking whether st_flags field is useful... " >&6; }
13076   if test ${e2fsprogs_cv_struct_st_flags_immut+y}
13077 then :
13078   printf %s "(cached) " >&6
13079 else $as_nop
13080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h.  */
13082 #include <sys/stat.h>
13083 int
13084 main (void)
13085 {
13086 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 if ac_fn_c_try_compile "$LINENO"
13092 then :
13093   e2fsprogs_cv_struct_st_flags_immut=yes
13094 else $as_nop
13095   e2fsprogs_cv_struct_st_flags_immut=no
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13098 fi
13099
13100   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13101 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13102   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13103
13104 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13105
13106   fi
13107 fi
13108 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13109          #include <sys/socket.h>
13110 "
13111 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
13112 then :
13113
13114 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
13115
13116 fi
13117
13118 if test -n "$BLKID_CMT"; then
13119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13120 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13121 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
13122 then :
13123   printf %s "(cached) " >&6
13124 else $as_nop
13125   ac_check_lib_save_LIBS=$LIBS
13126 LIBS="-lblkid  $LIBS"
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h.  */
13129
13130 /* Override any GCC internal prototype to avoid an error.
13131    Use char because int might match the return type of a GCC
13132    builtin and then its argument prototype would still apply.  */
13133 char blkid_probe_get_topology ();
13134 int
13135 main (void)
13136 {
13137 return blkid_probe_get_topology ();
13138   ;
13139   return 0;
13140 }
13141 _ACEOF
13142 if ac_fn_c_try_link "$LINENO"
13143 then :
13144   ac_cv_lib_blkid_blkid_probe_get_topology=yes
13145 else $as_nop
13146   ac_cv_lib_blkid_blkid_probe_get_topology=no
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13149     conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13151 fi
13152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13153 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13154 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
13155 then :
13156
13157 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13158
13159 fi
13160
13161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
13162 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
13163 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
13164 then :
13165   printf %s "(cached) " >&6
13166 else $as_nop
13167   ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lblkid  $LIBS"
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h.  */
13171
13172 /* Override any GCC internal prototype to avoid an error.
13173    Use char because int might match the return type of a GCC
13174    builtin and then its argument prototype would still apply.  */
13175 char blkid_topology_get_dax ();
13176 int
13177 main (void)
13178 {
13179 return blkid_topology_get_dax ();
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 if ac_fn_c_try_link "$LINENO"
13185 then :
13186   ac_cv_lib_blkid_blkid_topology_get_dax=yes
13187 else $as_nop
13188   ac_cv_lib_blkid_blkid_topology_get_dax=no
13189 fi
13190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13191     conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13193 fi
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
13195 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13196 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13197 then :
13198
13199 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13200
13201 fi
13202
13203   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13204 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13205 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13206 then :
13207   printf %s "(cached) " >&6
13208 else $as_nop
13209   ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-lblkid  $LIBS"
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h.  */
13213
13214 /* Override any GCC internal prototype to avoid an error.
13215    Use char because int might match the return type of a GCC
13216    builtin and then its argument prototype would still apply.  */
13217 char blkid_probe_enable_partitions ();
13218 int
13219 main (void)
13220 {
13221 return blkid_probe_enable_partitions ();
13222   ;
13223   return 0;
13224 }
13225 _ACEOF
13226 if ac_fn_c_try_link "$LINENO"
13227 then :
13228   ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13229 else $as_nop
13230   ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13233     conftest$ac_exeext conftest.$ac_ext
13234 LIBS=$ac_check_lib_save_LIBS
13235 fi
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13237 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13238 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13239 then :
13240
13241 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13242
13243 fi
13244
13245 fi
13246 if test -n "$DLOPEN_LIB" ; then
13247    ac_cv_func_dlopen=yes
13248 fi
13249 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13250 if test "x$ac_cv_func___secure_getenv" = xyes
13251 then :
13252   printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13253
13254 fi
13255 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13256 if test "x$ac_cv_func_add_key" = xyes
13257 then :
13258   printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13259
13260 fi
13261 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13262 if test "x$ac_cv_func_backtrace" = xyes
13263 then :
13264   printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13265
13266 fi
13267 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13268 if test "x$ac_cv_func_chflags" = xyes
13269 then :
13270   printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13271
13272 fi
13273 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13274 if test "x$ac_cv_func_dlopen" = xyes
13275 then :
13276   printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13277
13278 fi
13279 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13280 if test "x$ac_cv_func_fadvise64" = xyes
13281 then :
13282   printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13283
13284 fi
13285 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13286 if test "x$ac_cv_func_fallocate" = xyes
13287 then :
13288   printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13289
13290 fi
13291 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13292 if test "x$ac_cv_func_fallocate64" = xyes
13293 then :
13294   printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13295
13296 fi
13297 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13298 if test "x$ac_cv_func_fchown" = xyes
13299 then :
13300   printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13301
13302 fi
13303 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13304 if test "x$ac_cv_func_fcntl" = xyes
13305 then :
13306   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13307
13308 fi
13309 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13310 if test "x$ac_cv_func_fdatasync" = xyes
13311 then :
13312   printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13313
13314 fi
13315 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13316 if test "x$ac_cv_func_fstat64" = xyes
13317 then :
13318   printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13319
13320 fi
13321 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13322 if test "x$ac_cv_func_fsync" = xyes
13323 then :
13324   printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13325
13326 fi
13327 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13328 if test "x$ac_cv_func_ftruncate64" = xyes
13329 then :
13330   printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13331
13332 fi
13333 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13334 if test "x$ac_cv_func_futimes" = xyes
13335 then :
13336   printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13337
13338 fi
13339 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13340 if test "x$ac_cv_func_getcwd" = xyes
13341 then :
13342   printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13343
13344 fi
13345 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13346 if test "x$ac_cv_func_getdtablesize" = xyes
13347 then :
13348   printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13349
13350 fi
13351 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13352 if test "x$ac_cv_func_getentropy" = xyes
13353 then :
13354   printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13355
13356 fi
13357 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13358 if test "x$ac_cv_func_gethostname" = xyes
13359 then :
13360   printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13361
13362 fi
13363 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13364 if test "x$ac_cv_func_getmntinfo" = xyes
13365 then :
13366   printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13367
13368 fi
13369 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13370 if test "x$ac_cv_func_getpwuid_r" = xyes
13371 then :
13372   printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13373
13374 fi
13375 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13376 if test "x$ac_cv_func_getrandom" = xyes
13377 then :
13378   printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13379
13380 fi
13381 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13382 if test "x$ac_cv_func_getrlimit" = xyes
13383 then :
13384   printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13385
13386 fi
13387 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13388 if test "x$ac_cv_func_getrusage" = xyes
13389 then :
13390   printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13391
13392 fi
13393 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13394 if test "x$ac_cv_func_jrand48" = xyes
13395 then :
13396   printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13397
13398 fi
13399 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13400 if test "x$ac_cv_func_keyctl" = xyes
13401 then :
13402   printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13403
13404 fi
13405 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13406 if test "x$ac_cv_func_llistxattr" = xyes
13407 then :
13408   printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13409
13410 fi
13411 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13412 if test "x$ac_cv_func_llseek" = xyes
13413 then :
13414   printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13415
13416 fi
13417 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13418 if test "x$ac_cv_func_lseek64" = xyes
13419 then :
13420   printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13421
13422 fi
13423 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13424 if test "x$ac_cv_func_mallinfo" = xyes
13425 then :
13426   printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13427
13428 fi
13429 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13430 if test "x$ac_cv_func_mallinfo2" = xyes
13431 then :
13432   printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13433
13434 fi
13435 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13436 if test "x$ac_cv_func_mbstowcs" = xyes
13437 then :
13438   printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13439
13440 fi
13441 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13442 if test "x$ac_cv_func_memalign" = xyes
13443 then :
13444   printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13445
13446 fi
13447 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13448 if test "x$ac_cv_func_mempcpy" = xyes
13449 then :
13450   printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13451
13452 fi
13453 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13454 if test "x$ac_cv_func_mmap" = xyes
13455 then :
13456   printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13457
13458 fi
13459 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13460 if test "x$ac_cv_func_msync" = xyes
13461 then :
13462   printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13463
13464 fi
13465 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13466 if test "x$ac_cv_func_nanosleep" = xyes
13467 then :
13468   printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13469
13470 fi
13471 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13472 if test "x$ac_cv_func_open64" = xyes
13473 then :
13474   printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13475
13476 fi
13477 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13478 if test "x$ac_cv_func_pathconf" = xyes
13479 then :
13480   printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13481
13482 fi
13483 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13484 if test "x$ac_cv_func_posix_fadvise" = xyes
13485 then :
13486   printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13487
13488 fi
13489 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13490 if test "x$ac_cv_func_posix_fadvise64" = xyes
13491 then :
13492   printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13493
13494 fi
13495 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13496 if test "x$ac_cv_func_posix_memalign" = xyes
13497 then :
13498   printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13499
13500 fi
13501 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13502 if test "x$ac_cv_func_prctl" = xyes
13503 then :
13504   printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13505
13506 fi
13507 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13508 if test "x$ac_cv_func_pread" = xyes
13509 then :
13510   printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13511
13512 fi
13513 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13514 if test "x$ac_cv_func_pwrite" = xyes
13515 then :
13516   printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13517
13518 fi
13519 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13520 if test "x$ac_cv_func_pread64" = xyes
13521 then :
13522   printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13523
13524 fi
13525 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13526 if test "x$ac_cv_func_pwrite64" = xyes
13527 then :
13528   printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13529
13530 fi
13531 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13532 if test "x$ac_cv_func_qsort_r" = xyes
13533 then :
13534   printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13535
13536 fi
13537 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13538 if test "x$ac_cv_func_secure_getenv" = xyes
13539 then :
13540   printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13541
13542 fi
13543 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13544 if test "x$ac_cv_func_setmntent" = xyes
13545 then :
13546   printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13547
13548 fi
13549 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13550 if test "x$ac_cv_func_setresgid" = xyes
13551 then :
13552   printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13553
13554 fi
13555 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13556 if test "x$ac_cv_func_setresuid" = xyes
13557 then :
13558   printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13559
13560 fi
13561 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13562 if test "x$ac_cv_func_snprintf" = xyes
13563 then :
13564   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13565
13566 fi
13567 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13568 if test "x$ac_cv_func_srandom" = xyes
13569 then :
13570   printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13571
13572 fi
13573 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13574 if test "x$ac_cv_func_stpcpy" = xyes
13575 then :
13576   printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13577
13578 fi
13579 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13580 if test "x$ac_cv_func_strcasecmp" = xyes
13581 then :
13582   printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13583
13584 fi
13585 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13586 if test "x$ac_cv_func_strdup" = xyes
13587 then :
13588   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13589
13590 fi
13591 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13592 if test "x$ac_cv_func_strnlen" = xyes
13593 then :
13594   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13595
13596 fi
13597 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13598 if test "x$ac_cv_func_strptime" = xyes
13599 then :
13600   printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13601
13602 fi
13603 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13604 if test "x$ac_cv_func_strtoull" = xyes
13605 then :
13606   printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13607
13608 fi
13609 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13610 if test "x$ac_cv_func_sync_file_range" = xyes
13611 then :
13612   printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13613
13614 fi
13615 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13616 if test "x$ac_cv_func_sysconf" = xyes
13617 then :
13618   printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13619
13620 fi
13621 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13622 if test "x$ac_cv_func_usleep" = xyes
13623 then :
13624   printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13625
13626 fi
13627 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13628 if test "x$ac_cv_func_utime" = xyes
13629 then :
13630   printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13631
13632 fi
13633 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13634 if test "x$ac_cv_func_utimes" = xyes
13635 then :
13636   printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13637
13638 fi
13639 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13640 if test "x$ac_cv_func_valloc" = xyes
13641 then :
13642   printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13643
13644 fi
13645
13646 SOCKET_LIB=''
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13648 printf %s "checking for socket in -lsocket... " >&6; }
13649 if test ${ac_cv_lib_socket_socket+y}
13650 then :
13651   printf %s "(cached) " >&6
13652 else $as_nop
13653   ac_check_lib_save_LIBS=$LIBS
13654 LIBS="-lsocket  $LIBS"
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h.  */
13657
13658 /* Override any GCC internal prototype to avoid an error.
13659    Use char because int might match the return type of a GCC
13660    builtin and then its argument prototype would still apply.  */
13661 char socket ();
13662 int
13663 main (void)
13664 {
13665 return socket ();
13666   ;
13667   return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"
13671 then :
13672   ac_cv_lib_socket_socket=yes
13673 else $as_nop
13674   ac_cv_lib_socket_socket=no
13675 fi
13676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13677     conftest$ac_exeext conftest.$ac_ext
13678 LIBS=$ac_check_lib_save_LIBS
13679 fi
13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13681 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13682 if test "x$ac_cv_lib_socket_socket" = xyes
13683 then :
13684   SOCKET_LIB=-lsocket
13685 fi
13686
13687
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13689 printf %s "checking for magic_file in -lmagic... " >&6; }
13690 if test ${ac_cv_lib_magic_magic_file+y}
13691 then :
13692   printf %s "(cached) " >&6
13693 else $as_nop
13694   ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lmagic  $LIBS"
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h.  */
13698
13699 /* Override any GCC internal prototype to avoid an error.
13700    Use char because int might match the return type of a GCC
13701    builtin and then its argument prototype would still apply.  */
13702 char magic_file ();
13703 int
13704 main (void)
13705 {
13706 return magic_file ();
13707   ;
13708   return 0;
13709 }
13710 _ACEOF
13711 if ac_fn_c_try_link "$LINENO"
13712 then :
13713   ac_cv_lib_magic_magic_file=yes
13714 else $as_nop
13715   ac_cv_lib_magic_magic_file=no
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13718     conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13720 fi
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13722 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13723 if test "x$ac_cv_lib_magic_magic_file" = xyes
13724 then :
13725   MAGIC_LIB=-lmagic
13726 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13727 if test "x$ac_cv_header_magic_h" = xyes
13728 then :
13729   printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13730
13731 fi
13732
13733 fi
13734
13735 if test "$ac_cv_func_dlopen" = yes ; then
13736    MAGIC_LIB=$DLOPEN_LIB
13737 fi
13738
13739
13740 # Check whether --with-libarchive was given.
13741 if test ${with_libarchive+y}
13742 then :
13743   withval=$with_libarchive; if test "$withval" = "no"
13744 then
13745         try_libarchive=""
13746         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling libarchive support" >&5
13747 printf "%s\n" "Disabling libarchive support" >&6; }
13748 elif test "$withval" = "direct"
13749 then
13750         try_libarchive="direct"
13751         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for libarchive support (forced direct link)" >&5
13752 printf "%s\n" "Testing for libarchive support (forced direct link)" >&6; }
13753 else
13754         try_libarchive="yes"
13755         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for libarchive support (with dlopen)" >&5
13756 printf "%s\n" "Testing for libarchive support (with dlopen)" >&6; }
13757 fi
13758
13759 else $as_nop
13760   try_libarchive="yes"
13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for libarchive support (with dlopen) by default" >&5
13762 printf "%s\n" "Try testing for libarchive support (with dlopen) by default" >&6; }
13763
13764 fi
13765
13766 ARCHIVE_LIB=
13767 if test -n "$try_libarchive"
13768 then
13769     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13770 printf %s "checking for archive_read_new in -larchive... " >&6; }
13771 if test ${ac_cv_lib_archive_archive_read_new+y}
13772 then :
13773   printf %s "(cached) " >&6
13774 else $as_nop
13775   ac_check_lib_save_LIBS=$LIBS
13776 LIBS="-larchive  $LIBS"
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h.  */
13779
13780 /* Override any GCC internal prototype to avoid an error.
13781    Use char because int might match the return type of a GCC
13782    builtin and then its argument prototype would still apply.  */
13783 char archive_read_new ();
13784 int
13785 main (void)
13786 {
13787 return archive_read_new ();
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"
13793 then :
13794   ac_cv_lib_archive_archive_read_new=yes
13795 else $as_nop
13796   ac_cv_lib_archive_archive_read_new=no
13797 fi
13798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13799     conftest$ac_exeext conftest.$ac_ext
13800 LIBS=$ac_check_lib_save_LIBS
13801 fi
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
13803 printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
13804 if test "x$ac_cv_lib_archive_archive_read_new" = xyes
13805 then :
13806   ARCHIVE_LIB=-larchive
13807     ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13808 if test "x$ac_cv_header_archive_h" = xyes
13809 then :
13810   printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13811
13812 fi
13813
13814 fi
13815
13816     if test "$ac_cv_func_dlopen" = yes -a "$try_libarchive" != "direct"; then
13817         ARCHIVE_LIB=$DLOPEN_LIB
13818
13819 printf "%s\n" "#define CONFIG_DLOPEN_LIBARCHIVE 1" >>confdefs.h
13820
13821
13822     fi
13823     if test "$ac_cv_header_archive_h" != "yes"
13824     then
13825         ARCHIVE_LIB=
13826     fi
13827 fi
13828
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13830 printf %s "checking for clock_gettime in -lrt... " >&6; }
13831 if test ${ac_cv_lib_rt_clock_gettime+y}
13832 then :
13833   printf %s "(cached) " >&6
13834 else $as_nop
13835   ac_check_lib_save_LIBS=$LIBS
13836 LIBS="-lrt  $LIBS"
13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h.  */
13839
13840 /* Override any GCC internal prototype to avoid an error.
13841    Use char because int might match the return type of a GCC
13842    builtin and then its argument prototype would still apply.  */
13843 char clock_gettime ();
13844 int
13845 main (void)
13846 {
13847 return clock_gettime ();
13848   ;
13849   return 0;
13850 }
13851 _ACEOF
13852 if ac_fn_c_try_link "$LINENO"
13853 then :
13854   ac_cv_lib_rt_clock_gettime=yes
13855 else $as_nop
13856   ac_cv_lib_rt_clock_gettime=no
13857 fi
13858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13859     conftest$ac_exeext conftest.$ac_ext
13860 LIBS=$ac_check_lib_save_LIBS
13861 fi
13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13863 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13864 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13865 then :
13866   CLOCK_GETTIME_LIB=-lrt
13867 fi
13868
13869
13870 FUSE_CMT=
13871 FUSE_LIB=
13872 # Check whether --enable-fuse2fs was given.
13873 if test ${enable_fuse2fs+y}
13874 then :
13875   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13876 then
13877         FUSE_CMT="#"
13878         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13879 printf "%s\n" "Disabling fuse2fs" >&6; }
13880 else
13881         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h.  */
13883 #ifdef __linux__
13884 #include <linux/fs.h>
13885 #include <linux/falloc.h>
13886 #include <linux/xattr.h>
13887 #endif
13888
13889 int
13890 main (void)
13891 {
13892
13893   ;
13894   return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_cpp "$LINENO"
13898 then :
13899
13900 else $as_nop
13901   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13902 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13903 as_fn_error $? "Cannot find fuse2fs Linux headers.
13904 See \`config.log' for more details" "$LINENO" 5; }
13905 fi
13906 rm -f conftest.err conftest.i conftest.$ac_ext
13907
13908           fuse3_CFLAGS
13909               C compiler flags for fuse3, overriding pkg-config
13910   fuse3_LIBS  linker flags for fuse3, overriding pkg-config
13911
13912 pkg_failed=no
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13914 printf %s "checking for fuse3... " >&6; }
13915
13916 if test -n "$fuse3_CFLAGS"; then
13917     pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13918  elif test -n "$PKG_CONFIG"; then
13919     if test -n "$PKG_CONFIG" && \
13920     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13921   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13922   ac_status=$?
13923   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924   test $ac_status = 0; }; then
13925   pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13926                       test "x$?" != "x0" && pkg_failed=yes
13927 else
13928   pkg_failed=yes
13929 fi
13930  else
13931     pkg_failed=untried
13932 fi
13933 if test -n "$fuse3_LIBS"; then
13934     pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13935  elif test -n "$PKG_CONFIG"; then
13936     if test -n "$PKG_CONFIG" && \
13937     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13938   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13939   ac_status=$?
13940   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941   test $ac_status = 0; }; then
13942   pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13943                       test "x$?" != "x0" && pkg_failed=yes
13944 else
13945   pkg_failed=yes
13946 fi
13947  else
13948     pkg_failed=untried
13949 fi
13950
13951
13952
13953 if test $pkg_failed = yes; then
13954         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 printf "%s\n" "no" >&6; }
13956
13957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13958         _pkg_short_errors_supported=yes
13959 else
13960         _pkg_short_errors_supported=no
13961 fi
13962         if test $_pkg_short_errors_supported = yes; then
13963                 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13964         else
13965                 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13966         fi
13967         # Put the nasty error message in config.log where it belongs
13968         echo "$fuse3_PKG_ERRORS" >&5
13969
13970
13971                        for ac_header in pthread.h fuse.h
13972 do :
13973   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13975 #define FUSE_USE_VERSION 29
13976 "
13977 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13978 then :
13979   cat >>confdefs.h <<_ACEOF
13980 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13981 _ACEOF
13982
13983 else $as_nop
13984   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13985 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13986 as_fn_error $? "Cannot find fuse2fs headers.
13987 See \`config.log' for more details" "$LINENO" 5; }
13988 fi
13989
13990 done
13991
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   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14072 as_fn_error $? "Cannot find fuse library.
14073 See \`config.log' for more details" "$LINENO" 5; }
14074 fi
14075
14076 fi
14077
14078
14079 elif test $pkg_failed = untried; then
14080         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 printf "%s\n" "no" >&6; }
14082
14083                        for ac_header in pthread.h fuse.h
14084 do :
14085   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14086 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14087 #define FUSE_USE_VERSION 29
14088 "
14089 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14090 then :
14091   cat >>confdefs.h <<_ACEOF
14092 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14093 _ACEOF
14094
14095 else $as_nop
14096   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14097 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14098 as_fn_error $? "Cannot find fuse2fs headers.
14099 See \`config.log' for more details" "$LINENO" 5; }
14100 fi
14101
14102 done
14103
14104                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14105 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14106 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14107 then :
14108   printf %s "(cached) " >&6
14109 else $as_nop
14110   ac_check_lib_save_LIBS=$LIBS
14111 LIBS="-losxfuse  $LIBS"
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h.  */
14114
14115 /* Override any GCC internal prototype to avoid an error.
14116    Use char because int might match the return type of a GCC
14117    builtin and then its argument prototype would still apply.  */
14118 char fuse_main ();
14119 int
14120 main (void)
14121 {
14122 return fuse_main ();
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 if ac_fn_c_try_link "$LINENO"
14128 then :
14129   ac_cv_lib_osxfuse_fuse_main=yes
14130 else $as_nop
14131   ac_cv_lib_osxfuse_fuse_main=no
14132 fi
14133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14134     conftest$ac_exeext conftest.$ac_ext
14135 LIBS=$ac_check_lib_save_LIBS
14136 fi
14137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14138 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14139 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14140 then :
14141   FUSE_LIB=-losxfuse
14142 else $as_nop
14143   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14144 printf %s "checking for fuse_main in -lfuse... " >&6; }
14145 if test ${ac_cv_lib_fuse_fuse_main+y}
14146 then :
14147   printf %s "(cached) " >&6
14148 else $as_nop
14149   ac_check_lib_save_LIBS=$LIBS
14150 LIBS="-lfuse  $LIBS"
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h.  */
14153
14154 /* Override any GCC internal prototype to avoid an error.
14155    Use char because int might match the return type of a GCC
14156    builtin and then its argument prototype would still apply.  */
14157 char fuse_main ();
14158 int
14159 main (void)
14160 {
14161 return fuse_main ();
14162   ;
14163   return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_c_try_link "$LINENO"
14167 then :
14168   ac_cv_lib_fuse_fuse_main=yes
14169 else $as_nop
14170   ac_cv_lib_fuse_fuse_main=no
14171 fi
14172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14173     conftest$ac_exeext conftest.$ac_ext
14174 LIBS=$ac_check_lib_save_LIBS
14175 fi
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14177 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14178 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14179 then :
14180   FUSE_LIB=-lfuse
14181 else $as_nop
14182   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14183 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14184 as_fn_error $? "Cannot find fuse library.
14185 See \`config.log' for more details" "$LINENO" 5; }
14186 fi
14187
14188 fi
14189
14190
14191 else
14192         fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14193         fuse3_LIBS=$pkg_cv_fuse3_LIBS
14194         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14195 printf "%s\n" "yes" >&6; }
14196
14197                 FUSE_LIB=-lfuse3
14198
14199 fi
14200         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
14201 printf "%s\n" "Enabling fuse2fs" >&6; }
14202 fi
14203
14204 else $as_nop
14205
14206 pkg_failed=no
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
14208 printf %s "checking for fuse3... " >&6; }
14209
14210 if test -n "$fuse3_CFLAGS"; then
14211     pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
14212  elif test -n "$PKG_CONFIG"; then
14213     if test -n "$PKG_CONFIG" && \
14214     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14215   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14216   ac_status=$?
14217   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14218   test $ac_status = 0; }; then
14219   pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
14220                       test "x$?" != "x0" && pkg_failed=yes
14221 else
14222   pkg_failed=yes
14223 fi
14224  else
14225     pkg_failed=untried
14226 fi
14227 if test -n "$fuse3_LIBS"; then
14228     pkg_cv_fuse3_LIBS="$fuse3_LIBS"
14229  elif test -n "$PKG_CONFIG"; then
14230     if test -n "$PKG_CONFIG" && \
14231     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14232   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14233   ac_status=$?
14234   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14235   test $ac_status = 0; }; then
14236   pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
14237                       test "x$?" != "x0" && pkg_failed=yes
14238 else
14239   pkg_failed=yes
14240 fi
14241  else
14242     pkg_failed=untried
14243 fi
14244
14245
14246
14247 if test $pkg_failed = yes; then
14248         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249 printf "%s\n" "no" >&6; }
14250
14251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14252         _pkg_short_errors_supported=yes
14253 else
14254         _pkg_short_errors_supported=no
14255 fi
14256         if test $_pkg_short_errors_supported = yes; then
14257                 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
14258         else
14259                 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
14260         fi
14261         # Put the nasty error message in config.log where it belongs
14262         echo "$fuse3_PKG_ERRORS" >&5
14263
14264
14265                for ac_header in pthread.h fuse.h
14266 do :
14267   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14268 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14269 #define FUSE_USE_VERSION 29
14270 #ifdef __linux__
14271 # include <linux/fs.h>
14272 # include <linux/falloc.h>
14273 # include <linux/xattr.h>
14274 #endif
14275 "
14276 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14277 then :
14278   cat >>confdefs.h <<_ACEOF
14279 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14280 _ACEOF
14281
14282 else $as_nop
14283   FUSE_CMT="#"
14284 fi
14285
14286 done
14287         if test -z "$FUSE_CMT"
14288         then
14289                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14290 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14291 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14292 then :
14293   printf %s "(cached) " >&6
14294 else $as_nop
14295   ac_check_lib_save_LIBS=$LIBS
14296 LIBS="-losxfuse  $LIBS"
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h.  */
14299
14300 /* Override any GCC internal prototype to avoid an error.
14301    Use char because int might match the return type of a GCC
14302    builtin and then its argument prototype would still apply.  */
14303 char fuse_main ();
14304 int
14305 main (void)
14306 {
14307 return fuse_main ();
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 if ac_fn_c_try_link "$LINENO"
14313 then :
14314   ac_cv_lib_osxfuse_fuse_main=yes
14315 else $as_nop
14316   ac_cv_lib_osxfuse_fuse_main=no
14317 fi
14318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14319     conftest$ac_exeext conftest.$ac_ext
14320 LIBS=$ac_check_lib_save_LIBS
14321 fi
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14323 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14324 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14325 then :
14326   FUSE_LIB=-losxfuse
14327 else $as_nop
14328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14329 printf %s "checking for fuse_main in -lfuse... " >&6; }
14330 if test ${ac_cv_lib_fuse_fuse_main+y}
14331 then :
14332   printf %s "(cached) " >&6
14333 else $as_nop
14334   ac_check_lib_save_LIBS=$LIBS
14335 LIBS="-lfuse  $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 fuse_main ();
14343 int
14344 main (void)
14345 {
14346 return fuse_main ();
14347   ;
14348   return 0;
14349 }
14350 _ACEOF
14351 if ac_fn_c_try_link "$LINENO"
14352 then :
14353   ac_cv_lib_fuse_fuse_main=yes
14354 else $as_nop
14355   ac_cv_lib_fuse_fuse_main=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_fuse_fuse_main" >&5
14362 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14363 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14364 then :
14365   FUSE_LIB=-lfuse
14366 else $as_nop
14367   FUSE_CMT="#"
14368 fi
14369
14370 fi
14371
14372         fi
14373
14374 elif test $pkg_failed = untried; then
14375         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14376 printf "%s\n" "no" >&6; }
14377
14378                for ac_header in pthread.h fuse.h
14379 do :
14380   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14381 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14382 #define FUSE_USE_VERSION 29
14383 #ifdef __linux__
14384 # include <linux/fs.h>
14385 # include <linux/falloc.h>
14386 # include <linux/xattr.h>
14387 #endif
14388 "
14389 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14390 then :
14391   cat >>confdefs.h <<_ACEOF
14392 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14393 _ACEOF
14394
14395 else $as_nop
14396   FUSE_CMT="#"
14397 fi
14398
14399 done
14400         if test -z "$FUSE_CMT"
14401         then
14402                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14403 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14404 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14405 then :
14406   printf %s "(cached) " >&6
14407 else $as_nop
14408   ac_check_lib_save_LIBS=$LIBS
14409 LIBS="-losxfuse  $LIBS"
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h.  */
14412
14413 /* Override any GCC internal prototype to avoid an error.
14414    Use char because int might match the return type of a GCC
14415    builtin and then its argument prototype would still apply.  */
14416 char fuse_main ();
14417 int
14418 main (void)
14419 {
14420 return fuse_main ();
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_c_try_link "$LINENO"
14426 then :
14427   ac_cv_lib_osxfuse_fuse_main=yes
14428 else $as_nop
14429   ac_cv_lib_osxfuse_fuse_main=no
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14432     conftest$ac_exeext conftest.$ac_ext
14433 LIBS=$ac_check_lib_save_LIBS
14434 fi
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14436 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14437 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14438 then :
14439   FUSE_LIB=-losxfuse
14440 else $as_nop
14441   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14442 printf %s "checking for fuse_main in -lfuse... " >&6; }
14443 if test ${ac_cv_lib_fuse_fuse_main+y}
14444 then :
14445   printf %s "(cached) " >&6
14446 else $as_nop
14447   ac_check_lib_save_LIBS=$LIBS
14448 LIBS="-lfuse  $LIBS"
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h.  */
14451
14452 /* Override any GCC internal prototype to avoid an error.
14453    Use char because int might match the return type of a GCC
14454    builtin and then its argument prototype would still apply.  */
14455 char fuse_main ();
14456 int
14457 main (void)
14458 {
14459 return fuse_main ();
14460   ;
14461   return 0;
14462 }
14463 _ACEOF
14464 if ac_fn_c_try_link "$LINENO"
14465 then :
14466   ac_cv_lib_fuse_fuse_main=yes
14467 else $as_nop
14468   ac_cv_lib_fuse_fuse_main=no
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14471     conftest$ac_exeext conftest.$ac_ext
14472 LIBS=$ac_check_lib_save_LIBS
14473 fi
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14475 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14476 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14477 then :
14478   FUSE_LIB=-lfuse
14479 else $as_nop
14480   FUSE_CMT="#"
14481 fi
14482
14483 fi
14484
14485         fi
14486
14487 else
14488         fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14489         fuse3_LIBS=$pkg_cv_fuse3_LIBS
14490         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14491 printf "%s\n" "yes" >&6; }
14492
14493         FUSE_LIB=-lfuse3
14494
14495 fi
14496 if test -z "$FUSE_CMT"
14497 then
14498         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14499 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14500 fi
14501
14502 fi
14503
14504
14505
14506 if test "$FUSE_LIB" = "-lfuse3"
14507 then
14508         FUSE_USE_VERSION=35
14509         CFLAGS="$CFLAGS $fuse3_CFLAGS"
14510         LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
14511                for ac_header in pthread.h fuse.h
14512 do :
14513   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14514 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14515 #define FUSE_USE_VERSION 35
14516 #ifdef __linux__
14517 #include <linux/fs.h>
14518 #include <linux/falloc.h>
14519 #include <linux/xattr.h>
14520 #endif
14521 "
14522 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14523 then :
14524   cat >>confdefs.h <<_ACEOF
14525 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14526 _ACEOF
14527
14528 else $as_nop
14529   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14530 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14531 as_fn_error $? "Cannot find fuse3 fuse2fs headers.
14532 See \`config.log' for more details" "$LINENO" 5; }
14533 fi
14534
14535 done
14536 elif test -n "$FUSE_LIB"
14537 then
14538         FUSE_USE_VERSION=29
14539 fi
14540 if test -n "$FUSE_USE_VERSION"
14541 then
14542
14543 printf "%s\n" "#define FUSE_USE_VERSION $FUSE_USE_VERSION" >>confdefs.h
14544
14545 fi
14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14547 printf %s "checking for optreset... " >&6; }
14548 if test ${ac_cv_have_optreset+y}
14549 then :
14550   printf %s "(cached) " >&6
14551 else $as_nop
14552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h.  */
14554 #include <unistd.h>
14555
14556 _ACEOF
14557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14558   $EGREP "optreset" >/dev/null 2>&1
14559 then :
14560   ac_cv_have_optreset=yes
14561 else $as_nop
14562   ac_cv_have_optreset=no
14563 fi
14564 rm -rf conftest*
14565
14566 fi
14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14568 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14569 if test $ac_cv_have_optreset = yes; then
14570
14571 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14572
14573 fi
14574
14575 SEM_INIT_LIB=''
14576 echo GL_THREADS_API: ${gl_threads_api}
14577 if test "${gl_threads_api}" != none
14578 then
14579   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14580 if test "x$ac_cv_func_sem_init" = xyes
14581 then :
14582
14583 else $as_nop
14584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14585 printf %s "checking for sem_init in -lpthread... " >&6; }
14586 if test ${ac_cv_lib_pthread_sem_init+y}
14587 then :
14588   printf %s "(cached) " >&6
14589 else $as_nop
14590   ac_check_lib_save_LIBS=$LIBS
14591 LIBS="-lpthread  $LIBS"
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h.  */
14594
14595 /* Override any GCC internal prototype to avoid an error.
14596    Use char because int might match the return type of a GCC
14597    builtin and then its argument prototype would still apply.  */
14598 char sem_init ();
14599 int
14600 main (void)
14601 {
14602 return sem_init ();
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 if ac_fn_c_try_link "$LINENO"
14608 then :
14609   ac_cv_lib_pthread_sem_init=yes
14610 else $as_nop
14611   ac_cv_lib_pthread_sem_init=no
14612 fi
14613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14614     conftest$ac_exeext conftest.$ac_ext
14615 LIBS=$ac_check_lib_save_LIBS
14616 fi
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14618 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14619 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14620 then :
14621   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14622
14623         SEM_INIT_LIB=-lpthread
14624 else $as_nop
14625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14626 printf %s "checking for sem_init in -lrt... " >&6; }
14627 if test ${ac_cv_lib_rt_sem_init+y}
14628 then :
14629   printf %s "(cached) " >&6
14630 else $as_nop
14631   ac_check_lib_save_LIBS=$LIBS
14632 LIBS="-lrt  $LIBS"
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h.  */
14635
14636 /* Override any GCC internal prototype to avoid an error.
14637    Use char because int might match the return type of a GCC
14638    builtin and then its argument prototype would still apply.  */
14639 char sem_init ();
14640 int
14641 main (void)
14642 {
14643 return sem_init ();
14644   ;
14645   return 0;
14646 }
14647 _ACEOF
14648 if ac_fn_c_try_link "$LINENO"
14649 then :
14650   ac_cv_lib_rt_sem_init=yes
14651 else $as_nop
14652   ac_cv_lib_rt_sem_init=no
14653 fi
14654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14655     conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14657 fi
14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14659 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14660 if test "x$ac_cv_lib_rt_sem_init" = xyes
14661 then :
14662   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14663
14664         SEM_INIT_LIB=-lrt
14665 else $as_nop
14666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14667 printf %s "checking for sem_init in -lposix4... " >&6; }
14668 if test ${ac_cv_lib_posix4_sem_init+y}
14669 then :
14670   printf %s "(cached) " >&6
14671 else $as_nop
14672   ac_check_lib_save_LIBS=$LIBS
14673 LIBS="-lposix4  $LIBS"
14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h.  */
14676
14677 /* Override any GCC internal prototype to avoid an error.
14678    Use char because int might match the return type of a GCC
14679    builtin and then its argument prototype would still apply.  */
14680 char sem_init ();
14681 int
14682 main (void)
14683 {
14684 return sem_init ();
14685   ;
14686   return 0;
14687 }
14688 _ACEOF
14689 if ac_fn_c_try_link "$LINENO"
14690 then :
14691   ac_cv_lib_posix4_sem_init=yes
14692 else $as_nop
14693   ac_cv_lib_posix4_sem_init=no
14694 fi
14695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14696     conftest$ac_exeext conftest.$ac_ext
14697 LIBS=$ac_check_lib_save_LIBS
14698 fi
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14700 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14701 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14702 then :
14703   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14704
14705         SEM_INIT_LIB=-lposix4
14706 fi
14707
14708 fi
14709
14710 fi
14711
14712 fi
14713 fi
14714
14715 if test "$ac_cv_func_qsort_r" != no
14716 then :
14717
14718   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14719 printf %s "checking whether qsort_r is GNU version... " >&6; }
14720 if test ${e2_cv_gnu_qsort_r+y}
14721 then :
14722   printf %s "(cached) " >&6
14723 else $as_nop
14724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h.  */
14726
14727 #include <stdlib.h>
14728 void (qsort_r)(void *base, size_t nmemb, size_t size,
14729             int (*compar)(const void *, const void *, void *),
14730             void *arg);
14731
14732 int
14733 main (void)
14734 {
14735
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 if ac_fn_c_try_compile "$LINENO"
14741 then :
14742   e2_cv_gnu_qsort_r=yes
14743 else $as_nop
14744   e2_cv_gnu_qsort_r=no
14745 fi
14746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14747
14748 fi
14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14750 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14751   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14752 printf %s "checking whether qsort_r is BSD version... " >&6; }
14753 if test ${e2_cv_bsd_qsort_r+y}
14754 then :
14755   printf %s "(cached) " >&6
14756 else $as_nop
14757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h.  */
14759
14760 #include <stdlib.h>
14761 void (qsort_r)(void *base, size_t nmemb, size_t size,
14762              void *arg, int (*compar)(void *, const void *, const void *));
14763
14764 int
14765 main (void)
14766 {
14767
14768   ;
14769   return 0;
14770 }
14771 _ACEOF
14772 if ac_fn_c_try_compile "$LINENO"
14773 then :
14774   e2_cv_bsd_qsort_r=yes
14775 else $as_nop
14776   e2_cv_bsd_qsort_r=no
14777 fi
14778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14779
14780 fi
14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14782 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14783   case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14784   yes:no) :
14785
14786
14787 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14788
14789    ;; #(
14790   no:yes) :
14791
14792
14793 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14794
14795    ;; #(
14796   *) :
14797      ;;
14798 esac
14799
14800 fi
14801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14802 printf %s "checking for unified diff option... " >&6; }
14803 if diff -u $0 $0 > /dev/null 2>&1 ; then
14804    UNI_DIFF_OPTS=-u
14805 else
14806    UNI_DIFF_OPTS=-c
14807 fi
14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14809 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14810
14811 case "$host_os" in
14812 linux*)
14813
14814 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14815
14816         ;;
14817 esac
14818
14819     printf %s "checking for mount 'nosuid' option... "
14820     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h.  */
14822 #include <sys/mount.h>
14823 int
14824 main (void)
14825 {
14826 void *temp = (void *)(MS_NOSUID); (void) temp;
14827   ;
14828   return 0;
14829 }
14830 _ACEOF
14831 if ac_fn_c_try_compile "$LINENO"
14832 then :
14833
14834 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14835
14836          ac_cv_mount_nosuid=yes
14837          printf "%s\n" "yes"
14838 else $as_nop
14839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h.  */
14841 #include <sys/mount.h>
14842 int
14843 main (void)
14844 {
14845 void *temp = (void *)(MNT_NOSUID); (void) temp;
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_c_try_compile "$LINENO"
14851 then :
14852
14853 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14854
14855              ac_cv_mount_nosuid=yes
14856              printf "%s\n" "yes"
14857 else $as_nop
14858   ac_cv_mount_nosuid=no
14859              printf "%s\n" "no"
14860
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14863
14864 fi
14865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14866
14867
14868     printf %s "checking for mount 'nodev' option... "
14869     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h.  */
14871 #include <sys/mount.h>
14872 int
14873 main (void)
14874 {
14875 void *temp = (void *)(MS_NODEV); (void) temp;
14876   ;
14877   return 0;
14878 }
14879 _ACEOF
14880 if ac_fn_c_try_compile "$LINENO"
14881 then :
14882
14883 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14884
14885          ac_cv_mount_nodev=yes
14886          printf "%s\n" "yes"
14887 else $as_nop
14888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h.  */
14890 #include <sys/mount.h>
14891 int
14892 main (void)
14893 {
14894 void *temp = (void *)(MNT_NODEV); (void) temp;
14895   ;
14896   return 0;
14897 }
14898 _ACEOF
14899 if ac_fn_c_try_compile "$LINENO"
14900 then :
14901
14902 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14903
14904              ac_cv_mount_nodev=yes
14905              printf "%s\n" "yes"
14906 else $as_nop
14907   ac_cv_mount_nodev=no
14908              printf "%s\n" "no"
14909
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14912
14913 fi
14914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14915
14916 # Check whether --enable-lto was given.
14917 if test ${enable_lto+y}
14918 then :
14919   enableval=$enable_lto;
14920 else $as_nop
14921   enable_lto=no
14922 fi
14923
14924 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14925         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14926 printf %s "checking if C compiler supports LTO... " >&6; }
14927         OLD_CFLAGS="$CFLAGS"
14928         OLD_LDFLAGS="$LDFLAGS"
14929         LTO_FLAGS="-g -flto -ffat-lto-objects"
14930         CFLAGS="$CFLAGS $LTO_FLAGS"
14931         LDFLAGS="$LDFLAGS $LTO_FLAGS"
14932         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h.  */
14934
14935 int
14936 main (void)
14937 {
14938
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 if ac_fn_c_try_link "$LINENO"
14944 then :
14945   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14946 printf "%s\n" "yes" >&6; }
14947                 lto_cflags=$LTO_FLAGS
14948                 lto_ldflags=$LTO_FLAGS
14949                 # Extract the first word of "gcc-ar", so it can be a program name with args.
14950 set dummy gcc-ar; ac_word=$2
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14952 printf %s "checking for $ac_word... " >&6; }
14953 if test ${ac_cv_path_gcc_ar+y}
14954 then :
14955   printf %s "(cached) " >&6
14956 else $as_nop
14957   case $gcc_ar in
14958   [\\/]* | ?:[\\/]*)
14959   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14960   ;;
14961   *)
14962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14963 for as_dir in $PATH
14964 do
14965   IFS=$as_save_IFS
14966   case $as_dir in #(((
14967     '') as_dir=./ ;;
14968     */) ;;
14969     *) as_dir=$as_dir/ ;;
14970   esac
14971     for ac_exec_ext in '' $ac_executable_extensions; do
14972   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14973     ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14974     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14975     break 2
14976   fi
14977 done
14978   done
14979 IFS=$as_save_IFS
14980
14981   ;;
14982 esac
14983 fi
14984 gcc_ar=$ac_cv_path_gcc_ar
14985 if test -n "$gcc_ar"; then
14986   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14987 printf "%s\n" "$gcc_ar" >&6; }
14988 else
14989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 printf "%s\n" "no" >&6; }
14991 fi
14992
14993
14994                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14995 set dummy gcc-ranlib; ac_word=$2
14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14997 printf %s "checking for $ac_word... " >&6; }
14998 if test ${ac_cv_path_gcc_ranlib+y}
14999 then :
15000   printf %s "(cached) " >&6
15001 else $as_nop
15002   case $gcc_ranlib in
15003   [\\/]* | ?:[\\/]*)
15004   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
15005   ;;
15006   *)
15007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008 for as_dir in $PATH
15009 do
15010   IFS=$as_save_IFS
15011   case $as_dir in #(((
15012     '') as_dir=./ ;;
15013     */) ;;
15014     *) as_dir=$as_dir/ ;;
15015   esac
15016     for ac_exec_ext in '' $ac_executable_extensions; do
15017   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15018     ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
15019     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15020     break 2
15021   fi
15022 done
15023   done
15024 IFS=$as_save_IFS
15025
15026   ;;
15027 esac
15028 fi
15029 gcc_ranlib=$ac_cv_path_gcc_ranlib
15030 if test -n "$gcc_ranlib"; then
15031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
15032 printf "%s\n" "$gcc_ranlib" >&6; }
15033 else
15034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035 printf "%s\n" "no" >&6; }
15036 fi
15037
15038
15039 else $as_nop
15040   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041 printf "%s\n" "no" >&6; }
15042 fi
15043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15044     conftest$ac_exeext conftest.$ac_ext
15045         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
15046                 have_lto=yes
15047                 AR="${gcc_ar}"
15048                 RANLIB="${gcc_ranlib}"
15049         fi
15050         CFLAGS="${OLD_CFLAGS}"
15051         LDFLAGS="${OLD_LDFLAGS}"
15052
15053
15054
15055 fi
15056 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
15057         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
15058 fi
15059 # Check whether --enable-ubsan was given.
15060 if test ${enable_ubsan+y}
15061 then :
15062   enableval=$enable_ubsan;
15063 else $as_nop
15064   enable_ubsan=no
15065 fi
15066
15067 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
15068         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
15069 printf %s "checking if C compiler supports UBSAN... " >&6; }
15070         OLD_CFLAGS="$CFLAGS"
15071         OLD_LDFLAGS="$LDFLAGS"
15072         UBSAN_FLAGS="-fsanitize=undefined"
15073         CFLAGS="$CFLAGS $UBSAN_FLAGS"
15074         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
15075         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h.  */
15077
15078 int
15079 main (void)
15080 {
15081
15082   ;
15083   return 0;
15084 }
15085 _ACEOF
15086 if ac_fn_c_try_link "$LINENO"
15087 then :
15088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15089 printf "%s\n" "yes" >&6; }
15090                 ubsan_cflags=$UBSAN_FLAGS
15091                 ubsan_ldflags=$UBSAN_FLAGS
15092                 have_ubsan=yes
15093 else $as_nop
15094   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 printf "%s\n" "no" >&6; }
15096 fi
15097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15098     conftest$ac_exeext conftest.$ac_ext
15099         CFLAGS="${OLD_CFLAGS}"
15100         LDFLAGS="${OLD_LDFLAGS}"
15101
15102
15103
15104 fi
15105 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
15106         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
15107 fi
15108 # Check whether --enable-addrsan was given.
15109 if test ${enable_addrsan+y}
15110 then :
15111   enableval=$enable_addrsan;
15112 else $as_nop
15113   enable_addrsan=no
15114 fi
15115
15116 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
15117         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
15118 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
15119         OLD_CFLAGS="$CFLAGS"
15120         OLD_LDFLAGS="$LDFLAGS"
15121         ADDRSAN_FLAGS="-fsanitize=address"
15122         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
15123         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
15124         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h.  */
15126
15127 int
15128 main (void)
15129 {
15130
15131   ;
15132   return 0;
15133 }
15134 _ACEOF
15135 if ac_fn_c_try_link "$LINENO"
15136 then :
15137   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15138 printf "%s\n" "yes" >&6; }
15139                 addrsan_cflags=$ADDRSAN_FLAGS
15140                 addrsan_ldflags=$ADDRSAN_FLAGS
15141                 have_addrsan=yes
15142 else $as_nop
15143   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 printf "%s\n" "no" >&6; }
15145 fi
15146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15147     conftest$ac_exeext conftest.$ac_ext
15148         CFLAGS="${OLD_CFLAGS}"
15149         LDFLAGS="${OLD_LDFLAGS}"
15150
15151
15152
15153 fi
15154 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
15155         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
15156 fi
15157 # Check whether --enable-threadsan was given.
15158 if test ${enable_threadsan+y}
15159 then :
15160   enableval=$enable_threadsan;
15161 else $as_nop
15162   enable_threadsan=no
15163 fi
15164
15165 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
15166         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
15167 printf %s "checking if C compiler supports THREADSAN... " >&6; }
15168         OLD_CFLAGS="$CFLAGS"
15169         OLD_LDFLAGS="$LDFLAGS"
15170         THREADSAN_FLAGS="-fsanitize=thread"
15171         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
15172         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
15173         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h.  */
15175
15176 int
15177 main (void)
15178 {
15179
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_c_try_link "$LINENO"
15185 then :
15186   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15187 printf "%s\n" "yes" >&6; }
15188                 threadsan_cflags=$THREADSAN_FLAGS
15189                 threadsan_ldflags=$THREADSAN_FLAGS
15190                 have_threadsan=yes
15191 else $as_nop
15192   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 printf "%s\n" "no" >&6; }
15194 fi
15195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15196     conftest$ac_exeext conftest.$ac_ext
15197         CFLAGS="${OLD_CFLAGS}"
15198         LDFLAGS="${OLD_LDFLAGS}"
15199
15200
15201
15202 fi
15203 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
15204         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
15205 fi
15206 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
15207         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
15208 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
15209 fi
15210 FUZZING_CMT="#"
15211 # Check whether --enable-fuzzing was given.
15212 if test ${enable_fuzzing+y}
15213 then :
15214   enableval=$enable_fuzzing;
15215 else $as_nop
15216   enable_fuzzing=no
15217 fi
15218
15219 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
15220
15221
15222
15223
15224
15225
15226 ac_ext=cpp
15227 ac_cpp='$CXXCPP $CPPFLAGS'
15228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15231 if test -z "$CXX"; then
15232   if test -n "$CCC"; then
15233     CXX=$CCC
15234   else
15235     if test -n "$ac_tool_prefix"; then
15236   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15237   do
15238     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15241 printf %s "checking for $ac_word... " >&6; }
15242 if test ${ac_cv_prog_CXX+y}
15243 then :
15244   printf %s "(cached) " >&6
15245 else $as_nop
15246   if test -n "$CXX"; then
15247   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15248 else
15249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15250 for as_dir in $PATH
15251 do
15252   IFS=$as_save_IFS
15253   case $as_dir in #(((
15254     '') as_dir=./ ;;
15255     */) ;;
15256     *) as_dir=$as_dir/ ;;
15257   esac
15258     for ac_exec_ext in '' $ac_executable_extensions; do
15259   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15260     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15261     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15262     break 2
15263   fi
15264 done
15265   done
15266 IFS=$as_save_IFS
15267
15268 fi
15269 fi
15270 CXX=$ac_cv_prog_CXX
15271 if test -n "$CXX"; then
15272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15273 printf "%s\n" "$CXX" >&6; }
15274 else
15275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 printf "%s\n" "no" >&6; }
15277 fi
15278
15279
15280     test -n "$CXX" && break
15281   done
15282 fi
15283 if test -z "$CXX"; then
15284   ac_ct_CXX=$CXX
15285   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15286 do
15287   # Extract the first word of "$ac_prog", so it can be a program name with args.
15288 set dummy $ac_prog; ac_word=$2
15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15290 printf %s "checking for $ac_word... " >&6; }
15291 if test ${ac_cv_prog_ac_ct_CXX+y}
15292 then :
15293   printf %s "(cached) " >&6
15294 else $as_nop
15295   if test -n "$ac_ct_CXX"; then
15296   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15297 else
15298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15299 for as_dir in $PATH
15300 do
15301   IFS=$as_save_IFS
15302   case $as_dir in #(((
15303     '') as_dir=./ ;;
15304     */) ;;
15305     *) as_dir=$as_dir/ ;;
15306   esac
15307     for ac_exec_ext in '' $ac_executable_extensions; do
15308   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15309     ac_cv_prog_ac_ct_CXX="$ac_prog"
15310     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15311     break 2
15312   fi
15313 done
15314   done
15315 IFS=$as_save_IFS
15316
15317 fi
15318 fi
15319 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15320 if test -n "$ac_ct_CXX"; then
15321   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15322 printf "%s\n" "$ac_ct_CXX" >&6; }
15323 else
15324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 printf "%s\n" "no" >&6; }
15326 fi
15327
15328
15329   test -n "$ac_ct_CXX" && break
15330 done
15331
15332   if test "x$ac_ct_CXX" = x; then
15333     CXX="g++"
15334   else
15335     case $cross_compiling:$ac_tool_warned in
15336 yes:)
15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15339 ac_tool_warned=yes ;;
15340 esac
15341     CXX=$ac_ct_CXX
15342   fi
15343 fi
15344
15345   fi
15346 fi
15347 # Provide some information about the compiler.
15348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15349 set X $ac_compile
15350 ac_compiler=$2
15351 for ac_option in --version -v -V -qversion; do
15352   { { ac_try="$ac_compiler $ac_option >&5"
15353 case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15358 printf "%s\n" "$ac_try_echo"; } >&5
15359   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15360   ac_status=$?
15361   if test -s conftest.err; then
15362     sed '10a\
15363 ... rest of stderr output deleted ...
15364          10q' conftest.err >conftest.er1
15365     cat conftest.er1 >&5
15366   fi
15367   rm -f conftest.er1 conftest.err
15368   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15369   test $ac_status = 0; }
15370 done
15371
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15373 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15374 if test ${ac_cv_cxx_compiler_gnu+y}
15375 then :
15376   printf %s "(cached) " >&6
15377 else $as_nop
15378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h.  */
15380
15381 int
15382 main (void)
15383 {
15384 #ifndef __GNUC__
15385        choke me
15386 #endif
15387
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 if ac_fn_cxx_try_compile "$LINENO"
15393 then :
15394   ac_compiler_gnu=yes
15395 else $as_nop
15396   ac_compiler_gnu=no
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15399 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15400
15401 fi
15402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15403 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15405
15406 if test $ac_compiler_gnu = yes; then
15407   GXX=yes
15408 else
15409   GXX=
15410 fi
15411 ac_test_CXXFLAGS=${CXXFLAGS+y}
15412 ac_save_CXXFLAGS=$CXXFLAGS
15413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15414 printf %s "checking whether $CXX accepts -g... " >&6; }
15415 if test ${ac_cv_prog_cxx_g+y}
15416 then :
15417   printf %s "(cached) " >&6
15418 else $as_nop
15419   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15420    ac_cxx_werror_flag=yes
15421    ac_cv_prog_cxx_g=no
15422    CXXFLAGS="-g"
15423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h.  */
15425
15426 int
15427 main (void)
15428 {
15429
15430   ;
15431   return 0;
15432 }
15433 _ACEOF
15434 if ac_fn_cxx_try_compile "$LINENO"
15435 then :
15436   ac_cv_prog_cxx_g=yes
15437 else $as_nop
15438   CXXFLAGS=""
15439       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h.  */
15441
15442 int
15443 main (void)
15444 {
15445
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 if ac_fn_cxx_try_compile "$LINENO"
15451 then :
15452
15453 else $as_nop
15454   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15455          CXXFLAGS="-g"
15456          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h.  */
15458
15459 int
15460 main (void)
15461 {
15462
15463   ;
15464   return 0;
15465 }
15466 _ACEOF
15467 if ac_fn_cxx_try_compile "$LINENO"
15468 then :
15469   ac_cv_prog_cxx_g=yes
15470 fi
15471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15476    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15477 fi
15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15479 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15480 if test $ac_test_CXXFLAGS; then
15481   CXXFLAGS=$ac_save_CXXFLAGS
15482 elif test $ac_cv_prog_cxx_g = yes; then
15483   if test "$GXX" = yes; then
15484     CXXFLAGS="-g -O2"
15485   else
15486     CXXFLAGS="-g"
15487   fi
15488 else
15489   if test "$GXX" = yes; then
15490     CXXFLAGS="-O2"
15491   else
15492     CXXFLAGS=
15493   fi
15494 fi
15495 ac_prog_cxx_stdcxx=no
15496 if test x$ac_prog_cxx_stdcxx = xno
15497 then :
15498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15499 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15500 if test ${ac_cv_prog_cxx_cxx11+y}
15501 then :
15502   printf %s "(cached) " >&6
15503 else $as_nop
15504   ac_cv_prog_cxx_cxx11=no
15505 ac_save_CXX=$CXX
15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h.  */
15508 $ac_cxx_conftest_cxx11_program
15509 _ACEOF
15510 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15511 do
15512   CXX="$ac_save_CXX $ac_arg"
15513   if ac_fn_cxx_try_compile "$LINENO"
15514 then :
15515   ac_cv_prog_cxx_cxx11=$ac_arg
15516 fi
15517 rm -f core conftest.err conftest.$ac_objext conftest.beam
15518   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15519 done
15520 rm -f conftest.$ac_ext
15521 CXX=$ac_save_CXX
15522 fi
15523
15524 if test "x$ac_cv_prog_cxx_cxx11" = xno
15525 then :
15526   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15527 printf "%s\n" "unsupported" >&6; }
15528 else $as_nop
15529   if test "x$ac_cv_prog_cxx_cxx11" = x
15530 then :
15531   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15532 printf "%s\n" "none needed" >&6; }
15533 else $as_nop
15534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15535 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15536      CXX="$CXX $ac_cv_prog_cxx_cxx11"
15537 fi
15538   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15539   ac_prog_cxx_stdcxx=cxx11
15540 fi
15541 fi
15542 if test x$ac_prog_cxx_stdcxx = xno
15543 then :
15544   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15545 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15546 if test ${ac_cv_prog_cxx_cxx98+y}
15547 then :
15548   printf %s "(cached) " >&6
15549 else $as_nop
15550   ac_cv_prog_cxx_cxx98=no
15551 ac_save_CXX=$CXX
15552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h.  */
15554 $ac_cxx_conftest_cxx98_program
15555 _ACEOF
15556 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15557 do
15558   CXX="$ac_save_CXX $ac_arg"
15559   if ac_fn_cxx_try_compile "$LINENO"
15560 then :
15561   ac_cv_prog_cxx_cxx98=$ac_arg
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext conftest.beam
15564   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15565 done
15566 rm -f conftest.$ac_ext
15567 CXX=$ac_save_CXX
15568 fi
15569
15570 if test "x$ac_cv_prog_cxx_cxx98" = xno
15571 then :
15572   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15573 printf "%s\n" "unsupported" >&6; }
15574 else $as_nop
15575   if test "x$ac_cv_prog_cxx_cxx98" = x
15576 then :
15577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15578 printf "%s\n" "none needed" >&6; }
15579 else $as_nop
15580   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15581 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15582      CXX="$CXX $ac_cv_prog_cxx_cxx98"
15583 fi
15584   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15585   ac_prog_cxx_stdcxx=cxx98
15586 fi
15587 fi
15588
15589 ac_ext=c
15590 ac_cpp='$CPP $CPPFLAGS'
15591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15594
15595         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15596 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15597         ac_ext=cpp
15598 ac_cpp='$CXXCPP $CPPFLAGS'
15599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15602
15603         OLD_CXXFLAGS="$CXXFLAGS"
15604         OLD_LDFLAGS="$LDFLAGS"
15605         FUZZER_FLAGS="-fsanitize=fuzzer"
15606         CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15607         LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15608
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h.  */
15611
15612                 #include <stddef.h>
15613                 #include <stdint.h>
15614
15615 int
15616 main (void)
15617 {
15618  return 0;
15619   ;
15620   return 0;
15621 }
15622 _ACEOF
15623 if ac_fn_cxx_try_compile "$LINENO"
15624 then :
15625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15626 printf "%s\n" "yes" >&6; }
15627                 fuzzer_cflags=$FUZZER_FLAGS
15628                 fuzzer_ldflags=$FUZZER_FLAGS
15629                 FUZZING_CMT=
15630                 have_fuzzer=yes
15631 else $as_nop
15632   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 printf "%s\n" "no" >&6; }
15634                 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15635 fi
15636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15637         CXXFLAGS="${OLD_CXXFLAGS}"
15638         LDFLAGS="${OLD_LDFLAGS}"
15639         ac_ext=c
15640 ac_cpp='$CPP $CPPFLAGS'
15641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15644
15645
15646
15647
15648 fi
15649
15650 LINUX_CMT="#"
15651 CYGWIN_CMT="#"
15652 UNIX_CMT=
15653 case "$host_os" in
15654 linux*)
15655         LINUX_CMT=
15656         ;;
15657 cygwin)
15658         CYGWIN_CMT=
15659         UNIX_CMT="#"
15660         ;;
15661 esac
15662
15663
15664
15665 E2SCRUB_CMT="$LINUX_CMT"
15666
15667 case "$host_os" in
15668 linux* | gnu* | k*bsd*-gnu)
15669         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15670                 root_prefix="";
15671                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15672 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15673         fi
15674         ;;
15675 esac
15676 case "$host_os" in
15677 linux* | gnu* | k*bsd*-gnu)
15678         if test "$prefix" = NONE ; then
15679                 prefix="/usr";
15680                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15681 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15682                 if test "$mandir" = '${prefix}/man' ; then
15683                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15684 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15685                         mandir=/usr/share/man
15686                 fi
15687         fi
15688 ;;
15689 esac
15690 if test "$root_prefix" = NONE ; then
15691         if test "$prefix" = NONE ; then
15692                 root_prefix="$ac_default_prefix"
15693         else
15694                 root_prefix="$prefix"
15695         fi
15696         root_bindir=$bindir
15697         root_sbindir=$sbindir
15698         root_libdir=$libdir
15699         root_sysconfdir=$sysconfdir
15700 else
15701         root_bindir='${root_prefix}/bin'
15702         root_sbindir='${root_prefix}/sbin'
15703         root_libdir='${root_prefix}/lib'
15704         root_sysconfdir='${root_prefix}/etc'
15705 fi
15706 if test "$bindir" != '${exec_prefix}/bin'; then
15707     root_bindir=$bindir
15708     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15709 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15710 fi
15711 if test "$sbindir" != '${exec_prefix}/sbin'; then
15712     root_sbindir=$sbindir
15713     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15714 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15715 fi
15716 if test "$libdir" != '${exec_prefix}/lib'; then
15717     root_libdir=$libdir
15718     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15719 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15720 fi
15721 if test "$sysconfdir" != '${prefix}/etc'; then
15722     root_sysconfdir=$sysconfdir
15723     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15724 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15725 fi
15726
15727
15728
15729
15730
15731
15732 # Check whether --with-multiarch was given.
15733 if test ${with_multiarch+y}
15734 then :
15735   withval=$with_multiarch; if test "$withval" = "lib64"; then
15736     libdir=/usr/lib64
15737     root_libdir=/lib64
15738 else
15739     libdir=$libdir/$withval
15740     root_libdir=$root_libdir/$withval
15741 fi
15742
15743 fi
15744
15745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15746 printf %s "checking whether we can link with -static... " >&6; }
15747 if test ${ac_cv_e2fsprogs_use_static+y}
15748 then :
15749   printf %s "(cached) " >&6
15750 else $as_nop
15751   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h.  */
15754 #include <stdio.h>
15755 int
15756 main (void)
15757 {
15758 fflush(stdout);
15759   ;
15760   return 0;
15761 }
15762 _ACEOF
15763 if ac_fn_c_try_link "$LINENO"
15764 then :
15765   ac_cv_e2fsprogs_use_static=yes
15766 else $as_nop
15767   ac_cv_e2fsprogs_use_static=no
15768 fi
15769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15770     conftest$ac_exeext conftest.$ac_ext
15771 LDFLAGS=$SAVE_LDFLAGS
15772 fi
15773
15774 case "$host_os" in
15775 solaris2.*)
15776         ac_cv_e2fsprogs_use_static=no
15777 ;;
15778 esac
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15780 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15781 if test $ac_cv_e2fsprogs_use_static = yes; then
15782         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15783 fi
15784
15785 case "$host_os" in
15786 darwin*)
15787         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15788 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15789
15790 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15791
15792         ;;
15793 esac
15794 if test "$cross_compiling" = yes ; then
15795   DO_TEST_SUITE=
15796 else
15797   DO_TEST_SUITE=check
15798 fi
15799
15800 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15801 if test -n "$CPPFLAGS" ; then
15802         INCLUDES="$INCLUDES $CPPFLAGS"
15803 fi
15804 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15805         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15806 fi
15807 if test -n "$WITH_DIET_LIBC" ; then
15808         INCLUDES="$INCLUDES -D_REENTRANT"
15809 fi
15810 case "$host_os" in
15811 mingw*)
15812         INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15813         ;;
15814 esac
15815
15816 if test $cross_compiling = no; then
15817    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15818    BUILD_LDFLAGS="$LDFLAGS"
15819 fi
15820
15821
15822 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15823 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15824 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15825
15826
15827
15828
15829
15830 # Check whether --with-udev_rules_dir was given.
15831 if test ${with_udev_rules_dir+y}
15832 then :
15833   withval=$with_udev_rules_dir;
15834 else $as_nop
15835   with_udev_rules_dir=yes
15836 fi
15837
15838 if test "x${with_udev_rules_dir}" != "xno"
15839 then :
15840
15841         if test "x${with_udev_rules_dir}" = "xyes"
15842 then :
15843
15844
15845 pkg_failed=no
15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15847 printf %s "checking for udev... " >&6; }
15848
15849 if test -n "$udev_CFLAGS"; then
15850     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15851  elif test -n "$PKG_CONFIG"; then
15852     if test -n "$PKG_CONFIG" && \
15853     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15854   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15855   ac_status=$?
15856   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15857   test $ac_status = 0; }; then
15858   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15859                       test "x$?" != "x0" && pkg_failed=yes
15860 else
15861   pkg_failed=yes
15862 fi
15863  else
15864     pkg_failed=untried
15865 fi
15866 if test -n "$udev_LIBS"; then
15867     pkg_cv_udev_LIBS="$udev_LIBS"
15868  elif test -n "$PKG_CONFIG"; then
15869     if test -n "$PKG_CONFIG" && \
15870     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15871   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15872   ac_status=$?
15873   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15874   test $ac_status = 0; }; then
15875   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15876                       test "x$?" != "x0" && pkg_failed=yes
15877 else
15878   pkg_failed=yes
15879 fi
15880  else
15881     pkg_failed=untried
15882 fi
15883
15884
15885
15886 if test $pkg_failed = yes; then
15887         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15888 printf "%s\n" "no" >&6; }
15889
15890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15891         _pkg_short_errors_supported=yes
15892 else
15893         _pkg_short_errors_supported=no
15894 fi
15895         if test $_pkg_short_errors_supported = yes; then
15896                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15897         else
15898                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15899         fi
15900         # Put the nasty error message in config.log where it belongs
15901         echo "$udev_PKG_ERRORS" >&5
15902
15903
15904                         with_udev_rules_dir=""
15905
15906 elif test $pkg_failed = untried; then
15907         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15908 printf "%s\n" "no" >&6; }
15909
15910                         with_udev_rules_dir=""
15911
15912 else
15913         udev_CFLAGS=$pkg_cv_udev_CFLAGS
15914         udev_LIBS=$pkg_cv_udev_LIBS
15915         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15916 printf "%s\n" "yes" >&6; }
15917
15918                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15919
15920 fi
15921
15922 fi
15923         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15924 printf %s "checking for udev rules dir... " >&6; }
15925         pkg_udev_rules_dir="${with_udev_rules_dir}"
15926         if test -n "${pkg_udev_rules_dir}"
15927 then :
15928
15929                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15930 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15931                 have_udev="yes"
15932
15933 else $as_nop
15934
15935                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15936 printf "%s\n" "no" >&6; }
15937                 have_udev="no"
15938
15939 fi
15940
15941 else $as_nop
15942
15943         have_udev="disabled"
15944
15945 fi
15946
15947
15948
15949
15950 # Check whether --with-crond_dir was given.
15951 if test ${with_crond_dir+y}
15952 then :
15953   withval=$with_crond_dir;
15954 else $as_nop
15955   with_crond_dir=yes
15956 fi
15957
15958 if test "x${with_crond_dir}" != "xno"
15959 then :
15960
15961         if test "x${with_crond_dir}" = "xyes"
15962 then :
15963
15964                 if test -d "/etc/cron.d"
15965 then :
15966   with_crond_dir="/etc/cron.d"
15967 else $as_nop
15968   have_crond="no"; with_crond_dir=""
15969 fi
15970
15971 fi
15972         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15973 printf %s "checking for system crontab dir... " >&6; }
15974         crond_dir="${with_crond_dir}"
15975         if test -n "${crond_dir}"
15976 then :
15977
15978                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15979 printf "%s\n" "${crond_dir}" >&6; }
15980                 have_crond="yes"
15981
15982 else $as_nop
15983
15984                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985 printf "%s\n" "no" >&6; }
15986                 have_crond="no"
15987
15988 fi
15989
15990 else $as_nop
15991
15992         have_crond="disabled"
15993
15994 fi
15995
15996
15997
15998
15999 # Check whether --with-systemd_unit_dir was given.
16000 if test ${with_systemd_unit_dir+y}
16001 then :
16002   withval=$with_systemd_unit_dir;
16003 else $as_nop
16004   with_systemd_unit_dir=yes
16005 fi
16006
16007 if test "x${with_systemd_unit_dir}" != "xno"
16008 then :
16009
16010         if test "x${with_systemd_unit_dir}" = "xyes"
16011 then :
16012
16013
16014 pkg_failed=no
16015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
16016 printf %s "checking for systemd... " >&6; }
16017
16018 if test -n "$systemd_CFLAGS"; then
16019     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
16020  elif test -n "$PKG_CONFIG"; then
16021     if test -n "$PKG_CONFIG" && \
16022     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16023   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16024   ac_status=$?
16025   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026   test $ac_status = 0; }; then
16027   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
16028                       test "x$?" != "x0" && pkg_failed=yes
16029 else
16030   pkg_failed=yes
16031 fi
16032  else
16033     pkg_failed=untried
16034 fi
16035 if test -n "$systemd_LIBS"; then
16036     pkg_cv_systemd_LIBS="$systemd_LIBS"
16037  elif test -n "$PKG_CONFIG"; then
16038     if test -n "$PKG_CONFIG" && \
16039     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16040   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16041   ac_status=$?
16042   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16043   test $ac_status = 0; }; then
16044   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
16045                       test "x$?" != "x0" && pkg_failed=yes
16046 else
16047   pkg_failed=yes
16048 fi
16049  else
16050     pkg_failed=untried
16051 fi
16052
16053
16054
16055 if test $pkg_failed = yes; then
16056         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16057 printf "%s\n" "no" >&6; }
16058
16059 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16060         _pkg_short_errors_supported=yes
16061 else
16062         _pkg_short_errors_supported=no
16063 fi
16064         if test $_pkg_short_errors_supported = yes; then
16065                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
16066         else
16067                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
16068         fi
16069         # Put the nasty error message in config.log where it belongs
16070         echo "$systemd_PKG_ERRORS" >&5
16071
16072
16073                         with_systemd_unit_dir=""
16074
16075 elif test $pkg_failed = untried; then
16076         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077 printf "%s\n" "no" >&6; }
16078
16079                         with_systemd_unit_dir=""
16080
16081 else
16082         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
16083         systemd_LIBS=$pkg_cv_systemd_LIBS
16084         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16085 printf "%s\n" "yes" >&6; }
16086
16087                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
16088
16089 fi
16090
16091
16092 fi
16093         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
16094 printf %s "checking for systemd system unit dir... " >&6; }
16095         systemd_system_unit_dir="${with_systemd_unit_dir}"
16096         if test -n "${systemd_system_unit_dir}"
16097 then :
16098
16099                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
16100 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
16101                 have_systemd="yes"
16102
16103 else $as_nop
16104
16105                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16106 printf "%s\n" "no" >&6; }
16107                 have_systemd="no"
16108
16109 fi
16110
16111 else $as_nop
16112
16113         have_systemd="disabled"
16114
16115 fi
16116
16117
16118 OS_IO_FILE=""
16119 case "$host_os" in
16120   mingw*)
16121     OS_IO_FILE=windows_io
16122   ;;
16123   *)
16124     OS_IO_FILE=unix_io
16125   ;;
16126 esac
16127
16128
16129 test -d lib || mkdir lib
16130 test -d include || mkdir include
16131 test -d include/linux || mkdir include/linux
16132 test -d include/asm || mkdir include/asm
16133 if test -z "$UUID_CMT" ; then
16134         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
16135                 lib/uuid/uuid_types.h"
16136 fi
16137 if test -z "$BLKID_CMT" ; then
16138         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
16139                 lib/blkid/blkid_types.h"
16140 fi
16141 for i in MCONFIG Makefile \
16142         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
16143         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16144         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16145         $uuid_out_list $blkid_out_list lib/support/Makefile \
16146         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
16147         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16148         debugfs/Makefile tests/Makefile tests/progs/Makefile \
16149         tests/fuzz/Makefile resize/Makefile doc/Makefile \
16150         po/Makefile.in scrub/Makefile; do
16151         if test -d `dirname ${srcdir}/$i` ; then
16152                 outlist="$outlist $i"
16153         fi
16154 done
16155 ac_config_files="$ac_config_files $outlist"
16156
16157 cat >confcache <<\_ACEOF
16158 # This file is a shell script that caches the results of configure
16159 # tests run on this system so they can be shared between configure
16160 # scripts and configure runs, see configure's option --config-cache.
16161 # It is not useful on other systems.  If it contains results you don't
16162 # want to keep, you may remove or edit it.
16163 #
16164 # config.status only pays attention to the cache file if you give it
16165 # the --recheck option to rerun configure.
16166 #
16167 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16168 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16169 # following values.
16170
16171 _ACEOF
16172
16173 # The following way of writing the cache mishandles newlines in values,
16174 # but we know of no workaround that is simple, portable, and efficient.
16175 # So, we kill variables containing newlines.
16176 # Ultrix sh set writes to stderr and can't be redirected directly,
16177 # and sets the high bit in the cache file unless we assign to the vars.
16178 (
16179   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16180     eval ac_val=\$$ac_var
16181     case $ac_val in #(
16182     *${as_nl}*)
16183       case $ac_var in #(
16184       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16185 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16186       esac
16187       case $ac_var in #(
16188       _ | IFS | as_nl) ;; #(
16189       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16190       *) { eval $ac_var=; unset $ac_var;} ;;
16191       esac ;;
16192     esac
16193   done
16194
16195   (set) 2>&1 |
16196     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16197     *${as_nl}ac_space=\ *)
16198       # `set' does not quote correctly, so add quotes: double-quote
16199       # substitution turns \\\\ into \\, and sed turns \\ into \.
16200       sed -n \
16201         "s/'/'\\\\''/g;
16202           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16203       ;; #(
16204     *)
16205       # `set' quotes correctly as required by POSIX, so do not add quotes.
16206       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16207       ;;
16208     esac |
16209     sort
16210 ) |
16211   sed '
16212      /^ac_cv_env_/b end
16213      t clear
16214      :clear
16215      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16216      t end
16217      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16218      :end' >>confcache
16219 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16220   if test -w "$cache_file"; then
16221     if test "x$cache_file" != "x/dev/null"; then
16222       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16223 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16224       if test ! -f "$cache_file" || test -h "$cache_file"; then
16225         cat confcache >"$cache_file"
16226       else
16227         case $cache_file in #(
16228         */* | ?:*)
16229           mv -f confcache "$cache_file"$$ &&
16230           mv -f "$cache_file"$$ "$cache_file" ;; #(
16231         *)
16232           mv -f confcache "$cache_file" ;;
16233         esac
16234       fi
16235     fi
16236   else
16237     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16238 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16239   fi
16240 fi
16241 rm -f confcache
16242
16243 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16244 # Let make expand exec_prefix.
16245 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16246
16247 DEFS=-DHAVE_CONFIG_H
16248
16249 ac_libobjs=
16250 ac_ltlibobjs=
16251 U=
16252 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16253   # 1. Remove the extension, and $U if already installed.
16254   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16255   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16256   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16257   #    will be set to the directory where LIBOBJS objects are built.
16258   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16259   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16260 done
16261 LIBOBJS=$ac_libobjs
16262
16263 LTLIBOBJS=$ac_ltlibobjs
16264
16265
16266
16267
16268 : "${CONFIG_STATUS=./config.status}"
16269 ac_write_fail=0
16270 ac_clean_files_save=$ac_clean_files
16271 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16273 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16274 as_write_fail=0
16275 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16276 #! $SHELL
16277 # Generated by $as_me.
16278 # Run this file to recreate the current configuration.
16279 # Compiler output produced by configure, useful for debugging
16280 # configure, is in config.log if it exists.
16281
16282 debug=false
16283 ac_cs_recheck=false
16284 ac_cs_silent=false
16285
16286 SHELL=\${CONFIG_SHELL-$SHELL}
16287 export SHELL
16288 _ASEOF
16289 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16290 ## -------------------- ##
16291 ## M4sh Initialization. ##
16292 ## -------------------- ##
16293
16294 # Be more Bourne compatible
16295 DUALCASE=1; export DUALCASE # for MKS sh
16296 as_nop=:
16297 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16298 then :
16299   emulate sh
16300   NULLCMD=:
16301   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16302   # is contrary to our usage.  Disable this feature.
16303   alias -g '${1+"$@"}'='"$@"'
16304   setopt NO_GLOB_SUBST
16305 else $as_nop
16306   case `(set -o) 2>/dev/null` in #(
16307   *posix*) :
16308     set -o posix ;; #(
16309   *) :
16310      ;;
16311 esac
16312 fi
16313
16314
16315
16316 # Reset variables that may have inherited troublesome values from
16317 # the environment.
16318
16319 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16320 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16321 # side effect of setting IFS to empty, thus disabling word splitting.)
16322 # Quoting is to prevent editors from complaining about space-tab.
16323 as_nl='
16324 '
16325 export as_nl
16326 IFS=" ""        $as_nl"
16327
16328 PS1='$ '
16329 PS2='> '
16330 PS4='+ '
16331
16332 # Ensure predictable behavior from utilities with locale-dependent output.
16333 LC_ALL=C
16334 export LC_ALL
16335 LANGUAGE=C
16336 export LANGUAGE
16337
16338 # We cannot yet rely on "unset" to work, but we need these variables
16339 # to be unset--not just set to an empty or harmless value--now, to
16340 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
16341 # also avoids known problems related to "unset" and subshell syntax
16342 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16343 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16344 do eval test \${$as_var+y} \
16345   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16346 done
16347
16348 # Ensure that fds 0, 1, and 2 are open.
16349 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16350 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16351 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
16352
16353 # The user is always right.
16354 if ${PATH_SEPARATOR+false} :; then
16355   PATH_SEPARATOR=:
16356   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16357     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16358       PATH_SEPARATOR=';'
16359   }
16360 fi
16361
16362
16363 # Find who we are.  Look in the path if we contain no directory separator.
16364 as_myself=
16365 case $0 in #((
16366   *[\\/]* ) as_myself=$0 ;;
16367   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16368 for as_dir in $PATH
16369 do
16370   IFS=$as_save_IFS
16371   case $as_dir in #(((
16372     '') as_dir=./ ;;
16373     */) ;;
16374     *) as_dir=$as_dir/ ;;
16375   esac
16376     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16377   done
16378 IFS=$as_save_IFS
16379
16380      ;;
16381 esac
16382 # We did not find ourselves, most probably we were run as `sh COMMAND'
16383 # in which case we are not to be found in the path.
16384 if test "x$as_myself" = x; then
16385   as_myself=$0
16386 fi
16387 if test ! -f "$as_myself"; then
16388   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16389   exit 1
16390 fi
16391
16392
16393
16394 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16395 # ----------------------------------------
16396 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16397 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16398 # script with STATUS, using 1 if that was 0.
16399 as_fn_error ()
16400 {
16401   as_status=$1; test $as_status -eq 0 && as_status=1
16402   if test "$4"; then
16403     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16404     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16405   fi
16406   printf "%s\n" "$as_me: error: $2" >&2
16407   as_fn_exit $as_status
16408 } # as_fn_error
16409
16410
16411
16412 # as_fn_set_status STATUS
16413 # -----------------------
16414 # Set $? to STATUS, without forking.
16415 as_fn_set_status ()
16416 {
16417   return $1
16418 } # as_fn_set_status
16419
16420 # as_fn_exit STATUS
16421 # -----------------
16422 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16423 as_fn_exit ()
16424 {
16425   set +e
16426   as_fn_set_status $1
16427   exit $1
16428 } # as_fn_exit
16429
16430 # as_fn_unset VAR
16431 # ---------------
16432 # Portably unset VAR.
16433 as_fn_unset ()
16434 {
16435   { eval $1=; unset $1;}
16436 }
16437 as_unset=as_fn_unset
16438
16439 # as_fn_append VAR VALUE
16440 # ----------------------
16441 # Append the text in VALUE to the end of the definition contained in VAR. Take
16442 # advantage of any shell optimizations that allow amortized linear growth over
16443 # repeated appends, instead of the typical quadratic growth present in naive
16444 # implementations.
16445 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16446 then :
16447   eval 'as_fn_append ()
16448   {
16449     eval $1+=\$2
16450   }'
16451 else $as_nop
16452   as_fn_append ()
16453   {
16454     eval $1=\$$1\$2
16455   }
16456 fi # as_fn_append
16457
16458 # as_fn_arith ARG...
16459 # ------------------
16460 # Perform arithmetic evaluation on the ARGs, and store the result in the
16461 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16462 # must be portable across $(()) and expr.
16463 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16464 then :
16465   eval 'as_fn_arith ()
16466   {
16467     as_val=$(( $* ))
16468   }'
16469 else $as_nop
16470   as_fn_arith ()
16471   {
16472     as_val=`expr "$@" || test $? -eq 1`
16473   }
16474 fi # as_fn_arith
16475
16476
16477 if expr a : '\(a\)' >/dev/null 2>&1 &&
16478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16479   as_expr=expr
16480 else
16481   as_expr=false
16482 fi
16483
16484 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16485   as_basename=basename
16486 else
16487   as_basename=false
16488 fi
16489
16490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16491   as_dirname=dirname
16492 else
16493   as_dirname=false
16494 fi
16495
16496 as_me=`$as_basename -- "$0" ||
16497 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16498          X"$0" : 'X\(//\)$' \| \
16499          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16500 printf "%s\n" X/"$0" |
16501     sed '/^.*\/\([^/][^/]*\)\/*$/{
16502             s//\1/
16503             q
16504           }
16505           /^X\/\(\/\/\)$/{
16506             s//\1/
16507             q
16508           }
16509           /^X\/\(\/\).*/{
16510             s//\1/
16511             q
16512           }
16513           s/.*/./; q'`
16514
16515 # Avoid depending upon Character Ranges.
16516 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16517 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16518 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16519 as_cr_digits='0123456789'
16520 as_cr_alnum=$as_cr_Letters$as_cr_digits
16521
16522
16523 # Determine whether it's possible to make 'echo' print without a newline.
16524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16525 # for compatibility with existing Makefiles.
16526 ECHO_C= ECHO_N= ECHO_T=
16527 case `echo -n x` in #(((((
16528 -n*)
16529   case `echo 'xy\c'` in
16530   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16531   xy)  ECHO_C='\c';;
16532   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16533        ECHO_T=' ';;
16534   esac;;
16535 *)
16536   ECHO_N='-n';;
16537 esac
16538
16539 # For backward compatibility with old third-party macros, we provide
16540 # the shell variables $as_echo and $as_echo_n.  New code should use
16541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16542 as_echo='printf %s\n'
16543 as_echo_n='printf %s'
16544
16545 rm -f conf$$ conf$$.exe conf$$.file
16546 if test -d conf$$.dir; then
16547   rm -f conf$$.dir/conf$$.file
16548 else
16549   rm -f conf$$.dir
16550   mkdir conf$$.dir 2>/dev/null
16551 fi
16552 if (echo >conf$$.file) 2>/dev/null; then
16553   if ln -s conf$$.file conf$$ 2>/dev/null; then
16554     as_ln_s='ln -s'
16555     # ... but there are two gotchas:
16556     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16557     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16558     # In both cases, we have to default to `cp -pR'.
16559     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16560       as_ln_s='cp -pR'
16561   elif ln conf$$.file conf$$ 2>/dev/null; then
16562     as_ln_s=ln
16563   else
16564     as_ln_s='cp -pR'
16565   fi
16566 else
16567   as_ln_s='cp -pR'
16568 fi
16569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16570 rmdir conf$$.dir 2>/dev/null
16571
16572
16573 # as_fn_mkdir_p
16574 # -------------
16575 # Create "$as_dir" as a directory, including parents if necessary.
16576 as_fn_mkdir_p ()
16577 {
16578
16579   case $as_dir in #(
16580   -*) as_dir=./$as_dir;;
16581   esac
16582   test -d "$as_dir" || eval $as_mkdir_p || {
16583     as_dirs=
16584     while :; do
16585       case $as_dir in #(
16586       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16587       *) as_qdir=$as_dir;;
16588       esac
16589       as_dirs="'$as_qdir' $as_dirs"
16590       as_dir=`$as_dirname -- "$as_dir" ||
16591 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16592          X"$as_dir" : 'X\(//\)[^/]' \| \
16593          X"$as_dir" : 'X\(//\)$' \| \
16594          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16595 printf "%s\n" X"$as_dir" |
16596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16597             s//\1/
16598             q
16599           }
16600           /^X\(\/\/\)[^/].*/{
16601             s//\1/
16602             q
16603           }
16604           /^X\(\/\/\)$/{
16605             s//\1/
16606             q
16607           }
16608           /^X\(\/\).*/{
16609             s//\1/
16610             q
16611           }
16612           s/.*/./; q'`
16613       test -d "$as_dir" && break
16614     done
16615     test -z "$as_dirs" || eval "mkdir $as_dirs"
16616   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16617
16618
16619 } # as_fn_mkdir_p
16620 if mkdir -p . 2>/dev/null; then
16621   as_mkdir_p='mkdir -p "$as_dir"'
16622 else
16623   test -d ./-p && rmdir ./-p
16624   as_mkdir_p=false
16625 fi
16626
16627
16628 # as_fn_executable_p FILE
16629 # -----------------------
16630 # Test if FILE is an executable regular file.
16631 as_fn_executable_p ()
16632 {
16633   test -f "$1" && test -x "$1"
16634 } # as_fn_executable_p
16635 as_test_x='test -x'
16636 as_executable_p=as_fn_executable_p
16637
16638 # Sed expression to map a string onto a valid CPP name.
16639 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16640
16641 # Sed expression to map a string onto a valid variable name.
16642 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16643
16644
16645 exec 6>&1
16646 ## ----------------------------------- ##
16647 ## Main body of $CONFIG_STATUS script. ##
16648 ## ----------------------------------- ##
16649 _ASEOF
16650 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16651
16652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653 # Save the log message, to keep $0 and so on meaningful, and to
16654 # report actual input values of CONFIG_FILES etc. instead of their
16655 # values after options handling.
16656 ac_log="
16657 This file was extended by $as_me, which was
16658 generated by GNU Autoconf 2.71.  Invocation command line was
16659
16660   CONFIG_FILES    = $CONFIG_FILES
16661   CONFIG_HEADERS  = $CONFIG_HEADERS
16662   CONFIG_LINKS    = $CONFIG_LINKS
16663   CONFIG_COMMANDS = $CONFIG_COMMANDS
16664   $ $0 $@
16665
16666 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16667 "
16668
16669 _ACEOF
16670
16671 case $ac_config_files in *"
16672 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16673 esac
16674
16675 case $ac_config_headers in *"
16676 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16677 esac
16678
16679
16680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16681 # Files that config.status was made for.
16682 config_files="$ac_config_files"
16683 config_headers="$ac_config_headers"
16684 config_commands="$ac_config_commands"
16685
16686 _ACEOF
16687
16688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16689 ac_cs_usage="\
16690 \`$as_me' instantiates files and other configuration actions
16691 from templates according to the current configuration.  Unless the files
16692 and actions are specified as TAGs, all are instantiated by default.
16693
16694 Usage: $0 [OPTION]... [TAG]...
16695
16696   -h, --help       print this help, then exit
16697   -V, --version    print version number and configuration settings, then exit
16698       --config     print configuration, then exit
16699   -q, --quiet, --silent
16700                    do not print progress messages
16701   -d, --debug      don't remove temporary files
16702       --recheck    update $as_me by reconfiguring in the same conditions
16703       --file=FILE[:TEMPLATE]
16704                    instantiate the configuration file FILE
16705       --header=FILE[:TEMPLATE]
16706                    instantiate the configuration header FILE
16707
16708 Configuration files:
16709 $config_files
16710
16711 Configuration headers:
16712 $config_headers
16713
16714 Configuration commands:
16715 $config_commands
16716
16717 Report bugs to the package provider."
16718
16719 _ACEOF
16720 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16721 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16723 ac_cs_config='$ac_cs_config_escaped'
16724 ac_cs_version="\\
16725 config.status
16726 configured by $0, generated by GNU Autoconf 2.71,
16727   with options \\"\$ac_cs_config\\"
16728
16729 Copyright (C) 2021 Free Software Foundation, Inc.
16730 This config.status script is free software; the Free Software Foundation
16731 gives unlimited permission to copy, distribute and modify it."
16732
16733 ac_pwd='$ac_pwd'
16734 srcdir='$srcdir'
16735 INSTALL='$INSTALL'
16736 MKDIR_P='$MKDIR_P'
16737 AWK='$AWK'
16738 test -n "\$AWK" || AWK=awk
16739 _ACEOF
16740
16741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16742 # The default lists apply if the user does not specify any file.
16743 ac_need_defaults=:
16744 while test $# != 0
16745 do
16746   case $1 in
16747   --*=?*)
16748     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16749     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16750     ac_shift=:
16751     ;;
16752   --*=)
16753     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16754     ac_optarg=
16755     ac_shift=:
16756     ;;
16757   *)
16758     ac_option=$1
16759     ac_optarg=$2
16760     ac_shift=shift
16761     ;;
16762   esac
16763
16764   case $ac_option in
16765   # Handling of the options.
16766   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16767     ac_cs_recheck=: ;;
16768   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16769     printf "%s\n" "$ac_cs_version"; exit ;;
16770   --config | --confi | --conf | --con | --co | --c )
16771     printf "%s\n" "$ac_cs_config"; exit ;;
16772   --debug | --debu | --deb | --de | --d | -d )
16773     debug=: ;;
16774   --file | --fil | --fi | --f )
16775     $ac_shift
16776     case $ac_optarg in
16777     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16778     '') as_fn_error $? "missing file argument" ;;
16779     esac
16780     as_fn_append CONFIG_FILES " '$ac_optarg'"
16781     ac_need_defaults=false;;
16782   --header | --heade | --head | --hea )
16783     $ac_shift
16784     case $ac_optarg in
16785     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16786     esac
16787     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16788     ac_need_defaults=false;;
16789   --he | --h)
16790     # Conflict between --help and --header
16791     as_fn_error $? "ambiguous option: \`$1'
16792 Try \`$0 --help' for more information.";;
16793   --help | --hel | -h )
16794     printf "%s\n" "$ac_cs_usage"; exit ;;
16795   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16796   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16797     ac_cs_silent=: ;;
16798
16799   # This is an error.
16800   -*) as_fn_error $? "unrecognized option: \`$1'
16801 Try \`$0 --help' for more information." ;;
16802
16803   *) as_fn_append ac_config_targets " $1"
16804      ac_need_defaults=false ;;
16805
16806   esac
16807   shift
16808 done
16809
16810 ac_configure_extra_args=
16811
16812 if $ac_cs_silent; then
16813   exec 6>/dev/null
16814   ac_configure_extra_args="$ac_configure_extra_args --silent"
16815 fi
16816
16817 _ACEOF
16818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16819 if \$ac_cs_recheck; then
16820   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16821   shift
16822   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16823   CONFIG_SHELL='$SHELL'
16824   export CONFIG_SHELL
16825   exec "\$@"
16826 fi
16827
16828 _ACEOF
16829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16830 exec 5>>config.log
16831 {
16832   echo
16833   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16834 ## Running $as_me. ##
16835 _ASBOX
16836   printf "%s\n" "$ac_log"
16837 } >&5
16838
16839 _ACEOF
16840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16841 #
16842 # INIT-COMMANDS
16843 #
16844 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16845     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16846     OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16847     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16848     LINGUAS="${LINGUAS-%UNSET%}"
16849
16850
16851 _ACEOF
16852
16853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16854
16855 # Handling of arguments.
16856 for ac_config_target in $ac_config_targets
16857 do
16858   case $ac_config_target in
16859     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16860     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16861     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16862
16863   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16864   esac
16865 done
16866
16867
16868 # If the user did not use the arguments to specify the items to instantiate,
16869 # then the envvar interface is used.  Set only those that are not.
16870 # We use the long form for the default assignment because of an extremely
16871 # bizarre bug on SunOS 4.1.3.
16872 if $ac_need_defaults; then
16873   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16874   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16875   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16876 fi
16877
16878 # Have a temporary directory for convenience.  Make it in the build tree
16879 # simply because there is no reason against having it here, and in addition,
16880 # creating and moving files from /tmp can sometimes cause problems.
16881 # Hook for its removal unless debugging.
16882 # Note that there is a small window in which the directory will not be cleaned:
16883 # after its creation but before its name has been assigned to `$tmp'.
16884 $debug ||
16885 {
16886   tmp= ac_tmp=
16887   trap 'exit_status=$?
16888   : "${ac_tmp:=$tmp}"
16889   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16890 ' 0
16891   trap 'as_fn_exit 1' 1 2 13 15
16892 }
16893 # Create a (secure) tmp directory for tmp files.
16894
16895 {
16896   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16897   test -d "$tmp"
16898 }  ||
16899 {
16900   tmp=./conf$$-$RANDOM
16901   (umask 077 && mkdir "$tmp")
16902 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16903 ac_tmp=$tmp
16904
16905 # Set up the scripts for CONFIG_FILES section.
16906 # No need to generate them if there are no CONFIG_FILES.
16907 # This happens for instance with `./config.status config.h'.
16908 if test -n "$CONFIG_FILES"; then
16909
16910 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16911   ac_cs_awk_getline=:
16912   ac_cs_awk_pipe_init=
16913   ac_cs_awk_read_file='
16914       while ((getline aline < (F[key])) > 0)
16915         print(aline)
16916       close(F[key])'
16917   ac_cs_awk_pipe_fini=
16918 else
16919   ac_cs_awk_getline=false
16920   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16921   ac_cs_awk_read_file='
16922       print "|#_!!_#|"
16923       print "cat " F[key] " &&"
16924       '$ac_cs_awk_pipe_init
16925   # The final `:' finishes the AND list.
16926   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16927 fi
16928 ac_cr=`echo X | tr X '\015'`
16929 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16930 # But we know of no other shell where ac_cr would be empty at this
16931 # point, so we can use a bashism as a fallback.
16932 if test "x$ac_cr" = x; then
16933   eval ac_cr=\$\'\\r\'
16934 fi
16935 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16936 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16937   ac_cs_awk_cr='\\r'
16938 else
16939   ac_cs_awk_cr=$ac_cr
16940 fi
16941
16942 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16943 _ACEOF
16944
16945 # Create commands to substitute file output variables.
16946 {
16947   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16948   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16949   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16950   echo "_ACAWK" &&
16951   echo "_ACEOF"
16952 } >conf$$files.sh &&
16953 . ./conf$$files.sh ||
16954   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16955 rm -f conf$$files.sh
16956
16957 {
16958   echo "cat >conf$$subs.awk <<_ACEOF" &&
16959   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16960   echo "_ACEOF"
16961 } >conf$$subs.sh ||
16962   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16963 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16964 ac_delim='%!_!# '
16965 for ac_last_try in false false false false false :; do
16966   . ./conf$$subs.sh ||
16967     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16968
16969   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16970   if test $ac_delim_n = $ac_delim_num; then
16971     break
16972   elif $ac_last_try; then
16973     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16974   else
16975     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16976   fi
16977 done
16978 rm -f conf$$subs.sh
16979
16980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16981 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16982 _ACEOF
16983 sed -n '
16984 h
16985 s/^/S["/; s/!.*/"]=/
16986 p
16987 g
16988 s/^[^!]*!//
16989 :repl
16990 t repl
16991 s/'"$ac_delim"'$//
16992 t delim
16993 :nl
16994 h
16995 s/\(.\{148\}\)..*/\1/
16996 t more1
16997 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16998 p
16999 n
17000 b repl
17001 :more1
17002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17003 p
17004 g
17005 s/.\{148\}//
17006 t nl
17007 :delim
17008 h
17009 s/\(.\{148\}\)..*/\1/
17010 t more2
17011 s/["\\]/\\&/g; s/^/"/; s/$/"/
17012 p
17013 b
17014 :more2
17015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17016 p
17017 g
17018 s/.\{148\}//
17019 t delim
17020 ' <conf$$subs.awk | sed '
17021 /^[^""]/{
17022   N
17023   s/\n//
17024 }
17025 ' >>$CONFIG_STATUS || ac_write_fail=1
17026 rm -f conf$$subs.awk
17027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028 _ACAWK
17029 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17030   for (key in S) S_is_set[key] = 1
17031   FS = "\a"
17032   \$ac_cs_awk_pipe_init
17033 }
17034 {
17035   line = $ 0
17036   nfields = split(line, field, "@")
17037   substed = 0
17038   len = length(field[1])
17039   for (i = 2; i < nfields; i++) {
17040     key = field[i]
17041     keylen = length(key)
17042     if (S_is_set[key]) {
17043       value = S[key]
17044       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17045       len += length(value) + length(field[++i])
17046       substed = 1
17047     } else
17048       len += 1 + keylen
17049   }
17050   if (nfields == 3 && !substed) {
17051     key = field[2]
17052     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
17053       \$ac_cs_awk_read_file
17054       next
17055     }
17056   }
17057   print line
17058 }
17059 \$ac_cs_awk_pipe_fini
17060 _ACAWK
17061 _ACEOF
17062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17063 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17064   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17065 else
17066   cat
17067 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17068   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17069 _ACEOF
17070
17071 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17072 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17073 # trailing colons and then remove the whole line if VPATH becomes empty
17074 # (actually we leave an empty line to preserve line numbers).
17075 if test "x$srcdir" = x.; then
17076   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17077 h
17078 s///
17079 s/^/:/
17080 s/[      ]*$/:/
17081 s/:\$(srcdir):/:/g
17082 s/:\${srcdir}:/:/g
17083 s/:@srcdir@:/:/g
17084 s/^:*//
17085 s/:*$//
17086 x
17087 s/\(=[   ]*\).*/\1/
17088 G
17089 s/\n//
17090 s/^[^=]*=[       ]*$//
17091 }'
17092 fi
17093
17094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17095 fi # test -n "$CONFIG_FILES"
17096
17097 # Set up the scripts for CONFIG_HEADERS section.
17098 # No need to generate them if there are no CONFIG_HEADERS.
17099 # This happens for instance with `./config.status Makefile'.
17100 if test -n "$CONFIG_HEADERS"; then
17101 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17102 BEGIN {
17103 _ACEOF
17104
17105 # Transform confdefs.h into an awk script `defines.awk', embedded as
17106 # here-document in config.status, that substitutes the proper values into
17107 # config.h.in to produce config.h.
17108
17109 # Create a delimiter string that does not exist in confdefs.h, to ease
17110 # handling of long lines.
17111 ac_delim='%!_!# '
17112 for ac_last_try in false false :; do
17113   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17114   if test -z "$ac_tt"; then
17115     break
17116   elif $ac_last_try; then
17117     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17118   else
17119     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17120   fi
17121 done
17122
17123 # For the awk script, D is an array of macro values keyed by name,
17124 # likewise P contains macro parameters if any.  Preserve backslash
17125 # newline sequences.
17126
17127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17128 sed -n '
17129 s/.\{148\}/&'"$ac_delim"'/g
17130 t rset
17131 :rset
17132 s/^[     ]*#[    ]*define[       ][      ]*/ /
17133 t def
17134 d
17135 :def
17136 s/\\$//
17137 t bsnl
17138 s/["\\]/\\&/g
17139 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17140 D["\1"]=" \3"/p
17141 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17142 d
17143 :bsnl
17144 s/["\\]/\\&/g
17145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17146 D["\1"]=" \3\\\\\\n"\\/p
17147 t cont
17148 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17149 t cont
17150 d
17151 :cont
17152 n
17153 s/.\{148\}/&'"$ac_delim"'/g
17154 t clear
17155 :clear
17156 s/\\$//
17157 t bsnlc
17158 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17159 d
17160 :bsnlc
17161 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17162 b cont
17163 ' <confdefs.h | sed '
17164 s/'"$ac_delim"'/"\\\
17165 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17166
17167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17168   for (key in D) D_is_set[key] = 1
17169   FS = "\a"
17170 }
17171 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17172   line = \$ 0
17173   split(line, arg, " ")
17174   if (arg[1] == "#") {
17175     defundef = arg[2]
17176     mac1 = arg[3]
17177   } else {
17178     defundef = substr(arg[1], 2)
17179     mac1 = arg[2]
17180   }
17181   split(mac1, mac2, "(") #)
17182   macro = mac2[1]
17183   prefix = substr(line, 1, index(line, defundef) - 1)
17184   if (D_is_set[macro]) {
17185     # Preserve the white space surrounding the "#".
17186     print prefix "define", macro P[macro] D[macro]
17187     next
17188   } else {
17189     # Replace #undef with comments.  This is necessary, for example,
17190     # in the case of _POSIX_SOURCE, which is predefined and required
17191     # on some systems where configure will not decide to define it.
17192     if (defundef == "undef") {
17193       print "/*", prefix defundef, macro, "*/"
17194       next
17195     }
17196   }
17197 }
17198 { print }
17199 _ACAWK
17200 _ACEOF
17201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17202   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17203 fi # test -n "$CONFIG_HEADERS"
17204
17205
17206 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17207 shift
17208 for ac_tag
17209 do
17210   case $ac_tag in
17211   :[FHLC]) ac_mode=$ac_tag; continue;;
17212   esac
17213   case $ac_mode$ac_tag in
17214   :[FHL]*:*);;
17215   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17216   :[FH]-) ac_tag=-:-;;
17217   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17218   esac
17219   ac_save_IFS=$IFS
17220   IFS=:
17221   set x $ac_tag
17222   IFS=$ac_save_IFS
17223   shift
17224   ac_file=$1
17225   shift
17226
17227   case $ac_mode in
17228   :L) ac_source=$1;;
17229   :[FH])
17230     ac_file_inputs=
17231     for ac_f
17232     do
17233       case $ac_f in
17234       -) ac_f="$ac_tmp/stdin";;
17235       *) # Look for the file first in the build tree, then in the source tree
17236          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17237          # because $ac_f cannot contain `:'.
17238          test -f "$ac_f" ||
17239            case $ac_f in
17240            [\\/$]*) false;;
17241            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17242            esac ||
17243            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17244       esac
17245       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17246       as_fn_append ac_file_inputs " '$ac_f'"
17247     done
17248
17249     # Let's still pretend it is `configure' which instantiates (i.e., don't
17250     # use $as_me), people would be surprised to read:
17251     #    /* config.h.  Generated by config.status.  */
17252     configure_input='Generated from '`
17253           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17254         `' by configure.'
17255     if test x"$ac_file" != x-; then
17256       configure_input="$ac_file.  $configure_input"
17257       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17258 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17259     fi
17260     # Neutralize special characters interpreted by sed in replacement strings.
17261     case $configure_input in #(
17262     *\&* | *\|* | *\\* )
17263        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17264        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17265     *) ac_sed_conf_input=$configure_input;;
17266     esac
17267
17268     case $ac_tag in
17269     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17270       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17271     esac
17272     ;;
17273   esac
17274
17275   ac_dir=`$as_dirname -- "$ac_file" ||
17276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17277          X"$ac_file" : 'X\(//\)[^/]' \| \
17278          X"$ac_file" : 'X\(//\)$' \| \
17279          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17280 printf "%s\n" X"$ac_file" |
17281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17282             s//\1/
17283             q
17284           }
17285           /^X\(\/\/\)[^/].*/{
17286             s//\1/
17287             q
17288           }
17289           /^X\(\/\/\)$/{
17290             s//\1/
17291             q
17292           }
17293           /^X\(\/\).*/{
17294             s//\1/
17295             q
17296           }
17297           s/.*/./; q'`
17298   as_dir="$ac_dir"; as_fn_mkdir_p
17299   ac_builddir=.
17300
17301 case "$ac_dir" in
17302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17303 *)
17304   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17305   # A ".." for each directory in $ac_dir_suffix.
17306   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17307   case $ac_top_builddir_sub in
17308   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17309   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17310   esac ;;
17311 esac
17312 ac_abs_top_builddir=$ac_pwd
17313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17314 # for backward compatibility:
17315 ac_top_builddir=$ac_top_build_prefix
17316
17317 case $srcdir in
17318   .)  # We are building in place.
17319     ac_srcdir=.
17320     ac_top_srcdir=$ac_top_builddir_sub
17321     ac_abs_top_srcdir=$ac_pwd ;;
17322   [\\/]* | ?:[\\/]* )  # Absolute name.
17323     ac_srcdir=$srcdir$ac_dir_suffix;
17324     ac_top_srcdir=$srcdir
17325     ac_abs_top_srcdir=$srcdir ;;
17326   *) # Relative name.
17327     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17328     ac_top_srcdir=$ac_top_build_prefix$srcdir
17329     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17330 esac
17331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17332
17333
17334   case $ac_mode in
17335   :F)
17336   #
17337   # CONFIG_FILE
17338   #
17339
17340   case $INSTALL in
17341   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17342   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17343   esac
17344   ac_MKDIR_P=$MKDIR_P
17345   case $MKDIR_P in
17346   [\\/$]* | ?:[\\/]* ) ;;
17347   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17348   esac
17349 _ACEOF
17350
17351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17352 # If the template does not know about datarootdir, expand it.
17353 # FIXME: This hack should be removed a few years after 2.60.
17354 ac_datarootdir_hack=; ac_datarootdir_seen=
17355 ac_sed_dataroot='
17356 /datarootdir/ {
17357   p
17358   q
17359 }
17360 /@datadir@/p
17361 /@docdir@/p
17362 /@infodir@/p
17363 /@localedir@/p
17364 /@mandir@/p'
17365 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17366 *datarootdir*) ac_datarootdir_seen=yes;;
17367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17369 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17370 _ACEOF
17371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17372   ac_datarootdir_hack='
17373   s&@datadir@&$datadir&g
17374   s&@docdir@&$docdir&g
17375   s&@infodir@&$infodir&g
17376   s&@localedir@&$localedir&g
17377   s&@mandir@&$mandir&g
17378   s&\\\${datarootdir}&$datarootdir&g' ;;
17379 esac
17380 _ACEOF
17381
17382 # Neutralize VPATH when `$srcdir' = `.'.
17383 # Shell code in configure.ac might set extrasub.
17384 # FIXME: do we really want to maintain this feature?
17385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17386 ac_sed_extra="$ac_vpsub
17387 $extrasub
17388 _ACEOF
17389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17390 :t
17391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17392 s|@configure_input@|$ac_sed_conf_input|;t t
17393 s&@top_builddir@&$ac_top_builddir_sub&;t t
17394 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17395 s&@srcdir@&$ac_srcdir&;t t
17396 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17397 s&@top_srcdir@&$ac_top_srcdir&;t t
17398 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17399 s&@builddir@&$ac_builddir&;t t
17400 s&@abs_builddir@&$ac_abs_builddir&;t t
17401 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17402 s&@INSTALL@&$ac_INSTALL&;t t
17403 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17404 $ac_datarootdir_hack
17405 "
17406 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17407 if $ac_cs_awk_getline; then
17408   $AWK -f "$ac_tmp/subs.awk"
17409 else
17410   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17411 fi \
17412   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17413
17414 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17415   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17416   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17417       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17418   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17419 which seems to be undefined.  Please make sure it is defined" >&5
17420 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17421 which seems to be undefined.  Please make sure it is defined" >&2;}
17422
17423   rm -f "$ac_tmp/stdin"
17424   case $ac_file in
17425   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17426   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17427   esac \
17428   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17429  ;;
17430   :H)
17431   #
17432   # CONFIG_HEADER
17433   #
17434   if test x"$ac_file" != x-; then
17435     {
17436       printf "%s\n" "/* $configure_input  */" >&1 \
17437       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17438     } >"$ac_tmp/config.h" \
17439       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17440     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17441       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17442 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17443     else
17444       rm -f "$ac_file"
17445       mv "$ac_tmp/config.h" "$ac_file" \
17446         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17447     fi
17448   else
17449     printf "%s\n" "/* $configure_input  */" >&1 \
17450       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17451       || as_fn_error $? "could not create -" "$LINENO" 5
17452   fi
17453  ;;
17454
17455   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17456 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17457  ;;
17458   esac
17459
17460
17461   case $ac_file$ac_mode in
17462     "po-directories":C)
17463     for ac_file in $CONFIG_FILES; do
17464       # Support "outfile[:infile[:infile...]]"
17465       case "$ac_file" in
17466         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17467       esac
17468       # PO directories have a Makefile.in generated from Makefile.in.in.
17469       case "$ac_file" in */Makefile.in)
17470         # Adjust a relative srcdir.
17471         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17472         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17473         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17474         # In autoconf-2.13 it is called $ac_given_srcdir.
17475         # In autoconf-2.50 it is called $srcdir.
17476         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17477         case "$ac_given_srcdir" in
17478           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17479           /*) top_srcdir="$ac_given_srcdir" ;;
17480           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17481         esac
17482         # Treat a directory as a PO directory if and only if it has a
17483         # POTFILES.in file. This allows packages to have multiple PO
17484         # directories under different names or in different locations.
17485         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17486           rm -f "$ac_dir/POTFILES"
17487           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17488           gt_tab=`printf '\t'`
17489           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"
17490           POMAKEFILEDEPS="POTFILES.in"
17491           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17492           # on $ac_dir but don't depend on user-specified configuration
17493           # parameters.
17494           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17495             # The LINGUAS file contains the set of available languages.
17496             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17497               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17498             fi
17499             ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17500             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17501           else
17502             # The set of available languages was given in configure.in.
17503             ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17504           fi
17505           # Compute POFILES
17506           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17507           # Compute UPDATEPOFILES
17508           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17509           # Compute DUMMYPOFILES
17510           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17511           # Compute GMOFILES
17512           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17513           case "$ac_given_srcdir" in
17514             .) srcdirpre= ;;
17515             *) srcdirpre='$(srcdir)/' ;;
17516           esac
17517           POFILES=
17518           UPDATEPOFILES=
17519           DUMMYPOFILES=
17520           GMOFILES=
17521           for lang in $ALL_LINGUAS; do
17522             POFILES="$POFILES $srcdirpre$lang.po"
17523             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17524             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17525             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17526           done
17527           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17528           # environment variable.
17529           INST_LINGUAS=
17530           if test -n "$ALL_LINGUAS"; then
17531             for presentlang in $ALL_LINGUAS; do
17532               useit=no
17533               if test "%UNSET%" != "$LINGUAS"; then
17534                 desiredlanguages="$LINGUAS"
17535               else
17536                 desiredlanguages="$ALL_LINGUAS"
17537               fi
17538               for desiredlang in $desiredlanguages; do
17539                 # Use the presentlang catalog if desiredlang is
17540                 #   a. equal to presentlang, or
17541                 #   b. a variant of presentlang (because in this case,
17542                 #      presentlang can be used as a fallback for messages
17543                 #      which are not translated in the desiredlang catalog).
17544                 case "$desiredlang" in
17545                   "$presentlang"*) useit=yes;;
17546                 esac
17547               done
17548               if test $useit = yes; then
17549                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17550               fi
17551             done
17552           fi
17553           CATALOGS=
17554           if test -n "$INST_LINGUAS"; then
17555             for lang in $INST_LINGUAS; do
17556               CATALOGS="$CATALOGS $lang.gmo"
17557             done
17558           fi
17559           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17560           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"
17561           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17562             if test -f "$f"; then
17563               case "$f" in
17564                 *.orig | *.bak | *~) ;;
17565                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17566               esac
17567             fi
17568           done
17569         fi
17570         ;;
17571       esac
17572     done ;;
17573
17574   esac
17575 done # for ac_tag
17576
17577
17578 as_fn_exit 0
17579 _ACEOF
17580 ac_clean_files=$ac_clean_files_save
17581
17582 test $ac_write_fail = 0 ||
17583   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17584
17585
17586 # configure is writing to config.log, and then calls config.status.
17587 # config.status does its own redirection, appending to config.log.
17588 # Unfortunately, on DOS this fails, as config.log is still kept open
17589 # by configure, so config.status won't be able to write to it; its
17590 # output is simply discarded.  So we exec the FD to /dev/null,
17591 # effectively closing config.log, so it can be properly (re)opened and
17592 # appended to by config.status.  When coming back to configure, we
17593 # need to make the FD available again.
17594 if test "$no_create" != yes; then
17595   ac_cs_success=:
17596   ac_config_status_args=
17597   test "$silent" = yes &&
17598     ac_config_status_args="$ac_config_status_args --quiet"
17599   exec 5>/dev/null
17600   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17601   exec 5>>config.log
17602   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17603   # would make configure fail if this is the last instruction.
17604   $ac_cs_success || as_fn_exit 1
17605 fi
17606 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17608 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17609 fi
17610
17611 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
17612