Whamcloud - gitweb
Fix 32-bit build and test failures
[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 CLOCK_GETTIME_LIB
707 MAGIC_LIB
708 SOCKET_LIB
709 SIZEOF_TIME_T
710 SIZEOF_OFF_T
711 SIZEOF_LONG_LONG
712 SIZEOF_LONG
713 SIZEOF_INT
714 SIZEOF_SHORT
715 DD
716 BUILD_CC
717 MAKEINFO
718 STRIP
719 RANLIB
720 AR
721 LDCONFIG
722 PERL
723 AWK
724 CHMOD
725 RM
726 CP
727 MV
728 LN_S
729 mkdir_p
730 LN
731 ifNotGNUmake
732 ifGNUmake
733 BINARY_TYPE
734 POSUB
735 LTLIBINTL
736 LIBINTL
737 INTLLIBS
738 LTLIBICONV
739 LIBICONV
740 INTL_MACOSX_LIBS
741 XGETTEXT_EXTRA_OPTIONS
742 MSGMERGE_FOR_MSGFMT_OPTION
743 MSGMERGE
744 XGETTEXT_015
745 XGETTEXT
746 GMSGFMT_015
747 GMSGFMT
748 MSGFMT
749 GETTEXT_MACRO_VERSION
750 USE_NLS
751 MKDIR_P
752 INSTALL_DATA
753 INSTALL_SCRIPT
754 INSTALL_PROGRAM
755 SET_MAKE
756 VERSION
757 PACKAGE
758 GETTEXT_PACKAGE
759 TDB_MAN_COMMENT
760 TDB_CMT
761 UUIDD_CMT
762 PTHREAD_CFLAGS
763 PTHREAD_LIBS
764 PTHREAD_CXX
765 PTHREAD_CC
766 ax_pthread_config
767 EGREP
768 GREP
769 SED
770 E2INITRD_MAN
771 E2INITRD_PROG
772 FSCK_MAN
773 FSCK_PROG
774 DEFRAG_CMT
775 RESIZER_CMT
776 IMAGER_CMT
777 DEBUGFS_CMT
778 SUBSET_CMT
779 ALL_CMT
780 BLKID_CMT
781 DEPPROFILED_LIBBLKID
782 PROFILED_LIBBLKID
783 DEPSTATIC_LIBBLKID
784 STATIC_LIBBLKID
785 DEPLIBBLKID
786 LIBBLKID
787 UUID_CMT
788 DEPPROFILED_LIBUUID
789 PROFILED_LIBUUID
790 DEPSTATIC_LIBUUID
791 STATIC_LIBUUID
792 DEPLIBUUID
793 LIBUUID
794 PKG_CONFIG_LIBDIR
795 PKG_CONFIG_PATH
796 PKG_CONFIG
797 DEV_FEATURES_CMT
798 TEST_IO_CMT
799 PRIVATE_LIBS_CMT
800 LDFLAG_DYNAMIC
801 PROFILED_LIB_EXT
802 STATIC_LIB_EXT
803 LIB_EXT
804 PROFILE_CMT
805 BSDLIB_CMT
806 ELF_CMT
807 Q
808 ES
809 E
810 LINK_BUILD_FLAGS
811 SYMLINK_RELATIVE
812 LINK_INSTALL_FLAGS
813 MAINTAINER_CMT
814 CPP
815 RDYNAMIC
816 DLOPEN_LIB
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 E2FSPROGS_DATE
826 E2FSPROGS_PKGVER
827 E2FSPROGS_PKGREL
828 E2FSPROGS_VERSION
829 E2FSPROGS_DAY
830 E2FSPROGS_MONTH
831 E2FSPROGS_YEAR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 runstatedir
859 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL'
878 ac_subst_files='MCONFIG
879 MAKEFILE_ELF
880 MAKEFILE_BSDLIB
881 MAKEFILE_PROFILE
882 MAKEFILE_LIBRARY
883 ASM_TYPES_HEADER
884 PUBLIC_CONFIG_HEADER'
885 ac_user_opts='
886 enable_option_checking
887 with_diet_libc
888 with_cc
889 with_ccopts
890 with_ldopts
891 with_root_prefix
892 enable_maintainer_mode
893 enable_symlink_install
894 enable_relative_symlinks
895 enable_symlink_relative_symlinks
896 enable_symlink_build
897 enable_verbose_makecmds
898 enable_elf_shlibs
899 enable_bsd_shlibs
900 enable_profile
901 enable_gcov
902 enable_hardening
903 enable_jbd_debug
904 enable_blkid_debug
905 enable_testio_debug
906 enable_developer_features
907 enable_libuuid
908 enable_libblkid
909 enable_subset
910 enable_backtrace
911 enable_debugfs
912 enable_imager
913 enable_resizer
914 enable_defrag
915 enable_fsck
916 enable_e2initrd_helper
917 enable_tls
918 with_pthread
919 enable_uuidd
920 enable_mmp
921 enable_tdb
922 enable_bmap_stats
923 enable_bmap_stats_ops
924 enable_nls
925 with_gnu_ld
926 enable_rpath
927 with_libiconv_prefix
928 with_libintl_prefix
929 enable_largefile
930 enable_fuse2fs
931 enable_lto
932 enable_ubsan
933 enable_addrsan
934 enable_threadsan
935 enable_fuzzing
936 with_multiarch
937 with_udev_rules_dir
938 with_crond_dir
939 with_systemd_unit_dir
940 '
941       ac_precious_vars='build_alias
942 host_alias
943 target_alias
944 CC
945 CFLAGS
946 LDFLAGS
947 LIBS
948 CPPFLAGS
949 CPP
950 PKG_CONFIG
951 PKG_CONFIG_PATH
952 PKG_CONFIG_LIBDIR
953 CXX
954 CXXFLAGS
955 CCC
956 udev_CFLAGS
957 udev_LIBS
958 systemd_CFLAGS
959 systemd_LIBS'
960
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
983
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 runstatedir='${localstatedir}/run'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015   # If the previous option needs an argument, assign it.
1016   if test -n "$ac_prev"; then
1017     eval $ac_prev=\$ac_option
1018     ac_prev=
1019     continue
1020   fi
1021
1022   case $ac_option in
1023   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024   *=)   ac_optarg= ;;
1025   *)    ac_optarg=yes ;;
1026   esac
1027
1028   case $ac_dashdash$ac_option in
1029   --)
1030     ac_dashdash=yes ;;
1031
1032   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033     ac_prev=bindir ;;
1034   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035     bindir=$ac_optarg ;;
1036
1037   -build | --build | --buil | --bui | --bu)
1038     ac_prev=build_alias ;;
1039   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040     build_alias=$ac_optarg ;;
1041
1042   -cache-file | --cache-file | --cache-fil | --cache-fi \
1043   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044     ac_prev=cache_file ;;
1045   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047     cache_file=$ac_optarg ;;
1048
1049   --config-cache | -C)
1050     cache_file=config.cache ;;
1051
1052   -datadir | --datadir | --datadi | --datad)
1053     ac_prev=datadir ;;
1054   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055     datadir=$ac_optarg ;;
1056
1057   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058   | --dataroo | --dataro | --datar)
1059     ac_prev=datarootdir ;;
1060   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062     datarootdir=$ac_optarg ;;
1063
1064   -disable-* | --disable-*)
1065     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1069     ac_useropt_orig=$ac_useropt
1070     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1071     case $ac_user_opts in
1072       *"
1073 "enable_$ac_useropt"
1074 "*) ;;
1075       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076          ac_unrecognized_sep=', ';;
1077     esac
1078     eval enable_$ac_useropt=no ;;
1079
1080   -docdir | --docdir | --docdi | --doc | --do)
1081     ac_prev=docdir ;;
1082   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083     docdir=$ac_optarg ;;
1084
1085   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086     ac_prev=dvidir ;;
1087   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088     dvidir=$ac_optarg ;;
1089
1090   -enable-* | --enable-*)
1091     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1095     ac_useropt_orig=$ac_useropt
1096     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1097     case $ac_user_opts in
1098       *"
1099 "enable_$ac_useropt"
1100 "*) ;;
1101       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1102          ac_unrecognized_sep=', ';;
1103     esac
1104     eval enable_$ac_useropt=\$ac_optarg ;;
1105
1106   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108   | --exec | --exe | --ex)
1109     ac_prev=exec_prefix ;;
1110   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112   | --exec=* | --exe=* | --ex=*)
1113     exec_prefix=$ac_optarg ;;
1114
1115   -gas | --gas | --ga | --g)
1116     # Obsolete; use --with-gas.
1117     with_gas=yes ;;
1118
1119   -help | --help | --hel | --he | -h)
1120     ac_init_help=long ;;
1121   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122     ac_init_help=recursive ;;
1123   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124     ac_init_help=short ;;
1125
1126   -host | --host | --hos | --ho)
1127     ac_prev=host_alias ;;
1128   -host=* | --host=* | --hos=* | --ho=*)
1129     host_alias=$ac_optarg ;;
1130
1131   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132     ac_prev=htmldir ;;
1133   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134   | --ht=*)
1135     htmldir=$ac_optarg ;;
1136
1137   -includedir | --includedir | --includedi | --included | --include \
1138   | --includ | --inclu | --incl | --inc)
1139     ac_prev=includedir ;;
1140   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141   | --includ=* | --inclu=* | --incl=* | --inc=*)
1142     includedir=$ac_optarg ;;
1143
1144   -infodir | --infodir | --infodi | --infod | --info | --inf)
1145     ac_prev=infodir ;;
1146   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147     infodir=$ac_optarg ;;
1148
1149   -libdir | --libdir | --libdi | --libd)
1150     ac_prev=libdir ;;
1151   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152     libdir=$ac_optarg ;;
1153
1154   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155   | --libexe | --libex | --libe)
1156     ac_prev=libexecdir ;;
1157   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158   | --libexe=* | --libex=* | --libe=*)
1159     libexecdir=$ac_optarg ;;
1160
1161   -localedir | --localedir | --localedi | --localed | --locale)
1162     ac_prev=localedir ;;
1163   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164     localedir=$ac_optarg ;;
1165
1166   -localstatedir | --localstatedir | --localstatedi | --localstated \
1167   | --localstate | --localstat | --localsta | --localst | --locals)
1168     ac_prev=localstatedir ;;
1169   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171     localstatedir=$ac_optarg ;;
1172
1173   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174     ac_prev=mandir ;;
1175   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176     mandir=$ac_optarg ;;
1177
1178   -nfp | --nfp | --nf)
1179     # Obsolete; use --without-fp.
1180     with_fp=no ;;
1181
1182   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183   | --no-cr | --no-c | -n)
1184     no_create=yes ;;
1185
1186   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188     no_recursion=yes ;;
1189
1190   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192   | --oldin | --oldi | --old | --ol | --o)
1193     ac_prev=oldincludedir ;;
1194   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197     oldincludedir=$ac_optarg ;;
1198
1199   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200     ac_prev=prefix ;;
1201   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202     prefix=$ac_optarg ;;
1203
1204   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205   | --program-pre | --program-pr | --program-p)
1206     ac_prev=program_prefix ;;
1207   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209     program_prefix=$ac_optarg ;;
1210
1211   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212   | --program-suf | --program-su | --program-s)
1213     ac_prev=program_suffix ;;
1214   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216     program_suffix=$ac_optarg ;;
1217
1218   -program-transform-name | --program-transform-name \
1219   | --program-transform-nam | --program-transform-na \
1220   | --program-transform-n | --program-transform- \
1221   | --program-transform | --program-transfor \
1222   | --program-transfo | --program-transf \
1223   | --program-trans | --program-tran \
1224   | --progr-tra | --program-tr | --program-t)
1225     ac_prev=program_transform_name ;;
1226   -program-transform-name=* | --program-transform-name=* \
1227   | --program-transform-nam=* | --program-transform-na=* \
1228   | --program-transform-n=* | --program-transform-=* \
1229   | --program-transform=* | --program-transfor=* \
1230   | --program-transfo=* | --program-transf=* \
1231   | --program-trans=* | --program-tran=* \
1232   | --progr-tra=* | --program-tr=* | --program-t=*)
1233     program_transform_name=$ac_optarg ;;
1234
1235   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236     ac_prev=pdfdir ;;
1237   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238     pdfdir=$ac_optarg ;;
1239
1240   -psdir | --psdir | --psdi | --psd | --ps)
1241     ac_prev=psdir ;;
1242   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243     psdir=$ac_optarg ;;
1244
1245   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246   | -silent | --silent | --silen | --sile | --sil)
1247     silent=yes ;;
1248
1249   -runstatedir | --runstatedir | --runstatedi | --runstated \
1250   | --runstate | --runstat | --runsta | --runst | --runs \
1251   | --run | --ru | --r)
1252     ac_prev=runstatedir ;;
1253   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1254   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1255   | --run=* | --ru=* | --r=*)
1256     runstatedir=$ac_optarg ;;
1257
1258   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259     ac_prev=sbindir ;;
1260   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261   | --sbi=* | --sb=*)
1262     sbindir=$ac_optarg ;;
1263
1264   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266   | --sharedst | --shareds | --shared | --share | --shar \
1267   | --sha | --sh)
1268     ac_prev=sharedstatedir ;;
1269   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272   | --sha=* | --sh=*)
1273     sharedstatedir=$ac_optarg ;;
1274
1275   -site | --site | --sit)
1276     ac_prev=site ;;
1277   -site=* | --site=* | --sit=*)
1278     site=$ac_optarg ;;
1279
1280   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281     ac_prev=srcdir ;;
1282   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283     srcdir=$ac_optarg ;;
1284
1285   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286   | --syscon | --sysco | --sysc | --sys | --sy)
1287     ac_prev=sysconfdir ;;
1288   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290     sysconfdir=$ac_optarg ;;
1291
1292   -target | --target | --targe | --targ | --tar | --ta | --t)
1293     ac_prev=target_alias ;;
1294   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295     target_alias=$ac_optarg ;;
1296
1297   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298     verbose=yes ;;
1299
1300   -version | --version | --versio | --versi | --vers | -V)
1301     ac_init_version=: ;;
1302
1303   -with-* | --with-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       as_fn_error $? "invalid package name: \`$ac_useropt'"
1308     ac_useropt_orig=$ac_useropt
1309     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1310     case $ac_user_opts in
1311       *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315          ac_unrecognized_sep=', ';;
1316     esac
1317     eval with_$ac_useropt=\$ac_optarg ;;
1318
1319   -without-* | --without-*)
1320     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323       as_fn_error $? "invalid package name: \`$ac_useropt'"
1324     ac_useropt_orig=$ac_useropt
1325     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1326     case $ac_user_opts in
1327       *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331          ac_unrecognized_sep=', ';;
1332     esac
1333     eval with_$ac_useropt=no ;;
1334
1335   --x)
1336     # Obsolete; use --with-x.
1337     with_x=yes ;;
1338
1339   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340   | --x-incl | --x-inc | --x-in | --x-i)
1341     ac_prev=x_includes ;;
1342   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344     x_includes=$ac_optarg ;;
1345
1346   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348     ac_prev=x_libraries ;;
1349   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351     x_libraries=$ac_optarg ;;
1352
1353   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information"
1355     ;;
1356
1357   *=*)
1358     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359     # Reject names that are not valid shell variable names.
1360     case $ac_envvar in #(
1361       '' | [0-9]* | *[!_$as_cr_alnum]* )
1362       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1363     esac
1364     eval $ac_envvar=\$ac_optarg
1365     export $ac_envvar ;;
1366
1367   *)
1368     # FIXME: should be removed in autoconf 3.0.
1369     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1370     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1372     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1373     ;;
1374
1375   esac
1376 done
1377
1378 if test -n "$ac_prev"; then
1379   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380   as_fn_error $? "missing argument to $ac_option"
1381 fi
1382
1383 if test -n "$ac_unrecognized_opts"; then
1384   case $enable_option_checking in
1385     no) ;;
1386     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1387     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388   esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393                 datadir sysconfdir sharedstatedir localstatedir includedir \
1394                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395                 libdir localedir mandir runstatedir
1396 do
1397   eval ac_val=\$$ac_var
1398   # Remove trailing slashes.
1399   case $ac_val in
1400     */ )
1401       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402       eval $ac_var=\$ac_val;;
1403   esac
1404   # Be sure to have absolute directory names.
1405   case $ac_val in
1406     [\\/$]* | ?:[\\/]* )  continue;;
1407     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408   esac
1409   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1411
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1418
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421   if test "x$build_alias" = x; then
1422     cross_compiling=maybe
1423   elif test "x$build_alias" != "x$host_alias"; then
1424     cross_compiling=yes
1425   fi
1426 fi
1427
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431 test "$silent" = yes && exec 6>/dev/null
1432
1433
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437   as_fn_error $? "working directory cannot be determined"
1438 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439   as_fn_error $? "pwd does not report name of working directory"
1440
1441
1442 # Find the source files, if location was not specified.
1443 if test -z "$srcdir"; then
1444   ac_srcdir_defaulted=yes
1445   # Try the directory containing this script, then the parent directory.
1446   ac_confdir=`$as_dirname -- "$as_myself" ||
1447 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1448          X"$as_myself" : 'X\(//\)[^/]' \| \
1449          X"$as_myself" : 'X\(//\)$' \| \
1450          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1451 printf "%s\n" X"$as_myself" |
1452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453             s//\1/
1454             q
1455           }
1456           /^X\(\/\/\)[^/].*/{
1457             s//\1/
1458             q
1459           }
1460           /^X\(\/\/\)$/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\).*/{
1465             s//\1/
1466             q
1467           }
1468           s/.*/./; q'`
1469   srcdir=$ac_confdir
1470   if test ! -r "$srcdir/$ac_unique_file"; then
1471     srcdir=..
1472   fi
1473 else
1474   ac_srcdir_defaulted=no
1475 fi
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1478   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1479 fi
1480 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 ac_abs_confdir=`(
1482         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1483         pwd)`
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486   srcdir=.
1487 fi
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1491 case $srcdir in
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 esac
1494 for ac_var in $ac_precious_vars; do
1495   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496   eval ac_env_${ac_var}_value=\$${ac_var}
1497   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499 done
1500
1501 #
1502 # Report the --help message.
1503 #
1504 if test "$ac_init_help" = "long"; then
1505   # Omit some internal or obsolete options to make the list less imposing.
1506   # This message is too long to be a string in the A/UX 3.1 sh.
1507   cat <<_ACEOF
1508 \`configure' configures this package to adapt to many kinds of systems.
1509
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1511
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE.  See below for descriptions of some of the useful variables.
1514
1515 Defaults for the options are specified in brackets.
1516
1517 Configuration:
1518   -h, --help              display this help and exit
1519       --help=short        display options specific to this package
1520       --help=recursive    display the short help of all the included packages
1521   -V, --version           display version information and exit
1522   -q, --quiet, --silent   do not print \`checking ...' messages
1523       --cache-file=FILE   cache test results in FILE [disabled]
1524   -C, --config-cache      alias for \`--cache-file=config.cache'
1525   -n, --no-create         do not create output files
1526       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1527
1528 Installation directories:
1529   --prefix=PREFIX         install architecture-independent files in PREFIX
1530                           [$ac_default_prefix]
1531   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1532                           [PREFIX]
1533
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1538
1539 For better control, use the options below.
1540
1541 Fine tuning of the installation directories:
1542   --bindir=DIR            user executables [EPREFIX/bin]
1543   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1544   --libexecdir=DIR        program executables [EPREFIX/libexec]
1545   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1546   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1547   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1548   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1549   --libdir=DIR            object code libraries [EPREFIX/lib]
1550   --includedir=DIR        C header files [PREFIX/include]
1551   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1552   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1553   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1554   --infodir=DIR           info documentation [DATAROOTDIR/info]
1555   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1556   --mandir=DIR            man documentation [DATAROOTDIR/man]
1557   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1558   --htmldir=DIR           html documentation [DOCDIR]
1559   --dvidir=DIR            dvi documentation [DOCDIR]
1560   --pdfdir=DIR            pdf documentation [DOCDIR]
1561   --psdir=DIR             ps documentation [DOCDIR]
1562 _ACEOF
1563
1564   cat <<\_ACEOF
1565
1566 System types:
1567   --build=BUILD     configure for building on BUILD [guessed]
1568   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1569 _ACEOF
1570 fi
1571
1572 if test -n "$ac_init_help"; then
1573
1574   cat <<\_ACEOF
1575
1576 Optional Features:
1577   --disable-option-checking  ignore unrecognized --enable/--with options
1578   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1579   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1580   --enable-maintainer-mode
1581                           enable makefile rules useful for maintainers
1582   --enable-symlink-install
1583                           use symlinks when installing instead of hard links
1584   --enable-relative-symlinks
1585                           use relative symlinks when installing
1586
1587   --enable-symlink-build  use symlinks while building instead of hard links
1588   --enable-verbose-makecmds
1589                           enable verbose make command output
1590   --enable-elf-shlibs     select ELF shared libraries
1591   --enable-bsd-shlibs     select BSD shared libraries
1592   --enable-profile        build profiling libraries
1593   --enable-gcov           build for coverage testing using gcov
1594   --enable-hardening      build for coverage testing using gcov
1595   --enable-jbd-debug      enable journal debugging
1596   --enable-blkid-debug    enable blkid debugging
1597   --disable-testio-debug  disable the use of the test I/O manager for
1598                           debugging
1599   --enable-developer-features
1600                           enable features for use by ext4 developers
1601   --enable-libuuid        build and use private uuid library
1602   --enable-libblkid       build and use private blkid library
1603   --enable-subset         enable subset-only build
1604   --disable-backtrace     disable use backtrace
1605   --disable-debugfs       disable support of debugfs program
1606   --disable-imager        disable support of e2image program
1607   --disable-resizer       disable support of e2resize program
1608   --disable-defrag        disable support of e4defrag program
1609   --enable-fsck           build fsck wrapper program
1610   --enable-e2initrd-helper
1611                           build e2initrd-helper program
1612   --disable-tls           disable use of thread local support
1613   --disable-uuidd         disable building the uuid daemon
1614   --disable-mmp           disable support mmp, Multi Mount Protection
1615   --disable-tdb           disable tdb support
1616   --disable-bmap-stats    disable collection of bitmap stats
1617   --enable-bmap-stats-ops enable collection of additional bitmap stats
1618   --disable-nls           do not use Native Language Support
1619   --disable-rpath         do not hardcode runtime library paths
1620   --disable-largefile     omit support for large files
1621   --disable-fuse2fs       do not build fuse2fs
1622   --enable-lto            enable link time optimization
1623   --enable-ubsan          enable undefined behavior sanitizer
1624   --enable-addrsan        enable address sanitizer
1625   --enable-threadsan      enable thread sanitizer
1626   --enable-fuzzing        enable fuzzing sanitizer
1627
1628 Optional Packages:
1629   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1630   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1631   --with-diet-libc        use diet libc
1632   --with-cc               no longer supported, use CC= instead
1633   --with-ccopts           no longer supported, use CFLAGS= instead
1634   --with-ldopts           no longer supported, use LDFLAGS= instead
1635   --with-root-prefix=PREFIX
1636                           override prefix variable for files to be placed in
1637                           the root
1638   --without-pthread       disable use of pthread support
1639   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1640   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1641   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1642   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1643   --without-libintl-prefix     don't search for libintl in includedir and libdir
1644   --with-multiarch=ARCH   specify the multiarch triplet
1645   --with-udev-rules-dir[=DIR]
1646                           Install udev rules into DIR.
1647   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1648   --with-systemd-unit-dir[=DIR]
1649                           Install systemd system units into DIR.
1650
1651 Some influential environment variables:
1652   CC          C compiler command
1653   CFLAGS      C compiler flags
1654   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1655               nonstandard directory <lib dir>
1656   LIBS        libraries to pass to the linker, e.g. -l<library>
1657   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658               you have headers in a nonstandard directory <include dir>
1659   CPP         C preprocessor
1660   PKG_CONFIG  path to pkg-config utility
1661   PKG_CONFIG_PATH
1662               directories to add to pkg-config's search path
1663   PKG_CONFIG_LIBDIR
1664               path overriding pkg-config's built-in search path
1665   CXX         C++ compiler command
1666   CXXFLAGS    C++ compiler flags
1667   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1668   udev_LIBS   linker flags for udev, overriding pkg-config
1669   systemd_CFLAGS
1670               C compiler flags for systemd, overriding pkg-config
1671   systemd_LIBS
1672               linker flags for systemd, overriding pkg-config
1673
1674 Use these variables to override the choices made by `configure' or to help
1675 it to find libraries and programs with nonstandard names/locations.
1676
1677 Report bugs to the package provider.
1678 _ACEOF
1679 ac_status=$?
1680 fi
1681
1682 if test "$ac_init_help" = "recursive"; then
1683   # If there are subdirs, report their specific --help.
1684   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685     test -d "$ac_dir" ||
1686       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687       continue
1688     ac_builddir=.
1689
1690 case "$ac_dir" in
1691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 *)
1693   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1694   # A ".." for each directory in $ac_dir_suffix.
1695   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696   case $ac_top_builddir_sub in
1697   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699   esac ;;
1700 esac
1701 ac_abs_top_builddir=$ac_pwd
1702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703 # for backward compatibility:
1704 ac_top_builddir=$ac_top_build_prefix
1705
1706 case $srcdir in
1707   .)  # We are building in place.
1708     ac_srcdir=.
1709     ac_top_srcdir=$ac_top_builddir_sub
1710     ac_abs_top_srcdir=$ac_pwd ;;
1711   [\\/]* | ?:[\\/]* )  # Absolute name.
1712     ac_srcdir=$srcdir$ac_dir_suffix;
1713     ac_top_srcdir=$srcdir
1714     ac_abs_top_srcdir=$srcdir ;;
1715   *) # Relative name.
1716     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717     ac_top_srcdir=$ac_top_build_prefix$srcdir
1718     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 esac
1720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721
1722     cd "$ac_dir" || { ac_status=$?; continue; }
1723     # Check for configure.gnu first; this name is used for a wrapper for
1724     # Metaconfig's "Configure" on case-insensitive file systems.
1725     if test -f "$ac_srcdir/configure.gnu"; then
1726       echo &&
1727       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1728     elif test -f "$ac_srcdir/configure"; then
1729       echo &&
1730       $SHELL "$ac_srcdir/configure" --help=recursive
1731     else
1732       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1733     fi || ac_status=$?
1734     cd "$ac_pwd" || { ac_status=$?; break; }
1735   done
1736 fi
1737
1738 test -n "$ac_init_help" && exit $ac_status
1739 if $ac_init_version; then
1740   cat <<\_ACEOF
1741 configure
1742 generated by GNU Autoconf 2.71
1743
1744 Copyright (C) 2021 Free Software Foundation, Inc.
1745 This configure script is free software; the Free Software Foundation
1746 gives unlimited permission to copy, distribute and modify it.
1747 _ACEOF
1748   exit
1749 fi
1750
1751 ## ------------------------ ##
1752 ## Autoconf initialization. ##
1753 ## ------------------------ ##
1754
1755 # ac_fn_c_try_compile LINENO
1756 # --------------------------
1757 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_compile ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   rm -f conftest.$ac_objext conftest.beam
1762   if { { ac_try="$ac_compile"
1763 case "(($ac_try" in
1764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765   *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 printf "%s\n" "$ac_try_echo"; } >&5
1769   (eval "$ac_compile") 2>conftest.err
1770   ac_status=$?
1771   if test -s conftest.err; then
1772     grep -v '^ *+' conftest.err >conftest.er1
1773     cat conftest.er1 >&5
1774     mv -f conftest.er1 conftest.err
1775   fi
1776   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777   test $ac_status = 0; } && {
1778          test -z "$ac_c_werror_flag" ||
1779          test ! -s conftest.err
1780        } && test -s conftest.$ac_objext
1781 then :
1782   ac_retval=0
1783 else $as_nop
1784   printf "%s\n" "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787         ac_retval=1
1788 fi
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_compile
1793
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 printf %s "checking for $2... " >&6; }
1803 if eval test \${$3+y}
1804 then :
1805   printf %s "(cached) " >&6
1806 else $as_nop
1807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 $4
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"
1813 then :
1814   eval "$3=yes"
1815 else $as_nop
1816   eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 printf "%s\n" "$ac_res" >&6; }
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_header_compile
1826
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_link ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1834   if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837   *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 printf "%s\n" "$ac_try_echo"; } >&5
1841   (eval "$ac_link") 2>conftest.err
1842   ac_status=$?
1843   if test -s conftest.err; then
1844     grep -v '^ *+' conftest.err >conftest.er1
1845     cat conftest.er1 >&5
1846     mv -f conftest.er1 conftest.err
1847   fi
1848   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; } && {
1850          test -z "$ac_c_werror_flag" ||
1851          test ! -s conftest.err
1852        } && test -s conftest$ac_exeext && {
1853          test "$cross_compiling" = yes ||
1854          test -x conftest$ac_exeext
1855        }
1856 then :
1857   ac_retval=0
1858 else $as_nop
1859   printf "%s\n" "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862         ac_retval=1
1863 fi
1864   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866   # interfere with the next link command; also delete a directory that is
1867   # left behind by Apple's compiler.  We do this before executing the actions.
1868   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870   as_fn_set_status $ac_retval
1871
1872 } # ac_fn_c_try_link
1873
1874 # ac_fn_c_try_cpp LINENO
1875 # ----------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_cpp ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   if { { ac_try="$ac_cpp conftest.$ac_ext"
1881 case "(($ac_try" in
1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883   *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 printf "%s\n" "$ac_try_echo"; } >&5
1887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1888   ac_status=$?
1889   if test -s conftest.err; then
1890     grep -v '^ *+' conftest.err >conftest.er1
1891     cat conftest.er1 >&5
1892     mv -f conftest.er1 conftest.err
1893   fi
1894   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; } > conftest.i && {
1896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1897          test ! -s conftest.err
1898        }
1899 then :
1900   ac_retval=0
1901 else $as_nop
1902   printf "%s\n" "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905     ac_retval=1
1906 fi
1907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908   as_fn_set_status $ac_retval
1909
1910 } # ac_fn_c_try_cpp
1911
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1915 # executables *can* be run.
1916 ac_fn_c_try_run ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922   *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 printf "%s\n" "$ac_try_echo"; } >&5
1926   (eval "$ac_link") 2>&5
1927   ac_status=$?
1928   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930   { { case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 printf "%s\n" "$ac_try_echo"; } >&5
1936   (eval "$ac_try") 2>&5
1937   ac_status=$?
1938   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; }; }
1940 then :
1941   ac_retval=0
1942 else $as_nop
1943   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1944        printf "%s\n" "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947        ac_retval=$ac_status
1948 fi
1949   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951   as_fn_set_status $ac_retval
1952
1953 } # ac_fn_c_try_run
1954
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 printf %s "checking for $2... " >&6; }
1963 if eval test \${$3+y}
1964 then :
1965   printf %s "(cached) " >&6
1966 else $as_nop
1967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h.  */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1971 #define $2 innocuous_$2
1972
1973 /* System header to define __stub macros and hopefully few prototypes,
1974    which can conflict with char $2 (); below.  */
1975
1976 #include <limits.h>
1977 #undef $2
1978
1979 /* Override any GCC internal prototype to avoid an error.
1980    Use char because int might match the return type of a GCC
1981    builtin and then its argument prototype would still apply.  */
1982 #ifdef __cplusplus
1983 extern "C"
1984 #endif
1985 char $2 ();
1986 /* The GNU C library defines this for functions which it implements
1987     to always fail with ENOSYS.  Some functions are actually named
1988     something starting with __ and the normal name is an alias.  */
1989 #if defined __stub_$2 || defined __stub___$2
1990 choke me
1991 #endif
1992
1993 int
1994 main (void)
1995 {
1996 return $2 ();
1997   ;
1998   return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_link "$LINENO"
2002 then :
2003   eval "$3=yes"
2004 else $as_nop
2005   eval "$3=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2008     conftest$ac_exeext conftest.$ac_ext
2009 fi
2010 eval ac_res=\$$3
2011                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 printf "%s\n" "$ac_res" >&6; }
2013   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015 } # ac_fn_c_check_func
2016
2017 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2018 # ----------------------------------------------------
2019 # Tries to find if the field MEMBER exists in type AGGR, after including
2020 # INCLUDES, setting cache variable VAR accordingly.
2021 ac_fn_c_check_member ()
2022 {
2023   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2025 printf %s "checking for $2.$3... " >&6; }
2026 if eval test \${$4+y}
2027 then :
2028   printf %s "(cached) " >&6
2029 else $as_nop
2030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h.  */
2032 $5
2033 int
2034 main (void)
2035 {
2036 static $2 ac_aggr;
2037 if (ac_aggr.$3)
2038 return 0;
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"
2044 then :
2045   eval "$4=yes"
2046 else $as_nop
2047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $5
2050 int
2051 main (void)
2052 {
2053 static $2 ac_aggr;
2054 if (sizeof ac_aggr.$3)
2055 return 0;
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"
2061 then :
2062   eval "$4=yes"
2063 else $as_nop
2064   eval "$4=no"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$4
2071                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 printf "%s\n" "$ac_res" >&6; }
2073   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_member
2076
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 printf %s "checking for $2... " >&6; }
2086 if eval test \${$3+y}
2087 then :
2088   printf %s "(cached) " >&6
2089 else $as_nop
2090   eval "$3=no"
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main (void)
2096 {
2097 if (sizeof ($2))
2098          return 0;
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"
2104 then :
2105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 $4
2108 int
2109 main (void)
2110 {
2111 if (sizeof (($2)))
2112             return 0;
2113   ;
2114   return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"
2118 then :
2119
2120 else $as_nop
2121   eval "$3=yes"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126 fi
2127 eval ac_res=\$$3
2128                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 printf "%s\n" "$ac_res" >&6; }
2130   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_type
2133
2134 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2135 # ------------------------------------------------------------------
2136 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2137 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2138 ac_fn_check_decl ()
2139 {
2140   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141   as_decl_name=`echo $2|sed 's/ *(.*//'`
2142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2143 printf %s "checking whether $as_decl_name is declared... " >&6; }
2144 if eval test \${$3+y}
2145 then :
2146   printf %s "(cached) " >&6
2147 else $as_nop
2148   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2149   eval ac_save_FLAGS=\$$6
2150   as_fn_append $6 " $5"
2151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h.  */
2153 $4
2154 int
2155 main (void)
2156 {
2157 #ifndef $as_decl_name
2158 #ifdef __cplusplus
2159   (void) $as_decl_use;
2160 #else
2161   (void) $as_decl_name;
2162 #endif
2163 #endif
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"
2170 then :
2171   eval "$3=yes"
2172 else $as_nop
2173   eval "$3=no"
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2176   eval $6=\$ac_save_FLAGS
2177
2178 fi
2179 eval ac_res=\$$3
2180                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 printf "%s\n" "$ac_res" >&6; }
2182   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183
2184 } # ac_fn_check_decl
2185
2186 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2187 # --------------------------------------------
2188 # Tries to find the compile-time value of EXPR in a program that includes
2189 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2190 # computed
2191 ac_fn_c_compute_int ()
2192 {
2193   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194   if test "$cross_compiling" = yes; then
2195     # Depending upon the size, compute the lo and hi bounds.
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 int
2200 main (void)
2201 {
2202 static int test_array [1 - 2 * !(($2) >= 0)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"
2211 then :
2212   ac_lo=0 ac_mid=0
2213   while :; do
2214     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h.  */
2216 $4
2217 int
2218 main (void)
2219 {
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 test_array [0] = 0;
2222 return test_array [0];
2223
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"
2229 then :
2230   ac_hi=$ac_mid; break
2231 else $as_nop
2232   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2233                         if test $ac_lo -le $ac_mid; then
2234                           ac_lo= ac_hi=
2235                           break
2236                         fi
2237                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2240   done
2241 else $as_nop
2242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h.  */
2244 $4
2245 int
2246 main (void)
2247 {
2248 static int test_array [1 - 2 * !(($2) < 0)];
2249 test_array [0] = 0;
2250 return test_array [0];
2251
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"
2257 then :
2258   ac_hi=-1 ac_mid=-1
2259   while :; do
2260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 int
2264 main (void)
2265 {
2266 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2267 test_array [0] = 0;
2268 return test_array [0];
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"
2275 then :
2276   ac_lo=$ac_mid; break
2277 else $as_nop
2278   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2279                         if test $ac_mid -le $ac_hi; then
2280                           ac_lo= ac_hi=
2281                           break
2282                         fi
2283                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2286   done
2287 else $as_nop
2288   ac_lo= ac_hi=
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 # Binary search between lo and hi bounds.
2294 while test "x$ac_lo" != "x$ac_hi"; do
2295   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 $4
2299 int
2300 main (void)
2301 {
2302 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 test_array [0] = 0;
2304 return test_array [0];
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"
2311 then :
2312   ac_hi=$ac_mid
2313 else $as_nop
2314   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2315 fi
2316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2317 done
2318 case $ac_lo in #((
2319 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2320 '') ac_retval=1 ;;
2321 esac
2322   else
2323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 static long int longval (void) { return $2; }
2327 static unsigned long int ulongval (void) { return $2; }
2328 #include <stdio.h>
2329 #include <stdlib.h>
2330 int
2331 main (void)
2332 {
2333
2334   FILE *f = fopen ("conftest.val", "w");
2335   if (! f)
2336     return 1;
2337   if (($2) < 0)
2338     {
2339       long int i = longval ();
2340       if (i != ($2))
2341         return 1;
2342       fprintf (f, "%ld", i);
2343     }
2344   else
2345     {
2346       unsigned long int i = ulongval ();
2347       if (i != ($2))
2348         return 1;
2349       fprintf (f, "%lu", i);
2350     }
2351   /* Do not output a trailing newline, as this causes \r\n confusion
2352      on some platforms.  */
2353   return ferror (f) || fclose (f) != 0;
2354
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_c_try_run "$LINENO"
2360 then :
2361   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2362 else $as_nop
2363   ac_retval=1
2364 fi
2365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2366   conftest.$ac_objext conftest.beam conftest.$ac_ext
2367 rm -f conftest.val
2368
2369   fi
2370   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371   as_fn_set_status $ac_retval
2372
2373 } # ac_fn_c_compute_int
2374
2375 # ac_fn_cxx_try_compile LINENO
2376 # ----------------------------
2377 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_cxx_try_compile ()
2379 {
2380   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381   rm -f conftest.$ac_objext conftest.beam
2382   if { { ac_try="$ac_compile"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 printf "%s\n" "$ac_try_echo"; } >&5
2389   (eval "$ac_compile") 2>conftest.err
2390   ac_status=$?
2391   if test -s conftest.err; then
2392     grep -v '^ *+' conftest.err >conftest.er1
2393     cat conftest.er1 >&5
2394     mv -f conftest.er1 conftest.err
2395   fi
2396   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397   test $ac_status = 0; } && {
2398          test -z "$ac_cxx_werror_flag" ||
2399          test ! -s conftest.err
2400        } && test -s conftest.$ac_objext
2401 then :
2402   ac_retval=0
2403 else $as_nop
2404   printf "%s\n" "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407         ac_retval=1
2408 fi
2409   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410   as_fn_set_status $ac_retval
2411
2412 } # ac_fn_cxx_try_compile
2413 ac_configure_args_raw=
2414 for ac_arg
2415 do
2416   case $ac_arg in
2417   *\'*)
2418     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2419   esac
2420   as_fn_append ac_configure_args_raw " '$ac_arg'"
2421 done
2422
2423 case $ac_configure_args_raw in
2424   *$as_nl*)
2425     ac_safe_unquote= ;;
2426   *)
2427     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2428     ac_unsafe_a="$ac_unsafe_z#~"
2429     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2430     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2431 esac
2432
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2436
2437 It was created by $as_me, which was
2438 generated by GNU Autoconf 2.71.  Invocation command line was
2439
2440   $ $0$ac_configure_args_raw
2441
2442 _ACEOF
2443 exec 5>>config.log
2444 {
2445 cat <<_ASUNAME
2446 ## --------- ##
2447 ## Platform. ##
2448 ## --------- ##
2449
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2455
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2458
2459 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2460 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2463 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2464 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2465 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2466
2467 _ASUNAME
2468
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   case $as_dir in #(((
2474     '') as_dir=./ ;;
2475     */) ;;
2476     *) as_dir=$as_dir/ ;;
2477   esac
2478     printf "%s\n" "PATH: $as_dir"
2479   done
2480 IFS=$as_save_IFS
2481
2482 } >&5
2483
2484 cat >&5 <<_ACEOF
2485
2486
2487 ## ----------- ##
2488 ## Core tests. ##
2489 ## ----------- ##
2490
2491 _ACEOF
2492
2493
2494 # Keep a trace of the command line.
2495 # Strip out --no-create and --no-recursion so they do not pile up.
2496 # Strip out --silent because we don't want to record it for future runs.
2497 # Also quote any args containing shell meta-characters.
2498 # Make two passes to allow for proper duplicate-argument suppression.
2499 ac_configure_args=
2500 ac_configure_args0=
2501 ac_configure_args1=
2502 ac_must_keep_next=false
2503 for ac_pass in 1 2
2504 do
2505   for ac_arg
2506   do
2507     case $ac_arg in
2508     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2509     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2510     | -silent | --silent | --silen | --sile | --sil)
2511       continue ;;
2512     *\'*)
2513       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2514     esac
2515     case $ac_pass in
2516     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2517     2)
2518       as_fn_append ac_configure_args1 " '$ac_arg'"
2519       if test $ac_must_keep_next = true; then
2520         ac_must_keep_next=false # Got value, back to normal.
2521       else
2522         case $ac_arg in
2523           *=* | --config-cache | -C | -disable-* | --disable-* \
2524           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2525           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2526           | -with-* | --with-* | -without-* | --without-* | --x)
2527             case "$ac_configure_args0 " in
2528               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2529             esac
2530             ;;
2531           -* ) ac_must_keep_next=true ;;
2532         esac
2533       fi
2534       as_fn_append ac_configure_args " '$ac_arg'"
2535       ;;
2536     esac
2537   done
2538 done
2539 { ac_configure_args0=; unset ac_configure_args0;}
2540 { ac_configure_args1=; unset ac_configure_args1;}
2541
2542 # When interrupted or exit'd, cleanup temporary files, and complete
2543 # config.log.  We remove comments because anyway the quotes in there
2544 # would cause problems or look ugly.
2545 # WARNING: Use '\'' to represent an apostrophe within the trap.
2546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2547 trap 'exit_status=$?
2548   # Sanitize IFS.
2549   IFS=" ""      $as_nl"
2550   # Save into config.log some information that might help in debugging.
2551   {
2552     echo
2553
2554     printf "%s\n" "## ---------------- ##
2555 ## Cache variables. ##
2556 ## ---------------- ##"
2557     echo
2558     # The following way of writing the cache mishandles newlines in values,
2559 (
2560   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2561     eval ac_val=\$$ac_var
2562     case $ac_val in #(
2563     *${as_nl}*)
2564       case $ac_var in #(
2565       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2566 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2567       esac
2568       case $ac_var in #(
2569       _ | IFS | as_nl) ;; #(
2570       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2571       *) { eval $ac_var=; unset $ac_var;} ;;
2572       esac ;;
2573     esac
2574   done
2575   (set) 2>&1 |
2576     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2577     *${as_nl}ac_space=\ *)
2578       sed -n \
2579         "s/'\''/'\''\\\\'\'''\''/g;
2580           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2581       ;; #(
2582     *)
2583       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2584       ;;
2585     esac |
2586     sort
2587 )
2588     echo
2589
2590     printf "%s\n" "## ----------------- ##
2591 ## Output variables. ##
2592 ## ----------------- ##"
2593     echo
2594     for ac_var in $ac_subst_vars
2595     do
2596       eval ac_val=\$$ac_var
2597       case $ac_val in
2598       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2599       esac
2600       printf "%s\n" "$ac_var='\''$ac_val'\''"
2601     done | sort
2602     echo
2603
2604     if test -n "$ac_subst_files"; then
2605       printf "%s\n" "## ------------------- ##
2606 ## File substitutions. ##
2607 ## ------------------- ##"
2608       echo
2609       for ac_var in $ac_subst_files
2610       do
2611         eval ac_val=\$$ac_var
2612         case $ac_val in
2613         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2614         esac
2615         printf "%s\n" "$ac_var='\''$ac_val'\''"
2616       done | sort
2617       echo
2618     fi
2619
2620     if test -s confdefs.h; then
2621       printf "%s\n" "## ----------- ##
2622 ## confdefs.h. ##
2623 ## ----------- ##"
2624       echo
2625       cat confdefs.h
2626       echo
2627     fi
2628     test "$ac_signal" != 0 &&
2629       printf "%s\n" "$as_me: caught signal $ac_signal"
2630     printf "%s\n" "$as_me: exit $exit_status"
2631   } >&5
2632   rm -f core *.core core.conftest.* &&
2633     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2634     exit $exit_status
2635 ' 0
2636 for ac_signal in 1 2 13 15; do
2637   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2638 done
2639 ac_signal=0
2640
2641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2642 rm -f -r conftest* confdefs.h
2643
2644 printf "%s\n" "/* confdefs.h */" > confdefs.h
2645
2646 # Predefined preprocessor variables.
2647
2648 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2649
2650 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2651
2652 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2653
2654 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2655
2656 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2657
2658 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2659
2660
2661 # Let the site file select an alternate cache file if it wants to.
2662 # Prefer an explicitly selected file to automatically selected ones.
2663 if test -n "$CONFIG_SITE"; then
2664   ac_site_files="$CONFIG_SITE"
2665 elif test "x$prefix" != xNONE; then
2666   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2667 else
2668   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2669 fi
2670
2671 for ac_site_file in $ac_site_files
2672 do
2673   case $ac_site_file in #(
2674   */*) :
2675      ;; #(
2676   *) :
2677     ac_site_file=./$ac_site_file ;;
2678 esac
2679   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2680     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2681 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2682     sed 's/^/| /' "$ac_site_file" >&5
2683     . "$ac_site_file" \
2684       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "failed to load site script $ac_site_file
2687 See \`config.log' for more details" "$LINENO" 5; }
2688   fi
2689 done
2690
2691 if test -r "$cache_file"; then
2692   # Some versions of bash will fail to source /dev/null (special files
2693   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2694   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2695     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2696 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2697     case $cache_file in
2698       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2699       *)                      . "./$cache_file";;
2700     esac
2701   fi
2702 else
2703   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2704 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2705   >$cache_file
2706 fi
2707
2708 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2709 # Test code for whether the C compiler supports C89 (global declarations)
2710 ac_c_conftest_c89_globals='
2711 /* Does the compiler advertise C89 conformance?
2712    Do not test the value of __STDC__, because some compilers set it to 0
2713    while being otherwise adequately conformant. */
2714 #if !defined __STDC__
2715 # error "Compiler does not advertise C89 conformance"
2716 #endif
2717
2718 #include <stddef.h>
2719 #include <stdarg.h>
2720 struct stat;
2721 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2722 struct buf { int x; };
2723 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2724 static char *e (p, i)
2725      char **p;
2726      int i;
2727 {
2728   return p[i];
2729 }
2730 static char *f (char * (*g) (char **, int), char **p, ...)
2731 {
2732   char *s;
2733   va_list v;
2734   va_start (v,p);
2735   s = g (p, va_arg (v,int));
2736   va_end (v);
2737   return s;
2738 }
2739
2740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2741    function prototypes and stuff, but not \xHH hex character constants.
2742    These do not provoke an error unfortunately, instead are silently treated
2743    as an "x".  The following induces an error, until -std is added to get
2744    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2745    array size at least.  It is necessary to write \x00 == 0 to get something
2746    that is true only with -std.  */
2747 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2748
2749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2750    inside strings and character constants.  */
2751 #define FOO(x) '\''x'\''
2752 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2753
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2758                int, int);'
2759
2760 # Test code for whether the C compiler supports C89 (body of main).
2761 ac_c_conftest_c89_main='
2762 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2763 '
2764
2765 # Test code for whether the C compiler supports C99 (global declarations)
2766 ac_c_conftest_c99_globals='
2767 // Does the compiler advertise C99 conformance?
2768 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2769 # error "Compiler does not advertise C99 conformance"
2770 #endif
2771
2772 #include <stdbool.h>
2773 extern int puts (const char *);
2774 extern int printf (const char *, ...);
2775 extern int dprintf (int, const char *, ...);
2776 extern void *malloc (size_t);
2777
2778 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2779 // dprintf is used instead of fprintf to avoid needing to declare
2780 // FILE and stderr.
2781 #define debug(...) dprintf (2, __VA_ARGS__)
2782 #define showlist(...) puts (#__VA_ARGS__)
2783 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2784 static void
2785 test_varargs_macros (void)
2786 {
2787   int x = 1234;
2788   int y = 5678;
2789   debug ("Flag");
2790   debug ("X = %d\n", x);
2791   showlist (The first, second, and third items.);
2792   report (x>y, "x is %d but y is %d", x, y);
2793 }
2794
2795 // Check long long types.
2796 #define BIG64 18446744073709551615ull
2797 #define BIG32 4294967295ul
2798 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2799 #if !BIG_OK
2800   #error "your preprocessor is broken"
2801 #endif
2802 #if BIG_OK
2803 #else
2804   #error "your preprocessor is broken"
2805 #endif
2806 static long long int bignum = -9223372036854775807LL;
2807 static unsigned long long int ubignum = BIG64;
2808
2809 struct incomplete_array
2810 {
2811   int datasize;
2812   double data[];
2813 };
2814
2815 struct named_init {
2816   int number;
2817   const wchar_t *name;
2818   double average;
2819 };
2820
2821 typedef const char *ccp;
2822
2823 static inline int
2824 test_restrict (ccp restrict text)
2825 {
2826   // See if C++-style comments work.
2827   // Iterate through items via the restricted pointer.
2828   // Also check for declarations in for loops.
2829   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2830     continue;
2831   return 0;
2832 }
2833
2834 // Check varargs and va_copy.
2835 static bool
2836 test_varargs (const char *format, ...)
2837 {
2838   va_list args;
2839   va_start (args, format);
2840   va_list args_copy;
2841   va_copy (args_copy, args);
2842
2843   const char *str = "";
2844   int number = 0;
2845   float fnumber = 0;
2846
2847   while (*format)
2848     {
2849       switch (*format++)
2850         {
2851         case '\''s'\'': // string
2852           str = va_arg (args_copy, const char *);
2853           break;
2854         case '\''d'\'': // int
2855           number = va_arg (args_copy, int);
2856           break;
2857         case '\''f'\'': // float
2858           fnumber = va_arg (args_copy, double);
2859           break;
2860         default:
2861           break;
2862         }
2863     }
2864   va_end (args_copy);
2865   va_end (args);
2866
2867   return *str && number && fnumber;
2868 }
2869 '
2870
2871 # Test code for whether the C compiler supports C99 (body of main).
2872 ac_c_conftest_c99_main='
2873   // Check bool.
2874   _Bool success = false;
2875   success |= (argc != 0);
2876
2877   // Check restrict.
2878   if (test_restrict ("String literal") == 0)
2879     success = true;
2880   char *restrict newvar = "Another string";
2881
2882   // Check varargs.
2883   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2884   test_varargs_macros ();
2885
2886   // Check flexible array members.
2887   struct incomplete_array *ia =
2888     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2889   ia->datasize = 10;
2890   for (int i = 0; i < ia->datasize; ++i)
2891     ia->data[i] = i * 1.234;
2892
2893   // Check named initializers.
2894   struct named_init ni = {
2895     .number = 34,
2896     .name = L"Test wide string",
2897     .average = 543.34343,
2898   };
2899
2900   ni.number = 58;
2901
2902   int dynamic_array[ni.number];
2903   dynamic_array[0] = argv[0][0];
2904   dynamic_array[ni.number - 1] = 543;
2905
2906   // work around unused variable warnings
2907   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2908          || dynamic_array[ni.number - 1] != 543);
2909 '
2910
2911 # Test code for whether the C compiler supports C11 (global declarations)
2912 ac_c_conftest_c11_globals='
2913 // Does the compiler advertise C11 conformance?
2914 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2915 # error "Compiler does not advertise C11 conformance"
2916 #endif
2917
2918 // Check _Alignas.
2919 char _Alignas (double) aligned_as_double;
2920 char _Alignas (0) no_special_alignment;
2921 extern char aligned_as_int;
2922 char _Alignas (0) _Alignas (int) aligned_as_int;
2923
2924 // Check _Alignof.
2925 enum
2926 {
2927   int_alignment = _Alignof (int),
2928   int_array_alignment = _Alignof (int[100]),
2929   char_alignment = _Alignof (char)
2930 };
2931 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2932
2933 // Check _Noreturn.
2934 int _Noreturn does_not_return (void) { for (;;) continue; }
2935
2936 // Check _Static_assert.
2937 struct test_static_assert
2938 {
2939   int x;
2940   _Static_assert (sizeof (int) <= sizeof (long int),
2941                   "_Static_assert does not work in struct");
2942   long int y;
2943 };
2944
2945 // Check UTF-8 literals.
2946 #define u8 syntax error!
2947 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2948
2949 // Check duplicate typedefs.
2950 typedef long *long_ptr;
2951 typedef long int *long_ptr;
2952 typedef long_ptr long_ptr;
2953
2954 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2955 struct anonymous
2956 {
2957   union {
2958     struct { int i; int j; };
2959     struct { int k; long int l; } w;
2960   };
2961   int m;
2962 } v1;
2963 '
2964
2965 # Test code for whether the C compiler supports C11 (body of main).
2966 ac_c_conftest_c11_main='
2967   _Static_assert ((offsetof (struct anonymous, i)
2968                    == offsetof (struct anonymous, w.k)),
2969                   "Anonymous union alignment botch");
2970   v1.i = 2;
2971   v1.w.k = 5;
2972   ok |= v1.i != 5;
2973 '
2974
2975 # Test code for whether the C compiler supports C11 (complete).
2976 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2977 ${ac_c_conftest_c99_globals}
2978 ${ac_c_conftest_c11_globals}
2979
2980 int
2981 main (int argc, char **argv)
2982 {
2983   int ok = 0;
2984   ${ac_c_conftest_c89_main}
2985   ${ac_c_conftest_c99_main}
2986   ${ac_c_conftest_c11_main}
2987   return ok;
2988 }
2989 "
2990
2991 # Test code for whether the C compiler supports C99 (complete).
2992 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2993 ${ac_c_conftest_c99_globals}
2994
2995 int
2996 main (int argc, char **argv)
2997 {
2998   int ok = 0;
2999   ${ac_c_conftest_c89_main}
3000   ${ac_c_conftest_c99_main}
3001   return ok;
3002 }
3003 "
3004
3005 # Test code for whether the C compiler supports C89 (complete).
3006 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3007
3008 int
3009 main (int argc, char **argv)
3010 {
3011   int ok = 0;
3012   ${ac_c_conftest_c89_main}
3013   return ok;
3014 }
3015 "
3016
3017 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3018 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3019 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3020 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3021 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3022 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3023 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3024 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3025 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3026 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3027 gt_needs="$gt_needs "
3028 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3029 # Test code for whether the C++ compiler supports C++98 (global declarations)
3030 ac_cxx_conftest_cxx98_globals='
3031 // Does the compiler advertise C++98 conformance?
3032 #if !defined __cplusplus || __cplusplus < 199711L
3033 # error "Compiler does not advertise C++98 conformance"
3034 #endif
3035
3036 // These inclusions are to reject old compilers that
3037 // lack the unsuffixed header files.
3038 #include <cstdlib>
3039 #include <exception>
3040
3041 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3042 extern void assert (int);
3043 namespace std {
3044   extern int strcmp (const char *, const char *);
3045 }
3046
3047 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3048 using std::exception;
3049 using std::strcmp;
3050
3051 namespace {
3052
3053 void test_exception_syntax()
3054 {
3055   try {
3056     throw "test";
3057   } catch (const char *s) {
3058     // Extra parentheses suppress a warning when building autoconf itself,
3059     // due to lint rules shared with more typical C programs.
3060     assert (!(strcmp) (s, "test"));
3061   }
3062 }
3063
3064 template <typename T> struct test_template
3065 {
3066   T const val;
3067   explicit test_template(T t) : val(t) {}
3068   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3069 };
3070
3071 } // anonymous namespace
3072 '
3073
3074 # Test code for whether the C++ compiler supports C++98 (body of main)
3075 ac_cxx_conftest_cxx98_main='
3076   assert (argc);
3077   assert (! argv[0]);
3078 {
3079   test_exception_syntax ();
3080   test_template<double> tt (2.0);
3081   assert (tt.add (4) == 6.0);
3082   assert (true && !false);
3083 }
3084 '
3085
3086 # Test code for whether the C++ compiler supports C++11 (global declarations)
3087 ac_cxx_conftest_cxx11_globals='
3088 // Does the compiler advertise C++ 2011 conformance?
3089 #if !defined __cplusplus || __cplusplus < 201103L
3090 # error "Compiler does not advertise C++11 conformance"
3091 #endif
3092
3093 namespace cxx11test
3094 {
3095   constexpr int get_val() { return 20; }
3096
3097   struct testinit
3098   {
3099     int i;
3100     double d;
3101   };
3102
3103   class delegate
3104   {
3105   public:
3106     delegate(int n) : n(n) {}
3107     delegate(): delegate(2354) {}
3108
3109     virtual int getval() { return this->n; };
3110   protected:
3111     int n;
3112   };
3113
3114   class overridden : public delegate
3115   {
3116   public:
3117     overridden(int n): delegate(n) {}
3118     virtual int getval() override final { return this->n * 2; }
3119   };
3120
3121   class nocopy
3122   {
3123   public:
3124     nocopy(int i): i(i) {}
3125     nocopy() = default;
3126     nocopy(const nocopy&) = delete;
3127     nocopy & operator=(const nocopy&) = delete;
3128   private:
3129     int i;
3130   };
3131
3132   // for testing lambda expressions
3133   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3134   {
3135     return f(v);
3136   }
3137
3138   // for testing variadic templates and trailing return types
3139   template <typename V> auto sum(V first) -> V
3140   {
3141     return first;
3142   }
3143   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3144   {
3145     return first + sum(rest...);
3146   }
3147 }
3148 '
3149
3150 # Test code for whether the C++ compiler supports C++11 (body of main)
3151 ac_cxx_conftest_cxx11_main='
3152 {
3153   // Test auto and decltype
3154   auto a1 = 6538;
3155   auto a2 = 48573953.4;
3156   auto a3 = "String literal";
3157
3158   int total = 0;
3159   for (auto i = a3; *i; ++i) { total += *i; }
3160
3161   decltype(a2) a4 = 34895.034;
3162 }
3163 {
3164   // Test constexpr
3165   short sa[cxx11test::get_val()] = { 0 };
3166 }
3167 {
3168   // Test initializer lists
3169   cxx11test::testinit il = { 4323, 435234.23544 };
3170 }
3171 {
3172   // Test range-based for
3173   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3174                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3175   for (auto &x : array) { x += 23; }
3176 }
3177 {
3178   // Test lambda expressions
3179   using cxx11test::eval;
3180   assert (eval ([](int x) { return x*2; }, 21) == 42);
3181   double d = 2.0;
3182   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3183   assert (d == 5.0);
3184   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3185   assert (d == 5.0);
3186 }
3187 {
3188   // Test use of variadic templates
3189   using cxx11test::sum;
3190   auto a = sum(1);
3191   auto b = sum(1, 2);
3192   auto c = sum(1.0, 2.0, 3.0);
3193 }
3194 {
3195   // Test constructor delegation
3196   cxx11test::delegate d1;
3197   cxx11test::delegate d2();
3198   cxx11test::delegate d3(45);
3199 }
3200 {
3201   // Test override and final
3202   cxx11test::overridden o1(55464);
3203 }
3204 {
3205   // Test nullptr
3206   char *c = nullptr;
3207 }
3208 {
3209   // Test template brackets
3210   test_template<::test_template<int>> v(test_template<int>(12));
3211 }
3212 {
3213   // Unicode literals
3214   char const *utf8 = u8"UTF-8 string \u2500";
3215   char16_t const *utf16 = u"UTF-8 string \u2500";
3216   char32_t const *utf32 = U"UTF-32 string \u2500";
3217 }
3218 '
3219
3220 # Test code for whether the C compiler supports C++11 (complete).
3221 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3222 ${ac_cxx_conftest_cxx11_globals}
3223
3224 int
3225 main (int argc, char **argv)
3226 {
3227   int ok = 0;
3228   ${ac_cxx_conftest_cxx98_main}
3229   ${ac_cxx_conftest_cxx11_main}
3230   return ok;
3231 }
3232 "
3233
3234 # Test code for whether the C compiler supports C++98 (complete).
3235 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3236 int
3237 main (int argc, char **argv)
3238 {
3239   int ok = 0;
3240   ${ac_cxx_conftest_cxx98_main}
3241   return ok;
3242 }
3243 "
3244
3245
3246 # Auxiliary files required by this configure script.
3247 ac_aux_files="config.rpath install-sh config.guess config.sub"
3248
3249 # Locations in which to look for auxiliary files.
3250 ac_aux_dir_candidates="${srcdir}/config"
3251
3252 # Search for a directory containing all of the required auxiliary files,
3253 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3254 # If we don't find one directory that contains all the files we need,
3255 # we report the set of missing files from the *first* directory in
3256 # $ac_aux_dir_candidates and give up.
3257 ac_missing_aux_files=""
3258 ac_first_candidate=:
3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 as_found=false
3262 for as_dir in $ac_aux_dir_candidates
3263 do
3264   IFS=$as_save_IFS
3265   case $as_dir in #(((
3266     '') as_dir=./ ;;
3267     */) ;;
3268     *) as_dir=$as_dir/ ;;
3269   esac
3270   as_found=:
3271
3272   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3273   ac_aux_dir_found=yes
3274   ac_install_sh=
3275   for ac_aux in $ac_aux_files
3276   do
3277     # As a special case, if "install-sh" is required, that requirement
3278     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3279     # and $ac_install_sh is set appropriately for whichever one is found.
3280     if test x"$ac_aux" = x"install-sh"
3281     then
3282       if test -f "${as_dir}install-sh"; then
3283         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3284         ac_install_sh="${as_dir}install-sh -c"
3285       elif test -f "${as_dir}install.sh"; then
3286         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3287         ac_install_sh="${as_dir}install.sh -c"
3288       elif test -f "${as_dir}shtool"; then
3289         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3290         ac_install_sh="${as_dir}shtool install -c"
3291       else
3292         ac_aux_dir_found=no
3293         if $ac_first_candidate; then
3294           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3295         else
3296           break
3297         fi
3298       fi
3299     else
3300       if test -f "${as_dir}${ac_aux}"; then
3301         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3302       else
3303         ac_aux_dir_found=no
3304         if $ac_first_candidate; then
3305           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3306         else
3307           break
3308         fi
3309       fi
3310     fi
3311   done
3312   if test "$ac_aux_dir_found" = yes; then
3313     ac_aux_dir="$as_dir"
3314     break
3315   fi
3316   ac_first_candidate=false
3317
3318   as_found=false
3319 done
3320 IFS=$as_save_IFS
3321 if $as_found
3322 then :
3323
3324 else $as_nop
3325   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3326 fi
3327
3328
3329 # These three variables are undocumented and unsupported,
3330 # and are intended to be withdrawn in a future Autoconf release.
3331 # They can cause serious problems if a builder's source tree is in a directory
3332 # whose full name contains unusual characters.
3333 if test -f "${ac_aux_dir}config.guess"; then
3334   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3335 fi
3336 if test -f "${ac_aux_dir}config.sub"; then
3337   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3338 fi
3339 if test -f "$ac_aux_dir/configure"; then
3340   ac_configure="$SHELL ${ac_aux_dir}configure"
3341 fi
3342
3343 # Check that the precious variables saved in the cache have kept the same
3344 # value.
3345 ac_cache_corrupted=false
3346 for ac_var in $ac_precious_vars; do
3347   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3348   eval ac_new_set=\$ac_env_${ac_var}_set
3349   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3350   eval ac_new_val=\$ac_env_${ac_var}_value
3351   case $ac_old_set,$ac_new_set in
3352     set,)
3353       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3354 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3355       ac_cache_corrupted=: ;;
3356     ,set)
3357       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3358 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3359       ac_cache_corrupted=: ;;
3360     ,);;
3361     *)
3362       if test "x$ac_old_val" != "x$ac_new_val"; then
3363         # differences in whitespace do not lead to failure.
3364         ac_old_val_w=`echo x $ac_old_val`
3365         ac_new_val_w=`echo x $ac_new_val`
3366         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3367           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3368 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3369           ac_cache_corrupted=:
3370         else
3371           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3372 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3373           eval $ac_var=\$ac_old_val
3374         fi
3375         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3376 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3377         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3378 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3379       fi;;
3380   esac
3381   # Pass precious variables to config.status.
3382   if test "$ac_new_set" = set; then
3383     case $ac_new_val in
3384     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3385     *) ac_arg=$ac_var=$ac_new_val ;;
3386     esac
3387     case " $ac_configure_args " in
3388       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3389       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3390     esac
3391   fi
3392 done
3393 if $ac_cache_corrupted; then
3394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3397 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3398   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3399             and start over" "$LINENO" 5
3400 fi
3401 ## -------------------- ##
3402 ## Main body of script. ##
3403 ## -------------------- ##
3404
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410
3411
3412
3413
3414
3415 ac_config_headers="$ac_config_headers lib/config.h"
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 if test -n "$ac_tool_prefix"; then
3433   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 printf %s "checking for $ac_word... " >&6; }
3437 if test ${ac_cv_prog_CC+y}
3438 then :
3439   printf %s "(cached) " >&6
3440 else $as_nop
3441   if test -n "$CC"; then
3442   ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447   IFS=$as_save_IFS
3448   case $as_dir in #(((
3449     '') as_dir=./ ;;
3450     */) ;;
3451     *) as_dir=$as_dir/ ;;
3452   esac
3453     for ac_exec_ext in '' $ac_executable_extensions; do
3454   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3455     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3456     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460   done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 printf "%s\n" "$CC" >&6; }
3469 else
3470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 printf "%s\n" "no" >&6; }
3472 fi
3473
3474
3475 fi
3476 if test -z "$ac_cv_prog_CC"; then
3477   ac_ct_CC=$CC
3478   # Extract the first word of "gcc", so it can be a program name with args.
3479 set dummy gcc; ac_word=$2
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 printf %s "checking for $ac_word... " >&6; }
3482 if test ${ac_cv_prog_ac_ct_CC+y}
3483 then :
3484   printf %s "(cached) " >&6
3485 else $as_nop
3486   if test -n "$ac_ct_CC"; then
3487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   case $as_dir in #(((
3494     '') as_dir=./ ;;
3495     */) ;;
3496     *) as_dir=$as_dir/ ;;
3497   esac
3498     for ac_exec_ext in '' $ac_executable_extensions; do
3499   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3500     ac_cv_prog_ac_ct_CC="gcc"
3501     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3511 if test -n "$ac_ct_CC"; then
3512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3513 printf "%s\n" "$ac_ct_CC" >&6; }
3514 else
3515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 printf "%s\n" "no" >&6; }
3517 fi
3518
3519   if test "x$ac_ct_CC" = x; then
3520     CC=""
3521   else
3522     case $cross_compiling:$ac_tool_warned in
3523 yes:)
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526 ac_tool_warned=yes ;;
3527 esac
3528     CC=$ac_ct_CC
3529   fi
3530 else
3531   CC="$ac_cv_prog_CC"
3532 fi
3533
3534 if test -z "$CC"; then
3535           if test -n "$ac_tool_prefix"; then
3536     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}cc; ac_word=$2
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 printf %s "checking for $ac_word... " >&6; }
3540 if test ${ac_cv_prog_CC+y}
3541 then :
3542   printf %s "(cached) " >&6
3543 else $as_nop
3544   if test -n "$CC"; then
3545   ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   case $as_dir in #(((
3552     '') as_dir=./ ;;
3553     */) ;;
3554     *) as_dir=$as_dir/ ;;
3555   esac
3556     for ac_exec_ext in '' $ac_executable_extensions; do
3557   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3558     ac_cv_prog_CC="${ac_tool_prefix}cc"
3559     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563   done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 CC=$ac_cv_prog_CC
3569 if test -n "$CC"; then
3570   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 printf "%s\n" "$CC" >&6; }
3572 else
3573   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 printf "%s\n" "no" >&6; }
3575 fi
3576
3577
3578   fi
3579 fi
3580 if test -z "$CC"; then
3581   # Extract the first word of "cc", so it can be a program name with args.
3582 set dummy cc; ac_word=$2
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 printf %s "checking for $ac_word... " >&6; }
3585 if test ${ac_cv_prog_CC+y}
3586 then :
3587   printf %s "(cached) " >&6
3588 else $as_nop
3589   if test -n "$CC"; then
3590   ac_cv_prog_CC="$CC" # Let the user override the test.
3591 else
3592   ac_prog_rejected=no
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   case $as_dir in #(((
3598     '') as_dir=./ ;;
3599     */) ;;
3600     *) as_dir=$as_dir/ ;;
3601   esac
3602     for ac_exec_ext in '' $ac_executable_extensions; do
3603   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3605        ac_prog_rejected=yes
3606        continue
3607      fi
3608     ac_cv_prog_CC="cc"
3609     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610     break 2
3611   fi
3612 done
3613   done
3614 IFS=$as_save_IFS
3615
3616 if test $ac_prog_rejected = yes; then
3617   # We found a bogon in the path, so make sure we never use it.
3618   set dummy $ac_cv_prog_CC
3619   shift
3620   if test $# != 0; then
3621     # We chose a different compiler from the bogus one.
3622     # However, it has the same basename, so the bogon will be chosen
3623     # first if we set CC to just the basename; use the full file name.
3624     shift
3625     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3626   fi
3627 fi
3628 fi
3629 fi
3630 CC=$ac_cv_prog_CC
3631 if test -n "$CC"; then
3632   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 printf "%s\n" "$CC" >&6; }
3634 else
3635   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 printf "%s\n" "no" >&6; }
3637 fi
3638
3639
3640 fi
3641 if test -z "$CC"; then
3642   if test -n "$ac_tool_prefix"; then
3643   for ac_prog in cl.exe
3644   do
3645     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_CC+y}
3650 then :
3651   printf %s "(cached) " >&6
3652 else $as_nop
3653   if test -n "$CC"; then
3654   ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   case $as_dir in #(((
3661     '') as_dir=./ ;;
3662     */) ;;
3663     *) as_dir=$as_dir/ ;;
3664   esac
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3669     break 2
3670   fi
3671 done
3672   done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3681 else
3682   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3684 fi
3685
3686
3687     test -n "$CC" && break
3688   done
3689 fi
3690 if test -z "$CC"; then
3691   ac_ct_CC=$CC
3692   for ac_prog in cl.exe
3693 do
3694   # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 printf %s "checking for $ac_word... " >&6; }
3698 if test ${ac_cv_prog_ac_ct_CC+y}
3699 then :
3700   printf %s "(cached) " >&6
3701 else $as_nop
3702   if test -n "$ac_ct_CC"; then
3703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   case $as_dir in #(((
3710     '') as_dir=./ ;;
3711     */) ;;
3712     *) as_dir=$as_dir/ ;;
3713   esac
3714     for ac_exec_ext in '' $ac_executable_extensions; do
3715   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716     ac_cv_prog_ac_ct_CC="$ac_prog"
3717     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718     break 2
3719   fi
3720 done
3721   done
3722 IFS=$as_save_IFS
3723
3724 fi
3725 fi
3726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3727 if test -n "$ac_ct_CC"; then
3728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3729 printf "%s\n" "$ac_ct_CC" >&6; }
3730 else
3731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 printf "%s\n" "no" >&6; }
3733 fi
3734
3735
3736   test -n "$ac_ct_CC" && break
3737 done
3738
3739   if test "x$ac_ct_CC" = x; then
3740     CC=""
3741   else
3742     case $cross_compiling:$ac_tool_warned in
3743 yes:)
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3746 ac_tool_warned=yes ;;
3747 esac
3748     CC=$ac_ct_CC
3749   fi
3750 fi
3751
3752 fi
3753 if test -z "$CC"; then
3754   if test -n "$ac_tool_prefix"; then
3755   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}clang; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_prog_CC+y}
3760 then :
3761   printf %s "(cached) " >&6
3762 else $as_nop
3763   if test -n "$CC"; then
3764   ac_cv_prog_CC="$CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   case $as_dir in #(((
3771     '') as_dir=./ ;;
3772     */) ;;
3773     *) as_dir=$as_dir/ ;;
3774   esac
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777     ac_cv_prog_CC="${ac_tool_prefix}clang"
3778     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779     break 2
3780   fi
3781 done
3782   done
3783 IFS=$as_save_IFS
3784
3785 fi
3786 fi
3787 CC=$ac_cv_prog_CC
3788 if test -n "$CC"; then
3789   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790 printf "%s\n" "$CC" >&6; }
3791 else
3792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3794 fi
3795
3796
3797 fi
3798 if test -z "$ac_cv_prog_CC"; then
3799   ac_ct_CC=$CC
3800   # Extract the first word of "clang", so it can be a program name with args.
3801 set dummy clang; ac_word=$2
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 printf %s "checking for $ac_word... " >&6; }
3804 if test ${ac_cv_prog_ac_ct_CC+y}
3805 then :
3806   printf %s "(cached) " >&6
3807 else $as_nop
3808   if test -n "$ac_ct_CC"; then
3809   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814   IFS=$as_save_IFS
3815   case $as_dir in #(((
3816     '') as_dir=./ ;;
3817     */) ;;
3818     *) as_dir=$as_dir/ ;;
3819   esac
3820     for ac_exec_ext in '' $ac_executable_extensions; do
3821   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3822     ac_cv_prog_ac_ct_CC="clang"
3823     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3824     break 2
3825   fi
3826 done
3827   done
3828 IFS=$as_save_IFS
3829
3830 fi
3831 fi
3832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3833 if test -n "$ac_ct_CC"; then
3834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3835 printf "%s\n" "$ac_ct_CC" >&6; }
3836 else
3837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 printf "%s\n" "no" >&6; }
3839 fi
3840
3841   if test "x$ac_ct_CC" = x; then
3842     CC=""
3843   else
3844     case $cross_compiling:$ac_tool_warned in
3845 yes:)
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3847 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3848 ac_tool_warned=yes ;;
3849 esac
3850     CC=$ac_ct_CC
3851   fi
3852 else
3853   CC="$ac_cv_prog_CC"
3854 fi
3855
3856 fi
3857
3858
3859 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "no acceptable C compiler found in \$PATH
3862 See \`config.log' for more details" "$LINENO" 5; }
3863
3864 # Provide some information about the compiler.
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3866 set X $ac_compile
3867 ac_compiler=$2
3868 for ac_option in --version -v -V -qversion -version; do
3869   { { ac_try="$ac_compiler $ac_option >&5"
3870 case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 printf "%s\n" "$ac_try_echo"; } >&5
3876   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3877   ac_status=$?
3878   if test -s conftest.err; then
3879     sed '10a\
3880 ... rest of stderr output deleted ...
3881          10q' conftest.err >conftest.er1
3882     cat conftest.er1 >&5
3883   fi
3884   rm -f conftest.er1 conftest.err
3885   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886   test $ac_status = 0; }
3887 done
3888
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h.  */
3891
3892 int
3893 main (void)
3894 {
3895
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 ac_clean_files_save=$ac_clean_files
3901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3902 # Try to create an executable without -o first, disregard a.out.
3903 # It will help us diagnose broken compilers, and finding out an intuition
3904 # of exeext.
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3906 printf %s "checking whether the C compiler works... " >&6; }
3907 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3908
3909 # The possible output files:
3910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3911
3912 ac_rmfiles=
3913 for ac_file in $ac_files
3914 do
3915   case $ac_file in
3916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3918   esac
3919 done
3920 rm -f $ac_rmfiles
3921
3922 if { { ac_try="$ac_link_default"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 printf "%s\n" "$ac_try_echo"; } >&5
3929   (eval "$ac_link_default") 2>&5
3930   ac_status=$?
3931   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932   test $ac_status = 0; }
3933 then :
3934   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3935 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3936 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3937 # so that the user can short-circuit this test for compilers unknown to
3938 # Autoconf.
3939 for ac_file in $ac_files ''
3940 do
3941   test -f "$ac_file" || continue
3942   case $ac_file in
3943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3944         ;;
3945     [ab].out )
3946         # We found the default executable, but exeext='' is most
3947         # certainly right.
3948         break;;
3949     *.* )
3950         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3951         then :; else
3952            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3953         fi
3954         # We set ac_cv_exeext here because the later test for it is not
3955         # safe: cross compilers may not add the suffix if given an `-o'
3956         # argument, so we may need to know it at that point already.
3957         # Even if this section looks crufty: it has the advantage of
3958         # actually working.
3959         break;;
3960     * )
3961         break;;
3962   esac
3963 done
3964 test "$ac_cv_exeext" = no && ac_cv_exeext=
3965
3966 else $as_nop
3967   ac_file=''
3968 fi
3969 if test -z "$ac_file"
3970 then :
3971   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 printf "%s\n" "no" >&6; }
3973 printf "%s\n" "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error 77 "C compiler cannot create executables
3979 See \`config.log' for more details" "$LINENO" 5; }
3980 else $as_nop
3981   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982 printf "%s\n" "yes" >&6; }
3983 fi
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3985 printf %s "checking for C compiler default output file name... " >&6; }
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987 printf "%s\n" "$ac_file" >&6; }
3988 ac_exeext=$ac_cv_exeext
3989
3990 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3991 ac_clean_files=$ac_clean_files_save
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 printf %s "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 printf "%s\n" "$ac_try_echo"; } >&5
4001   (eval "$ac_link") 2>&5
4002   ac_status=$?
4003   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004   test $ac_status = 0; }
4005 then :
4006   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4007 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4008 # work properly (i.e., refer to `conftest.exe'), while it won't with
4009 # `rm'.
4010 for ac_file in conftest.exe conftest conftest.*; do
4011   test -f "$ac_file" || continue
4012   case $ac_file in
4013     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4014     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4015           break;;
4016     * ) break;;
4017   esac
4018 done
4019 else $as_nop
4020   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4023 See \`config.log' for more details" "$LINENO" 5; }
4024 fi
4025 rm -f conftest conftest$ac_cv_exeext
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4027 printf "%s\n" "$ac_cv_exeext" >&6; }
4028
4029 rm -f conftest.$ac_ext
4030 EXEEXT=$ac_cv_exeext
4031 ac_exeext=$EXEEXT
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h.  */
4034 #include <stdio.h>
4035 int
4036 main (void)
4037 {
4038 FILE *f = fopen ("conftest.out", "w");
4039  return ferror (f) || fclose (f) != 0;
4040
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 ac_clean_files="$ac_clean_files conftest.out"
4046 # Check that the compiler produces executables we can run.  If not, either
4047 # the compiler is broken, or we cross compile.
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4049 printf %s "checking whether we are cross compiling... " >&6; }
4050 if test "$cross_compiling" != yes; then
4051   { { ac_try="$ac_link"
4052 case "(($ac_try" in
4053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054   *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 printf "%s\n" "$ac_try_echo"; } >&5
4058   (eval "$ac_link") 2>&5
4059   ac_status=$?
4060   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061   test $ac_status = 0; }
4062   if { ac_try='./conftest$ac_cv_exeext'
4063   { { case "(($ac_try" in
4064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065   *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 printf "%s\n" "$ac_try_echo"; } >&5
4069   (eval "$ac_try") 2>&5
4070   ac_status=$?
4071   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072   test $ac_status = 0; }; }; then
4073     cross_compiling=no
4074   else
4075     if test "$cross_compiling" = maybe; then
4076         cross_compiling=yes
4077     else
4078         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error 77 "cannot run C compiled programs.
4081 If you meant to cross compile, use \`--host'.
4082 See \`config.log' for more details" "$LINENO" 5; }
4083     fi
4084   fi
4085 fi
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4087 printf "%s\n" "$cross_compiling" >&6; }
4088
4089 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4090 ac_clean_files=$ac_clean_files_save
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4092 printf %s "checking for suffix of object files... " >&6; }
4093 if test ${ac_cv_objext+y}
4094 then :
4095   printf %s "(cached) " >&6
4096 else $as_nop
4097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4099
4100 int
4101 main (void)
4102 {
4103
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 rm -f conftest.o conftest.obj
4109 if { { ac_try="$ac_compile"
4110 case "(($ac_try" in
4111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112   *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 printf "%s\n" "$ac_try_echo"; } >&5
4116   (eval "$ac_compile") 2>&5
4117   ac_status=$?
4118   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119   test $ac_status = 0; }
4120 then :
4121   for ac_file in conftest.o conftest.obj conftest.*; do
4122   test -f "$ac_file" || continue;
4123   case $ac_file in
4124     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4125     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4126        break;;
4127   esac
4128 done
4129 else $as_nop
4130   printf "%s\n" "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4135 as_fn_error $? "cannot compute suffix of object files: cannot compile
4136 See \`config.log' for more details" "$LINENO" 5; }
4137 fi
4138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4139 fi
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4141 printf "%s\n" "$ac_cv_objext" >&6; }
4142 OBJEXT=$ac_cv_objext
4143 ac_objext=$OBJEXT
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4145 printf %s "checking whether the compiler supports GNU C... " >&6; }
4146 if test ${ac_cv_c_compiler_gnu+y}
4147 then :
4148   printf %s "(cached) " >&6
4149 else $as_nop
4150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h.  */
4152
4153 int
4154 main (void)
4155 {
4156 #ifndef __GNUC__
4157        choke me
4158 #endif
4159
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"
4165 then :
4166   ac_compiler_gnu=yes
4167 else $as_nop
4168   ac_compiler_gnu=no
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4172
4173 fi
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
4178 if test $ac_compiler_gnu = yes; then
4179   GCC=yes
4180 else
4181   GCC=
4182 fi
4183 ac_test_CFLAGS=${CFLAGS+y}
4184 ac_save_CFLAGS=$CFLAGS
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4186 printf %s "checking whether $CC accepts -g... " >&6; }
4187 if test ${ac_cv_prog_cc_g+y}
4188 then :
4189   printf %s "(cached) " >&6
4190 else $as_nop
4191   ac_save_c_werror_flag=$ac_c_werror_flag
4192    ac_c_werror_flag=yes
4193    ac_cv_prog_cc_g=no
4194    CFLAGS="-g"
4195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h.  */
4197
4198 int
4199 main (void)
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"
4207 then :
4208   ac_cv_prog_cc_g=yes
4209 else $as_nop
4210   CFLAGS=""
4211       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h.  */
4213
4214 int
4215 main (void)
4216 {
4217
4218   ;
4219   return 0;
4220 }
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"
4223 then :
4224
4225 else $as_nop
4226   ac_c_werror_flag=$ac_save_c_werror_flag
4227          CFLAGS="-g"
4228          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h.  */
4230
4231 int
4232 main (void)
4233 {
4234
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_c_try_compile "$LINENO"
4240 then :
4241   ac_cv_prog_cc_g=yes
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4244 fi
4245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4248    ac_c_werror_flag=$ac_save_c_werror_flag
4249 fi
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4251 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4252 if test $ac_test_CFLAGS; then
4253   CFLAGS=$ac_save_CFLAGS
4254 elif test $ac_cv_prog_cc_g = yes; then
4255   if test "$GCC" = yes; then
4256     CFLAGS="-g -O2"
4257   else
4258     CFLAGS="-g"
4259   fi
4260 else
4261   if test "$GCC" = yes; then
4262     CFLAGS="-O2"
4263   else
4264     CFLAGS=
4265   fi
4266 fi
4267 ac_prog_cc_stdc=no
4268 if test x$ac_prog_cc_stdc = xno
4269 then :
4270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4271 printf %s "checking for $CC option to enable C11 features... " >&6; }
4272 if test ${ac_cv_prog_cc_c11+y}
4273 then :
4274   printf %s "(cached) " >&6
4275 else $as_nop
4276   ac_cv_prog_cc_c11=no
4277 ac_save_CC=$CC
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280 $ac_c_conftest_c11_program
4281 _ACEOF
4282 for ac_arg in '' -std=gnu11
4283 do
4284   CC="$ac_save_CC $ac_arg"
4285   if ac_fn_c_try_compile "$LINENO"
4286 then :
4287   ac_cv_prog_cc_c11=$ac_arg
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.beam
4290   test "x$ac_cv_prog_cc_c11" != "xno" && break
4291 done
4292 rm -f conftest.$ac_ext
4293 CC=$ac_save_CC
4294 fi
4295
4296 if test "x$ac_cv_prog_cc_c11" = xno
4297 then :
4298   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4299 printf "%s\n" "unsupported" >&6; }
4300 else $as_nop
4301   if test "x$ac_cv_prog_cc_c11" = x
4302 then :
4303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4304 printf "%s\n" "none needed" >&6; }
4305 else $as_nop
4306   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4307 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4308      CC="$CC $ac_cv_prog_cc_c11"
4309 fi
4310   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4311   ac_prog_cc_stdc=c11
4312 fi
4313 fi
4314 if test x$ac_prog_cc_stdc = xno
4315 then :
4316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4317 printf %s "checking for $CC option to enable C99 features... " >&6; }
4318 if test ${ac_cv_prog_cc_c99+y}
4319 then :
4320   printf %s "(cached) " >&6
4321 else $as_nop
4322   ac_cv_prog_cc_c99=no
4323 ac_save_CC=$CC
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h.  */
4326 $ac_c_conftest_c99_program
4327 _ACEOF
4328 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4329 do
4330   CC="$ac_save_CC $ac_arg"
4331   if ac_fn_c_try_compile "$LINENO"
4332 then :
4333   ac_cv_prog_cc_c99=$ac_arg
4334 fi
4335 rm -f core conftest.err conftest.$ac_objext conftest.beam
4336   test "x$ac_cv_prog_cc_c99" != "xno" && break
4337 done
4338 rm -f conftest.$ac_ext
4339 CC=$ac_save_CC
4340 fi
4341
4342 if test "x$ac_cv_prog_cc_c99" = xno
4343 then :
4344   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4345 printf "%s\n" "unsupported" >&6; }
4346 else $as_nop
4347   if test "x$ac_cv_prog_cc_c99" = x
4348 then :
4349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4350 printf "%s\n" "none needed" >&6; }
4351 else $as_nop
4352   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4353 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4354      CC="$CC $ac_cv_prog_cc_c99"
4355 fi
4356   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4357   ac_prog_cc_stdc=c99
4358 fi
4359 fi
4360 if test x$ac_prog_cc_stdc = xno
4361 then :
4362   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4363 printf %s "checking for $CC option to enable C89 features... " >&6; }
4364 if test ${ac_cv_prog_cc_c89+y}
4365 then :
4366   printf %s "(cached) " >&6
4367 else $as_nop
4368   ac_cv_prog_cc_c89=no
4369 ac_save_CC=$CC
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h.  */
4372 $ac_c_conftest_c89_program
4373 _ACEOF
4374 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4375 do
4376   CC="$ac_save_CC $ac_arg"
4377   if ac_fn_c_try_compile "$LINENO"
4378 then :
4379   ac_cv_prog_cc_c89=$ac_arg
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.beam
4382   test "x$ac_cv_prog_cc_c89" != "xno" && break
4383 done
4384 rm -f conftest.$ac_ext
4385 CC=$ac_save_CC
4386 fi
4387
4388 if test "x$ac_cv_prog_cc_c89" = xno
4389 then :
4390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4391 printf "%s\n" "unsupported" >&6; }
4392 else $as_nop
4393   if test "x$ac_cv_prog_cc_c89" = x
4394 then :
4395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396 printf "%s\n" "none needed" >&6; }
4397 else $as_nop
4398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4399 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4400      CC="$CC $ac_cv_prog_cc_c89"
4401 fi
4402   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4403   ac_prog_cc_stdc=c89
4404 fi
4405 fi
4406
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
4413
4414 ac_header= ac_cache=
4415 for ac_item in $ac_header_c_list
4416 do
4417   if test $ac_cache; then
4418     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4419     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4420       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4421     fi
4422     ac_header= ac_cache=
4423   elif test $ac_header; then
4424     ac_cache=$ac_item
4425   else
4426     ac_header=$ac_item
4427   fi
4428 done
4429
4430
4431
4432
4433
4434
4435
4436
4437 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4438 then :
4439
4440 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4441
4442 fi
4443
4444
4445
4446
4447
4448
4449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4450 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4451 if test ${ac_cv_safe_to_define___extensions__+y}
4452 then :
4453   printf %s "(cached) " >&6
4454 else $as_nop
4455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h.  */
4457
4458 #         define __EXTENSIONS__ 1
4459           $ac_includes_default
4460 int
4461 main (void)
4462 {
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"
4469 then :
4470   ac_cv_safe_to_define___extensions__=yes
4471 else $as_nop
4472   ac_cv_safe_to_define___extensions__=no
4473 fi
4474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4475 fi
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4477 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4478
4479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4480 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4481 if test ${ac_cv_should_define__xopen_source+y}
4482 then :
4483   printf %s "(cached) " >&6
4484 else $as_nop
4485   ac_cv_should_define__xopen_source=no
4486     if test $ac_cv_header_wchar_h = yes
4487 then :
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490
4491           #include <wchar.h>
4492           mbstate_t x;
4493 int
4494 main (void)
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_c_try_compile "$LINENO"
4502 then :
4503
4504 else $as_nop
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507
4508             #define _XOPEN_SOURCE 500
4509             #include <wchar.h>
4510             mbstate_t x;
4511 int
4512 main (void)
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"
4520 then :
4521   ac_cv_should_define__xopen_source=yes
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4526 fi
4527 fi
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4529 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4530
4531   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4532
4533   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4534
4535   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4536
4537   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4538
4539   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4540
4541   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4542
4543   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4544
4545   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4546
4547   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4548
4549   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4550
4551   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4552
4553   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4554
4555   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4556
4557   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4558
4559   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4560
4561   if test $ac_cv_header_minix_config_h = yes
4562 then :
4563   MINIX=yes
4564     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4565
4566     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4567
4568     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4569
4570 else $as_nop
4571   MINIX=
4572 fi
4573   if test $ac_cv_safe_to_define___extensions__ = yes
4574 then :
4575   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4576
4577 fi
4578   if test $ac_cv_should_define__xopen_source = yes
4579 then :
4580   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4581
4582 fi
4583
4584 MCONFIG=./MCONFIG
4585
4586 BINARY_TYPE=bin
4587 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4588 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4589 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4590 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4591 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4592
4593 if expr $YEAR ">" 1900 > /dev/null ; then
4594         E2FSPROGS_YEAR=$YEAR
4595 elif expr $YEAR ">" 90 >/dev/null ; then
4596         E2FSPROGS_YEAR=19$YEAR
4597 else
4598         E2FSPROGS_YEAR=20$YEAR
4599 fi
4600
4601 case $MONTH in
4602 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4603 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4604 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4605 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4606 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4607 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4608 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4609 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4610 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4611 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4612 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4613 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4614 *)      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4615 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4616 esac
4617
4618 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4619 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4620
4621 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4622
4623 case $E2FSPROGS_VERSION in
4624 *-WIP|pre-*)
4625         E2FSPROGS_PKGVER="$base_ver"
4626         E2FSPROGS_PKGREL="WIP.$date_spec"
4627         ;;
4628 *)
4629         E2FSPROGS_PKGVER="$base_ver"
4630         E2FSPROGS_PKGREL="$base_rel"
4631         ;;
4632 esac
4633
4634 unset DATE MONTH YEAR base_ver pre_vers date_spec
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4636 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4638 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4640 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4641
4642
4643
4644
4645
4646
4647
4648 WITH_DIET_LIBC=
4649
4650 # Check whether --with-diet-libc was given.
4651 if test ${with_diet_libc+y}
4652 then :
4653   withval=$with_diet_libc; CC="diet cc -nostdinc"
4654 WITH_DIET_LIBC=yes
4655 if test -z "$LIBS"
4656 then
4657         LIBS="-lcompat"
4658 else
4659         LIBS="$LIBS -lcompat"
4660 fi
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4662 printf "%s\n" "CC=$CC" >&6; }
4663 fi
4664
4665
4666
4667   # Make sure we can run config.sub.
4668 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4669   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4670
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4672 printf %s "checking build system type... " >&6; }
4673 if test ${ac_cv_build+y}
4674 then :
4675   printf %s "(cached) " >&6
4676 else $as_nop
4677   ac_build_alias=$build_alias
4678 test "x$ac_build_alias" = x &&
4679   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4680 test "x$ac_build_alias" = x &&
4681   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4682 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4683   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4684
4685 fi
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4687 printf "%s\n" "$ac_cv_build" >&6; }
4688 case $ac_cv_build in
4689 *-*-*) ;;
4690 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4691 esac
4692 build=$ac_cv_build
4693 ac_save_IFS=$IFS; IFS='-'
4694 set x $ac_cv_build
4695 shift
4696 build_cpu=$1
4697 build_vendor=$2
4698 shift; shift
4699 # Remember, the first character of IFS is used to create $*,
4700 # except with old shells:
4701 build_os=$*
4702 IFS=$ac_save_IFS
4703 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4704
4705
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4707 printf %s "checking host system type... " >&6; }
4708 if test ${ac_cv_host+y}
4709 then :
4710   printf %s "(cached) " >&6
4711 else $as_nop
4712   if test "x$host_alias" = x; then
4713   ac_cv_host=$ac_cv_build
4714 else
4715   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4716     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4717 fi
4718
4719 fi
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4721 printf "%s\n" "$ac_cv_host" >&6; }
4722 case $ac_cv_host in
4723 *-*-*) ;;
4724 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4725 esac
4726 host=$ac_cv_host
4727 ac_save_IFS=$IFS; IFS='-'
4728 set x $ac_cv_host
4729 shift
4730 host_cpu=$1
4731 host_vendor=$2
4732 shift; shift
4733 # Remember, the first character of IFS is used to create $*,
4734 # except with old shells:
4735 host_os=$*
4736 IFS=$ac_save_IFS
4737 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4738
4739
4740 DLOPEN_LIB=''
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4742 printf %s "checking for dlopen in -ldl... " >&6; }
4743 if test ${ac_cv_lib_dl_dlopen+y}
4744 then :
4745   printf %s "(cached) " >&6
4746 else $as_nop
4747   ac_check_lib_save_LIBS=$LIBS
4748 LIBS="-ldl  $LIBS"
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h.  */
4751
4752 /* Override any GCC internal prototype to avoid an error.
4753    Use char because int might match the return type of a GCC
4754    builtin and then its argument prototype would still apply.  */
4755 char dlopen ();
4756 int
4757 main (void)
4758 {
4759 return dlopen ();
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_link "$LINENO"
4765 then :
4766   ac_cv_lib_dl_dlopen=yes
4767 else $as_nop
4768   ac_cv_lib_dl_dlopen=no
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4771     conftest$ac_exeext conftest.$ac_ext
4772 LIBS=$ac_check_lib_save_LIBS
4773 fi
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4775 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4776 if test "x$ac_cv_lib_dl_dlopen" = xyes
4777 then :
4778   DLOPEN_LIB=-ldl
4779 fi
4780
4781
4782
4783 # Check whether --with-cc was given.
4784 if test ${with_cc+y}
4785 then :
4786   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4787 fi
4788
4789
4790 # Check whether --with-ccopts was given.
4791 if test ${with_ccopts+y}
4792 then :
4793   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4794 fi
4795
4796
4797 # Check whether --with-ldopts was given.
4798 if test ${with_ldopts+y}
4799 then :
4800   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4801 fi
4802
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808 if test -n "$ac_tool_prefix"; then
4809   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 printf %s "checking for $ac_word... " >&6; }
4813 if test ${ac_cv_prog_CC+y}
4814 then :
4815   printf %s "(cached) " >&6
4816 else $as_nop
4817   if test -n "$CC"; then
4818   ac_cv_prog_CC="$CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   case $as_dir in #(((
4825     '') as_dir=./ ;;
4826     */) ;;
4827     *) as_dir=$as_dir/ ;;
4828   esac
4829     for ac_exec_ext in '' $ac_executable_extensions; do
4830   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4831     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4832     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836   done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 CC=$ac_cv_prog_CC
4842 if test -n "$CC"; then
4843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4844 printf "%s\n" "$CC" >&6; }
4845 else
4846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 printf "%s\n" "no" >&6; }
4848 fi
4849
4850
4851 fi
4852 if test -z "$ac_cv_prog_CC"; then
4853   ac_ct_CC=$CC
4854   # Extract the first word of "gcc", so it can be a program name with args.
4855 set dummy gcc; ac_word=$2
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 printf %s "checking for $ac_word... " >&6; }
4858 if test ${ac_cv_prog_ac_ct_CC+y}
4859 then :
4860   printf %s "(cached) " >&6
4861 else $as_nop
4862   if test -n "$ac_ct_CC"; then
4863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   case $as_dir in #(((
4870     '') as_dir=./ ;;
4871     */) ;;
4872     *) as_dir=$as_dir/ ;;
4873   esac
4874     for ac_exec_ext in '' $ac_executable_extensions; do
4875   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4876     ac_cv_prog_ac_ct_CC="gcc"
4877     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881   done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4887 if test -n "$ac_ct_CC"; then
4888   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4889 printf "%s\n" "$ac_ct_CC" >&6; }
4890 else
4891   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 printf "%s\n" "no" >&6; }
4893 fi
4894
4895   if test "x$ac_ct_CC" = x; then
4896     CC=""
4897   else
4898     case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904     CC=$ac_ct_CC
4905   fi
4906 else
4907   CC="$ac_cv_prog_CC"
4908 fi
4909
4910 if test -z "$CC"; then
4911           if test -n "$ac_tool_prefix"; then
4912     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}cc; ac_word=$2
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 printf %s "checking for $ac_word... " >&6; }
4916 if test ${ac_cv_prog_CC+y}
4917 then :
4918   printf %s "(cached) " >&6
4919 else $as_nop
4920   if test -n "$CC"; then
4921   ac_cv_prog_CC="$CC" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   case $as_dir in #(((
4928     '') as_dir=./ ;;
4929     */) ;;
4930     *) as_dir=$as_dir/ ;;
4931   esac
4932     for ac_exec_ext in '' $ac_executable_extensions; do
4933   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4934     ac_cv_prog_CC="${ac_tool_prefix}cc"
4935     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4936     break 2
4937   fi
4938 done
4939   done
4940 IFS=$as_save_IFS
4941
4942 fi
4943 fi
4944 CC=$ac_cv_prog_CC
4945 if test -n "$CC"; then
4946   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4947 printf "%s\n" "$CC" >&6; }
4948 else
4949   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 printf "%s\n" "no" >&6; }
4951 fi
4952
4953
4954   fi
4955 fi
4956 if test -z "$CC"; then
4957   # Extract the first word of "cc", so it can be a program name with args.
4958 set dummy cc; ac_word=$2
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 printf %s "checking for $ac_word... " >&6; }
4961 if test ${ac_cv_prog_CC+y}
4962 then :
4963   printf %s "(cached) " >&6
4964 else $as_nop
4965   if test -n "$CC"; then
4966   ac_cv_prog_CC="$CC" # Let the user override the test.
4967 else
4968   ac_prog_rejected=no
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   case $as_dir in #(((
4974     '') as_dir=./ ;;
4975     */) ;;
4976     *) as_dir=$as_dir/ ;;
4977   esac
4978     for ac_exec_ext in '' $ac_executable_extensions; do
4979   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4980     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4981        ac_prog_rejected=yes
4982        continue
4983      fi
4984     ac_cv_prog_CC="cc"
4985     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989   done
4990 IFS=$as_save_IFS
4991
4992 if test $ac_prog_rejected = yes; then
4993   # We found a bogon in the path, so make sure we never use it.
4994   set dummy $ac_cv_prog_CC
4995   shift
4996   if test $# != 0; then
4997     # We chose a different compiler from the bogus one.
4998     # However, it has the same basename, so the bogon will be chosen
4999     # first if we set CC to just the basename; use the full file name.
5000     shift
5001     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5002   fi
5003 fi
5004 fi
5005 fi
5006 CC=$ac_cv_prog_CC
5007 if test -n "$CC"; then
5008   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5009 printf "%s\n" "$CC" >&6; }
5010 else
5011   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 printf "%s\n" "no" >&6; }
5013 fi
5014
5015
5016 fi
5017 if test -z "$CC"; then
5018   if test -n "$ac_tool_prefix"; then
5019   for ac_prog in cl.exe
5020   do
5021     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 printf %s "checking for $ac_word... " >&6; }
5025 if test ${ac_cv_prog_CC+y}
5026 then :
5027   printf %s "(cached) " >&6
5028 else $as_nop
5029   if test -n "$CC"; then
5030   ac_cv_prog_CC="$CC" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   case $as_dir in #(((
5037     '') as_dir=./ ;;
5038     */) ;;
5039     *) as_dir=$as_dir/ ;;
5040   esac
5041     for ac_exec_ext in '' $ac_executable_extensions; do
5042   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5043     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5044     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048   done
5049 IFS=$as_save_IFS
5050
5051 fi
5052 fi
5053 CC=$ac_cv_prog_CC
5054 if test -n "$CC"; then
5055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5056 printf "%s\n" "$CC" >&6; }
5057 else
5058   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 printf "%s\n" "no" >&6; }
5060 fi
5061
5062
5063     test -n "$CC" && break
5064   done
5065 fi
5066 if test -z "$CC"; then
5067   ac_ct_CC=$CC
5068   for ac_prog in cl.exe
5069 do
5070   # Extract the first word of "$ac_prog", so it can be a program name with args.
5071 set dummy $ac_prog; ac_word=$2
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 printf %s "checking for $ac_word... " >&6; }
5074 if test ${ac_cv_prog_ac_ct_CC+y}
5075 then :
5076   printf %s "(cached) " >&6
5077 else $as_nop
5078   if test -n "$ac_ct_CC"; then
5079   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   case $as_dir in #(((
5086     '') as_dir=./ ;;
5087     */) ;;
5088     *) as_dir=$as_dir/ ;;
5089   esac
5090     for ac_exec_ext in '' $ac_executable_extensions; do
5091   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5092     ac_cv_prog_ac_ct_CC="$ac_prog"
5093     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5094     break 2
5095   fi
5096 done
5097   done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
5102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5103 if test -n "$ac_ct_CC"; then
5104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5105 printf "%s\n" "$ac_ct_CC" >&6; }
5106 else
5107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 printf "%s\n" "no" >&6; }
5109 fi
5110
5111
5112   test -n "$ac_ct_CC" && break
5113 done
5114
5115   if test "x$ac_ct_CC" = x; then
5116     CC=""
5117   else
5118     case $cross_compiling:$ac_tool_warned in
5119 yes:)
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5123 esac
5124     CC=$ac_ct_CC
5125   fi
5126 fi
5127
5128 fi
5129 if test -z "$CC"; then
5130   if test -n "$ac_tool_prefix"; then
5131   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5132 set dummy ${ac_tool_prefix}clang; ac_word=$2
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 printf %s "checking for $ac_word... " >&6; }
5135 if test ${ac_cv_prog_CC+y}
5136 then :
5137   printf %s "(cached) " >&6
5138 else $as_nop
5139   if test -n "$CC"; then
5140   ac_cv_prog_CC="$CC" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   case $as_dir in #(((
5147     '') as_dir=./ ;;
5148     */) ;;
5149     *) as_dir=$as_dir/ ;;
5150   esac
5151     for ac_exec_ext in '' $ac_executable_extensions; do
5152   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5153     ac_cv_prog_CC="${ac_tool_prefix}clang"
5154     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158   done
5159 IFS=$as_save_IFS
5160
5161 fi
5162 fi
5163 CC=$ac_cv_prog_CC
5164 if test -n "$CC"; then
5165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5166 printf "%s\n" "$CC" >&6; }
5167 else
5168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 printf "%s\n" "no" >&6; }
5170 fi
5171
5172
5173 fi
5174 if test -z "$ac_cv_prog_CC"; then
5175   ac_ct_CC=$CC
5176   # Extract the first word of "clang", so it can be a program name with args.
5177 set dummy clang; ac_word=$2
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 printf %s "checking for $ac_word... " >&6; }
5180 if test ${ac_cv_prog_ac_ct_CC+y}
5181 then :
5182   printf %s "(cached) " >&6
5183 else $as_nop
5184   if test -n "$ac_ct_CC"; then
5185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   case $as_dir in #(((
5192     '') as_dir=./ ;;
5193     */) ;;
5194     *) as_dir=$as_dir/ ;;
5195   esac
5196     for ac_exec_ext in '' $ac_executable_extensions; do
5197   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5198     ac_cv_prog_ac_ct_CC="clang"
5199     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203   done
5204 IFS=$as_save_IFS
5205
5206 fi
5207 fi
5208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5209 if test -n "$ac_ct_CC"; then
5210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5211 printf "%s\n" "$ac_ct_CC" >&6; }
5212 else
5213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 printf "%s\n" "no" >&6; }
5215 fi
5216
5217   if test "x$ac_ct_CC" = x; then
5218     CC=""
5219   else
5220     case $cross_compiling:$ac_tool_warned in
5221 yes:)
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224 ac_tool_warned=yes ;;
5225 esac
5226     CC=$ac_ct_CC
5227   fi
5228 else
5229   CC="$ac_cv_prog_CC"
5230 fi
5231
5232 fi
5233
5234
5235 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5236 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5237 as_fn_error $? "no acceptable C compiler found in \$PATH
5238 See \`config.log' for more details" "$LINENO" 5; }
5239
5240 # Provide some information about the compiler.
5241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5242 set X $ac_compile
5243 ac_compiler=$2
5244 for ac_option in --version -v -V -qversion -version; do
5245   { { ac_try="$ac_compiler $ac_option >&5"
5246 case "(($ac_try" in
5247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248   *) ac_try_echo=$ac_try;;
5249 esac
5250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251 printf "%s\n" "$ac_try_echo"; } >&5
5252   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5253   ac_status=$?
5254   if test -s conftest.err; then
5255     sed '10a\
5256 ... rest of stderr output deleted ...
5257          10q' conftest.err >conftest.er1
5258     cat conftest.er1 >&5
5259   fi
5260   rm -f conftest.er1 conftest.err
5261   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262   test $ac_status = 0; }
5263 done
5264
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5266 printf %s "checking whether the compiler supports GNU C... " >&6; }
5267 if test ${ac_cv_c_compiler_gnu+y}
5268 then :
5269   printf %s "(cached) " >&6
5270 else $as_nop
5271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h.  */
5273
5274 int
5275 main (void)
5276 {
5277 #ifndef __GNUC__
5278        choke me
5279 #endif
5280
5281   ;
5282   return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"
5286 then :
5287   ac_compiler_gnu=yes
5288 else $as_nop
5289   ac_compiler_gnu=no
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5292 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5293
5294 fi
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5296 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298
5299 if test $ac_compiler_gnu = yes; then
5300   GCC=yes
5301 else
5302   GCC=
5303 fi
5304 ac_test_CFLAGS=${CFLAGS+y}
5305 ac_save_CFLAGS=$CFLAGS
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5307 printf %s "checking whether $CC accepts -g... " >&6; }
5308 if test ${ac_cv_prog_cc_g+y}
5309 then :
5310   printf %s "(cached) " >&6
5311 else $as_nop
5312   ac_save_c_werror_flag=$ac_c_werror_flag
5313    ac_c_werror_flag=yes
5314    ac_cv_prog_cc_g=no
5315    CFLAGS="-g"
5316    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h.  */
5318
5319 int
5320 main (void)
5321 {
5322
5323   ;
5324   return 0;
5325 }
5326 _ACEOF
5327 if ac_fn_c_try_compile "$LINENO"
5328 then :
5329   ac_cv_prog_cc_g=yes
5330 else $as_nop
5331   CFLAGS=""
5332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h.  */
5334
5335 int
5336 main (void)
5337 {
5338
5339   ;
5340   return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"
5344 then :
5345
5346 else $as_nop
5347   ac_c_werror_flag=$ac_save_c_werror_flag
5348          CFLAGS="-g"
5349          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h.  */
5351
5352 int
5353 main (void)
5354 {
5355
5356   ;
5357   return 0;
5358 }
5359 _ACEOF
5360 if ac_fn_c_try_compile "$LINENO"
5361 then :
5362   ac_cv_prog_cc_g=yes
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5369    ac_c_werror_flag=$ac_save_c_werror_flag
5370 fi
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5372 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5373 if test $ac_test_CFLAGS; then
5374   CFLAGS=$ac_save_CFLAGS
5375 elif test $ac_cv_prog_cc_g = yes; then
5376   if test "$GCC" = yes; then
5377     CFLAGS="-g -O2"
5378   else
5379     CFLAGS="-g"
5380   fi
5381 else
5382   if test "$GCC" = yes; then
5383     CFLAGS="-O2"
5384   else
5385     CFLAGS=
5386   fi
5387 fi
5388 ac_prog_cc_stdc=no
5389 if test x$ac_prog_cc_stdc = xno
5390 then :
5391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5392 printf %s "checking for $CC option to enable C11 features... " >&6; }
5393 if test ${ac_cv_prog_cc_c11+y}
5394 then :
5395   printf %s "(cached) " >&6
5396 else $as_nop
5397   ac_cv_prog_cc_c11=no
5398 ac_save_CC=$CC
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h.  */
5401 $ac_c_conftest_c11_program
5402 _ACEOF
5403 for ac_arg in '' -std=gnu11
5404 do
5405   CC="$ac_save_CC $ac_arg"
5406   if ac_fn_c_try_compile "$LINENO"
5407 then :
5408   ac_cv_prog_cc_c11=$ac_arg
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.beam
5411   test "x$ac_cv_prog_cc_c11" != "xno" && break
5412 done
5413 rm -f conftest.$ac_ext
5414 CC=$ac_save_CC
5415 fi
5416
5417 if test "x$ac_cv_prog_cc_c11" = xno
5418 then :
5419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5420 printf "%s\n" "unsupported" >&6; }
5421 else $as_nop
5422   if test "x$ac_cv_prog_cc_c11" = x
5423 then :
5424   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5425 printf "%s\n" "none needed" >&6; }
5426 else $as_nop
5427   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5428 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5429      CC="$CC $ac_cv_prog_cc_c11"
5430 fi
5431   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5432   ac_prog_cc_stdc=c11
5433 fi
5434 fi
5435 if test x$ac_prog_cc_stdc = xno
5436 then :
5437   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5438 printf %s "checking for $CC option to enable C99 features... " >&6; }
5439 if test ${ac_cv_prog_cc_c99+y}
5440 then :
5441   printf %s "(cached) " >&6
5442 else $as_nop
5443   ac_cv_prog_cc_c99=no
5444 ac_save_CC=$CC
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h.  */
5447 $ac_c_conftest_c99_program
5448 _ACEOF
5449 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5450 do
5451   CC="$ac_save_CC $ac_arg"
5452   if ac_fn_c_try_compile "$LINENO"
5453 then :
5454   ac_cv_prog_cc_c99=$ac_arg
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.beam
5457   test "x$ac_cv_prog_cc_c99" != "xno" && break
5458 done
5459 rm -f conftest.$ac_ext
5460 CC=$ac_save_CC
5461 fi
5462
5463 if test "x$ac_cv_prog_cc_c99" = xno
5464 then :
5465   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5466 printf "%s\n" "unsupported" >&6; }
5467 else $as_nop
5468   if test "x$ac_cv_prog_cc_c99" = x
5469 then :
5470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5471 printf "%s\n" "none needed" >&6; }
5472 else $as_nop
5473   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5474 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5475      CC="$CC $ac_cv_prog_cc_c99"
5476 fi
5477   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5478   ac_prog_cc_stdc=c99
5479 fi
5480 fi
5481 if test x$ac_prog_cc_stdc = xno
5482 then :
5483   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5484 printf %s "checking for $CC option to enable C89 features... " >&6; }
5485 if test ${ac_cv_prog_cc_c89+y}
5486 then :
5487   printf %s "(cached) " >&6
5488 else $as_nop
5489   ac_cv_prog_cc_c89=no
5490 ac_save_CC=$CC
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h.  */
5493 $ac_c_conftest_c89_program
5494 _ACEOF
5495 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5496 do
5497   CC="$ac_save_CC $ac_arg"
5498   if ac_fn_c_try_compile "$LINENO"
5499 then :
5500   ac_cv_prog_cc_c89=$ac_arg
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.beam
5503   test "x$ac_cv_prog_cc_c89" != "xno" && break
5504 done
5505 rm -f conftest.$ac_ext
5506 CC=$ac_save_CC
5507 fi
5508
5509 if test "x$ac_cv_prog_cc_c89" = xno
5510 then :
5511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5512 printf "%s\n" "unsupported" >&6; }
5513 else $as_nop
5514   if test "x$ac_cv_prog_cc_c89" = x
5515 then :
5516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5517 printf "%s\n" "none needed" >&6; }
5518 else $as_nop
5519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5520 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5521      CC="$CC $ac_cv_prog_cc_c89"
5522 fi
5523   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5524   ac_prog_cc_stdc=c89
5525 fi
5526 fi
5527
5528 ac_ext=c
5529 ac_cpp='$CPP $CPPFLAGS'
5530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5533
5534 if test "$GCC" = yes; then
5535    RDYNAMIC="-rdynamic"
5536
5537 fi
5538 ac_ext=c
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5544 printf %s "checking how to run the C preprocessor... " >&6; }
5545 # On Suns, sometimes $CPP names a directory.
5546 if test -n "$CPP" && test -d "$CPP"; then
5547   CPP=
5548 fi
5549 if test -z "$CPP"; then
5550   if test ${ac_cv_prog_CPP+y}
5551 then :
5552   printf %s "(cached) " >&6
5553 else $as_nop
5554       # Double quotes because $CC needs to be expanded
5555     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5556     do
5557       ac_preproc_ok=false
5558 for ac_c_preproc_warn_flag in '' yes
5559 do
5560   # Use a header file that comes with gcc, so configuring glibc
5561   # with a fresh cross-compiler works.
5562   # On the NeXT, cc -E runs the code through the compiler's parser,
5563   # not just through cpp. "Syntax error" is here to catch this case.
5564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h.  */
5566 #include <limits.h>
5567                      Syntax error
5568 _ACEOF
5569 if ac_fn_c_try_cpp "$LINENO"
5570 then :
5571
5572 else $as_nop
5573   # Broken: fails on valid input.
5574 continue
5575 fi
5576 rm -f conftest.err conftest.i conftest.$ac_ext
5577
5578   # OK, works on sane cases.  Now check whether nonexistent headers
5579   # can be detected and how.
5580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h.  */
5582 #include <ac_nonexistent.h>
5583 _ACEOF
5584 if ac_fn_c_try_cpp "$LINENO"
5585 then :
5586   # Broken: success on invalid input.
5587 continue
5588 else $as_nop
5589   # Passes both tests.
5590 ac_preproc_ok=:
5591 break
5592 fi
5593 rm -f conftest.err conftest.i conftest.$ac_ext
5594
5595 done
5596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5597 rm -f conftest.i conftest.err conftest.$ac_ext
5598 if $ac_preproc_ok
5599 then :
5600   break
5601 fi
5602
5603     done
5604     ac_cv_prog_CPP=$CPP
5605
5606 fi
5607   CPP=$ac_cv_prog_CPP
5608 else
5609   ac_cv_prog_CPP=$CPP
5610 fi
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5612 printf "%s\n" "$CPP" >&6; }
5613 ac_preproc_ok=false
5614 for ac_c_preproc_warn_flag in '' yes
5615 do
5616   # Use a header file that comes with gcc, so configuring glibc
5617   # with a fresh cross-compiler works.
5618   # On the NeXT, cc -E runs the code through the compiler's parser,
5619   # not just through cpp. "Syntax error" is here to catch this case.
5620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h.  */
5622 #include <limits.h>
5623                      Syntax error
5624 _ACEOF
5625 if ac_fn_c_try_cpp "$LINENO"
5626 then :
5627
5628 else $as_nop
5629   # Broken: fails on valid input.
5630 continue
5631 fi
5632 rm -f conftest.err conftest.i conftest.$ac_ext
5633
5634   # OK, works on sane cases.  Now check whether nonexistent headers
5635   # can be detected and how.
5636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h.  */
5638 #include <ac_nonexistent.h>
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"
5641 then :
5642   # Broken: success on invalid input.
5643 continue
5644 else $as_nop
5645   # Passes both tests.
5646 ac_preproc_ok=:
5647 break
5648 fi
5649 rm -f conftest.err conftest.i conftest.$ac_ext
5650
5651 done
5652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5653 rm -f conftest.i conftest.err conftest.$ac_ext
5654 if $ac_preproc_ok
5655 then :
5656
5657 else $as_nop
5658   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5659 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5660 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5661 See \`config.log' for more details" "$LINENO" 5; }
5662 fi
5663
5664 ac_ext=c
5665 ac_cpp='$CPP $CPPFLAGS'
5666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5669
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5671 printf %s "checking for additional special compiler flags... " >&6; }
5672 if test "$GCC" = yes
5673 then
5674     case "$host_cpu" in
5675         alpha)          addcflags="-mieee" ;;
5676     esac
5677 fi
5678 if test "x$addcflags" != x
5679 then
5680     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5681 printf "%s\n" "$addcflags" >&6; }
5682     CFLAGS="$addcflags $CFLAGS"
5683 else
5684     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5685 printf "%s\n" "(none)" >&6; }
5686 fi
5687 LIB_EXT=.a
5688 STATIC_LIB_EXT=.a
5689 PROFILED_LIB_EXT=.a
5690
5691 # Check whether --with-root-prefix was given.
5692 if test ${with_root_prefix+y}
5693 then :
5694   withval=$with_root_prefix; root_prefix=$withval
5695 else $as_nop
5696   root_prefix=NONE
5697 fi
5698 # Check whether --enable-maintainer-mode was given.
5699 if test ${enable_maintainer_mode+y}
5700 then :
5701   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5702 then
5703         MAINTAINER_CMT=#
5704         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5705 printf "%s\n" "Disabling maintainer mode" >&6; }
5706 else
5707         MAINTAINER_CMT=
5708         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5709 printf "%s\n" "Enabling maintainer mode" >&6; }
5710 fi
5711
5712 else $as_nop
5713   MAINTAINER_CMT=#
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5715 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5716
5717 fi
5718
5719
5720 # Check whether --enable-symlink-install was given.
5721 if test ${enable_symlink_install+y}
5722 then :
5723   enableval=$enable_symlink_install; if test "$enableval" = "no"
5724 then
5725         LINK_INSTALL_FLAGS=-f
5726         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5727 printf "%s\n" "Disabling symlinks for install" >&6; }
5728 else
5729         LINK_INSTALL_FLAGS=-sf
5730         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5731 printf "%s\n" "Enabling symlinks for install" >&6; }
5732 fi
5733
5734 else $as_nop
5735   LINK_INSTALL_FLAGS=-f
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5737 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5738
5739 fi
5740
5741
5742 relative_symlink_defined=
5743 # Check whether --enable-relative-symlinks was given.
5744 if test ${enable_relative_symlinks+y}
5745 then :
5746   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5747 then
5748         SYMLINK_RELATIVE=
5749         relative_symlink_defined=yes
5750         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5751 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5752 else
5753         SYMLINK_RELATIVE=--relative
5754         relative_symlink_defined=yes
5755         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5756 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5757 fi
5758 fi
5759
5760 # Check whether --enable-symlink-relative-symlinks was given.
5761 if test ${enable_symlink_relative_symlinks+y}
5762 then :
5763   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5764 then
5765         SYMLINK_RELATIVE=yes
5766         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5767 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5768 else
5769         SYMLINK_RELATIVE=--relative
5770         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5771 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5772 fi
5773
5774 else $as_nop
5775   if test -z "$relative_symlink_defined"
5776 then
5777         SYMLINK_RELATIVE=
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5779 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5780 fi
5781
5782 fi
5783
5784
5785 # Check whether --enable-symlink-build was given.
5786 if test ${enable_symlink_build+y}
5787 then :
5788   enableval=$enable_symlink_build; if test "$enableval" = "no"
5789 then
5790         LINK_BUILD_FLAGS=
5791         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5792 printf "%s\n" "Disabling symlinks for build" >&6; }
5793 else
5794         LINK_BUILD_FLAGS=-s
5795         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5796 printf "%s\n" "Enabling symlinks for build" >&6; }
5797 fi
5798
5799 else $as_nop
5800   LINK_BUILD_FLAGS=
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5802 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5803
5804 fi
5805
5806
5807 # Check whether --enable-verbose-makecmds was given.
5808 if test ${enable_verbose_makecmds+y}
5809 then :
5810   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5811 then
5812         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5813 printf "%s\n" "Disabling verbose make commands" >&6; }
5814         E=@echo
5815         ES=echo
5816         Q=@
5817 else
5818         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5819 printf "%s\n" "Enabling verbose make commands" >&6; }
5820         E=@\\#
5821         ES=\\#
5822         Q=
5823 fi
5824
5825 else $as_nop
5826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5827 printf "%s\n" "Disabling verbose make commands" >&6; }
5828 E=@echo
5829 ES=echo
5830 Q=@
5831
5832 fi
5833
5834
5835
5836
5837 E2_PKG_CONFIG_STATIC=--static
5838 LDFLAG_DYNAMIC=
5839 PRIVATE_LIBS_CMT=
5840 # Check whether --enable-elf-shlibs was given.
5841 if test ${enable_elf_shlibs+y}
5842 then :
5843   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5844 then
5845         ELF_CMT=#
5846         MAKEFILE_ELF=/dev/null
5847         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5848 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5849 else
5850         E2_PKG_CONFIG_STATIC=
5851         ELF_CMT=
5852         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5853         case "$host_os" in
5854         solaris2.*)
5855                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5856         ;;
5857         esac
5858         BINARY_TYPE=elfbin
5859         LIB_EXT=.so
5860         PRIVATE_LIBS_CMT=#
5861         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5862         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5863 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5864 fi
5865
5866 else $as_nop
5867   MAKEFILE_ELF=/dev/null
5868 ELF_CMT=#
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5870 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5871
5872 fi
5873
5874
5875
5876 # Check whether --enable-bsd-shlibs was given.
5877 if test ${enable_bsd_shlibs+y}
5878 then :
5879   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5880 then
5881         BSDLIB_CMT=#
5882         MAKEFILE_BSDLIB=/dev/null
5883         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5884 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5885 else
5886         E2_PKG_CONFIG_STATIC=
5887         BSDLIB_CMT=
5888         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5889         LIB_EXT=.so
5890         case "$host_os" in
5891         darwin*)
5892                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5893                 LIB_EXT=.dylib
5894         ;;
5895         esac
5896         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5897 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5898 fi
5899
5900 else $as_nop
5901   MAKEFILE_BSDLIB=/dev/null
5902 BSDLIB_CMT=#
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5904 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5905
5906 fi
5907
5908
5909
5910 # Check whether --enable-profile was given.
5911 if test ${enable_profile+y}
5912 then :
5913   enableval=$enable_profile; if test "$enableval" = "no"
5914 then
5915         PROFILE_CMT=#
5916         MAKEFILE_PROFILE=/dev/null
5917         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5918 printf "%s\n" "Disabling profiling libraries" >&6; }
5919 else
5920         PROFILE_CMT=
5921         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5922         PROFILED_LIB_EXT=_p.a
5923         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5924 printf "%s\n" "Building profiling libraries" >&6; }
5925 fi
5926
5927 else $as_nop
5928   PROFILE_CMT=#
5929 MAKEFILE_PROFILE=/dev/null
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5931 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5932
5933 fi
5934
5935
5936
5937 # Check whether --enable-gcov was given.
5938 if test ${enable_gcov+y}
5939 then :
5940   enableval=$enable_gcov; if test "$enableval" = "yes"
5941 then
5942         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5943         LDFLAGS="-fprofile-arcs -ftest-coverage"
5944         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5945 printf "%s\n" "Enabling gcov support" >&6; }
5946 fi
5947
5948 fi
5949
5950 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5951 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5952 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5953 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5954 # Check whether --enable-hardening was given.
5955 if test ${enable_hardening+y}
5956 then :
5957   enableval=$enable_hardening; if test "$enableval" = "yes"
5958 then
5959         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5960         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5961         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5962         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5963         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5964         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5965         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5966         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5967         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5968 printf "%s\n" "Enabling hardening support" >&6; }
5969 fi
5970
5971 fi
5972
5973
5974
5975
5976
5977
5978 # Check whether --enable-jbd-debug was given.
5979 if test ${enable_jbd_debug+y}
5980 then :
5981   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5982 then
5983         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5984 printf "%s\n" "Disabling journal debugging" >&6; }
5985 else
5986
5987 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5988
5989         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5990 printf "%s\n" "Enabling journal debugging" >&6; }
5991 fi
5992
5993 else $as_nop
5994   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5995 printf "%s\n" "Disabling journal debugging by default" >&6; }
5996
5997 fi
5998
5999 # Check whether --enable-blkid-debug was given.
6000 if test ${enable_blkid_debug+y}
6001 then :
6002   enableval=$enable_blkid_debug; if test "$enableval" = "no"
6003 then
6004         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6005 printf "%s\n" "Disabling blkid debugging" >&6; }
6006 else
6007
6008 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6009
6010         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6011 printf "%s\n" "Enabling blkid debugging" >&6; }
6012 fi
6013
6014 else $as_nop
6015   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6016 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6017
6018 fi
6019
6020 # Check whether --enable-testio-debug was given.
6021 if test ${enable_testio_debug+y}
6022 then :
6023   enableval=$enable_testio_debug;
6024 if test "$enableval" = "no"
6025 then
6026         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6027 printf "%s\n" "Disabling testio debugging" >&6; }
6028         TEST_IO_CMT="#"
6029 else
6030         TEST_IO_CMT=
6031         printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6032
6033         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6034 printf "%s\n" "Enabling testio debugging" >&6; }
6035 fi
6036
6037 else $as_nop
6038   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6039 printf "%s\n" "Enabling testio debugging by default" >&6; }
6040 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6041
6042 TEST_IO_CMT=
6043
6044 fi
6045
6046
6047 # Check whether --enable-developer-features was given.
6048 if test ${enable_developer_features+y}
6049 then :
6050   enableval=$enable_developer_features;
6051 if test "$enableval" = "yes"
6052 then
6053         DEV_FEATURES_CMT=
6054         printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6055
6056         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6057 printf "%s\n" "Enabling ext4 developer features" >&6; }
6058 else
6059         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6060 printf "%s\n" "Disabling ext4 developer features" >&6; }
6061         DEV_FEATURES_CMT="#"
6062 fi
6063
6064 else $as_nop
6065   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6066 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6067 DEV_FEATURES_CMT=
6068
6069 fi
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6080         if test -n "$ac_tool_prefix"; then
6081   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 printf %s "checking for $ac_word... " >&6; }
6085 if test ${ac_cv_path_PKG_CONFIG+y}
6086 then :
6087   printf %s "(cached) " >&6
6088 else $as_nop
6089   case $PKG_CONFIG in
6090   [\\/]* | ?:[\\/]*)
6091   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6092   ;;
6093   *)
6094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097   IFS=$as_save_IFS
6098   case $as_dir in #(((
6099     '') as_dir=./ ;;
6100     */) ;;
6101     *) as_dir=$as_dir/ ;;
6102   esac
6103     for ac_exec_ext in '' $ac_executable_extensions; do
6104   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6105     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6106     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110   done
6111 IFS=$as_save_IFS
6112
6113   ;;
6114 esac
6115 fi
6116 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6117 if test -n "$PKG_CONFIG"; then
6118   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6119 printf "%s\n" "$PKG_CONFIG" >&6; }
6120 else
6121   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 printf "%s\n" "no" >&6; }
6123 fi
6124
6125
6126 fi
6127 if test -z "$ac_cv_path_PKG_CONFIG"; then
6128   ac_pt_PKG_CONFIG=$PKG_CONFIG
6129   # Extract the first word of "pkg-config", so it can be a program name with args.
6130 set dummy pkg-config; ac_word=$2
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 printf %s "checking for $ac_word... " >&6; }
6133 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6134 then :
6135   printf %s "(cached) " >&6
6136 else $as_nop
6137   case $ac_pt_PKG_CONFIG in
6138   [\\/]* | ?:[\\/]*)
6139   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6140   ;;
6141   *)
6142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145   IFS=$as_save_IFS
6146   case $as_dir in #(((
6147     '') as_dir=./ ;;
6148     */) ;;
6149     *) as_dir=$as_dir/ ;;
6150   esac
6151     for ac_exec_ext in '' $ac_executable_extensions; do
6152   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6153     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6154     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158   done
6159 IFS=$as_save_IFS
6160
6161   ;;
6162 esac
6163 fi
6164 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6165 if test -n "$ac_pt_PKG_CONFIG"; then
6166   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6167 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6168 else
6169   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 printf "%s\n" "no" >&6; }
6171 fi
6172
6173   if test "x$ac_pt_PKG_CONFIG" = x; then
6174     PKG_CONFIG=""
6175   else
6176     case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182     PKG_CONFIG=$ac_pt_PKG_CONFIG
6183   fi
6184 else
6185   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6186 fi
6187
6188 fi
6189 if test -n "$PKG_CONFIG"; then
6190         _pkg_min_version=0.9.0
6191         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6192 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6193         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6194                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6195 printf "%s\n" "yes" >&6; }
6196         else
6197                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 printf "%s\n" "no" >&6; }
6199                 PKG_CONFIG=""
6200         fi
6201 fi
6202 LIBUUID=
6203 DEPLIBUUID=
6204 STATIC_LIBUUID=
6205 DEPSTATIC_LIBUUID=
6206 PROFILED_LIBUUID=
6207 DEPPROFILED_LIBUUID=
6208 UUID_CMT=
6209 # Check whether --enable-libuuid was given.
6210 if test ${enable_libuuid+y}
6211 then :
6212   enableval=$enable_libuuid; if test "$enableval" = "no"
6213 then
6214         if test -z "$PKG_CONFIG"; then
6215                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6216         fi
6217
6218         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6219 printf %s "checking for uuid_generate in -luuid... " >&6; }
6220 if test ${ac_cv_lib_uuid_uuid_generate+y}
6221 then :
6222   printf %s "(cached) " >&6
6223 else $as_nop
6224   ac_check_lib_save_LIBS=$LIBS
6225 LIBS="-luuid  $LIBS"
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h.  */
6228
6229 /* Override any GCC internal prototype to avoid an error.
6230    Use char because int might match the return type of a GCC
6231    builtin and then its argument prototype would still apply.  */
6232 char uuid_generate ();
6233 int
6234 main (void)
6235 {
6236 return uuid_generate ();
6237   ;
6238   return 0;
6239 }
6240 _ACEOF
6241 if ac_fn_c_try_link "$LINENO"
6242 then :
6243   ac_cv_lib_uuid_uuid_generate=yes
6244 else $as_nop
6245   ac_cv_lib_uuid_uuid_generate=no
6246 fi
6247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6248     conftest$ac_exeext conftest.$ac_ext
6249 LIBS=$ac_check_lib_save_LIBS
6250 fi
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6252 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6253 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6254 then :
6255   LIBUUID=`$PKG_CONFIG --libs uuid`;
6256                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6257 else $as_nop
6258   as_fn_error $? "external uuid library not found" "$LINENO" 5
6259 fi
6260
6261         PROFILED_LIBUUID=$LIBUUID
6262         UUID_CMT=#
6263         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6264 printf "%s\n" "Disabling private uuid library" >&6; }
6265 else
6266         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6267         DEPLIBUUID=$LIBUUID
6268         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6269         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6270         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6271         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6272         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6273 printf "%s\n" "Enabling private uuid library" >&6; }
6274 fi
6275
6276 else $as_nop
6277   if test -n "$PKG_CONFIG"; then
6278         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6279 printf %s "checking for uuid_generate in -luuid... " >&6; }
6280 if test ${ac_cv_lib_uuid_uuid_generate+y}
6281 then :
6282   printf %s "(cached) " >&6
6283 else $as_nop
6284   ac_check_lib_save_LIBS=$LIBS
6285 LIBS="-luuid  $LIBS"
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h.  */
6288
6289 /* Override any GCC internal prototype to avoid an error.
6290    Use char because int might match the return type of a GCC
6291    builtin and then its argument prototype would still apply.  */
6292 char uuid_generate ();
6293 int
6294 main (void)
6295 {
6296 return uuid_generate ();
6297   ;
6298   return 0;
6299 }
6300 _ACEOF
6301 if ac_fn_c_try_link "$LINENO"
6302 then :
6303   ac_cv_lib_uuid_uuid_generate=yes
6304 else $as_nop
6305   ac_cv_lib_uuid_uuid_generate=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6308     conftest$ac_exeext conftest.$ac_ext
6309 LIBS=$ac_check_lib_save_LIBS
6310 fi
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6312 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6313 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6314 then :
6315   LIBUUID=`$PKG_CONFIG --libs uuid`;
6316                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6317 fi
6318
6319 fi
6320 if test -n "$LIBUUID"; then
6321         PROFILED_LIBUUID=$LIBUUID
6322         UUID_CMT=#
6323         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6324 printf "%s\n" "Using system uuid by default" >&6; }
6325 else
6326         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6327         DEPLIBUUID=$LIBUUID
6328         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6329         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6330         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6331         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6332         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6333 printf "%s\n" "Enabling private uuid library by default" >&6; }
6334 fi
6335
6336 fi
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6353         if test -n "$ac_tool_prefix"; then
6354   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 printf %s "checking for $ac_word... " >&6; }
6358 if test ${ac_cv_path_PKG_CONFIG+y}
6359 then :
6360   printf %s "(cached) " >&6
6361 else $as_nop
6362   case $PKG_CONFIG in
6363   [\\/]* | ?:[\\/]*)
6364   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6365   ;;
6366   *)
6367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   case $as_dir in #(((
6372     '') as_dir=./ ;;
6373     */) ;;
6374     *) as_dir=$as_dir/ ;;
6375   esac
6376     for ac_exec_ext in '' $ac_executable_extensions; do
6377   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6378     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6379     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383   done
6384 IFS=$as_save_IFS
6385
6386   ;;
6387 esac
6388 fi
6389 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6390 if test -n "$PKG_CONFIG"; then
6391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6392 printf "%s\n" "$PKG_CONFIG" >&6; }
6393 else
6394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 printf "%s\n" "no" >&6; }
6396 fi
6397
6398
6399 fi
6400 if test -z "$ac_cv_path_PKG_CONFIG"; then
6401   ac_pt_PKG_CONFIG=$PKG_CONFIG
6402   # Extract the first word of "pkg-config", so it can be a program name with args.
6403 set dummy pkg-config; ac_word=$2
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 printf %s "checking for $ac_word... " >&6; }
6406 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6407 then :
6408   printf %s "(cached) " >&6
6409 else $as_nop
6410   case $ac_pt_PKG_CONFIG in
6411   [\\/]* | ?:[\\/]*)
6412   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6413   ;;
6414   *)
6415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418   IFS=$as_save_IFS
6419   case $as_dir in #(((
6420     '') as_dir=./ ;;
6421     */) ;;
6422     *) as_dir=$as_dir/ ;;
6423   esac
6424     for ac_exec_ext in '' $ac_executable_extensions; do
6425   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6426     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6427     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6428     break 2
6429   fi
6430 done
6431   done
6432 IFS=$as_save_IFS
6433
6434   ;;
6435 esac
6436 fi
6437 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6438 if test -n "$ac_pt_PKG_CONFIG"; then
6439   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6440 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6441 else
6442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 printf "%s\n" "no" >&6; }
6444 fi
6445
6446   if test "x$ac_pt_PKG_CONFIG" = x; then
6447     PKG_CONFIG=""
6448   else
6449     case $cross_compiling:$ac_tool_warned in
6450 yes:)
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6454 esac
6455     PKG_CONFIG=$ac_pt_PKG_CONFIG
6456   fi
6457 else
6458   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6459 fi
6460
6461 fi
6462 if test -n "$PKG_CONFIG"; then
6463         _pkg_min_version=0.9.0
6464         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6465 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6466         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6467                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6468 printf "%s\n" "yes" >&6; }
6469         else
6470                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 printf "%s\n" "no" >&6; }
6472                 PKG_CONFIG=""
6473         fi
6474 fi
6475 LIBBLKID=
6476 DEPLIBBLKID=
6477 STATIC_LIBBLKID=
6478 DEPSTATIC_LIBBLKID=
6479 PROFILED_LIBBLKID=
6480 DEPPROFILED_LIBBLKID=
6481 BLKID_CMT=
6482
6483 # Check whether --enable-libblkid was given.
6484 if test ${enable_libblkid+y}
6485 then :
6486   enableval=$enable_libblkid; if test "$enableval" = "no"
6487 then
6488         if test -z "$PKG_CONFIG"; then
6489                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6490         fi
6491
6492         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6493 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6494 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6495 then :
6496   printf %s "(cached) " >&6
6497 else $as_nop
6498   ac_check_lib_save_LIBS=$LIBS
6499 LIBS="-lblkid -luuid $LIBS"
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h.  */
6502
6503 /* Override any GCC internal prototype to avoid an error.
6504    Use char because int might match the return type of a GCC
6505    builtin and then its argument prototype would still apply.  */
6506 char blkid_get_cache ();
6507 int
6508 main (void)
6509 {
6510 return blkid_get_cache ();
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 if ac_fn_c_try_link "$LINENO"
6516 then :
6517   ac_cv_lib_blkid_blkid_get_cache=yes
6518 else $as_nop
6519   ac_cv_lib_blkid_blkid_get_cache=no
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6522     conftest$ac_exeext conftest.$ac_ext
6523 LIBS=$ac_check_lib_save_LIBS
6524 fi
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6526 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6527 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6528 then :
6529   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6530                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6531 else $as_nop
6532   as_fn_error $? "external blkid library not found" "$LINENO" 5
6533 fi
6534
6535         BLKID_CMT=#
6536         PROFILED_LIBBLKID=$LIBBLKID
6537         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6538 printf "%s\n" "Disabling private blkid library" >&6; }
6539 else
6540         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6541         DEPLIBBLKID=$LIBBLKID
6542         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6543         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6544         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6545         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6546         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6547
6548         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6549 printf "%s\n" "Enabling private blkid library" >&6; }
6550 fi
6551
6552 else $as_nop
6553   if test -n "$PKG_CONFIG"; then
6554         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6555 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6556 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6557 then :
6558   printf %s "(cached) " >&6
6559 else $as_nop
6560   ac_check_lib_save_LIBS=$LIBS
6561 LIBS="-lblkid  $LIBS"
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h.  */
6564
6565 /* Override any GCC internal prototype to avoid an error.
6566    Use char because int might match the return type of a GCC
6567    builtin and then its argument prototype would still apply.  */
6568 char blkid_get_cache ();
6569 int
6570 main (void)
6571 {
6572 return blkid_get_cache ();
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 if ac_fn_c_try_link "$LINENO"
6578 then :
6579   ac_cv_lib_blkid_blkid_get_cache=yes
6580 else $as_nop
6581   ac_cv_lib_blkid_blkid_get_cache=no
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6584     conftest$ac_exeext conftest.$ac_ext
6585 LIBS=$ac_check_lib_save_LIBS
6586 fi
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6588 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6589 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6590 then :
6591   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6592                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6593 fi
6594
6595 fi
6596 if test -n "$LIBBLKID"; then
6597         BLKID_CMT=#
6598         PROFILED_LIBBLKID=$LIBBLKID
6599         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6600 printf "%s\n" "Using system blkid library by default" >&6; }
6601 else
6602         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6603         DEPLIBBLKID=$LIBBLKID
6604         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6605         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6606         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6607         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6608         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6609
6610         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6611 printf "%s\n" "Enabling private blkid library by default" >&6; }
6612 fi
6613
6614 fi
6615
6616
6617
6618
6619
6620
6621
6622
6623 ALL_CMT=
6624 SUBSET_CMT=
6625 # Check whether --enable-subset was given.
6626 if test ${enable_subset+y}
6627 then :
6628   enableval=$enable_subset; if test "$enableval" = "no"
6629 then
6630         SUBSET_CMT=#
6631         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6632 printf "%s\n" "Disabling subset-only build" >&6; }
6633 else
6634         ALL_CMT=#
6635         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6636 printf "%s\n" "Enabling subset-only-build" >&6; }
6637 fi
6638
6639 fi
6640
6641
6642
6643
6644 # Check whether --enable-backtrace was given.
6645 if test ${enable_backtrace+y}
6646 then :
6647   enableval=$enable_backtrace; if test "$enableval" = "no"
6648 then
6649         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6650 printf "%s\n" "Disabling use of backtrace" >&6; }
6651         printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6652
6653 else
6654         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6655 printf "%s\n" "Enabling use of backtrace" >&6; }
6656 fi
6657
6658 else $as_nop
6659   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6660 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6661
6662 fi
6663
6664 # Check whether --enable-debugfs was given.
6665 if test ${enable_debugfs+y}
6666 then :
6667   enableval=$enable_debugfs; if test "$enableval" = "no"
6668 then
6669         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6670 printf "%s\n" "Disabling debugfs support" >&6; }
6671         DEBUGFS_CMT="#"
6672 else
6673         DEBUGFS_CMT=
6674         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6675 printf "%s\n" "Enabling debugfs support" >&6; }
6676 fi
6677
6678 else $as_nop
6679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6680 printf "%s\n" "Enabling debugfs support by default" >&6; }
6681 DEBUGFS_CMT=
6682
6683 fi
6684
6685
6686 # Check whether --enable-imager was given.
6687 if test ${enable_imager+y}
6688 then :
6689   enableval=$enable_imager; if test "$enableval" = "no"
6690 then
6691         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6692 printf "%s\n" "Disabling e2image support" >&6; }
6693         IMAGER_CMT="#"
6694 else
6695         IMAGER_CMT=
6696         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6697 printf "%s\n" "Enabling e2image support" >&6; }
6698 fi
6699
6700 else $as_nop
6701   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6702 printf "%s\n" "Enabling e2image support by default" >&6; }
6703 IMAGER_CMT=
6704
6705 fi
6706
6707
6708 # Check whether --enable-resizer was given.
6709 if test ${enable_resizer+y}
6710 then :
6711   enableval=$enable_resizer; if test "$enableval" = "no"
6712 then
6713         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6714 printf "%s\n" "Disabling e2resize support" >&6; }
6715         RESIZER_CMT="#"
6716 else
6717         RESIZER_CMT=
6718         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6719 printf "%s\n" "Enabling e2resize support" >&6; }
6720 fi
6721
6722 else $as_nop
6723   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6724 printf "%s\n" "Enabling e2resize support by default" >&6; }
6725 RESIZER_CMT=
6726
6727 fi
6728
6729
6730 # Check whether --enable-defrag was given.
6731 if test ${enable_defrag+y}
6732 then :
6733   enableval=$enable_defrag; if test "$enableval" = "no"
6734 then
6735         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6736 printf "%s\n" "Disabling e4defrag support" >&6; }
6737         DEFRAG_CMT="#"
6738 else
6739         DEFRAG_CMT=
6740         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6741 printf "%s\n" "Enabling e4defrag support" >&6; }
6742 fi
6743
6744 else $as_nop
6745   if test -z "$WITH_DIET_LIBC"
6746 then
6747         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6748 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6749         DEFRAG_CMT=
6750 else
6751         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6752 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6753         DEFRAG_CMT="#"
6754 fi
6755
6756 fi
6757
6758
6759 # Check whether --enable-fsck was given.
6760 if test ${enable_fsck+y}
6761 then :
6762   enableval=$enable_fsck; if test "$enableval" = "no"
6763 then
6764         FSCK_PROG='' FSCK_MAN=''
6765         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6766 printf "%s\n" "Not building fsck wrapper" >&6; }
6767 else
6768         FSCK_PROG=fsck FSCK_MAN=fsck.8
6769         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6770 printf "%s\n" "Building fsck wrapper" >&6; }
6771 fi
6772
6773 else $as_nop
6774   case "$host_os" in
6775   gnu*)
6776     FSCK_PROG='' FSCK_MAN=''
6777     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6778 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6779     ;;
6780   *)
6781     FSCK_PROG=fsck FSCK_MAN=fsck.8
6782     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6783 printf "%s\n" "Building fsck wrapper by default" >&6; }
6784 esac
6785
6786 fi
6787
6788
6789
6790 # Check whether --enable-e2initrd-helper was given.
6791 if test ${enable_e2initrd_helper+y}
6792 then :
6793   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6794 then
6795         E2INITRD_PROG='' E2INITRD_MAN=''
6796         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6797 printf "%s\n" "Not building e2initrd helper" >&6; }
6798 else
6799         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6800         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6801 printf "%s\n" "Building e2initrd helper" >&6; }
6802 fi
6803
6804 else $as_nop
6805   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6807 printf "%s\n" "Building e2initrd helper by default" >&6; }
6808
6809 fi
6810
6811
6812
6813 # Check whether --enable-tls was given.
6814 if test ${enable_tls+y}
6815 then :
6816   enableval=$enable_tls; if test "$enableval" = "no"
6817 then
6818         try_tls=""
6819         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6820 printf "%s\n" "Disabling thread local support" >&6; }
6821 else
6822         try_tls="yes"
6823         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6824 printf "%s\n" "Enabling thread local support" >&6; }
6825 fi
6826
6827 else $as_nop
6828   if test -n "$WITH_DIET_LIBC"
6829 then
6830         try_tls=""
6831         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6832 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6833 else
6834         try_tls="yes"
6835         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6836 printf "%s\n" "Try using thread local support by default" >&6; }
6837 fi
6838
6839 fi
6840
6841 if test "$try_tls" = "yes"
6842 then
6843
6844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6845 printf %s "checking for thread local storage (TLS) class... " >&6; }
6846   if test ${ac_cv_tls+y}
6847 then :
6848   printf %s "(cached) " >&6
6849 else $as_nop
6850
6851     ax_tls_keywords="__thread __declspec(thread) none"
6852     for ax_tls_keyword in $ax_tls_keywords; do
6853        case $ax_tls_keyword in
6854           none) ac_cv_tls=none ; break ;;
6855           *)
6856              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h.  */
6858 #include <stdlib.h>
6859                  static void
6860                  foo(void) {
6861                  static  $ax_tls_keyword  int bar;
6862                  exit(1);
6863                  }
6864 int
6865 main (void)
6866 {
6867
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872 if ac_fn_c_try_compile "$LINENO"
6873 then :
6874   ac_cv_tls=$ax_tls_keyword ; break
6875 else $as_nop
6876   ac_cv_tls=none
6877
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6880           esac
6881     done
6882
6883 fi
6884
6885
6886   if test "$ac_cv_tls" != "none"; then
6887
6888 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6889
6890   fi
6891   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6892 printf "%s\n" "$ac_cv_tls" >&6; }
6893
6894 fi
6895
6896 # Check whether --with-pthread was given.
6897 if test ${with_pthread+y}
6898 then :
6899   withval=$with_pthread; if test "$withval" = "no"
6900 then
6901         try_pthread=""
6902         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6903 printf "%s\n" "Disabling pthread support" >&6; }
6904 else
6905         try_pthread="yes"
6906         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6907 printf "%s\n" "Testing for pthread support" >&6; }
6908 fi
6909
6910 else $as_nop
6911   try_pthread="yes"
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6913 printf "%s\n" "Try testing for pthread support by default" >&6; }
6914
6915 fi
6916
6917 if test "$try_pthread" = "yes"
6918 then
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6920 printf %s "checking for a sed that does not truncate output... " >&6; }
6921 if test ${ac_cv_path_SED+y}
6922 then :
6923   printf %s "(cached) " >&6
6924 else $as_nop
6925             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6926      for ac_i in 1 2 3 4 5 6 7; do
6927        ac_script="$ac_script$as_nl$ac_script"
6928      done
6929      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6930      { ac_script=; unset ac_script;}
6931      if test -z "$SED"; then
6932   ac_path_SED_found=false
6933   # Loop through the user's path and test for each of PROGNAME-LIST
6934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   case $as_dir in #(((
6939     '') as_dir=./ ;;
6940     */) ;;
6941     *) as_dir=$as_dir/ ;;
6942   esac
6943     for ac_prog in sed gsed
6944    do
6945     for ac_exec_ext in '' $ac_executable_extensions; do
6946       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6947       as_fn_executable_p "$ac_path_SED" || continue
6948 # Check for GNU ac_path_SED and select it if it is found.
6949   # Check for GNU $ac_path_SED
6950 case `"$ac_path_SED" --version 2>&1` in
6951 *GNU*)
6952   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6953 *)
6954   ac_count=0
6955   printf %s 0123456789 >"conftest.in"
6956   while :
6957   do
6958     cat "conftest.in" "conftest.in" >"conftest.tmp"
6959     mv "conftest.tmp" "conftest.in"
6960     cp "conftest.in" "conftest.nl"
6961     printf "%s\n" '' >> "conftest.nl"
6962     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6963     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6964     as_fn_arith $ac_count + 1 && ac_count=$as_val
6965     if test $ac_count -gt ${ac_path_SED_max-0}; then
6966       # Best one so far, save it but keep looking for a better one
6967       ac_cv_path_SED="$ac_path_SED"
6968       ac_path_SED_max=$ac_count
6969     fi
6970     # 10*(2^10) chars as input seems more than enough
6971     test $ac_count -gt 10 && break
6972   done
6973   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6974 esac
6975
6976       $ac_path_SED_found && break 3
6977     done
6978   done
6979   done
6980 IFS=$as_save_IFS
6981   if test -z "$ac_cv_path_SED"; then
6982     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6983   fi
6984 else
6985   ac_cv_path_SED=$SED
6986 fi
6987
6988 fi
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6990 printf "%s\n" "$ac_cv_path_SED" >&6; }
6991  SED="$ac_cv_path_SED"
6992   rm -f conftest.sed
6993
6994
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6996 printf %s "checking for grep that handles long lines and -e... " >&6; }
6997 if test ${ac_cv_path_GREP+y}
6998 then :
6999   printf %s "(cached) " >&6
7000 else $as_nop
7001   if test -z "$GREP"; then
7002   ac_path_GREP_found=false
7003   # Loop through the user's path and test for each of PROGNAME-LIST
7004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7006 do
7007   IFS=$as_save_IFS
7008   case $as_dir in #(((
7009     '') as_dir=./ ;;
7010     */) ;;
7011     *) as_dir=$as_dir/ ;;
7012   esac
7013     for ac_prog in grep ggrep
7014    do
7015     for ac_exec_ext in '' $ac_executable_extensions; do
7016       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7017       as_fn_executable_p "$ac_path_GREP" || continue
7018 # Check for GNU ac_path_GREP and select it if it is found.
7019   # Check for GNU $ac_path_GREP
7020 case `"$ac_path_GREP" --version 2>&1` in
7021 *GNU*)
7022   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7023 *)
7024   ac_count=0
7025   printf %s 0123456789 >"conftest.in"
7026   while :
7027   do
7028     cat "conftest.in" "conftest.in" >"conftest.tmp"
7029     mv "conftest.tmp" "conftest.in"
7030     cp "conftest.in" "conftest.nl"
7031     printf "%s\n" 'GREP' >> "conftest.nl"
7032     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7033     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7034     as_fn_arith $ac_count + 1 && ac_count=$as_val
7035     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7036       # Best one so far, save it but keep looking for a better one
7037       ac_cv_path_GREP="$ac_path_GREP"
7038       ac_path_GREP_max=$ac_count
7039     fi
7040     # 10*(2^10) chars as input seems more than enough
7041     test $ac_count -gt 10 && break
7042   done
7043   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7044 esac
7045
7046       $ac_path_GREP_found && break 3
7047     done
7048   done
7049   done
7050 IFS=$as_save_IFS
7051   if test -z "$ac_cv_path_GREP"; then
7052     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7053   fi
7054 else
7055   ac_cv_path_GREP=$GREP
7056 fi
7057
7058 fi
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7060 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7061  GREP="$ac_cv_path_GREP"
7062
7063
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7065 printf %s "checking for egrep... " >&6; }
7066 if test ${ac_cv_path_EGREP+y}
7067 then :
7068   printf %s "(cached) " >&6
7069 else $as_nop
7070   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7071    then ac_cv_path_EGREP="$GREP -E"
7072    else
7073      if test -z "$EGREP"; then
7074   ac_path_EGREP_found=false
7075   # Loop through the user's path and test for each of PROGNAME-LIST
7076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7078 do
7079   IFS=$as_save_IFS
7080   case $as_dir in #(((
7081     '') as_dir=./ ;;
7082     */) ;;
7083     *) as_dir=$as_dir/ ;;
7084   esac
7085     for ac_prog in egrep
7086    do
7087     for ac_exec_ext in '' $ac_executable_extensions; do
7088       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7089       as_fn_executable_p "$ac_path_EGREP" || continue
7090 # Check for GNU ac_path_EGREP and select it if it is found.
7091   # Check for GNU $ac_path_EGREP
7092 case `"$ac_path_EGREP" --version 2>&1` in
7093 *GNU*)
7094   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7095 *)
7096   ac_count=0
7097   printf %s 0123456789 >"conftest.in"
7098   while :
7099   do
7100     cat "conftest.in" "conftest.in" >"conftest.tmp"
7101     mv "conftest.tmp" "conftest.in"
7102     cp "conftest.in" "conftest.nl"
7103     printf "%s\n" 'EGREP' >> "conftest.nl"
7104     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7105     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7106     as_fn_arith $ac_count + 1 && ac_count=$as_val
7107     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7108       # Best one so far, save it but keep looking for a better one
7109       ac_cv_path_EGREP="$ac_path_EGREP"
7110       ac_path_EGREP_max=$ac_count
7111     fi
7112     # 10*(2^10) chars as input seems more than enough
7113     test $ac_count -gt 10 && break
7114   done
7115   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7116 esac
7117
7118       $ac_path_EGREP_found && break 3
7119     done
7120   done
7121   done
7122 IFS=$as_save_IFS
7123   if test -z "$ac_cv_path_EGREP"; then
7124     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7125   fi
7126 else
7127   ac_cv_path_EGREP=$EGREP
7128 fi
7129
7130    fi
7131 fi
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7133 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7134  EGREP="$ac_cv_path_EGREP"
7135
7136
7137
7138
7139
7140
7141 ac_ext=c
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146
7147 ax_pthread_ok=no
7148
7149 # We used to check for pthread.h first, but this fails if pthread.h
7150 # requires special compiler flags (e.g. on Tru64 or Sequent).
7151 # It gets checked for in the link test anyway.
7152
7153 # First of all, check if the user has set any of the PTHREAD_LIBS,
7154 # etcetera environment variables, and if threads linking works using
7155 # them:
7156 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7157         ax_pthread_save_CC="$CC"
7158         ax_pthread_save_CFLAGS="$CFLAGS"
7159         ax_pthread_save_LIBS="$LIBS"
7160         if test "x$PTHREAD_CC" != "x"
7161 then :
7162   CC="$PTHREAD_CC"
7163 fi
7164         if test "x$PTHREAD_CXX" != "x"
7165 then :
7166   CXX="$PTHREAD_CXX"
7167 fi
7168         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7169         LIBS="$PTHREAD_LIBS $LIBS"
7170         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7171 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7172         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h.  */
7174
7175 /* Override any GCC internal prototype to avoid an error.
7176    Use char because int might match the return type of a GCC
7177    builtin and then its argument prototype would still apply.  */
7178 char pthread_join ();
7179 int
7180 main (void)
7181 {
7182 return pthread_join ();
7183   ;
7184   return 0;
7185 }
7186 _ACEOF
7187 if ac_fn_c_try_link "$LINENO"
7188 then :
7189   ax_pthread_ok=yes
7190 fi
7191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7192     conftest$ac_exeext conftest.$ac_ext
7193         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7194 printf "%s\n" "$ax_pthread_ok" >&6; }
7195         if test "x$ax_pthread_ok" = "xno"; then
7196                 PTHREAD_LIBS=""
7197                 PTHREAD_CFLAGS=""
7198         fi
7199         CC="$ax_pthread_save_CC"
7200         CFLAGS="$ax_pthread_save_CFLAGS"
7201         LIBS="$ax_pthread_save_LIBS"
7202 fi
7203
7204 # We must check for the threads library under a number of different
7205 # names; the ordering is very important because some systems
7206 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7207 # libraries is broken (non-POSIX).
7208
7209 # Create a list of thread flags to try. Items with a "," contain both
7210 # C compiler flags (before ",") and linker flags (after ","). Other items
7211 # starting with a "-" are C compiler flags, and remaining items are
7212 # library names, except for "none" which indicates that we try without
7213 # any flags at all, and "pthread-config" which is a program returning
7214 # the flags for the Pth emulation library.
7215
7216 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7217
7218 # The ordering *is* (sometimes) important.  Some notes on the
7219 # individual items follow:
7220
7221 # pthreads: AIX (must check this before -lpthread)
7222 # none: in case threads are in libc; should be tried before -Kthread and
7223 #       other compiler flags to prevent continual compiler warnings
7224 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7225 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7226 #           (Note: HP C rejects this with "bad form for `-t' option")
7227 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7228 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7229 #      doesn't hurt to check since this sometimes defines pthreads and
7230 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7231 #      is present but should not be used directly; and before -mthreads,
7232 #      because the compiler interprets this as "-mt" + "-hreads")
7233 # -mthreads: Mingw32/gcc, Lynx/gcc
7234 # pthread: Linux, etcetera
7235 # --thread-safe: KAI C++
7236 # pthread-config: use pthread-config program (for GNU Pth library)
7237
7238 case $host_os in
7239
7240         freebsd*)
7241
7242         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7243         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7244
7245         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7246         ;;
7247
7248         hpux*)
7249
7250         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7251         # multi-threading and also sets -lpthread."
7252
7253         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7254         ;;
7255
7256         openedition*)
7257
7258         # IBM z/OS requires a feature-test macro to be defined in order to
7259         # enable POSIX threads at all, so give the user a hint if this is
7260         # not set. (We don't define these ourselves, as they can affect
7261         # other portions of the system API in unpredictable ways.)
7262
7263         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h.  */
7265
7266 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7267              AX_PTHREAD_ZOS_MISSING
7268 #            endif
7269
7270 _ACEOF
7271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7272   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7273 then :
7274   { 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
7275 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7276 fi
7277 rm -rf conftest*
7278
7279         ;;
7280
7281         solaris*)
7282
7283         # On Solaris (at least, for some versions), libc contains stubbed
7284         # (non-functional) versions of the pthreads routines, so link-based
7285         # tests will erroneously succeed. (N.B.: The stubs are missing
7286         # pthread_cleanup_push, or rather a function called by this macro,
7287         # so we could check for that, but who knows whether they'll stub
7288         # that too in a future libc.)  So we'll check first for the
7289         # standard Solaris way of linking pthreads (-mt -lpthread).
7290
7291         ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7292         ;;
7293 esac
7294
7295 # Are we compiling with Clang?
7296
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7298 printf %s "checking whether $CC is Clang... " >&6; }
7299 if test ${ax_cv_PTHREAD_CLANG+y}
7300 then :
7301   printf %s "(cached) " >&6
7302 else $as_nop
7303   ax_cv_PTHREAD_CLANG=no
7304      # Note that Autoconf sets GCC=yes for Clang as well as GCC
7305      if test "x$GCC" = "xyes"; then
7306         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h.  */
7308 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7309 #            if defined(__clang__) && defined(__llvm__)
7310              AX_PTHREAD_CC_IS_CLANG
7311 #            endif
7312
7313 _ACEOF
7314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7315   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7316 then :
7317   ax_cv_PTHREAD_CLANG=yes
7318 fi
7319 rm -rf conftest*
7320
7321      fi
7322
7323 fi
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7325 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7326 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7327
7328
7329 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7330
7331 # Note that for GCC and Clang -pthread generally implies -lpthread,
7332 # except when -nostdlib is passed.
7333 # This is problematic using libtool to build C++ shared libraries with pthread:
7334 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7335 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7336 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7337 # To solve this, first try -pthread together with -lpthread for GCC
7338
7339 if test "x$GCC" = "xyes"
7340 then :
7341   ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7342 fi
7343
7344 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7345
7346 if test "x$ax_pthread_clang" = "xyes"
7347 then :
7348   ax_pthread_flags="-pthread,-lpthread -pthread"
7349 fi
7350
7351
7352 # The presence of a feature test macro requesting re-entrant function
7353 # definitions is, on some systems, a strong hint that pthreads support is
7354 # correctly enabled
7355
7356 case $host_os in
7357         darwin* | hpux* | linux* | osf* | solaris*)
7358         ax_pthread_check_macro="_REENTRANT"
7359         ;;
7360
7361         aix*)
7362         ax_pthread_check_macro="_THREAD_SAFE"
7363         ;;
7364
7365         *)
7366         ax_pthread_check_macro="--"
7367         ;;
7368 esac
7369 if test "x$ax_pthread_check_macro" = "x--"
7370 then :
7371   ax_pthread_check_cond=0
7372 else $as_nop
7373   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7374 fi
7375
7376
7377 if test "x$ax_pthread_ok" = "xno"; then
7378 for ax_pthread_try_flag in $ax_pthread_flags; do
7379
7380         case $ax_pthread_try_flag in
7381                 none)
7382                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7383 printf %s "checking whether pthreads work without any flags... " >&6; }
7384                 ;;
7385
7386                 *,*)
7387                 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7388                 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7389                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7390 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7391                 ;;
7392
7393                 -*)
7394                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7395 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7396                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7397                 ;;
7398
7399                 pthread-config)
7400                 # Extract the first word of "pthread-config", so it can be a program name with args.
7401 set dummy pthread-config; ac_word=$2
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 printf %s "checking for $ac_word... " >&6; }
7404 if test ${ac_cv_prog_ax_pthread_config+y}
7405 then :
7406   printf %s "(cached) " >&6
7407 else $as_nop
7408   if test -n "$ax_pthread_config"; then
7409   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   case $as_dir in #(((
7416     '') as_dir=./ ;;
7417     */) ;;
7418     *) as_dir=$as_dir/ ;;
7419   esac
7420     for ac_exec_ext in '' $ac_executable_extensions; do
7421   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7422     ac_cv_prog_ax_pthread_config="yes"
7423     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7424     break 2
7425   fi
7426 done
7427   done
7428 IFS=$as_save_IFS
7429
7430   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7431 fi
7432 fi
7433 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7434 if test -n "$ax_pthread_config"; then
7435   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7436 printf "%s\n" "$ax_pthread_config" >&6; }
7437 else
7438   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 printf "%s\n" "no" >&6; }
7440 fi
7441
7442
7443                 if test "x$ax_pthread_config" = "xno"
7444 then :
7445   continue
7446 fi
7447                 PTHREAD_CFLAGS="`pthread-config --cflags`"
7448                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7449                 ;;
7450
7451                 *)
7452                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7453 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7454                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7455                 ;;
7456         esac
7457
7458         ax_pthread_save_CFLAGS="$CFLAGS"
7459         ax_pthread_save_LIBS="$LIBS"
7460         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7461         LIBS="$PTHREAD_LIBS $LIBS"
7462
7463         # Check for various functions.  We must include pthread.h,
7464         # since some functions may be macros.  (On the Sequent, we
7465         # need a special flag -Kthread to make this header compile.)
7466         # We check for pthread_join because it is in -lpthread on IRIX
7467         # while pthread_create is in libc.  We check for pthread_attr_init
7468         # due to DEC craziness with -lpthreads.  We check for
7469         # pthread_cleanup_push because it is one of the few pthread
7470         # functions on Solaris that doesn't have a non-functional libc stub.
7471         # We try pthread_create on general principles.
7472
7473         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475 #include <pthread.h>
7476 #                       if $ax_pthread_check_cond
7477 #                        error "$ax_pthread_check_macro must be defined"
7478 #                       endif
7479                         static void *some_global = NULL;
7480                         static void routine(void *a)
7481                           {
7482                              /* To avoid any unused-parameter or
7483                                 unused-but-set-parameter warning.  */
7484                              some_global = a;
7485                           }
7486                         static void *start_routine(void *a) { return a; }
7487 int
7488 main (void)
7489 {
7490 pthread_t th; pthread_attr_t attr;
7491                         pthread_create(&th, 0, start_routine, 0);
7492                         pthread_join(th, 0);
7493                         pthread_attr_init(&attr);
7494                         pthread_cleanup_push(routine, 0);
7495                         pthread_cleanup_pop(0) /* ; */
7496   ;
7497   return 0;
7498 }
7499 _ACEOF
7500 if ac_fn_c_try_link "$LINENO"
7501 then :
7502   ax_pthread_ok=yes
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7505     conftest$ac_exeext conftest.$ac_ext
7506
7507         CFLAGS="$ax_pthread_save_CFLAGS"
7508         LIBS="$ax_pthread_save_LIBS"
7509
7510         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7511 printf "%s\n" "$ax_pthread_ok" >&6; }
7512         if test "x$ax_pthread_ok" = "xyes"
7513 then :
7514   break
7515 fi
7516
7517         PTHREAD_LIBS=""
7518         PTHREAD_CFLAGS=""
7519 done
7520 fi
7521
7522
7523 # Clang needs special handling, because older versions handle the -pthread
7524 # option in a rather... idiosyncratic way
7525
7526 if test "x$ax_pthread_clang" = "xyes"; then
7527
7528         # Clang takes -pthread; it has never supported any other flag
7529
7530         # (Note 1: This will need to be revisited if a system that Clang
7531         # supports has POSIX threads in a separate library.  This tends not
7532         # to be the way of modern systems, but it's conceivable.)
7533
7534         # (Note 2: On some systems, notably Darwin, -pthread is not needed
7535         # to get POSIX threads support; the API is always present and
7536         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7537         # -pthread does define _REENTRANT, and while the Darwin headers
7538         # ignore this macro, third-party headers might not.)
7539
7540         # However, older versions of Clang make a point of warning the user
7541         # that, in an invocation where only linking and no compilation is
7542         # taking place, the -pthread option has no effect ("argument unused
7543         # during compilation").  They expect -pthread to be passed in only
7544         # when source code is being compiled.
7545         #
7546         # Problem is, this is at odds with the way Automake and most other
7547         # C build frameworks function, which is that the same flags used in
7548         # compilation (CFLAGS) are also used in linking.  Many systems
7549         # supported by AX_PTHREAD require exactly this for POSIX threads
7550         # support, and in fact it is often not straightforward to specify a
7551         # flag that is used only in the compilation phase and not in
7552         # linking.  Such a scenario is extremely rare in practice.
7553         #
7554         # Even though use of the -pthread flag in linking would only print
7555         # a warning, this can be a nuisance for well-run software projects
7556         # that build with -Werror.  So if the active version of Clang has
7557         # this misfeature, we search for an option to squash it.
7558
7559         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7560 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7561 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7562 then :
7563   printf %s "(cached) " >&6
7564 else $as_nop
7565   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7566              # Create an alternate version of $ac_link that compiles and
7567              # links in two steps (.c -> .o, .o -> exe) instead of one
7568              # (.c -> exe), because the warning occurs only in the second
7569              # step
7570              ax_pthread_save_ac_link="$ac_link"
7571              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7572              ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7573              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7574              ax_pthread_save_CFLAGS="$CFLAGS"
7575              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7576                 if test "x$ax_pthread_try" = "xunknown"
7577 then :
7578   break
7579 fi
7580                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7581                 ac_link="$ax_pthread_save_ac_link"
7582                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h.  */
7584 int main(void){return 0;}
7585 _ACEOF
7586 if ac_fn_c_try_link "$LINENO"
7587 then :
7588   ac_link="$ax_pthread_2step_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   break
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7598     conftest$ac_exeext conftest.$ac_ext
7599
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7602     conftest$ac_exeext conftest.$ac_ext
7603              done
7604              ac_link="$ax_pthread_save_ac_link"
7605              CFLAGS="$ax_pthread_save_CFLAGS"
7606              if test "x$ax_pthread_try" = "x"
7607 then :
7608   ax_pthread_try=no
7609 fi
7610              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7611
7612 fi
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7614 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7615
7616         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7617                 no | unknown) ;;
7618                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7619         esac
7620
7621 fi # $ax_pthread_clang = yes
7622
7623
7624
7625 # Various other checks:
7626 if test "x$ax_pthread_ok" = "xyes"; then
7627         ax_pthread_save_CFLAGS="$CFLAGS"
7628         ax_pthread_save_LIBS="$LIBS"
7629         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7630         LIBS="$PTHREAD_LIBS $LIBS"
7631
7632         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7633         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7634 printf %s "checking for joinable pthread attribute... " >&6; }
7635 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7636 then :
7637   printf %s "(cached) " >&6
7638 else $as_nop
7639   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7640              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7641                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h.  */
7643 #include <pthread.h>
7644 int
7645 main (void)
7646 {
7647 int attr = $ax_pthread_attr; return attr /* ; */
7648   ;
7649   return 0;
7650 }
7651 _ACEOF
7652 if ac_fn_c_try_link "$LINENO"
7653 then :
7654   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7657     conftest$ac_exeext conftest.$ac_ext
7658              done
7659
7660 fi
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7662 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7663         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7664                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7665                test "x$ax_pthread_joinable_attr_defined" != "xyes"
7666 then :
7667
7668 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7669
7670                ax_pthread_joinable_attr_defined=yes
7671
7672 fi
7673
7674         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7675 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7676 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7677 then :
7678   printf %s "(cached) " >&6
7679 else $as_nop
7680   ax_cv_PTHREAD_SPECIAL_FLAGS=no
7681              case $host_os in
7682              solaris*)
7683              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7684              ;;
7685              esac
7686
7687 fi
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7689 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7690         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7691                test "x$ax_pthread_special_flags_added" != "xyes"
7692 then :
7693   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7694                ax_pthread_special_flags_added=yes
7695 fi
7696
7697         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7698 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7699 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7700 then :
7701   printf %s "(cached) " >&6
7702 else $as_nop
7703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h.  */
7705 #include <pthread.h>
7706 int
7707 main (void)
7708 {
7709 int i = PTHREAD_PRIO_INHERIT;
7710                                                return i;
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 if ac_fn_c_try_link "$LINENO"
7716 then :
7717   ax_cv_PTHREAD_PRIO_INHERIT=yes
7718 else $as_nop
7719   ax_cv_PTHREAD_PRIO_INHERIT=no
7720 fi
7721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7722     conftest$ac_exeext conftest.$ac_ext
7723
7724 fi
7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7726 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7727         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7728                test "x$ax_pthread_prio_inherit_defined" != "xyes"
7729 then :
7730
7731 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7732
7733                ax_pthread_prio_inherit_defined=yes
7734
7735 fi
7736
7737         CFLAGS="$ax_pthread_save_CFLAGS"
7738         LIBS="$ax_pthread_save_LIBS"
7739
7740         # More AIX lossage: compile with *_r variant
7741         if test "x$GCC" != "xyes"; then
7742             case $host_os in
7743                 aix*)
7744                 case "x/$CC" in #(
7745   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7746     #handle absolute path differently from PATH based program lookup
7747                      case "x$CC" in #(
7748   x/*) :
7749
7750                            if as_fn_executable_p ${CC}_r
7751 then :
7752   PTHREAD_CC="${CC}_r"
7753 fi
7754                            if test "x${CXX}" != "x"
7755 then :
7756   if as_fn_executable_p ${CXX}_r
7757 then :
7758   PTHREAD_CXX="${CXX}_r"
7759 fi
7760 fi
7761                           ;; #(
7762   *) :
7763
7764                            for ac_prog in ${CC}_r
7765 do
7766   # Extract the first word of "$ac_prog", so it can be a program name with args.
7767 set dummy $ac_prog; ac_word=$2
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 printf %s "checking for $ac_word... " >&6; }
7770 if test ${ac_cv_prog_PTHREAD_CC+y}
7771 then :
7772   printf %s "(cached) " >&6
7773 else $as_nop
7774   if test -n "$PTHREAD_CC"; then
7775   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   case $as_dir in #(((
7782     '') as_dir=./ ;;
7783     */) ;;
7784     *) as_dir=$as_dir/ ;;
7785   esac
7786     for ac_exec_ext in '' $ac_executable_extensions; do
7787   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7788     ac_cv_prog_PTHREAD_CC="$ac_prog"
7789     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7790     break 2
7791   fi
7792 done
7793   done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7799 if test -n "$PTHREAD_CC"; then
7800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7801 printf "%s\n" "$PTHREAD_CC" >&6; }
7802 else
7803   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 printf "%s\n" "no" >&6; }
7805 fi
7806
7807
7808   test -n "$PTHREAD_CC" && break
7809 done
7810 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7811
7812                            if test "x${CXX}" != "x"
7813 then :
7814   for ac_prog in ${CXX}_r
7815 do
7816   # Extract the first word of "$ac_prog", so it can be a program name with args.
7817 set dummy $ac_prog; ac_word=$2
7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 printf %s "checking for $ac_word... " >&6; }
7820 if test ${ac_cv_prog_PTHREAD_CXX+y}
7821 then :
7822   printf %s "(cached) " >&6
7823 else $as_nop
7824   if test -n "$PTHREAD_CXX"; then
7825   ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830   IFS=$as_save_IFS
7831   case $as_dir in #(((
7832     '') as_dir=./ ;;
7833     */) ;;
7834     *) as_dir=$as_dir/ ;;
7835   esac
7836     for ac_exec_ext in '' $ac_executable_extensions; do
7837   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7838     ac_cv_prog_PTHREAD_CXX="$ac_prog"
7839     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7840     break 2
7841   fi
7842 done
7843   done
7844 IFS=$as_save_IFS
7845
7846 fi
7847 fi
7848 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7849 if test -n "$PTHREAD_CXX"; then
7850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7851 printf "%s\n" "$PTHREAD_CXX" >&6; }
7852 else
7853   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 printf "%s\n" "no" >&6; }
7855 fi
7856
7857
7858   test -n "$PTHREAD_CXX" && break
7859 done
7860 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7861
7862 fi
7863
7864                       ;;
7865 esac
7866                      ;; #(
7867   *) :
7868      ;;
7869 esac
7870                 ;;
7871             esac
7872         fi
7873 fi
7874
7875 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7876 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7877
7878
7879
7880
7881
7882
7883 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7884 if test "x$ax_pthread_ok" = "xyes"; then
7885
7886 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7887
7888         :
7889 else
7890         ax_pthread_ok=no
7891
7892 fi
7893 ac_ext=c
7894 ac_cpp='$CPP $CPPFLAGS'
7895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898
7899
7900 else
7901 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7902
7903 fi
7904
7905 # Check whether --enable-uuidd was given.
7906 if test ${enable_uuidd+y}
7907 then :
7908   enableval=$enable_uuidd; if test "$enableval" = "no"
7909 then
7910         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7911 printf "%s\n" "Not building uuidd" >&6; }
7912         UUIDD_CMT="#"
7913 else
7914         printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7915
7916         UUIDD_CMT=""
7917         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7918 printf "%s\n" "Building uuidd" >&6; }
7919 fi
7920
7921 else $as_nop
7922   printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7923
7924 if test -z "$UUID_CMT"
7925 then
7926         UUIDD_CMT=""
7927         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7928 printf "%s\n" "Building uuidd by default" >&6; }
7929 else
7930         UUIDD_CMT="#"
7931         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7932 printf "%s\n" "Disabling uuidd by default" >&6; }
7933 fi
7934
7935 fi
7936
7937
7938
7939 # Check whether --enable-mmp was given.
7940 if test ${enable_mmp+y}
7941 then :
7942   enableval=$enable_mmp; if test "$enableval" = "no"
7943 then
7944         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7945 printf "%s\n" "Disabling mmp support" >&6; }
7946 else
7947         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7948 printf "%s\n" "Enabling mmp support" >&6; }
7949         printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7950
7951 fi
7952
7953 else $as_nop
7954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7955 printf "%s\n" "Enabling mmp support by default" >&6; }
7956 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7957
7958
7959 fi
7960
7961
7962 # Check whether --enable-tdb was given.
7963 if test ${enable_tdb+y}
7964 then :
7965   enableval=$enable_tdb;
7966 if test "$enableval" = "no"
7967 then
7968         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7969 printf "%s\n" "Disabling tdb support" >&6; }
7970         CONFIG_TDB=0
7971 else
7972         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7973 printf "%s\n" "Enabling tdb support" >&6; }
7974         CONFIG_TDB=1
7975 fi
7976
7977
7978 else $as_nop
7979
7980 case "$host_os" in
7981 mingw*)
7982         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7983 printf "%s\n" "Disabling tdb support by default" >&6; }
7984         CONFIG_TDB=0
7985         ;;
7986 *)
7987         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7988 printf "%s\n" "Enabling tdb support by default" >&6; }
7989         CONFIG_TDB=1
7990         ;;
7991 esac
7992
7993
7994 fi
7995
7996 if test "$CONFIG_TDB" = "1"
7997 then
7998         printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
7999
8000         TDB_CMT=""
8001         TDB_MAN_COMMENT=""
8002 else
8003         TDB_CMT="#"
8004         TDB_MAN_COMMENT='.\"'
8005 fi
8006
8007
8008
8009 # Check whether --enable-bmap-stats was given.
8010 if test ${enable_bmap_stats+y}
8011 then :
8012   enableval=$enable_bmap_stats; if test "$enableval" = "no"
8013 then
8014         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8015 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8016 else
8017         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8018 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8019         printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8020
8021 fi
8022
8023 else $as_nop
8024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8025 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8026 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8027
8028
8029 fi
8030
8031
8032 # Check whether --enable-bmap-stats-ops was given.
8033 if test ${enable_bmap_stats_ops+y}
8034 then :
8035   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8036 then
8037         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8038 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8039 else
8040                 if test "x${enable_bmap_stats}" = "xno"
8041 then :
8042   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8043 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8044 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8045 See \`config.log' for more details" "$LINENO" 5; }
8046 fi
8047
8048         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8049 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8050         printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8051
8052 fi
8053
8054 else $as_nop
8055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8056 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8057
8058 fi
8059
8060 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8061
8062 GETTEXT_PACKAGE=e2fsprogs
8063 PACKAGE=e2fsprogs
8064 VERSION="$E2FSPROGS_VERSION"
8065 VERSION=0.14.1
8066
8067 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8068
8069
8070 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8071
8072
8073
8074
8075
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8077 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8078 set x ${MAKE-make}
8079 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8080 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8081 then :
8082   printf %s "(cached) " >&6
8083 else $as_nop
8084   cat >conftest.make <<\_ACEOF
8085 SHELL = /bin/sh
8086 all:
8087         @echo '@@@%%%=$(MAKE)=@@@%%%'
8088 _ACEOF
8089 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8090 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8091   *@@@%%%=?*=@@@%%%*)
8092     eval ac_cv_prog_make_${ac_make}_set=yes;;
8093   *)
8094     eval ac_cv_prog_make_${ac_make}_set=no;;
8095 esac
8096 rm -f conftest.make
8097 fi
8098 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8099   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8100 printf "%s\n" "yes" >&6; }
8101   SET_MAKE=
8102 else
8103   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 printf "%s\n" "no" >&6; }
8105   SET_MAKE="MAKE=${MAKE-make}"
8106 fi
8107
8108
8109   # Find a good install program.  We prefer a C program (faster),
8110 # so one script is as good as another.  But avoid the broken or
8111 # incompatible versions:
8112 # SysV /etc/install, /usr/sbin/install
8113 # SunOS /usr/etc/install
8114 # IRIX /sbin/install
8115 # AIX /bin/install
8116 # AmigaOS /C/install, which installs bootblocks on floppy discs
8117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8120 # OS/2's system install, which has a completely different semantic
8121 # ./install, which can be erroneously created by make from ./install.sh.
8122 # Reject install programs that cannot install multiple files.
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8124 printf %s "checking for a BSD-compatible install... " >&6; }
8125 if test -z "$INSTALL"; then
8126 if test ${ac_cv_path_install+y}
8127 then :
8128   printf %s "(cached) " >&6
8129 else $as_nop
8130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8132 do
8133   IFS=$as_save_IFS
8134   case $as_dir in #(((
8135     '') as_dir=./ ;;
8136     */) ;;
8137     *) as_dir=$as_dir/ ;;
8138   esac
8139     # Account for fact that we put trailing slashes in our PATH walk.
8140 case $as_dir in #((
8141   ./ | /[cC]/* | \
8142   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8143   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8144   /usr/ucb/* ) ;;
8145   *)
8146     # OSF1 and SCO ODT 3.0 have their own names for install.
8147     # Don't use installbsd from OSF since it installs stuff as root
8148     # by default.
8149     for ac_prog in ginstall scoinst install; do
8150       for ac_exec_ext in '' $ac_executable_extensions; do
8151         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8152           if test $ac_prog = install &&
8153             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8154             # AIX install.  It has an incompatible calling convention.
8155             :
8156           elif test $ac_prog = install &&
8157             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8158             # program-specific install script used by HP pwplus--don't use.
8159             :
8160           else
8161             rm -rf conftest.one conftest.two conftest.dir
8162             echo one > conftest.one
8163             echo two > conftest.two
8164             mkdir conftest.dir
8165             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8166               test -s conftest.one && test -s conftest.two &&
8167               test -s conftest.dir/conftest.one &&
8168               test -s conftest.dir/conftest.two
8169             then
8170               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8171               break 3
8172             fi
8173           fi
8174         fi
8175       done
8176     done
8177     ;;
8178 esac
8179
8180   done
8181 IFS=$as_save_IFS
8182
8183 rm -rf conftest.one conftest.two conftest.dir
8184
8185 fi
8186   if test ${ac_cv_path_install+y}; then
8187     INSTALL=$ac_cv_path_install
8188   else
8189     # As a last resort, use the slow shell script.  Don't cache a
8190     # value for INSTALL within a source directory, because that will
8191     # break other packages using the cache if that directory is
8192     # removed, or if the value is a relative name.
8193     INSTALL=$ac_install_sh
8194   fi
8195 fi
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8197 printf "%s\n" "$INSTALL" >&6; }
8198
8199 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8200 # It thinks the first close brace ends the variable substitution.
8201 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8202
8203 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8204
8205 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8206
8207
8208   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8209 printf %s "checking for a race-free mkdir -p... " >&6; }
8210 if test -z "$MKDIR_P"; then
8211   if test ${ac_cv_path_mkdir+y}
8212 then :
8213   printf %s "(cached) " >&6
8214 else $as_nop
8215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8217 do
8218   IFS=$as_save_IFS
8219   case $as_dir in #(((
8220     '') as_dir=./ ;;
8221     */) ;;
8222     *) as_dir=$as_dir/ ;;
8223   esac
8224     for ac_prog in mkdir gmkdir; do
8225          for ac_exec_ext in '' $ac_executable_extensions; do
8226            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8227            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8228              'mkdir ('*'coreutils) '* | \
8229              'BusyBox '* | \
8230              'mkdir (fileutils) '4.1*)
8231                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8232                break 3;;
8233            esac
8234          done
8235        done
8236   done
8237 IFS=$as_save_IFS
8238
8239 fi
8240
8241   test -d ./--version && rmdir ./--version
8242   if test ${ac_cv_path_mkdir+y}; then
8243     MKDIR_P="$ac_cv_path_mkdir -p"
8244   else
8245     # As a last resort, use the slow shell script.  Don't cache a
8246     # value for MKDIR_P within a source directory, because that will
8247     # break other packages using the cache if that directory is
8248     # removed, or if the value is a relative name.
8249     MKDIR_P="$ac_install_sh -d"
8250   fi
8251 fi
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8253 printf "%s\n" "$MKDIR_P" >&6; }
8254
8255
8256   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8257 printf %s "checking whether NLS is requested... " >&6; }
8258     # Check whether --enable-nls was given.
8259 if test ${enable_nls+y}
8260 then :
8261   enableval=$enable_nls; USE_NLS=$enableval
8262 else $as_nop
8263   USE_NLS=yes
8264 fi
8265
8266   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8267 printf "%s\n" "$USE_NLS" >&6; }
8268
8269
8270
8271
8272       GETTEXT_MACRO_VERSION=0.20
8273
8274
8275
8276
8277 # Prepare PATH_SEPARATOR.
8278 # The user is always right.
8279 if test "${PATH_SEPARATOR+set}" != set; then
8280   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8281   # contains only /bin. Note that ksh looks also at the FPATH variable,
8282   # so we have to set that as well for the test.
8283   PATH_SEPARATOR=:
8284   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8285     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8286            || PATH_SEPARATOR=';'
8287        }
8288 fi
8289
8290 # Find out how to test for executable files. Don't use a zero-byte file,
8291 # as systems may use methods other than mode bits to determine executability.
8292 cat >conf$$.file <<_ASEOF
8293 #! /bin/sh
8294 exit 0
8295 _ASEOF
8296 chmod +x conf$$.file
8297 if test -x conf$$.file >/dev/null 2>&1; then
8298   ac_executable_p="test -x"
8299 else
8300   ac_executable_p="test -f"
8301 fi
8302 rm -f conf$$.file
8303
8304 # Extract the first word of "msgfmt", so it can be a program name with args.
8305 set dummy msgfmt; ac_word=$2
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 printf %s "checking for $ac_word... " >&6; }
8308 if test ${ac_cv_path_MSGFMT+y}
8309 then :
8310   printf %s "(cached) " >&6
8311 else $as_nop
8312   case "$MSGFMT" in
8313   [\\/]* | ?:[\\/]*)
8314     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8315     ;;
8316   *)
8317     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8318     for ac_dir in $PATH; do
8319       IFS="$ac_save_IFS"
8320       test -z "$ac_dir" && ac_dir=.
8321       for ac_exec_ext in '' $ac_executable_extensions; do
8322         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8323           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8324           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8325      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8326             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8327             break 2
8328           fi
8329         fi
8330       done
8331     done
8332     IFS="$ac_save_IFS"
8333   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8334     ;;
8335 esac
8336 fi
8337 MSGFMT="$ac_cv_path_MSGFMT"
8338 if test "$MSGFMT" != ":"; then
8339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8340 printf "%s\n" "$MSGFMT" >&6; }
8341 else
8342   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 printf "%s\n" "no" >&6; }
8344 fi
8345
8346   # Extract the first word of "gmsgfmt", so it can be a program name with args.
8347 set dummy gmsgfmt; ac_word=$2
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349 printf %s "checking for $ac_word... " >&6; }
8350 if test ${ac_cv_path_GMSGFMT+y}
8351 then :
8352   printf %s "(cached) " >&6
8353 else $as_nop
8354   case $GMSGFMT in
8355   [\\/]* | ?:[\\/]*)
8356   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8357   ;;
8358   *)
8359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362   IFS=$as_save_IFS
8363   case $as_dir in #(((
8364     '') as_dir=./ ;;
8365     */) ;;
8366     *) as_dir=$as_dir/ ;;
8367   esac
8368     for ac_exec_ext in '' $ac_executable_extensions; do
8369   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8370     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8371     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8372     break 2
8373   fi
8374 done
8375   done
8376 IFS=$as_save_IFS
8377
8378   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8379   ;;
8380 esac
8381 fi
8382 GMSGFMT=$ac_cv_path_GMSGFMT
8383 if test -n "$GMSGFMT"; then
8384   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8385 printf "%s\n" "$GMSGFMT" >&6; }
8386 else
8387   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 printf "%s\n" "no" >&6; }
8389 fi
8390
8391
8392
8393     case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8394     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8395     *) GMSGFMT_015=$GMSGFMT ;;
8396   esac
8397
8398
8399
8400 # Prepare PATH_SEPARATOR.
8401 # The user is always right.
8402 if test "${PATH_SEPARATOR+set}" != set; then
8403   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8404   # contains only /bin. Note that ksh looks also at the FPATH variable,
8405   # so we have to set that as well for the test.
8406   PATH_SEPARATOR=:
8407   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8408     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8409            || PATH_SEPARATOR=';'
8410        }
8411 fi
8412
8413 # Find out how to test for executable files. Don't use a zero-byte file,
8414 # as systems may use methods other than mode bits to determine executability.
8415 cat >conf$$.file <<_ASEOF
8416 #! /bin/sh
8417 exit 0
8418 _ASEOF
8419 chmod +x conf$$.file
8420 if test -x conf$$.file >/dev/null 2>&1; then
8421   ac_executable_p="test -x"
8422 else
8423   ac_executable_p="test -f"
8424 fi
8425 rm -f conf$$.file
8426
8427 # Extract the first word of "xgettext", so it can be a program name with args.
8428 set dummy xgettext; ac_word=$2
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 printf %s "checking for $ac_word... " >&6; }
8431 if test ${ac_cv_path_XGETTEXT+y}
8432 then :
8433   printf %s "(cached) " >&6
8434 else $as_nop
8435   case "$XGETTEXT" in
8436   [\\/]* | ?:[\\/]*)
8437     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8438     ;;
8439   *)
8440     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8441     for ac_dir in $PATH; do
8442       IFS="$ac_save_IFS"
8443       test -z "$ac_dir" && ac_dir=.
8444       for ac_exec_ext in '' $ac_executable_extensions; do
8445         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8446           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8447           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8448      (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
8449             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8450             break 2
8451           fi
8452         fi
8453       done
8454     done
8455     IFS="$ac_save_IFS"
8456   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8457     ;;
8458 esac
8459 fi
8460 XGETTEXT="$ac_cv_path_XGETTEXT"
8461 if test "$XGETTEXT" != ":"; then
8462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8463 printf "%s\n" "$XGETTEXT" >&6; }
8464 else
8465   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 printf "%s\n" "no" >&6; }
8467 fi
8468
8469     rm -f messages.po
8470
8471     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8472     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8473     *) XGETTEXT_015=$XGETTEXT ;;
8474   esac
8475
8476
8477
8478 # Prepare PATH_SEPARATOR.
8479 # The user is always right.
8480 if test "${PATH_SEPARATOR+set}" != set; then
8481   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8482   # contains only /bin. Note that ksh looks also at the FPATH variable,
8483   # so we have to set that as well for the test.
8484   PATH_SEPARATOR=:
8485   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8486     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8487            || PATH_SEPARATOR=';'
8488        }
8489 fi
8490
8491 # Find out how to test for executable files. Don't use a zero-byte file,
8492 # as systems may use methods other than mode bits to determine executability.
8493 cat >conf$$.file <<_ASEOF
8494 #! /bin/sh
8495 exit 0
8496 _ASEOF
8497 chmod +x conf$$.file
8498 if test -x conf$$.file >/dev/null 2>&1; then
8499   ac_executable_p="test -x"
8500 else
8501   ac_executable_p="test -f"
8502 fi
8503 rm -f conf$$.file
8504
8505 # Extract the first word of "msgmerge", so it can be a program name with args.
8506 set dummy msgmerge; ac_word=$2
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 printf %s "checking for $ac_word... " >&6; }
8509 if test ${ac_cv_path_MSGMERGE+y}
8510 then :
8511   printf %s "(cached) " >&6
8512 else $as_nop
8513   case "$MSGMERGE" in
8514   [\\/]* | ?:[\\/]*)
8515     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8516     ;;
8517   *)
8518     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8519     for ac_dir in $PATH; do
8520       IFS="$ac_save_IFS"
8521       test -z "$ac_dir" && ac_dir=.
8522       for ac_exec_ext in '' $ac_executable_extensions; do
8523         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8524           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8525           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8526             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8527             break 2
8528           fi
8529         fi
8530       done
8531     done
8532     IFS="$ac_save_IFS"
8533   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8534     ;;
8535 esac
8536 fi
8537 MSGMERGE="$ac_cv_path_MSGMERGE"
8538 if test "$MSGMERGE" != ":"; then
8539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8540 printf "%s\n" "$MSGMERGE" >&6; }
8541 else
8542   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 printf "%s\n" "no" >&6; }
8544 fi
8545
8546
8547     if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8548     MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8549   else
8550         if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8551       MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8552     else
8553                         MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8554     fi
8555   fi
8556
8557
8558     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8559
8560
8561   ac_config_commands="$ac_config_commands po-directories"
8562
8563
8564
8565       if test "X$prefix" = "XNONE"; then
8566     acl_final_prefix="$ac_default_prefix"
8567   else
8568     acl_final_prefix="$prefix"
8569   fi
8570   if test "X$exec_prefix" = "XNONE"; then
8571     acl_final_exec_prefix='${prefix}'
8572   else
8573     acl_final_exec_prefix="$exec_prefix"
8574   fi
8575   acl_save_prefix="$prefix"
8576   prefix="$acl_final_prefix"
8577   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8578   prefix="$acl_save_prefix"
8579
8580
8581
8582 # Check whether --with-gnu-ld was given.
8583 if test ${with_gnu_ld+y}
8584 then :
8585   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8586 else $as_nop
8587   with_gnu_ld=no
8588 fi
8589
8590 # Prepare PATH_SEPARATOR.
8591 # The user is always right.
8592 if test "${PATH_SEPARATOR+set}" != set; then
8593   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8594   # contains only /bin. Note that ksh looks also at the FPATH variable,
8595   # so we have to set that as well for the test.
8596   PATH_SEPARATOR=:
8597   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8598     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8599            || PATH_SEPARATOR=';'
8600        }
8601 fi
8602
8603 if test -n "$LD"; then
8604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8605 printf %s "checking for ld... " >&6; }
8606 elif test "$GCC" = yes; then
8607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8608 printf %s "checking for ld used by $CC... " >&6; }
8609 elif test "$with_gnu_ld" = yes; then
8610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8611 printf %s "checking for GNU ld... " >&6; }
8612 else
8613   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8614 printf %s "checking for non-GNU ld... " >&6; }
8615 fi
8616 if test -n "$LD"; then
8617   # Let the user override the test with a path.
8618   :
8619 else
8620   if test ${acl_cv_path_LD+y}
8621 then :
8622   printf %s "(cached) " >&6
8623 else $as_nop
8624
8625     acl_cv_path_LD= # Final result of this test
8626     ac_prog=ld # Program to search in $PATH
8627     if test "$GCC" = yes; then
8628       # Check if gcc -print-prog-name=ld gives a path.
8629       case $host in
8630         *-*-mingw*)
8631           # gcc leaves a trailing carriage return which upsets mingw
8632           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8633         *)
8634           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8635       esac
8636       case $acl_output in
8637         # Accept absolute paths.
8638         [\\/]* | ?:[\\/]*)
8639           re_direlt='/[^/][^/]*/\.\./'
8640           # Canonicalize the pathname of ld
8641           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8642           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8643             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8644           done
8645           # Got the pathname. No search in PATH is needed.
8646           acl_cv_path_LD="$acl_output"
8647           ac_prog=
8648           ;;
8649         "")
8650           # If it fails, then pretend we aren't using GCC.
8651           ;;
8652         *)
8653           # If it is relative, then search for the first ld in PATH.
8654           with_gnu_ld=unknown
8655           ;;
8656       esac
8657     fi
8658     if test -n "$ac_prog"; then
8659       # Search for $ac_prog in $PATH.
8660       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8661       for ac_dir in $PATH; do
8662         IFS="$acl_save_ifs"
8663         test -z "$ac_dir" && ac_dir=.
8664         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8665           acl_cv_path_LD="$ac_dir/$ac_prog"
8666           # Check to see if the program is GNU ld.  I'd rather use --version,
8667           # but apparently some variants of GNU ld only accept -v.
8668           # Break only if it was the GNU/non-GNU ld that we prefer.
8669           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8670             *GNU* | *'with BFD'*)
8671               test "$with_gnu_ld" != no && break
8672               ;;
8673             *)
8674               test "$with_gnu_ld" != yes && break
8675               ;;
8676           esac
8677         fi
8678       done
8679       IFS="$acl_save_ifs"
8680     fi
8681     case $host in
8682       *-*-aix*)
8683         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h.  */
8685 #if defined __powerpc64__ || defined _ARCH_PPC64
8686                 int ok;
8687                #else
8688                 error fail
8689                #endif
8690
8691 _ACEOF
8692 if ac_fn_c_try_compile "$LINENO"
8693 then :
8694   # The compiler produces 64-bit code. Add option '-b64' so that the
8695            # linker groks 64-bit object files.
8696            case "$acl_cv_path_LD " in
8697              *" -b64 "*) ;;
8698              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8699            esac
8700
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8703         ;;
8704       sparc64-*-netbsd*)
8705         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h.  */
8707 #if defined __sparcv9 || defined __arch64__
8708                 int ok;
8709                #else
8710                 error fail
8711                #endif
8712
8713 _ACEOF
8714 if ac_fn_c_try_compile "$LINENO"
8715 then :
8716
8717 else $as_nop
8718   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8719            # so that the linker groks 32-bit object files.
8720            case "$acl_cv_path_LD " in
8721              *" -m elf32_sparc "*) ;;
8722              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8723            esac
8724
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8727         ;;
8728     esac
8729
8730 fi
8731
8732   LD="$acl_cv_path_LD"
8733 fi
8734 if test -n "$LD"; then
8735   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8736 printf "%s\n" "$LD" >&6; }
8737 else
8738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 printf "%s\n" "no" >&6; }
8740   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8741 fi
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8743 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8744 if test ${acl_cv_prog_gnu_ld+y}
8745 then :
8746   printf %s "(cached) " >&6
8747 else $as_nop
8748   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8749 case `$LD -v 2>&1 </dev/null` in
8750 *GNU* | *'with BFD'*)
8751   acl_cv_prog_gnu_ld=yes
8752   ;;
8753 *)
8754   acl_cv_prog_gnu_ld=no
8755   ;;
8756 esac
8757 fi
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8759 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8760 with_gnu_ld=$acl_cv_prog_gnu_ld
8761
8762
8763
8764
8765
8766
8767                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8768 printf %s "checking for shared library run path origin... " >&6; }
8769 if test ${acl_cv_rpath+y}
8770 then :
8771   printf %s "(cached) " >&6
8772 else $as_nop
8773
8774     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8775     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8776     . ./conftest.sh
8777     rm -f ./conftest.sh
8778     acl_cv_rpath=done
8779
8780 fi
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8782 printf "%s\n" "$acl_cv_rpath" >&6; }
8783   wl="$acl_cv_wl"
8784   acl_libext="$acl_cv_libext"
8785   acl_shlibext="$acl_cv_shlibext"
8786   acl_libname_spec="$acl_cv_libname_spec"
8787   acl_library_names_spec="$acl_cv_library_names_spec"
8788   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8789   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8790   acl_hardcode_direct="$acl_cv_hardcode_direct"
8791   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8792     # Check whether --enable-rpath was given.
8793 if test ${enable_rpath+y}
8794 then :
8795   enableval=$enable_rpath; :
8796 else $as_nop
8797   enable_rpath=yes
8798 fi
8799
8800
8801
8802
8803   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8804 printf %s "checking 32-bit host C ABI... " >&6; }
8805 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8806 then :
8807   printf %s "(cached) " >&6
8808 else $as_nop
8809   if test -n "$gl_cv_host_cpu_c_abi"; then
8810        case "$gl_cv_host_cpu_c_abi" in
8811          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8812            gl_cv_host_cpu_c_abi_32bit=yes ;;
8813          x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8814            gl_cv_host_cpu_c_abi_32bit=no ;;
8815          *)
8816            gl_cv_host_cpu_c_abi_32bit=unknown ;;
8817        esac
8818      else
8819        case "$host_cpu" in
8820
8821          # CPUs that only support a 32-bit ABI.
8822          arc \
8823          | bfin \
8824          | cris* \
8825          | csky \
8826          | epiphany \
8827          | ft32 \
8828          | h8300 \
8829          | m68k \
8830          | microblaze | microblazeel \
8831          | nds32 | nds32le | nds32be \
8832          | nios2 | nios2eb | nios2el \
8833          | or1k* \
8834          | or32 \
8835          | sh | sh1234 | sh1234elb \
8836          | tic6x \
8837          | xtensa* )
8838            gl_cv_host_cpu_c_abi_32bit=yes
8839            ;;
8840
8841          # CPUs that only support a 64-bit ABI.
8842          alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8843          | mmix )
8844            gl_cv_host_cpu_c_abi_32bit=no
8845            ;;
8846
8847          i[34567]86 )
8848            gl_cv_host_cpu_c_abi_32bit=yes
8849            ;;
8850
8851          x86_64 )
8852            # On x86_64 systems, the C compiler may be generating code in one of
8853            # these ABIs:
8854            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8855            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8856            #   with native Windows (mingw, MSVC).
8857            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8858            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8859            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h.  */
8861 #if (defined __x86_64__ || defined __amd64__ \
8862                        || defined _M_X64 || defined _M_AMD64) \
8863                       && !(defined __ILP32__ || defined _ILP32)
8864                    int ok;
8865                   #else
8866                    error fail
8867                   #endif
8868
8869 _ACEOF
8870 if ac_fn_c_try_compile "$LINENO"
8871 then :
8872   gl_cv_host_cpu_c_abi_32bit=no
8873 else $as_nop
8874   gl_cv_host_cpu_c_abi_32bit=yes
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8877            ;;
8878
8879          arm* | aarch64 )
8880            # Assume arm with EABI.
8881            # On arm64 systems, the C compiler may be generating code in one of
8882            # these ABIs:
8883            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8884            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8885            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8886            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h.  */
8888 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8889                    int ok;
8890                   #else
8891                    error fail
8892                   #endif
8893
8894 _ACEOF
8895 if ac_fn_c_try_compile "$LINENO"
8896 then :
8897   gl_cv_host_cpu_c_abi_32bit=no
8898 else $as_nop
8899   gl_cv_host_cpu_c_abi_32bit=yes
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8902            ;;
8903
8904          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8905            # On hppa, the C compiler may be generating 32-bit code or 64-bit
8906            # code. In the latter case, it defines _LP64 and __LP64__.
8907            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h.  */
8909 #ifdef __LP64__
8910                    int ok;
8911                   #else
8912                    error fail
8913                   #endif
8914
8915 _ACEOF
8916 if ac_fn_c_try_compile "$LINENO"
8917 then :
8918   gl_cv_host_cpu_c_abi_32bit=no
8919 else $as_nop
8920   gl_cv_host_cpu_c_abi_32bit=yes
8921 fi
8922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8923            ;;
8924
8925          ia64* )
8926            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8927            # 32-bit code. In the latter case, it defines _ILP32.
8928            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h.  */
8930 #ifdef _ILP32
8931                    int ok;
8932                   #else
8933                    error fail
8934                   #endif
8935
8936 _ACEOF
8937 if ac_fn_c_try_compile "$LINENO"
8938 then :
8939   gl_cv_host_cpu_c_abi_32bit=yes
8940 else $as_nop
8941   gl_cv_host_cpu_c_abi_32bit=no
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8944            ;;
8945
8946          mips* )
8947            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8948            # at 32.
8949            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h.  */
8951 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8952                    int ok;
8953                   #else
8954                    error fail
8955                   #endif
8956
8957 _ACEOF
8958 if ac_fn_c_try_compile "$LINENO"
8959 then :
8960   gl_cv_host_cpu_c_abi_32bit=no
8961 else $as_nop
8962   gl_cv_host_cpu_c_abi_32bit=yes
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8965            ;;
8966
8967          powerpc* )
8968            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8969            # No need to distinguish them here; the caller may distinguish
8970            # them based on the OS.
8971            # On powerpc64 systems, the C compiler may still be generating
8972            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8973            # be generating 64-bit code.
8974            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976 #if defined __powerpc64__ || defined _ARCH_PPC64
8977                    int ok;
8978                   #else
8979                    error fail
8980                   #endif
8981
8982 _ACEOF
8983 if ac_fn_c_try_compile "$LINENO"
8984 then :
8985   gl_cv_host_cpu_c_abi_32bit=no
8986 else $as_nop
8987   gl_cv_host_cpu_c_abi_32bit=yes
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8990            ;;
8991
8992          rs6000 )
8993            gl_cv_host_cpu_c_abi_32bit=yes
8994            ;;
8995
8996          riscv32 | riscv64 )
8997            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8998            # Size of 'long' and 'void *':
8999            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h.  */
9001 #if defined __LP64__
9002                     int ok;
9003                   #else
9004                     error fail
9005                   #endif
9006
9007 _ACEOF
9008 if ac_fn_c_try_compile "$LINENO"
9009 then :
9010   gl_cv_host_cpu_c_abi_32bit=no
9011 else $as_nop
9012   gl_cv_host_cpu_c_abi_32bit=yes
9013 fi
9014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9015            ;;
9016
9017          s390* )
9018            # On s390x, the C compiler may be generating 64-bit (= s390x) code
9019            # or 31-bit (= s390) code.
9020            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h.  */
9022 #if defined __LP64__ || defined __s390x__
9023                     int ok;
9024                   #else
9025                     error fail
9026                   #endif
9027
9028 _ACEOF
9029 if ac_fn_c_try_compile "$LINENO"
9030 then :
9031   gl_cv_host_cpu_c_abi_32bit=no
9032 else $as_nop
9033   gl_cv_host_cpu_c_abi_32bit=yes
9034 fi
9035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9036            ;;
9037
9038          sparc | sparc64 )
9039            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9040            # C compiler still generates 32-bit code.
9041            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h.  */
9043 #if defined __sparcv9 || defined __arch64__
9044                    int ok;
9045                   #else
9046                    error fail
9047                   #endif
9048
9049 _ACEOF
9050 if ac_fn_c_try_compile "$LINENO"
9051 then :
9052   gl_cv_host_cpu_c_abi_32bit=no
9053 else $as_nop
9054   gl_cv_host_cpu_c_abi_32bit=yes
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9057            ;;
9058
9059          *)
9060            gl_cv_host_cpu_c_abi_32bit=unknown
9061            ;;
9062        esac
9063      fi
9064
9065 fi
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9067 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9068
9069   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9070
9071
9072
9073
9074
9075   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9076 printf %s "checking for ELF binary format... " >&6; }
9077 if test ${gl_cv_elf+y}
9078 then :
9079   printf %s "(cached) " >&6
9080 else $as_nop
9081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h.  */
9083 #ifdef __ELF__
9084         Extensible Linking Format
9085         #endif
9086
9087 _ACEOF
9088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9089   $EGREP "Extensible Linking Format" >/dev/null 2>&1
9090 then :
9091   gl_cv_elf=yes
9092 else $as_nop
9093   gl_cv_elf=no
9094 fi
9095 rm -rf conftest*
9096
9097
9098 fi
9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9100 printf "%s\n" "$gl_cv_elf" >&6; }
9101   if test $gl_cv_elf; then
9102     # Extract the ELF class of a file (5th byte) in decimal.
9103     # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9104     if od -A x < /dev/null >/dev/null 2>/dev/null; then
9105       # Use POSIX od.
9106       func_elfclass ()
9107       {
9108         od -A n -t d1 -j 4 -N 1
9109       }
9110     else
9111       # Use BSD hexdump.
9112       func_elfclass ()
9113       {
9114         dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9115         echo
9116       }
9117     fi
9118     case $HOST_CPU_C_ABI_32BIT in
9119       yes)
9120         # 32-bit ABI.
9121         acl_is_expected_elfclass ()
9122         {
9123           test "`func_elfclass | sed -e 's/[    ]//g'`" = 1
9124         }
9125         ;;
9126       no)
9127         # 64-bit ABI.
9128         acl_is_expected_elfclass ()
9129         {
9130           test "`func_elfclass | sed -e 's/[    ]//g'`" = 2
9131         }
9132         ;;
9133       *)
9134         # Unknown.
9135         acl_is_expected_elfclass ()
9136         {
9137           :
9138         }
9139         ;;
9140     esac
9141   else
9142     acl_is_expected_elfclass ()
9143     {
9144       :
9145     }
9146   fi
9147
9148     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9149 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9150 if test ${acl_cv_libdirstems+y}
9151 then :
9152   printf %s "(cached) " >&6
9153 else $as_nop
9154             acl_libdirstem=lib
9155      acl_libdirstem2=
9156      acl_libdirstem3=
9157      case "$host_os" in
9158        solaris*)
9159                                                       if test $HOST_CPU_C_ABI_32BIT = no; then
9160            acl_libdirstem2=lib/64
9161            case "$host_cpu" in
9162              sparc*)        acl_libdirstem3=lib/sparcv9 ;;
9163              i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9164            esac
9165          fi
9166          ;;
9167        *)
9168                                                                                  searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9169                      | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9170          if test $HOST_CPU_C_ABI_32BIT != no; then
9171            # 32-bit or unknown ABI.
9172            if test -d /usr/lib32; then
9173              acl_libdirstem2=lib32
9174            fi
9175          fi
9176          if test $HOST_CPU_C_ABI_32BIT != yes; then
9177            # 64-bit or unknown ABI.
9178            if test -d /usr/lib64; then
9179              acl_libdirstem3=lib64
9180            fi
9181          fi
9182          if test -n "$searchpath"; then
9183            acl_save_IFS="${IFS=         }"; IFS=":"
9184            for searchdir in $searchpath; do
9185              if test -d "$searchdir"; then
9186                case "$searchdir" in
9187                  */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9188                  */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9189                  */../ | */.. )
9190                    # Better ignore directories of this form. They are misleading.
9191                    ;;
9192                  *) searchdir=`cd "$searchdir" && pwd`
9193                     case "$searchdir" in
9194                       */lib32 ) acl_libdirstem2=lib32 ;;
9195                       */lib64 ) acl_libdirstem3=lib64 ;;
9196                     esac ;;
9197                esac
9198              fi
9199            done
9200            IFS="$acl_save_IFS"
9201            if test $HOST_CPU_C_ABI_32BIT = yes; then
9202              # 32-bit ABI.
9203              acl_libdirstem3=
9204            fi
9205            if test $HOST_CPU_C_ABI_32BIT = no; then
9206              # 64-bit ABI.
9207              acl_libdirstem2=
9208            fi
9209          fi
9210          ;;
9211      esac
9212      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9213      test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9214      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9215
9216 fi
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9218 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9219       acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9220   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9221   acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233     use_additional=yes
9234
9235   acl_save_prefix="$prefix"
9236   prefix="$acl_final_prefix"
9237   acl_save_exec_prefix="$exec_prefix"
9238   exec_prefix="$acl_final_exec_prefix"
9239
9240     eval additional_includedir=\"$includedir\"
9241     eval additional_libdir=\"$libdir\"
9242     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9243     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9244
9245   exec_prefix="$acl_save_exec_prefix"
9246   prefix="$acl_save_prefix"
9247
9248
9249 # Check whether --with-libiconv-prefix was given.
9250 if test ${with_libiconv_prefix+y}
9251 then :
9252   withval=$with_libiconv_prefix;
9253     if test "X$withval" = "Xno"; then
9254       use_additional=no
9255     else
9256       if test "X$withval" = "X"; then
9257
9258   acl_save_prefix="$prefix"
9259   prefix="$acl_final_prefix"
9260   acl_save_exec_prefix="$exec_prefix"
9261   exec_prefix="$acl_final_exec_prefix"
9262
9263           eval additional_includedir=\"$includedir\"
9264           eval additional_libdir=\"$libdir\"
9265           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9266           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9267
9268   exec_prefix="$acl_save_exec_prefix"
9269   prefix="$acl_save_prefix"
9270
9271       else
9272         additional_includedir="$withval/include"
9273         additional_libdir="$withval/$acl_libdirstem"
9274         additional_libdir2="$withval/$acl_libdirstem2"
9275         additional_libdir3="$withval/$acl_libdirstem3"
9276       fi
9277     fi
9278
9279 fi
9280
9281   if test "X$additional_libdir2" = "X$additional_libdir"; then
9282     additional_libdir2=
9283   fi
9284   if test "X$additional_libdir3" = "X$additional_libdir"; then
9285     additional_libdir3=
9286   fi
9287       LIBICONV=
9288   LTLIBICONV=
9289   INCICONV=
9290   LIBICONV_PREFIX=
9291       HAVE_LIBICONV=
9292   rpathdirs=
9293   ltrpathdirs=
9294   names_already_handled=
9295   names_next_round='iconv '
9296   while test -n "$names_next_round"; do
9297     names_this_round="$names_next_round"
9298     names_next_round=
9299     for name in $names_this_round; do
9300       already_handled=
9301       for n in $names_already_handled; do
9302         if test "$n" = "$name"; then
9303           already_handled=yes
9304           break
9305         fi
9306       done
9307       if test -z "$already_handled"; then
9308         names_already_handled="$names_already_handled $name"
9309                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9310         eval value=\"\$HAVE_LIB$uppername\"
9311         if test -n "$value"; then
9312           if test "$value" = yes; then
9313             eval value=\"\$LIB$uppername\"
9314             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9315             eval value=\"\$LTLIB$uppername\"
9316             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9317           else
9318                                     :
9319           fi
9320         else
9321                               found_dir=
9322           found_la=
9323           found_so=
9324           found_a=
9325           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9326           if test -n "$acl_shlibext"; then
9327             shrext=".$acl_shlibext"             # typically: shrext=.so
9328           else
9329             shrext=
9330           fi
9331           if test $use_additional = yes; then
9332             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9333               if test "X$found_dir" = "X"; then
9334                 eval dir=\$$additional_libdir_variable
9335                 if test -n "$dir"; then
9336                                                       if test -n "$acl_shlibext"; then
9337                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9338                       found_dir="$dir"
9339                       found_so="$dir/$libname$shrext"
9340                     else
9341                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9342                         ver=`(cd "$dir" && \
9343                               for f in "$libname$shrext".*; do echo "$f"; done \
9344                               | sed -e "s,^$libname$shrext\\\\.,," \
9345                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9346                               | sed 1q ) 2>/dev/null`
9347                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9348                           found_dir="$dir"
9349                           found_so="$dir/$libname$shrext.$ver"
9350                         fi
9351                       else
9352                         eval library_names=\"$acl_library_names_spec\"
9353                         for f in $library_names; do
9354                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9355                             found_dir="$dir"
9356                             found_so="$dir/$f"
9357                             break
9358                           fi
9359                         done
9360                       fi
9361                     fi
9362                   fi
9363                                     if test "X$found_dir" = "X"; then
9364                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9365                       found_dir="$dir"
9366                       found_a="$dir/$libname.$acl_libext"
9367                     fi
9368                   fi
9369                   if test "X$found_dir" != "X"; then
9370                     if test -f "$dir/$libname.la"; then
9371                       found_la="$dir/$libname.la"
9372                     fi
9373                   fi
9374                 fi
9375               fi
9376             done
9377           fi
9378           if test "X$found_dir" = "X"; then
9379             for x in $LDFLAGS $LTLIBICONV; do
9380
9381   acl_save_prefix="$prefix"
9382   prefix="$acl_final_prefix"
9383   acl_save_exec_prefix="$exec_prefix"
9384   exec_prefix="$acl_final_exec_prefix"
9385   eval x=\"$x\"
9386   exec_prefix="$acl_save_exec_prefix"
9387   prefix="$acl_save_prefix"
9388
9389               case "$x" in
9390                 -L*)
9391                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9392                                     if test -n "$acl_shlibext"; then
9393                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9394                       found_dir="$dir"
9395                       found_so="$dir/$libname$shrext"
9396                     else
9397                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9398                         ver=`(cd "$dir" && \
9399                               for f in "$libname$shrext".*; do echo "$f"; done \
9400                               | sed -e "s,^$libname$shrext\\\\.,," \
9401                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9402                               | sed 1q ) 2>/dev/null`
9403                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9404                           found_dir="$dir"
9405                           found_so="$dir/$libname$shrext.$ver"
9406                         fi
9407                       else
9408                         eval library_names=\"$acl_library_names_spec\"
9409                         for f in $library_names; do
9410                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9411                             found_dir="$dir"
9412                             found_so="$dir/$f"
9413                             break
9414                           fi
9415                         done
9416                       fi
9417                     fi
9418                   fi
9419                                     if test "X$found_dir" = "X"; then
9420                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9421                       found_dir="$dir"
9422                       found_a="$dir/$libname.$acl_libext"
9423                     fi
9424                   fi
9425                   if test "X$found_dir" != "X"; then
9426                     if test -f "$dir/$libname.la"; then
9427                       found_la="$dir/$libname.la"
9428                     fi
9429                   fi
9430                   ;;
9431               esac
9432               if test "X$found_dir" != "X"; then
9433                 break
9434               fi
9435             done
9436           fi
9437           if test "X$found_dir" != "X"; then
9438                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9439             if test "X$found_so" != "X"; then
9440                                                         if test "$enable_rpath" = no \
9441                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9442                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9443                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9444                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9445               else
9446                                                                                 haveit=
9447                 for x in $ltrpathdirs; do
9448                   if test "X$x" = "X$found_dir"; then
9449                     haveit=yes
9450                     break
9451                   fi
9452                 done
9453                 if test -z "$haveit"; then
9454                   ltrpathdirs="$ltrpathdirs $found_dir"
9455                 fi
9456                                 if test "$acl_hardcode_direct" = yes; then
9457                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9458                 else
9459                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9460                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9461                                                             haveit=
9462                     for x in $rpathdirs; do
9463                       if test "X$x" = "X$found_dir"; then
9464                         haveit=yes
9465                         break
9466                       fi
9467                     done
9468                     if test -z "$haveit"; then
9469                       rpathdirs="$rpathdirs $found_dir"
9470                     fi
9471                   else
9472                                                                                 haveit=
9473                     for x in $LDFLAGS $LIBICONV; do
9474
9475   acl_save_prefix="$prefix"
9476   prefix="$acl_final_prefix"
9477   acl_save_exec_prefix="$exec_prefix"
9478   exec_prefix="$acl_final_exec_prefix"
9479   eval x=\"$x\"
9480   exec_prefix="$acl_save_exec_prefix"
9481   prefix="$acl_save_prefix"
9482
9483                       if test "X$x" = "X-L$found_dir"; then
9484                         haveit=yes
9485                         break
9486                       fi
9487                     done
9488                     if test -z "$haveit"; then
9489                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9490                     fi
9491                     if test "$acl_hardcode_minus_L" != no; then
9492                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9493                     else
9494                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9495                     fi
9496                   fi
9497                 fi
9498               fi
9499             else
9500               if test "X$found_a" != "X"; then
9501                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9502               else
9503                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9504               fi
9505             fi
9506                         additional_includedir=
9507             case "$found_dir" in
9508               */$acl_libdirstem | */$acl_libdirstem/)
9509                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9510                 if test "$name" = 'iconv'; then
9511                   LIBICONV_PREFIX="$basedir"
9512                 fi
9513                 additional_includedir="$basedir/include"
9514                 ;;
9515               */$acl_libdirstem2 | */$acl_libdirstem2/)
9516                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9517                 if test "$name" = 'iconv'; then
9518                   LIBICONV_PREFIX="$basedir"
9519                 fi
9520                 additional_includedir="$basedir/include"
9521                 ;;
9522               */$acl_libdirstem3 | */$acl_libdirstem3/)
9523                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9524                 if test "$name" = 'iconv'; then
9525                   LIBICONV_PREFIX="$basedir"
9526                 fi
9527                 additional_includedir="$basedir/include"
9528                 ;;
9529             esac
9530             if test "X$additional_includedir" != "X"; then
9531                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9532                 haveit=
9533                 if test "X$additional_includedir" = "X/usr/local/include"; then
9534                   if test -n "$GCC"; then
9535                     case $host_os in
9536                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9537                     esac
9538                   fi
9539                 fi
9540                 if test -z "$haveit"; then
9541                   for x in $CPPFLAGS $INCICONV; do
9542
9543   acl_save_prefix="$prefix"
9544   prefix="$acl_final_prefix"
9545   acl_save_exec_prefix="$exec_prefix"
9546   exec_prefix="$acl_final_exec_prefix"
9547   eval x=\"$x\"
9548   exec_prefix="$acl_save_exec_prefix"
9549   prefix="$acl_save_prefix"
9550
9551                     if test "X$x" = "X-I$additional_includedir"; then
9552                       haveit=yes
9553                       break
9554                     fi
9555                   done
9556                   if test -z "$haveit"; then
9557                     if test -d "$additional_includedir"; then
9558                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9559                     fi
9560                   fi
9561                 fi
9562               fi
9563             fi
9564                         if test -n "$found_la"; then
9565                                                         save_libdir="$libdir"
9566               case "$found_la" in
9567                 */* | *\\*) . "$found_la" ;;
9568                 *) . "./$found_la" ;;
9569               esac
9570               libdir="$save_libdir"
9571                             for dep in $dependency_libs; do
9572                 case "$dep" in
9573                   -L*)
9574                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9575                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9576                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9577                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9578                       haveit=
9579                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9580                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9581                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9582                         if test -n "$GCC"; then
9583                           case $host_os in
9584                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9585                           esac
9586                         fi
9587                       fi
9588                       if test -z "$haveit"; then
9589                         haveit=
9590                         for x in $LDFLAGS $LIBICONV; do
9591
9592   acl_save_prefix="$prefix"
9593   prefix="$acl_final_prefix"
9594   acl_save_exec_prefix="$exec_prefix"
9595   exec_prefix="$acl_final_exec_prefix"
9596   eval x=\"$x\"
9597   exec_prefix="$acl_save_exec_prefix"
9598   prefix="$acl_save_prefix"
9599
9600                           if test "X$x" = "X-L$dependency_libdir"; then
9601                             haveit=yes
9602                             break
9603                           fi
9604                         done
9605                         if test -z "$haveit"; then
9606                           if test -d "$dependency_libdir"; then
9607                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9608                           fi
9609                         fi
9610                         haveit=
9611                         for x in $LDFLAGS $LTLIBICONV; do
9612
9613   acl_save_prefix="$prefix"
9614   prefix="$acl_final_prefix"
9615   acl_save_exec_prefix="$exec_prefix"
9616   exec_prefix="$acl_final_exec_prefix"
9617   eval x=\"$x\"
9618   exec_prefix="$acl_save_exec_prefix"
9619   prefix="$acl_save_prefix"
9620
9621                           if test "X$x" = "X-L$dependency_libdir"; then
9622                             haveit=yes
9623                             break
9624                           fi
9625                         done
9626                         if test -z "$haveit"; then
9627                           if test -d "$dependency_libdir"; then
9628                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9629                           fi
9630                         fi
9631                       fi
9632                     fi
9633                     ;;
9634                   -R*)
9635                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9636                     if test "$enable_rpath" != no; then
9637                                                                   haveit=
9638                       for x in $rpathdirs; do
9639                         if test "X$x" = "X$dir"; then
9640                           haveit=yes
9641                           break
9642                         fi
9643                       done
9644                       if test -z "$haveit"; then
9645                         rpathdirs="$rpathdirs $dir"
9646                       fi
9647                                                                   haveit=
9648                       for x in $ltrpathdirs; do
9649                         if test "X$x" = "X$dir"; then
9650                           haveit=yes
9651                           break
9652                         fi
9653                       done
9654                       if test -z "$haveit"; then
9655                         ltrpathdirs="$ltrpathdirs $dir"
9656                       fi
9657                     fi
9658                     ;;
9659                   -l*)
9660                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9661                     ;;
9662                   *.la)
9663                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9664                     ;;
9665                   *)
9666                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9667                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9668                     ;;
9669                 esac
9670               done
9671             fi
9672           else
9673                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9674             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9675           fi
9676         fi
9677       fi
9678     done
9679   done
9680   if test "X$rpathdirs" != "X"; then
9681     if test -n "$acl_hardcode_libdir_separator"; then
9682                         alldirs=
9683       for found_dir in $rpathdirs; do
9684         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9685       done
9686             acl_save_libdir="$libdir"
9687       libdir="$alldirs"
9688       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9689       libdir="$acl_save_libdir"
9690       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9691     else
9692             for found_dir in $rpathdirs; do
9693         acl_save_libdir="$libdir"
9694         libdir="$found_dir"
9695         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9696         libdir="$acl_save_libdir"
9697         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9698       done
9699     fi
9700   fi
9701   if test "X$ltrpathdirs" != "X"; then
9702             for found_dir in $ltrpathdirs; do
9703       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9704     done
9705   fi
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9736 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9737 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9738 then :
9739   printf %s "(cached) " >&6
9740 else $as_nop
9741   gt_save_LIBS="$LIBS"
9742      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9743      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h.  */
9745 #include <CoreFoundation/CFPreferences.h>
9746 int
9747 main (void)
9748 {
9749 CFPreferencesCopyAppValue(NULL, NULL)
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 if ac_fn_c_try_link "$LINENO"
9755 then :
9756   gt_cv_func_CFPreferencesCopyAppValue=yes
9757 else $as_nop
9758   gt_cv_func_CFPreferencesCopyAppValue=no
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9761     conftest$ac_exeext conftest.$ac_ext
9762      LIBS="$gt_save_LIBS"
9763 fi
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9765 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9766   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9767
9768 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9769
9770   fi
9771                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9772 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9773 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9774 then :
9775   printf %s "(cached) " >&6
9776 else $as_nop
9777   gt_save_LIBS="$LIBS"
9778      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9779      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h.  */
9781 #include <CoreFoundation/CFLocale.h>
9782 int
9783 main (void)
9784 {
9785 CFLocaleCopyPreferredLanguages();
9786   ;
9787   return 0;
9788 }
9789 _ACEOF
9790 if ac_fn_c_try_link "$LINENO"
9791 then :
9792   gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9793 else $as_nop
9794   gt_cv_func_CFLocaleCopyPreferredLanguages=no
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9797     conftest$ac_exeext conftest.$ac_ext
9798      LIBS="$gt_save_LIBS"
9799 fi
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9801 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9802   if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9803
9804 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9805
9806   fi
9807   INTL_MACOSX_LIBS=
9808   if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9809      || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9810     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9811   fi
9812
9813
9814
9815
9816
9817
9818   LIBINTL=
9819   LTLIBINTL=
9820   POSUB=
9821
9822     case " $gt_needs " in
9823     *" need-formatstring-macros "*) gt_api_version=3 ;;
9824     *" need-ngettext "*) gt_api_version=2 ;;
9825     *) gt_api_version=1 ;;
9826   esac
9827   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9828   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9829
9830     if test "$USE_NLS" = "yes"; then
9831     gt_use_preinstalled_gnugettext=no
9832
9833
9834         if test $gt_api_version -ge 3; then
9835           gt_revision_test_code='
9836 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9837 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9838 #endif
9839 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9840 '
9841         else
9842           gt_revision_test_code=
9843         fi
9844         if test $gt_api_version -ge 2; then
9845           gt_expression_test_code=' + * ngettext ("", "", 0)'
9846         else
9847           gt_expression_test_code=
9848         fi
9849
9850         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9851 printf %s "checking for GNU gettext in libc... " >&6; }
9852 if eval test \${$gt_func_gnugettext_libc+y}
9853 then :
9854   printf %s "(cached) " >&6
9855 else $as_nop
9856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h.  */
9858
9859 #include <libintl.h>
9860 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9861 extern int _nl_msg_cat_cntr;
9862 extern int *_nl_domain_bindings;
9863 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9864 #else
9865 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9866 #endif
9867 $gt_revision_test_code
9868
9869 int
9870 main (void)
9871 {
9872
9873 bindtextdomain ("", "");
9874 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9875
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 if ac_fn_c_try_link "$LINENO"
9881 then :
9882   eval "$gt_func_gnugettext_libc=yes"
9883 else $as_nop
9884   eval "$gt_func_gnugettext_libc=no"
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9887     conftest$ac_exeext conftest.$ac_ext
9888 fi
9889 eval ac_res=\$$gt_func_gnugettext_libc
9890                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9891 printf "%s\n" "$ac_res" >&6; }
9892
9893         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9894
9895
9896
9897
9898
9899           am_save_CPPFLAGS="$CPPFLAGS"
9900
9901   for element in $INCICONV; do
9902     haveit=
9903     for x in $CPPFLAGS; do
9904
9905   acl_save_prefix="$prefix"
9906   prefix="$acl_final_prefix"
9907   acl_save_exec_prefix="$exec_prefix"
9908   exec_prefix="$acl_final_exec_prefix"
9909   eval x=\"$x\"
9910   exec_prefix="$acl_save_exec_prefix"
9911   prefix="$acl_save_prefix"
9912
9913       if test "X$x" = "X$element"; then
9914         haveit=yes
9915         break
9916       fi
9917     done
9918     if test -z "$haveit"; then
9919       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9920     fi
9921   done
9922
9923
9924   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9925 printf %s "checking for iconv... " >&6; }
9926 if test ${am_cv_func_iconv+y}
9927 then :
9928   printf %s "(cached) " >&6
9929 else $as_nop
9930
9931     am_cv_func_iconv="no, consider installing GNU libiconv"
9932     am_cv_lib_iconv=no
9933     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h.  */
9935
9936 #include <stdlib.h>
9937 #include <iconv.h>
9938
9939 int
9940 main (void)
9941 {
9942 iconv_t cd = iconv_open("","");
9943            iconv(cd,NULL,NULL,NULL,NULL);
9944            iconv_close(cd);
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"
9950 then :
9951   am_cv_func_iconv=yes
9952 fi
9953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9954     conftest$ac_exeext conftest.$ac_ext
9955     if test "$am_cv_func_iconv" != yes; then
9956       am_save_LIBS="$LIBS"
9957       LIBS="$LIBS $LIBICONV"
9958       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h.  */
9960
9961 #include <stdlib.h>
9962 #include <iconv.h>
9963
9964 int
9965 main (void)
9966 {
9967 iconv_t cd = iconv_open("","");
9968              iconv(cd,NULL,NULL,NULL,NULL);
9969              iconv_close(cd);
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"
9975 then :
9976   am_cv_lib_iconv=yes
9977         am_cv_func_iconv=yes
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9980     conftest$ac_exeext conftest.$ac_ext
9981       LIBS="$am_save_LIBS"
9982     fi
9983
9984 fi
9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9986 printf "%s\n" "$am_cv_func_iconv" >&6; }
9987   if test "$am_cv_func_iconv" = yes; then
9988     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9989 printf %s "checking for working iconv... " >&6; }
9990 if test ${am_cv_func_iconv_works+y}
9991 then :
9992   printf %s "(cached) " >&6
9993 else $as_nop
9994
9995                   am_save_LIBS="$LIBS"
9996       if test $am_cv_lib_iconv = yes; then
9997         LIBS="$LIBS $LIBICONV"
9998       fi
9999       am_cv_func_iconv_works=no
10000       for ac_iconv_const in '' 'const'; do
10001         if test "$cross_compiling" = yes
10002 then :
10003   case "$host_os" in
10004              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10005              *)            am_cv_func_iconv_works="guessing yes" ;;
10006            esac
10007 else $as_nop
10008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h.  */
10010
10011 #include <iconv.h>
10012 #include <string.h>
10013
10014 #ifndef ICONV_CONST
10015 # define ICONV_CONST $ac_iconv_const
10016 #endif
10017
10018 int
10019 main (void)
10020 {
10021 int result = 0;
10022   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10023      returns.  */
10024   {
10025     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10026     if (cd_utf8_to_88591 != (iconv_t)(-1))
10027       {
10028         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10029         char buf[10];
10030         ICONV_CONST char *inptr = input;
10031         size_t inbytesleft = strlen (input);
10032         char *outptr = buf;
10033         size_t outbytesleft = sizeof (buf);
10034         size_t res = iconv (cd_utf8_to_88591,
10035                             &inptr, &inbytesleft,
10036                             &outptr, &outbytesleft);
10037         if (res == 0)
10038           result |= 1;
10039         iconv_close (cd_utf8_to_88591);
10040       }
10041   }
10042   /* Test against Solaris 10 bug: Failures are not distinguishable from
10043      successful returns.  */
10044   {
10045     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10046     if (cd_ascii_to_88591 != (iconv_t)(-1))
10047       {
10048         static ICONV_CONST char input[] = "\263";
10049         char buf[10];
10050         ICONV_CONST char *inptr = input;
10051         size_t inbytesleft = strlen (input);
10052         char *outptr = buf;
10053         size_t outbytesleft = sizeof (buf);
10054         size_t res = iconv (cd_ascii_to_88591,
10055                             &inptr, &inbytesleft,
10056                             &outptr, &outbytesleft);
10057         if (res == 0)
10058           result |= 2;
10059         iconv_close (cd_ascii_to_88591);
10060       }
10061   }
10062   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
10063   {
10064     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10065     if (cd_88591_to_utf8 != (iconv_t)(-1))
10066       {
10067         static ICONV_CONST char input[] = "\304";
10068         static char buf[2] = { (char)0xDE, (char)0xAD };
10069         ICONV_CONST char *inptr = input;
10070         size_t inbytesleft = 1;
10071         char *outptr = buf;
10072         size_t outbytesleft = 1;
10073         size_t res = iconv (cd_88591_to_utf8,
10074                             &inptr, &inbytesleft,
10075                             &outptr, &outbytesleft);
10076         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10077           result |= 4;
10078         iconv_close (cd_88591_to_utf8);
10079       }
10080   }
10081 #if 0 /* This bug could be worked around by the caller.  */
10082   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
10083   {
10084     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10085     if (cd_88591_to_utf8 != (iconv_t)(-1))
10086       {
10087         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10088         char buf[50];
10089         ICONV_CONST char *inptr = input;
10090         size_t inbytesleft = strlen (input);
10091         char *outptr = buf;
10092         size_t outbytesleft = sizeof (buf);
10093         size_t res = iconv (cd_88591_to_utf8,
10094                             &inptr, &inbytesleft,
10095                             &outptr, &outbytesleft);
10096         if ((int)res > 0)
10097           result |= 8;
10098         iconv_close (cd_88591_to_utf8);
10099       }
10100   }
10101 #endif
10102   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10103      provided.  */
10104   {
10105     /* Try standardized names.  */
10106     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10107     /* Try IRIX, OSF/1 names.  */
10108     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10109     /* Try AIX names.  */
10110     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10111     /* Try HP-UX names.  */
10112     iconv_t cd4 = iconv_open ("utf8", "eucJP");
10113     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10114         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10115       result |= 16;
10116     if (cd1 != (iconv_t)(-1))
10117       iconv_close (cd1);
10118     if (cd2 != (iconv_t)(-1))
10119       iconv_close (cd2);
10120     if (cd3 != (iconv_t)(-1))
10121       iconv_close (cd3);
10122     if (cd4 != (iconv_t)(-1))
10123       iconv_close (cd4);
10124   }
10125   return result;
10126
10127   ;
10128   return 0;
10129 }
10130 _ACEOF
10131 if ac_fn_c_try_run "$LINENO"
10132 then :
10133   am_cv_func_iconv_works=yes
10134 fi
10135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10136   conftest.$ac_objext conftest.beam conftest.$ac_ext
10137 fi
10138
10139         test "$am_cv_func_iconv_works" = no || break
10140       done
10141       LIBS="$am_save_LIBS"
10142
10143 fi
10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10145 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10146     case "$am_cv_func_iconv_works" in
10147       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10148       *)   am_func_iconv=yes ;;
10149     esac
10150   else
10151     am_func_iconv=no am_cv_lib_iconv=no
10152   fi
10153   if test "$am_func_iconv" = yes; then
10154
10155 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10156
10157   fi
10158   if test "$am_cv_lib_iconv" = yes; then
10159     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10160 printf %s "checking how to link with libiconv... " >&6; }
10161     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10162 printf "%s\n" "$LIBICONV" >&6; }
10163   else
10164             CPPFLAGS="$am_save_CPPFLAGS"
10165     LIBICONV=
10166     LTLIBICONV=
10167   fi
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178     use_additional=yes
10179
10180   acl_save_prefix="$prefix"
10181   prefix="$acl_final_prefix"
10182   acl_save_exec_prefix="$exec_prefix"
10183   exec_prefix="$acl_final_exec_prefix"
10184
10185     eval additional_includedir=\"$includedir\"
10186     eval additional_libdir=\"$libdir\"
10187     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10188     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10189
10190   exec_prefix="$acl_save_exec_prefix"
10191   prefix="$acl_save_prefix"
10192
10193
10194 # Check whether --with-libintl-prefix was given.
10195 if test ${with_libintl_prefix+y}
10196 then :
10197   withval=$with_libintl_prefix;
10198     if test "X$withval" = "Xno"; then
10199       use_additional=no
10200     else
10201       if test "X$withval" = "X"; then
10202
10203   acl_save_prefix="$prefix"
10204   prefix="$acl_final_prefix"
10205   acl_save_exec_prefix="$exec_prefix"
10206   exec_prefix="$acl_final_exec_prefix"
10207
10208           eval additional_includedir=\"$includedir\"
10209           eval additional_libdir=\"$libdir\"
10210           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10211           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10212
10213   exec_prefix="$acl_save_exec_prefix"
10214   prefix="$acl_save_prefix"
10215
10216       else
10217         additional_includedir="$withval/include"
10218         additional_libdir="$withval/$acl_libdirstem"
10219         additional_libdir2="$withval/$acl_libdirstem2"
10220         additional_libdir3="$withval/$acl_libdirstem3"
10221       fi
10222     fi
10223
10224 fi
10225
10226   if test "X$additional_libdir2" = "X$additional_libdir"; then
10227     additional_libdir2=
10228   fi
10229   if test "X$additional_libdir3" = "X$additional_libdir"; then
10230     additional_libdir3=
10231   fi
10232       LIBINTL=
10233   LTLIBINTL=
10234   INCINTL=
10235   LIBINTL_PREFIX=
10236       HAVE_LIBINTL=
10237   rpathdirs=
10238   ltrpathdirs=
10239   names_already_handled=
10240   names_next_round='intl '
10241   while test -n "$names_next_round"; do
10242     names_this_round="$names_next_round"
10243     names_next_round=
10244     for name in $names_this_round; do
10245       already_handled=
10246       for n in $names_already_handled; do
10247         if test "$n" = "$name"; then
10248           already_handled=yes
10249           break
10250         fi
10251       done
10252       if test -z "$already_handled"; then
10253         names_already_handled="$names_already_handled $name"
10254                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10255         eval value=\"\$HAVE_LIB$uppername\"
10256         if test -n "$value"; then
10257           if test "$value" = yes; then
10258             eval value=\"\$LIB$uppername\"
10259             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10260             eval value=\"\$LTLIB$uppername\"
10261             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10262           else
10263                                     :
10264           fi
10265         else
10266                               found_dir=
10267           found_la=
10268           found_so=
10269           found_a=
10270           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10271           if test -n "$acl_shlibext"; then
10272             shrext=".$acl_shlibext"             # typically: shrext=.so
10273           else
10274             shrext=
10275           fi
10276           if test $use_additional = yes; then
10277             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10278               if test "X$found_dir" = "X"; then
10279                 eval dir=\$$additional_libdir_variable
10280                 if test -n "$dir"; then
10281                                                       if test -n "$acl_shlibext"; then
10282                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10283                       found_dir="$dir"
10284                       found_so="$dir/$libname$shrext"
10285                     else
10286                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10287                         ver=`(cd "$dir" && \
10288                               for f in "$libname$shrext".*; do echo "$f"; done \
10289                               | sed -e "s,^$libname$shrext\\\\.,," \
10290                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10291                               | sed 1q ) 2>/dev/null`
10292                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10293                           found_dir="$dir"
10294                           found_so="$dir/$libname$shrext.$ver"
10295                         fi
10296                       else
10297                         eval library_names=\"$acl_library_names_spec\"
10298                         for f in $library_names; do
10299                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10300                             found_dir="$dir"
10301                             found_so="$dir/$f"
10302                             break
10303                           fi
10304                         done
10305                       fi
10306                     fi
10307                   fi
10308                                     if test "X$found_dir" = "X"; then
10309                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10310                       found_dir="$dir"
10311                       found_a="$dir/$libname.$acl_libext"
10312                     fi
10313                   fi
10314                   if test "X$found_dir" != "X"; then
10315                     if test -f "$dir/$libname.la"; then
10316                       found_la="$dir/$libname.la"
10317                     fi
10318                   fi
10319                 fi
10320               fi
10321             done
10322           fi
10323           if test "X$found_dir" = "X"; then
10324             for x in $LDFLAGS $LTLIBINTL; do
10325
10326   acl_save_prefix="$prefix"
10327   prefix="$acl_final_prefix"
10328   acl_save_exec_prefix="$exec_prefix"
10329   exec_prefix="$acl_final_exec_prefix"
10330   eval x=\"$x\"
10331   exec_prefix="$acl_save_exec_prefix"
10332   prefix="$acl_save_prefix"
10333
10334               case "$x" in
10335                 -L*)
10336                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10337                                     if test -n "$acl_shlibext"; then
10338                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10339                       found_dir="$dir"
10340                       found_so="$dir/$libname$shrext"
10341                     else
10342                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10343                         ver=`(cd "$dir" && \
10344                               for f in "$libname$shrext".*; do echo "$f"; done \
10345                               | sed -e "s,^$libname$shrext\\\\.,," \
10346                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10347                               | sed 1q ) 2>/dev/null`
10348                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10349                           found_dir="$dir"
10350                           found_so="$dir/$libname$shrext.$ver"
10351                         fi
10352                       else
10353                         eval library_names=\"$acl_library_names_spec\"
10354                         for f in $library_names; do
10355                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10356                             found_dir="$dir"
10357                             found_so="$dir/$f"
10358                             break
10359                           fi
10360                         done
10361                       fi
10362                     fi
10363                   fi
10364                                     if test "X$found_dir" = "X"; then
10365                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10366                       found_dir="$dir"
10367                       found_a="$dir/$libname.$acl_libext"
10368                     fi
10369                   fi
10370                   if test "X$found_dir" != "X"; then
10371                     if test -f "$dir/$libname.la"; then
10372                       found_la="$dir/$libname.la"
10373                     fi
10374                   fi
10375                   ;;
10376               esac
10377               if test "X$found_dir" != "X"; then
10378                 break
10379               fi
10380             done
10381           fi
10382           if test "X$found_dir" != "X"; then
10383                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10384             if test "X$found_so" != "X"; then
10385                                                         if test "$enable_rpath" = no \
10386                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10387                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10388                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10389                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10390               else
10391                                                                                 haveit=
10392                 for x in $ltrpathdirs; do
10393                   if test "X$x" = "X$found_dir"; then
10394                     haveit=yes
10395                     break
10396                   fi
10397                 done
10398                 if test -z "$haveit"; then
10399                   ltrpathdirs="$ltrpathdirs $found_dir"
10400                 fi
10401                                 if test "$acl_hardcode_direct" = yes; then
10402                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10403                 else
10404                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10405                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10406                                                             haveit=
10407                     for x in $rpathdirs; do
10408                       if test "X$x" = "X$found_dir"; then
10409                         haveit=yes
10410                         break
10411                       fi
10412                     done
10413                     if test -z "$haveit"; then
10414                       rpathdirs="$rpathdirs $found_dir"
10415                     fi
10416                   else
10417                                                                                 haveit=
10418                     for x in $LDFLAGS $LIBINTL; do
10419
10420   acl_save_prefix="$prefix"
10421   prefix="$acl_final_prefix"
10422   acl_save_exec_prefix="$exec_prefix"
10423   exec_prefix="$acl_final_exec_prefix"
10424   eval x=\"$x\"
10425   exec_prefix="$acl_save_exec_prefix"
10426   prefix="$acl_save_prefix"
10427
10428                       if test "X$x" = "X-L$found_dir"; then
10429                         haveit=yes
10430                         break
10431                       fi
10432                     done
10433                     if test -z "$haveit"; then
10434                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10435                     fi
10436                     if test "$acl_hardcode_minus_L" != no; then
10437                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10438                     else
10439                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10440                     fi
10441                   fi
10442                 fi
10443               fi
10444             else
10445               if test "X$found_a" != "X"; then
10446                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10447               else
10448                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10449               fi
10450             fi
10451                         additional_includedir=
10452             case "$found_dir" in
10453               */$acl_libdirstem | */$acl_libdirstem/)
10454                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10455                 if test "$name" = 'intl'; then
10456                   LIBINTL_PREFIX="$basedir"
10457                 fi
10458                 additional_includedir="$basedir/include"
10459                 ;;
10460               */$acl_libdirstem2 | */$acl_libdirstem2/)
10461                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10462                 if test "$name" = 'intl'; then
10463                   LIBINTL_PREFIX="$basedir"
10464                 fi
10465                 additional_includedir="$basedir/include"
10466                 ;;
10467               */$acl_libdirstem3 | */$acl_libdirstem3/)
10468                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10469                 if test "$name" = 'intl'; then
10470                   LIBINTL_PREFIX="$basedir"
10471                 fi
10472                 additional_includedir="$basedir/include"
10473                 ;;
10474             esac
10475             if test "X$additional_includedir" != "X"; then
10476                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10477                 haveit=
10478                 if test "X$additional_includedir" = "X/usr/local/include"; then
10479                   if test -n "$GCC"; then
10480                     case $host_os in
10481                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10482                     esac
10483                   fi
10484                 fi
10485                 if test -z "$haveit"; then
10486                   for x in $CPPFLAGS $INCINTL; do
10487
10488   acl_save_prefix="$prefix"
10489   prefix="$acl_final_prefix"
10490   acl_save_exec_prefix="$exec_prefix"
10491   exec_prefix="$acl_final_exec_prefix"
10492   eval x=\"$x\"
10493   exec_prefix="$acl_save_exec_prefix"
10494   prefix="$acl_save_prefix"
10495
10496                     if test "X$x" = "X-I$additional_includedir"; then
10497                       haveit=yes
10498                       break
10499                     fi
10500                   done
10501                   if test -z "$haveit"; then
10502                     if test -d "$additional_includedir"; then
10503                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10504                     fi
10505                   fi
10506                 fi
10507               fi
10508             fi
10509                         if test -n "$found_la"; then
10510                                                         save_libdir="$libdir"
10511               case "$found_la" in
10512                 */* | *\\*) . "$found_la" ;;
10513                 *) . "./$found_la" ;;
10514               esac
10515               libdir="$save_libdir"
10516                             for dep in $dependency_libs; do
10517                 case "$dep" in
10518                   -L*)
10519                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10520                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10521                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10522                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10523                       haveit=
10524                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10525                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10526                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10527                         if test -n "$GCC"; then
10528                           case $host_os in
10529                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10530                           esac
10531                         fi
10532                       fi
10533                       if test -z "$haveit"; then
10534                         haveit=
10535                         for x in $LDFLAGS $LIBINTL; do
10536
10537   acl_save_prefix="$prefix"
10538   prefix="$acl_final_prefix"
10539   acl_save_exec_prefix="$exec_prefix"
10540   exec_prefix="$acl_final_exec_prefix"
10541   eval x=\"$x\"
10542   exec_prefix="$acl_save_exec_prefix"
10543   prefix="$acl_save_prefix"
10544
10545                           if test "X$x" = "X-L$dependency_libdir"; then
10546                             haveit=yes
10547                             break
10548                           fi
10549                         done
10550                         if test -z "$haveit"; then
10551                           if test -d "$dependency_libdir"; then
10552                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10553                           fi
10554                         fi
10555                         haveit=
10556                         for x in $LDFLAGS $LTLIBINTL; do
10557
10558   acl_save_prefix="$prefix"
10559   prefix="$acl_final_prefix"
10560   acl_save_exec_prefix="$exec_prefix"
10561   exec_prefix="$acl_final_exec_prefix"
10562   eval x=\"$x\"
10563   exec_prefix="$acl_save_exec_prefix"
10564   prefix="$acl_save_prefix"
10565
10566                           if test "X$x" = "X-L$dependency_libdir"; then
10567                             haveit=yes
10568                             break
10569                           fi
10570                         done
10571                         if test -z "$haveit"; then
10572                           if test -d "$dependency_libdir"; then
10573                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10574                           fi
10575                         fi
10576                       fi
10577                     fi
10578                     ;;
10579                   -R*)
10580                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10581                     if test "$enable_rpath" != no; then
10582                                                                   haveit=
10583                       for x in $rpathdirs; do
10584                         if test "X$x" = "X$dir"; then
10585                           haveit=yes
10586                           break
10587                         fi
10588                       done
10589                       if test -z "$haveit"; then
10590                         rpathdirs="$rpathdirs $dir"
10591                       fi
10592                                                                   haveit=
10593                       for x in $ltrpathdirs; do
10594                         if test "X$x" = "X$dir"; then
10595                           haveit=yes
10596                           break
10597                         fi
10598                       done
10599                       if test -z "$haveit"; then
10600                         ltrpathdirs="$ltrpathdirs $dir"
10601                       fi
10602                     fi
10603                     ;;
10604                   -l*)
10605                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10606                     ;;
10607                   *.la)
10608                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10609                     ;;
10610                   *)
10611                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10612                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10613                     ;;
10614                 esac
10615               done
10616             fi
10617           else
10618                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10619             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10620           fi
10621         fi
10622       fi
10623     done
10624   done
10625   if test "X$rpathdirs" != "X"; then
10626     if test -n "$acl_hardcode_libdir_separator"; then
10627                         alldirs=
10628       for found_dir in $rpathdirs; do
10629         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10630       done
10631             acl_save_libdir="$libdir"
10632       libdir="$alldirs"
10633       eval flag=\"$acl_hardcode_libdir_flag_spec\"
10634       libdir="$acl_save_libdir"
10635       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10636     else
10637             for found_dir in $rpathdirs; do
10638         acl_save_libdir="$libdir"
10639         libdir="$found_dir"
10640         eval flag=\"$acl_hardcode_libdir_flag_spec\"
10641         libdir="$acl_save_libdir"
10642         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10643       done
10644     fi
10645   fi
10646   if test "X$ltrpathdirs" != "X"; then
10647             for found_dir in $ltrpathdirs; do
10648       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10649     done
10650   fi
10651
10652
10653
10654
10655
10656           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10657 printf %s "checking for GNU gettext in libintl... " >&6; }
10658 if eval test \${$gt_func_gnugettext_libintl+y}
10659 then :
10660   printf %s "(cached) " >&6
10661 else $as_nop
10662   gt_save_CPPFLAGS="$CPPFLAGS"
10663             CPPFLAGS="$CPPFLAGS $INCINTL"
10664             gt_save_LIBS="$LIBS"
10665             LIBS="$LIBS $LIBINTL"
10666                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h.  */
10668
10669 #include <libintl.h>
10670 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10671 extern int _nl_msg_cat_cntr;
10672 extern
10673 #ifdef __cplusplus
10674 "C"
10675 #endif
10676 const char *_nl_expand_alias (const char *);
10677 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10678 #else
10679 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10680 #endif
10681 $gt_revision_test_code
10682
10683 int
10684 main (void)
10685 {
10686
10687 bindtextdomain ("", "");
10688 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10689
10690   ;
10691   return 0;
10692 }
10693 _ACEOF
10694 if ac_fn_c_try_link "$LINENO"
10695 then :
10696   eval "$gt_func_gnugettext_libintl=yes"
10697 else $as_nop
10698   eval "$gt_func_gnugettext_libintl=no"
10699 fi
10700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10701     conftest$ac_exeext conftest.$ac_ext
10702                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10703               LIBS="$LIBS $LIBICONV"
10704               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h.  */
10706
10707 #include <libintl.h>
10708 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10709 extern int _nl_msg_cat_cntr;
10710 extern
10711 #ifdef __cplusplus
10712 "C"
10713 #endif
10714 const char *_nl_expand_alias (const char *);
10715 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10716 #else
10717 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10718 #endif
10719 $gt_revision_test_code
10720
10721 int
10722 main (void)
10723 {
10724
10725 bindtextdomain ("", "");
10726 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10727
10728   ;
10729   return 0;
10730 }
10731 _ACEOF
10732 if ac_fn_c_try_link "$LINENO"
10733 then :
10734   LIBINTL="$LIBINTL $LIBICONV"
10735                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10736                  eval "$gt_func_gnugettext_libintl=yes"
10737
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10740     conftest$ac_exeext conftest.$ac_ext
10741             fi
10742             CPPFLAGS="$gt_save_CPPFLAGS"
10743             LIBS="$gt_save_LIBS"
10744 fi
10745 eval ac_res=\$$gt_func_gnugettext_libintl
10746                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10747 printf "%s\n" "$ac_res" >&6; }
10748         fi
10749
10750                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10751            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10752                 && test "$PACKAGE" != gettext-runtime \
10753                 && test "$PACKAGE" != gettext-tools; }; then
10754           gt_use_preinstalled_gnugettext=yes
10755         else
10756                     LIBINTL=
10757           LTLIBINTL=
10758           INCINTL=
10759         fi
10760
10761
10762
10763     if test -n "$INTL_MACOSX_LIBS"; then
10764       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10765          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10766                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10767         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10768       fi
10769     fi
10770
10771     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10772        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10773
10774 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10775
10776     else
10777       USE_NLS=no
10778     fi
10779   fi
10780
10781   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10782 printf %s "checking whether to use NLS... " >&6; }
10783   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10784 printf "%s\n" "$USE_NLS" >&6; }
10785   if test "$USE_NLS" = "yes"; then
10786     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10787 printf %s "checking where the gettext function comes from... " >&6; }
10788     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10789       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10790         gt_source="external libintl"
10791       else
10792         gt_source="libc"
10793       fi
10794     else
10795       gt_source="included intl directory"
10796     fi
10797     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10798 printf "%s\n" "$gt_source" >&6; }
10799   fi
10800
10801   if test "$USE_NLS" = "yes"; then
10802
10803     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10804       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10805         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10806 printf %s "checking how to link with libintl... " >&6; }
10807         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10808 printf "%s\n" "$LIBINTL" >&6; }
10809
10810   for element in $INCINTL; do
10811     haveit=
10812     for x in $CPPFLAGS; do
10813
10814   acl_save_prefix="$prefix"
10815   prefix="$acl_final_prefix"
10816   acl_save_exec_prefix="$exec_prefix"
10817   exec_prefix="$acl_final_exec_prefix"
10818   eval x=\"$x\"
10819   exec_prefix="$acl_save_exec_prefix"
10820   prefix="$acl_save_prefix"
10821
10822       if test "X$x" = "X$element"; then
10823         haveit=yes
10824         break
10825       fi
10826     done
10827     if test -z "$haveit"; then
10828       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10829     fi
10830   done
10831
10832       fi
10833
10834
10835 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10836
10837
10838 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10839
10840     fi
10841
10842         POSUB=po
10843   fi
10844
10845
10846
10847     INTLLIBS="$LIBINTL"
10848
10849
10850
10851
10852
10853
10854
10855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10856 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10857 set x ${MAKE-make}
10858 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10859 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10860 then :
10861   printf %s "(cached) " >&6
10862 else $as_nop
10863   cat >conftest.make <<\_ACEOF
10864 SHELL = /bin/sh
10865 all:
10866         @echo '@@@%%%=$(MAKE)=@@@%%%'
10867 _ACEOF
10868 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10870   *@@@%%%=?*=@@@%%%*)
10871     eval ac_cv_prog_make_${ac_make}_set=yes;;
10872   *)
10873     eval ac_cv_prog_make_${ac_make}_set=no;;
10874 esac
10875 rm -f conftest.make
10876 fi
10877 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10878   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10879 printf "%s\n" "yes" >&6; }
10880   SET_MAKE=
10881 else
10882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 printf "%s\n" "no" >&6; }
10884   SET_MAKE="MAKE=${MAKE-make}"
10885 fi
10886
10887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10888 printf %s "checking for GNU make... " >&6; }
10889 if test ${_cv_gnu_make_command+y}
10890 then :
10891   printf %s "(cached) " >&6
10892 else $as_nop
10893   _cv_gnu_make_command='' ;
10894                 if test -n "$FORCE_NATIVE_MAKE" ; then
10895                    MAKES="make"
10896                 else
10897                    MAKES="make gmake gnumake"
10898                 fi
10899                 for a in "$MAKE" $MAKES ; do
10900                         if test -z "$a" ; then continue ; fi ;
10901                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
10902                                 _cv_gnu_make_command=$a ;
10903                                 break;
10904                         fi
10905                 done ;
10906
10907 fi
10908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10909 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10910         if test  "x$_cv_gnu_make_command" != "x"  ; then
10911                 ifGNUmake='' ;
10912                 ifNotGNUmake='#' ;
10913         else
10914                 ifGNUmake='#' ;
10915                 ifNotGNUmake='' ;
10916                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10917 printf "%s\n" "\"Not found\"" >&6; };
10918         fi
10919
10920
10921
10922 # Extract the first word of "ln", so it can be a program name with args.
10923 set dummy ln; ac_word=$2
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 printf %s "checking for $ac_word... " >&6; }
10926 if test ${ac_cv_path_LN+y}
10927 then :
10928   printf %s "(cached) " >&6
10929 else $as_nop
10930   case $LN in
10931   [\\/]* | ?:[\\/]*)
10932   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10933   ;;
10934   *)
10935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10937 do
10938   IFS=$as_save_IFS
10939   case $as_dir in #(((
10940     '') as_dir=./ ;;
10941     */) ;;
10942     *) as_dir=$as_dir/ ;;
10943   esac
10944     for ac_exec_ext in '' $ac_executable_extensions; do
10945   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10946     ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10947     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10948     break 2
10949   fi
10950 done
10951   done
10952 IFS=$as_save_IFS
10953
10954   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10955   ;;
10956 esac
10957 fi
10958 LN=$ac_cv_path_LN
10959 if test -n "$LN"; then
10960   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10961 printf "%s\n" "$LN" >&6; }
10962 else
10963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 printf "%s\n" "no" >&6; }
10965 fi
10966
10967
10968
10969 mkdir_p=$MKDIR_P
10970
10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10972 printf %s "checking whether ln -s works... " >&6; }
10973 LN_S=$as_ln_s
10974 if test "$LN_S" = "ln -s"; then
10975   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10976 printf "%s\n" "yes" >&6; }
10977 else
10978   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10979 printf "%s\n" "no, using $LN_S" >&6; }
10980 fi
10981
10982 # Extract the first word of "mv", so it can be a program name with args.
10983 set dummy mv; ac_word=$2
10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985 printf %s "checking for $ac_word... " >&6; }
10986 if test ${ac_cv_path_MV+y}
10987 then :
10988   printf %s "(cached) " >&6
10989 else $as_nop
10990   case $MV in
10991   [\\/]* | ?:[\\/]*)
10992   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10993   ;;
10994   *)
10995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10997 do
10998   IFS=$as_save_IFS
10999   case $as_dir in #(((
11000     '') as_dir=./ ;;
11001     */) ;;
11002     *) as_dir=$as_dir/ ;;
11003   esac
11004     for ac_exec_ext in '' $ac_executable_extensions; do
11005   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11006     ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11007     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11008     break 2
11009   fi
11010 done
11011   done
11012 IFS=$as_save_IFS
11013
11014   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11015   ;;
11016 esac
11017 fi
11018 MV=$ac_cv_path_MV
11019 if test -n "$MV"; then
11020   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11021 printf "%s\n" "$MV" >&6; }
11022 else
11023   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 printf "%s\n" "no" >&6; }
11025 fi
11026
11027
11028 # Extract the first word of "cp", so it can be a program name with args.
11029 set dummy cp; ac_word=$2
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031 printf %s "checking for $ac_word... " >&6; }
11032 if test ${ac_cv_path_CP+y}
11033 then :
11034   printf %s "(cached) " >&6
11035 else $as_nop
11036   case $CP in
11037   [\\/]* | ?:[\\/]*)
11038   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11039   ;;
11040   *)
11041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11043 do
11044   IFS=$as_save_IFS
11045   case $as_dir in #(((
11046     '') as_dir=./ ;;
11047     */) ;;
11048     *) as_dir=$as_dir/ ;;
11049   esac
11050     for ac_exec_ext in '' $ac_executable_extensions; do
11051   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11052     ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11053     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11054     break 2
11055   fi
11056 done
11057   done
11058 IFS=$as_save_IFS
11059
11060   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11061   ;;
11062 esac
11063 fi
11064 CP=$ac_cv_path_CP
11065 if test -n "$CP"; then
11066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11067 printf "%s\n" "$CP" >&6; }
11068 else
11069   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 printf "%s\n" "no" >&6; }
11071 fi
11072
11073
11074 # Extract the first word of "rm", so it can be a program name with args.
11075 set dummy rm; ac_word=$2
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 printf %s "checking for $ac_word... " >&6; }
11078 if test ${ac_cv_path_RM+y}
11079 then :
11080   printf %s "(cached) " >&6
11081 else $as_nop
11082   case $RM in
11083   [\\/]* | ?:[\\/]*)
11084   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11085   ;;
11086   *)
11087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088 for as_dir in $PATH
11089 do
11090   IFS=$as_save_IFS
11091   case $as_dir in #(((
11092     '') as_dir=./ ;;
11093     */) ;;
11094     *) as_dir=$as_dir/ ;;
11095   esac
11096     for ac_exec_ext in '' $ac_executable_extensions; do
11097   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11098     ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11099     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11100     break 2
11101   fi
11102 done
11103   done
11104 IFS=$as_save_IFS
11105
11106   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11107   ;;
11108 esac
11109 fi
11110 RM=$ac_cv_path_RM
11111 if test -n "$RM"; then
11112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11113 printf "%s\n" "$RM" >&6; }
11114 else
11115   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 printf "%s\n" "no" >&6; }
11117 fi
11118
11119
11120 # Extract the first word of "chmod", so it can be a program name with args.
11121 set dummy chmod; ac_word=$2
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11123 printf %s "checking for $ac_word... " >&6; }
11124 if test ${ac_cv_path_CHMOD+y}
11125 then :
11126   printf %s "(cached) " >&6
11127 else $as_nop
11128   case $CHMOD in
11129   [\\/]* | ?:[\\/]*)
11130   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11131   ;;
11132   *)
11133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136   IFS=$as_save_IFS
11137   case $as_dir in #(((
11138     '') as_dir=./ ;;
11139     */) ;;
11140     *) as_dir=$as_dir/ ;;
11141   esac
11142     for ac_exec_ext in '' $ac_executable_extensions; do
11143   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11144     ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11145     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11146     break 2
11147   fi
11148 done
11149   done
11150 IFS=$as_save_IFS
11151
11152   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11153   ;;
11154 esac
11155 fi
11156 CHMOD=$ac_cv_path_CHMOD
11157 if test -n "$CHMOD"; then
11158   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11159 printf "%s\n" "$CHMOD" >&6; }
11160 else
11161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 printf "%s\n" "no" >&6; }
11163 fi
11164
11165
11166 for ac_prog in gawk mawk nawk awk
11167 do
11168   # Extract the first word of "$ac_prog", so it can be a program name with args.
11169 set dummy $ac_prog; ac_word=$2
11170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171 printf %s "checking for $ac_word... " >&6; }
11172 if test ${ac_cv_prog_AWK+y}
11173 then :
11174   printf %s "(cached) " >&6
11175 else $as_nop
11176   if test -n "$AWK"; then
11177   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11178 else
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180 for as_dir in $PATH
11181 do
11182   IFS=$as_save_IFS
11183   case $as_dir in #(((
11184     '') as_dir=./ ;;
11185     */) ;;
11186     *) as_dir=$as_dir/ ;;
11187   esac
11188     for ac_exec_ext in '' $ac_executable_extensions; do
11189   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11190     ac_cv_prog_AWK="$ac_prog"
11191     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11192     break 2
11193   fi
11194 done
11195   done
11196 IFS=$as_save_IFS
11197
11198 fi
11199 fi
11200 AWK=$ac_cv_prog_AWK
11201 if test -n "$AWK"; then
11202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11203 printf "%s\n" "$AWK" >&6; }
11204 else
11205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 printf "%s\n" "no" >&6; }
11207 fi
11208
11209
11210   test -n "$AWK" && break
11211 done
11212
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11214 printf %s "checking for egrep... " >&6; }
11215 if test ${ac_cv_path_EGREP+y}
11216 then :
11217   printf %s "(cached) " >&6
11218 else $as_nop
11219   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11220    then ac_cv_path_EGREP="$GREP -E"
11221    else
11222      if test -z "$EGREP"; then
11223   ac_path_EGREP_found=false
11224   # Loop through the user's path and test for each of PROGNAME-LIST
11225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11227 do
11228   IFS=$as_save_IFS
11229   case $as_dir in #(((
11230     '') as_dir=./ ;;
11231     */) ;;
11232     *) as_dir=$as_dir/ ;;
11233   esac
11234     for ac_prog in egrep
11235    do
11236     for ac_exec_ext in '' $ac_executable_extensions; do
11237       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11238       as_fn_executable_p "$ac_path_EGREP" || continue
11239 # Check for GNU ac_path_EGREP and select it if it is found.
11240   # Check for GNU $ac_path_EGREP
11241 case `"$ac_path_EGREP" --version 2>&1` in
11242 *GNU*)
11243   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11244 *)
11245   ac_count=0
11246   printf %s 0123456789 >"conftest.in"
11247   while :
11248   do
11249     cat "conftest.in" "conftest.in" >"conftest.tmp"
11250     mv "conftest.tmp" "conftest.in"
11251     cp "conftest.in" "conftest.nl"
11252     printf "%s\n" 'EGREP' >> "conftest.nl"
11253     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11254     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11255     as_fn_arith $ac_count + 1 && ac_count=$as_val
11256     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11257       # Best one so far, save it but keep looking for a better one
11258       ac_cv_path_EGREP="$ac_path_EGREP"
11259       ac_path_EGREP_max=$ac_count
11260     fi
11261     # 10*(2^10) chars as input seems more than enough
11262     test $ac_count -gt 10 && break
11263   done
11264   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11265 esac
11266
11267       $ac_path_EGREP_found && break 3
11268     done
11269   done
11270   done
11271 IFS=$as_save_IFS
11272   if test -z "$ac_cv_path_EGREP"; then
11273     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11274   fi
11275 else
11276   ac_cv_path_EGREP=$EGREP
11277 fi
11278
11279    fi
11280 fi
11281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11282 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11283  EGREP="$ac_cv_path_EGREP"
11284
11285
11286 # Extract the first word of "sed", so it can be a program name with args.
11287 set dummy sed; ac_word=$2
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 printf %s "checking for $ac_word... " >&6; }
11290 if test ${ac_cv_path_SED+y}
11291 then :
11292   printf %s "(cached) " >&6
11293 else $as_nop
11294   case $SED in
11295   [\\/]* | ?:[\\/]*)
11296   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11297   ;;
11298   *)
11299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11301 do
11302   IFS=$as_save_IFS
11303   case $as_dir in #(((
11304     '') as_dir=./ ;;
11305     */) ;;
11306     *) as_dir=$as_dir/ ;;
11307   esac
11308     for ac_exec_ext in '' $ac_executable_extensions; do
11309   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11310     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11311     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11312     break 2
11313   fi
11314 done
11315   done
11316 IFS=$as_save_IFS
11317
11318   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11319   ;;
11320 esac
11321 fi
11322 SED=$ac_cv_path_SED
11323 if test -n "$SED"; then
11324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11325 printf "%s\n" "$SED" >&6; }
11326 else
11327   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 printf "%s\n" "no" >&6; }
11329 fi
11330
11331
11332 # Extract the first word of "perl", so it can be a program name with args.
11333 set dummy perl; ac_word=$2
11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 printf %s "checking for $ac_word... " >&6; }
11336 if test ${ac_cv_path_PERL+y}
11337 then :
11338   printf %s "(cached) " >&6
11339 else $as_nop
11340   case $PERL in
11341   [\\/]* | ?:[\\/]*)
11342   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11343   ;;
11344   *)
11345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11347 do
11348   IFS=$as_save_IFS
11349   case $as_dir in #(((
11350     '') as_dir=./ ;;
11351     */) ;;
11352     *) as_dir=$as_dir/ ;;
11353   esac
11354     for ac_exec_ext in '' $ac_executable_extensions; do
11355   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11356     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11357     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11358     break 2
11359   fi
11360 done
11361   done
11362 IFS=$as_save_IFS
11363
11364   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11365   ;;
11366 esac
11367 fi
11368 PERL=$ac_cv_path_PERL
11369 if test -n "$PERL"; then
11370   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11371 printf "%s\n" "$PERL" >&6; }
11372 else
11373   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 printf "%s\n" "no" >&6; }
11375 fi
11376
11377
11378 # Extract the first word of "ldconfig", so it can be a program name with args.
11379 set dummy ldconfig; ac_word=$2
11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11381 printf %s "checking for $ac_word... " >&6; }
11382 if test ${ac_cv_path_LDCONFIG+y}
11383 then :
11384   printf %s "(cached) " >&6
11385 else $as_nop
11386   case $LDCONFIG in
11387   [\\/]* | ?:[\\/]*)
11388   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11389   ;;
11390   *)
11391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   case $as_dir in #(((
11396     '') as_dir=./ ;;
11397     */) ;;
11398     *) as_dir=$as_dir/ ;;
11399   esac
11400     for ac_exec_ext in '' $ac_executable_extensions; do
11401   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11402     ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11403     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11404     break 2
11405   fi
11406 done
11407   done
11408 IFS=$as_save_IFS
11409
11410   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11411   ;;
11412 esac
11413 fi
11414 LDCONFIG=$ac_cv_path_LDCONFIG
11415 if test -n "$LDCONFIG"; then
11416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11417 printf "%s\n" "$LDCONFIG" >&6; }
11418 else
11419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 printf "%s\n" "no" >&6; }
11421 fi
11422
11423
11424 if test -n "$ac_tool_prefix"; then
11425   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11426 set dummy ${ac_tool_prefix}ar; ac_word=$2
11427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428 printf %s "checking for $ac_word... " >&6; }
11429 if test ${ac_cv_prog_AR+y}
11430 then :
11431   printf %s "(cached) " >&6
11432 else $as_nop
11433   if test -n "$AR"; then
11434   ac_cv_prog_AR="$AR" # Let the user override the test.
11435 else
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11438 do
11439   IFS=$as_save_IFS
11440   case $as_dir in #(((
11441     '') as_dir=./ ;;
11442     */) ;;
11443     *) as_dir=$as_dir/ ;;
11444   esac
11445     for ac_exec_ext in '' $ac_executable_extensions; do
11446   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11447     ac_cv_prog_AR="${ac_tool_prefix}ar"
11448     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11449     break 2
11450   fi
11451 done
11452   done
11453 IFS=$as_save_IFS
11454
11455 fi
11456 fi
11457 AR=$ac_cv_prog_AR
11458 if test -n "$AR"; then
11459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11460 printf "%s\n" "$AR" >&6; }
11461 else
11462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463 printf "%s\n" "no" >&6; }
11464 fi
11465
11466
11467 fi
11468 if test -z "$ac_cv_prog_AR"; then
11469   ac_ct_AR=$AR
11470   # Extract the first word of "ar", so it can be a program name with args.
11471 set dummy ar; ac_word=$2
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 printf %s "checking for $ac_word... " >&6; }
11474 if test ${ac_cv_prog_ac_ct_AR+y}
11475 then :
11476   printf %s "(cached) " >&6
11477 else $as_nop
11478   if test -n "$ac_ct_AR"; then
11479   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11480 else
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11483 do
11484   IFS=$as_save_IFS
11485   case $as_dir in #(((
11486     '') as_dir=./ ;;
11487     */) ;;
11488     *) as_dir=$as_dir/ ;;
11489   esac
11490     for ac_exec_ext in '' $ac_executable_extensions; do
11491   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11492     ac_cv_prog_ac_ct_AR="ar"
11493     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11494     break 2
11495   fi
11496 done
11497   done
11498 IFS=$as_save_IFS
11499
11500 fi
11501 fi
11502 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11503 if test -n "$ac_ct_AR"; then
11504   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11505 printf "%s\n" "$ac_ct_AR" >&6; }
11506 else
11507   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 printf "%s\n" "no" >&6; }
11509 fi
11510
11511   if test "x$ac_ct_AR" = x; then
11512     AR="ar"
11513   else
11514     case $cross_compiling:$ac_tool_warned in
11515 yes:)
11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11517 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11518 ac_tool_warned=yes ;;
11519 esac
11520     AR=$ac_ct_AR
11521   fi
11522 else
11523   AR="$ac_cv_prog_AR"
11524 fi
11525
11526 if test -n "$ac_tool_prefix"; then
11527   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 printf %s "checking for $ac_word... " >&6; }
11531 if test ${ac_cv_prog_RANLIB+y}
11532 then :
11533   printf %s "(cached) " >&6
11534 else $as_nop
11535   if test -n "$RANLIB"; then
11536   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11537 else
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11540 do
11541   IFS=$as_save_IFS
11542   case $as_dir in #(((
11543     '') as_dir=./ ;;
11544     */) ;;
11545     *) as_dir=$as_dir/ ;;
11546   esac
11547     for ac_exec_ext in '' $ac_executable_extensions; do
11548   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11549     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11550     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11551     break 2
11552   fi
11553 done
11554   done
11555 IFS=$as_save_IFS
11556
11557 fi
11558 fi
11559 RANLIB=$ac_cv_prog_RANLIB
11560 if test -n "$RANLIB"; then
11561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11562 printf "%s\n" "$RANLIB" >&6; }
11563 else
11564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 printf "%s\n" "no" >&6; }
11566 fi
11567
11568
11569 fi
11570 if test -z "$ac_cv_prog_RANLIB"; then
11571   ac_ct_RANLIB=$RANLIB
11572   # Extract the first word of "ranlib", so it can be a program name with args.
11573 set dummy ranlib; ac_word=$2
11574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 printf %s "checking for $ac_word... " >&6; }
11576 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11577 then :
11578   printf %s "(cached) " >&6
11579 else $as_nop
11580   if test -n "$ac_ct_RANLIB"; then
11581   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586   IFS=$as_save_IFS
11587   case $as_dir in #(((
11588     '') as_dir=./ ;;
11589     */) ;;
11590     *) as_dir=$as_dir/ ;;
11591   esac
11592     for ac_exec_ext in '' $ac_executable_extensions; do
11593   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11594     ac_cv_prog_ac_ct_RANLIB="ranlib"
11595     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11596     break 2
11597   fi
11598 done
11599   done
11600 IFS=$as_save_IFS
11601
11602 fi
11603 fi
11604 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11605 if test -n "$ac_ct_RANLIB"; then
11606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11607 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11608 else
11609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 printf "%s\n" "no" >&6; }
11611 fi
11612
11613   if test "x$ac_ct_RANLIB" = x; then
11614     RANLIB=":"
11615   else
11616     case $cross_compiling:$ac_tool_warned in
11617 yes:)
11618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11620 ac_tool_warned=yes ;;
11621 esac
11622     RANLIB=$ac_ct_RANLIB
11623   fi
11624 else
11625   RANLIB="$ac_cv_prog_RANLIB"
11626 fi
11627
11628 if test -n "$ac_tool_prefix"; then
11629   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11630 set dummy ${ac_tool_prefix}strip; ac_word=$2
11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 printf %s "checking for $ac_word... " >&6; }
11633 if test ${ac_cv_prog_STRIP+y}
11634 then :
11635   printf %s "(cached) " >&6
11636 else $as_nop
11637   if test -n "$STRIP"; then
11638   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11639 else
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11642 do
11643   IFS=$as_save_IFS
11644   case $as_dir in #(((
11645     '') as_dir=./ ;;
11646     */) ;;
11647     *) as_dir=$as_dir/ ;;
11648   esac
11649     for ac_exec_ext in '' $ac_executable_extensions; do
11650   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11651     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11652     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11653     break 2
11654   fi
11655 done
11656   done
11657 IFS=$as_save_IFS
11658
11659 fi
11660 fi
11661 STRIP=$ac_cv_prog_STRIP
11662 if test -n "$STRIP"; then
11663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11664 printf "%s\n" "$STRIP" >&6; }
11665 else
11666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 printf "%s\n" "no" >&6; }
11668 fi
11669
11670
11671 fi
11672 if test -z "$ac_cv_prog_STRIP"; then
11673   ac_ct_STRIP=$STRIP
11674   # Extract the first word of "strip", so it can be a program name with args.
11675 set dummy strip; ac_word=$2
11676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677 printf %s "checking for $ac_word... " >&6; }
11678 if test ${ac_cv_prog_ac_ct_STRIP+y}
11679 then :
11680   printf %s "(cached) " >&6
11681 else $as_nop
11682   if test -n "$ac_ct_STRIP"; then
11683   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   case $as_dir in #(((
11690     '') as_dir=./ ;;
11691     */) ;;
11692     *) as_dir=$as_dir/ ;;
11693   esac
11694     for ac_exec_ext in '' $ac_executable_extensions; do
11695   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11696     ac_cv_prog_ac_ct_STRIP="strip"
11697     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11698     break 2
11699   fi
11700 done
11701   done
11702 IFS=$as_save_IFS
11703
11704 fi
11705 fi
11706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11707 if test -n "$ac_ct_STRIP"; then
11708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11709 printf "%s\n" "$ac_ct_STRIP" >&6; }
11710 else
11711   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 printf "%s\n" "no" >&6; }
11713 fi
11714
11715   if test "x$ac_ct_STRIP" = x; then
11716     STRIP=":"
11717   else
11718     case $cross_compiling:$ac_tool_warned in
11719 yes:)
11720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11721 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11722 ac_tool_warned=yes ;;
11723 esac
11724     STRIP=$ac_ct_STRIP
11725   fi
11726 else
11727   STRIP="$ac_cv_prog_STRIP"
11728 fi
11729
11730 # Extract the first word of "makeinfo", so it can be a program name with args.
11731 set dummy makeinfo; ac_word=$2
11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733 printf %s "checking for $ac_word... " >&6; }
11734 if test ${ac_cv_prog_MAKEINFO+y}
11735 then :
11736   printf %s "(cached) " >&6
11737 else $as_nop
11738   if test -n "$MAKEINFO"; then
11739   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11740 else
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11743 do
11744   IFS=$as_save_IFS
11745   case $as_dir in #(((
11746     '') as_dir=./ ;;
11747     */) ;;
11748     *) as_dir=$as_dir/ ;;
11749   esac
11750     for ac_exec_ext in '' $ac_executable_extensions; do
11751   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11752     ac_cv_prog_MAKEINFO="makeinfo"
11753     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11754     break 2
11755   fi
11756 done
11757   done
11758 IFS=$as_save_IFS
11759
11760 fi
11761 fi
11762 MAKEINFO=$ac_cv_prog_MAKEINFO
11763 if test -n "$MAKEINFO"; then
11764   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11765 printf "%s\n" "$MAKEINFO" >&6; }
11766 else
11767   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 printf "%s\n" "no" >&6; }
11769 fi
11770
11771
11772 if test "_$MAKEINFO" = "_"; then
11773     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11774 else
11775     case "$MAKEINFO" in
11776       */missing.*)
11777         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11778 *** Makeinfo is missing. Info documentation will not be built." >&5
11779 printf "%s\n" "$as_me: WARNING:
11780 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11781         ;;
11782       *)
11783         ;;
11784     esac
11785 fi
11786
11787
11788 # See if we need a separate native compiler.
11789 if test $cross_compiling = no; then
11790   BUILD_CC="$CC"
11791
11792 else
11793   for ac_prog in gcc cc
11794 do
11795   # Extract the first word of "$ac_prog", so it can be a program name with args.
11796 set dummy $ac_prog; ac_word=$2
11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 printf %s "checking for $ac_word... " >&6; }
11799 if test ${ac_cv_prog_BUILD_CC+y}
11800 then :
11801   printf %s "(cached) " >&6
11802 else $as_nop
11803   if test -n "$BUILD_CC"; then
11804   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11805 else
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11808 do
11809   IFS=$as_save_IFS
11810   case $as_dir in #(((
11811     '') as_dir=./ ;;
11812     */) ;;
11813     *) as_dir=$as_dir/ ;;
11814   esac
11815     for ac_exec_ext in '' $ac_executable_extensions; do
11816   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11817     ac_cv_prog_BUILD_CC="$ac_prog"
11818     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11819     break 2
11820   fi
11821 done
11822   done
11823 IFS=$as_save_IFS
11824
11825 fi
11826 fi
11827 BUILD_CC=$ac_cv_prog_BUILD_CC
11828 if test -n "$BUILD_CC"; then
11829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11830 printf "%s\n" "$BUILD_CC" >&6; }
11831 else
11832   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 printf "%s\n" "no" >&6; }
11834 fi
11835
11836
11837   test -n "$BUILD_CC" && break
11838 done
11839
11840 fi
11841 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11842 if test "x$ac_cv_header_dirent_h" = xyes
11843 then :
11844   printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11845
11846 fi
11847 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11848 if test "x$ac_cv_header_errno_h" = xyes
11849 then :
11850   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11851
11852 fi
11853 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11854 if test "x$ac_cv_header_execinfo_h" = xyes
11855 then :
11856   printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11857
11858 fi
11859 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11860 if test "x$ac_cv_header_getopt_h" = xyes
11861 then :
11862   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11863
11864 fi
11865 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11866 if test "x$ac_cv_header_malloc_h" = xyes
11867 then :
11868   printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11869
11870 fi
11871 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11872 if test "x$ac_cv_header_mntent_h" = xyes
11873 then :
11874   printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11875
11876 fi
11877 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11878 if test "x$ac_cv_header_paths_h" = xyes
11879 then :
11880   printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11881
11882 fi
11883 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11884 if test "x$ac_cv_header_pthread_h" = xyes
11885 then :
11886   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11887
11888 fi
11889 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11890 if test "x$ac_cv_header_semaphore_h" = xyes
11891 then :
11892   printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11893
11894 fi
11895 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11896 if test "x$ac_cv_header_setjmp_h" = xyes
11897 then :
11898   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11899
11900 fi
11901 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11902 if test "x$ac_cv_header_signal_h" = xyes
11903 then :
11904   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11905
11906 fi
11907 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11908 if test "x$ac_cv_header_stdarg_h" = xyes
11909 then :
11910   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11911
11912 fi
11913 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11914 if test "x$ac_cv_header_stdint_h" = xyes
11915 then :
11916   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11917
11918 fi
11919 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11920 if test "x$ac_cv_header_stdlib_h" = xyes
11921 then :
11922   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11923
11924 fi
11925 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11926 if test "x$ac_cv_header_termios_h" = xyes
11927 then :
11928   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11929
11930 fi
11931 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11932 if test "x$ac_cv_header_termio_h" = xyes
11933 then :
11934   printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11935
11936 fi
11937 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11938 if test "x$ac_cv_header_unistd_h" = xyes
11939 then :
11940   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11941
11942 fi
11943 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11944 if test "x$ac_cv_header_utime_h" = xyes
11945 then :
11946   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11947
11948 fi
11949 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11950 if test "x$ac_cv_header_attr_xattr_h" = xyes
11951 then :
11952   printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11953
11954 fi
11955 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11956 if test "x$ac_cv_header_linux_falloc_h" = xyes
11957 then :
11958   printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11959
11960 fi
11961 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11962 if test "x$ac_cv_header_linux_fd_h" = xyes
11963 then :
11964   printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11965
11966 fi
11967 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11968 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11969 then :
11970   printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11971
11972 fi
11973 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11974 if test "x$ac_cv_header_linux_major_h" = xyes
11975 then :
11976   printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11977
11978 fi
11979 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11980 if test "x$ac_cv_header_linux_loop_h" = xyes
11981 then :
11982   printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11983
11984 fi
11985 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11986 if test "x$ac_cv_header_linux_types_h" = xyes
11987 then :
11988   printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11989
11990 fi
11991 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11992 if test "x$ac_cv_header_net_if_dl_h" = xyes
11993 then :
11994   printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
11995
11996 fi
11997 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
11998 if test "x$ac_cv_header_netinet_in_h" = xyes
11999 then :
12000   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12001
12002 fi
12003 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12004 if test "x$ac_cv_header_sys_acl_h" = xyes
12005 then :
12006   printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12007
12008 fi
12009 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12010 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12011 then :
12012   printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12013
12014 fi
12015 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12016 if test "x$ac_cv_header_sys_disk_h" = xyes
12017 then :
12018   printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12019
12020 fi
12021 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12022 if test "x$ac_cv_header_sys_file_h" = xyes
12023 then :
12024   printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12025
12026 fi
12027 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12028 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12029 then :
12030   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12031
12032 fi
12033 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12034 if test "x$ac_cv_header_sys_key_h" = xyes
12035 then :
12036   printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12037
12038 fi
12039 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12040 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12041 then :
12042   printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12043
12044 fi
12045 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12046 if test "x$ac_cv_header_sys_mman_h" = xyes
12047 then :
12048   printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12049
12050 fi
12051 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12052 if test "x$ac_cv_header_sys_mount_h" = xyes
12053 then :
12054   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12055
12056 fi
12057 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12058 if test "x$ac_cv_header_sys_prctl_h" = xyes
12059 then :
12060   printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12061
12062 fi
12063 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12064 if test "x$ac_cv_header_sys_random_h" = xyes
12065 then :
12066   printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12067
12068 fi
12069 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12070 if test "x$ac_cv_header_sys_resource_h" = xyes
12071 then :
12072   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12073
12074 fi
12075 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12076 if test "x$ac_cv_header_sys_select_h" = xyes
12077 then :
12078   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12079
12080 fi
12081 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12082 if test "x$ac_cv_header_sys_socket_h" = xyes
12083 then :
12084   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12085
12086 fi
12087 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12088 if test "x$ac_cv_header_sys_sockio_h" = xyes
12089 then :
12090   printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12091
12092 fi
12093 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12094 if test "x$ac_cv_header_sys_stat_h" = xyes
12095 then :
12096   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12097
12098 fi
12099 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12100 if test "x$ac_cv_header_sys_syscall_h" = xyes
12101 then :
12102   printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12103
12104 fi
12105 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12106 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12107 then :
12108   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12109
12110 fi
12111 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12112 if test "x$ac_cv_header_sys_time_h" = xyes
12113 then :
12114   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12115
12116 fi
12117 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12118 if test "x$ac_cv_header_sys_types_h" = xyes
12119 then :
12120   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12121
12122 fi
12123 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12124 if test "x$ac_cv_header_sys_un_h" = xyes
12125 then :
12126   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12127
12128 fi
12129 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12130 if test "x$ac_cv_header_sys_wait_h" = xyes
12131 then :
12132   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12133
12134 fi
12135 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12136 if test "x$ac_cv_header_sys_xattr_h" = xyes
12137 then :
12138   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12139
12140 fi
12141
12142 case "$host_os" in
12143 mingw*)
12144         # The above checks only detect system headers, not the headers in
12145         # ./include/mingw/, so explicitly define them to be available.
12146         printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12147
12148         printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12149
12150         printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12151
12152         printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12153
12154         printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12155
12156         ;;
12157 esac
12158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12159 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12160 DD=
12161 for i in dd gdd ; do
12162         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12163                 DD=$i
12164                 break
12165         fi
12166 done
12167 if test -n "$DD" ; then
12168         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12169 printf "%s\n" "$DD" >&6; }
12170 else
12171         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12172 printf "%s\n" "not found, using dd" >&6; }
12173         DD=dd
12174         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12175 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12176 fi
12177
12178
12179 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12180 #if HAVE_SYS_TYPES_H
12181 #include <sys/types.h>
12182 #endif
12183 #if HAVE_SYS_SOCKET
12184 #include <sys/socket.h>
12185 #endif
12186
12187 "
12188 if test "x$ac_cv_header_net_if_h" = xyes
12189 then :
12190   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12191
12192 fi
12193
12194 ac_func=
12195 for ac_item in $ac_func_c_list
12196 do
12197   if test $ac_func; then
12198     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12199     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12200       echo "#define $ac_item 1" >> confdefs.h
12201     fi
12202     ac_func=
12203   else
12204     ac_func=$ac_item
12205   fi
12206 done
12207
12208 if test "x$ac_cv_func_vprintf" = xno
12209 then :
12210   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12211 if test "x$ac_cv_func__doprnt" = xyes
12212 then :
12213
12214 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12215
12216 fi
12217
12218 fi
12219 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12220 "
12221 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12222 then :
12223
12224 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12225
12226 fi
12227
12228 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12229 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12230 then :
12231
12232 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12233
12234
12235 fi
12236
12237 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12238 "
12239 if test "x$ac_cv_type_ssize_t" = xyes
12240 then :
12241
12242 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12243
12244 fi
12245
12246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12247 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12248 if test ${ac_cv_c_undeclared_builtin_options+y}
12249 then :
12250   printf %s "(cached) " >&6
12251 else $as_nop
12252   ac_save_CFLAGS=$CFLAGS
12253    ac_cv_c_undeclared_builtin_options='cannot detect'
12254    for ac_arg in '' -fno-builtin; do
12255      CFLAGS="$ac_save_CFLAGS $ac_arg"
12256      # This test program should *not* compile successfully.
12257      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h.  */
12259
12260 int
12261 main (void)
12262 {
12263 (void) strchr;
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 if ac_fn_c_try_compile "$LINENO"
12269 then :
12270
12271 else $as_nop
12272   # This test program should compile successfully.
12273         # No library function is consistently available on
12274         # freestanding implementations, so test against a dummy
12275         # declaration.  Include always-available headers on the
12276         # off chance that they somehow elicit warnings.
12277         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h.  */
12279 #include <float.h>
12280 #include <limits.h>
12281 #include <stdarg.h>
12282 #include <stddef.h>
12283 extern void ac_decl (int, char *);
12284
12285 int
12286 main (void)
12287 {
12288 (void) ac_decl (0, (char *) 0);
12289   (void) ac_decl;
12290
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_compile "$LINENO"
12296 then :
12297   if test x"$ac_arg" = x
12298 then :
12299   ac_cv_c_undeclared_builtin_options='none needed'
12300 else $as_nop
12301   ac_cv_c_undeclared_builtin_options=$ac_arg
12302 fi
12303           break
12304 fi
12305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12308     done
12309     CFLAGS=$ac_save_CFLAGS
12310
12311 fi
12312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12313 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12314   case $ac_cv_c_undeclared_builtin_options in #(
12315   'cannot detect') :
12316     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12317 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12318 as_fn_error $? "cannot make $CC report undeclared builtins
12319 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12320   'none needed') :
12321     ac_c_undeclared_builtin_options='' ;; #(
12322   *) :
12323     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12324 esac
12325
12326 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12327 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12328 if test "x$ac_cv_have_decl_llseek" = xyes
12329 then :
12330
12331 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12332
12333 fi
12334 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12335                  #define _LARGEFILE64_SOURCE
12336                  #include <unistd.h>
12337 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12338 if test "x$ac_cv_have_decl_lseek64" = xyes
12339 then :
12340
12341 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12342
12343 fi
12344
12345 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12346 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12347 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12348 then :
12349
12350 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12351
12352 fi
12353 # Check whether --enable-largefile was given.
12354 if test ${enable_largefile+y}
12355 then :
12356   enableval=$enable_largefile;
12357 fi
12358
12359 if test "$enable_largefile" != no; then
12360
12361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12362 printf %s "checking for special C compiler options needed for large files... " >&6; }
12363 if test ${ac_cv_sys_largefile_CC+y}
12364 then :
12365   printf %s "(cached) " >&6
12366 else $as_nop
12367   ac_cv_sys_largefile_CC=no
12368      if test "$GCC" != yes; then
12369        ac_save_CC=$CC
12370        while :; do
12371          # IRIX 6.2 and later do not support large files by default,
12372          # so use the C compiler's -n32 option if that helps.
12373          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h.  */
12375 #include <sys/types.h>
12376  /* Check that off_t can represent 2**63 - 1 correctly.
12377     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12378     since some C++ compilers masquerading as C compilers
12379     incorrectly reject 9223372036854775807.  */
12380 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12381   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12382                        && LARGE_OFF_T % 2147483647 == 1)
12383                       ? 1 : -1];
12384 int
12385 main (void)
12386 {
12387
12388   ;
12389   return 0;
12390 }
12391 _ACEOF
12392          if ac_fn_c_try_compile "$LINENO"
12393 then :
12394   break
12395 fi
12396 rm -f core conftest.err conftest.$ac_objext conftest.beam
12397          CC="$CC -n32"
12398          if ac_fn_c_try_compile "$LINENO"
12399 then :
12400   ac_cv_sys_largefile_CC=' -n32'; break
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext conftest.beam
12403          break
12404        done
12405        CC=$ac_save_CC
12406        rm -f conftest.$ac_ext
12407     fi
12408 fi
12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12410 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12411   if test "$ac_cv_sys_largefile_CC" != no; then
12412     CC=$CC$ac_cv_sys_largefile_CC
12413   fi
12414
12415   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12416 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12417 if test ${ac_cv_sys_file_offset_bits+y}
12418 then :
12419   printf %s "(cached) " >&6
12420 else $as_nop
12421   while :; do
12422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h.  */
12424 #include <sys/types.h>
12425  /* Check that off_t can represent 2**63 - 1 correctly.
12426     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12427     since some C++ compilers masquerading as C compilers
12428     incorrectly reject 9223372036854775807.  */
12429 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12430   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12431                        && LARGE_OFF_T % 2147483647 == 1)
12432                       ? 1 : -1];
12433 int
12434 main (void)
12435 {
12436
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 if ac_fn_c_try_compile "$LINENO"
12442 then :
12443   ac_cv_sys_file_offset_bits=no; break
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h.  */
12448 #define _FILE_OFFSET_BITS 64
12449 #include <sys/types.h>
12450  /* Check that off_t can represent 2**63 - 1 correctly.
12451     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12452     since some C++ compilers masquerading as C compilers
12453     incorrectly reject 9223372036854775807.  */
12454 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12455   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12456                        && LARGE_OFF_T % 2147483647 == 1)
12457                       ? 1 : -1];
12458 int
12459 main (void)
12460 {
12461
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 if ac_fn_c_try_compile "$LINENO"
12467 then :
12468   ac_cv_sys_file_offset_bits=64; break
12469 fi
12470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12471   ac_cv_sys_file_offset_bits=unknown
12472   break
12473 done
12474 fi
12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12476 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12477 case $ac_cv_sys_file_offset_bits in #(
12478   no | unknown) ;;
12479   *)
12480 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12481 ;;
12482 esac
12483 rm -rf conftest*
12484   if test $ac_cv_sys_file_offset_bits = unknown; then
12485     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12486 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12487 if test ${ac_cv_sys_large_files+y}
12488 then :
12489   printf %s "(cached) " >&6
12490 else $as_nop
12491   while :; do
12492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h.  */
12494 #include <sys/types.h>
12495  /* Check that off_t can represent 2**63 - 1 correctly.
12496     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12497     since some C++ compilers masquerading as C compilers
12498     incorrectly reject 9223372036854775807.  */
12499 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12500   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12501                        && LARGE_OFF_T % 2147483647 == 1)
12502                       ? 1 : -1];
12503 int
12504 main (void)
12505 {
12506
12507   ;
12508   return 0;
12509 }
12510 _ACEOF
12511 if ac_fn_c_try_compile "$LINENO"
12512 then :
12513   ac_cv_sys_large_files=no; break
12514 fi
12515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h.  */
12518 #define _LARGE_FILES 1
12519 #include <sys/types.h>
12520  /* Check that off_t can represent 2**63 - 1 correctly.
12521     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12522     since some C++ compilers masquerading as C compilers
12523     incorrectly reject 9223372036854775807.  */
12524 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12525   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12526                        && LARGE_OFF_T % 2147483647 == 1)
12527                       ? 1 : -1];
12528 int
12529 main (void)
12530 {
12531
12532   ;
12533   return 0;
12534 }
12535 _ACEOF
12536 if ac_fn_c_try_compile "$LINENO"
12537 then :
12538   ac_cv_sys_large_files=1; break
12539 fi
12540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12541   ac_cv_sys_large_files=unknown
12542   break
12543 done
12544 fi
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12546 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12547 case $ac_cv_sys_large_files in #(
12548   no | unknown) ;;
12549   *)
12550 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12551 ;;
12552 esac
12553 rm -rf conftest*
12554   fi
12555 fi
12556
12557 # The cast to long int works around a bug in the HP C Compiler
12558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12560 # This bug is HP SR number 8606223364.
12561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12562 printf %s "checking size of short... " >&6; }
12563 if test ${ac_cv_sizeof_short+y}
12564 then :
12565   printf %s "(cached) " >&6
12566 else $as_nop
12567   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
12568 then :
12569
12570 else $as_nop
12571   if test "$ac_cv_type_short" = yes; then
12572      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12573 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12574 as_fn_error 77 "cannot compute sizeof (short)
12575 See \`config.log' for more details" "$LINENO" 5; }
12576    else
12577      ac_cv_sizeof_short=0
12578    fi
12579 fi
12580
12581 fi
12582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12583 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12584
12585
12586
12587 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12588
12589
12590 # The cast to long int works around a bug in the HP C Compiler
12591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12593 # This bug is HP SR number 8606223364.
12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12595 printf %s "checking size of int... " >&6; }
12596 if test ${ac_cv_sizeof_int+y}
12597 then :
12598   printf %s "(cached) " >&6
12599 else $as_nop
12600   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
12601 then :
12602
12603 else $as_nop
12604   if test "$ac_cv_type_int" = yes; then
12605      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12606 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12607 as_fn_error 77 "cannot compute sizeof (int)
12608 See \`config.log' for more details" "$LINENO" 5; }
12609    else
12610      ac_cv_sizeof_int=0
12611    fi
12612 fi
12613
12614 fi
12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12616 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12617
12618
12619
12620 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12621
12622
12623 # The cast to long int works around a bug in the HP C Compiler
12624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12626 # This bug is HP SR number 8606223364.
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12628 printf %s "checking size of long... " >&6; }
12629 if test ${ac_cv_sizeof_long+y}
12630 then :
12631   printf %s "(cached) " >&6
12632 else $as_nop
12633   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
12634 then :
12635
12636 else $as_nop
12637   if test "$ac_cv_type_long" = yes; then
12638      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12639 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12640 as_fn_error 77 "cannot compute sizeof (long)
12641 See \`config.log' for more details" "$LINENO" 5; }
12642    else
12643      ac_cv_sizeof_long=0
12644    fi
12645 fi
12646
12647 fi
12648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12649 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12650
12651
12652
12653 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12654
12655
12656 # The cast to long int works around a bug in the HP C Compiler
12657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12659 # This bug is HP SR number 8606223364.
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12661 printf %s "checking size of long long... " >&6; }
12662 if test ${ac_cv_sizeof_long_long+y}
12663 then :
12664   printf %s "(cached) " >&6
12665 else $as_nop
12666   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
12667 then :
12668
12669 else $as_nop
12670   if test "$ac_cv_type_long_long" = yes; then
12671      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12672 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12673 as_fn_error 77 "cannot compute sizeof (long long)
12674 See \`config.log' for more details" "$LINENO" 5; }
12675    else
12676      ac_cv_sizeof_long_long=0
12677    fi
12678 fi
12679
12680 fi
12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12682 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12683
12684
12685
12686 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12687
12688
12689 # The cast to long int works around a bug in the HP C Compiler
12690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12692 # This bug is HP SR number 8606223364.
12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12694 printf %s "checking size of off_t... " >&6; }
12695 if test ${ac_cv_sizeof_off_t+y}
12696 then :
12697   printf %s "(cached) " >&6
12698 else $as_nop
12699   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
12700 then :
12701
12702 else $as_nop
12703   if test "$ac_cv_type_off_t" = yes; then
12704      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12705 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12706 as_fn_error 77 "cannot compute sizeof (off_t)
12707 See \`config.log' for more details" "$LINENO" 5; }
12708    else
12709      ac_cv_sizeof_off_t=0
12710    fi
12711 fi
12712
12713 fi
12714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12715 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12716
12717
12718
12719 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12720
12721
12722 # The cast to long int works around a bug in the HP C Compiler
12723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12725 # This bug is HP SR number 8606223364.
12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12727 printf %s "checking size of time_t... " >&6; }
12728 if test ${ac_cv_sizeof_time_t+y}
12729 then :
12730   printf %s "(cached) " >&6
12731 else $as_nop
12732   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
12733 then :
12734
12735 else $as_nop
12736   if test "$ac_cv_type_time_t" = yes; then
12737      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12738 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12739 as_fn_error 77 "cannot compute sizeof (time_t)
12740 See \`config.log' for more details" "$LINENO" 5; }
12741    else
12742      ac_cv_sizeof_time_t=0
12743    fi
12744 fi
12745
12746 fi
12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12748 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12749
12750
12751
12752 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12753
12754
12755 SIZEOF_SHORT=$ac_cv_sizeof_short
12756 SIZEOF_INT=$ac_cv_sizeof_int
12757 SIZEOF_LONG=$ac_cv_sizeof_long
12758 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12759 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12760 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12761
12762
12763
12764
12765
12766
12767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12768 printf %s "checking whether byte ordering is bigendian... " >&6; }
12769 if test ${ac_cv_c_bigendian+y}
12770 then :
12771   printf %s "(cached) " >&6
12772 else $as_nop
12773   ac_cv_c_bigendian=unknown
12774     # See if we're dealing with a universal compiler.
12775     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h.  */
12777 #ifndef __APPLE_CC__
12778                not a universal capable compiler
12779              #endif
12780              typedef int dummy;
12781
12782 _ACEOF
12783 if ac_fn_c_try_compile "$LINENO"
12784 then :
12785
12786         # Check for potential -arch flags.  It is not universal unless
12787         # there are at least two -arch flags with different values.
12788         ac_arch=
12789         ac_prev=
12790         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12791          if test -n "$ac_prev"; then
12792            case $ac_word in
12793              i?86 | x86_64 | ppc | ppc64)
12794                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12795                  ac_arch=$ac_word
12796                else
12797                  ac_cv_c_bigendian=universal
12798                  break
12799                fi
12800                ;;
12801            esac
12802            ac_prev=
12803          elif test "x$ac_word" = "x-arch"; then
12804            ac_prev=arch
12805          fi
12806        done
12807 fi
12808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12809     if test $ac_cv_c_bigendian = unknown; then
12810       # See if sys/param.h defines the BYTE_ORDER macro.
12811       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h.  */
12813 #include <sys/types.h>
12814              #include <sys/param.h>
12815
12816 int
12817 main (void)
12818 {
12819 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12820                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12821                      && LITTLE_ENDIAN)
12822               bogus endian macros
12823              #endif
12824
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 if ac_fn_c_try_compile "$LINENO"
12830 then :
12831   # It does; now see whether it defined to BIG_ENDIAN or not.
12832          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h.  */
12834 #include <sys/types.h>
12835                 #include <sys/param.h>
12836
12837 int
12838 main (void)
12839 {
12840 #if BYTE_ORDER != BIG_ENDIAN
12841                  not big endian
12842                 #endif
12843
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_compile "$LINENO"
12849 then :
12850   ac_cv_c_bigendian=yes
12851 else $as_nop
12852   ac_cv_c_bigendian=no
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12855 fi
12856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12857     fi
12858     if test $ac_cv_c_bigendian = unknown; then
12859       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h.  */
12862 #include <limits.h>
12863
12864 int
12865 main (void)
12866 {
12867 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12868               bogus endian macros
12869              #endif
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_c_try_compile "$LINENO"
12876 then :
12877   # It does; now see whether it defined to _BIG_ENDIAN or not.
12878          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h.  */
12880 #include <limits.h>
12881
12882 int
12883 main (void)
12884 {
12885 #ifndef _BIG_ENDIAN
12886                  not big endian
12887                 #endif
12888
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 if ac_fn_c_try_compile "$LINENO"
12894 then :
12895   ac_cv_c_bigendian=yes
12896 else $as_nop
12897   ac_cv_c_bigendian=no
12898 fi
12899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12902     fi
12903     if test $ac_cv_c_bigendian = unknown; then
12904       # Compile a test program.
12905       if test "$cross_compiling" = yes
12906 then :
12907   # Try to guess by grepping values from an object file.
12908          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h.  */
12910 unsigned short int ascii_mm[] =
12911                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12912                 unsigned short int ascii_ii[] =
12913                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12914                 int use_ascii (int i) {
12915                   return ascii_mm[i] + ascii_ii[i];
12916                 }
12917                 unsigned short int ebcdic_ii[] =
12918                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12919                 unsigned short int ebcdic_mm[] =
12920                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12921                 int use_ebcdic (int i) {
12922                   return ebcdic_mm[i] + ebcdic_ii[i];
12923                 }
12924                 extern int foo;
12925
12926 int
12927 main (void)
12928 {
12929 return use_ascii (foo) == use_ebcdic (foo);
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 if ac_fn_c_try_compile "$LINENO"
12935 then :
12936   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12937               ac_cv_c_bigendian=yes
12938             fi
12939             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12940               if test "$ac_cv_c_bigendian" = unknown; then
12941                 ac_cv_c_bigendian=no
12942               else
12943                 # finding both strings is unlikely to happen, but who knows?
12944                 ac_cv_c_bigendian=unknown
12945               fi
12946             fi
12947 fi
12948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12949 else $as_nop
12950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h.  */
12952 $ac_includes_default
12953 int
12954 main (void)
12955 {
12956
12957              /* Are we little or big endian?  From Harbison&Steele.  */
12958              union
12959              {
12960                long int l;
12961                char c[sizeof (long int)];
12962              } u;
12963              u.l = 1;
12964              return u.c[sizeof (long int) - 1] == 1;
12965
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 if ac_fn_c_try_run "$LINENO"
12971 then :
12972   ac_cv_c_bigendian=no
12973 else $as_nop
12974   ac_cv_c_bigendian=yes
12975 fi
12976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12977   conftest.$ac_objext conftest.beam conftest.$ac_ext
12978 fi
12979
12980     fi
12981 fi
12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12983 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12984  case $ac_cv_c_bigendian in #(
12985    yes)
12986      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12987 ;; #(
12988    no)
12989       ;; #(
12990    universal)
12991
12992 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12993
12994      ;; #(
12995    *)
12996      as_fn_error $? "unknown endianness
12997  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12998  esac
12999
13000 if test $cross_compiling = no; then
13001   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13002 else
13003   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13004 fi
13005 ASM_TYPES_HEADER=./asm_types.h
13006
13007 echo "/* These defines are needed for the public ext2fs.h header file */" \
13008      > public_config.h
13009 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13010   uniq tmp_config.$$ >> public_config.h
13011 else
13012   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13013 fi
13014 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13015   uniq tmp_config.$$ >> public_config.h
13016 else
13017   echo "#undef WORDS_BIGENDIAN" >> public_config.h
13018 fi
13019 rm -f tmp_config.$$
13020 PUBLIC_CONFIG_HEADER=./public_config.h
13021
13022 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13023 if test "x$ac_cv_header_inttypes_h" = xyes
13024 then :
13025   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13026
13027 fi
13028
13029 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13030 if test "x$ac_cv_type_intptr_t" = xyes
13031 then :
13032
13033 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
13034
13035
13036 fi
13037
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13039 printf %s "checking whether struct stat has a st_flags field... " >&6; }
13040 if test ${e2fsprogs_cv_struct_st_flags+y}
13041 then :
13042   printf %s "(cached) " >&6
13043 else $as_nop
13044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h.  */
13046 #include <sys/stat.h>
13047 int
13048 main (void)
13049 {
13050 struct stat stat; stat.st_flags = 0;
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 if ac_fn_c_try_compile "$LINENO"
13056 then :
13057   e2fsprogs_cv_struct_st_flags=yes
13058 else $as_nop
13059   e2fsprogs_cv_struct_st_flags=no
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13062 fi
13063
13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13065 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
13066 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13067   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13068 printf %s "checking whether st_flags field is useful... " >&6; }
13069   if test ${e2fsprogs_cv_struct_st_flags_immut+y}
13070 then :
13071   printf %s "(cached) " >&6
13072 else $as_nop
13073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h.  */
13075 #include <sys/stat.h>
13076 int
13077 main (void)
13078 {
13079 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_c_try_compile "$LINENO"
13085 then :
13086   e2fsprogs_cv_struct_st_flags_immut=yes
13087 else $as_nop
13088   e2fsprogs_cv_struct_st_flags_immut=no
13089 fi
13090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13091 fi
13092
13093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13094 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13095   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13096
13097 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13098
13099   fi
13100 fi
13101 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13102          #include <sys/socket.h>
13103 "
13104 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
13105 then :
13106
13107 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
13108
13109 fi
13110
13111 if test -n "$BLKID_CMT"; then
13112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13113 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13114 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
13115 then :
13116   printf %s "(cached) " >&6
13117 else $as_nop
13118   ac_check_lib_save_LIBS=$LIBS
13119 LIBS="-lblkid  $LIBS"
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h.  */
13122
13123 /* Override any GCC internal prototype to avoid an error.
13124    Use char because int might match the return type of a GCC
13125    builtin and then its argument prototype would still apply.  */
13126 char blkid_probe_get_topology ();
13127 int
13128 main (void)
13129 {
13130 return blkid_probe_get_topology ();
13131   ;
13132   return 0;
13133 }
13134 _ACEOF
13135 if ac_fn_c_try_link "$LINENO"
13136 then :
13137   ac_cv_lib_blkid_blkid_probe_get_topology=yes
13138 else $as_nop
13139   ac_cv_lib_blkid_blkid_probe_get_topology=no
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13142     conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13144 fi
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13146 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13147 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
13148 then :
13149
13150 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13151
13152 fi
13153
13154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
13155 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
13156 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
13157 then :
13158   printf %s "(cached) " >&6
13159 else $as_nop
13160   ac_check_lib_save_LIBS=$LIBS
13161 LIBS="-lblkid  $LIBS"
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h.  */
13164
13165 /* Override any GCC internal prototype to avoid an error.
13166    Use char because int might match the return type of a GCC
13167    builtin and then its argument prototype would still apply.  */
13168 char blkid_topology_get_dax ();
13169 int
13170 main (void)
13171 {
13172 return blkid_topology_get_dax ();
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 if ac_fn_c_try_link "$LINENO"
13178 then :
13179   ac_cv_lib_blkid_blkid_topology_get_dax=yes
13180 else $as_nop
13181   ac_cv_lib_blkid_blkid_topology_get_dax=no
13182 fi
13183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13184     conftest$ac_exeext conftest.$ac_ext
13185 LIBS=$ac_check_lib_save_LIBS
13186 fi
13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
13188 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13189 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13190 then :
13191
13192 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13193
13194 fi
13195
13196   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13197 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13198 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13199 then :
13200   printf %s "(cached) " >&6
13201 else $as_nop
13202   ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-lblkid  $LIBS"
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h.  */
13206
13207 /* Override any GCC internal prototype to avoid an error.
13208    Use char because int might match the return type of a GCC
13209    builtin and then its argument prototype would still apply.  */
13210 char blkid_probe_enable_partitions ();
13211 int
13212 main (void)
13213 {
13214 return blkid_probe_enable_partitions ();
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 if ac_fn_c_try_link "$LINENO"
13220 then :
13221   ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13222 else $as_nop
13223   ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13224 fi
13225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13226     conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13228 fi
13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13230 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13231 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13232 then :
13233
13234 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13235
13236 fi
13237
13238 fi
13239 if test -n "$DLOPEN_LIB" ; then
13240    ac_cv_func_dlopen=yes
13241 fi
13242 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13243 if test "x$ac_cv_func___secure_getenv" = xyes
13244 then :
13245   printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13246
13247 fi
13248 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13249 if test "x$ac_cv_func_add_key" = xyes
13250 then :
13251   printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13252
13253 fi
13254 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13255 if test "x$ac_cv_func_backtrace" = xyes
13256 then :
13257   printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13258
13259 fi
13260 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13261 if test "x$ac_cv_func_chflags" = xyes
13262 then :
13263   printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13264
13265 fi
13266 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13267 if test "x$ac_cv_func_dlopen" = xyes
13268 then :
13269   printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13270
13271 fi
13272 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13273 if test "x$ac_cv_func_fadvise64" = xyes
13274 then :
13275   printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13276
13277 fi
13278 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13279 if test "x$ac_cv_func_fallocate" = xyes
13280 then :
13281   printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13282
13283 fi
13284 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13285 if test "x$ac_cv_func_fallocate64" = xyes
13286 then :
13287   printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13288
13289 fi
13290 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13291 if test "x$ac_cv_func_fchown" = xyes
13292 then :
13293   printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13294
13295 fi
13296 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13297 if test "x$ac_cv_func_fcntl" = xyes
13298 then :
13299   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13300
13301 fi
13302 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13303 if test "x$ac_cv_func_fdatasync" = xyes
13304 then :
13305   printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13306
13307 fi
13308 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13309 if test "x$ac_cv_func_fstat64" = xyes
13310 then :
13311   printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13312
13313 fi
13314 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13315 if test "x$ac_cv_func_fsync" = xyes
13316 then :
13317   printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13318
13319 fi
13320 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13321 if test "x$ac_cv_func_ftruncate64" = xyes
13322 then :
13323   printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13324
13325 fi
13326 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13327 if test "x$ac_cv_func_futimes" = xyes
13328 then :
13329   printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13330
13331 fi
13332 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13333 if test "x$ac_cv_func_getcwd" = xyes
13334 then :
13335   printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13336
13337 fi
13338 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13339 if test "x$ac_cv_func_getdtablesize" = xyes
13340 then :
13341   printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13342
13343 fi
13344 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13345 if test "x$ac_cv_func_getentropy" = xyes
13346 then :
13347   printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13348
13349 fi
13350 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13351 if test "x$ac_cv_func_gethostname" = xyes
13352 then :
13353   printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13354
13355 fi
13356 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13357 if test "x$ac_cv_func_getmntinfo" = xyes
13358 then :
13359   printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13360
13361 fi
13362 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13363 if test "x$ac_cv_func_getpwuid_r" = xyes
13364 then :
13365   printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13366
13367 fi
13368 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13369 if test "x$ac_cv_func_getrandom" = xyes
13370 then :
13371   printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13372
13373 fi
13374 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13375 if test "x$ac_cv_func_getrlimit" = xyes
13376 then :
13377   printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13378
13379 fi
13380 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13381 if test "x$ac_cv_func_getrusage" = xyes
13382 then :
13383   printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13384
13385 fi
13386 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13387 if test "x$ac_cv_func_jrand48" = xyes
13388 then :
13389   printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13390
13391 fi
13392 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13393 if test "x$ac_cv_func_keyctl" = xyes
13394 then :
13395   printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13396
13397 fi
13398 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13399 if test "x$ac_cv_func_llistxattr" = xyes
13400 then :
13401   printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13402
13403 fi
13404 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13405 if test "x$ac_cv_func_llseek" = xyes
13406 then :
13407   printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13408
13409 fi
13410 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13411 if test "x$ac_cv_func_lseek64" = xyes
13412 then :
13413   printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13414
13415 fi
13416 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13417 if test "x$ac_cv_func_mallinfo" = xyes
13418 then :
13419   printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13420
13421 fi
13422 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13423 if test "x$ac_cv_func_mallinfo2" = xyes
13424 then :
13425   printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13426
13427 fi
13428 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13429 if test "x$ac_cv_func_mbstowcs" = xyes
13430 then :
13431   printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13432
13433 fi
13434 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13435 if test "x$ac_cv_func_memalign" = xyes
13436 then :
13437   printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13438
13439 fi
13440 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13441 if test "x$ac_cv_func_mempcpy" = xyes
13442 then :
13443   printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13444
13445 fi
13446 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13447 if test "x$ac_cv_func_mmap" = xyes
13448 then :
13449   printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13450
13451 fi
13452 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13453 if test "x$ac_cv_func_msync" = xyes
13454 then :
13455   printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13456
13457 fi
13458 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13459 if test "x$ac_cv_func_nanosleep" = xyes
13460 then :
13461   printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13462
13463 fi
13464 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13465 if test "x$ac_cv_func_open64" = xyes
13466 then :
13467   printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13468
13469 fi
13470 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13471 if test "x$ac_cv_func_pathconf" = xyes
13472 then :
13473   printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13474
13475 fi
13476 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13477 if test "x$ac_cv_func_posix_fadvise" = xyes
13478 then :
13479   printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13480
13481 fi
13482 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13483 if test "x$ac_cv_func_posix_fadvise64" = xyes
13484 then :
13485   printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13486
13487 fi
13488 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13489 if test "x$ac_cv_func_posix_memalign" = xyes
13490 then :
13491   printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13492
13493 fi
13494 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13495 if test "x$ac_cv_func_prctl" = xyes
13496 then :
13497   printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13498
13499 fi
13500 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13501 if test "x$ac_cv_func_pread" = xyes
13502 then :
13503   printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13504
13505 fi
13506 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13507 if test "x$ac_cv_func_pwrite" = xyes
13508 then :
13509   printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13510
13511 fi
13512 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13513 if test "x$ac_cv_func_pread64" = xyes
13514 then :
13515   printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13516
13517 fi
13518 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13519 if test "x$ac_cv_func_pwrite64" = xyes
13520 then :
13521   printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13522
13523 fi
13524 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13525 if test "x$ac_cv_func_qsort_r" = xyes
13526 then :
13527   printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13528
13529 fi
13530 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13531 if test "x$ac_cv_func_secure_getenv" = xyes
13532 then :
13533   printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13534
13535 fi
13536 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13537 if test "x$ac_cv_func_setmntent" = xyes
13538 then :
13539   printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13540
13541 fi
13542 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13543 if test "x$ac_cv_func_setresgid" = xyes
13544 then :
13545   printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13546
13547 fi
13548 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13549 if test "x$ac_cv_func_setresuid" = xyes
13550 then :
13551   printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13552
13553 fi
13554 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13555 if test "x$ac_cv_func_snprintf" = xyes
13556 then :
13557   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13558
13559 fi
13560 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13561 if test "x$ac_cv_func_srandom" = xyes
13562 then :
13563   printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13564
13565 fi
13566 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13567 if test "x$ac_cv_func_stpcpy" = xyes
13568 then :
13569   printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13570
13571 fi
13572 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13573 if test "x$ac_cv_func_strcasecmp" = xyes
13574 then :
13575   printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13576
13577 fi
13578 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13579 if test "x$ac_cv_func_strdup" = xyes
13580 then :
13581   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13582
13583 fi
13584 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13585 if test "x$ac_cv_func_strnlen" = xyes
13586 then :
13587   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13588
13589 fi
13590 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13591 if test "x$ac_cv_func_strptime" = xyes
13592 then :
13593   printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13594
13595 fi
13596 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13597 if test "x$ac_cv_func_strtoull" = xyes
13598 then :
13599   printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13600
13601 fi
13602 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13603 if test "x$ac_cv_func_sync_file_range" = xyes
13604 then :
13605   printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13606
13607 fi
13608 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13609 if test "x$ac_cv_func_sysconf" = xyes
13610 then :
13611   printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13612
13613 fi
13614 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13615 if test "x$ac_cv_func_usleep" = xyes
13616 then :
13617   printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13618
13619 fi
13620 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13621 if test "x$ac_cv_func_utime" = xyes
13622 then :
13623   printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13624
13625 fi
13626 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13627 if test "x$ac_cv_func_utimes" = xyes
13628 then :
13629   printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13630
13631 fi
13632 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13633 if test "x$ac_cv_func_valloc" = xyes
13634 then :
13635   printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13636
13637 fi
13638
13639 SOCKET_LIB=''
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13641 printf %s "checking for socket in -lsocket... " >&6; }
13642 if test ${ac_cv_lib_socket_socket+y}
13643 then :
13644   printf %s "(cached) " >&6
13645 else $as_nop
13646   ac_check_lib_save_LIBS=$LIBS
13647 LIBS="-lsocket  $LIBS"
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h.  */
13650
13651 /* Override any GCC internal prototype to avoid an error.
13652    Use char because int might match the return type of a GCC
13653    builtin and then its argument prototype would still apply.  */
13654 char socket ();
13655 int
13656 main (void)
13657 {
13658 return socket ();
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 if ac_fn_c_try_link "$LINENO"
13664 then :
13665   ac_cv_lib_socket_socket=yes
13666 else $as_nop
13667   ac_cv_lib_socket_socket=no
13668 fi
13669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13670     conftest$ac_exeext conftest.$ac_ext
13671 LIBS=$ac_check_lib_save_LIBS
13672 fi
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13674 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13675 if test "x$ac_cv_lib_socket_socket" = xyes
13676 then :
13677   SOCKET_LIB=-lsocket
13678 fi
13679
13680
13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13682 printf %s "checking for magic_file in -lmagic... " >&6; }
13683 if test ${ac_cv_lib_magic_magic_file+y}
13684 then :
13685   printf %s "(cached) " >&6
13686 else $as_nop
13687   ac_check_lib_save_LIBS=$LIBS
13688 LIBS="-lmagic  $LIBS"
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h.  */
13691
13692 /* Override any GCC internal prototype to avoid an error.
13693    Use char because int might match the return type of a GCC
13694    builtin and then its argument prototype would still apply.  */
13695 char magic_file ();
13696 int
13697 main (void)
13698 {
13699 return magic_file ();
13700   ;
13701   return 0;
13702 }
13703 _ACEOF
13704 if ac_fn_c_try_link "$LINENO"
13705 then :
13706   ac_cv_lib_magic_magic_file=yes
13707 else $as_nop
13708   ac_cv_lib_magic_magic_file=no
13709 fi
13710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13711     conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13713 fi
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13715 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13716 if test "x$ac_cv_lib_magic_magic_file" = xyes
13717 then :
13718   MAGIC_LIB=-lmagic
13719 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13720 if test "x$ac_cv_header_magic_h" = xyes
13721 then :
13722   printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13723
13724 fi
13725
13726 fi
13727
13728 if test "$ac_cv_func_dlopen" = yes ; then
13729    MAGIC_LIB=$DLOPEN_LIB
13730 fi
13731
13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13733 printf %s "checking for clock_gettime in -lrt... " >&6; }
13734 if test ${ac_cv_lib_rt_clock_gettime+y}
13735 then :
13736   printf %s "(cached) " >&6
13737 else $as_nop
13738   ac_check_lib_save_LIBS=$LIBS
13739 LIBS="-lrt  $LIBS"
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h.  */
13742
13743 /* Override any GCC internal prototype to avoid an error.
13744    Use char because int might match the return type of a GCC
13745    builtin and then its argument prototype would still apply.  */
13746 char clock_gettime ();
13747 int
13748 main (void)
13749 {
13750 return clock_gettime ();
13751   ;
13752   return 0;
13753 }
13754 _ACEOF
13755 if ac_fn_c_try_link "$LINENO"
13756 then :
13757   ac_cv_lib_rt_clock_gettime=yes
13758 else $as_nop
13759   ac_cv_lib_rt_clock_gettime=no
13760 fi
13761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13762     conftest$ac_exeext conftest.$ac_ext
13763 LIBS=$ac_check_lib_save_LIBS
13764 fi
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13766 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13767 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13768 then :
13769   CLOCK_GETTIME_LIB=-lrt
13770 fi
13771
13772
13773 FUSE_CMT=
13774 FUSE_LIB=
13775 # Check whether --enable-fuse2fs was given.
13776 if test ${enable_fuse2fs+y}
13777 then :
13778   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13779 then
13780         FUSE_CMT="#"
13781         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13782 printf "%s\n" "Disabling fuse2fs" >&6; }
13783 else
13784                for ac_header in pthread.h fuse.h
13785 do :
13786   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13787 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13788 #define FUSE_USE_VERSION 29
13789 "
13790 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13791 then :
13792   cat >>confdefs.h <<_ACEOF
13793 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13794 _ACEOF
13795
13796 else $as_nop
13797   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13798 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13799 as_fn_error $? "Cannot find fuse2fs headers.
13800 See \`config.log' for more details" "$LINENO" 5; }
13801 fi
13802
13803 done
13804
13805         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h.  */
13807 #define FUSE_USE_VERSION 29
13808 #ifdef __linux__
13809 #include <linux/fs.h>
13810 #include <linux/falloc.h>
13811 #include <linux/xattr.h>
13812 #endif
13813
13814 int
13815 main (void)
13816 {
13817
13818   ;
13819   return 0;
13820 }
13821 _ACEOF
13822 if ac_fn_c_try_cpp "$LINENO"
13823 then :
13824
13825 else $as_nop
13826   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13828 as_fn_error $? "Cannot find fuse2fs Linux headers.
13829 See \`config.log' for more details" "$LINENO" 5; }
13830 fi
13831 rm -f conftest.err conftest.i conftest.$ac_ext
13832
13833         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13834 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13835 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13836 then :
13837   printf %s "(cached) " >&6
13838 else $as_nop
13839   ac_check_lib_save_LIBS=$LIBS
13840 LIBS="-losxfuse  $LIBS"
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h.  */
13843
13844 /* Override any GCC internal prototype to avoid an error.
13845    Use char because int might match the return type of a GCC
13846    builtin and then its argument prototype would still apply.  */
13847 char fuse_main ();
13848 int
13849 main (void)
13850 {
13851 return fuse_main ();
13852   ;
13853   return 0;
13854 }
13855 _ACEOF
13856 if ac_fn_c_try_link "$LINENO"
13857 then :
13858   ac_cv_lib_osxfuse_fuse_main=yes
13859 else $as_nop
13860   ac_cv_lib_osxfuse_fuse_main=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13863     conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13865 fi
13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13867 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13868 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13869 then :
13870   FUSE_LIB=-losxfuse
13871 else $as_nop
13872   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13873 printf %s "checking for fuse_main in -lfuse... " >&6; }
13874 if test ${ac_cv_lib_fuse_fuse_main+y}
13875 then :
13876   printf %s "(cached) " >&6
13877 else $as_nop
13878   ac_check_lib_save_LIBS=$LIBS
13879 LIBS="-lfuse  $LIBS"
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h.  */
13882
13883 /* Override any GCC internal prototype to avoid an error.
13884    Use char because int might match the return type of a GCC
13885    builtin and then its argument prototype would still apply.  */
13886 char fuse_main ();
13887 int
13888 main (void)
13889 {
13890 return fuse_main ();
13891   ;
13892   return 0;
13893 }
13894 _ACEOF
13895 if ac_fn_c_try_link "$LINENO"
13896 then :
13897   ac_cv_lib_fuse_fuse_main=yes
13898 else $as_nop
13899   ac_cv_lib_fuse_fuse_main=no
13900 fi
13901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13902     conftest$ac_exeext conftest.$ac_ext
13903 LIBS=$ac_check_lib_save_LIBS
13904 fi
13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13906 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13907 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13908 then :
13909   FUSE_LIB=-lfuse
13910 else $as_nop
13911   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13912 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13913 as_fn_error $? "Cannot find fuse library.
13914 See \`config.log' for more details" "$LINENO" 5; }
13915 fi
13916
13917 fi
13918
13919         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13920 printf "%s\n" "Enabling fuse2fs" >&6; }
13921 fi
13922
13923 else $as_nop
13924          for ac_header in pthread.h fuse.h
13925 do :
13926   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13927 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13928 #define FUSE_USE_VERSION 29
13929 #ifdef __linux__
13930 # include <linux/fs.h>
13931 # include <linux/falloc.h>
13932 # include <linux/xattr.h>
13933 #endif
13934 "
13935 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13936 then :
13937   cat >>confdefs.h <<_ACEOF
13938 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13939 _ACEOF
13940
13941 else $as_nop
13942   FUSE_CMT="#"
13943 fi
13944
13945 done
13946 if test -z "$FUSE_CMT"
13947 then
13948         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13949 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13950 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13951 then :
13952   printf %s "(cached) " >&6
13953 else $as_nop
13954   ac_check_lib_save_LIBS=$LIBS
13955 LIBS="-losxfuse  $LIBS"
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h.  */
13958
13959 /* Override any GCC internal prototype to avoid an error.
13960    Use char because int might match the return type of a GCC
13961    builtin and then its argument prototype would still apply.  */
13962 char fuse_main ();
13963 int
13964 main (void)
13965 {
13966 return fuse_main ();
13967   ;
13968   return 0;
13969 }
13970 _ACEOF
13971 if ac_fn_c_try_link "$LINENO"
13972 then :
13973   ac_cv_lib_osxfuse_fuse_main=yes
13974 else $as_nop
13975   ac_cv_lib_osxfuse_fuse_main=no
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13978     conftest$ac_exeext conftest.$ac_ext
13979 LIBS=$ac_check_lib_save_LIBS
13980 fi
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13982 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13983 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13984 then :
13985   FUSE_LIB=-losxfuse
13986 else $as_nop
13987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13988 printf %s "checking for fuse_main in -lfuse... " >&6; }
13989 if test ${ac_cv_lib_fuse_fuse_main+y}
13990 then :
13991   printf %s "(cached) " >&6
13992 else $as_nop
13993   ac_check_lib_save_LIBS=$LIBS
13994 LIBS="-lfuse  $LIBS"
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h.  */
13997
13998 /* Override any GCC internal prototype to avoid an error.
13999    Use char because int might match the return type of a GCC
14000    builtin and then its argument prototype would still apply.  */
14001 char fuse_main ();
14002 int
14003 main (void)
14004 {
14005 return fuse_main ();
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 if ac_fn_c_try_link "$LINENO"
14011 then :
14012   ac_cv_lib_fuse_fuse_main=yes
14013 else $as_nop
14014   ac_cv_lib_fuse_fuse_main=no
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14017     conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14019 fi
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14021 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14022 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14023 then :
14024   FUSE_LIB=-lfuse
14025 else $as_nop
14026   FUSE_CMT="#"
14027 fi
14028
14029 fi
14030
14031 fi
14032 if test -z "$FUSE_CMT"
14033 then
14034         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14035 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14036 fi
14037
14038 fi
14039
14040
14041
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14043 printf %s "checking for optreset... " >&6; }
14044 if test ${ac_cv_have_optreset+y}
14045 then :
14046   printf %s "(cached) " >&6
14047 else $as_nop
14048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h.  */
14050 #include <unistd.h>
14051
14052 _ACEOF
14053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14054   $EGREP "optreset" >/dev/null 2>&1
14055 then :
14056   ac_cv_have_optreset=yes
14057 else $as_nop
14058   ac_cv_have_optreset=no
14059 fi
14060 rm -rf conftest*
14061
14062 fi
14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14064 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14065 if test $ac_cv_have_optreset = yes; then
14066
14067 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14068
14069 fi
14070
14071 SEM_INIT_LIB=''
14072 echo GL_THREADS_API: ${gl_threads_api}
14073 if test "${gl_threads_api}" != none
14074 then
14075   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14076 if test "x$ac_cv_func_sem_init" = xyes
14077 then :
14078
14079 else $as_nop
14080   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14081 printf %s "checking for sem_init in -lpthread... " >&6; }
14082 if test ${ac_cv_lib_pthread_sem_init+y}
14083 then :
14084   printf %s "(cached) " >&6
14085 else $as_nop
14086   ac_check_lib_save_LIBS=$LIBS
14087 LIBS="-lpthread  $LIBS"
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h.  */
14090
14091 /* Override any GCC internal prototype to avoid an error.
14092    Use char because int might match the return type of a GCC
14093    builtin and then its argument prototype would still apply.  */
14094 char sem_init ();
14095 int
14096 main (void)
14097 {
14098 return sem_init ();
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 if ac_fn_c_try_link "$LINENO"
14104 then :
14105   ac_cv_lib_pthread_sem_init=yes
14106 else $as_nop
14107   ac_cv_lib_pthread_sem_init=no
14108 fi
14109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14110     conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14112 fi
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14114 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14115 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14116 then :
14117   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14118
14119         SEM_INIT_LIB=-lpthread
14120 else $as_nop
14121   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14122 printf %s "checking for sem_init in -lrt... " >&6; }
14123 if test ${ac_cv_lib_rt_sem_init+y}
14124 then :
14125   printf %s "(cached) " >&6
14126 else $as_nop
14127   ac_check_lib_save_LIBS=$LIBS
14128 LIBS="-lrt  $LIBS"
14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h.  */
14131
14132 /* Override any GCC internal prototype to avoid an error.
14133    Use char because int might match the return type of a GCC
14134    builtin and then its argument prototype would still apply.  */
14135 char sem_init ();
14136 int
14137 main (void)
14138 {
14139 return sem_init ();
14140   ;
14141   return 0;
14142 }
14143 _ACEOF
14144 if ac_fn_c_try_link "$LINENO"
14145 then :
14146   ac_cv_lib_rt_sem_init=yes
14147 else $as_nop
14148   ac_cv_lib_rt_sem_init=no
14149 fi
14150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14151     conftest$ac_exeext conftest.$ac_ext
14152 LIBS=$ac_check_lib_save_LIBS
14153 fi
14154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14155 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14156 if test "x$ac_cv_lib_rt_sem_init" = xyes
14157 then :
14158   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14159
14160         SEM_INIT_LIB=-lrt
14161 else $as_nop
14162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14163 printf %s "checking for sem_init in -lposix4... " >&6; }
14164 if test ${ac_cv_lib_posix4_sem_init+y}
14165 then :
14166   printf %s "(cached) " >&6
14167 else $as_nop
14168   ac_check_lib_save_LIBS=$LIBS
14169 LIBS="-lposix4  $LIBS"
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h.  */
14172
14173 /* Override any GCC internal prototype to avoid an error.
14174    Use char because int might match the return type of a GCC
14175    builtin and then its argument prototype would still apply.  */
14176 char sem_init ();
14177 int
14178 main (void)
14179 {
14180 return sem_init ();
14181   ;
14182   return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_link "$LINENO"
14186 then :
14187   ac_cv_lib_posix4_sem_init=yes
14188 else $as_nop
14189   ac_cv_lib_posix4_sem_init=no
14190 fi
14191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14192     conftest$ac_exeext conftest.$ac_ext
14193 LIBS=$ac_check_lib_save_LIBS
14194 fi
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14196 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14197 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14198 then :
14199   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14200
14201         SEM_INIT_LIB=-lposix4
14202 fi
14203
14204 fi
14205
14206 fi
14207
14208 fi
14209 fi
14210
14211 if test "$ac_cv_func_qsort_r" != no
14212 then :
14213
14214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14215 printf %s "checking whether qsort_r is GNU version... " >&6; }
14216 if test ${e2_cv_gnu_qsort_r+y}
14217 then :
14218   printf %s "(cached) " >&6
14219 else $as_nop
14220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h.  */
14222
14223 #include <stdlib.h>
14224 void (qsort_r)(void *base, size_t nmemb, size_t size,
14225             int (*compar)(const void *, const void *, void *),
14226             void *arg);
14227
14228 int
14229 main (void)
14230 {
14231
14232   ;
14233   return 0;
14234 }
14235 _ACEOF
14236 if ac_fn_c_try_compile "$LINENO"
14237 then :
14238   e2_cv_gnu_qsort_r=yes
14239 else $as_nop
14240   e2_cv_gnu_qsort_r=no
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14243
14244 fi
14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14246 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14248 printf %s "checking whether qsort_r is BSD version... " >&6; }
14249 if test ${e2_cv_bsd_qsort_r+y}
14250 then :
14251   printf %s "(cached) " >&6
14252 else $as_nop
14253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h.  */
14255
14256 #include <stdlib.h>
14257 void (qsort_r)(void *base, size_t nmemb, size_t size,
14258              void *arg, int (*compar)(void *, const void *, const void *));
14259
14260 int
14261 main (void)
14262 {
14263
14264   ;
14265   return 0;
14266 }
14267 _ACEOF
14268 if ac_fn_c_try_compile "$LINENO"
14269 then :
14270   e2_cv_bsd_qsort_r=yes
14271 else $as_nop
14272   e2_cv_bsd_qsort_r=no
14273 fi
14274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14275
14276 fi
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14278 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14279   case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14280   yes:no) :
14281
14282
14283 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14284
14285    ;; #(
14286   no:yes) :
14287
14288
14289 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14290
14291    ;; #(
14292   *) :
14293      ;;
14294 esac
14295
14296 fi
14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14298 printf %s "checking for unified diff option... " >&6; }
14299 if diff -u $0 $0 > /dev/null 2>&1 ; then
14300    UNI_DIFF_OPTS=-u
14301 else
14302    UNI_DIFF_OPTS=-c
14303 fi
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14305 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14306
14307 case "$host_os" in
14308 linux*)
14309
14310 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14311
14312         ;;
14313 esac
14314
14315     printf %s "checking for mount 'nosuid' option... "
14316     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h.  */
14318 #include <sys/mount.h>
14319 int
14320 main (void)
14321 {
14322 void *temp = (void *)(MS_NOSUID); (void) temp;
14323   ;
14324   return 0;
14325 }
14326 _ACEOF
14327 if ac_fn_c_try_compile "$LINENO"
14328 then :
14329
14330 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14331
14332          ac_cv_mount_nosuid=yes
14333          printf "%s\n" "yes"
14334 else $as_nop
14335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h.  */
14337 #include <sys/mount.h>
14338 int
14339 main (void)
14340 {
14341 void *temp = (void *)(MNT_NOSUID); (void) temp;
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"
14347 then :
14348
14349 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14350
14351              ac_cv_mount_nosuid=yes
14352              printf "%s\n" "yes"
14353 else $as_nop
14354   ac_cv_mount_nosuid=no
14355              printf "%s\n" "no"
14356
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14359
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14362
14363
14364     printf %s "checking for mount 'nodev' option... "
14365     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h.  */
14367 #include <sys/mount.h>
14368 int
14369 main (void)
14370 {
14371 void *temp = (void *)(MS_NODEV); (void) temp;
14372   ;
14373   return 0;
14374 }
14375 _ACEOF
14376 if ac_fn_c_try_compile "$LINENO"
14377 then :
14378
14379 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14380
14381          ac_cv_mount_nodev=yes
14382          printf "%s\n" "yes"
14383 else $as_nop
14384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h.  */
14386 #include <sys/mount.h>
14387 int
14388 main (void)
14389 {
14390 void *temp = (void *)(MNT_NODEV); (void) temp;
14391   ;
14392   return 0;
14393 }
14394 _ACEOF
14395 if ac_fn_c_try_compile "$LINENO"
14396 then :
14397
14398 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14399
14400              ac_cv_mount_nodev=yes
14401              printf "%s\n" "yes"
14402 else $as_nop
14403   ac_cv_mount_nodev=no
14404              printf "%s\n" "no"
14405
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14408
14409 fi
14410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14411
14412 # Check whether --enable-lto was given.
14413 if test ${enable_lto+y}
14414 then :
14415   enableval=$enable_lto;
14416 else $as_nop
14417   enable_lto=no
14418 fi
14419
14420 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14421         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14422 printf %s "checking if C compiler supports LTO... " >&6; }
14423         OLD_CFLAGS="$CFLAGS"
14424         OLD_LDFLAGS="$LDFLAGS"
14425         LTO_FLAGS="-g -flto -ffat-lto-objects"
14426         CFLAGS="$CFLAGS $LTO_FLAGS"
14427         LDFLAGS="$LDFLAGS $LTO_FLAGS"
14428         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h.  */
14430
14431 int
14432 main (void)
14433 {
14434
14435   ;
14436   return 0;
14437 }
14438 _ACEOF
14439 if ac_fn_c_try_link "$LINENO"
14440 then :
14441   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14442 printf "%s\n" "yes" >&6; }
14443                 lto_cflags=$LTO_FLAGS
14444                 lto_ldflags=$LTO_FLAGS
14445                 # Extract the first word of "gcc-ar", so it can be a program name with args.
14446 set dummy gcc-ar; ac_word=$2
14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14448 printf %s "checking for $ac_word... " >&6; }
14449 if test ${ac_cv_path_gcc_ar+y}
14450 then :
14451   printf %s "(cached) " >&6
14452 else $as_nop
14453   case $gcc_ar in
14454   [\\/]* | ?:[\\/]*)
14455   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14456   ;;
14457   *)
14458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459 for as_dir in $PATH
14460 do
14461   IFS=$as_save_IFS
14462   case $as_dir in #(((
14463     '') as_dir=./ ;;
14464     */) ;;
14465     *) as_dir=$as_dir/ ;;
14466   esac
14467     for ac_exec_ext in '' $ac_executable_extensions; do
14468   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14469     ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14470     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14471     break 2
14472   fi
14473 done
14474   done
14475 IFS=$as_save_IFS
14476
14477   ;;
14478 esac
14479 fi
14480 gcc_ar=$ac_cv_path_gcc_ar
14481 if test -n "$gcc_ar"; then
14482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14483 printf "%s\n" "$gcc_ar" >&6; }
14484 else
14485   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 printf "%s\n" "no" >&6; }
14487 fi
14488
14489
14490                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14491 set dummy gcc-ranlib; ac_word=$2
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14493 printf %s "checking for $ac_word... " >&6; }
14494 if test ${ac_cv_path_gcc_ranlib+y}
14495 then :
14496   printf %s "(cached) " >&6
14497 else $as_nop
14498   case $gcc_ranlib in
14499   [\\/]* | ?:[\\/]*)
14500   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14501   ;;
14502   *)
14503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504 for as_dir in $PATH
14505 do
14506   IFS=$as_save_IFS
14507   case $as_dir in #(((
14508     '') as_dir=./ ;;
14509     */) ;;
14510     *) as_dir=$as_dir/ ;;
14511   esac
14512     for ac_exec_ext in '' $ac_executable_extensions; do
14513   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14514     ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14515     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14516     break 2
14517   fi
14518 done
14519   done
14520 IFS=$as_save_IFS
14521
14522   ;;
14523 esac
14524 fi
14525 gcc_ranlib=$ac_cv_path_gcc_ranlib
14526 if test -n "$gcc_ranlib"; then
14527   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14528 printf "%s\n" "$gcc_ranlib" >&6; }
14529 else
14530   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531 printf "%s\n" "no" >&6; }
14532 fi
14533
14534
14535 else $as_nop
14536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14537 printf "%s\n" "no" >&6; }
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14540     conftest$ac_exeext conftest.$ac_ext
14541         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14542                 have_lto=yes
14543                 AR="${gcc_ar}"
14544                 RANLIB="${gcc_ranlib}"
14545         fi
14546         CFLAGS="${OLD_CFLAGS}"
14547         LDFLAGS="${OLD_LDFLAGS}"
14548
14549
14550
14551 fi
14552 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14553         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14554 fi
14555 # Check whether --enable-ubsan was given.
14556 if test ${enable_ubsan+y}
14557 then :
14558   enableval=$enable_ubsan;
14559 else $as_nop
14560   enable_ubsan=no
14561 fi
14562
14563 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14564         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14565 printf %s "checking if C compiler supports UBSAN... " >&6; }
14566         OLD_CFLAGS="$CFLAGS"
14567         OLD_LDFLAGS="$LDFLAGS"
14568         UBSAN_FLAGS="-fsanitize=undefined"
14569         CFLAGS="$CFLAGS $UBSAN_FLAGS"
14570         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14571         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h.  */
14573
14574 int
14575 main (void)
14576 {
14577
14578   ;
14579   return 0;
14580 }
14581 _ACEOF
14582 if ac_fn_c_try_link "$LINENO"
14583 then :
14584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14585 printf "%s\n" "yes" >&6; }
14586                 ubsan_cflags=$UBSAN_FLAGS
14587                 ubsan_ldflags=$UBSAN_FLAGS
14588                 have_ubsan=yes
14589 else $as_nop
14590   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591 printf "%s\n" "no" >&6; }
14592 fi
14593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14594     conftest$ac_exeext conftest.$ac_ext
14595         CFLAGS="${OLD_CFLAGS}"
14596         LDFLAGS="${OLD_LDFLAGS}"
14597
14598
14599
14600 fi
14601 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14602         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14603 fi
14604 # Check whether --enable-addrsan was given.
14605 if test ${enable_addrsan+y}
14606 then :
14607   enableval=$enable_addrsan;
14608 else $as_nop
14609   enable_addrsan=no
14610 fi
14611
14612 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14613         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14614 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
14615         OLD_CFLAGS="$CFLAGS"
14616         OLD_LDFLAGS="$LDFLAGS"
14617         ADDRSAN_FLAGS="-fsanitize=address"
14618         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14619         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14620         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h.  */
14622
14623 int
14624 main (void)
14625 {
14626
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 if ac_fn_c_try_link "$LINENO"
14632 then :
14633   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14634 printf "%s\n" "yes" >&6; }
14635                 addrsan_cflags=$ADDRSAN_FLAGS
14636                 addrsan_ldflags=$ADDRSAN_FLAGS
14637                 have_addrsan=yes
14638 else $as_nop
14639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640 printf "%s\n" "no" >&6; }
14641 fi
14642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14643     conftest$ac_exeext conftest.$ac_ext
14644         CFLAGS="${OLD_CFLAGS}"
14645         LDFLAGS="${OLD_LDFLAGS}"
14646
14647
14648
14649 fi
14650 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14651         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14652 fi
14653 # Check whether --enable-threadsan was given.
14654 if test ${enable_threadsan+y}
14655 then :
14656   enableval=$enable_threadsan;
14657 else $as_nop
14658   enable_threadsan=no
14659 fi
14660
14661 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14662         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14663 printf %s "checking if C compiler supports THREADSAN... " >&6; }
14664         OLD_CFLAGS="$CFLAGS"
14665         OLD_LDFLAGS="$LDFLAGS"
14666         THREADSAN_FLAGS="-fsanitize=thread"
14667         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14668         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14669         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h.  */
14671
14672 int
14673 main (void)
14674 {
14675
14676   ;
14677   return 0;
14678 }
14679 _ACEOF
14680 if ac_fn_c_try_link "$LINENO"
14681 then :
14682   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14683 printf "%s\n" "yes" >&6; }
14684                 threadsan_cflags=$THREADSAN_FLAGS
14685                 threadsan_ldflags=$THREADSAN_FLAGS
14686                 have_threadsan=yes
14687 else $as_nop
14688   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 printf "%s\n" "no" >&6; }
14690 fi
14691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14692     conftest$ac_exeext conftest.$ac_ext
14693         CFLAGS="${OLD_CFLAGS}"
14694         LDFLAGS="${OLD_LDFLAGS}"
14695
14696
14697
14698 fi
14699 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14700         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14701 fi
14702 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14703         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14704 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14705 fi
14706 FUZZING_CMT="#"
14707 # Check whether --enable-fuzzing was given.
14708 if test ${enable_fuzzing+y}
14709 then :
14710   enableval=$enable_fuzzing;
14711 else $as_nop
14712   enable_fuzzing=no
14713 fi
14714
14715 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14716
14717
14718
14719
14720
14721
14722 ac_ext=cpp
14723 ac_cpp='$CXXCPP $CPPFLAGS'
14724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14727 if test -z "$CXX"; then
14728   if test -n "$CCC"; then
14729     CXX=$CCC
14730   else
14731     if test -n "$ac_tool_prefix"; then
14732   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14733   do
14734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14737 printf %s "checking for $ac_word... " >&6; }
14738 if test ${ac_cv_prog_CXX+y}
14739 then :
14740   printf %s "(cached) " >&6
14741 else $as_nop
14742   if test -n "$CXX"; then
14743   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14744 else
14745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14746 for as_dir in $PATH
14747 do
14748   IFS=$as_save_IFS
14749   case $as_dir in #(((
14750     '') as_dir=./ ;;
14751     */) ;;
14752     *) as_dir=$as_dir/ ;;
14753   esac
14754     for ac_exec_ext in '' $ac_executable_extensions; do
14755   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14756     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14757     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14758     break 2
14759   fi
14760 done
14761   done
14762 IFS=$as_save_IFS
14763
14764 fi
14765 fi
14766 CXX=$ac_cv_prog_CXX
14767 if test -n "$CXX"; then
14768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14769 printf "%s\n" "$CXX" >&6; }
14770 else
14771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 printf "%s\n" "no" >&6; }
14773 fi
14774
14775
14776     test -n "$CXX" && break
14777   done
14778 fi
14779 if test -z "$CXX"; then
14780   ac_ct_CXX=$CXX
14781   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14782 do
14783   # Extract the first word of "$ac_prog", so it can be a program name with args.
14784 set dummy $ac_prog; ac_word=$2
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14786 printf %s "checking for $ac_word... " >&6; }
14787 if test ${ac_cv_prog_ac_ct_CXX+y}
14788 then :
14789   printf %s "(cached) " >&6
14790 else $as_nop
14791   if test -n "$ac_ct_CXX"; then
14792   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14793 else
14794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14795 for as_dir in $PATH
14796 do
14797   IFS=$as_save_IFS
14798   case $as_dir in #(((
14799     '') as_dir=./ ;;
14800     */) ;;
14801     *) as_dir=$as_dir/ ;;
14802   esac
14803     for ac_exec_ext in '' $ac_executable_extensions; do
14804   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14805     ac_cv_prog_ac_ct_CXX="$ac_prog"
14806     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14807     break 2
14808   fi
14809 done
14810   done
14811 IFS=$as_save_IFS
14812
14813 fi
14814 fi
14815 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14816 if test -n "$ac_ct_CXX"; then
14817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14818 printf "%s\n" "$ac_ct_CXX" >&6; }
14819 else
14820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14821 printf "%s\n" "no" >&6; }
14822 fi
14823
14824
14825   test -n "$ac_ct_CXX" && break
14826 done
14827
14828   if test "x$ac_ct_CXX" = x; then
14829     CXX="g++"
14830   else
14831     case $cross_compiling:$ac_tool_warned in
14832 yes:)
14833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14834 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14835 ac_tool_warned=yes ;;
14836 esac
14837     CXX=$ac_ct_CXX
14838   fi
14839 fi
14840
14841   fi
14842 fi
14843 # Provide some information about the compiler.
14844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14845 set X $ac_compile
14846 ac_compiler=$2
14847 for ac_option in --version -v -V -qversion; do
14848   { { ac_try="$ac_compiler $ac_option >&5"
14849 case "(($ac_try" in
14850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851   *) ac_try_echo=$ac_try;;
14852 esac
14853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14854 printf "%s\n" "$ac_try_echo"; } >&5
14855   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14856   ac_status=$?
14857   if test -s conftest.err; then
14858     sed '10a\
14859 ... rest of stderr output deleted ...
14860          10q' conftest.err >conftest.er1
14861     cat conftest.er1 >&5
14862   fi
14863   rm -f conftest.er1 conftest.err
14864   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14865   test $ac_status = 0; }
14866 done
14867
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14869 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14870 if test ${ac_cv_cxx_compiler_gnu+y}
14871 then :
14872   printf %s "(cached) " >&6
14873 else $as_nop
14874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h.  */
14876
14877 int
14878 main (void)
14879 {
14880 #ifndef __GNUC__
14881        choke me
14882 #endif
14883
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 if ac_fn_cxx_try_compile "$LINENO"
14889 then :
14890   ac_compiler_gnu=yes
14891 else $as_nop
14892   ac_compiler_gnu=no
14893 fi
14894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14895 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14896
14897 fi
14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14899 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14901
14902 if test $ac_compiler_gnu = yes; then
14903   GXX=yes
14904 else
14905   GXX=
14906 fi
14907 ac_test_CXXFLAGS=${CXXFLAGS+y}
14908 ac_save_CXXFLAGS=$CXXFLAGS
14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14910 printf %s "checking whether $CXX accepts -g... " >&6; }
14911 if test ${ac_cv_prog_cxx_g+y}
14912 then :
14913   printf %s "(cached) " >&6
14914 else $as_nop
14915   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14916    ac_cxx_werror_flag=yes
14917    ac_cv_prog_cxx_g=no
14918    CXXFLAGS="-g"
14919    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h.  */
14921
14922 int
14923 main (void)
14924 {
14925
14926   ;
14927   return 0;
14928 }
14929 _ACEOF
14930 if ac_fn_cxx_try_compile "$LINENO"
14931 then :
14932   ac_cv_prog_cxx_g=yes
14933 else $as_nop
14934   CXXFLAGS=""
14935       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h.  */
14937
14938 int
14939 main (void)
14940 {
14941
14942   ;
14943   return 0;
14944 }
14945 _ACEOF
14946 if ac_fn_cxx_try_compile "$LINENO"
14947 then :
14948
14949 else $as_nop
14950   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14951          CXXFLAGS="-g"
14952          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h.  */
14954
14955 int
14956 main (void)
14957 {
14958
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 if ac_fn_cxx_try_compile "$LINENO"
14964 then :
14965   ac_cv_prog_cxx_g=yes
14966 fi
14967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14968 fi
14969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14970 fi
14971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14972    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14973 fi
14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14975 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14976 if test $ac_test_CXXFLAGS; then
14977   CXXFLAGS=$ac_save_CXXFLAGS
14978 elif test $ac_cv_prog_cxx_g = yes; then
14979   if test "$GXX" = yes; then
14980     CXXFLAGS="-g -O2"
14981   else
14982     CXXFLAGS="-g"
14983   fi
14984 else
14985   if test "$GXX" = yes; then
14986     CXXFLAGS="-O2"
14987   else
14988     CXXFLAGS=
14989   fi
14990 fi
14991 ac_prog_cxx_stdcxx=no
14992 if test x$ac_prog_cxx_stdcxx = xno
14993 then :
14994   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14995 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14996 if test ${ac_cv_prog_cxx_cxx11+y}
14997 then :
14998   printf %s "(cached) " >&6
14999 else $as_nop
15000   ac_cv_prog_cxx_cxx11=no
15001 ac_save_CXX=$CXX
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h.  */
15004 $ac_cxx_conftest_cxx11_program
15005 _ACEOF
15006 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15007 do
15008   CXX="$ac_save_CXX $ac_arg"
15009   if ac_fn_cxx_try_compile "$LINENO"
15010 then :
15011   ac_cv_prog_cxx_cxx11=$ac_arg
15012 fi
15013 rm -f core conftest.err conftest.$ac_objext conftest.beam
15014   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15015 done
15016 rm -f conftest.$ac_ext
15017 CXX=$ac_save_CXX
15018 fi
15019
15020 if test "x$ac_cv_prog_cxx_cxx11" = xno
15021 then :
15022   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15023 printf "%s\n" "unsupported" >&6; }
15024 else $as_nop
15025   if test "x$ac_cv_prog_cxx_cxx11" = x
15026 then :
15027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15028 printf "%s\n" "none needed" >&6; }
15029 else $as_nop
15030   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15031 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15032      CXX="$CXX $ac_cv_prog_cxx_cxx11"
15033 fi
15034   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15035   ac_prog_cxx_stdcxx=cxx11
15036 fi
15037 fi
15038 if test x$ac_prog_cxx_stdcxx = xno
15039 then :
15040   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15041 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15042 if test ${ac_cv_prog_cxx_cxx98+y}
15043 then :
15044   printf %s "(cached) " >&6
15045 else $as_nop
15046   ac_cv_prog_cxx_cxx98=no
15047 ac_save_CXX=$CXX
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h.  */
15050 $ac_cxx_conftest_cxx98_program
15051 _ACEOF
15052 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15053 do
15054   CXX="$ac_save_CXX $ac_arg"
15055   if ac_fn_cxx_try_compile "$LINENO"
15056 then :
15057   ac_cv_prog_cxx_cxx98=$ac_arg
15058 fi
15059 rm -f core conftest.err conftest.$ac_objext conftest.beam
15060   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15061 done
15062 rm -f conftest.$ac_ext
15063 CXX=$ac_save_CXX
15064 fi
15065
15066 if test "x$ac_cv_prog_cxx_cxx98" = xno
15067 then :
15068   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15069 printf "%s\n" "unsupported" >&6; }
15070 else $as_nop
15071   if test "x$ac_cv_prog_cxx_cxx98" = x
15072 then :
15073   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15074 printf "%s\n" "none needed" >&6; }
15075 else $as_nop
15076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15077 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15078      CXX="$CXX $ac_cv_prog_cxx_cxx98"
15079 fi
15080   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15081   ac_prog_cxx_stdcxx=cxx98
15082 fi
15083 fi
15084
15085 ac_ext=c
15086 ac_cpp='$CPP $CPPFLAGS'
15087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15090
15091         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15092 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15093         ac_ext=cpp
15094 ac_cpp='$CXXCPP $CPPFLAGS'
15095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15098
15099         OLD_CXXFLAGS="$CXXFLAGS"
15100         OLD_LDFLAGS="$LDFLAGS"
15101         FUZZER_FLAGS="-fsanitize=fuzzer"
15102         CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15103         LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15104
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h.  */
15107
15108                 #include <stddef.h>
15109                 #include <stdint.h>
15110
15111 int
15112 main (void)
15113 {
15114  return 0;
15115   ;
15116   return 0;
15117 }
15118 _ACEOF
15119 if ac_fn_cxx_try_compile "$LINENO"
15120 then :
15121   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15122 printf "%s\n" "yes" >&6; }
15123                 fuzzer_cflags=$FUZZER_FLAGS
15124                 fuzzer_ldflags=$FUZZER_FLAGS
15125                 FUZZING_CMT=
15126                 have_fuzzer=yes
15127 else $as_nop
15128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 printf "%s\n" "no" >&6; }
15130                 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15133         CXXFLAGS="${OLD_CXXFLAGS}"
15134         LDFLAGS="${OLD_LDFLAGS}"
15135         ac_ext=c
15136 ac_cpp='$CPP $CPPFLAGS'
15137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15140
15141
15142
15143
15144 fi
15145 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
15146         as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
15147 fi
15148
15149 LINUX_CMT="#"
15150 CYGWIN_CMT="#"
15151 UNIX_CMT=
15152 case "$host_os" in
15153 linux*)
15154         LINUX_CMT=
15155         ;;
15156 cygwin)
15157         CYGWIN_CMT=
15158         UNIX_CMT="#"
15159         ;;
15160 esac
15161
15162
15163
15164 E2SCRUB_CMT="$LINUX_CMT"
15165
15166 case "$host_os" in
15167 linux* | gnu* | k*bsd*-gnu)
15168         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15169                 root_prefix="";
15170                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15171 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15172         fi
15173         ;;
15174 esac
15175 case "$host_os" in
15176 linux* | gnu* | k*bsd*-gnu)
15177         if test "$prefix" = NONE ; then
15178                 prefix="/usr";
15179                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15180 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15181                 if test "$mandir" = '${prefix}/man' ; then
15182                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15183 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15184                         mandir=/usr/share/man
15185                 fi
15186         fi
15187 ;;
15188 esac
15189 if test "$root_prefix" = NONE ; then
15190         if test "$prefix" = NONE ; then
15191                 root_prefix="$ac_default_prefix"
15192         else
15193                 root_prefix="$prefix"
15194         fi
15195         root_bindir=$bindir
15196         root_sbindir=$sbindir
15197         root_libdir=$libdir
15198         root_sysconfdir=$sysconfdir
15199 else
15200         root_bindir='${root_prefix}/bin'
15201         root_sbindir='${root_prefix}/sbin'
15202         root_libdir='${root_prefix}/lib'
15203         root_sysconfdir='${root_prefix}/etc'
15204 fi
15205 if test "$bindir" != '${exec_prefix}/bin'; then
15206     root_bindir=$bindir
15207     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15208 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15209 fi
15210 if test "$sbindir" != '${exec_prefix}/sbin'; then
15211     root_sbindir=$sbindir
15212     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15213 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15214 fi
15215 if test "$libdir" != '${exec_prefix}/lib'; then
15216     root_libdir=$libdir
15217     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15218 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15219 fi
15220 if test "$sysconfdir" != '${prefix}/etc'; then
15221     root_sysconfdir=$sysconfdir
15222     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15223 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15224 fi
15225
15226
15227
15228
15229
15230
15231 # Check whether --with-multiarch was given.
15232 if test ${with_multiarch+y}
15233 then :
15234   withval=$with_multiarch; if test "$withval" = "lib64"; then
15235     libdir=/usr/lib64
15236     root_libdir=/lib64
15237 else
15238     libdir=$libdir/$withval
15239     root_libdir=$root_libdir/$withval
15240 fi
15241
15242 fi
15243
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15245 printf %s "checking whether we can link with -static... " >&6; }
15246 if test ${ac_cv_e2fsprogs_use_static+y}
15247 then :
15248   printf %s "(cached) " >&6
15249 else $as_nop
15250   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h.  */
15253 #include <stdio.h>
15254 int
15255 main (void)
15256 {
15257 fflush(stdout);
15258   ;
15259   return 0;
15260 }
15261 _ACEOF
15262 if ac_fn_c_try_link "$LINENO"
15263 then :
15264   ac_cv_e2fsprogs_use_static=yes
15265 else $as_nop
15266   ac_cv_e2fsprogs_use_static=no
15267 fi
15268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15269     conftest$ac_exeext conftest.$ac_ext
15270 LDFLAGS=$SAVE_LDFLAGS
15271 fi
15272
15273 case "$host_os" in
15274 solaris2.*)
15275         ac_cv_e2fsprogs_use_static=no
15276 ;;
15277 esac
15278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15279 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15280 if test $ac_cv_e2fsprogs_use_static = yes; then
15281         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15282 fi
15283
15284 case "$host_os" in
15285 darwin*)
15286         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15287 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15288
15289 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15290
15291         ;;
15292 esac
15293 if test "$cross_compiling" = yes ; then
15294   DO_TEST_SUITE=
15295 else
15296   DO_TEST_SUITE=check
15297 fi
15298
15299 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15300 if test -n "$CPPFLAGS" ; then
15301         INCLUDES="$INCLUDES $CPPFLAGS"
15302 fi
15303 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15304         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15305 fi
15306 if test -n "$WITH_DIET_LIBC" ; then
15307         INCLUDES="$INCLUDES -D_REENTRANT"
15308 fi
15309 case "$host_os" in
15310 mingw*)
15311         INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15312         ;;
15313 esac
15314
15315 if test $cross_compiling = no; then
15316    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15317    BUILD_LDFLAGS="$LDFLAGS"
15318 fi
15319
15320
15321 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15322 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15323 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15324
15325
15326
15327
15328
15329 # Check whether --with-udev_rules_dir was given.
15330 if test ${with_udev_rules_dir+y}
15331 then :
15332   withval=$with_udev_rules_dir;
15333 else $as_nop
15334   with_udev_rules_dir=yes
15335 fi
15336
15337 if test "x${with_udev_rules_dir}" != "xno"
15338 then :
15339
15340         if test "x${with_udev_rules_dir}" = "xyes"
15341 then :
15342
15343
15344 pkg_failed=no
15345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15346 printf %s "checking for udev... " >&6; }
15347
15348 if test -n "$udev_CFLAGS"; then
15349     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15350  elif test -n "$PKG_CONFIG"; then
15351     if test -n "$PKG_CONFIG" && \
15352     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15353   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15354   ac_status=$?
15355   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15356   test $ac_status = 0; }; then
15357   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15358                       test "x$?" != "x0" && pkg_failed=yes
15359 else
15360   pkg_failed=yes
15361 fi
15362  else
15363     pkg_failed=untried
15364 fi
15365 if test -n "$udev_LIBS"; then
15366     pkg_cv_udev_LIBS="$udev_LIBS"
15367  elif test -n "$PKG_CONFIG"; then
15368     if test -n "$PKG_CONFIG" && \
15369     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15370   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15371   ac_status=$?
15372   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15373   test $ac_status = 0; }; then
15374   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15375                       test "x$?" != "x0" && pkg_failed=yes
15376 else
15377   pkg_failed=yes
15378 fi
15379  else
15380     pkg_failed=untried
15381 fi
15382
15383
15384
15385 if test $pkg_failed = yes; then
15386         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 printf "%s\n" "no" >&6; }
15388
15389 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15390         _pkg_short_errors_supported=yes
15391 else
15392         _pkg_short_errors_supported=no
15393 fi
15394         if test $_pkg_short_errors_supported = yes; then
15395                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15396         else
15397                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15398         fi
15399         # Put the nasty error message in config.log where it belongs
15400         echo "$udev_PKG_ERRORS" >&5
15401
15402
15403                         with_udev_rules_dir=""
15404
15405 elif test $pkg_failed = untried; then
15406         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15407 printf "%s\n" "no" >&6; }
15408
15409                         with_udev_rules_dir=""
15410
15411 else
15412         udev_CFLAGS=$pkg_cv_udev_CFLAGS
15413         udev_LIBS=$pkg_cv_udev_LIBS
15414         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15415 printf "%s\n" "yes" >&6; }
15416
15417                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15418
15419 fi
15420
15421 fi
15422         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15423 printf %s "checking for udev rules dir... " >&6; }
15424         pkg_udev_rules_dir="${with_udev_rules_dir}"
15425         if test -n "${pkg_udev_rules_dir}"
15426 then :
15427
15428                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15429 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15430                 have_udev="yes"
15431
15432 else $as_nop
15433
15434                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435 printf "%s\n" "no" >&6; }
15436                 have_udev="no"
15437
15438 fi
15439
15440 else $as_nop
15441
15442         have_udev="disabled"
15443
15444 fi
15445
15446
15447
15448
15449 # Check whether --with-crond_dir was given.
15450 if test ${with_crond_dir+y}
15451 then :
15452   withval=$with_crond_dir;
15453 else $as_nop
15454   with_crond_dir=yes
15455 fi
15456
15457 if test "x${with_crond_dir}" != "xno"
15458 then :
15459
15460         if test "x${with_crond_dir}" = "xyes"
15461 then :
15462
15463                 if test -d "/etc/cron.d"
15464 then :
15465   with_crond_dir="/etc/cron.d"
15466 else $as_nop
15467   have_crond="no"; with_crond_dir=""
15468 fi
15469
15470 fi
15471         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15472 printf %s "checking for system crontab dir... " >&6; }
15473         crond_dir="${with_crond_dir}"
15474         if test -n "${crond_dir}"
15475 then :
15476
15477                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15478 printf "%s\n" "${crond_dir}" >&6; }
15479                 have_crond="yes"
15480
15481 else $as_nop
15482
15483                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15484 printf "%s\n" "no" >&6; }
15485                 have_crond="no"
15486
15487 fi
15488
15489 else $as_nop
15490
15491         have_crond="disabled"
15492
15493 fi
15494
15495
15496
15497
15498 # Check whether --with-systemd_unit_dir was given.
15499 if test ${with_systemd_unit_dir+y}
15500 then :
15501   withval=$with_systemd_unit_dir;
15502 else $as_nop
15503   with_systemd_unit_dir=yes
15504 fi
15505
15506 if test "x${with_systemd_unit_dir}" != "xno"
15507 then :
15508
15509         if test "x${with_systemd_unit_dir}" = "xyes"
15510 then :
15511
15512
15513 pkg_failed=no
15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15515 printf %s "checking for systemd... " >&6; }
15516
15517 if test -n "$systemd_CFLAGS"; then
15518     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15519  elif test -n "$PKG_CONFIG"; then
15520     if test -n "$PKG_CONFIG" && \
15521     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15522   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15523   ac_status=$?
15524   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15525   test $ac_status = 0; }; then
15526   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15527                       test "x$?" != "x0" && pkg_failed=yes
15528 else
15529   pkg_failed=yes
15530 fi
15531  else
15532     pkg_failed=untried
15533 fi
15534 if test -n "$systemd_LIBS"; then
15535     pkg_cv_systemd_LIBS="$systemd_LIBS"
15536  elif test -n "$PKG_CONFIG"; then
15537     if test -n "$PKG_CONFIG" && \
15538     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15539   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15540   ac_status=$?
15541   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15542   test $ac_status = 0; }; then
15543   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15544                       test "x$?" != "x0" && pkg_failed=yes
15545 else
15546   pkg_failed=yes
15547 fi
15548  else
15549     pkg_failed=untried
15550 fi
15551
15552
15553
15554 if test $pkg_failed = yes; then
15555         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556 printf "%s\n" "no" >&6; }
15557
15558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15559         _pkg_short_errors_supported=yes
15560 else
15561         _pkg_short_errors_supported=no
15562 fi
15563         if test $_pkg_short_errors_supported = yes; then
15564                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15565         else
15566                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15567         fi
15568         # Put the nasty error message in config.log where it belongs
15569         echo "$systemd_PKG_ERRORS" >&5
15570
15571
15572                         with_systemd_unit_dir=""
15573
15574 elif test $pkg_failed = untried; then
15575         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576 printf "%s\n" "no" >&6; }
15577
15578                         with_systemd_unit_dir=""
15579
15580 else
15581         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15582         systemd_LIBS=$pkg_cv_systemd_LIBS
15583         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15584 printf "%s\n" "yes" >&6; }
15585
15586                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15587
15588 fi
15589
15590
15591 fi
15592         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15593 printf %s "checking for systemd system unit dir... " >&6; }
15594         systemd_system_unit_dir="${with_systemd_unit_dir}"
15595         if test -n "${systemd_system_unit_dir}"
15596 then :
15597
15598                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15599 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
15600                 have_systemd="yes"
15601
15602 else $as_nop
15603
15604                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15605 printf "%s\n" "no" >&6; }
15606                 have_systemd="no"
15607
15608 fi
15609
15610 else $as_nop
15611
15612         have_systemd="disabled"
15613
15614 fi
15615
15616
15617 OS_IO_FILE=""
15618 case "$host_os" in
15619   mingw*)
15620     OS_IO_FILE=windows_io
15621   ;;
15622   *)
15623     OS_IO_FILE=unix_io
15624   ;;
15625 esac
15626
15627
15628 test -d lib || mkdir lib
15629 test -d include || mkdir include
15630 test -d include/linux || mkdir include/linux
15631 test -d include/asm || mkdir include/asm
15632 if test -z "$UUID_CMT" ; then
15633         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
15634                 lib/uuid/uuid_types.h"
15635 fi
15636 if test -z "$BLKID_CMT" ; then
15637         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
15638                 lib/blkid/blkid_types.h"
15639 fi
15640 for i in MCONFIG Makefile \
15641         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
15642         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15643         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15644         $uuid_out_list $blkid_out_list lib/support/Makefile \
15645         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
15646         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15647         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15648         tests/fuzz/Makefile resize/Makefile doc/Makefile \
15649         po/Makefile.in scrub/Makefile; do
15650         if test -d `dirname ${srcdir}/$i` ; then
15651                 outlist="$outlist $i"
15652         fi
15653 done
15654 ac_config_files="$ac_config_files $outlist"
15655
15656 cat >confcache <<\_ACEOF
15657 # This file is a shell script that caches the results of configure
15658 # tests run on this system so they can be shared between configure
15659 # scripts and configure runs, see configure's option --config-cache.
15660 # It is not useful on other systems.  If it contains results you don't
15661 # want to keep, you may remove or edit it.
15662 #
15663 # config.status only pays attention to the cache file if you give it
15664 # the --recheck option to rerun configure.
15665 #
15666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15668 # following values.
15669
15670 _ACEOF
15671
15672 # The following way of writing the cache mishandles newlines in values,
15673 # but we know of no workaround that is simple, portable, and efficient.
15674 # So, we kill variables containing newlines.
15675 # Ultrix sh set writes to stderr and can't be redirected directly,
15676 # and sets the high bit in the cache file unless we assign to the vars.
15677 (
15678   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15679     eval ac_val=\$$ac_var
15680     case $ac_val in #(
15681     *${as_nl}*)
15682       case $ac_var in #(
15683       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15684 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15685       esac
15686       case $ac_var in #(
15687       _ | IFS | as_nl) ;; #(
15688       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15689       *) { eval $ac_var=; unset $ac_var;} ;;
15690       esac ;;
15691     esac
15692   done
15693
15694   (set) 2>&1 |
15695     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15696     *${as_nl}ac_space=\ *)
15697       # `set' does not quote correctly, so add quotes: double-quote
15698       # substitution turns \\\\ into \\, and sed turns \\ into \.
15699       sed -n \
15700         "s/'/'\\\\''/g;
15701           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15702       ;; #(
15703     *)
15704       # `set' quotes correctly as required by POSIX, so do not add quotes.
15705       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15706       ;;
15707     esac |
15708     sort
15709 ) |
15710   sed '
15711      /^ac_cv_env_/b end
15712      t clear
15713      :clear
15714      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15715      t end
15716      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15717      :end' >>confcache
15718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15719   if test -w "$cache_file"; then
15720     if test "x$cache_file" != "x/dev/null"; then
15721       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15722 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15723       if test ! -f "$cache_file" || test -h "$cache_file"; then
15724         cat confcache >"$cache_file"
15725       else
15726         case $cache_file in #(
15727         */* | ?:*)
15728           mv -f confcache "$cache_file"$$ &&
15729           mv -f "$cache_file"$$ "$cache_file" ;; #(
15730         *)
15731           mv -f confcache "$cache_file" ;;
15732         esac
15733       fi
15734     fi
15735   else
15736     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15737 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15738   fi
15739 fi
15740 rm -f confcache
15741
15742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15743 # Let make expand exec_prefix.
15744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15745
15746 DEFS=-DHAVE_CONFIG_H
15747
15748 ac_libobjs=
15749 ac_ltlibobjs=
15750 U=
15751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15752   # 1. Remove the extension, and $U if already installed.
15753   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15754   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15755   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15756   #    will be set to the directory where LIBOBJS objects are built.
15757   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15758   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15759 done
15760 LIBOBJS=$ac_libobjs
15761
15762 LTLIBOBJS=$ac_ltlibobjs
15763
15764
15765
15766
15767 : "${CONFIG_STATUS=./config.status}"
15768 ac_write_fail=0
15769 ac_clean_files_save=$ac_clean_files
15770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15772 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15773 as_write_fail=0
15774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15775 #! $SHELL
15776 # Generated by $as_me.
15777 # Run this file to recreate the current configuration.
15778 # Compiler output produced by configure, useful for debugging
15779 # configure, is in config.log if it exists.
15780
15781 debug=false
15782 ac_cs_recheck=false
15783 ac_cs_silent=false
15784
15785 SHELL=\${CONFIG_SHELL-$SHELL}
15786 export SHELL
15787 _ASEOF
15788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15789 ## -------------------- ##
15790 ## M4sh Initialization. ##
15791 ## -------------------- ##
15792
15793 # Be more Bourne compatible
15794 DUALCASE=1; export DUALCASE # for MKS sh
15795 as_nop=:
15796 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15797 then :
15798   emulate sh
15799   NULLCMD=:
15800   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15801   # is contrary to our usage.  Disable this feature.
15802   alias -g '${1+"$@"}'='"$@"'
15803   setopt NO_GLOB_SUBST
15804 else $as_nop
15805   case `(set -o) 2>/dev/null` in #(
15806   *posix*) :
15807     set -o posix ;; #(
15808   *) :
15809      ;;
15810 esac
15811 fi
15812
15813
15814
15815 # Reset variables that may have inherited troublesome values from
15816 # the environment.
15817
15818 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15819 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15820 # side effect of setting IFS to empty, thus disabling word splitting.)
15821 # Quoting is to prevent editors from complaining about space-tab.
15822 as_nl='
15823 '
15824 export as_nl
15825 IFS=" ""        $as_nl"
15826
15827 PS1='$ '
15828 PS2='> '
15829 PS4='+ '
15830
15831 # Ensure predictable behavior from utilities with locale-dependent output.
15832 LC_ALL=C
15833 export LC_ALL
15834 LANGUAGE=C
15835 export LANGUAGE
15836
15837 # We cannot yet rely on "unset" to work, but we need these variables
15838 # to be unset--not just set to an empty or harmless value--now, to
15839 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15840 # also avoids known problems related to "unset" and subshell syntax
15841 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15842 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15843 do eval test \${$as_var+y} \
15844   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15845 done
15846
15847 # Ensure that fds 0, 1, and 2 are open.
15848 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15849 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15850 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15851
15852 # The user is always right.
15853 if ${PATH_SEPARATOR+false} :; then
15854   PATH_SEPARATOR=:
15855   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15856     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15857       PATH_SEPARATOR=';'
15858   }
15859 fi
15860
15861
15862 # Find who we are.  Look in the path if we contain no directory separator.
15863 as_myself=
15864 case $0 in #((
15865   *[\\/]* ) as_myself=$0 ;;
15866   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15867 for as_dir in $PATH
15868 do
15869   IFS=$as_save_IFS
15870   case $as_dir in #(((
15871     '') as_dir=./ ;;
15872     */) ;;
15873     *) as_dir=$as_dir/ ;;
15874   esac
15875     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15876   done
15877 IFS=$as_save_IFS
15878
15879      ;;
15880 esac
15881 # We did not find ourselves, most probably we were run as `sh COMMAND'
15882 # in which case we are not to be found in the path.
15883 if test "x$as_myself" = x; then
15884   as_myself=$0
15885 fi
15886 if test ! -f "$as_myself"; then
15887   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15888   exit 1
15889 fi
15890
15891
15892
15893 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15894 # ----------------------------------------
15895 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15896 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15897 # script with STATUS, using 1 if that was 0.
15898 as_fn_error ()
15899 {
15900   as_status=$1; test $as_status -eq 0 && as_status=1
15901   if test "$4"; then
15902     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15903     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15904   fi
15905   printf "%s\n" "$as_me: error: $2" >&2
15906   as_fn_exit $as_status
15907 } # as_fn_error
15908
15909
15910
15911 # as_fn_set_status STATUS
15912 # -----------------------
15913 # Set $? to STATUS, without forking.
15914 as_fn_set_status ()
15915 {
15916   return $1
15917 } # as_fn_set_status
15918
15919 # as_fn_exit STATUS
15920 # -----------------
15921 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15922 as_fn_exit ()
15923 {
15924   set +e
15925   as_fn_set_status $1
15926   exit $1
15927 } # as_fn_exit
15928
15929 # as_fn_unset VAR
15930 # ---------------
15931 # Portably unset VAR.
15932 as_fn_unset ()
15933 {
15934   { eval $1=; unset $1;}
15935 }
15936 as_unset=as_fn_unset
15937
15938 # as_fn_append VAR VALUE
15939 # ----------------------
15940 # Append the text in VALUE to the end of the definition contained in VAR. Take
15941 # advantage of any shell optimizations that allow amortized linear growth over
15942 # repeated appends, instead of the typical quadratic growth present in naive
15943 # implementations.
15944 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15945 then :
15946   eval 'as_fn_append ()
15947   {
15948     eval $1+=\$2
15949   }'
15950 else $as_nop
15951   as_fn_append ()
15952   {
15953     eval $1=\$$1\$2
15954   }
15955 fi # as_fn_append
15956
15957 # as_fn_arith ARG...
15958 # ------------------
15959 # Perform arithmetic evaluation on the ARGs, and store the result in the
15960 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15961 # must be portable across $(()) and expr.
15962 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15963 then :
15964   eval 'as_fn_arith ()
15965   {
15966     as_val=$(( $* ))
15967   }'
15968 else $as_nop
15969   as_fn_arith ()
15970   {
15971     as_val=`expr "$@" || test $? -eq 1`
15972   }
15973 fi # as_fn_arith
15974
15975
15976 if expr a : '\(a\)' >/dev/null 2>&1 &&
15977    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15978   as_expr=expr
15979 else
15980   as_expr=false
15981 fi
15982
15983 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15984   as_basename=basename
15985 else
15986   as_basename=false
15987 fi
15988
15989 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15990   as_dirname=dirname
15991 else
15992   as_dirname=false
15993 fi
15994
15995 as_me=`$as_basename -- "$0" ||
15996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15997          X"$0" : 'X\(//\)$' \| \
15998          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15999 printf "%s\n" X/"$0" |
16000     sed '/^.*\/\([^/][^/]*\)\/*$/{
16001             s//\1/
16002             q
16003           }
16004           /^X\/\(\/\/\)$/{
16005             s//\1/
16006             q
16007           }
16008           /^X\/\(\/\).*/{
16009             s//\1/
16010             q
16011           }
16012           s/.*/./; q'`
16013
16014 # Avoid depending upon Character Ranges.
16015 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16016 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16017 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16018 as_cr_digits='0123456789'
16019 as_cr_alnum=$as_cr_Letters$as_cr_digits
16020
16021
16022 # Determine whether it's possible to make 'echo' print without a newline.
16023 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16024 # for compatibility with existing Makefiles.
16025 ECHO_C= ECHO_N= ECHO_T=
16026 case `echo -n x` in #(((((
16027 -n*)
16028   case `echo 'xy\c'` in
16029   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16030   xy)  ECHO_C='\c';;
16031   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16032        ECHO_T=' ';;
16033   esac;;
16034 *)
16035   ECHO_N='-n';;
16036 esac
16037
16038 # For backward compatibility with old third-party macros, we provide
16039 # the shell variables $as_echo and $as_echo_n.  New code should use
16040 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16041 as_echo='printf %s\n'
16042 as_echo_n='printf %s'
16043
16044 rm -f conf$$ conf$$.exe conf$$.file
16045 if test -d conf$$.dir; then
16046   rm -f conf$$.dir/conf$$.file
16047 else
16048   rm -f conf$$.dir
16049   mkdir conf$$.dir 2>/dev/null
16050 fi
16051 if (echo >conf$$.file) 2>/dev/null; then
16052   if ln -s conf$$.file conf$$ 2>/dev/null; then
16053     as_ln_s='ln -s'
16054     # ... but there are two gotchas:
16055     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16056     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16057     # In both cases, we have to default to `cp -pR'.
16058     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16059       as_ln_s='cp -pR'
16060   elif ln conf$$.file conf$$ 2>/dev/null; then
16061     as_ln_s=ln
16062   else
16063     as_ln_s='cp -pR'
16064   fi
16065 else
16066   as_ln_s='cp -pR'
16067 fi
16068 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16069 rmdir conf$$.dir 2>/dev/null
16070
16071
16072 # as_fn_mkdir_p
16073 # -------------
16074 # Create "$as_dir" as a directory, including parents if necessary.
16075 as_fn_mkdir_p ()
16076 {
16077
16078   case $as_dir in #(
16079   -*) as_dir=./$as_dir;;
16080   esac
16081   test -d "$as_dir" || eval $as_mkdir_p || {
16082     as_dirs=
16083     while :; do
16084       case $as_dir in #(
16085       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16086       *) as_qdir=$as_dir;;
16087       esac
16088       as_dirs="'$as_qdir' $as_dirs"
16089       as_dir=`$as_dirname -- "$as_dir" ||
16090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16091          X"$as_dir" : 'X\(//\)[^/]' \| \
16092          X"$as_dir" : 'X\(//\)$' \| \
16093          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16094 printf "%s\n" X"$as_dir" |
16095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16096             s//\1/
16097             q
16098           }
16099           /^X\(\/\/\)[^/].*/{
16100             s//\1/
16101             q
16102           }
16103           /^X\(\/\/\)$/{
16104             s//\1/
16105             q
16106           }
16107           /^X\(\/\).*/{
16108             s//\1/
16109             q
16110           }
16111           s/.*/./; q'`
16112       test -d "$as_dir" && break
16113     done
16114     test -z "$as_dirs" || eval "mkdir $as_dirs"
16115   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16116
16117
16118 } # as_fn_mkdir_p
16119 if mkdir -p . 2>/dev/null; then
16120   as_mkdir_p='mkdir -p "$as_dir"'
16121 else
16122   test -d ./-p && rmdir ./-p
16123   as_mkdir_p=false
16124 fi
16125
16126
16127 # as_fn_executable_p FILE
16128 # -----------------------
16129 # Test if FILE is an executable regular file.
16130 as_fn_executable_p ()
16131 {
16132   test -f "$1" && test -x "$1"
16133 } # as_fn_executable_p
16134 as_test_x='test -x'
16135 as_executable_p=as_fn_executable_p
16136
16137 # Sed expression to map a string onto a valid CPP name.
16138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16139
16140 # Sed expression to map a string onto a valid variable name.
16141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16142
16143
16144 exec 6>&1
16145 ## ----------------------------------- ##
16146 ## Main body of $CONFIG_STATUS script. ##
16147 ## ----------------------------------- ##
16148 _ASEOF
16149 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16150
16151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16152 # Save the log message, to keep $0 and so on meaningful, and to
16153 # report actual input values of CONFIG_FILES etc. instead of their
16154 # values after options handling.
16155 ac_log="
16156 This file was extended by $as_me, which was
16157 generated by GNU Autoconf 2.71.  Invocation command line was
16158
16159   CONFIG_FILES    = $CONFIG_FILES
16160   CONFIG_HEADERS  = $CONFIG_HEADERS
16161   CONFIG_LINKS    = $CONFIG_LINKS
16162   CONFIG_COMMANDS = $CONFIG_COMMANDS
16163   $ $0 $@
16164
16165 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16166 "
16167
16168 _ACEOF
16169
16170 case $ac_config_files in *"
16171 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16172 esac
16173
16174 case $ac_config_headers in *"
16175 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16176 esac
16177
16178
16179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16180 # Files that config.status was made for.
16181 config_files="$ac_config_files"
16182 config_headers="$ac_config_headers"
16183 config_commands="$ac_config_commands"
16184
16185 _ACEOF
16186
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 ac_cs_usage="\
16189 \`$as_me' instantiates files and other configuration actions
16190 from templates according to the current configuration.  Unless the files
16191 and actions are specified as TAGs, all are instantiated by default.
16192
16193 Usage: $0 [OPTION]... [TAG]...
16194
16195   -h, --help       print this help, then exit
16196   -V, --version    print version number and configuration settings, then exit
16197       --config     print configuration, then exit
16198   -q, --quiet, --silent
16199                    do not print progress messages
16200   -d, --debug      don't remove temporary files
16201       --recheck    update $as_me by reconfiguring in the same conditions
16202       --file=FILE[:TEMPLATE]
16203                    instantiate the configuration file FILE
16204       --header=FILE[:TEMPLATE]
16205                    instantiate the configuration header FILE
16206
16207 Configuration files:
16208 $config_files
16209
16210 Configuration headers:
16211 $config_headers
16212
16213 Configuration commands:
16214 $config_commands
16215
16216 Report bugs to the package provider."
16217
16218 _ACEOF
16219 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16220 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16222 ac_cs_config='$ac_cs_config_escaped'
16223 ac_cs_version="\\
16224 config.status
16225 configured by $0, generated by GNU Autoconf 2.71,
16226   with options \\"\$ac_cs_config\\"
16227
16228 Copyright (C) 2021 Free Software Foundation, Inc.
16229 This config.status script is free software; the Free Software Foundation
16230 gives unlimited permission to copy, distribute and modify it."
16231
16232 ac_pwd='$ac_pwd'
16233 srcdir='$srcdir'
16234 INSTALL='$INSTALL'
16235 MKDIR_P='$MKDIR_P'
16236 AWK='$AWK'
16237 test -n "\$AWK" || AWK=awk
16238 _ACEOF
16239
16240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16241 # The default lists apply if the user does not specify any file.
16242 ac_need_defaults=:
16243 while test $# != 0
16244 do
16245   case $1 in
16246   --*=?*)
16247     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16248     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16249     ac_shift=:
16250     ;;
16251   --*=)
16252     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16253     ac_optarg=
16254     ac_shift=:
16255     ;;
16256   *)
16257     ac_option=$1
16258     ac_optarg=$2
16259     ac_shift=shift
16260     ;;
16261   esac
16262
16263   case $ac_option in
16264   # Handling of the options.
16265   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16266     ac_cs_recheck=: ;;
16267   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16268     printf "%s\n" "$ac_cs_version"; exit ;;
16269   --config | --confi | --conf | --con | --co | --c )
16270     printf "%s\n" "$ac_cs_config"; exit ;;
16271   --debug | --debu | --deb | --de | --d | -d )
16272     debug=: ;;
16273   --file | --fil | --fi | --f )
16274     $ac_shift
16275     case $ac_optarg in
16276     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16277     '') as_fn_error $? "missing file argument" ;;
16278     esac
16279     as_fn_append CONFIG_FILES " '$ac_optarg'"
16280     ac_need_defaults=false;;
16281   --header | --heade | --head | --hea )
16282     $ac_shift
16283     case $ac_optarg in
16284     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16285     esac
16286     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16287     ac_need_defaults=false;;
16288   --he | --h)
16289     # Conflict between --help and --header
16290     as_fn_error $? "ambiguous option: \`$1'
16291 Try \`$0 --help' for more information.";;
16292   --help | --hel | -h )
16293     printf "%s\n" "$ac_cs_usage"; exit ;;
16294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16295   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16296     ac_cs_silent=: ;;
16297
16298   # This is an error.
16299   -*) as_fn_error $? "unrecognized option: \`$1'
16300 Try \`$0 --help' for more information." ;;
16301
16302   *) as_fn_append ac_config_targets " $1"
16303      ac_need_defaults=false ;;
16304
16305   esac
16306   shift
16307 done
16308
16309 ac_configure_extra_args=
16310
16311 if $ac_cs_silent; then
16312   exec 6>/dev/null
16313   ac_configure_extra_args="$ac_configure_extra_args --silent"
16314 fi
16315
16316 _ACEOF
16317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16318 if \$ac_cs_recheck; then
16319   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16320   shift
16321   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16322   CONFIG_SHELL='$SHELL'
16323   export CONFIG_SHELL
16324   exec "\$@"
16325 fi
16326
16327 _ACEOF
16328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16329 exec 5>>config.log
16330 {
16331   echo
16332   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16333 ## Running $as_me. ##
16334 _ASBOX
16335   printf "%s\n" "$ac_log"
16336 } >&5
16337
16338 _ACEOF
16339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16340 #
16341 # INIT-COMMANDS
16342 #
16343 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16344     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16345     OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16346     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16347     LINGUAS="${LINGUAS-%UNSET%}"
16348
16349
16350 _ACEOF
16351
16352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16353
16354 # Handling of arguments.
16355 for ac_config_target in $ac_config_targets
16356 do
16357   case $ac_config_target in
16358     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16359     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16360     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16361
16362   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16363   esac
16364 done
16365
16366
16367 # If the user did not use the arguments to specify the items to instantiate,
16368 # then the envvar interface is used.  Set only those that are not.
16369 # We use the long form for the default assignment because of an extremely
16370 # bizarre bug on SunOS 4.1.3.
16371 if $ac_need_defaults; then
16372   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16373   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16374   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16375 fi
16376
16377 # Have a temporary directory for convenience.  Make it in the build tree
16378 # simply because there is no reason against having it here, and in addition,
16379 # creating and moving files from /tmp can sometimes cause problems.
16380 # Hook for its removal unless debugging.
16381 # Note that there is a small window in which the directory will not be cleaned:
16382 # after its creation but before its name has been assigned to `$tmp'.
16383 $debug ||
16384 {
16385   tmp= ac_tmp=
16386   trap 'exit_status=$?
16387   : "${ac_tmp:=$tmp}"
16388   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16389 ' 0
16390   trap 'as_fn_exit 1' 1 2 13 15
16391 }
16392 # Create a (secure) tmp directory for tmp files.
16393
16394 {
16395   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16396   test -d "$tmp"
16397 }  ||
16398 {
16399   tmp=./conf$$-$RANDOM
16400   (umask 077 && mkdir "$tmp")
16401 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16402 ac_tmp=$tmp
16403
16404 # Set up the scripts for CONFIG_FILES section.
16405 # No need to generate them if there are no CONFIG_FILES.
16406 # This happens for instance with `./config.status config.h'.
16407 if test -n "$CONFIG_FILES"; then
16408
16409 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16410   ac_cs_awk_getline=:
16411   ac_cs_awk_pipe_init=
16412   ac_cs_awk_read_file='
16413       while ((getline aline < (F[key])) > 0)
16414         print(aline)
16415       close(F[key])'
16416   ac_cs_awk_pipe_fini=
16417 else
16418   ac_cs_awk_getline=false
16419   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16420   ac_cs_awk_read_file='
16421       print "|#_!!_#|"
16422       print "cat " F[key] " &&"
16423       '$ac_cs_awk_pipe_init
16424   # The final `:' finishes the AND list.
16425   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16426 fi
16427 ac_cr=`echo X | tr X '\015'`
16428 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16429 # But we know of no other shell where ac_cr would be empty at this
16430 # point, so we can use a bashism as a fallback.
16431 if test "x$ac_cr" = x; then
16432   eval ac_cr=\$\'\\r\'
16433 fi
16434 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16435 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16436   ac_cs_awk_cr='\\r'
16437 else
16438   ac_cs_awk_cr=$ac_cr
16439 fi
16440
16441 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16442 _ACEOF
16443
16444 # Create commands to substitute file output variables.
16445 {
16446   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16447   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16448   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16449   echo "_ACAWK" &&
16450   echo "_ACEOF"
16451 } >conf$$files.sh &&
16452 . ./conf$$files.sh ||
16453   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16454 rm -f conf$$files.sh
16455
16456 {
16457   echo "cat >conf$$subs.awk <<_ACEOF" &&
16458   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16459   echo "_ACEOF"
16460 } >conf$$subs.sh ||
16461   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16462 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16463 ac_delim='%!_!# '
16464 for ac_last_try in false false false false false :; do
16465   . ./conf$$subs.sh ||
16466     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16467
16468   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16469   if test $ac_delim_n = $ac_delim_num; then
16470     break
16471   elif $ac_last_try; then
16472     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16473   else
16474     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16475   fi
16476 done
16477 rm -f conf$$subs.sh
16478
16479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16480 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16481 _ACEOF
16482 sed -n '
16483 h
16484 s/^/S["/; s/!.*/"]=/
16485 p
16486 g
16487 s/^[^!]*!//
16488 :repl
16489 t repl
16490 s/'"$ac_delim"'$//
16491 t delim
16492 :nl
16493 h
16494 s/\(.\{148\}\)..*/\1/
16495 t more1
16496 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16497 p
16498 n
16499 b repl
16500 :more1
16501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16502 p
16503 g
16504 s/.\{148\}//
16505 t nl
16506 :delim
16507 h
16508 s/\(.\{148\}\)..*/\1/
16509 t more2
16510 s/["\\]/\\&/g; s/^/"/; s/$/"/
16511 p
16512 b
16513 :more2
16514 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16515 p
16516 g
16517 s/.\{148\}//
16518 t delim
16519 ' <conf$$subs.awk | sed '
16520 /^[^""]/{
16521   N
16522   s/\n//
16523 }
16524 ' >>$CONFIG_STATUS || ac_write_fail=1
16525 rm -f conf$$subs.awk
16526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16527 _ACAWK
16528 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16529   for (key in S) S_is_set[key] = 1
16530   FS = "\a"
16531   \$ac_cs_awk_pipe_init
16532 }
16533 {
16534   line = $ 0
16535   nfields = split(line, field, "@")
16536   substed = 0
16537   len = length(field[1])
16538   for (i = 2; i < nfields; i++) {
16539     key = field[i]
16540     keylen = length(key)
16541     if (S_is_set[key]) {
16542       value = S[key]
16543       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16544       len += length(value) + length(field[++i])
16545       substed = 1
16546     } else
16547       len += 1 + keylen
16548   }
16549   if (nfields == 3 && !substed) {
16550     key = field[2]
16551     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16552       \$ac_cs_awk_read_file
16553       next
16554     }
16555   }
16556   print line
16557 }
16558 \$ac_cs_awk_pipe_fini
16559 _ACAWK
16560 _ACEOF
16561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16562 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16563   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16564 else
16565   cat
16566 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16567   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16568 _ACEOF
16569
16570 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16571 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16572 # trailing colons and then remove the whole line if VPATH becomes empty
16573 # (actually we leave an empty line to preserve line numbers).
16574 if test "x$srcdir" = x.; then
16575   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16576 h
16577 s///
16578 s/^/:/
16579 s/[      ]*$/:/
16580 s/:\$(srcdir):/:/g
16581 s/:\${srcdir}:/:/g
16582 s/:@srcdir@:/:/g
16583 s/^:*//
16584 s/:*$//
16585 x
16586 s/\(=[   ]*\).*/\1/
16587 G
16588 s/\n//
16589 s/^[^=]*=[       ]*$//
16590 }'
16591 fi
16592
16593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16594 fi # test -n "$CONFIG_FILES"
16595
16596 # Set up the scripts for CONFIG_HEADERS section.
16597 # No need to generate them if there are no CONFIG_HEADERS.
16598 # This happens for instance with `./config.status Makefile'.
16599 if test -n "$CONFIG_HEADERS"; then
16600 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16601 BEGIN {
16602 _ACEOF
16603
16604 # Transform confdefs.h into an awk script `defines.awk', embedded as
16605 # here-document in config.status, that substitutes the proper values into
16606 # config.h.in to produce config.h.
16607
16608 # Create a delimiter string that does not exist in confdefs.h, to ease
16609 # handling of long lines.
16610 ac_delim='%!_!# '
16611 for ac_last_try in false false :; do
16612   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16613   if test -z "$ac_tt"; then
16614     break
16615   elif $ac_last_try; then
16616     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16617   else
16618     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16619   fi
16620 done
16621
16622 # For the awk script, D is an array of macro values keyed by name,
16623 # likewise P contains macro parameters if any.  Preserve backslash
16624 # newline sequences.
16625
16626 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16627 sed -n '
16628 s/.\{148\}/&'"$ac_delim"'/g
16629 t rset
16630 :rset
16631 s/^[     ]*#[    ]*define[       ][      ]*/ /
16632 t def
16633 d
16634 :def
16635 s/\\$//
16636 t bsnl
16637 s/["\\]/\\&/g
16638 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16639 D["\1"]=" \3"/p
16640 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16641 d
16642 :bsnl
16643 s/["\\]/\\&/g
16644 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16645 D["\1"]=" \3\\\\\\n"\\/p
16646 t cont
16647 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16648 t cont
16649 d
16650 :cont
16651 n
16652 s/.\{148\}/&'"$ac_delim"'/g
16653 t clear
16654 :clear
16655 s/\\$//
16656 t bsnlc
16657 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16658 d
16659 :bsnlc
16660 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16661 b cont
16662 ' <confdefs.h | sed '
16663 s/'"$ac_delim"'/"\\\
16664 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16665
16666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16667   for (key in D) D_is_set[key] = 1
16668   FS = "\a"
16669 }
16670 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16671   line = \$ 0
16672   split(line, arg, " ")
16673   if (arg[1] == "#") {
16674     defundef = arg[2]
16675     mac1 = arg[3]
16676   } else {
16677     defundef = substr(arg[1], 2)
16678     mac1 = arg[2]
16679   }
16680   split(mac1, mac2, "(") #)
16681   macro = mac2[1]
16682   prefix = substr(line, 1, index(line, defundef) - 1)
16683   if (D_is_set[macro]) {
16684     # Preserve the white space surrounding the "#".
16685     print prefix "define", macro P[macro] D[macro]
16686     next
16687   } else {
16688     # Replace #undef with comments.  This is necessary, for example,
16689     # in the case of _POSIX_SOURCE, which is predefined and required
16690     # on some systems where configure will not decide to define it.
16691     if (defundef == "undef") {
16692       print "/*", prefix defundef, macro, "*/"
16693       next
16694     }
16695   }
16696 }
16697 { print }
16698 _ACAWK
16699 _ACEOF
16700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16701   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16702 fi # test -n "$CONFIG_HEADERS"
16703
16704
16705 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16706 shift
16707 for ac_tag
16708 do
16709   case $ac_tag in
16710   :[FHLC]) ac_mode=$ac_tag; continue;;
16711   esac
16712   case $ac_mode$ac_tag in
16713   :[FHL]*:*);;
16714   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16715   :[FH]-) ac_tag=-:-;;
16716   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16717   esac
16718   ac_save_IFS=$IFS
16719   IFS=:
16720   set x $ac_tag
16721   IFS=$ac_save_IFS
16722   shift
16723   ac_file=$1
16724   shift
16725
16726   case $ac_mode in
16727   :L) ac_source=$1;;
16728   :[FH])
16729     ac_file_inputs=
16730     for ac_f
16731     do
16732       case $ac_f in
16733       -) ac_f="$ac_tmp/stdin";;
16734       *) # Look for the file first in the build tree, then in the source tree
16735          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16736          # because $ac_f cannot contain `:'.
16737          test -f "$ac_f" ||
16738            case $ac_f in
16739            [\\/$]*) false;;
16740            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16741            esac ||
16742            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16743       esac
16744       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16745       as_fn_append ac_file_inputs " '$ac_f'"
16746     done
16747
16748     # Let's still pretend it is `configure' which instantiates (i.e., don't
16749     # use $as_me), people would be surprised to read:
16750     #    /* config.h.  Generated by config.status.  */
16751     configure_input='Generated from '`
16752           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16753         `' by configure.'
16754     if test x"$ac_file" != x-; then
16755       configure_input="$ac_file.  $configure_input"
16756       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16757 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16758     fi
16759     # Neutralize special characters interpreted by sed in replacement strings.
16760     case $configure_input in #(
16761     *\&* | *\|* | *\\* )
16762        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16763        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16764     *) ac_sed_conf_input=$configure_input;;
16765     esac
16766
16767     case $ac_tag in
16768     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16769       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16770     esac
16771     ;;
16772   esac
16773
16774   ac_dir=`$as_dirname -- "$ac_file" ||
16775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16776          X"$ac_file" : 'X\(//\)[^/]' \| \
16777          X"$ac_file" : 'X\(//\)$' \| \
16778          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16779 printf "%s\n" X"$ac_file" |
16780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16781             s//\1/
16782             q
16783           }
16784           /^X\(\/\/\)[^/].*/{
16785             s//\1/
16786             q
16787           }
16788           /^X\(\/\/\)$/{
16789             s//\1/
16790             q
16791           }
16792           /^X\(\/\).*/{
16793             s//\1/
16794             q
16795           }
16796           s/.*/./; q'`
16797   as_dir="$ac_dir"; as_fn_mkdir_p
16798   ac_builddir=.
16799
16800 case "$ac_dir" in
16801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16802 *)
16803   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16804   # A ".." for each directory in $ac_dir_suffix.
16805   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16806   case $ac_top_builddir_sub in
16807   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16808   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16809   esac ;;
16810 esac
16811 ac_abs_top_builddir=$ac_pwd
16812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16813 # for backward compatibility:
16814 ac_top_builddir=$ac_top_build_prefix
16815
16816 case $srcdir in
16817   .)  # We are building in place.
16818     ac_srcdir=.
16819     ac_top_srcdir=$ac_top_builddir_sub
16820     ac_abs_top_srcdir=$ac_pwd ;;
16821   [\\/]* | ?:[\\/]* )  # Absolute name.
16822     ac_srcdir=$srcdir$ac_dir_suffix;
16823     ac_top_srcdir=$srcdir
16824     ac_abs_top_srcdir=$srcdir ;;
16825   *) # Relative name.
16826     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16827     ac_top_srcdir=$ac_top_build_prefix$srcdir
16828     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16829 esac
16830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16831
16832
16833   case $ac_mode in
16834   :F)
16835   #
16836   # CONFIG_FILE
16837   #
16838
16839   case $INSTALL in
16840   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16841   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16842   esac
16843   ac_MKDIR_P=$MKDIR_P
16844   case $MKDIR_P in
16845   [\\/$]* | ?:[\\/]* ) ;;
16846   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16847   esac
16848 _ACEOF
16849
16850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16851 # If the template does not know about datarootdir, expand it.
16852 # FIXME: This hack should be removed a few years after 2.60.
16853 ac_datarootdir_hack=; ac_datarootdir_seen=
16854 ac_sed_dataroot='
16855 /datarootdir/ {
16856   p
16857   q
16858 }
16859 /@datadir@/p
16860 /@docdir@/p
16861 /@infodir@/p
16862 /@localedir@/p
16863 /@mandir@/p'
16864 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16865 *datarootdir*) ac_datarootdir_seen=yes;;
16866 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16868 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16869 _ACEOF
16870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16871   ac_datarootdir_hack='
16872   s&@datadir@&$datadir&g
16873   s&@docdir@&$docdir&g
16874   s&@infodir@&$infodir&g
16875   s&@localedir@&$localedir&g
16876   s&@mandir@&$mandir&g
16877   s&\\\${datarootdir}&$datarootdir&g' ;;
16878 esac
16879 _ACEOF
16880
16881 # Neutralize VPATH when `$srcdir' = `.'.
16882 # Shell code in configure.ac might set extrasub.
16883 # FIXME: do we really want to maintain this feature?
16884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16885 ac_sed_extra="$ac_vpsub
16886 $extrasub
16887 _ACEOF
16888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889 :t
16890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16891 s|@configure_input@|$ac_sed_conf_input|;t t
16892 s&@top_builddir@&$ac_top_builddir_sub&;t t
16893 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16894 s&@srcdir@&$ac_srcdir&;t t
16895 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16896 s&@top_srcdir@&$ac_top_srcdir&;t t
16897 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16898 s&@builddir@&$ac_builddir&;t t
16899 s&@abs_builddir@&$ac_abs_builddir&;t t
16900 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16901 s&@INSTALL@&$ac_INSTALL&;t t
16902 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16903 $ac_datarootdir_hack
16904 "
16905 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16906 if $ac_cs_awk_getline; then
16907   $AWK -f "$ac_tmp/subs.awk"
16908 else
16909   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16910 fi \
16911   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16912
16913 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16914   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16915   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16916       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16918 which seems to be undefined.  Please make sure it is defined" >&5
16919 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16920 which seems to be undefined.  Please make sure it is defined" >&2;}
16921
16922   rm -f "$ac_tmp/stdin"
16923   case $ac_file in
16924   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16925   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16926   esac \
16927   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16928  ;;
16929   :H)
16930   #
16931   # CONFIG_HEADER
16932   #
16933   if test x"$ac_file" != x-; then
16934     {
16935       printf "%s\n" "/* $configure_input  */" >&1 \
16936       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16937     } >"$ac_tmp/config.h" \
16938       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16939     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16940       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16941 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16942     else
16943       rm -f "$ac_file"
16944       mv "$ac_tmp/config.h" "$ac_file" \
16945         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16946     fi
16947   else
16948     printf "%s\n" "/* $configure_input  */" >&1 \
16949       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16950       || as_fn_error $? "could not create -" "$LINENO" 5
16951   fi
16952  ;;
16953
16954   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16955 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16956  ;;
16957   esac
16958
16959
16960   case $ac_file$ac_mode in
16961     "po-directories":C)
16962     for ac_file in $CONFIG_FILES; do
16963       # Support "outfile[:infile[:infile...]]"
16964       case "$ac_file" in
16965         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16966       esac
16967       # PO directories have a Makefile.in generated from Makefile.in.in.
16968       case "$ac_file" in */Makefile.in)
16969         # Adjust a relative srcdir.
16970         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16971         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16972         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16973         # In autoconf-2.13 it is called $ac_given_srcdir.
16974         # In autoconf-2.50 it is called $srcdir.
16975         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16976         case "$ac_given_srcdir" in
16977           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16978           /*) top_srcdir="$ac_given_srcdir" ;;
16979           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16980         esac
16981         # Treat a directory as a PO directory if and only if it has a
16982         # POTFILES.in file. This allows packages to have multiple PO
16983         # directories under different names or in different locations.
16984         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16985           rm -f "$ac_dir/POTFILES"
16986           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16987           gt_tab=`printf '\t'`
16988           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"
16989           POMAKEFILEDEPS="POTFILES.in"
16990           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16991           # on $ac_dir but don't depend on user-specified configuration
16992           # parameters.
16993           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16994             # The LINGUAS file contains the set of available languages.
16995             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16996               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16997             fi
16998             ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16999             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17000           else
17001             # The set of available languages was given in configure.in.
17002             ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17003           fi
17004           # Compute POFILES
17005           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17006           # Compute UPDATEPOFILES
17007           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17008           # Compute DUMMYPOFILES
17009           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17010           # Compute GMOFILES
17011           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17012           case "$ac_given_srcdir" in
17013             .) srcdirpre= ;;
17014             *) srcdirpre='$(srcdir)/' ;;
17015           esac
17016           POFILES=
17017           UPDATEPOFILES=
17018           DUMMYPOFILES=
17019           GMOFILES=
17020           for lang in $ALL_LINGUAS; do
17021             POFILES="$POFILES $srcdirpre$lang.po"
17022             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17023             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17024             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17025           done
17026           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17027           # environment variable.
17028           INST_LINGUAS=
17029           if test -n "$ALL_LINGUAS"; then
17030             for presentlang in $ALL_LINGUAS; do
17031               useit=no
17032               if test "%UNSET%" != "$LINGUAS"; then
17033                 desiredlanguages="$LINGUAS"
17034               else
17035                 desiredlanguages="$ALL_LINGUAS"
17036               fi
17037               for desiredlang in $desiredlanguages; do
17038                 # Use the presentlang catalog if desiredlang is
17039                 #   a. equal to presentlang, or
17040                 #   b. a variant of presentlang (because in this case,
17041                 #      presentlang can be used as a fallback for messages
17042                 #      which are not translated in the desiredlang catalog).
17043                 case "$desiredlang" in
17044                   "$presentlang"*) useit=yes;;
17045                 esac
17046               done
17047               if test $useit = yes; then
17048                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17049               fi
17050             done
17051           fi
17052           CATALOGS=
17053           if test -n "$INST_LINGUAS"; then
17054             for lang in $INST_LINGUAS; do
17055               CATALOGS="$CATALOGS $lang.gmo"
17056             done
17057           fi
17058           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17059           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"
17060           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17061             if test -f "$f"; then
17062               case "$f" in
17063                 *.orig | *.bak | *~) ;;
17064                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17065               esac
17066             fi
17067           done
17068         fi
17069         ;;
17070       esac
17071     done ;;
17072
17073   esac
17074 done # for ac_tag
17075
17076
17077 as_fn_exit 0
17078 _ACEOF
17079 ac_clean_files=$ac_clean_files_save
17080
17081 test $ac_write_fail = 0 ||
17082   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17083
17084
17085 # configure is writing to config.log, and then calls config.status.
17086 # config.status does its own redirection, appending to config.log.
17087 # Unfortunately, on DOS this fails, as config.log is still kept open
17088 # by configure, so config.status won't be able to write to it; its
17089 # output is simply discarded.  So we exec the FD to /dev/null,
17090 # effectively closing config.log, so it can be properly (re)opened and
17091 # appended to by config.status.  When coming back to configure, we
17092 # need to make the FD available again.
17093 if test "$no_create" != yes; then
17094   ac_cs_success=:
17095   ac_config_status_args=
17096   test "$silent" = yes &&
17097     ac_config_status_args="$ac_config_status_args --quiet"
17098   exec 5>/dev/null
17099   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17100   exec 5>>config.log
17101   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17102   # would make configure fail if this is the last instruction.
17103   $ac_cs_success || as_fn_exit 1
17104 fi
17105 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17106   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17107 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17108 fi
17109
17110 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
17111