Whamcloud - gitweb
create_inode: fix gcc -Wall warnings
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else $as_nop
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" ""        $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # Find who we are.  Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88   *[\\/]* ) as_myself=$0 ;;
89   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92   IFS=$as_save_IFS
93   case $as_dir in #(((
94     '') as_dir=./ ;;
95     */) ;;
96     *) as_dir=$as_dir/ ;;
97   esac
98     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116   # into an infinite loop, continuously re-executing ourselves.
117   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118     _as_can_reexec=no; export _as_can_reexec;
119     # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127   *v*x* | *x*v* ) as_opts=-vx ;;
128   *v* ) as_opts=-v ;;
129   *x* ) as_opts=-x ;;
130   * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137   fi
138   # We don't want this to propagate to other subprocesses.
139           { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144   emulate sh
145   NULLCMD=:
146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147   # is contrary to our usage.  Disable this feature.
148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
149   setopt NO_GLOB_SUBST
150 else \$as_nop
151   case \`(set -o) 2>/dev/null\` in #(
152   *posix*) :
153     set -o posix ;; #(
154   *) :
155      ;;
156 esac
157 fi
158 "
159   as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174   exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185   if (eval "$as_required") 2>/dev/null
186 then :
187   as_have_required=yes
188 else $as_nop
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199   IFS=$as_save_IFS
200   case $as_dir in #(((
201     '') as_dir=./ ;;
202     */) ;;
203     *) as_dir=$as_dir/ ;;
204   esac
205   as_found=:
206   case $as_dir in #(
207          /*)
208            for as_base in sh bash ksh sh5; do
209              # Try only shells that exist, to save several forks.
210              as_shell=$as_dir$as_base
211              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214   CONFIG_SHELL=$as_shell as_have_required=yes
215                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217   break 2
218 fi
219 fi
220            done;;
221        esac
222   as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232   CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237       if test "x$CONFIG_SHELL" != x
238 then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno
261 then :
262   printf "%s\n" "$0: This script requires a shell more modern than all"
263   printf "%s\n" "$0: the shells that I found on your system."
264   if test ${ZSH_VERSION+y} ; then
265     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267   else
268     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272   fi
273   exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291   { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301   return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309   set +e
310   as_fn_set_status $1
311   exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318   return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328   case $as_dir in #(
329   -*) as_dir=./$as_dir;;
330   esac
331   test -d "$as_dir" || eval $as_mkdir_p || {
332     as_dirs=
333     while :; do
334       case $as_dir in #(
335       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336       *) as_qdir=$as_dir;;
337       esac
338       as_dirs="'$as_qdir' $as_dirs"
339       as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341          X"$as_dir" : 'X\(//\)[^/]' \| \
342          X"$as_dir" : 'X\(//\)$' \| \
343          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346             s//\1/
347             q
348           }
349           /^X\(\/\/\)[^/].*/{
350             s//\1/
351             q
352           }
353           /^X\(\/\/\)$/{
354             s//\1/
355             q
356           }
357           /^X\(\/\).*/{
358             s//\1/
359             q
360           }
361           s/.*/./; q'`
362       test -d "$as_dir" && break
363     done
364     test -z "$as_dirs" || eval "mkdir $as_dirs"
365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375   test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else $as_nop
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else $as_nop
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419   return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430   as_status=$1; test $as_status -eq 0 && as_status=1
431   if test "$4"; then
432     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434   fi
435   printf "%s\n" "$as_me: error: $2" >&2
436   as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440    test "X`expr 00001 : '.*\(...\)'`" = X001; then
441   as_expr=expr
442 else
443   as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447   as_basename=basename
448 else
449   as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453   as_dirname=dirname
454 else
455   as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460          X"$0" : 'X\(//\)$' \| \
461          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463     sed '/^.*\/\([^/][^/]*\)\/*$/{
464             s//\1/
465             q
466           }
467           /^X\/\(\/\/\)$/{
468             s//\1/
469             q
470           }
471           /^X\/\(\/\).*/{
472             s//\1/
473             q
474           }
475           s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485   as_lineno_1=$LINENO as_lineno_1a=$LINENO
486   as_lineno_2=$LINENO as_lineno_2a=$LINENO
487   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
490   sed -n '
491     p
492     /[$]LINENO/=
493   ' <$as_myself |
494     sed '
495       s/[$]LINENO.*/&-/
496       t lineno
497       b
498       :lineno
499       N
500       :loop
501       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502       t loop
503       s/-\n.*//
504     ' >$as_me.lineno &&
505   chmod +x "$as_me.lineno" ||
506     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509   # already done that, so ensure we don't try to do so again and fall
510   # in an infinite loop.  This has already happened in practice.
511   _as_can_reexec=no; export _as_can_reexec
512   # Don't try to exec as it changes $[0], causing all sort of problems
513   # (the dirname of $[0] is not the place where we might find the
514   # original and so on.  Autoconf is especially sensitive to this).
515   . "./$as_me.lineno"
516   # Exit status is that of the last command.
517   exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527   case `echo 'xy\c'` in
528   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
529   xy)  ECHO_C='\c';;
530   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
531        ECHO_T=' ';;
532   esac;;
533 *)
534   ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n.  New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546   rm -f conf$$.dir/conf$$.file
547 else
548   rm -f conf$$.dir
549   mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552   if ln -s conf$$.file conf$$ 2>/dev/null; then
553     as_ln_s='ln -s'
554     # ... but there are two gotchas:
555     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557     # In both cases, we have to default to `cp -pR'.
558     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559       as_ln_s='cp -pR'
560   elif ln conf$$.file conf$$ 2>/dev/null; then
561     as_ln_s=ln
562   else
563     as_ln_s='cp -pR'
564   fi
565 else
566   as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572   as_mkdir_p='mkdir -p "$as_dir"'
573 else
574   test -d ./-p && rmdir ./-p
575   as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 ac_unique_file="version.h"
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stddef.h>
620 #ifdef HAVE_STDIO_H
621 # include <stdio.h>
622 #endif
623 #ifdef HAVE_STDLIB_H
624 # include <stdlib.h>
625 #endif
626 #ifdef HAVE_STRING_H
627 # include <string.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
637 #endif
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
640 #endif
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
643 #endif
644 #ifdef HAVE_UNISTD_H
645 # include <unistd.h>
646 #endif"
647
648 ac_header_c_list=
649 gt_needs=
650 ac_func_c_list=
651 ac_subst_vars='LTLIBOBJS
652 LIBOBJS
653 OS_IO_FILE
654 systemd_system_unit_dir
655 have_systemd
656 systemd_LIBS
657 systemd_CFLAGS
658 crond_dir
659 have_crond
660 pkg_udev_rules_dir
661 have_udev
662 udev_LIBS
663 udev_CFLAGS
664 LDFLAGS_SHLIB
665 CFLAGS_STLIB
666 CFLAGS_SHLIB
667 BUILD_LDFLAGS
668 BUILD_CFLAGS
669 INCLUDES
670 DO_TEST_SUITE
671 LDFLAGS_STATIC
672 root_sysconfdir
673 root_libdir
674 root_sbindir
675 root_bindir
676 root_prefix
677 E2SCRUB_CMT
678 UNIX_CMT
679 CYGWIN_CMT
680 LINUX_CMT
681 FUZZING_CMT
682 fuzzer_ldflags
683 fuzzer_cflags
684 have_fuzzer
685 ac_ct_CXX
686 CXXFLAGS
687 CXX
688 threadsan_ldflags
689 threadsan_cflags
690 have_threadsan
691 addrsan_ldflags
692 addrsan_cflags
693 have_addrsan
694 ubsan_ldflags
695 ubsan_cflags
696 have_ubsan
697 lto_ldflags
698 lto_cflags
699 have_lto
700 gcc_ranlib
701 gcc_ar
702 UNI_DIFF_OPTS
703 SEM_INIT_LIB
704 FUSE_CMT
705 FUSE_LIB
706 fuse3_LIBS
707 fuse3_CFLAGS
708 CLOCK_GETTIME_LIB
709 ARCHIVE_LIB
710 MAGIC_LIB
711 SOCKET_LIB
712 SIZEOF_TIME_T
713 SIZEOF_OFF_T
714 SIZEOF_LONG_LONG
715 SIZEOF_LONG
716 SIZEOF_INT
717 SIZEOF_SHORT
718 DD
719 BUILD_CC
720 MAKEINFO
721 STRIP
722 RANLIB
723 AR
724 LDCONFIG
725 PERL
726 AWK
727 CHMOD
728 RM
729 CP
730 MV
731 LN_S
732 mkdir_p
733 LN
734 ifNotGNUmake
735 ifGNUmake
736 BINARY_TYPE
737 POSUB
738 LTLIBINTL
739 LIBINTL
740 INTLLIBS
741 LTLIBICONV
742 LIBICONV
743 INTL_MACOSX_LIBS
744 XGETTEXT_EXTRA_OPTIONS
745 MSGMERGE_FOR_MSGFMT_OPTION
746 MSGMERGE
747 XGETTEXT_015
748 XGETTEXT
749 GMSGFMT_015
750 GMSGFMT
751 MSGFMT
752 GETTEXT_MACRO_VERSION
753 USE_NLS
754 MKDIR_P
755 INSTALL_DATA
756 INSTALL_SCRIPT
757 INSTALL_PROGRAM
758 SET_MAKE
759 VERSION
760 PACKAGE
761 GETTEXT_PACKAGE
762 TDB_MAN_COMMENT
763 TDB_CMT
764 UUIDD_CMT
765 PTHREAD_CFLAGS
766 PTHREAD_LIBS
767 PTHREAD_CXX
768 PTHREAD_CC
769 ax_pthread_config
770 EGREP
771 GREP
772 SED
773 E2INITRD_MAN
774 E2INITRD_PROG
775 FSCK_MAN
776 FSCK_PROG
777 DEFRAG_CMT
778 RESIZER_CMT
779 IMAGER_CMT
780 DEBUGFS_CMT
781 SUBSET_CMT
782 ALL_CMT
783 BLKID_CMT
784 DEPPROFILED_LIBBLKID
785 PROFILED_LIBBLKID
786 DEPSTATIC_LIBBLKID
787 STATIC_LIBBLKID
788 DEPLIBBLKID
789 LIBBLKID
790 UUID_CMT
791 DEPPROFILED_LIBUUID
792 PROFILED_LIBUUID
793 DEPSTATIC_LIBUUID
794 STATIC_LIBUUID
795 DEPLIBUUID
796 LIBUUID
797 PKG_CONFIG_LIBDIR
798 PKG_CONFIG_PATH
799 PKG_CONFIG
800 DEV_FEATURES_CMT
801 TEST_IO_CMT
802 PRIVATE_LIBS_CMT
803 LDFLAG_DYNAMIC
804 PROFILED_LIB_EXT
805 STATIC_LIB_EXT
806 LIB_EXT
807 PROFILE_CMT
808 BSDLIB_CMT
809 ELF_CMT
810 Q
811 ES
812 E
813 LINK_BUILD_FLAGS
814 SYMLINK_RELATIVE
815 LINK_INSTALL_FLAGS
816 MAINTAINER_CMT
817 CPP
818 RDYNAMIC
819 DLOPEN_LIB
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 E2FSPROGS_DATE
829 E2FSPROGS_PKGVER
830 E2FSPROGS_PKGREL
831 E2FSPROGS_VERSION
832 E2FSPROGS_DAY
833 E2FSPROGS_MONTH
834 E2FSPROGS_YEAR
835 OBJEXT
836 EXEEXT
837 ac_ct_CC
838 CPPFLAGS
839 LDFLAGS
840 CFLAGS
841 CC
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 runstatedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL'
881 ac_subst_files='MCONFIG
882 MAKEFILE_ELF
883 MAKEFILE_BSDLIB
884 MAKEFILE_PROFILE
885 MAKEFILE_LIBRARY
886 ASM_TYPES_HEADER
887 PUBLIC_CONFIG_HEADER'
888 ac_user_opts='
889 enable_option_checking
890 with_diet_libc
891 with_cc
892 with_ccopts
893 with_ldopts
894 with_root_prefix
895 enable_maintainer_mode
896 enable_symlink_install
897 enable_relative_symlinks
898 enable_symlink_relative_symlinks
899 enable_symlink_build
900 enable_verbose_makecmds
901 enable_elf_shlibs
902 enable_bsd_shlibs
903 enable_profile
904 enable_gcov
905 enable_hardening
906 enable_jbd_debug
907 enable_blkid_debug
908 enable_testio_debug
909 enable_developer_features
910 enable_libuuid
911 enable_libblkid
912 enable_subset
913 enable_backtrace
914 enable_debugfs
915 enable_imager
916 enable_resizer
917 enable_defrag
918 enable_fsck
919 enable_e2initrd_helper
920 enable_tls
921 with_pthread
922 enable_uuidd
923 enable_mmp
924 enable_tdb
925 enable_bmap_stats
926 enable_bmap_stats_ops
927 enable_nls
928 with_gnu_ld
929 enable_rpath
930 with_libiconv_prefix
931 with_libintl_prefix
932 enable_largefile
933 enable_fuse2fs
934 enable_lto
935 enable_ubsan
936 enable_addrsan
937 enable_threadsan
938 enable_fuzzing
939 with_multiarch
940 with_udev_rules_dir
941 with_crond_dir
942 with_systemd_unit_dir
943 '
944       ac_precious_vars='build_alias
945 host_alias
946 target_alias
947 CC
948 CFLAGS
949 LDFLAGS
950 LIBS
951 CPPFLAGS
952 CPP
953 PKG_CONFIG
954 PKG_CONFIG_PATH
955 PKG_CONFIG_LIBDIR
956 fuse3_CFLAGS
957 fuse3_LIBS
958 CXX
959 CXXFLAGS
960 CCC
961 udev_CFLAGS
962 udev_LIBS
963 systemd_CFLAGS
964 systemd_LIBS'
965
966
967 # Initialize some variables set by options.
968 ac_init_help=
969 ac_init_version=false
970 ac_unrecognized_opts=
971 ac_unrecognized_sep=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
974 cache_file=/dev/null
975 exec_prefix=NONE
976 no_create=
977 no_recursion=
978 prefix=NONE
979 program_prefix=NONE
980 program_suffix=NONE
981 program_transform_name=s,x,x,
982 silent=
983 site=
984 srcdir=
985 verbose=
986 x_includes=NONE
987 x_libraries=NONE
988
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir='${exec_prefix}/bin'
996 sbindir='${exec_prefix}/sbin'
997 libexecdir='${exec_prefix}/libexec'
998 datarootdir='${prefix}/share'
999 datadir='${datarootdir}'
1000 sysconfdir='${prefix}/etc'
1001 sharedstatedir='${prefix}/com'
1002 localstatedir='${prefix}/var'
1003 runstatedir='${localstatedir}/run'
1004 includedir='${prefix}/include'
1005 oldincludedir='/usr/include'
1006 docdir='${datarootdir}/doc/${PACKAGE}'
1007 infodir='${datarootdir}/info'
1008 htmldir='${docdir}'
1009 dvidir='${docdir}'
1010 pdfdir='${docdir}'
1011 psdir='${docdir}'
1012 libdir='${exec_prefix}/lib'
1013 localedir='${datarootdir}/locale'
1014 mandir='${datarootdir}/man'
1015
1016 ac_prev=
1017 ac_dashdash=
1018 for ac_option
1019 do
1020   # If the previous option needs an argument, assign it.
1021   if test -n "$ac_prev"; then
1022     eval $ac_prev=\$ac_option
1023     ac_prev=
1024     continue
1025   fi
1026
1027   case $ac_option in
1028   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029   *=)   ac_optarg= ;;
1030   *)    ac_optarg=yes ;;
1031   esac
1032
1033   case $ac_dashdash$ac_option in
1034   --)
1035     ac_dashdash=yes ;;
1036
1037   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038     ac_prev=bindir ;;
1039   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040     bindir=$ac_optarg ;;
1041
1042   -build | --build | --buil | --bui | --bu)
1043     ac_prev=build_alias ;;
1044   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045     build_alias=$ac_optarg ;;
1046
1047   -cache-file | --cache-file | --cache-fil | --cache-fi \
1048   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049     ac_prev=cache_file ;;
1050   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052     cache_file=$ac_optarg ;;
1053
1054   --config-cache | -C)
1055     cache_file=config.cache ;;
1056
1057   -datadir | --datadir | --datadi | --datad)
1058     ac_prev=datadir ;;
1059   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060     datadir=$ac_optarg ;;
1061
1062   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063   | --dataroo | --dataro | --datar)
1064     ac_prev=datarootdir ;;
1065   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067     datarootdir=$ac_optarg ;;
1068
1069   -disable-* | --disable-*)
1070     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1074     ac_useropt_orig=$ac_useropt
1075     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1076     case $ac_user_opts in
1077       *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081          ac_unrecognized_sep=', ';;
1082     esac
1083     eval enable_$ac_useropt=no ;;
1084
1085   -docdir | --docdir | --docdi | --doc | --do)
1086     ac_prev=docdir ;;
1087   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088     docdir=$ac_optarg ;;
1089
1090   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091     ac_prev=dvidir ;;
1092   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093     dvidir=$ac_optarg ;;
1094
1095   -enable-* | --enable-*)
1096     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1100     ac_useropt_orig=$ac_useropt
1101     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1102     case $ac_user_opts in
1103       *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107          ac_unrecognized_sep=', ';;
1108     esac
1109     eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113   | --exec | --exe | --ex)
1114     ac_prev=exec_prefix ;;
1115   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117   | --exec=* | --exe=* | --ex=*)
1118     exec_prefix=$ac_optarg ;;
1119
1120   -gas | --gas | --ga | --g)
1121     # Obsolete; use --with-gas.
1122     with_gas=yes ;;
1123
1124   -help | --help | --hel | --he | -h)
1125     ac_init_help=long ;;
1126   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127     ac_init_help=recursive ;;
1128   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129     ac_init_help=short ;;
1130
1131   -host | --host | --hos | --ho)
1132     ac_prev=host_alias ;;
1133   -host=* | --host=* | --hos=* | --ho=*)
1134     host_alias=$ac_optarg ;;
1135
1136   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137     ac_prev=htmldir ;;
1138   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139   | --ht=*)
1140     htmldir=$ac_optarg ;;
1141
1142   -includedir | --includedir | --includedi | --included | --include \
1143   | --includ | --inclu | --incl | --inc)
1144     ac_prev=includedir ;;
1145   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146   | --includ=* | --inclu=* | --incl=* | --inc=*)
1147     includedir=$ac_optarg ;;
1148
1149   -infodir | --infodir | --infodi | --infod | --info | --inf)
1150     ac_prev=infodir ;;
1151   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152     infodir=$ac_optarg ;;
1153
1154   -libdir | --libdir | --libdi | --libd)
1155     ac_prev=libdir ;;
1156   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157     libdir=$ac_optarg ;;
1158
1159   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160   | --libexe | --libex | --libe)
1161     ac_prev=libexecdir ;;
1162   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163   | --libexe=* | --libex=* | --libe=*)
1164     libexecdir=$ac_optarg ;;
1165
1166   -localedir | --localedir | --localedi | --localed | --locale)
1167     ac_prev=localedir ;;
1168   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169     localedir=$ac_optarg ;;
1170
1171   -localstatedir | --localstatedir | --localstatedi | --localstated \
1172   | --localstate | --localstat | --localsta | --localst | --locals)
1173     ac_prev=localstatedir ;;
1174   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176     localstatedir=$ac_optarg ;;
1177
1178   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179     ac_prev=mandir ;;
1180   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181     mandir=$ac_optarg ;;
1182
1183   -nfp | --nfp | --nf)
1184     # Obsolete; use --without-fp.
1185     with_fp=no ;;
1186
1187   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188   | --no-cr | --no-c | -n)
1189     no_create=yes ;;
1190
1191   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193     no_recursion=yes ;;
1194
1195   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197   | --oldin | --oldi | --old | --ol | --o)
1198     ac_prev=oldincludedir ;;
1199   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202     oldincludedir=$ac_optarg ;;
1203
1204   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205     ac_prev=prefix ;;
1206   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207     prefix=$ac_optarg ;;
1208
1209   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210   | --program-pre | --program-pr | --program-p)
1211     ac_prev=program_prefix ;;
1212   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214     program_prefix=$ac_optarg ;;
1215
1216   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217   | --program-suf | --program-su | --program-s)
1218     ac_prev=program_suffix ;;
1219   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221     program_suffix=$ac_optarg ;;
1222
1223   -program-transform-name | --program-transform-name \
1224   | --program-transform-nam | --program-transform-na \
1225   | --program-transform-n | --program-transform- \
1226   | --program-transform | --program-transfor \
1227   | --program-transfo | --program-transf \
1228   | --program-trans | --program-tran \
1229   | --progr-tra | --program-tr | --program-t)
1230     ac_prev=program_transform_name ;;
1231   -program-transform-name=* | --program-transform-name=* \
1232   | --program-transform-nam=* | --program-transform-na=* \
1233   | --program-transform-n=* | --program-transform-=* \
1234   | --program-transform=* | --program-transfor=* \
1235   | --program-transfo=* | --program-transf=* \
1236   | --program-trans=* | --program-tran=* \
1237   | --progr-tra=* | --program-tr=* | --program-t=*)
1238     program_transform_name=$ac_optarg ;;
1239
1240   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241     ac_prev=pdfdir ;;
1242   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243     pdfdir=$ac_optarg ;;
1244
1245   -psdir | --psdir | --psdi | --psd | --ps)
1246     ac_prev=psdir ;;
1247   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248     psdir=$ac_optarg ;;
1249
1250   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251   | -silent | --silent | --silen | --sile | --sil)
1252     silent=yes ;;
1253
1254   -runstatedir | --runstatedir | --runstatedi | --runstated \
1255   | --runstate | --runstat | --runsta | --runst | --runs \
1256   | --run | --ru | --r)
1257     ac_prev=runstatedir ;;
1258   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1259   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1260   | --run=* | --ru=* | --r=*)
1261     runstatedir=$ac_optarg ;;
1262
1263   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264     ac_prev=sbindir ;;
1265   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1266   | --sbi=* | --sb=*)
1267     sbindir=$ac_optarg ;;
1268
1269   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1270   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1271   | --sharedst | --shareds | --shared | --share | --shar \
1272   | --sha | --sh)
1273     ac_prev=sharedstatedir ;;
1274   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1275   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1276   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1277   | --sha=* | --sh=*)
1278     sharedstatedir=$ac_optarg ;;
1279
1280   -site | --site | --sit)
1281     ac_prev=site ;;
1282   -site=* | --site=* | --sit=*)
1283     site=$ac_optarg ;;
1284
1285   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286     ac_prev=srcdir ;;
1287   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1288     srcdir=$ac_optarg ;;
1289
1290   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1291   | --syscon | --sysco | --sysc | --sys | --sy)
1292     ac_prev=sysconfdir ;;
1293   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1294   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1295     sysconfdir=$ac_optarg ;;
1296
1297   -target | --target | --targe | --targ | --tar | --ta | --t)
1298     ac_prev=target_alias ;;
1299   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1300     target_alias=$ac_optarg ;;
1301
1302   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1303     verbose=yes ;;
1304
1305   -version | --version | --versio | --versi | --vers | -V)
1306     ac_init_version=: ;;
1307
1308   -with-* | --with-*)
1309     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312       as_fn_error $? "invalid package name: \`$ac_useropt'"
1313     ac_useropt_orig=$ac_useropt
1314     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1315     case $ac_user_opts in
1316       *"
1317 "with_$ac_useropt"
1318 "*) ;;
1319       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1320          ac_unrecognized_sep=', ';;
1321     esac
1322     eval with_$ac_useropt=\$ac_optarg ;;
1323
1324   -without-* | --without-*)
1325     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1326     # Reject names that are not valid shell variable names.
1327     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328       as_fn_error $? "invalid package name: \`$ac_useropt'"
1329     ac_useropt_orig=$ac_useropt
1330     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1331     case $ac_user_opts in
1332       *"
1333 "with_$ac_useropt"
1334 "*) ;;
1335       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1336          ac_unrecognized_sep=', ';;
1337     esac
1338     eval with_$ac_useropt=no ;;
1339
1340   --x)
1341     # Obsolete; use --with-x.
1342     with_x=yes ;;
1343
1344   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1345   | --x-incl | --x-inc | --x-in | --x-i)
1346     ac_prev=x_includes ;;
1347   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1348   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1349     x_includes=$ac_optarg ;;
1350
1351   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1352   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1353     ac_prev=x_libraries ;;
1354   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1355   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1356     x_libraries=$ac_optarg ;;
1357
1358   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1359 Try \`$0 --help' for more information"
1360     ;;
1361
1362   *=*)
1363     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1364     # Reject names that are not valid shell variable names.
1365     case $ac_envvar in #(
1366       '' | [0-9]* | *[!_$as_cr_alnum]* )
1367       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1368     esac
1369     eval $ac_envvar=\$ac_optarg
1370     export $ac_envvar ;;
1371
1372   *)
1373     # FIXME: should be removed in autoconf 3.0.
1374     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1375     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1376       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1377     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1378     ;;
1379
1380   esac
1381 done
1382
1383 if test -n "$ac_prev"; then
1384   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1385   as_fn_error $? "missing argument to $ac_option"
1386 fi
1387
1388 if test -n "$ac_unrecognized_opts"; then
1389   case $enable_option_checking in
1390     no) ;;
1391     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1392     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393   esac
1394 fi
1395
1396 # Check all directory arguments for consistency.
1397 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398                 datadir sysconfdir sharedstatedir localstatedir includedir \
1399                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400                 libdir localedir mandir runstatedir
1401 do
1402   eval ac_val=\$$ac_var
1403   # Remove trailing slashes.
1404   case $ac_val in
1405     */ )
1406       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407       eval $ac_var=\$ac_val;;
1408   esac
1409   # Be sure to have absolute directory names.
1410   case $ac_val in
1411     [\\/$]* | ?:[\\/]* )  continue;;
1412     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413   esac
1414   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1415 done
1416
1417 # There might be people who depend on the old broken behavior: `$host'
1418 # used to hold the argument of --host etc.
1419 # FIXME: To remove some day.
1420 build=$build_alias
1421 host=$host_alias
1422 target=$target_alias
1423
1424 # FIXME: To remove some day.
1425 if test "x$host_alias" != x; then
1426   if test "x$build_alias" = x; then
1427     cross_compiling=maybe
1428   elif test "x$build_alias" != "x$host_alias"; then
1429     cross_compiling=yes
1430   fi
1431 fi
1432
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435
1436 test "$silent" = yes && exec 6>/dev/null
1437
1438
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442   as_fn_error $? "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444   as_fn_error $? "pwd does not report name of working directory"
1445
1446
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449   ac_srcdir_defaulted=yes
1450   # Try the directory containing this script, then the parent directory.
1451   ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453          X"$as_myself" : 'X\(//\)[^/]' \| \
1454          X"$as_myself" : 'X\(//\)$' \| \
1455          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 printf "%s\n" X"$as_myself" |
1457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458             s//\1/
1459             q
1460           }
1461           /^X\(\/\/\)[^/].*/{
1462             s//\1/
1463             q
1464           }
1465           /^X\(\/\/\)$/{
1466             s//\1/
1467             q
1468           }
1469           /^X\(\/\).*/{
1470             s//\1/
1471             q
1472           }
1473           s/.*/./; q'`
1474   srcdir=$ac_confdir
1475   if test ! -r "$srcdir/$ac_unique_file"; then
1476     srcdir=..
1477   fi
1478 else
1479   ac_srcdir_defaulted=no
1480 fi
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1484 fi
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1488         pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491   srcdir=.
1492 fi
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501   eval ac_env_${ac_var}_value=\$${ac_var}
1502   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1505
1506 #
1507 # Report the --help message.
1508 #
1509 if test "$ac_init_help" = "long"; then
1510   # Omit some internal or obsolete options to make the list less imposing.
1511   # This message is too long to be a string in the A/UX 3.1 sh.
1512   cat <<_ACEOF
1513 \`configure' configures this package to adapt to many kinds of systems.
1514
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE.  See below for descriptions of some of the useful variables.
1519
1520 Defaults for the options are specified in brackets.
1521
1522 Configuration:
1523   -h, --help              display this help and exit
1524       --help=short        display options specific to this package
1525       --help=recursive    display the short help of all the included packages
1526   -V, --version           display version information and exit
1527   -q, --quiet, --silent   do not print \`checking ...' messages
1528       --cache-file=FILE   cache test results in FILE [disabled]
1529   -C, --config-cache      alias for \`--cache-file=config.cache'
1530   -n, --no-create         do not create output files
1531       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1532
1533 Installation directories:
1534   --prefix=PREFIX         install architecture-independent files in PREFIX
1535                           [$ac_default_prefix]
1536   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1537                           [PREFIX]
1538
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1543
1544 For better control, use the options below.
1545
1546 Fine tuning of the installation directories:
1547   --bindir=DIR            user executables [EPREFIX/bin]
1548   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1549   --libexecdir=DIR        program executables [EPREFIX/libexec]
1550   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1551   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1552   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1553   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1554   --libdir=DIR            object code libraries [EPREFIX/lib]
1555   --includedir=DIR        C header files [PREFIX/include]
1556   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1557   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1558   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1559   --infodir=DIR           info documentation [DATAROOTDIR/info]
1560   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1561   --mandir=DIR            man documentation [DATAROOTDIR/man]
1562   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1563   --htmldir=DIR           html documentation [DOCDIR]
1564   --dvidir=DIR            dvi documentation [DOCDIR]
1565   --pdfdir=DIR            pdf documentation [DOCDIR]
1566   --psdir=DIR             ps documentation [DOCDIR]
1567 _ACEOF
1568
1569   cat <<\_ACEOF
1570
1571 System types:
1572   --build=BUILD     configure for building on BUILD [guessed]
1573   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1574 _ACEOF
1575 fi
1576
1577 if test -n "$ac_init_help"; then
1578
1579   cat <<\_ACEOF
1580
1581 Optional Features:
1582   --disable-option-checking  ignore unrecognized --enable/--with options
1583   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1584   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1585   --enable-maintainer-mode
1586                           enable makefile rules useful for maintainers
1587   --enable-symlink-install
1588                           use symlinks when installing instead of hard links
1589   --enable-relative-symlinks
1590                           use relative symlinks when installing
1591
1592   --enable-symlink-build  use symlinks while building instead of hard links
1593   --enable-verbose-makecmds
1594                           enable verbose make command output
1595   --enable-elf-shlibs     select ELF shared libraries
1596   --enable-bsd-shlibs     select BSD shared libraries
1597   --enable-profile        build profiling libraries
1598   --enable-gcov           build for coverage testing using gcov
1599   --enable-hardening      build for coverage testing using gcov
1600   --enable-jbd-debug      enable journal debugging
1601   --enable-blkid-debug    enable blkid debugging
1602   --disable-testio-debug  disable the use of the test I/O manager for
1603                           debugging
1604   --enable-developer-features
1605                           enable features for use by ext4 developers
1606   --enable-libuuid        build and use private uuid library
1607   --enable-libblkid       build and use private blkid library
1608   --enable-subset         enable subset-only build
1609   --disable-backtrace     disable use backtrace
1610   --disable-debugfs       disable support of debugfs program
1611   --disable-imager        disable support of e2image program
1612   --disable-resizer       disable support of e2resize program
1613   --disable-defrag        disable support of e4defrag program
1614   --enable-fsck           build fsck wrapper program
1615   --enable-e2initrd-helper
1616                           build e2initrd-helper program
1617   --disable-tls           disable use of thread local support
1618   --disable-uuidd         disable building the uuid daemon
1619   --disable-mmp           disable support mmp, Multi Mount Protection
1620   --disable-tdb           disable tdb support
1621   --disable-bmap-stats    disable collection of bitmap stats
1622   --enable-bmap-stats-ops enable collection of additional bitmap stats
1623   --disable-nls           do not use Native Language Support
1624   --disable-rpath         do not hardcode runtime library paths
1625   --disable-largefile     omit support for large files
1626   --disable-fuse2fs       do not build fuse2fs
1627   --enable-lto            enable link time optimization
1628   --enable-ubsan          enable undefined behavior sanitizer
1629   --enable-addrsan        enable address sanitizer
1630   --enable-threadsan      enable thread sanitizer
1631   --enable-fuzzing        enable fuzzing sanitizer
1632
1633 Optional Packages:
1634   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1635   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1636   --with-diet-libc        use diet libc
1637   --with-cc               no longer supported, use CC= instead
1638   --with-ccopts           no longer supported, use CFLAGS= instead
1639   --with-ldopts           no longer supported, use LDFLAGS= instead
1640   --with-root-prefix=PREFIX
1641                           override prefix variable for files to be placed in
1642                           the root
1643   --without-pthread       disable use of pthread support
1644   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1645   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1646   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1647   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1648   --without-libintl-prefix     don't search for libintl in includedir and libdir
1649   --with-multiarch=ARCH   specify the multiarch triplet
1650   --with-udev-rules-dir[=DIR]
1651                           Install udev rules into DIR.
1652   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1653   --with-systemd-unit-dir[=DIR]
1654                           Install systemd system units into DIR.
1655
1656 Some influential environment variables:
1657   CC          C compiler command
1658   CFLAGS      C compiler flags
1659   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1660               nonstandard directory <lib dir>
1661   LIBS        libraries to pass to the linker, e.g. -l<library>
1662   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1663               you have headers in a nonstandard directory <include dir>
1664   CPP         C preprocessor
1665   PKG_CONFIG  path to pkg-config utility
1666   PKG_CONFIG_PATH
1667               directories to add to pkg-config's search path
1668   PKG_CONFIG_LIBDIR
1669               path overriding pkg-config's built-in search path
1670   CXX         C++ compiler command
1671   CXXFLAGS    C++ compiler flags
1672   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1673   udev_LIBS   linker flags for udev, overriding pkg-config
1674   systemd_CFLAGS
1675               C compiler flags for systemd, overriding pkg-config
1676   systemd_LIBS
1677               linker flags for systemd, overriding pkg-config
1678
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1681
1682 Report bugs to the package provider.
1683 _ACEOF
1684 ac_status=$?
1685 fi
1686
1687 if test "$ac_init_help" = "recursive"; then
1688   # If there are subdirs, report their specific --help.
1689   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690     test -d "$ac_dir" ||
1691       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692       continue
1693     ac_builddir=.
1694
1695 case "$ac_dir" in
1696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *)
1698   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1699   # A ".." for each directory in $ac_dir_suffix.
1700   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701   case $ac_top_builddir_sub in
1702   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704   esac ;;
1705 esac
1706 ac_abs_top_builddir=$ac_pwd
1707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir=$ac_top_build_prefix
1710
1711 case $srcdir in
1712   .)  # We are building in place.
1713     ac_srcdir=.
1714     ac_top_srcdir=$ac_top_builddir_sub
1715     ac_abs_top_srcdir=$ac_pwd ;;
1716   [\\/]* | ?:[\\/]* )  # Absolute name.
1717     ac_srcdir=$srcdir$ac_dir_suffix;
1718     ac_top_srcdir=$srcdir
1719     ac_abs_top_srcdir=$srcdir ;;
1720   *) # Relative name.
1721     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722     ac_top_srcdir=$ac_top_build_prefix$srcdir
1723     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 esac
1725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726
1727     cd "$ac_dir" || { ac_status=$?; continue; }
1728     # Check for configure.gnu first; this name is used for a wrapper for
1729     # Metaconfig's "Configure" on case-insensitive file systems.
1730     if test -f "$ac_srcdir/configure.gnu"; then
1731       echo &&
1732       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733     elif test -f "$ac_srcdir/configure"; then
1734       echo &&
1735       $SHELL "$ac_srcdir/configure" --help=recursive
1736     else
1737       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738     fi || ac_status=$?
1739     cd "$ac_pwd" || { ac_status=$?; break; }
1740   done
1741 fi
1742
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1745   cat <<\_ACEOF
1746 configure
1747 generated by GNU Autoconf 2.71
1748
1749 Copyright (C) 2021 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1752 _ACEOF
1753   exit
1754 fi
1755
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1759
1760 # ac_fn_c_try_compile LINENO
1761 # --------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_compile ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   rm -f conftest.$ac_objext conftest.beam
1767   if { { ac_try="$ac_compile"
1768 case "(($ac_try" in
1769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770   *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 printf "%s\n" "$ac_try_echo"; } >&5
1774   (eval "$ac_compile") 2>conftest.err
1775   ac_status=$?
1776   if test -s conftest.err; then
1777     grep -v '^ *+' conftest.err >conftest.er1
1778     cat conftest.er1 >&5
1779     mv -f conftest.er1 conftest.err
1780   fi
1781   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && {
1783          test -z "$ac_c_werror_flag" ||
1784          test ! -s conftest.err
1785        } && test -s conftest.$ac_objext
1786 then :
1787   ac_retval=0
1788 else $as_nop
1789   printf "%s\n" "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792         ac_retval=1
1793 fi
1794   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795   as_fn_set_status $ac_retval
1796
1797 } # ac_fn_c_try_compile
1798
1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_c_check_header_compile ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 printf %s "checking for $2... " >&6; }
1808 if eval test \${$3+y}
1809 then :
1810   printf %s "(cached) " >&6
1811 else $as_nop
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 $4
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"
1818 then :
1819   eval "$3=yes"
1820 else $as_nop
1821   eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 printf "%s\n" "$ac_res" >&6; }
1828   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830 } # ac_fn_c_check_header_compile
1831
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1839   if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 printf "%s\n" "$ac_try_echo"; } >&5
1846   (eval "$ac_link") 2>conftest.err
1847   ac_status=$?
1848   if test -s conftest.err; then
1849     grep -v '^ *+' conftest.err >conftest.er1
1850     cat conftest.er1 >&5
1851     mv -f conftest.er1 conftest.err
1852   fi
1853   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854   test $ac_status = 0; } && {
1855          test -z "$ac_c_werror_flag" ||
1856          test ! -s conftest.err
1857        } && test -s conftest$ac_exeext && {
1858          test "$cross_compiling" = yes ||
1859          test -x conftest$ac_exeext
1860        }
1861 then :
1862   ac_retval=0
1863 else $as_nop
1864   printf "%s\n" "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867         ac_retval=1
1868 fi
1869   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871   # interfere with the next link command; also delete a directory that is
1872   # left behind by Apple's compiler.  We do this before executing the actions.
1873   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875   as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_link
1878
1879 # ac_fn_c_try_cpp LINENO
1880 # ----------------------
1881 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_c_try_cpp ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   if { { ac_try="$ac_cpp conftest.$ac_ext"
1886 case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 printf "%s\n" "$ac_try_echo"; } >&5
1892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1893   ac_status=$?
1894   if test -s conftest.err; then
1895     grep -v '^ *+' conftest.err >conftest.er1
1896     cat conftest.er1 >&5
1897     mv -f conftest.er1 conftest.err
1898   fi
1899   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900   test $ac_status = 0; } > conftest.i && {
1901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1902          test ! -s conftest.err
1903        }
1904 then :
1905   ac_retval=0
1906 else $as_nop
1907   printf "%s\n" "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910     ac_retval=1
1911 fi
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913   as_fn_set_status $ac_retval
1914
1915 } # ac_fn_c_try_cpp
1916
1917 # ac_fn_c_try_run LINENO
1918 # ----------------------
1919 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1920 # executables *can* be run.
1921 ac_fn_c_try_run ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 printf "%s\n" "$ac_try_echo"; } >&5
1931   (eval "$ac_link") 2>&5
1932   ac_status=$?
1933   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935   { { case "(($ac_try" in
1936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937   *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 printf "%s\n" "$ac_try_echo"; } >&5
1941   (eval "$ac_try") 2>&5
1942   ac_status=$?
1943   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944   test $ac_status = 0; }; }
1945 then :
1946   ac_retval=0
1947 else $as_nop
1948   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1949        printf "%s\n" "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952        ac_retval=$ac_status
1953 fi
1954   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956   as_fn_set_status $ac_retval
1957
1958 } # ac_fn_c_try_run
1959
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 printf %s "checking for $2... " >&6; }
1968 if eval test \${$3+y}
1969 then :
1970   printf %s "(cached) " >&6
1971 else $as_nop
1972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h.  */
1974 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1976 #define $2 innocuous_$2
1977
1978 /* System header to define __stub macros and hopefully few prototypes,
1979    which can conflict with char $2 (); below.  */
1980
1981 #include <limits.h>
1982 #undef $2
1983
1984 /* Override any GCC internal prototype to avoid an error.
1985    Use char because int might match the return type of a GCC
1986    builtin and then its argument prototype would still apply.  */
1987 #ifdef __cplusplus
1988 extern "C"
1989 #endif
1990 char $2 ();
1991 /* The GNU C library defines this for functions which it implements
1992     to always fail with ENOSYS.  Some functions are actually named
1993     something starting with __ and the normal name is an alias.  */
1994 #if defined __stub_$2 || defined __stub___$2
1995 choke me
1996 #endif
1997
1998 int
1999 main (void)
2000 {
2001 return $2 ();
2002   ;
2003   return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_link "$LINENO"
2007 then :
2008   eval "$3=yes"
2009 else $as_nop
2010   eval "$3=no"
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2013     conftest$ac_exeext conftest.$ac_ext
2014 fi
2015 eval ac_res=\$$3
2016                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 printf "%s\n" "$ac_res" >&6; }
2018   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
2020 } # ac_fn_c_check_func
2021
2022 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2023 # ----------------------------------------------------
2024 # Tries to find if the field MEMBER exists in type AGGR, after including
2025 # INCLUDES, setting cache variable VAR accordingly.
2026 ac_fn_c_check_member ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2030 printf %s "checking for $2.$3... " >&6; }
2031 if eval test \${$4+y}
2032 then :
2033   printf %s "(cached) " >&6
2034 else $as_nop
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $5
2038 int
2039 main (void)
2040 {
2041 static $2 ac_aggr;
2042 if (ac_aggr.$3)
2043 return 0;
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"
2049 then :
2050   eval "$4=yes"
2051 else $as_nop
2052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $5
2055 int
2056 main (void)
2057 {
2058 static $2 ac_aggr;
2059 if (sizeof ac_aggr.$3)
2060 return 0;
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"
2066 then :
2067   eval "$4=yes"
2068 else $as_nop
2069   eval "$4=no"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2074 fi
2075 eval ac_res=\$$4
2076                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 printf "%s\n" "$ac_res" >&6; }
2078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080 } # ac_fn_c_check_member
2081
2082 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2083 # -------------------------------------------
2084 # Tests whether TYPE exists after having included INCLUDES, setting cache
2085 # variable VAR accordingly.
2086 ac_fn_c_check_type ()
2087 {
2088   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 printf %s "checking for $2... " >&6; }
2091 if eval test \${$3+y}
2092 then :
2093   printf %s "(cached) " >&6
2094 else $as_nop
2095   eval "$3=no"
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main (void)
2101 {
2102 if (sizeof ($2))
2103          return 0;
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"
2109 then :
2110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h.  */
2112 $4
2113 int
2114 main (void)
2115 {
2116 if (sizeof (($2)))
2117             return 0;
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"
2123 then :
2124
2125 else $as_nop
2126   eval "$3=yes"
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 fi
2132 eval ac_res=\$$3
2133                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 printf "%s\n" "$ac_res" >&6; }
2135   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
2137 } # ac_fn_c_check_type
2138
2139 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2140 # ------------------------------------------------------------------
2141 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2142 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2143 ac_fn_check_decl ()
2144 {
2145   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146   as_decl_name=`echo $2|sed 's/ *(.*//'`
2147   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2148 printf %s "checking whether $as_decl_name is declared... " >&6; }
2149 if eval test \${$3+y}
2150 then :
2151   printf %s "(cached) " >&6
2152 else $as_nop
2153   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2154   eval ac_save_FLAGS=\$$6
2155   as_fn_append $6 " $5"
2156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h.  */
2158 $4
2159 int
2160 main (void)
2161 {
2162 #ifndef $as_decl_name
2163 #ifdef __cplusplus
2164   (void) $as_decl_use;
2165 #else
2166   (void) $as_decl_name;
2167 #endif
2168 #endif
2169
2170   ;
2171   return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"
2175 then :
2176   eval "$3=yes"
2177 else $as_nop
2178   eval "$3=no"
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2181   eval $6=\$ac_save_FLAGS
2182
2183 fi
2184 eval ac_res=\$$3
2185                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 printf "%s\n" "$ac_res" >&6; }
2187   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188
2189 } # ac_fn_check_decl
2190
2191 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2192 # --------------------------------------------
2193 # Tries to find the compile-time value of EXPR in a program that includes
2194 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2195 # computed
2196 ac_fn_c_compute_int ()
2197 {
2198   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199   if test "$cross_compiling" = yes; then
2200     # Depending upon the size, compute the lo and hi bounds.
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h.  */
2203 $4
2204 int
2205 main (void)
2206 {
2207 static int test_array [1 - 2 * !(($2) >= 0)];
2208 test_array [0] = 0;
2209 return test_array [0];
2210
2211   ;
2212   return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_compile "$LINENO"
2216 then :
2217   ac_lo=0 ac_mid=0
2218   while :; do
2219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h.  */
2221 $4
2222 int
2223 main (void)
2224 {
2225 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2226 test_array [0] = 0;
2227 return test_array [0];
2228
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_compile "$LINENO"
2234 then :
2235   ac_hi=$ac_mid; break
2236 else $as_nop
2237   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2238                         if test $ac_lo -le $ac_mid; then
2239                           ac_lo= ac_hi=
2240                           break
2241                         fi
2242                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2245   done
2246 else $as_nop
2247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $4
2250 int
2251 main (void)
2252 {
2253 static int test_array [1 - 2 * !(($2) < 0)];
2254 test_array [0] = 0;
2255 return test_array [0];
2256
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"
2262 then :
2263   ac_hi=-1 ac_mid=-1
2264   while :; do
2265     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h.  */
2267 $4
2268 int
2269 main (void)
2270 {
2271 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2272 test_array [0] = 0;
2273 return test_array [0];
2274
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"
2280 then :
2281   ac_lo=$ac_mid; break
2282 else $as_nop
2283   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2284                         if test $ac_mid -le $ac_hi; then
2285                           ac_lo= ac_hi=
2286                           break
2287                         fi
2288                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2291   done
2292 else $as_nop
2293   ac_lo= ac_hi=
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2298 # Binary search between lo and hi bounds.
2299 while test "x$ac_lo" != "x$ac_hi"; do
2300   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h.  */
2303 $4
2304 int
2305 main (void)
2306 {
2307 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2308 test_array [0] = 0;
2309 return test_array [0];
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"
2316 then :
2317   ac_hi=$ac_mid
2318 else $as_nop
2319   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2322 done
2323 case $ac_lo in #((
2324 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2325 '') ac_retval=1 ;;
2326 esac
2327   else
2328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h.  */
2330 $4
2331 static long int longval (void) { return $2; }
2332 static unsigned long int ulongval (void) { return $2; }
2333 #include <stdio.h>
2334 #include <stdlib.h>
2335 int
2336 main (void)
2337 {
2338
2339   FILE *f = fopen ("conftest.val", "w");
2340   if (! f)
2341     return 1;
2342   if (($2) < 0)
2343     {
2344       long int i = longval ();
2345       if (i != ($2))
2346         return 1;
2347       fprintf (f, "%ld", i);
2348     }
2349   else
2350     {
2351       unsigned long int i = ulongval ();
2352       if (i != ($2))
2353         return 1;
2354       fprintf (f, "%lu", i);
2355     }
2356   /* Do not output a trailing newline, as this causes \r\n confusion
2357      on some platforms.  */
2358   return ferror (f) || fclose (f) != 0;
2359
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 if ac_fn_c_try_run "$LINENO"
2365 then :
2366   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2367 else $as_nop
2368   ac_retval=1
2369 fi
2370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2371   conftest.$ac_objext conftest.beam conftest.$ac_ext
2372 rm -f conftest.val
2373
2374   fi
2375   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2376   as_fn_set_status $ac_retval
2377
2378 } # ac_fn_c_compute_int
2379
2380 # ac_fn_cxx_try_compile LINENO
2381 # ----------------------------
2382 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2383 ac_fn_cxx_try_compile ()
2384 {
2385   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386   rm -f conftest.$ac_objext conftest.beam
2387   if { { ac_try="$ac_compile"
2388 case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 printf "%s\n" "$ac_try_echo"; } >&5
2394   (eval "$ac_compile") 2>conftest.err
2395   ac_status=$?
2396   if test -s conftest.err; then
2397     grep -v '^ *+' conftest.err >conftest.er1
2398     cat conftest.er1 >&5
2399     mv -f conftest.er1 conftest.err
2400   fi
2401   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402   test $ac_status = 0; } && {
2403          test -z "$ac_cxx_werror_flag" ||
2404          test ! -s conftest.err
2405        } && test -s conftest.$ac_objext
2406 then :
2407   ac_retval=0
2408 else $as_nop
2409   printf "%s\n" "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412         ac_retval=1
2413 fi
2414   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415   as_fn_set_status $ac_retval
2416
2417 } # ac_fn_cxx_try_compile
2418 ac_configure_args_raw=
2419 for ac_arg
2420 do
2421   case $ac_arg in
2422   *\'*)
2423     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424   esac
2425   as_fn_append ac_configure_args_raw " '$ac_arg'"
2426 done
2427
2428 case $ac_configure_args_raw in
2429   *$as_nl*)
2430     ac_safe_unquote= ;;
2431   *)
2432     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2433     ac_unsafe_a="$ac_unsafe_z#~"
2434     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2435     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2436 esac
2437
2438 cat >config.log <<_ACEOF
2439 This file contains any messages produced by compilers while
2440 running configure, to aid debugging if configure makes a mistake.
2441
2442 It was created by $as_me, which was
2443 generated by GNU Autoconf 2.71.  Invocation command line was
2444
2445   $ $0$ac_configure_args_raw
2446
2447 _ACEOF
2448 exec 5>>config.log
2449 {
2450 cat <<_ASUNAME
2451 ## --------- ##
2452 ## Platform. ##
2453 ## --------- ##
2454
2455 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2456 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2457 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2458 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2459 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2460
2461 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2462 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2463
2464 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2465 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2466 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2467 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2468 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2469 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2470 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2471
2472 _ASUNAME
2473
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   case $as_dir in #(((
2479     '') as_dir=./ ;;
2480     */) ;;
2481     *) as_dir=$as_dir/ ;;
2482   esac
2483     printf "%s\n" "PATH: $as_dir"
2484   done
2485 IFS=$as_save_IFS
2486
2487 } >&5
2488
2489 cat >&5 <<_ACEOF
2490
2491
2492 ## ----------- ##
2493 ## Core tests. ##
2494 ## ----------- ##
2495
2496 _ACEOF
2497
2498
2499 # Keep a trace of the command line.
2500 # Strip out --no-create and --no-recursion so they do not pile up.
2501 # Strip out --silent because we don't want to record it for future runs.
2502 # Also quote any args containing shell meta-characters.
2503 # Make two passes to allow for proper duplicate-argument suppression.
2504 ac_configure_args=
2505 ac_configure_args0=
2506 ac_configure_args1=
2507 ac_must_keep_next=false
2508 for ac_pass in 1 2
2509 do
2510   for ac_arg
2511   do
2512     case $ac_arg in
2513     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2514     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2515     | -silent | --silent | --silen | --sile | --sil)
2516       continue ;;
2517     *\'*)
2518       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2519     esac
2520     case $ac_pass in
2521     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2522     2)
2523       as_fn_append ac_configure_args1 " '$ac_arg'"
2524       if test $ac_must_keep_next = true; then
2525         ac_must_keep_next=false # Got value, back to normal.
2526       else
2527         case $ac_arg in
2528           *=* | --config-cache | -C | -disable-* | --disable-* \
2529           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2530           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2531           | -with-* | --with-* | -without-* | --without-* | --x)
2532             case "$ac_configure_args0 " in
2533               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2534             esac
2535             ;;
2536           -* ) ac_must_keep_next=true ;;
2537         esac
2538       fi
2539       as_fn_append ac_configure_args " '$ac_arg'"
2540       ;;
2541     esac
2542   done
2543 done
2544 { ac_configure_args0=; unset ac_configure_args0;}
2545 { ac_configure_args1=; unset ac_configure_args1;}
2546
2547 # When interrupted or exit'd, cleanup temporary files, and complete
2548 # config.log.  We remove comments because anyway the quotes in there
2549 # would cause problems or look ugly.
2550 # WARNING: Use '\'' to represent an apostrophe within the trap.
2551 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2552 trap 'exit_status=$?
2553   # Sanitize IFS.
2554   IFS=" ""      $as_nl"
2555   # Save into config.log some information that might help in debugging.
2556   {
2557     echo
2558
2559     printf "%s\n" "## ---------------- ##
2560 ## Cache variables. ##
2561 ## ---------------- ##"
2562     echo
2563     # The following way of writing the cache mishandles newlines in values,
2564 (
2565   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2566     eval ac_val=\$$ac_var
2567     case $ac_val in #(
2568     *${as_nl}*)
2569       case $ac_var in #(
2570       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2571 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2572       esac
2573       case $ac_var in #(
2574       _ | IFS | as_nl) ;; #(
2575       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2576       *) { eval $ac_var=; unset $ac_var;} ;;
2577       esac ;;
2578     esac
2579   done
2580   (set) 2>&1 |
2581     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2582     *${as_nl}ac_space=\ *)
2583       sed -n \
2584         "s/'\''/'\''\\\\'\'''\''/g;
2585           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2586       ;; #(
2587     *)
2588       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2589       ;;
2590     esac |
2591     sort
2592 )
2593     echo
2594
2595     printf "%s\n" "## ----------------- ##
2596 ## Output variables. ##
2597 ## ----------------- ##"
2598     echo
2599     for ac_var in $ac_subst_vars
2600     do
2601       eval ac_val=\$$ac_var
2602       case $ac_val in
2603       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2604       esac
2605       printf "%s\n" "$ac_var='\''$ac_val'\''"
2606     done | sort
2607     echo
2608
2609     if test -n "$ac_subst_files"; then
2610       printf "%s\n" "## ------------------- ##
2611 ## File substitutions. ##
2612 ## ------------------- ##"
2613       echo
2614       for ac_var in $ac_subst_files
2615       do
2616         eval ac_val=\$$ac_var
2617         case $ac_val in
2618         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2619         esac
2620         printf "%s\n" "$ac_var='\''$ac_val'\''"
2621       done | sort
2622       echo
2623     fi
2624
2625     if test -s confdefs.h; then
2626       printf "%s\n" "## ----------- ##
2627 ## confdefs.h. ##
2628 ## ----------- ##"
2629       echo
2630       cat confdefs.h
2631       echo
2632     fi
2633     test "$ac_signal" != 0 &&
2634       printf "%s\n" "$as_me: caught signal $ac_signal"
2635     printf "%s\n" "$as_me: exit $exit_status"
2636   } >&5
2637   rm -f core *.core core.conftest.* &&
2638     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2639     exit $exit_status
2640 ' 0
2641 for ac_signal in 1 2 13 15; do
2642   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2643 done
2644 ac_signal=0
2645
2646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2647 rm -f -r conftest* confdefs.h
2648
2649 printf "%s\n" "/* confdefs.h */" > confdefs.h
2650
2651 # Predefined preprocessor variables.
2652
2653 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2654
2655 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2656
2657 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2658
2659 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2660
2661 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2662
2663 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2664
2665
2666 # Let the site file select an alternate cache file if it wants to.
2667 # Prefer an explicitly selected file to automatically selected ones.
2668 if test -n "$CONFIG_SITE"; then
2669   ac_site_files="$CONFIG_SITE"
2670 elif test "x$prefix" != xNONE; then
2671   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2672 else
2673   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2674 fi
2675
2676 for ac_site_file in $ac_site_files
2677 do
2678   case $ac_site_file in #(
2679   */*) :
2680      ;; #(
2681   *) :
2682     ac_site_file=./$ac_site_file ;;
2683 esac
2684   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2685     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2686 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2687     sed 's/^/| /' "$ac_site_file" >&5
2688     . "$ac_site_file" \
2689       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2690 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2691 as_fn_error $? "failed to load site script $ac_site_file
2692 See \`config.log' for more details" "$LINENO" 5; }
2693   fi
2694 done
2695
2696 if test -r "$cache_file"; then
2697   # Some versions of bash will fail to source /dev/null (special files
2698   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2699   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2700     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2701 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2702     case $cache_file in
2703       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2704       *)                      . "./$cache_file";;
2705     esac
2706   fi
2707 else
2708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2709 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2710   >$cache_file
2711 fi
2712
2713 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2714 # Test code for whether the C compiler supports C89 (global declarations)
2715 ac_c_conftest_c89_globals='
2716 /* Does the compiler advertise C89 conformance?
2717    Do not test the value of __STDC__, because some compilers set it to 0
2718    while being otherwise adequately conformant. */
2719 #if !defined __STDC__
2720 # error "Compiler does not advertise C89 conformance"
2721 #endif
2722
2723 #include <stddef.h>
2724 #include <stdarg.h>
2725 struct stat;
2726 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2727 struct buf { int x; };
2728 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2730      char **p;
2731      int i;
2732 {
2733   return p[i];
2734 }
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2736 {
2737   char *s;
2738   va_list v;
2739   va_start (v,p);
2740   s = g (p, va_arg (v,int));
2741   va_end (v);
2742   return s;
2743 }
2744
2745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2746    function prototypes and stuff, but not \xHH hex character constants.
2747    These do not provoke an error unfortunately, instead are silently treated
2748    as an "x".  The following induces an error, until -std is added to get
2749    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2750    array size at least.  It is necessary to write \x00 == 0 to get something
2751    that is true only with -std.  */
2752 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2753
2754 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2755    inside strings and character constants.  */
2756 #define FOO(x) '\''x'\''
2757 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2758
2759 int test (int i, double x);
2760 struct s1 {int (*f) (int a);};
2761 struct s2 {int (*f) (double a);};
2762 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2763                int, int);'
2764
2765 # Test code for whether the C compiler supports C89 (body of main).
2766 ac_c_conftest_c89_main='
2767 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2768 '
2769
2770 # Test code for whether the C compiler supports C99 (global declarations)
2771 ac_c_conftest_c99_globals='
2772 // Does the compiler advertise C99 conformance?
2773 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2774 # error "Compiler does not advertise C99 conformance"
2775 #endif
2776
2777 #include <stdbool.h>
2778 extern int puts (const char *);
2779 extern int printf (const char *, ...);
2780 extern int dprintf (int, const char *, ...);
2781 extern void *malloc (size_t);
2782
2783 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2784 // dprintf is used instead of fprintf to avoid needing to declare
2785 // FILE and stderr.
2786 #define debug(...) dprintf (2, __VA_ARGS__)
2787 #define showlist(...) puts (#__VA_ARGS__)
2788 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2789 static void
2790 test_varargs_macros (void)
2791 {
2792   int x = 1234;
2793   int y = 5678;
2794   debug ("Flag");
2795   debug ("X = %d\n", x);
2796   showlist (The first, second, and third items.);
2797   report (x>y, "x is %d but y is %d", x, y);
2798 }
2799
2800 // Check long long types.
2801 #define BIG64 18446744073709551615ull
2802 #define BIG32 4294967295ul
2803 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2804 #if !BIG_OK
2805   #error "your preprocessor is broken"
2806 #endif
2807 #if BIG_OK
2808 #else
2809   #error "your preprocessor is broken"
2810 #endif
2811 static long long int bignum = -9223372036854775807LL;
2812 static unsigned long long int ubignum = BIG64;
2813
2814 struct incomplete_array
2815 {
2816   int datasize;
2817   double data[];
2818 };
2819
2820 struct named_init {
2821   int number;
2822   const wchar_t *name;
2823   double average;
2824 };
2825
2826 typedef const char *ccp;
2827
2828 static inline int
2829 test_restrict (ccp restrict text)
2830 {
2831   // See if C++-style comments work.
2832   // Iterate through items via the restricted pointer.
2833   // Also check for declarations in for loops.
2834   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2835     continue;
2836   return 0;
2837 }
2838
2839 // Check varargs and va_copy.
2840 static bool
2841 test_varargs (const char *format, ...)
2842 {
2843   va_list args;
2844   va_start (args, format);
2845   va_list args_copy;
2846   va_copy (args_copy, args);
2847
2848   const char *str = "";
2849   int number = 0;
2850   float fnumber = 0;
2851
2852   while (*format)
2853     {
2854       switch (*format++)
2855         {
2856         case '\''s'\'': // string
2857           str = va_arg (args_copy, const char *);
2858           break;
2859         case '\''d'\'': // int
2860           number = va_arg (args_copy, int);
2861           break;
2862         case '\''f'\'': // float
2863           fnumber = va_arg (args_copy, double);
2864           break;
2865         default:
2866           break;
2867         }
2868     }
2869   va_end (args_copy);
2870   va_end (args);
2871
2872   return *str && number && fnumber;
2873 }
2874 '
2875
2876 # Test code for whether the C compiler supports C99 (body of main).
2877 ac_c_conftest_c99_main='
2878   // Check bool.
2879   _Bool success = false;
2880   success |= (argc != 0);
2881
2882   // Check restrict.
2883   if (test_restrict ("String literal") == 0)
2884     success = true;
2885   char *restrict newvar = "Another string";
2886
2887   // Check varargs.
2888   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2889   test_varargs_macros ();
2890
2891   // Check flexible array members.
2892   struct incomplete_array *ia =
2893     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2894   ia->datasize = 10;
2895   for (int i = 0; i < ia->datasize; ++i)
2896     ia->data[i] = i * 1.234;
2897
2898   // Check named initializers.
2899   struct named_init ni = {
2900     .number = 34,
2901     .name = L"Test wide string",
2902     .average = 543.34343,
2903   };
2904
2905   ni.number = 58;
2906
2907   int dynamic_array[ni.number];
2908   dynamic_array[0] = argv[0][0];
2909   dynamic_array[ni.number - 1] = 543;
2910
2911   // work around unused variable warnings
2912   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2913          || dynamic_array[ni.number - 1] != 543);
2914 '
2915
2916 # Test code for whether the C compiler supports C11 (global declarations)
2917 ac_c_conftest_c11_globals='
2918 // Does the compiler advertise C11 conformance?
2919 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2920 # error "Compiler does not advertise C11 conformance"
2921 #endif
2922
2923 // Check _Alignas.
2924 char _Alignas (double) aligned_as_double;
2925 char _Alignas (0) no_special_alignment;
2926 extern char aligned_as_int;
2927 char _Alignas (0) _Alignas (int) aligned_as_int;
2928
2929 // Check _Alignof.
2930 enum
2931 {
2932   int_alignment = _Alignof (int),
2933   int_array_alignment = _Alignof (int[100]),
2934   char_alignment = _Alignof (char)
2935 };
2936 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2937
2938 // Check _Noreturn.
2939 int _Noreturn does_not_return (void) { for (;;) continue; }
2940
2941 // Check _Static_assert.
2942 struct test_static_assert
2943 {
2944   int x;
2945   _Static_assert (sizeof (int) <= sizeof (long int),
2946                   "_Static_assert does not work in struct");
2947   long int y;
2948 };
2949
2950 // Check UTF-8 literals.
2951 #define u8 syntax error!
2952 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2953
2954 // Check duplicate typedefs.
2955 typedef long *long_ptr;
2956 typedef long int *long_ptr;
2957 typedef long_ptr long_ptr;
2958
2959 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2960 struct anonymous
2961 {
2962   union {
2963     struct { int i; int j; };
2964     struct { int k; long int l; } w;
2965   };
2966   int m;
2967 } v1;
2968 '
2969
2970 # Test code for whether the C compiler supports C11 (body of main).
2971 ac_c_conftest_c11_main='
2972   _Static_assert ((offsetof (struct anonymous, i)
2973                    == offsetof (struct anonymous, w.k)),
2974                   "Anonymous union alignment botch");
2975   v1.i = 2;
2976   v1.w.k = 5;
2977   ok |= v1.i != 5;
2978 '
2979
2980 # Test code for whether the C compiler supports C11 (complete).
2981 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2982 ${ac_c_conftest_c99_globals}
2983 ${ac_c_conftest_c11_globals}
2984
2985 int
2986 main (int argc, char **argv)
2987 {
2988   int ok = 0;
2989   ${ac_c_conftest_c89_main}
2990   ${ac_c_conftest_c99_main}
2991   ${ac_c_conftest_c11_main}
2992   return ok;
2993 }
2994 "
2995
2996 # Test code for whether the C compiler supports C99 (complete).
2997 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2998 ${ac_c_conftest_c99_globals}
2999
3000 int
3001 main (int argc, char **argv)
3002 {
3003   int ok = 0;
3004   ${ac_c_conftest_c89_main}
3005   ${ac_c_conftest_c99_main}
3006   return ok;
3007 }
3008 "
3009
3010 # Test code for whether the C compiler supports C89 (complete).
3011 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3012
3013 int
3014 main (int argc, char **argv)
3015 {
3016   int ok = 0;
3017   ${ac_c_conftest_c89_main}
3018   return ok;
3019 }
3020 "
3021
3022 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3023 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3024 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3025 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3026 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3027 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3028 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3029 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3030 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3031 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3032 gt_needs="$gt_needs "
3033 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3034 # Test code for whether the C++ compiler supports C++98 (global declarations)
3035 ac_cxx_conftest_cxx98_globals='
3036 // Does the compiler advertise C++98 conformance?
3037 #if !defined __cplusplus || __cplusplus < 199711L
3038 # error "Compiler does not advertise C++98 conformance"
3039 #endif
3040
3041 // These inclusions are to reject old compilers that
3042 // lack the unsuffixed header files.
3043 #include <cstdlib>
3044 #include <exception>
3045
3046 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3047 extern void assert (int);
3048 namespace std {
3049   extern int strcmp (const char *, const char *);
3050 }
3051
3052 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3053 using std::exception;
3054 using std::strcmp;
3055
3056 namespace {
3057
3058 void test_exception_syntax()
3059 {
3060   try {
3061     throw "test";
3062   } catch (const char *s) {
3063     // Extra parentheses suppress a warning when building autoconf itself,
3064     // due to lint rules shared with more typical C programs.
3065     assert (!(strcmp) (s, "test"));
3066   }
3067 }
3068
3069 template <typename T> struct test_template
3070 {
3071   T const val;
3072   explicit test_template(T t) : val(t) {}
3073   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3074 };
3075
3076 } // anonymous namespace
3077 '
3078
3079 # Test code for whether the C++ compiler supports C++98 (body of main)
3080 ac_cxx_conftest_cxx98_main='
3081   assert (argc);
3082   assert (! argv[0]);
3083 {
3084   test_exception_syntax ();
3085   test_template<double> tt (2.0);
3086   assert (tt.add (4) == 6.0);
3087   assert (true && !false);
3088 }
3089 '
3090
3091 # Test code for whether the C++ compiler supports C++11 (global declarations)
3092 ac_cxx_conftest_cxx11_globals='
3093 // Does the compiler advertise C++ 2011 conformance?
3094 #if !defined __cplusplus || __cplusplus < 201103L
3095 # error "Compiler does not advertise C++11 conformance"
3096 #endif
3097
3098 namespace cxx11test
3099 {
3100   constexpr int get_val() { return 20; }
3101
3102   struct testinit
3103   {
3104     int i;
3105     double d;
3106   };
3107
3108   class delegate
3109   {
3110   public:
3111     delegate(int n) : n(n) {}
3112     delegate(): delegate(2354) {}
3113
3114     virtual int getval() { return this->n; };
3115   protected:
3116     int n;
3117   };
3118
3119   class overridden : public delegate
3120   {
3121   public:
3122     overridden(int n): delegate(n) {}
3123     virtual int getval() override final { return this->n * 2; }
3124   };
3125
3126   class nocopy
3127   {
3128   public:
3129     nocopy(int i): i(i) {}
3130     nocopy() = default;
3131     nocopy(const nocopy&) = delete;
3132     nocopy & operator=(const nocopy&) = delete;
3133   private:
3134     int i;
3135   };
3136
3137   // for testing lambda expressions
3138   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3139   {
3140     return f(v);
3141   }
3142
3143   // for testing variadic templates and trailing return types
3144   template <typename V> auto sum(V first) -> V
3145   {
3146     return first;
3147   }
3148   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3149   {
3150     return first + sum(rest...);
3151   }
3152 }
3153 '
3154
3155 # Test code for whether the C++ compiler supports C++11 (body of main)
3156 ac_cxx_conftest_cxx11_main='
3157 {
3158   // Test auto and decltype
3159   auto a1 = 6538;
3160   auto a2 = 48573953.4;
3161   auto a3 = "String literal";
3162
3163   int total = 0;
3164   for (auto i = a3; *i; ++i) { total += *i; }
3165
3166   decltype(a2) a4 = 34895.034;
3167 }
3168 {
3169   // Test constexpr
3170   short sa[cxx11test::get_val()] = { 0 };
3171 }
3172 {
3173   // Test initializer lists
3174   cxx11test::testinit il = { 4323, 435234.23544 };
3175 }
3176 {
3177   // Test range-based for
3178   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3179                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3180   for (auto &x : array) { x += 23; }
3181 }
3182 {
3183   // Test lambda expressions
3184   using cxx11test::eval;
3185   assert (eval ([](int x) { return x*2; }, 21) == 42);
3186   double d = 2.0;
3187   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3188   assert (d == 5.0);
3189   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3190   assert (d == 5.0);
3191 }
3192 {
3193   // Test use of variadic templates
3194   using cxx11test::sum;
3195   auto a = sum(1);
3196   auto b = sum(1, 2);
3197   auto c = sum(1.0, 2.0, 3.0);
3198 }
3199 {
3200   // Test constructor delegation
3201   cxx11test::delegate d1;
3202   cxx11test::delegate d2();
3203   cxx11test::delegate d3(45);
3204 }
3205 {
3206   // Test override and final
3207   cxx11test::overridden o1(55464);
3208 }
3209 {
3210   // Test nullptr
3211   char *c = nullptr;
3212 }
3213 {
3214   // Test template brackets
3215   test_template<::test_template<int>> v(test_template<int>(12));
3216 }
3217 {
3218   // Unicode literals
3219   char const *utf8 = u8"UTF-8 string \u2500";
3220   char16_t const *utf16 = u"UTF-8 string \u2500";
3221   char32_t const *utf32 = U"UTF-32 string \u2500";
3222 }
3223 '
3224
3225 # Test code for whether the C compiler supports C++11 (complete).
3226 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3227 ${ac_cxx_conftest_cxx11_globals}
3228
3229 int
3230 main (int argc, char **argv)
3231 {
3232   int ok = 0;
3233   ${ac_cxx_conftest_cxx98_main}
3234   ${ac_cxx_conftest_cxx11_main}
3235   return ok;
3236 }
3237 "
3238
3239 # Test code for whether the C compiler supports C++98 (complete).
3240 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3241 int
3242 main (int argc, char **argv)
3243 {
3244   int ok = 0;
3245   ${ac_cxx_conftest_cxx98_main}
3246   return ok;
3247 }
3248 "
3249
3250
3251 # Auxiliary files required by this configure script.
3252 ac_aux_files="config.rpath install-sh config.guess config.sub"
3253
3254 # Locations in which to look for auxiliary files.
3255 ac_aux_dir_candidates="${srcdir}/config"
3256
3257 # Search for a directory containing all of the required auxiliary files,
3258 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3259 # If we don't find one directory that contains all the files we need,
3260 # we report the set of missing files from the *first* directory in
3261 # $ac_aux_dir_candidates and give up.
3262 ac_missing_aux_files=""
3263 ac_first_candidate=:
3264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 as_found=false
3267 for as_dir in $ac_aux_dir_candidates
3268 do
3269   IFS=$as_save_IFS
3270   case $as_dir in #(((
3271     '') as_dir=./ ;;
3272     */) ;;
3273     *) as_dir=$as_dir/ ;;
3274   esac
3275   as_found=:
3276
3277   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3278   ac_aux_dir_found=yes
3279   ac_install_sh=
3280   for ac_aux in $ac_aux_files
3281   do
3282     # As a special case, if "install-sh" is required, that requirement
3283     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3284     # and $ac_install_sh is set appropriately for whichever one is found.
3285     if test x"$ac_aux" = x"install-sh"
3286     then
3287       if test -f "${as_dir}install-sh"; then
3288         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3289         ac_install_sh="${as_dir}install-sh -c"
3290       elif test -f "${as_dir}install.sh"; then
3291         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3292         ac_install_sh="${as_dir}install.sh -c"
3293       elif test -f "${as_dir}shtool"; then
3294         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3295         ac_install_sh="${as_dir}shtool install -c"
3296       else
3297         ac_aux_dir_found=no
3298         if $ac_first_candidate; then
3299           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3300         else
3301           break
3302         fi
3303       fi
3304     else
3305       if test -f "${as_dir}${ac_aux}"; then
3306         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3307       else
3308         ac_aux_dir_found=no
3309         if $ac_first_candidate; then
3310           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3311         else
3312           break
3313         fi
3314       fi
3315     fi
3316   done
3317   if test "$ac_aux_dir_found" = yes; then
3318     ac_aux_dir="$as_dir"
3319     break
3320   fi
3321   ac_first_candidate=false
3322
3323   as_found=false
3324 done
3325 IFS=$as_save_IFS
3326 if $as_found
3327 then :
3328
3329 else $as_nop
3330   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3331 fi
3332
3333
3334 # These three variables are undocumented and unsupported,
3335 # and are intended to be withdrawn in a future Autoconf release.
3336 # They can cause serious problems if a builder's source tree is in a directory
3337 # whose full name contains unusual characters.
3338 if test -f "${ac_aux_dir}config.guess"; then
3339   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3340 fi
3341 if test -f "${ac_aux_dir}config.sub"; then
3342   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3343 fi
3344 if test -f "$ac_aux_dir/configure"; then
3345   ac_configure="$SHELL ${ac_aux_dir}configure"
3346 fi
3347
3348 # Check that the precious variables saved in the cache have kept the same
3349 # value.
3350 ac_cache_corrupted=false
3351 for ac_var in $ac_precious_vars; do
3352   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3353   eval ac_new_set=\$ac_env_${ac_var}_set
3354   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3355   eval ac_new_val=\$ac_env_${ac_var}_value
3356   case $ac_old_set,$ac_new_set in
3357     set,)
3358       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3359 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3360       ac_cache_corrupted=: ;;
3361     ,set)
3362       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3363 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3364       ac_cache_corrupted=: ;;
3365     ,);;
3366     *)
3367       if test "x$ac_old_val" != "x$ac_new_val"; then
3368         # differences in whitespace do not lead to failure.
3369         ac_old_val_w=`echo x $ac_old_val`
3370         ac_new_val_w=`echo x $ac_new_val`
3371         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3372           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3373 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3374           ac_cache_corrupted=:
3375         else
3376           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3377 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3378           eval $ac_var=\$ac_old_val
3379         fi
3380         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3381 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3382         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3383 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3384       fi;;
3385   esac
3386   # Pass precious variables to config.status.
3387   if test "$ac_new_set" = set; then
3388     case $ac_new_val in
3389     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3390     *) ac_arg=$ac_var=$ac_new_val ;;
3391     esac
3392     case " $ac_configure_args " in
3393       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3394       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3395     esac
3396   fi
3397 done
3398 if $ac_cache_corrupted; then
3399   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3401   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3402 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3403   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3404             and start over" "$LINENO" 5
3405 fi
3406 ## -------------------- ##
3407 ## Main body of script. ##
3408 ## -------------------- ##
3409
3410 ac_ext=c
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416
3417
3418
3419
3420 ac_config_headers="$ac_config_headers lib/config.h"
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432 ac_ext=c
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437 if test -n "$ac_tool_prefix"; then
3438   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 printf %s "checking for $ac_word... " >&6; }
3442 if test ${ac_cv_prog_CC+y}
3443 then :
3444   printf %s "(cached) " >&6
3445 else $as_nop
3446   if test -n "$CC"; then
3447   ac_cv_prog_CC="$CC" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452   IFS=$as_save_IFS
3453   case $as_dir in #(((
3454     '') as_dir=./ ;;
3455     */) ;;
3456     *) as_dir=$as_dir/ ;;
3457   esac
3458     for ac_exec_ext in '' $ac_executable_extensions; do
3459   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3460     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3461     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3462     break 2
3463   fi
3464 done
3465   done
3466 IFS=$as_save_IFS
3467
3468 fi
3469 fi
3470 CC=$ac_cv_prog_CC
3471 if test -n "$CC"; then
3472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 printf "%s\n" "$CC" >&6; }
3474 else
3475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 printf "%s\n" "no" >&6; }
3477 fi
3478
3479
3480 fi
3481 if test -z "$ac_cv_prog_CC"; then
3482   ac_ct_CC=$CC
3483   # Extract the first word of "gcc", so it can be a program name with args.
3484 set dummy gcc; ac_word=$2
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 printf %s "checking for $ac_word... " >&6; }
3487 if test ${ac_cv_prog_ac_ct_CC+y}
3488 then :
3489   printf %s "(cached) " >&6
3490 else $as_nop
3491   if test -n "$ac_ct_CC"; then
3492   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497   IFS=$as_save_IFS
3498   case $as_dir in #(((
3499     '') as_dir=./ ;;
3500     */) ;;
3501     *) as_dir=$as_dir/ ;;
3502   esac
3503     for ac_exec_ext in '' $ac_executable_extensions; do
3504   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3505     ac_cv_prog_ac_ct_CC="gcc"
3506     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3507     break 2
3508   fi
3509 done
3510   done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516 if test -n "$ac_ct_CC"; then
3517   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518 printf "%s\n" "$ac_ct_CC" >&6; }
3519 else
3520   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 printf "%s\n" "no" >&6; }
3522 fi
3523
3524   if test "x$ac_ct_CC" = x; then
3525     CC=""
3526   else
3527     case $cross_compiling:$ac_tool_warned in
3528 yes:)
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3530 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3531 ac_tool_warned=yes ;;
3532 esac
3533     CC=$ac_ct_CC
3534   fi
3535 else
3536   CC="$ac_cv_prog_CC"
3537 fi
3538
3539 if test -z "$CC"; then
3540           if test -n "$ac_tool_prefix"; then
3541     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3542 set dummy ${ac_tool_prefix}cc; ac_word=$2
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 printf %s "checking for $ac_word... " >&6; }
3545 if test ${ac_cv_prog_CC+y}
3546 then :
3547   printf %s "(cached) " >&6
3548 else $as_nop
3549   if test -n "$CC"; then
3550   ac_cv_prog_CC="$CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555   IFS=$as_save_IFS
3556   case $as_dir in #(((
3557     '') as_dir=./ ;;
3558     */) ;;
3559     *) as_dir=$as_dir/ ;;
3560   esac
3561     for ac_exec_ext in '' $ac_executable_extensions; do
3562   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3563     ac_cv_prog_CC="${ac_tool_prefix}cc"
3564     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568   done
3569 IFS=$as_save_IFS
3570
3571 fi
3572 fi
3573 CC=$ac_cv_prog_CC
3574 if test -n "$CC"; then
3575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 printf "%s\n" "$CC" >&6; }
3577 else
3578   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 printf "%s\n" "no" >&6; }
3580 fi
3581
3582
3583   fi
3584 fi
3585 if test -z "$CC"; then
3586   # Extract the first word of "cc", so it can be a program name with args.
3587 set dummy cc; ac_word=$2
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 printf %s "checking for $ac_word... " >&6; }
3590 if test ${ac_cv_prog_CC+y}
3591 then :
3592   printf %s "(cached) " >&6
3593 else $as_nop
3594   if test -n "$CC"; then
3595   ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597   ac_prog_rejected=no
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   case $as_dir in #(((
3603     '') as_dir=./ ;;
3604     */) ;;
3605     *) as_dir=$as_dir/ ;;
3606   esac
3607     for ac_exec_ext in '' $ac_executable_extensions; do
3608   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610        ac_prog_rejected=yes
3611        continue
3612      fi
3613     ac_cv_prog_CC="cc"
3614     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3615     break 2
3616   fi
3617 done
3618   done
3619 IFS=$as_save_IFS
3620
3621 if test $ac_prog_rejected = yes; then
3622   # We found a bogon in the path, so make sure we never use it.
3623   set dummy $ac_cv_prog_CC
3624   shift
3625   if test $# != 0; then
3626     # We chose a different compiler from the bogus one.
3627     # However, it has the same basename, so the bogon will be chosen
3628     # first if we set CC to just the basename; use the full file name.
3629     shift
3630     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3631   fi
3632 fi
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 printf "%s\n" "$CC" >&6; }
3639 else
3640   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 printf "%s\n" "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 if test -z "$CC"; then
3647   if test -n "$ac_tool_prefix"; then
3648   for ac_prog in cl.exe
3649   do
3650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 printf %s "checking for $ac_word... " >&6; }
3654 if test ${ac_cv_prog_CC+y}
3655 then :
3656   printf %s "(cached) " >&6
3657 else $as_nop
3658   if test -n "$CC"; then
3659   ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   case $as_dir in #(((
3666     '') as_dir=./ ;;
3667     */) ;;
3668     *) as_dir=$as_dir/ ;;
3669   esac
3670     for ac_exec_ext in '' $ac_executable_extensions; do
3671   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3673     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674     break 2
3675   fi
3676 done
3677   done
3678 IFS=$as_save_IFS
3679
3680 fi
3681 fi
3682 CC=$ac_cv_prog_CC
3683 if test -n "$CC"; then
3684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 printf "%s\n" "$CC" >&6; }
3686 else
3687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 printf "%s\n" "no" >&6; }
3689 fi
3690
3691
3692     test -n "$CC" && break
3693   done
3694 fi
3695 if test -z "$CC"; then
3696   ac_ct_CC=$CC
3697   for ac_prog in cl.exe
3698 do
3699   # Extract the first word of "$ac_prog", so it can be a program name with args.
3700 set dummy $ac_prog; ac_word=$2
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 printf %s "checking for $ac_word... " >&6; }
3703 if test ${ac_cv_prog_ac_ct_CC+y}
3704 then :
3705   printf %s "(cached) " >&6
3706 else $as_nop
3707   if test -n "$ac_ct_CC"; then
3708   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   case $as_dir in #(((
3715     '') as_dir=./ ;;
3716     */) ;;
3717     *) as_dir=$as_dir/ ;;
3718   esac
3719     for ac_exec_ext in '' $ac_executable_extensions; do
3720   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3721     ac_cv_prog_ac_ct_CC="$ac_prog"
3722     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3723     break 2
3724   fi
3725 done
3726   done
3727 IFS=$as_save_IFS
3728
3729 fi
3730 fi
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3734 printf "%s\n" "$ac_ct_CC" >&6; }
3735 else
3736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 printf "%s\n" "no" >&6; }
3738 fi
3739
3740
3741   test -n "$ac_ct_CC" && break
3742 done
3743
3744   if test "x$ac_ct_CC" = x; then
3745     CC=""
3746   else
3747     case $cross_compiling:$ac_tool_warned in
3748 yes:)
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753     CC=$ac_ct_CC
3754   fi
3755 fi
3756
3757 fi
3758 if test -z "$CC"; then
3759   if test -n "$ac_tool_prefix"; then
3760   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}clang; ac_word=$2
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 printf %s "checking for $ac_word... " >&6; }
3764 if test ${ac_cv_prog_CC+y}
3765 then :
3766   printf %s "(cached) " >&6
3767 else $as_nop
3768   if test -n "$CC"; then
3769   ac_cv_prog_CC="$CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774   IFS=$as_save_IFS
3775   case $as_dir in #(((
3776     '') as_dir=./ ;;
3777     */) ;;
3778     *) as_dir=$as_dir/ ;;
3779   esac
3780     for ac_exec_ext in '' $ac_executable_extensions; do
3781   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3782     ac_cv_prog_CC="${ac_tool_prefix}clang"
3783     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3784     break 2
3785   fi
3786 done
3787   done
3788 IFS=$as_save_IFS
3789
3790 fi
3791 fi
3792 CC=$ac_cv_prog_CC
3793 if test -n "$CC"; then
3794   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3795 printf "%s\n" "$CC" >&6; }
3796 else
3797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 printf "%s\n" "no" >&6; }
3799 fi
3800
3801
3802 fi
3803 if test -z "$ac_cv_prog_CC"; then
3804   ac_ct_CC=$CC
3805   # Extract the first word of "clang", so it can be a program name with args.
3806 set dummy clang; ac_word=$2
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 printf %s "checking for $ac_word... " >&6; }
3809 if test ${ac_cv_prog_ac_ct_CC+y}
3810 then :
3811   printf %s "(cached) " >&6
3812 else $as_nop
3813   if test -n "$ac_ct_CC"; then
3814   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819   IFS=$as_save_IFS
3820   case $as_dir in #(((
3821     '') as_dir=./ ;;
3822     */) ;;
3823     *) as_dir=$as_dir/ ;;
3824   esac
3825     for ac_exec_ext in '' $ac_executable_extensions; do
3826   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3827     ac_cv_prog_ac_ct_CC="clang"
3828     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832   done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 printf "%s\n" "$ac_ct_CC" >&6; }
3841 else
3842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 printf "%s\n" "no" >&6; }
3844 fi
3845
3846   if test "x$ac_ct_CC" = x; then
3847     CC=""
3848   else
3849     case $cross_compiling:$ac_tool_warned in
3850 yes:)
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned=yes ;;
3854 esac
3855     CC=$ac_ct_CC
3856   fi
3857 else
3858   CC="$ac_cv_prog_CC"
3859 fi
3860
3861 fi
3862
3863
3864 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "no acceptable C compiler found in \$PATH
3867 See \`config.log' for more details" "$LINENO" 5; }
3868
3869 # Provide some information about the compiler.
3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3871 set X $ac_compile
3872 ac_compiler=$2
3873 for ac_option in --version -v -V -qversion -version; do
3874   { { ac_try="$ac_compiler $ac_option >&5"
3875 case "(($ac_try" in
3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877   *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 printf "%s\n" "$ac_try_echo"; } >&5
3881   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3882   ac_status=$?
3883   if test -s conftest.err; then
3884     sed '10a\
3885 ... rest of stderr output deleted ...
3886          10q' conftest.err >conftest.er1
3887     cat conftest.er1 >&5
3888   fi
3889   rm -f conftest.er1 conftest.err
3890   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891   test $ac_status = 0; }
3892 done
3893
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h.  */
3896
3897 int
3898 main (void)
3899 {
3900
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 ac_clean_files_save=$ac_clean_files
3906 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3907 # Try to create an executable without -o first, disregard a.out.
3908 # It will help us diagnose broken compilers, and finding out an intuition
3909 # of exeext.
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 printf %s "checking whether the C compiler works... " >&6; }
3912 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3913
3914 # The possible output files:
3915 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3916
3917 ac_rmfiles=
3918 for ac_file in $ac_files
3919 do
3920   case $ac_file in
3921     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3922     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3923   esac
3924 done
3925 rm -f $ac_rmfiles
3926
3927 if { { ac_try="$ac_link_default"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 printf "%s\n" "$ac_try_echo"; } >&5
3934   (eval "$ac_link_default") 2>&5
3935   ac_status=$?
3936   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937   test $ac_status = 0; }
3938 then :
3939   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3940 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3941 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3942 # so that the user can short-circuit this test for compilers unknown to
3943 # Autoconf.
3944 for ac_file in $ac_files ''
3945 do
3946   test -f "$ac_file" || continue
3947   case $ac_file in
3948     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3949         ;;
3950     [ab].out )
3951         # We found the default executable, but exeext='' is most
3952         # certainly right.
3953         break;;
3954     *.* )
3955         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3956         then :; else
3957            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958         fi
3959         # We set ac_cv_exeext here because the later test for it is not
3960         # safe: cross compilers may not add the suffix if given an `-o'
3961         # argument, so we may need to know it at that point already.
3962         # Even if this section looks crufty: it has the advantage of
3963         # actually working.
3964         break;;
3965     * )
3966         break;;
3967   esac
3968 done
3969 test "$ac_cv_exeext" = no && ac_cv_exeext=
3970
3971 else $as_nop
3972   ac_file=''
3973 fi
3974 if test -z "$ac_file"
3975 then :
3976   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 printf "%s\n" "no" >&6; }
3978 printf "%s\n" "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error 77 "C compiler cannot create executables
3984 See \`config.log' for more details" "$LINENO" 5; }
3985 else $as_nop
3986   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 printf "%s\n" "yes" >&6; }
3988 fi
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990 printf %s "checking for C compiler default output file name... " >&6; }
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992 printf "%s\n" "$ac_file" >&6; }
3993 ac_exeext=$ac_cv_exeext
3994
3995 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3996 ac_clean_files=$ac_clean_files_save
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 printf %s "checking for suffix of executables... " >&6; }
3999 if { { ac_try="$ac_link"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 printf "%s\n" "$ac_try_echo"; } >&5
4006   (eval "$ac_link") 2>&5
4007   ac_status=$?
4008   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009   test $ac_status = 0; }
4010 then :
4011   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4012 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4013 # work properly (i.e., refer to `conftest.exe'), while it won't with
4014 # `rm'.
4015 for ac_file in conftest.exe conftest conftest.*; do
4016   test -f "$ac_file" || continue
4017   case $ac_file in
4018     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4019     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4020           break;;
4021     * ) break;;
4022   esac
4023 done
4024 else $as_nop
4025   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4028 See \`config.log' for more details" "$LINENO" 5; }
4029 fi
4030 rm -f conftest conftest$ac_cv_exeext
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4032 printf "%s\n" "$ac_cv_exeext" >&6; }
4033
4034 rm -f conftest.$ac_ext
4035 EXEEXT=$ac_cv_exeext
4036 ac_exeext=$EXEEXT
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h.  */
4039 #include <stdio.h>
4040 int
4041 main (void)
4042 {
4043 FILE *f = fopen ("conftest.out", "w");
4044  return ferror (f) || fclose (f) != 0;
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 ac_clean_files="$ac_clean_files conftest.out"
4051 # Check that the compiler produces executables we can run.  If not, either
4052 # the compiler is broken, or we cross compile.
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4054 printf %s "checking whether we are cross compiling... " >&6; }
4055 if test "$cross_compiling" != yes; then
4056   { { ac_try="$ac_link"
4057 case "(($ac_try" in
4058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059   *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 printf "%s\n" "$ac_try_echo"; } >&5
4063   (eval "$ac_link") 2>&5
4064   ac_status=$?
4065   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066   test $ac_status = 0; }
4067   if { ac_try='./conftest$ac_cv_exeext'
4068   { { case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 printf "%s\n" "$ac_try_echo"; } >&5
4074   (eval "$ac_try") 2>&5
4075   ac_status=$?
4076   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077   test $ac_status = 0; }; }; then
4078     cross_compiling=no
4079   else
4080     if test "$cross_compiling" = maybe; then
4081         cross_compiling=yes
4082     else
4083         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error 77 "cannot run C compiled programs.
4086 If you meant to cross compile, use \`--host'.
4087 See \`config.log' for more details" "$LINENO" 5; }
4088     fi
4089   fi
4090 fi
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4092 printf "%s\n" "$cross_compiling" >&6; }
4093
4094 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4095 ac_clean_files=$ac_clean_files_save
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4097 printf %s "checking for suffix of object files... " >&6; }
4098 if test ${ac_cv_objext+y}
4099 then :
4100   printf %s "(cached) " >&6
4101 else $as_nop
4102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h.  */
4104
4105 int
4106 main (void)
4107 {
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 rm -f conftest.o conftest.obj
4114 if { { ac_try="$ac_compile"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 printf "%s\n" "$ac_try_echo"; } >&5
4121   (eval "$ac_compile") 2>&5
4122   ac_status=$?
4123   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124   test $ac_status = 0; }
4125 then :
4126   for ac_file in conftest.o conftest.obj conftest.*; do
4127   test -f "$ac_file" || continue;
4128   case $ac_file in
4129     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4130     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4131        break;;
4132   esac
4133 done
4134 else $as_nop
4135   printf "%s\n" "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4140 as_fn_error $? "cannot compute suffix of object files: cannot compile
4141 See \`config.log' for more details" "$LINENO" 5; }
4142 fi
4143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4144 fi
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4146 printf "%s\n" "$ac_cv_objext" >&6; }
4147 OBJEXT=$ac_cv_objext
4148 ac_objext=$OBJEXT
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4150 printf %s "checking whether the compiler supports GNU C... " >&6; }
4151 if test ${ac_cv_c_compiler_gnu+y}
4152 then :
4153   printf %s "(cached) " >&6
4154 else $as_nop
4155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h.  */
4157
4158 int
4159 main (void)
4160 {
4161 #ifndef __GNUC__
4162        choke me
4163 #endif
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"
4170 then :
4171   ac_compiler_gnu=yes
4172 else $as_nop
4173   ac_compiler_gnu=no
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4177
4178 fi
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4180 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182
4183 if test $ac_compiler_gnu = yes; then
4184   GCC=yes
4185 else
4186   GCC=
4187 fi
4188 ac_test_CFLAGS=${CFLAGS+y}
4189 ac_save_CFLAGS=$CFLAGS
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4191 printf %s "checking whether $CC accepts -g... " >&6; }
4192 if test ${ac_cv_prog_cc_g+y}
4193 then :
4194   printf %s "(cached) " >&6
4195 else $as_nop
4196   ac_save_c_werror_flag=$ac_c_werror_flag
4197    ac_c_werror_flag=yes
4198    ac_cv_prog_cc_g=no
4199    CFLAGS="-g"
4200    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h.  */
4202
4203 int
4204 main (void)
4205 {
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"
4212 then :
4213   ac_cv_prog_cc_g=yes
4214 else $as_nop
4215   CFLAGS=""
4216       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h.  */
4218
4219 int
4220 main (void)
4221 {
4222
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"
4228 then :
4229
4230 else $as_nop
4231   ac_c_werror_flag=$ac_save_c_werror_flag
4232          CFLAGS="-g"
4233          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h.  */
4235
4236 int
4237 main (void)
4238 {
4239
4240   ;
4241   return 0;
4242 }
4243 _ACEOF
4244 if ac_fn_c_try_compile "$LINENO"
4245 then :
4246   ac_cv_prog_cc_g=yes
4247 fi
4248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4249 fi
4250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4253    ac_c_werror_flag=$ac_save_c_werror_flag
4254 fi
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4256 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4257 if test $ac_test_CFLAGS; then
4258   CFLAGS=$ac_save_CFLAGS
4259 elif test $ac_cv_prog_cc_g = yes; then
4260   if test "$GCC" = yes; then
4261     CFLAGS="-g -O2"
4262   else
4263     CFLAGS="-g"
4264   fi
4265 else
4266   if test "$GCC" = yes; then
4267     CFLAGS="-O2"
4268   else
4269     CFLAGS=
4270   fi
4271 fi
4272 ac_prog_cc_stdc=no
4273 if test x$ac_prog_cc_stdc = xno
4274 then :
4275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4276 printf %s "checking for $CC option to enable C11 features... " >&6; }
4277 if test ${ac_cv_prog_cc_c11+y}
4278 then :
4279   printf %s "(cached) " >&6
4280 else $as_nop
4281   ac_cv_prog_cc_c11=no
4282 ac_save_CC=$CC
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h.  */
4285 $ac_c_conftest_c11_program
4286 _ACEOF
4287 for ac_arg in '' -std=gnu11
4288 do
4289   CC="$ac_save_CC $ac_arg"
4290   if ac_fn_c_try_compile "$LINENO"
4291 then :
4292   ac_cv_prog_cc_c11=$ac_arg
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext conftest.beam
4295   test "x$ac_cv_prog_cc_c11" != "xno" && break
4296 done
4297 rm -f conftest.$ac_ext
4298 CC=$ac_save_CC
4299 fi
4300
4301 if test "x$ac_cv_prog_cc_c11" = xno
4302 then :
4303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4304 printf "%s\n" "unsupported" >&6; }
4305 else $as_nop
4306   if test "x$ac_cv_prog_cc_c11" = x
4307 then :
4308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309 printf "%s\n" "none needed" >&6; }
4310 else $as_nop
4311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4312 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4313      CC="$CC $ac_cv_prog_cc_c11"
4314 fi
4315   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4316   ac_prog_cc_stdc=c11
4317 fi
4318 fi
4319 if test x$ac_prog_cc_stdc = xno
4320 then :
4321   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4322 printf %s "checking for $CC option to enable C99 features... " >&6; }
4323 if test ${ac_cv_prog_cc_c99+y}
4324 then :
4325   printf %s "(cached) " >&6
4326 else $as_nop
4327   ac_cv_prog_cc_c99=no
4328 ac_save_CC=$CC
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h.  */
4331 $ac_c_conftest_c99_program
4332 _ACEOF
4333 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4334 do
4335   CC="$ac_save_CC $ac_arg"
4336   if ac_fn_c_try_compile "$LINENO"
4337 then :
4338   ac_cv_prog_cc_c99=$ac_arg
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.beam
4341   test "x$ac_cv_prog_cc_c99" != "xno" && break
4342 done
4343 rm -f conftest.$ac_ext
4344 CC=$ac_save_CC
4345 fi
4346
4347 if test "x$ac_cv_prog_cc_c99" = xno
4348 then :
4349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4350 printf "%s\n" "unsupported" >&6; }
4351 else $as_nop
4352   if test "x$ac_cv_prog_cc_c99" = x
4353 then :
4354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4355 printf "%s\n" "none needed" >&6; }
4356 else $as_nop
4357   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4358 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4359      CC="$CC $ac_cv_prog_cc_c99"
4360 fi
4361   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4362   ac_prog_cc_stdc=c99
4363 fi
4364 fi
4365 if test x$ac_prog_cc_stdc = xno
4366 then :
4367   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4368 printf %s "checking for $CC option to enable C89 features... " >&6; }
4369 if test ${ac_cv_prog_cc_c89+y}
4370 then :
4371   printf %s "(cached) " >&6
4372 else $as_nop
4373   ac_cv_prog_cc_c89=no
4374 ac_save_CC=$CC
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377 $ac_c_conftest_c89_program
4378 _ACEOF
4379 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4380 do
4381   CC="$ac_save_CC $ac_arg"
4382   if ac_fn_c_try_compile "$LINENO"
4383 then :
4384   ac_cv_prog_cc_c89=$ac_arg
4385 fi
4386 rm -f core conftest.err conftest.$ac_objext conftest.beam
4387   test "x$ac_cv_prog_cc_c89" != "xno" && break
4388 done
4389 rm -f conftest.$ac_ext
4390 CC=$ac_save_CC
4391 fi
4392
4393 if test "x$ac_cv_prog_cc_c89" = xno
4394 then :
4395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4396 printf "%s\n" "unsupported" >&6; }
4397 else $as_nop
4398   if test "x$ac_cv_prog_cc_c89" = x
4399 then :
4400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4401 printf "%s\n" "none needed" >&6; }
4402 else $as_nop
4403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4404 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4405      CC="$CC $ac_cv_prog_cc_c89"
4406 fi
4407   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4408   ac_prog_cc_stdc=c89
4409 fi
4410 fi
4411
4412 ac_ext=c
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417
4418
4419 ac_header= ac_cache=
4420 for ac_item in $ac_header_c_list
4421 do
4422   if test $ac_cache; then
4423     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4424     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4425       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4426     fi
4427     ac_header= ac_cache=
4428   elif test $ac_header; then
4429     ac_cache=$ac_item
4430   else
4431     ac_header=$ac_item
4432   fi
4433 done
4434
4435
4436
4437
4438
4439
4440
4441
4442 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4443 then :
4444
4445 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4446
4447 fi
4448
4449
4450
4451
4452
4453
4454   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4455 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4456 if test ${ac_cv_safe_to_define___extensions__+y}
4457 then :
4458   printf %s "(cached) " >&6
4459 else $as_nop
4460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h.  */
4462
4463 #         define __EXTENSIONS__ 1
4464           $ac_includes_default
4465 int
4466 main (void)
4467 {
4468
4469   ;
4470   return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_compile "$LINENO"
4474 then :
4475   ac_cv_safe_to_define___extensions__=yes
4476 else $as_nop
4477   ac_cv_safe_to_define___extensions__=no
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4480 fi
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4482 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4483
4484   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4485 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4486 if test ${ac_cv_should_define__xopen_source+y}
4487 then :
4488   printf %s "(cached) " >&6
4489 else $as_nop
4490   ac_cv_should_define__xopen_source=no
4491     if test $ac_cv_header_wchar_h = yes
4492 then :
4493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h.  */
4495
4496           #include <wchar.h>
4497           mbstate_t x;
4498 int
4499 main (void)
4500 {
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"
4507 then :
4508
4509 else $as_nop
4510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512
4513             #define _XOPEN_SOURCE 500
4514             #include <wchar.h>
4515             mbstate_t x;
4516 int
4517 main (void)
4518 {
4519
4520   ;
4521   return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"
4525 then :
4526   ac_cv_should_define__xopen_source=yes
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4531 fi
4532 fi
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4534 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4535
4536   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4537
4538   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4539
4540   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4541
4542   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4543
4544   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4545
4546   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4547
4548   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4549
4550   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4551
4552   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4553
4554   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4555
4556   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4557
4558   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4559
4560   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4561
4562   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4563
4564   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4565
4566   if test $ac_cv_header_minix_config_h = yes
4567 then :
4568   MINIX=yes
4569     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4570
4571     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4572
4573     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4574
4575 else $as_nop
4576   MINIX=
4577 fi
4578   if test $ac_cv_safe_to_define___extensions__ = yes
4579 then :
4580   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4581
4582 fi
4583   if test $ac_cv_should_define__xopen_source = yes
4584 then :
4585   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4586
4587 fi
4588
4589 MCONFIG=./MCONFIG
4590
4591 BINARY_TYPE=bin
4592 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4593 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4594 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4595 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4596 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4597
4598 if expr $YEAR ">" 1900 > /dev/null ; then
4599         E2FSPROGS_YEAR=$YEAR
4600 elif expr $YEAR ">" 90 >/dev/null ; then
4601         E2FSPROGS_YEAR=19$YEAR
4602 else
4603         E2FSPROGS_YEAR=20$YEAR
4604 fi
4605
4606 case $MONTH in
4607 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4608 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4609 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4610 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4611 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4612 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4613 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4614 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4615 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4616 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4617 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4618 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4619 *)      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4620 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4621 esac
4622
4623 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4624 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4625
4626 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4627
4628 case $E2FSPROGS_VERSION in
4629 *-WIP|pre-*)
4630         E2FSPROGS_PKGVER="$base_ver"
4631         E2FSPROGS_PKGREL="WIP.$date_spec"
4632         ;;
4633 *)
4634         E2FSPROGS_PKGVER="$base_ver"
4635         E2FSPROGS_PKGREL="$base_rel"
4636         ;;
4637 esac
4638
4639 unset DATE MONTH YEAR base_ver pre_vers date_spec
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4641 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4643 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4645 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4646
4647
4648
4649
4650
4651
4652
4653 WITH_DIET_LIBC=
4654
4655 # Check whether --with-diet-libc was given.
4656 if test ${with_diet_libc+y}
4657 then :
4658   withval=$with_diet_libc; CC="diet cc -nostdinc"
4659 WITH_DIET_LIBC=yes
4660 if test -z "$LIBS"
4661 then
4662         LIBS="-lcompat"
4663 else
4664         LIBS="$LIBS -lcompat"
4665 fi
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4667 printf "%s\n" "CC=$CC" >&6; }
4668 fi
4669
4670
4671
4672   # Make sure we can run config.sub.
4673 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4674   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4675
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4677 printf %s "checking build system type... " >&6; }
4678 if test ${ac_cv_build+y}
4679 then :
4680   printf %s "(cached) " >&6
4681 else $as_nop
4682   ac_build_alias=$build_alias
4683 test "x$ac_build_alias" = x &&
4684   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4685 test "x$ac_build_alias" = x &&
4686   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4687 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4688   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4689
4690 fi
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4692 printf "%s\n" "$ac_cv_build" >&6; }
4693 case $ac_cv_build in
4694 *-*-*) ;;
4695 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4696 esac
4697 build=$ac_cv_build
4698 ac_save_IFS=$IFS; IFS='-'
4699 set x $ac_cv_build
4700 shift
4701 build_cpu=$1
4702 build_vendor=$2
4703 shift; shift
4704 # Remember, the first character of IFS is used to create $*,
4705 # except with old shells:
4706 build_os=$*
4707 IFS=$ac_save_IFS
4708 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4709
4710
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4712 printf %s "checking host system type... " >&6; }
4713 if test ${ac_cv_host+y}
4714 then :
4715   printf %s "(cached) " >&6
4716 else $as_nop
4717   if test "x$host_alias" = x; then
4718   ac_cv_host=$ac_cv_build
4719 else
4720   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4721     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4722 fi
4723
4724 fi
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4726 printf "%s\n" "$ac_cv_host" >&6; }
4727 case $ac_cv_host in
4728 *-*-*) ;;
4729 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4730 esac
4731 host=$ac_cv_host
4732 ac_save_IFS=$IFS; IFS='-'
4733 set x $ac_cv_host
4734 shift
4735 host_cpu=$1
4736 host_vendor=$2
4737 shift; shift
4738 # Remember, the first character of IFS is used to create $*,
4739 # except with old shells:
4740 host_os=$*
4741 IFS=$ac_save_IFS
4742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4743
4744
4745 DLOPEN_LIB=''
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4747 printf %s "checking for dlopen in -ldl... " >&6; }
4748 if test ${ac_cv_lib_dl_dlopen+y}
4749 then :
4750   printf %s "(cached) " >&6
4751 else $as_nop
4752   ac_check_lib_save_LIBS=$LIBS
4753 LIBS="-ldl  $LIBS"
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756
4757 /* Override any GCC internal prototype to avoid an error.
4758    Use char because int might match the return type of a GCC
4759    builtin and then its argument prototype would still apply.  */
4760 char dlopen ();
4761 int
4762 main (void)
4763 {
4764 return dlopen ();
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_link "$LINENO"
4770 then :
4771   ac_cv_lib_dl_dlopen=yes
4772 else $as_nop
4773   ac_cv_lib_dl_dlopen=no
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4776     conftest$ac_exeext conftest.$ac_ext
4777 LIBS=$ac_check_lib_save_LIBS
4778 fi
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4780 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4781 if test "x$ac_cv_lib_dl_dlopen" = xyes
4782 then :
4783   DLOPEN_LIB=-ldl
4784 fi
4785
4786
4787
4788 # Check whether --with-cc was given.
4789 if test ${with_cc+y}
4790 then :
4791   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4792 fi
4793
4794
4795 # Check whether --with-ccopts was given.
4796 if test ${with_ccopts+y}
4797 then :
4798   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4799 fi
4800
4801
4802 # Check whether --with-ldopts was given.
4803 if test ${with_ldopts+y}
4804 then :
4805   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4806 fi
4807
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 if test -n "$ac_tool_prefix"; then
4814   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 printf %s "checking for $ac_word... " >&6; }
4818 if test ${ac_cv_prog_CC+y}
4819 then :
4820   printf %s "(cached) " >&6
4821 else $as_nop
4822   if test -n "$CC"; then
4823   ac_cv_prog_CC="$CC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   case $as_dir in #(((
4830     '') as_dir=./ ;;
4831     */) ;;
4832     *) as_dir=$as_dir/ ;;
4833   esac
4834     for ac_exec_ext in '' $ac_executable_extensions; do
4835   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4836     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4837     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4838     break 2
4839   fi
4840 done
4841   done
4842 IFS=$as_save_IFS
4843
4844 fi
4845 fi
4846 CC=$ac_cv_prog_CC
4847 if test -n "$CC"; then
4848   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4849 printf "%s\n" "$CC" >&6; }
4850 else
4851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 printf "%s\n" "no" >&6; }
4853 fi
4854
4855
4856 fi
4857 if test -z "$ac_cv_prog_CC"; then
4858   ac_ct_CC=$CC
4859   # Extract the first word of "gcc", so it can be a program name with args.
4860 set dummy gcc; ac_word=$2
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 printf %s "checking for $ac_word... " >&6; }
4863 if test ${ac_cv_prog_ac_ct_CC+y}
4864 then :
4865   printf %s "(cached) " >&6
4866 else $as_nop
4867   if test -n "$ac_ct_CC"; then
4868   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   case $as_dir in #(((
4875     '') as_dir=./ ;;
4876     */) ;;
4877     *) as_dir=$as_dir/ ;;
4878   esac
4879     for ac_exec_ext in '' $ac_executable_extensions; do
4880   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4881     ac_cv_prog_ac_ct_CC="gcc"
4882     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886   done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4892 if test -n "$ac_ct_CC"; then
4893   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4894 printf "%s\n" "$ac_ct_CC" >&6; }
4895 else
4896   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 printf "%s\n" "no" >&6; }
4898 fi
4899
4900   if test "x$ac_ct_CC" = x; then
4901     CC=""
4902   else
4903     case $cross_compiling:$ac_tool_warned in
4904 yes:)
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909     CC=$ac_ct_CC
4910   fi
4911 else
4912   CC="$ac_cv_prog_CC"
4913 fi
4914
4915 if test -z "$CC"; then
4916           if test -n "$ac_tool_prefix"; then
4917     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4918 set dummy ${ac_tool_prefix}cc; ac_word=$2
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 printf %s "checking for $ac_word... " >&6; }
4921 if test ${ac_cv_prog_CC+y}
4922 then :
4923   printf %s "(cached) " >&6
4924 else $as_nop
4925   if test -n "$CC"; then
4926   ac_cv_prog_CC="$CC" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931   IFS=$as_save_IFS
4932   case $as_dir in #(((
4933     '') as_dir=./ ;;
4934     */) ;;
4935     *) as_dir=$as_dir/ ;;
4936   esac
4937     for ac_exec_ext in '' $ac_executable_extensions; do
4938   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4939     ac_cv_prog_CC="${ac_tool_prefix}cc"
4940     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944   done
4945 IFS=$as_save_IFS
4946
4947 fi
4948 fi
4949 CC=$ac_cv_prog_CC
4950 if test -n "$CC"; then
4951   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4952 printf "%s\n" "$CC" >&6; }
4953 else
4954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 printf "%s\n" "no" >&6; }
4956 fi
4957
4958
4959   fi
4960 fi
4961 if test -z "$CC"; then
4962   # Extract the first word of "cc", so it can be a program name with args.
4963 set dummy cc; ac_word=$2
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 printf %s "checking for $ac_word... " >&6; }
4966 if test ${ac_cv_prog_CC+y}
4967 then :
4968   printf %s "(cached) " >&6
4969 else $as_nop
4970   if test -n "$CC"; then
4971   ac_cv_prog_CC="$CC" # Let the user override the test.
4972 else
4973   ac_prog_rejected=no
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977   IFS=$as_save_IFS
4978   case $as_dir in #(((
4979     '') as_dir=./ ;;
4980     */) ;;
4981     *) as_dir=$as_dir/ ;;
4982   esac
4983     for ac_exec_ext in '' $ac_executable_extensions; do
4984   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4985     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4986        ac_prog_rejected=yes
4987        continue
4988      fi
4989     ac_cv_prog_CC="cc"
4990     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4991     break 2
4992   fi
4993 done
4994   done
4995 IFS=$as_save_IFS
4996
4997 if test $ac_prog_rejected = yes; then
4998   # We found a bogon in the path, so make sure we never use it.
4999   set dummy $ac_cv_prog_CC
5000   shift
5001   if test $# != 0; then
5002     # We chose a different compiler from the bogus one.
5003     # However, it has the same basename, so the bogon will be chosen
5004     # first if we set CC to just the basename; use the full file name.
5005     shift
5006     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5007   fi
5008 fi
5009 fi
5010 fi
5011 CC=$ac_cv_prog_CC
5012 if test -n "$CC"; then
5013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5014 printf "%s\n" "$CC" >&6; }
5015 else
5016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 printf "%s\n" "no" >&6; }
5018 fi
5019
5020
5021 fi
5022 if test -z "$CC"; then
5023   if test -n "$ac_tool_prefix"; then
5024   for ac_prog in cl.exe
5025   do
5026     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 printf %s "checking for $ac_word... " >&6; }
5030 if test ${ac_cv_prog_CC+y}
5031 then :
5032   printf %s "(cached) " >&6
5033 else $as_nop
5034   if test -n "$CC"; then
5035   ac_cv_prog_CC="$CC" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   case $as_dir in #(((
5042     '') as_dir=./ ;;
5043     */) ;;
5044     *) as_dir=$as_dir/ ;;
5045   esac
5046     for ac_exec_ext in '' $ac_executable_extensions; do
5047   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5049     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053   done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 CC=$ac_cv_prog_CC
5059 if test -n "$CC"; then
5060   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5061 printf "%s\n" "$CC" >&6; }
5062 else
5063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 printf "%s\n" "no" >&6; }
5065 fi
5066
5067
5068     test -n "$CC" && break
5069   done
5070 fi
5071 if test -z "$CC"; then
5072   ac_ct_CC=$CC
5073   for ac_prog in cl.exe
5074 do
5075   # Extract the first word of "$ac_prog", so it can be a program name with args.
5076 set dummy $ac_prog; ac_word=$2
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 printf %s "checking for $ac_word... " >&6; }
5079 if test ${ac_cv_prog_ac_ct_CC+y}
5080 then :
5081   printf %s "(cached) " >&6
5082 else $as_nop
5083   if test -n "$ac_ct_CC"; then
5084   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   case $as_dir in #(((
5091     '') as_dir=./ ;;
5092     */) ;;
5093     *) as_dir=$as_dir/ ;;
5094   esac
5095     for ac_exec_ext in '' $ac_executable_extensions; do
5096   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5097     ac_cv_prog_ac_ct_CC="$ac_prog"
5098     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102   done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5108 if test -n "$ac_ct_CC"; then
5109   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5110 printf "%s\n" "$ac_ct_CC" >&6; }
5111 else
5112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 printf "%s\n" "no" >&6; }
5114 fi
5115
5116
5117   test -n "$ac_ct_CC" && break
5118 done
5119
5120   if test "x$ac_ct_CC" = x; then
5121     CC=""
5122   else
5123     case $cross_compiling:$ac_tool_warned in
5124 yes:)
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5126 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5127 ac_tool_warned=yes ;;
5128 esac
5129     CC=$ac_ct_CC
5130   fi
5131 fi
5132
5133 fi
5134 if test -z "$CC"; then
5135   if test -n "$ac_tool_prefix"; then
5136   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5137 set dummy ${ac_tool_prefix}clang; ac_word=$2
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 printf %s "checking for $ac_word... " >&6; }
5140 if test ${ac_cv_prog_CC+y}
5141 then :
5142   printf %s "(cached) " >&6
5143 else $as_nop
5144   if test -n "$CC"; then
5145   ac_cv_prog_CC="$CC" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   case $as_dir in #(((
5152     '') as_dir=./ ;;
5153     */) ;;
5154     *) as_dir=$as_dir/ ;;
5155   esac
5156     for ac_exec_ext in '' $ac_executable_extensions; do
5157   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5158     ac_cv_prog_CC="${ac_tool_prefix}clang"
5159     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163   done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 CC=$ac_cv_prog_CC
5169 if test -n "$CC"; then
5170   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5171 printf "%s\n" "$CC" >&6; }
5172 else
5173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 printf "%s\n" "no" >&6; }
5175 fi
5176
5177
5178 fi
5179 if test -z "$ac_cv_prog_CC"; then
5180   ac_ct_CC=$CC
5181   # Extract the first word of "clang", so it can be a program name with args.
5182 set dummy clang; ac_word=$2
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 printf %s "checking for $ac_word... " >&6; }
5185 if test ${ac_cv_prog_ac_ct_CC+y}
5186 then :
5187   printf %s "(cached) " >&6
5188 else $as_nop
5189   if test -n "$ac_ct_CC"; then
5190   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   case $as_dir in #(((
5197     '') as_dir=./ ;;
5198     */) ;;
5199     *) as_dir=$as_dir/ ;;
5200   esac
5201     for ac_exec_ext in '' $ac_executable_extensions; do
5202   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5203     ac_cv_prog_ac_ct_CC="clang"
5204     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208   done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5214 if test -n "$ac_ct_CC"; then
5215   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5216 printf "%s\n" "$ac_ct_CC" >&6; }
5217 else
5218   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 printf "%s\n" "no" >&6; }
5220 fi
5221
5222   if test "x$ac_ct_CC" = x; then
5223     CC=""
5224   else
5225     case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5230 esac
5231     CC=$ac_ct_CC
5232   fi
5233 else
5234   CC="$ac_cv_prog_CC"
5235 fi
5236
5237 fi
5238
5239
5240 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5241 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5242 as_fn_error $? "no acceptable C compiler found in \$PATH
5243 See \`config.log' for more details" "$LINENO" 5; }
5244
5245 # Provide some information about the compiler.
5246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5247 set X $ac_compile
5248 ac_compiler=$2
5249 for ac_option in --version -v -V -qversion -version; do
5250   { { ac_try="$ac_compiler $ac_option >&5"
5251 case "(($ac_try" in
5252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253   *) ac_try_echo=$ac_try;;
5254 esac
5255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5256 printf "%s\n" "$ac_try_echo"; } >&5
5257   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5258   ac_status=$?
5259   if test -s conftest.err; then
5260     sed '10a\
5261 ... rest of stderr output deleted ...
5262          10q' conftest.err >conftest.er1
5263     cat conftest.er1 >&5
5264   fi
5265   rm -f conftest.er1 conftest.err
5266   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267   test $ac_status = 0; }
5268 done
5269
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5271 printf %s "checking whether the compiler supports GNU C... " >&6; }
5272 if test ${ac_cv_c_compiler_gnu+y}
5273 then :
5274   printf %s "(cached) " >&6
5275 else $as_nop
5276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278
5279 int
5280 main (void)
5281 {
5282 #ifndef __GNUC__
5283        choke me
5284 #endif
5285
5286   ;
5287   return 0;
5288 }
5289 _ACEOF
5290 if ac_fn_c_try_compile "$LINENO"
5291 then :
5292   ac_compiler_gnu=yes
5293 else $as_nop
5294   ac_compiler_gnu=no
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5297 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5298
5299 fi
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5301 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5303
5304 if test $ac_compiler_gnu = yes; then
5305   GCC=yes
5306 else
5307   GCC=
5308 fi
5309 ac_test_CFLAGS=${CFLAGS+y}
5310 ac_save_CFLAGS=$CFLAGS
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5312 printf %s "checking whether $CC accepts -g... " >&6; }
5313 if test ${ac_cv_prog_cc_g+y}
5314 then :
5315   printf %s "(cached) " >&6
5316 else $as_nop
5317   ac_save_c_werror_flag=$ac_c_werror_flag
5318    ac_c_werror_flag=yes
5319    ac_cv_prog_cc_g=no
5320    CFLAGS="-g"
5321    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h.  */
5323
5324 int
5325 main (void)
5326 {
5327
5328   ;
5329   return 0;
5330 }
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"
5333 then :
5334   ac_cv_prog_cc_g=yes
5335 else $as_nop
5336   CFLAGS=""
5337       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h.  */
5339
5340 int
5341 main (void)
5342 {
5343
5344   ;
5345   return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_c_try_compile "$LINENO"
5349 then :
5350
5351 else $as_nop
5352   ac_c_werror_flag=$ac_save_c_werror_flag
5353          CFLAGS="-g"
5354          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h.  */
5356
5357 int
5358 main (void)
5359 {
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"
5366 then :
5367   ac_cv_prog_cc_g=yes
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5374    ac_c_werror_flag=$ac_save_c_werror_flag
5375 fi
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5377 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5378 if test $ac_test_CFLAGS; then
5379   CFLAGS=$ac_save_CFLAGS
5380 elif test $ac_cv_prog_cc_g = yes; then
5381   if test "$GCC" = yes; then
5382     CFLAGS="-g -O2"
5383   else
5384     CFLAGS="-g"
5385   fi
5386 else
5387   if test "$GCC" = yes; then
5388     CFLAGS="-O2"
5389   else
5390     CFLAGS=
5391   fi
5392 fi
5393 ac_prog_cc_stdc=no
5394 if test x$ac_prog_cc_stdc = xno
5395 then :
5396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5397 printf %s "checking for $CC option to enable C11 features... " >&6; }
5398 if test ${ac_cv_prog_cc_c11+y}
5399 then :
5400   printf %s "(cached) " >&6
5401 else $as_nop
5402   ac_cv_prog_cc_c11=no
5403 ac_save_CC=$CC
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h.  */
5406 $ac_c_conftest_c11_program
5407 _ACEOF
5408 for ac_arg in '' -std=gnu11
5409 do
5410   CC="$ac_save_CC $ac_arg"
5411   if ac_fn_c_try_compile "$LINENO"
5412 then :
5413   ac_cv_prog_cc_c11=$ac_arg
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.beam
5416   test "x$ac_cv_prog_cc_c11" != "xno" && break
5417 done
5418 rm -f conftest.$ac_ext
5419 CC=$ac_save_CC
5420 fi
5421
5422 if test "x$ac_cv_prog_cc_c11" = xno
5423 then :
5424   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5425 printf "%s\n" "unsupported" >&6; }
5426 else $as_nop
5427   if test "x$ac_cv_prog_cc_c11" = x
5428 then :
5429   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5430 printf "%s\n" "none needed" >&6; }
5431 else $as_nop
5432   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5433 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5434      CC="$CC $ac_cv_prog_cc_c11"
5435 fi
5436   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5437   ac_prog_cc_stdc=c11
5438 fi
5439 fi
5440 if test x$ac_prog_cc_stdc = xno
5441 then :
5442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5443 printf %s "checking for $CC option to enable C99 features... " >&6; }
5444 if test ${ac_cv_prog_cc_c99+y}
5445 then :
5446   printf %s "(cached) " >&6
5447 else $as_nop
5448   ac_cv_prog_cc_c99=no
5449 ac_save_CC=$CC
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h.  */
5452 $ac_c_conftest_c99_program
5453 _ACEOF
5454 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5455 do
5456   CC="$ac_save_CC $ac_arg"
5457   if ac_fn_c_try_compile "$LINENO"
5458 then :
5459   ac_cv_prog_cc_c99=$ac_arg
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext conftest.beam
5462   test "x$ac_cv_prog_cc_c99" != "xno" && break
5463 done
5464 rm -f conftest.$ac_ext
5465 CC=$ac_save_CC
5466 fi
5467
5468 if test "x$ac_cv_prog_cc_c99" = xno
5469 then :
5470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5471 printf "%s\n" "unsupported" >&6; }
5472 else $as_nop
5473   if test "x$ac_cv_prog_cc_c99" = x
5474 then :
5475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5476 printf "%s\n" "none needed" >&6; }
5477 else $as_nop
5478   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5479 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5480      CC="$CC $ac_cv_prog_cc_c99"
5481 fi
5482   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5483   ac_prog_cc_stdc=c99
5484 fi
5485 fi
5486 if test x$ac_prog_cc_stdc = xno
5487 then :
5488   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5489 printf %s "checking for $CC option to enable C89 features... " >&6; }
5490 if test ${ac_cv_prog_cc_c89+y}
5491 then :
5492   printf %s "(cached) " >&6
5493 else $as_nop
5494   ac_cv_prog_cc_c89=no
5495 ac_save_CC=$CC
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h.  */
5498 $ac_c_conftest_c89_program
5499 _ACEOF
5500 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5501 do
5502   CC="$ac_save_CC $ac_arg"
5503   if ac_fn_c_try_compile "$LINENO"
5504 then :
5505   ac_cv_prog_cc_c89=$ac_arg
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext conftest.beam
5508   test "x$ac_cv_prog_cc_c89" != "xno" && break
5509 done
5510 rm -f conftest.$ac_ext
5511 CC=$ac_save_CC
5512 fi
5513
5514 if test "x$ac_cv_prog_cc_c89" = xno
5515 then :
5516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5517 printf "%s\n" "unsupported" >&6; }
5518 else $as_nop
5519   if test "x$ac_cv_prog_cc_c89" = x
5520 then :
5521   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5522 printf "%s\n" "none needed" >&6; }
5523 else $as_nop
5524   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5525 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5526      CC="$CC $ac_cv_prog_cc_c89"
5527 fi
5528   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5529   ac_prog_cc_stdc=c89
5530 fi
5531 fi
5532
5533 ac_ext=c
5534 ac_cpp='$CPP $CPPFLAGS'
5535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5538
5539 if test "$GCC" = yes; then
5540    RDYNAMIC="-rdynamic"
5541
5542 fi
5543 ac_ext=c
5544 ac_cpp='$CPP $CPPFLAGS'
5545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5549 printf %s "checking how to run the C preprocessor... " >&6; }
5550 # On Suns, sometimes $CPP names a directory.
5551 if test -n "$CPP" && test -d "$CPP"; then
5552   CPP=
5553 fi
5554 if test -z "$CPP"; then
5555   if test ${ac_cv_prog_CPP+y}
5556 then :
5557   printf %s "(cached) " >&6
5558 else $as_nop
5559       # Double quotes because $CC needs to be expanded
5560     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5561     do
5562       ac_preproc_ok=false
5563 for ac_c_preproc_warn_flag in '' yes
5564 do
5565   # Use a header file that comes with gcc, so configuring glibc
5566   # with a fresh cross-compiler works.
5567   # On the NeXT, cc -E runs the code through the compiler's parser,
5568   # not just through cpp. "Syntax error" is here to catch this case.
5569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h.  */
5571 #include <limits.h>
5572                      Syntax error
5573 _ACEOF
5574 if ac_fn_c_try_cpp "$LINENO"
5575 then :
5576
5577 else $as_nop
5578   # Broken: fails on valid input.
5579 continue
5580 fi
5581 rm -f conftest.err conftest.i conftest.$ac_ext
5582
5583   # OK, works on sane cases.  Now check whether nonexistent headers
5584   # can be detected and how.
5585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h.  */
5587 #include <ac_nonexistent.h>
5588 _ACEOF
5589 if ac_fn_c_try_cpp "$LINENO"
5590 then :
5591   # Broken: success on invalid input.
5592 continue
5593 else $as_nop
5594   # Passes both tests.
5595 ac_preproc_ok=:
5596 break
5597 fi
5598 rm -f conftest.err conftest.i conftest.$ac_ext
5599
5600 done
5601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5602 rm -f conftest.i conftest.err conftest.$ac_ext
5603 if $ac_preproc_ok
5604 then :
5605   break
5606 fi
5607
5608     done
5609     ac_cv_prog_CPP=$CPP
5610
5611 fi
5612   CPP=$ac_cv_prog_CPP
5613 else
5614   ac_cv_prog_CPP=$CPP
5615 fi
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5617 printf "%s\n" "$CPP" >&6; }
5618 ac_preproc_ok=false
5619 for ac_c_preproc_warn_flag in '' yes
5620 do
5621   # Use a header file that comes with gcc, so configuring glibc
5622   # with a fresh cross-compiler works.
5623   # On the NeXT, cc -E runs the code through the compiler's parser,
5624   # not just through cpp. "Syntax error" is here to catch this case.
5625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h.  */
5627 #include <limits.h>
5628                      Syntax error
5629 _ACEOF
5630 if ac_fn_c_try_cpp "$LINENO"
5631 then :
5632
5633 else $as_nop
5634   # Broken: fails on valid input.
5635 continue
5636 fi
5637 rm -f conftest.err conftest.i conftest.$ac_ext
5638
5639   # OK, works on sane cases.  Now check whether nonexistent headers
5640   # can be detected and how.
5641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h.  */
5643 #include <ac_nonexistent.h>
5644 _ACEOF
5645 if ac_fn_c_try_cpp "$LINENO"
5646 then :
5647   # Broken: success on invalid input.
5648 continue
5649 else $as_nop
5650   # Passes both tests.
5651 ac_preproc_ok=:
5652 break
5653 fi
5654 rm -f conftest.err conftest.i conftest.$ac_ext
5655
5656 done
5657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5658 rm -f conftest.i conftest.err conftest.$ac_ext
5659 if $ac_preproc_ok
5660 then :
5661
5662 else $as_nop
5663   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5664 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5666 See \`config.log' for more details" "$LINENO" 5; }
5667 fi
5668
5669 ac_ext=c
5670 ac_cpp='$CPP $CPPFLAGS'
5671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5674
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5676 printf %s "checking for additional special compiler flags... " >&6; }
5677 if test "$GCC" = yes
5678 then
5679     case "$host_cpu" in
5680         alpha)          addcflags="-mieee" ;;
5681     esac
5682 fi
5683 if test "x$addcflags" != x
5684 then
5685     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5686 printf "%s\n" "$addcflags" >&6; }
5687     CFLAGS="$addcflags $CFLAGS"
5688 else
5689     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5690 printf "%s\n" "(none)" >&6; }
5691 fi
5692 LIB_EXT=.a
5693 STATIC_LIB_EXT=.a
5694 PROFILED_LIB_EXT=.a
5695
5696 # Check whether --with-root-prefix was given.
5697 if test ${with_root_prefix+y}
5698 then :
5699   withval=$with_root_prefix; root_prefix=$withval
5700 else $as_nop
5701   root_prefix=NONE
5702 fi
5703 # Check whether --enable-maintainer-mode was given.
5704 if test ${enable_maintainer_mode+y}
5705 then :
5706   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5707 then
5708         MAINTAINER_CMT=#
5709         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5710 printf "%s\n" "Disabling maintainer mode" >&6; }
5711 else
5712         MAINTAINER_CMT=
5713         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5714 printf "%s\n" "Enabling maintainer mode" >&6; }
5715 fi
5716
5717 else $as_nop
5718   MAINTAINER_CMT=#
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5720 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5721
5722 fi
5723
5724
5725 # Check whether --enable-symlink-install was given.
5726 if test ${enable_symlink_install+y}
5727 then :
5728   enableval=$enable_symlink_install; if test "$enableval" = "no"
5729 then
5730         LINK_INSTALL_FLAGS=-f
5731         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5732 printf "%s\n" "Disabling symlinks for install" >&6; }
5733 else
5734         LINK_INSTALL_FLAGS=-sf
5735         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5736 printf "%s\n" "Enabling symlinks for install" >&6; }
5737 fi
5738
5739 else $as_nop
5740   LINK_INSTALL_FLAGS=-f
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5742 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5743
5744 fi
5745
5746
5747 relative_symlink_defined=
5748 # Check whether --enable-relative-symlinks was given.
5749 if test ${enable_relative_symlinks+y}
5750 then :
5751   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5752 then
5753         SYMLINK_RELATIVE=
5754         relative_symlink_defined=yes
5755         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5756 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5757 else
5758         SYMLINK_RELATIVE=--relative
5759         relative_symlink_defined=yes
5760         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5761 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5762 fi
5763 fi
5764
5765 # Check whether --enable-symlink-relative-symlinks was given.
5766 if test ${enable_symlink_relative_symlinks+y}
5767 then :
5768   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5769 then
5770         SYMLINK_RELATIVE=yes
5771         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5772 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5773 else
5774         SYMLINK_RELATIVE=--relative
5775         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5776 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5777 fi
5778
5779 else $as_nop
5780   if test -z "$relative_symlink_defined"
5781 then
5782         SYMLINK_RELATIVE=
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5784 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5785 fi
5786
5787 fi
5788
5789
5790 # Check whether --enable-symlink-build was given.
5791 if test ${enable_symlink_build+y}
5792 then :
5793   enableval=$enable_symlink_build; if test "$enableval" = "no"
5794 then
5795         LINK_BUILD_FLAGS=
5796         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5797 printf "%s\n" "Disabling symlinks for build" >&6; }
5798 else
5799         LINK_BUILD_FLAGS=-s
5800         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5801 printf "%s\n" "Enabling symlinks for build" >&6; }
5802 fi
5803
5804 else $as_nop
5805   LINK_BUILD_FLAGS=
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5807 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5808
5809 fi
5810
5811
5812 # Check whether --enable-verbose-makecmds was given.
5813 if test ${enable_verbose_makecmds+y}
5814 then :
5815   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5816 then
5817         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5818 printf "%s\n" "Disabling verbose make commands" >&6; }
5819         E=@echo
5820         ES=echo
5821         Q=@
5822 else
5823         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5824 printf "%s\n" "Enabling verbose make commands" >&6; }
5825         E=@\\#
5826         ES=\\#
5827         Q=
5828 fi
5829
5830 else $as_nop
5831   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5832 printf "%s\n" "Disabling verbose make commands" >&6; }
5833 E=@echo
5834 ES=echo
5835 Q=@
5836
5837 fi
5838
5839
5840
5841
5842 E2_PKG_CONFIG_STATIC=--static
5843 LDFLAG_DYNAMIC=
5844 PRIVATE_LIBS_CMT=
5845 # Check whether --enable-elf-shlibs was given.
5846 if test ${enable_elf_shlibs+y}
5847 then :
5848   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5849 then
5850         ELF_CMT=#
5851         MAKEFILE_ELF=/dev/null
5852         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5853 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5854 else
5855         E2_PKG_CONFIG_STATIC=
5856         ELF_CMT=
5857         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5858         case "$host_os" in
5859         solaris2.*)
5860                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5861         ;;
5862         esac
5863         BINARY_TYPE=elfbin
5864         LIB_EXT=.so
5865         PRIVATE_LIBS_CMT=#
5866         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5867         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5868 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5869 fi
5870
5871 else $as_nop
5872   MAKEFILE_ELF=/dev/null
5873 ELF_CMT=#
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5875 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5876
5877 fi
5878
5879
5880
5881 # Check whether --enable-bsd-shlibs was given.
5882 if test ${enable_bsd_shlibs+y}
5883 then :
5884   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5885 then
5886         BSDLIB_CMT=#
5887         MAKEFILE_BSDLIB=/dev/null
5888         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5889 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5890 else
5891         E2_PKG_CONFIG_STATIC=
5892         BSDLIB_CMT=
5893         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5894         LIB_EXT=.so
5895         case "$host_os" in
5896         darwin*)
5897                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5898                 LIB_EXT=.dylib
5899         ;;
5900         esac
5901         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5902 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5903 fi
5904
5905 else $as_nop
5906   MAKEFILE_BSDLIB=/dev/null
5907 BSDLIB_CMT=#
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5909 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5910
5911 fi
5912
5913
5914
5915 # Check whether --enable-profile was given.
5916 if test ${enable_profile+y}
5917 then :
5918   enableval=$enable_profile; if test "$enableval" = "no"
5919 then
5920         PROFILE_CMT=#
5921         MAKEFILE_PROFILE=/dev/null
5922         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5923 printf "%s\n" "Disabling profiling libraries" >&6; }
5924 else
5925         PROFILE_CMT=
5926         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5927         PROFILED_LIB_EXT=_p.a
5928         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5929 printf "%s\n" "Building profiling libraries" >&6; }
5930 fi
5931
5932 else $as_nop
5933   PROFILE_CMT=#
5934 MAKEFILE_PROFILE=/dev/null
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5936 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5937
5938 fi
5939
5940
5941
5942 # Check whether --enable-gcov was given.
5943 if test ${enable_gcov+y}
5944 then :
5945   enableval=$enable_gcov; if test "$enableval" = "yes"
5946 then
5947         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5948         LDFLAGS="-fprofile-arcs -ftest-coverage"
5949         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5950 printf "%s\n" "Enabling gcov support" >&6; }
5951 fi
5952
5953 fi
5954
5955 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5956 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5957 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5958 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5959 # Check whether --enable-hardening was given.
5960 if test ${enable_hardening+y}
5961 then :
5962   enableval=$enable_hardening; if test "$enableval" = "yes"
5963 then
5964         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5965         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5966         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5967         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5968         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5969         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5970         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5971         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5972         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5973 printf "%s\n" "Enabling hardening support" >&6; }
5974 fi
5975
5976 fi
5977
5978
5979
5980
5981
5982
5983 # Check whether --enable-jbd-debug was given.
5984 if test ${enable_jbd_debug+y}
5985 then :
5986   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5987 then
5988         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5989 printf "%s\n" "Disabling journal debugging" >&6; }
5990 else
5991
5992 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5993
5994         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5995 printf "%s\n" "Enabling journal debugging" >&6; }
5996 fi
5997
5998 else $as_nop
5999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
6000 printf "%s\n" "Disabling journal debugging by default" >&6; }
6001
6002 fi
6003
6004 # Check whether --enable-blkid-debug was given.
6005 if test ${enable_blkid_debug+y}
6006 then :
6007   enableval=$enable_blkid_debug; if test "$enableval" = "no"
6008 then
6009         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6010 printf "%s\n" "Disabling blkid debugging" >&6; }
6011 else
6012
6013 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6014
6015         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6016 printf "%s\n" "Enabling blkid debugging" >&6; }
6017 fi
6018
6019 else $as_nop
6020   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6021 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6022
6023 fi
6024
6025 # Check whether --enable-testio-debug was given.
6026 if test ${enable_testio_debug+y}
6027 then :
6028   enableval=$enable_testio_debug;
6029 if test "$enableval" = "no"
6030 then
6031         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6032 printf "%s\n" "Disabling testio debugging" >&6; }
6033         TEST_IO_CMT="#"
6034 else
6035         TEST_IO_CMT=
6036         printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6037
6038         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6039 printf "%s\n" "Enabling testio debugging" >&6; }
6040 fi
6041
6042 else $as_nop
6043   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6044 printf "%s\n" "Enabling testio debugging by default" >&6; }
6045 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6046
6047 TEST_IO_CMT=
6048
6049 fi
6050
6051
6052 # Check whether --enable-developer-features was given.
6053 if test ${enable_developer_features+y}
6054 then :
6055   enableval=$enable_developer_features;
6056 if test "$enableval" = "yes"
6057 then
6058         DEV_FEATURES_CMT=
6059         printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6060
6061         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6062 printf "%s\n" "Enabling ext4 developer features" >&6; }
6063 else
6064         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6065 printf "%s\n" "Disabling ext4 developer features" >&6; }
6066         DEV_FEATURES_CMT="#"
6067 fi
6068
6069 else $as_nop
6070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6071 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6072 DEV_FEATURES_CMT=
6073
6074 fi
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6085         if test -n "$ac_tool_prefix"; then
6086   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 printf %s "checking for $ac_word... " >&6; }
6090 if test ${ac_cv_path_PKG_CONFIG+y}
6091 then :
6092   printf %s "(cached) " >&6
6093 else $as_nop
6094   case $PKG_CONFIG in
6095   [\\/]* | ?:[\\/]*)
6096   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6097   ;;
6098   *)
6099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   case $as_dir in #(((
6104     '') as_dir=./ ;;
6105     */) ;;
6106     *) as_dir=$as_dir/ ;;
6107   esac
6108     for ac_exec_ext in '' $ac_executable_extensions; do
6109   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6110     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6111     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115   done
6116 IFS=$as_save_IFS
6117
6118   ;;
6119 esac
6120 fi
6121 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6122 if test -n "$PKG_CONFIG"; then
6123   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6124 printf "%s\n" "$PKG_CONFIG" >&6; }
6125 else
6126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 printf "%s\n" "no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_path_PKG_CONFIG"; then
6133   ac_pt_PKG_CONFIG=$PKG_CONFIG
6134   # Extract the first word of "pkg-config", so it can be a program name with args.
6135 set dummy pkg-config; ac_word=$2
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 printf %s "checking for $ac_word... " >&6; }
6138 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6139 then :
6140   printf %s "(cached) " >&6
6141 else $as_nop
6142   case $ac_pt_PKG_CONFIG in
6143   [\\/]* | ?:[\\/]*)
6144   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6145   ;;
6146   *)
6147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   case $as_dir in #(((
6152     '') as_dir=./ ;;
6153     */) ;;
6154     *) as_dir=$as_dir/ ;;
6155   esac
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6158     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6159     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165
6166   ;;
6167 esac
6168 fi
6169 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6170 if test -n "$ac_pt_PKG_CONFIG"; then
6171   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6172 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6173 else
6174   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 printf "%s\n" "no" >&6; }
6176 fi
6177
6178   if test "x$ac_pt_PKG_CONFIG" = x; then
6179     PKG_CONFIG=""
6180   else
6181     case $cross_compiling:$ac_tool_warned in
6182 yes:)
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6184 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185 ac_tool_warned=yes ;;
6186 esac
6187     PKG_CONFIG=$ac_pt_PKG_CONFIG
6188   fi
6189 else
6190   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6191 fi
6192
6193 fi
6194 if test -n "$PKG_CONFIG"; then
6195         _pkg_min_version=0.9.0
6196         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6197 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6198         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6199                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6200 printf "%s\n" "yes" >&6; }
6201         else
6202                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 printf "%s\n" "no" >&6; }
6204                 PKG_CONFIG=""
6205         fi
6206 fi
6207 LIBUUID=
6208 DEPLIBUUID=
6209 STATIC_LIBUUID=
6210 DEPSTATIC_LIBUUID=
6211 PROFILED_LIBUUID=
6212 DEPPROFILED_LIBUUID=
6213 UUID_CMT=
6214 # Check whether --enable-libuuid was given.
6215 if test ${enable_libuuid+y}
6216 then :
6217   enableval=$enable_libuuid; if test "$enableval" = "no"
6218 then
6219         if test -z "$PKG_CONFIG"; then
6220                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6221         fi
6222
6223         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6224 printf %s "checking for uuid_generate in -luuid... " >&6; }
6225 if test ${ac_cv_lib_uuid_uuid_generate+y}
6226 then :
6227   printf %s "(cached) " >&6
6228 else $as_nop
6229   ac_check_lib_save_LIBS=$LIBS
6230 LIBS="-luuid  $LIBS"
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h.  */
6233
6234 /* Override any GCC internal prototype to avoid an error.
6235    Use char because int might match the return type of a GCC
6236    builtin and then its argument prototype would still apply.  */
6237 char uuid_generate ();
6238 int
6239 main (void)
6240 {
6241 return uuid_generate ();
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 if ac_fn_c_try_link "$LINENO"
6247 then :
6248   ac_cv_lib_uuid_uuid_generate=yes
6249 else $as_nop
6250   ac_cv_lib_uuid_uuid_generate=no
6251 fi
6252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6253     conftest$ac_exeext conftest.$ac_ext
6254 LIBS=$ac_check_lib_save_LIBS
6255 fi
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6257 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6258 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6259 then :
6260   LIBUUID=`$PKG_CONFIG --libs uuid`;
6261                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6262 else $as_nop
6263   as_fn_error $? "external uuid library not found" "$LINENO" 5
6264 fi
6265
6266         PROFILED_LIBUUID=$LIBUUID
6267         UUID_CMT=#
6268         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6269 printf "%s\n" "Disabling private uuid library" >&6; }
6270 else
6271         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6272         DEPLIBUUID=$LIBUUID
6273         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6274         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6275         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6276         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6277         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6278 printf "%s\n" "Enabling private uuid library" >&6; }
6279 fi
6280
6281 else $as_nop
6282   if test -n "$PKG_CONFIG"; then
6283         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6284 printf %s "checking for uuid_generate in -luuid... " >&6; }
6285 if test ${ac_cv_lib_uuid_uuid_generate+y}
6286 then :
6287   printf %s "(cached) " >&6
6288 else $as_nop
6289   ac_check_lib_save_LIBS=$LIBS
6290 LIBS="-luuid  $LIBS"
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h.  */
6293
6294 /* Override any GCC internal prototype to avoid an error.
6295    Use char because int might match the return type of a GCC
6296    builtin and then its argument prototype would still apply.  */
6297 char uuid_generate ();
6298 int
6299 main (void)
6300 {
6301 return uuid_generate ();
6302   ;
6303   return 0;
6304 }
6305 _ACEOF
6306 if ac_fn_c_try_link "$LINENO"
6307 then :
6308   ac_cv_lib_uuid_uuid_generate=yes
6309 else $as_nop
6310   ac_cv_lib_uuid_uuid_generate=no
6311 fi
6312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6313     conftest$ac_exeext conftest.$ac_ext
6314 LIBS=$ac_check_lib_save_LIBS
6315 fi
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6317 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6318 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6319 then :
6320   LIBUUID=`$PKG_CONFIG --libs uuid`;
6321                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6322 fi
6323
6324 fi
6325 if test -n "$LIBUUID"; then
6326         PROFILED_LIBUUID=$LIBUUID
6327         UUID_CMT=#
6328         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6329 printf "%s\n" "Using system uuid by default" >&6; }
6330 else
6331         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6332         DEPLIBUUID=$LIBUUID
6333         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6334         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6335         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6336         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6337         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6338 printf "%s\n" "Enabling private uuid library by default" >&6; }
6339 fi
6340
6341 fi
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6358         if test -n "$ac_tool_prefix"; then
6359   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 printf %s "checking for $ac_word... " >&6; }
6363 if test ${ac_cv_path_PKG_CONFIG+y}
6364 then :
6365   printf %s "(cached) " >&6
6366 else $as_nop
6367   case $PKG_CONFIG in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   case $as_dir in #(((
6377     '') as_dir=./ ;;
6378     */) ;;
6379     *) as_dir=$as_dir/ ;;
6380   esac
6381     for ac_exec_ext in '' $ac_executable_extensions; do
6382   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6383     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6384     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6385     break 2
6386   fi
6387 done
6388   done
6389 IFS=$as_save_IFS
6390
6391   ;;
6392 esac
6393 fi
6394 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6395 if test -n "$PKG_CONFIG"; then
6396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6397 printf "%s\n" "$PKG_CONFIG" >&6; }
6398 else
6399   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 printf "%s\n" "no" >&6; }
6401 fi
6402
6403
6404 fi
6405 if test -z "$ac_cv_path_PKG_CONFIG"; then
6406   ac_pt_PKG_CONFIG=$PKG_CONFIG
6407   # Extract the first word of "pkg-config", so it can be a program name with args.
6408 set dummy pkg-config; ac_word=$2
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 printf %s "checking for $ac_word... " >&6; }
6411 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6412 then :
6413   printf %s "(cached) " >&6
6414 else $as_nop
6415   case $ac_pt_PKG_CONFIG in
6416   [\\/]* | ?:[\\/]*)
6417   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6418   ;;
6419   *)
6420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   case $as_dir in #(((
6425     '') as_dir=./ ;;
6426     */) ;;
6427     *) as_dir=$as_dir/ ;;
6428   esac
6429     for ac_exec_ext in '' $ac_executable_extensions; do
6430   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6431     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6432     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6433     break 2
6434   fi
6435 done
6436   done
6437 IFS=$as_save_IFS
6438
6439   ;;
6440 esac
6441 fi
6442 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6443 if test -n "$ac_pt_PKG_CONFIG"; then
6444   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6445 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6446 else
6447   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 printf "%s\n" "no" >&6; }
6449 fi
6450
6451   if test "x$ac_pt_PKG_CONFIG" = x; then
6452     PKG_CONFIG=""
6453   else
6454     case $cross_compiling:$ac_tool_warned in
6455 yes:)
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458 ac_tool_warned=yes ;;
6459 esac
6460     PKG_CONFIG=$ac_pt_PKG_CONFIG
6461   fi
6462 else
6463   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6464 fi
6465
6466 fi
6467 if test -n "$PKG_CONFIG"; then
6468         _pkg_min_version=0.9.0
6469         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6470 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6471         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6472                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6473 printf "%s\n" "yes" >&6; }
6474         else
6475                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 printf "%s\n" "no" >&6; }
6477                 PKG_CONFIG=""
6478         fi
6479 fi
6480 LIBBLKID=
6481 DEPLIBBLKID=
6482 STATIC_LIBBLKID=
6483 DEPSTATIC_LIBBLKID=
6484 PROFILED_LIBBLKID=
6485 DEPPROFILED_LIBBLKID=
6486 BLKID_CMT=
6487
6488 # Check whether --enable-libblkid was given.
6489 if test ${enable_libblkid+y}
6490 then :
6491   enableval=$enable_libblkid; if test "$enableval" = "no"
6492 then
6493         if test -z "$PKG_CONFIG"; then
6494                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6495         fi
6496
6497         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6498 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6499 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6500 then :
6501   printf %s "(cached) " >&6
6502 else $as_nop
6503   ac_check_lib_save_LIBS=$LIBS
6504 LIBS="-lblkid -luuid $LIBS"
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h.  */
6507
6508 /* Override any GCC internal prototype to avoid an error.
6509    Use char because int might match the return type of a GCC
6510    builtin and then its argument prototype would still apply.  */
6511 char blkid_get_cache ();
6512 int
6513 main (void)
6514 {
6515 return blkid_get_cache ();
6516   ;
6517   return 0;
6518 }
6519 _ACEOF
6520 if ac_fn_c_try_link "$LINENO"
6521 then :
6522   ac_cv_lib_blkid_blkid_get_cache=yes
6523 else $as_nop
6524   ac_cv_lib_blkid_blkid_get_cache=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6527     conftest$ac_exeext conftest.$ac_ext
6528 LIBS=$ac_check_lib_save_LIBS
6529 fi
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6531 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6532 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6533 then :
6534   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6535                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6536 else $as_nop
6537   as_fn_error $? "external blkid library not found" "$LINENO" 5
6538 fi
6539
6540         BLKID_CMT=#
6541         PROFILED_LIBBLKID=$LIBBLKID
6542         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6543 printf "%s\n" "Disabling private blkid library" >&6; }
6544 else
6545         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6546         DEPLIBBLKID=$LIBBLKID
6547         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6548         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6549         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6550         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6551         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6552
6553         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6554 printf "%s\n" "Enabling private blkid library" >&6; }
6555 fi
6556
6557 else $as_nop
6558   if test -n "$PKG_CONFIG"; then
6559         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6560 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6561 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6562 then :
6563   printf %s "(cached) " >&6
6564 else $as_nop
6565   ac_check_lib_save_LIBS=$LIBS
6566 LIBS="-lblkid  $LIBS"
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h.  */
6569
6570 /* Override any GCC internal prototype to avoid an error.
6571    Use char because int might match the return type of a GCC
6572    builtin and then its argument prototype would still apply.  */
6573 char blkid_get_cache ();
6574 int
6575 main (void)
6576 {
6577 return blkid_get_cache ();
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_link "$LINENO"
6583 then :
6584   ac_cv_lib_blkid_blkid_get_cache=yes
6585 else $as_nop
6586   ac_cv_lib_blkid_blkid_get_cache=no
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6589     conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6591 fi
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6593 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6594 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6595 then :
6596   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6597                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6598 fi
6599
6600 fi
6601 if test -n "$LIBBLKID"; then
6602         BLKID_CMT=#
6603         PROFILED_LIBBLKID=$LIBBLKID
6604         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6605 printf "%s\n" "Using system blkid library by default" >&6; }
6606 else
6607         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6608         DEPLIBBLKID=$LIBBLKID
6609         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6610         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6611         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6612         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6613         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6614
6615         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6616 printf "%s\n" "Enabling private blkid library by default" >&6; }
6617 fi
6618
6619 fi
6620
6621
6622
6623
6624
6625
6626
6627
6628 ALL_CMT=
6629 SUBSET_CMT=
6630 # Check whether --enable-subset was given.
6631 if test ${enable_subset+y}
6632 then :
6633   enableval=$enable_subset; if test "$enableval" = "no"
6634 then
6635         SUBSET_CMT=#
6636         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6637 printf "%s\n" "Disabling subset-only build" >&6; }
6638 else
6639         ALL_CMT=#
6640         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6641 printf "%s\n" "Enabling subset-only-build" >&6; }
6642 fi
6643
6644 fi
6645
6646
6647
6648
6649 # Check whether --enable-backtrace was given.
6650 if test ${enable_backtrace+y}
6651 then :
6652   enableval=$enable_backtrace; if test "$enableval" = "no"
6653 then
6654         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6655 printf "%s\n" "Disabling use of backtrace" >&6; }
6656         printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6657
6658 else
6659         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6660 printf "%s\n" "Enabling use of backtrace" >&6; }
6661 fi
6662
6663 else $as_nop
6664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6665 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6666
6667 fi
6668
6669 # Check whether --enable-debugfs was given.
6670 if test ${enable_debugfs+y}
6671 then :
6672   enableval=$enable_debugfs; if test "$enableval" = "no"
6673 then
6674         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6675 printf "%s\n" "Disabling debugfs support" >&6; }
6676         DEBUGFS_CMT="#"
6677 else
6678         DEBUGFS_CMT=
6679         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6680 printf "%s\n" "Enabling debugfs support" >&6; }
6681 fi
6682
6683 else $as_nop
6684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6685 printf "%s\n" "Enabling debugfs support by default" >&6; }
6686 DEBUGFS_CMT=
6687
6688 fi
6689
6690
6691 # Check whether --enable-imager was given.
6692 if test ${enable_imager+y}
6693 then :
6694   enableval=$enable_imager; if test "$enableval" = "no"
6695 then
6696         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6697 printf "%s\n" "Disabling e2image support" >&6; }
6698         IMAGER_CMT="#"
6699 else
6700         IMAGER_CMT=
6701         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6702 printf "%s\n" "Enabling e2image support" >&6; }
6703 fi
6704
6705 else $as_nop
6706   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6707 printf "%s\n" "Enabling e2image support by default" >&6; }
6708 IMAGER_CMT=
6709
6710 fi
6711
6712
6713 # Check whether --enable-resizer was given.
6714 if test ${enable_resizer+y}
6715 then :
6716   enableval=$enable_resizer; if test "$enableval" = "no"
6717 then
6718         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6719 printf "%s\n" "Disabling e2resize support" >&6; }
6720         RESIZER_CMT="#"
6721 else
6722         RESIZER_CMT=
6723         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6724 printf "%s\n" "Enabling e2resize support" >&6; }
6725 fi
6726
6727 else $as_nop
6728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6729 printf "%s\n" "Enabling e2resize support by default" >&6; }
6730 RESIZER_CMT=
6731
6732 fi
6733
6734
6735 # Check whether --enable-defrag was given.
6736 if test ${enable_defrag+y}
6737 then :
6738   enableval=$enable_defrag; if test "$enableval" = "no"
6739 then
6740         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6741 printf "%s\n" "Disabling e4defrag support" >&6; }
6742         DEFRAG_CMT="#"
6743 else
6744         DEFRAG_CMT=
6745         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6746 printf "%s\n" "Enabling e4defrag support" >&6; }
6747 fi
6748
6749 else $as_nop
6750   if test -z "$WITH_DIET_LIBC"
6751 then
6752         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6753 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6754         DEFRAG_CMT=
6755 else
6756         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6757 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6758         DEFRAG_CMT="#"
6759 fi
6760
6761 fi
6762
6763
6764 # Check whether --enable-fsck was given.
6765 if test ${enable_fsck+y}
6766 then :
6767   enableval=$enable_fsck; if test "$enableval" = "no"
6768 then
6769         FSCK_PROG='' FSCK_MAN=''
6770         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6771 printf "%s\n" "Not building fsck wrapper" >&6; }
6772 else
6773         FSCK_PROG=fsck FSCK_MAN=fsck.8
6774         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6775 printf "%s\n" "Building fsck wrapper" >&6; }
6776 fi
6777
6778 else $as_nop
6779   case "$host_os" in
6780   gnu*)
6781     FSCK_PROG='' FSCK_MAN=''
6782     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6783 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6784     ;;
6785   *)
6786     FSCK_PROG=fsck FSCK_MAN=fsck.8
6787     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6788 printf "%s\n" "Building fsck wrapper by default" >&6; }
6789 esac
6790
6791 fi
6792
6793
6794
6795 # Check whether --enable-e2initrd-helper was given.
6796 if test ${enable_e2initrd_helper+y}
6797 then :
6798   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6799 then
6800         E2INITRD_PROG='' E2INITRD_MAN=''
6801         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6802 printf "%s\n" "Not building e2initrd helper" >&6; }
6803 else
6804         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6805         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6806 printf "%s\n" "Building e2initrd helper" >&6; }
6807 fi
6808
6809 else $as_nop
6810   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6812 printf "%s\n" "Building e2initrd helper by default" >&6; }
6813
6814 fi
6815
6816
6817
6818 # Check whether --enable-tls was given.
6819 if test ${enable_tls+y}
6820 then :
6821   enableval=$enable_tls; if test "$enableval" = "no"
6822 then
6823         try_tls=""
6824         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6825 printf "%s\n" "Disabling thread local support" >&6; }
6826 else
6827         try_tls="yes"
6828         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6829 printf "%s\n" "Enabling thread local support" >&6; }
6830 fi
6831
6832 else $as_nop
6833   if test -n "$WITH_DIET_LIBC"
6834 then
6835         try_tls=""
6836         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6837 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6838 else
6839         try_tls="yes"
6840         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6841 printf "%s\n" "Try using thread local support by default" >&6; }
6842 fi
6843
6844 fi
6845
6846 if test "$try_tls" = "yes"
6847 then
6848
6849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6850 printf %s "checking for thread local storage (TLS) class... " >&6; }
6851   if test ${ac_cv_tls+y}
6852 then :
6853   printf %s "(cached) " >&6
6854 else $as_nop
6855
6856     ax_tls_keywords="__thread __declspec(thread) none"
6857     for ax_tls_keyword in $ax_tls_keywords; do
6858        case $ax_tls_keyword in
6859           none) ac_cv_tls=none ; break ;;
6860           *)
6861              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h.  */
6863 #include <stdlib.h>
6864                  static void
6865                  foo(void) {
6866                  static  $ax_tls_keyword  int bar;
6867                  exit(1);
6868                  }
6869 int
6870 main (void)
6871 {
6872
6873   ;
6874   return 0;
6875 }
6876 _ACEOF
6877 if ac_fn_c_try_compile "$LINENO"
6878 then :
6879   ac_cv_tls=$ax_tls_keyword ; break
6880 else $as_nop
6881   ac_cv_tls=none
6882
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6885           esac
6886     done
6887
6888 fi
6889
6890
6891   if test "$ac_cv_tls" != "none"; then
6892
6893 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6894
6895   fi
6896   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6897 printf "%s\n" "$ac_cv_tls" >&6; }
6898
6899 fi
6900
6901 # Check whether --with-pthread was given.
6902 if test ${with_pthread+y}
6903 then :
6904   withval=$with_pthread; if test "$withval" = "no"
6905 then
6906         try_pthread=""
6907         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6908 printf "%s\n" "Disabling pthread support" >&6; }
6909 else
6910         try_pthread="yes"
6911         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6912 printf "%s\n" "Testing for pthread support" >&6; }
6913 fi
6914
6915 else $as_nop
6916   try_pthread="yes"
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6918 printf "%s\n" "Try testing for pthread support by default" >&6; }
6919
6920 fi
6921
6922 if test "$try_pthread" = "yes"
6923 then
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6925 printf %s "checking for a sed that does not truncate output... " >&6; }
6926 if test ${ac_cv_path_SED+y}
6927 then :
6928   printf %s "(cached) " >&6
6929 else $as_nop
6930             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6931      for ac_i in 1 2 3 4 5 6 7; do
6932        ac_script="$ac_script$as_nl$ac_script"
6933      done
6934      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6935      { ac_script=; unset ac_script;}
6936      if test -z "$SED"; then
6937   ac_path_SED_found=false
6938   # Loop through the user's path and test for each of PROGNAME-LIST
6939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942   IFS=$as_save_IFS
6943   case $as_dir in #(((
6944     '') as_dir=./ ;;
6945     */) ;;
6946     *) as_dir=$as_dir/ ;;
6947   esac
6948     for ac_prog in sed gsed
6949    do
6950     for ac_exec_ext in '' $ac_executable_extensions; do
6951       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6952       as_fn_executable_p "$ac_path_SED" || continue
6953 # Check for GNU ac_path_SED and select it if it is found.
6954   # Check for GNU $ac_path_SED
6955 case `"$ac_path_SED" --version 2>&1` in
6956 *GNU*)
6957   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6958 *)
6959   ac_count=0
6960   printf %s 0123456789 >"conftest.in"
6961   while :
6962   do
6963     cat "conftest.in" "conftest.in" >"conftest.tmp"
6964     mv "conftest.tmp" "conftest.in"
6965     cp "conftest.in" "conftest.nl"
6966     printf "%s\n" '' >> "conftest.nl"
6967     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6968     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6969     as_fn_arith $ac_count + 1 && ac_count=$as_val
6970     if test $ac_count -gt ${ac_path_SED_max-0}; then
6971       # Best one so far, save it but keep looking for a better one
6972       ac_cv_path_SED="$ac_path_SED"
6973       ac_path_SED_max=$ac_count
6974     fi
6975     # 10*(2^10) chars as input seems more than enough
6976     test $ac_count -gt 10 && break
6977   done
6978   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6979 esac
6980
6981       $ac_path_SED_found && break 3
6982     done
6983   done
6984   done
6985 IFS=$as_save_IFS
6986   if test -z "$ac_cv_path_SED"; then
6987     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6988   fi
6989 else
6990   ac_cv_path_SED=$SED
6991 fi
6992
6993 fi
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6995 printf "%s\n" "$ac_cv_path_SED" >&6; }
6996  SED="$ac_cv_path_SED"
6997   rm -f conftest.sed
6998
6999
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7001 printf %s "checking for grep that handles long lines and -e... " >&6; }
7002 if test ${ac_cv_path_GREP+y}
7003 then :
7004   printf %s "(cached) " >&6
7005 else $as_nop
7006   if test -z "$GREP"; then
7007   ac_path_GREP_found=false
7008   # Loop through the user's path and test for each of PROGNAME-LIST
7009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7011 do
7012   IFS=$as_save_IFS
7013   case $as_dir in #(((
7014     '') as_dir=./ ;;
7015     */) ;;
7016     *) as_dir=$as_dir/ ;;
7017   esac
7018     for ac_prog in grep ggrep
7019    do
7020     for ac_exec_ext in '' $ac_executable_extensions; do
7021       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7022       as_fn_executable_p "$ac_path_GREP" || continue
7023 # Check for GNU ac_path_GREP and select it if it is found.
7024   # Check for GNU $ac_path_GREP
7025 case `"$ac_path_GREP" --version 2>&1` in
7026 *GNU*)
7027   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7028 *)
7029   ac_count=0
7030   printf %s 0123456789 >"conftest.in"
7031   while :
7032   do
7033     cat "conftest.in" "conftest.in" >"conftest.tmp"
7034     mv "conftest.tmp" "conftest.in"
7035     cp "conftest.in" "conftest.nl"
7036     printf "%s\n" 'GREP' >> "conftest.nl"
7037     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7038     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7039     as_fn_arith $ac_count + 1 && ac_count=$as_val
7040     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7041       # Best one so far, save it but keep looking for a better one
7042       ac_cv_path_GREP="$ac_path_GREP"
7043       ac_path_GREP_max=$ac_count
7044     fi
7045     # 10*(2^10) chars as input seems more than enough
7046     test $ac_count -gt 10 && break
7047   done
7048   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7049 esac
7050
7051       $ac_path_GREP_found && break 3
7052     done
7053   done
7054   done
7055 IFS=$as_save_IFS
7056   if test -z "$ac_cv_path_GREP"; then
7057     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7058   fi
7059 else
7060   ac_cv_path_GREP=$GREP
7061 fi
7062
7063 fi
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7065 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7066  GREP="$ac_cv_path_GREP"
7067
7068
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7070 printf %s "checking for egrep... " >&6; }
7071 if test ${ac_cv_path_EGREP+y}
7072 then :
7073   printf %s "(cached) " >&6
7074 else $as_nop
7075   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7076    then ac_cv_path_EGREP="$GREP -E"
7077    else
7078      if test -z "$EGREP"; then
7079   ac_path_EGREP_found=false
7080   # Loop through the user's path and test for each of PROGNAME-LIST
7081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7083 do
7084   IFS=$as_save_IFS
7085   case $as_dir in #(((
7086     '') as_dir=./ ;;
7087     */) ;;
7088     *) as_dir=$as_dir/ ;;
7089   esac
7090     for ac_prog in egrep
7091    do
7092     for ac_exec_ext in '' $ac_executable_extensions; do
7093       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7094       as_fn_executable_p "$ac_path_EGREP" || continue
7095 # Check for GNU ac_path_EGREP and select it if it is found.
7096   # Check for GNU $ac_path_EGREP
7097 case `"$ac_path_EGREP" --version 2>&1` in
7098 *GNU*)
7099   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7100 *)
7101   ac_count=0
7102   printf %s 0123456789 >"conftest.in"
7103   while :
7104   do
7105     cat "conftest.in" "conftest.in" >"conftest.tmp"
7106     mv "conftest.tmp" "conftest.in"
7107     cp "conftest.in" "conftest.nl"
7108     printf "%s\n" 'EGREP' >> "conftest.nl"
7109     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7110     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7111     as_fn_arith $ac_count + 1 && ac_count=$as_val
7112     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7113       # Best one so far, save it but keep looking for a better one
7114       ac_cv_path_EGREP="$ac_path_EGREP"
7115       ac_path_EGREP_max=$ac_count
7116     fi
7117     # 10*(2^10) chars as input seems more than enough
7118     test $ac_count -gt 10 && break
7119   done
7120   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7121 esac
7122
7123       $ac_path_EGREP_found && break 3
7124     done
7125   done
7126   done
7127 IFS=$as_save_IFS
7128   if test -z "$ac_cv_path_EGREP"; then
7129     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7130   fi
7131 else
7132   ac_cv_path_EGREP=$EGREP
7133 fi
7134
7135    fi
7136 fi
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7138 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7139  EGREP="$ac_cv_path_EGREP"
7140
7141
7142
7143
7144
7145
7146 ac_ext=c
7147 ac_cpp='$CPP $CPPFLAGS'
7148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151
7152 ax_pthread_ok=no
7153
7154 # We used to check for pthread.h first, but this fails if pthread.h
7155 # requires special compiler flags (e.g. on Tru64 or Sequent).
7156 # It gets checked for in the link test anyway.
7157
7158 # First of all, check if the user has set any of the PTHREAD_LIBS,
7159 # etcetera environment variables, and if threads linking works using
7160 # them:
7161 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7162         ax_pthread_save_CC="$CC"
7163         ax_pthread_save_CFLAGS="$CFLAGS"
7164         ax_pthread_save_LIBS="$LIBS"
7165         if test "x$PTHREAD_CC" != "x"
7166 then :
7167   CC="$PTHREAD_CC"
7168 fi
7169         if test "x$PTHREAD_CXX" != "x"
7170 then :
7171   CXX="$PTHREAD_CXX"
7172 fi
7173         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7174         LIBS="$PTHREAD_LIBS $LIBS"
7175         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7176 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7177         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h.  */
7179
7180 /* Override any GCC internal prototype to avoid an error.
7181    Use char because int might match the return type of a GCC
7182    builtin and then its argument prototype would still apply.  */
7183 char pthread_join ();
7184 int
7185 main (void)
7186 {
7187 return pthread_join ();
7188   ;
7189   return 0;
7190 }
7191 _ACEOF
7192 if ac_fn_c_try_link "$LINENO"
7193 then :
7194   ax_pthread_ok=yes
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7197     conftest$ac_exeext conftest.$ac_ext
7198         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7199 printf "%s\n" "$ax_pthread_ok" >&6; }
7200         if test "x$ax_pthread_ok" = "xno"; then
7201                 PTHREAD_LIBS=""
7202                 PTHREAD_CFLAGS=""
7203         fi
7204         CC="$ax_pthread_save_CC"
7205         CFLAGS="$ax_pthread_save_CFLAGS"
7206         LIBS="$ax_pthread_save_LIBS"
7207 fi
7208
7209 # We must check for the threads library under a number of different
7210 # names; the ordering is very important because some systems
7211 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7212 # libraries is broken (non-POSIX).
7213
7214 # Create a list of thread flags to try. Items with a "," contain both
7215 # C compiler flags (before ",") and linker flags (after ","). Other items
7216 # starting with a "-" are C compiler flags, and remaining items are
7217 # library names, except for "none" which indicates that we try without
7218 # any flags at all, and "pthread-config" which is a program returning
7219 # the flags for the Pth emulation library.
7220
7221 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7222
7223 # The ordering *is* (sometimes) important.  Some notes on the
7224 # individual items follow:
7225
7226 # pthreads: AIX (must check this before -lpthread)
7227 # none: in case threads are in libc; should be tried before -Kthread and
7228 #       other compiler flags to prevent continual compiler warnings
7229 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7230 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7231 #           (Note: HP C rejects this with "bad form for `-t' option")
7232 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7233 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7234 #      doesn't hurt to check since this sometimes defines pthreads and
7235 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7236 #      is present but should not be used directly; and before -mthreads,
7237 #      because the compiler interprets this as "-mt" + "-hreads")
7238 # -mthreads: Mingw32/gcc, Lynx/gcc
7239 # pthread: Linux, etcetera
7240 # --thread-safe: KAI C++
7241 # pthread-config: use pthread-config program (for GNU Pth library)
7242
7243 case $host_os in
7244
7245         freebsd*)
7246
7247         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7248         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7249
7250         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7251         ;;
7252
7253         hpux*)
7254
7255         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7256         # multi-threading and also sets -lpthread."
7257
7258         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7259         ;;
7260
7261         openedition*)
7262
7263         # IBM z/OS requires a feature-test macro to be defined in order to
7264         # enable POSIX threads at all, so give the user a hint if this is
7265         # not set. (We don't define these ourselves, as they can affect
7266         # other portions of the system API in unpredictable ways.)
7267
7268         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h.  */
7270
7271 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7272              AX_PTHREAD_ZOS_MISSING
7273 #            endif
7274
7275 _ACEOF
7276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7277   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7278 then :
7279   { 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
7280 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7281 fi
7282 rm -rf conftest*
7283
7284         ;;
7285
7286         solaris*)
7287
7288         # On Solaris (at least, for some versions), libc contains stubbed
7289         # (non-functional) versions of the pthreads routines, so link-based
7290         # tests will erroneously succeed. (N.B.: The stubs are missing
7291         # pthread_cleanup_push, or rather a function called by this macro,
7292         # so we could check for that, but who knows whether they'll stub
7293         # that too in a future libc.)  So we'll check first for the
7294         # standard Solaris way of linking pthreads (-mt -lpthread).
7295
7296         ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7297         ;;
7298 esac
7299
7300 # Are we compiling with Clang?
7301
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7303 printf %s "checking whether $CC is Clang... " >&6; }
7304 if test ${ax_cv_PTHREAD_CLANG+y}
7305 then :
7306   printf %s "(cached) " >&6
7307 else $as_nop
7308   ax_cv_PTHREAD_CLANG=no
7309      # Note that Autoconf sets GCC=yes for Clang as well as GCC
7310      if test "x$GCC" = "xyes"; then
7311         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h.  */
7313 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7314 #            if defined(__clang__) && defined(__llvm__)
7315              AX_PTHREAD_CC_IS_CLANG
7316 #            endif
7317
7318 _ACEOF
7319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7321 then :
7322   ax_cv_PTHREAD_CLANG=yes
7323 fi
7324 rm -rf conftest*
7325
7326      fi
7327
7328 fi
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7330 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7331 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7332
7333
7334 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7335
7336 # Note that for GCC and Clang -pthread generally implies -lpthread,
7337 # except when -nostdlib is passed.
7338 # This is problematic using libtool to build C++ shared libraries with pthread:
7339 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7340 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7341 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7342 # To solve this, first try -pthread together with -lpthread for GCC
7343
7344 if test "x$GCC" = "xyes"
7345 then :
7346   ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7347 fi
7348
7349 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7350
7351 if test "x$ax_pthread_clang" = "xyes"
7352 then :
7353   ax_pthread_flags="-pthread,-lpthread -pthread"
7354 fi
7355
7356
7357 # The presence of a feature test macro requesting re-entrant function
7358 # definitions is, on some systems, a strong hint that pthreads support is
7359 # correctly enabled
7360
7361 case $host_os in
7362         darwin* | hpux* | linux* | osf* | solaris*)
7363         ax_pthread_check_macro="_REENTRANT"
7364         ;;
7365
7366         aix*)
7367         ax_pthread_check_macro="_THREAD_SAFE"
7368         ;;
7369
7370         *)
7371         ax_pthread_check_macro="--"
7372         ;;
7373 esac
7374 if test "x$ax_pthread_check_macro" = "x--"
7375 then :
7376   ax_pthread_check_cond=0
7377 else $as_nop
7378   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7379 fi
7380
7381
7382 if test "x$ax_pthread_ok" = "xno"; then
7383 for ax_pthread_try_flag in $ax_pthread_flags; do
7384
7385         case $ax_pthread_try_flag in
7386                 none)
7387                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7388 printf %s "checking whether pthreads work without any flags... " >&6; }
7389                 ;;
7390
7391                 *,*)
7392                 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7393                 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7394                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7395 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7396                 ;;
7397
7398                 -*)
7399                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7400 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7401                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7402                 ;;
7403
7404                 pthread-config)
7405                 # Extract the first word of "pthread-config", so it can be a program name with args.
7406 set dummy pthread-config; ac_word=$2
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 printf %s "checking for $ac_word... " >&6; }
7409 if test ${ac_cv_prog_ax_pthread_config+y}
7410 then :
7411   printf %s "(cached) " >&6
7412 else $as_nop
7413   if test -n "$ax_pthread_config"; then
7414   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   case $as_dir in #(((
7421     '') as_dir=./ ;;
7422     */) ;;
7423     *) as_dir=$as_dir/ ;;
7424   esac
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7427     ac_cv_prog_ax_pthread_config="yes"
7428     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434
7435   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7436 fi
7437 fi
7438 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7439 if test -n "$ax_pthread_config"; then
7440   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7441 printf "%s\n" "$ax_pthread_config" >&6; }
7442 else
7443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 printf "%s\n" "no" >&6; }
7445 fi
7446
7447
7448                 if test "x$ax_pthread_config" = "xno"
7449 then :
7450   continue
7451 fi
7452                 PTHREAD_CFLAGS="`pthread-config --cflags`"
7453                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7454                 ;;
7455
7456                 *)
7457                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7458 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7459                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7460                 ;;
7461         esac
7462
7463         ax_pthread_save_CFLAGS="$CFLAGS"
7464         ax_pthread_save_LIBS="$LIBS"
7465         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7466         LIBS="$PTHREAD_LIBS $LIBS"
7467
7468         # Check for various functions.  We must include pthread.h,
7469         # since some functions may be macros.  (On the Sequent, we
7470         # need a special flag -Kthread to make this header compile.)
7471         # We check for pthread_join because it is in -lpthread on IRIX
7472         # while pthread_create is in libc.  We check for pthread_attr_init
7473         # due to DEC craziness with -lpthreads.  We check for
7474         # pthread_cleanup_push because it is one of the few pthread
7475         # functions on Solaris that doesn't have a non-functional libc stub.
7476         # We try pthread_create on general principles.
7477
7478         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h.  */
7480 #include <pthread.h>
7481 #                       if $ax_pthread_check_cond
7482 #                        error "$ax_pthread_check_macro must be defined"
7483 #                       endif
7484                         static void *some_global = NULL;
7485                         static void routine(void *a)
7486                           {
7487                              /* To avoid any unused-parameter or
7488                                 unused-but-set-parameter warning.  */
7489                              some_global = a;
7490                           }
7491                         static void *start_routine(void *a) { return a; }
7492 int
7493 main (void)
7494 {
7495 pthread_t th; pthread_attr_t attr;
7496                         pthread_create(&th, 0, start_routine, 0);
7497                         pthread_join(th, 0);
7498                         pthread_attr_init(&attr);
7499                         pthread_cleanup_push(routine, 0);
7500                         pthread_cleanup_pop(0) /* ; */
7501   ;
7502   return 0;
7503 }
7504 _ACEOF
7505 if ac_fn_c_try_link "$LINENO"
7506 then :
7507   ax_pthread_ok=yes
7508 fi
7509 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7510     conftest$ac_exeext conftest.$ac_ext
7511
7512         CFLAGS="$ax_pthread_save_CFLAGS"
7513         LIBS="$ax_pthread_save_LIBS"
7514
7515         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7516 printf "%s\n" "$ax_pthread_ok" >&6; }
7517         if test "x$ax_pthread_ok" = "xyes"
7518 then :
7519   break
7520 fi
7521
7522         PTHREAD_LIBS=""
7523         PTHREAD_CFLAGS=""
7524 done
7525 fi
7526
7527
7528 # Clang needs special handling, because older versions handle the -pthread
7529 # option in a rather... idiosyncratic way
7530
7531 if test "x$ax_pthread_clang" = "xyes"; then
7532
7533         # Clang takes -pthread; it has never supported any other flag
7534
7535         # (Note 1: This will need to be revisited if a system that Clang
7536         # supports has POSIX threads in a separate library.  This tends not
7537         # to be the way of modern systems, but it's conceivable.)
7538
7539         # (Note 2: On some systems, notably Darwin, -pthread is not needed
7540         # to get POSIX threads support; the API is always present and
7541         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7542         # -pthread does define _REENTRANT, and while the Darwin headers
7543         # ignore this macro, third-party headers might not.)
7544
7545         # However, older versions of Clang make a point of warning the user
7546         # that, in an invocation where only linking and no compilation is
7547         # taking place, the -pthread option has no effect ("argument unused
7548         # during compilation").  They expect -pthread to be passed in only
7549         # when source code is being compiled.
7550         #
7551         # Problem is, this is at odds with the way Automake and most other
7552         # C build frameworks function, which is that the same flags used in
7553         # compilation (CFLAGS) are also used in linking.  Many systems
7554         # supported by AX_PTHREAD require exactly this for POSIX threads
7555         # support, and in fact it is often not straightforward to specify a
7556         # flag that is used only in the compilation phase and not in
7557         # linking.  Such a scenario is extremely rare in practice.
7558         #
7559         # Even though use of the -pthread flag in linking would only print
7560         # a warning, this can be a nuisance for well-run software projects
7561         # that build with -Werror.  So if the active version of Clang has
7562         # this misfeature, we search for an option to squash it.
7563
7564         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7565 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7566 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7567 then :
7568   printf %s "(cached) " >&6
7569 else $as_nop
7570   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7571              # Create an alternate version of $ac_link that compiles and
7572              # links in two steps (.c -> .o, .o -> exe) instead of one
7573              # (.c -> exe), because the warning occurs only in the second
7574              # step
7575              ax_pthread_save_ac_link="$ac_link"
7576              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7577              ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7578              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7579              ax_pthread_save_CFLAGS="$CFLAGS"
7580              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7581                 if test "x$ax_pthread_try" = "xunknown"
7582 then :
7583   break
7584 fi
7585                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7586                 ac_link="$ax_pthread_save_ac_link"
7587                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h.  */
7589 int main(void){return 0;}
7590 _ACEOF
7591 if ac_fn_c_try_link "$LINENO"
7592 then :
7593   ac_link="$ax_pthread_2step_ac_link"
7594                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h.  */
7596 int main(void){return 0;}
7597 _ACEOF
7598 if ac_fn_c_try_link "$LINENO"
7599 then :
7600   break
7601 fi
7602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7603     conftest$ac_exeext conftest.$ac_ext
7604
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7607     conftest$ac_exeext conftest.$ac_ext
7608              done
7609              ac_link="$ax_pthread_save_ac_link"
7610              CFLAGS="$ax_pthread_save_CFLAGS"
7611              if test "x$ax_pthread_try" = "x"
7612 then :
7613   ax_pthread_try=no
7614 fi
7615              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7616
7617 fi
7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7619 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7620
7621         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7622                 no | unknown) ;;
7623                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7624         esac
7625
7626 fi # $ax_pthread_clang = yes
7627
7628
7629
7630 # Various other checks:
7631 if test "x$ax_pthread_ok" = "xyes"; then
7632         ax_pthread_save_CFLAGS="$CFLAGS"
7633         ax_pthread_save_LIBS="$LIBS"
7634         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7635         LIBS="$PTHREAD_LIBS $LIBS"
7636
7637         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7638         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7639 printf %s "checking for joinable pthread attribute... " >&6; }
7640 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7641 then :
7642   printf %s "(cached) " >&6
7643 else $as_nop
7644   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7645              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7646                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h.  */
7648 #include <pthread.h>
7649 int
7650 main (void)
7651 {
7652 int attr = $ax_pthread_attr; return attr /* ; */
7653   ;
7654   return 0;
7655 }
7656 _ACEOF
7657 if ac_fn_c_try_link "$LINENO"
7658 then :
7659   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7660 fi
7661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7662     conftest$ac_exeext conftest.$ac_ext
7663              done
7664
7665 fi
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7667 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7668         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7669                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7670                test "x$ax_pthread_joinable_attr_defined" != "xyes"
7671 then :
7672
7673 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7674
7675                ax_pthread_joinable_attr_defined=yes
7676
7677 fi
7678
7679         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7680 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7681 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7682 then :
7683   printf %s "(cached) " >&6
7684 else $as_nop
7685   ax_cv_PTHREAD_SPECIAL_FLAGS=no
7686              case $host_os in
7687              solaris*)
7688              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7689              ;;
7690              esac
7691
7692 fi
7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7694 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7695         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7696                test "x$ax_pthread_special_flags_added" != "xyes"
7697 then :
7698   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7699                ax_pthread_special_flags_added=yes
7700 fi
7701
7702         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7703 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7704 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7705 then :
7706   printf %s "(cached) " >&6
7707 else $as_nop
7708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h.  */
7710 #include <pthread.h>
7711 int
7712 main (void)
7713 {
7714 int i = PTHREAD_PRIO_INHERIT;
7715                                                return i;
7716   ;
7717   return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_link "$LINENO"
7721 then :
7722   ax_cv_PTHREAD_PRIO_INHERIT=yes
7723 else $as_nop
7724   ax_cv_PTHREAD_PRIO_INHERIT=no
7725 fi
7726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7727     conftest$ac_exeext conftest.$ac_ext
7728
7729 fi
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7731 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7732         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7733                test "x$ax_pthread_prio_inherit_defined" != "xyes"
7734 then :
7735
7736 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7737
7738                ax_pthread_prio_inherit_defined=yes
7739
7740 fi
7741
7742         CFLAGS="$ax_pthread_save_CFLAGS"
7743         LIBS="$ax_pthread_save_LIBS"
7744
7745         # More AIX lossage: compile with *_r variant
7746         if test "x$GCC" != "xyes"; then
7747             case $host_os in
7748                 aix*)
7749                 case "x/$CC" in #(
7750   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7751     #handle absolute path differently from PATH based program lookup
7752                      case "x$CC" in #(
7753   x/*) :
7754
7755                            if as_fn_executable_p ${CC}_r
7756 then :
7757   PTHREAD_CC="${CC}_r"
7758 fi
7759                            if test "x${CXX}" != "x"
7760 then :
7761   if as_fn_executable_p ${CXX}_r
7762 then :
7763   PTHREAD_CXX="${CXX}_r"
7764 fi
7765 fi
7766                           ;; #(
7767   *) :
7768
7769                            for ac_prog in ${CC}_r
7770 do
7771   # Extract the first word of "$ac_prog", so it can be a program name with args.
7772 set dummy $ac_prog; ac_word=$2
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 printf %s "checking for $ac_word... " >&6; }
7775 if test ${ac_cv_prog_PTHREAD_CC+y}
7776 then :
7777   printf %s "(cached) " >&6
7778 else $as_nop
7779   if test -n "$PTHREAD_CC"; then
7780   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   case $as_dir in #(((
7787     '') as_dir=./ ;;
7788     */) ;;
7789     *) as_dir=$as_dir/ ;;
7790   esac
7791     for ac_exec_ext in '' $ac_executable_extensions; do
7792   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7793     ac_cv_prog_PTHREAD_CC="$ac_prog"
7794     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798   done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7804 if test -n "$PTHREAD_CC"; then
7805   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7806 printf "%s\n" "$PTHREAD_CC" >&6; }
7807 else
7808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 printf "%s\n" "no" >&6; }
7810 fi
7811
7812
7813   test -n "$PTHREAD_CC" && break
7814 done
7815 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7816
7817                            if test "x${CXX}" != "x"
7818 then :
7819   for ac_prog in ${CXX}_r
7820 do
7821   # Extract the first word of "$ac_prog", so it can be a program name with args.
7822 set dummy $ac_prog; ac_word=$2
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 printf %s "checking for $ac_word... " >&6; }
7825 if test ${ac_cv_prog_PTHREAD_CXX+y}
7826 then :
7827   printf %s "(cached) " >&6
7828 else $as_nop
7829   if test -n "$PTHREAD_CXX"; then
7830   ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835   IFS=$as_save_IFS
7836   case $as_dir in #(((
7837     '') as_dir=./ ;;
7838     */) ;;
7839     *) as_dir=$as_dir/ ;;
7840   esac
7841     for ac_exec_ext in '' $ac_executable_extensions; do
7842   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7843     ac_cv_prog_PTHREAD_CXX="$ac_prog"
7844     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7845     break 2
7846   fi
7847 done
7848   done
7849 IFS=$as_save_IFS
7850
7851 fi
7852 fi
7853 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7854 if test -n "$PTHREAD_CXX"; then
7855   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7856 printf "%s\n" "$PTHREAD_CXX" >&6; }
7857 else
7858   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 printf "%s\n" "no" >&6; }
7860 fi
7861
7862
7863   test -n "$PTHREAD_CXX" && break
7864 done
7865 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7866
7867 fi
7868
7869                       ;;
7870 esac
7871                      ;; #(
7872   *) :
7873      ;;
7874 esac
7875                 ;;
7876             esac
7877         fi
7878 fi
7879
7880 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7881 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7882
7883
7884
7885
7886
7887
7888 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7889 if test "x$ax_pthread_ok" = "xyes"; then
7890
7891 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7892
7893         :
7894 else
7895         ax_pthread_ok=no
7896
7897 fi
7898 ac_ext=c
7899 ac_cpp='$CPP $CPPFLAGS'
7900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904
7905 else
7906 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7907
7908 fi
7909
7910 # Check whether --enable-uuidd was given.
7911 if test ${enable_uuidd+y}
7912 then :
7913   enableval=$enable_uuidd; if test "$enableval" = "no"
7914 then
7915         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7916 printf "%s\n" "Not building uuidd" >&6; }
7917         UUIDD_CMT="#"
7918 else
7919         printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7920
7921         UUIDD_CMT=""
7922         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7923 printf "%s\n" "Building uuidd" >&6; }
7924 fi
7925
7926 else $as_nop
7927   printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7928
7929 if test -z "$UUID_CMT"
7930 then
7931         UUIDD_CMT=""
7932         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7933 printf "%s\n" "Building uuidd by default" >&6; }
7934 else
7935         UUIDD_CMT="#"
7936         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7937 printf "%s\n" "Disabling uuidd by default" >&6; }
7938 fi
7939
7940 fi
7941
7942
7943
7944 # Check whether --enable-mmp was given.
7945 if test ${enable_mmp+y}
7946 then :
7947   enableval=$enable_mmp; if test "$enableval" = "no"
7948 then
7949         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7950 printf "%s\n" "Disabling mmp support" >&6; }
7951 else
7952         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7953 printf "%s\n" "Enabling mmp support" >&6; }
7954         printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7955
7956 fi
7957
7958 else $as_nop
7959   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7960 printf "%s\n" "Enabling mmp support by default" >&6; }
7961 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7962
7963
7964 fi
7965
7966
7967 # Check whether --enable-tdb was given.
7968 if test ${enable_tdb+y}
7969 then :
7970   enableval=$enable_tdb;
7971 if test "$enableval" = "no"
7972 then
7973         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7974 printf "%s\n" "Disabling tdb support" >&6; }
7975         CONFIG_TDB=0
7976 else
7977         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7978 printf "%s\n" "Enabling tdb support" >&6; }
7979         CONFIG_TDB=1
7980 fi
7981
7982
7983 else $as_nop
7984
7985 case "$host_os" in
7986 mingw*)
7987         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7988 printf "%s\n" "Disabling tdb support by default" >&6; }
7989         CONFIG_TDB=0
7990         ;;
7991 *)
7992         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7993 printf "%s\n" "Enabling tdb support by default" >&6; }
7994         CONFIG_TDB=1
7995         ;;
7996 esac
7997
7998
7999 fi
8000
8001 if test "$CONFIG_TDB" = "1"
8002 then
8003         printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8004
8005         TDB_CMT=""
8006         TDB_MAN_COMMENT=""
8007 else
8008         TDB_CMT="#"
8009         TDB_MAN_COMMENT='.\"'
8010 fi
8011
8012
8013
8014 # Check whether --enable-bmap-stats was given.
8015 if test ${enable_bmap_stats+y}
8016 then :
8017   enableval=$enable_bmap_stats; if test "$enableval" = "no"
8018 then
8019         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8020 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8021 else
8022         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8023 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8024         printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8025
8026 fi
8027
8028 else $as_nop
8029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8030 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8031 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8032
8033
8034 fi
8035
8036
8037 # Check whether --enable-bmap-stats-ops was given.
8038 if test ${enable_bmap_stats_ops+y}
8039 then :
8040   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8041 then
8042         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8043 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8044 else
8045                 if test "x${enable_bmap_stats}" = "xno"
8046 then :
8047   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8048 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8049 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8050 See \`config.log' for more details" "$LINENO" 5; }
8051 fi
8052
8053         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8054 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8055         printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8056
8057 fi
8058
8059 else $as_nop
8060   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8061 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8062
8063 fi
8064
8065 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8066
8067 GETTEXT_PACKAGE=e2fsprogs
8068 PACKAGE=e2fsprogs
8069 VERSION="$E2FSPROGS_VERSION"
8070 VERSION=0.14.1
8071
8072 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8073
8074
8075 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8076
8077
8078
8079
8080
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8082 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8083 set x ${MAKE-make}
8084 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8085 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8086 then :
8087   printf %s "(cached) " >&6
8088 else $as_nop
8089   cat >conftest.make <<\_ACEOF
8090 SHELL = /bin/sh
8091 all:
8092         @echo '@@@%%%=$(MAKE)=@@@%%%'
8093 _ACEOF
8094 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8096   *@@@%%%=?*=@@@%%%*)
8097     eval ac_cv_prog_make_${ac_make}_set=yes;;
8098   *)
8099     eval ac_cv_prog_make_${ac_make}_set=no;;
8100 esac
8101 rm -f conftest.make
8102 fi
8103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8105 printf "%s\n" "yes" >&6; }
8106   SET_MAKE=
8107 else
8108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 printf "%s\n" "no" >&6; }
8110   SET_MAKE="MAKE=${MAKE-make}"
8111 fi
8112
8113
8114   # Find a good install program.  We prefer a C program (faster),
8115 # so one script is as good as another.  But avoid the broken or
8116 # incompatible versions:
8117 # SysV /etc/install, /usr/sbin/install
8118 # SunOS /usr/etc/install
8119 # IRIX /sbin/install
8120 # AIX /bin/install
8121 # AmigaOS /C/install, which installs bootblocks on floppy discs
8122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8125 # OS/2's system install, which has a completely different semantic
8126 # ./install, which can be erroneously created by make from ./install.sh.
8127 # Reject install programs that cannot install multiple files.
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8129 printf %s "checking for a BSD-compatible install... " >&6; }
8130 if test -z "$INSTALL"; then
8131 if test ${ac_cv_path_install+y}
8132 then :
8133   printf %s "(cached) " >&6
8134 else $as_nop
8135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   case $as_dir in #(((
8140     '') as_dir=./ ;;
8141     */) ;;
8142     *) as_dir=$as_dir/ ;;
8143   esac
8144     # Account for fact that we put trailing slashes in our PATH walk.
8145 case $as_dir in #((
8146   ./ | /[cC]/* | \
8147   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8148   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8149   /usr/ucb/* ) ;;
8150   *)
8151     # OSF1 and SCO ODT 3.0 have their own names for install.
8152     # Don't use installbsd from OSF since it installs stuff as root
8153     # by default.
8154     for ac_prog in ginstall scoinst install; do
8155       for ac_exec_ext in '' $ac_executable_extensions; do
8156         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8157           if test $ac_prog = install &&
8158             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8159             # AIX install.  It has an incompatible calling convention.
8160             :
8161           elif test $ac_prog = install &&
8162             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8163             # program-specific install script used by HP pwplus--don't use.
8164             :
8165           else
8166             rm -rf conftest.one conftest.two conftest.dir
8167             echo one > conftest.one
8168             echo two > conftest.two
8169             mkdir conftest.dir
8170             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8171               test -s conftest.one && test -s conftest.two &&
8172               test -s conftest.dir/conftest.one &&
8173               test -s conftest.dir/conftest.two
8174             then
8175               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8176               break 3
8177             fi
8178           fi
8179         fi
8180       done
8181     done
8182     ;;
8183 esac
8184
8185   done
8186 IFS=$as_save_IFS
8187
8188 rm -rf conftest.one conftest.two conftest.dir
8189
8190 fi
8191   if test ${ac_cv_path_install+y}; then
8192     INSTALL=$ac_cv_path_install
8193   else
8194     # As a last resort, use the slow shell script.  Don't cache a
8195     # value for INSTALL within a source directory, because that will
8196     # break other packages using the cache if that directory is
8197     # removed, or if the value is a relative name.
8198     INSTALL=$ac_install_sh
8199   fi
8200 fi
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8202 printf "%s\n" "$INSTALL" >&6; }
8203
8204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8205 # It thinks the first close brace ends the variable substitution.
8206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8207
8208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8209
8210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8211
8212
8213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8214 printf %s "checking for a race-free mkdir -p... " >&6; }
8215 if test -z "$MKDIR_P"; then
8216   if test ${ac_cv_path_mkdir+y}
8217 then :
8218   printf %s "(cached) " >&6
8219 else $as_nop
8220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8222 do
8223   IFS=$as_save_IFS
8224   case $as_dir in #(((
8225     '') as_dir=./ ;;
8226     */) ;;
8227     *) as_dir=$as_dir/ ;;
8228   esac
8229     for ac_prog in mkdir gmkdir; do
8230          for ac_exec_ext in '' $ac_executable_extensions; do
8231            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8232            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8233              'mkdir ('*'coreutils) '* | \
8234              'BusyBox '* | \
8235              'mkdir (fileutils) '4.1*)
8236                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8237                break 3;;
8238            esac
8239          done
8240        done
8241   done
8242 IFS=$as_save_IFS
8243
8244 fi
8245
8246   test -d ./--version && rmdir ./--version
8247   if test ${ac_cv_path_mkdir+y}; then
8248     MKDIR_P="$ac_cv_path_mkdir -p"
8249   else
8250     # As a last resort, use the slow shell script.  Don't cache a
8251     # value for MKDIR_P within a source directory, because that will
8252     # break other packages using the cache if that directory is
8253     # removed, or if the value is a relative name.
8254     MKDIR_P="$ac_install_sh -d"
8255   fi
8256 fi
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8258 printf "%s\n" "$MKDIR_P" >&6; }
8259
8260
8261   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8262 printf %s "checking whether NLS is requested... " >&6; }
8263     # Check whether --enable-nls was given.
8264 if test ${enable_nls+y}
8265 then :
8266   enableval=$enable_nls; USE_NLS=$enableval
8267 else $as_nop
8268   USE_NLS=yes
8269 fi
8270
8271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8272 printf "%s\n" "$USE_NLS" >&6; }
8273
8274
8275
8276
8277       GETTEXT_MACRO_VERSION=0.20
8278
8279
8280
8281
8282 # Prepare PATH_SEPARATOR.
8283 # The user is always right.
8284 if test "${PATH_SEPARATOR+set}" != set; then
8285   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8286   # contains only /bin. Note that ksh looks also at the FPATH variable,
8287   # so we have to set that as well for the test.
8288   PATH_SEPARATOR=:
8289   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8290     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8291            || PATH_SEPARATOR=';'
8292        }
8293 fi
8294
8295 # Find out how to test for executable files. Don't use a zero-byte file,
8296 # as systems may use methods other than mode bits to determine executability.
8297 cat >conf$$.file <<_ASEOF
8298 #! /bin/sh
8299 exit 0
8300 _ASEOF
8301 chmod +x conf$$.file
8302 if test -x conf$$.file >/dev/null 2>&1; then
8303   ac_executable_p="test -x"
8304 else
8305   ac_executable_p="test -f"
8306 fi
8307 rm -f conf$$.file
8308
8309 # Extract the first word of "msgfmt", so it can be a program name with args.
8310 set dummy msgfmt; ac_word=$2
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 printf %s "checking for $ac_word... " >&6; }
8313 if test ${ac_cv_path_MSGFMT+y}
8314 then :
8315   printf %s "(cached) " >&6
8316 else $as_nop
8317   case "$MSGFMT" in
8318   [\\/]* | ?:[\\/]*)
8319     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8320     ;;
8321   *)
8322     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8323     for ac_dir in $PATH; do
8324       IFS="$ac_save_IFS"
8325       test -z "$ac_dir" && ac_dir=.
8326       for ac_exec_ext in '' $ac_executable_extensions; do
8327         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8328           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8329           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8330      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8331             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8332             break 2
8333           fi
8334         fi
8335       done
8336     done
8337     IFS="$ac_save_IFS"
8338   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8339     ;;
8340 esac
8341 fi
8342 MSGFMT="$ac_cv_path_MSGFMT"
8343 if test "$MSGFMT" != ":"; then
8344   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8345 printf "%s\n" "$MSGFMT" >&6; }
8346 else
8347   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 printf "%s\n" "no" >&6; }
8349 fi
8350
8351   # Extract the first word of "gmsgfmt", so it can be a program name with args.
8352 set dummy gmsgfmt; ac_word=$2
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 printf %s "checking for $ac_word... " >&6; }
8355 if test ${ac_cv_path_GMSGFMT+y}
8356 then :
8357   printf %s "(cached) " >&6
8358 else $as_nop
8359   case $GMSGFMT in
8360   [\\/]* | ?:[\\/]*)
8361   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8362   ;;
8363   *)
8364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   case $as_dir in #(((
8369     '') as_dir=./ ;;
8370     */) ;;
8371     *) as_dir=$as_dir/ ;;
8372   esac
8373     for ac_exec_ext in '' $ac_executable_extensions; do
8374   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8375     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8376     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8377     break 2
8378   fi
8379 done
8380   done
8381 IFS=$as_save_IFS
8382
8383   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8384   ;;
8385 esac
8386 fi
8387 GMSGFMT=$ac_cv_path_GMSGFMT
8388 if test -n "$GMSGFMT"; then
8389   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8390 printf "%s\n" "$GMSGFMT" >&6; }
8391 else
8392   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 printf "%s\n" "no" >&6; }
8394 fi
8395
8396
8397
8398     case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8399     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8400     *) GMSGFMT_015=$GMSGFMT ;;
8401   esac
8402
8403
8404
8405 # Prepare PATH_SEPARATOR.
8406 # The user is always right.
8407 if test "${PATH_SEPARATOR+set}" != set; then
8408   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8409   # contains only /bin. Note that ksh looks also at the FPATH variable,
8410   # so we have to set that as well for the test.
8411   PATH_SEPARATOR=:
8412   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8413     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8414            || PATH_SEPARATOR=';'
8415        }
8416 fi
8417
8418 # Find out how to test for executable files. Don't use a zero-byte file,
8419 # as systems may use methods other than mode bits to determine executability.
8420 cat >conf$$.file <<_ASEOF
8421 #! /bin/sh
8422 exit 0
8423 _ASEOF
8424 chmod +x conf$$.file
8425 if test -x conf$$.file >/dev/null 2>&1; then
8426   ac_executable_p="test -x"
8427 else
8428   ac_executable_p="test -f"
8429 fi
8430 rm -f conf$$.file
8431
8432 # Extract the first word of "xgettext", so it can be a program name with args.
8433 set dummy xgettext; ac_word=$2
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 printf %s "checking for $ac_word... " >&6; }
8436 if test ${ac_cv_path_XGETTEXT+y}
8437 then :
8438   printf %s "(cached) " >&6
8439 else $as_nop
8440   case "$XGETTEXT" in
8441   [\\/]* | ?:[\\/]*)
8442     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8443     ;;
8444   *)
8445     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8446     for ac_dir in $PATH; do
8447       IFS="$ac_save_IFS"
8448       test -z "$ac_dir" && ac_dir=.
8449       for ac_exec_ext in '' $ac_executable_extensions; do
8450         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8451           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8452           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8453      (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
8454             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8455             break 2
8456           fi
8457         fi
8458       done
8459     done
8460     IFS="$ac_save_IFS"
8461   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8462     ;;
8463 esac
8464 fi
8465 XGETTEXT="$ac_cv_path_XGETTEXT"
8466 if test "$XGETTEXT" != ":"; then
8467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8468 printf "%s\n" "$XGETTEXT" >&6; }
8469 else
8470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 printf "%s\n" "no" >&6; }
8472 fi
8473
8474     rm -f messages.po
8475
8476     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8477     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8478     *) XGETTEXT_015=$XGETTEXT ;;
8479   esac
8480
8481
8482
8483 # Prepare PATH_SEPARATOR.
8484 # The user is always right.
8485 if test "${PATH_SEPARATOR+set}" != set; then
8486   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8487   # contains only /bin. Note that ksh looks also at the FPATH variable,
8488   # so we have to set that as well for the test.
8489   PATH_SEPARATOR=:
8490   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8491     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8492            || PATH_SEPARATOR=';'
8493        }
8494 fi
8495
8496 # Find out how to test for executable files. Don't use a zero-byte file,
8497 # as systems may use methods other than mode bits to determine executability.
8498 cat >conf$$.file <<_ASEOF
8499 #! /bin/sh
8500 exit 0
8501 _ASEOF
8502 chmod +x conf$$.file
8503 if test -x conf$$.file >/dev/null 2>&1; then
8504   ac_executable_p="test -x"
8505 else
8506   ac_executable_p="test -f"
8507 fi
8508 rm -f conf$$.file
8509
8510 # Extract the first word of "msgmerge", so it can be a program name with args.
8511 set dummy msgmerge; ac_word=$2
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 printf %s "checking for $ac_word... " >&6; }
8514 if test ${ac_cv_path_MSGMERGE+y}
8515 then :
8516   printf %s "(cached) " >&6
8517 else $as_nop
8518   case "$MSGMERGE" in
8519   [\\/]* | ?:[\\/]*)
8520     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8521     ;;
8522   *)
8523     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8524     for ac_dir in $PATH; do
8525       IFS="$ac_save_IFS"
8526       test -z "$ac_dir" && ac_dir=.
8527       for ac_exec_ext in '' $ac_executable_extensions; do
8528         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8529           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8530           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8531             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8532             break 2
8533           fi
8534         fi
8535       done
8536     done
8537     IFS="$ac_save_IFS"
8538   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8539     ;;
8540 esac
8541 fi
8542 MSGMERGE="$ac_cv_path_MSGMERGE"
8543 if test "$MSGMERGE" != ":"; then
8544   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8545 printf "%s\n" "$MSGMERGE" >&6; }
8546 else
8547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 printf "%s\n" "no" >&6; }
8549 fi
8550
8551
8552     if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8553     MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8554   else
8555         if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8556       MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8557     else
8558                         MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8559     fi
8560   fi
8561
8562
8563     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8564
8565
8566   ac_config_commands="$ac_config_commands po-directories"
8567
8568
8569
8570       if test "X$prefix" = "XNONE"; then
8571     acl_final_prefix="$ac_default_prefix"
8572   else
8573     acl_final_prefix="$prefix"
8574   fi
8575   if test "X$exec_prefix" = "XNONE"; then
8576     acl_final_exec_prefix='${prefix}'
8577   else
8578     acl_final_exec_prefix="$exec_prefix"
8579   fi
8580   acl_save_prefix="$prefix"
8581   prefix="$acl_final_prefix"
8582   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8583   prefix="$acl_save_prefix"
8584
8585
8586
8587 # Check whether --with-gnu-ld was given.
8588 if test ${with_gnu_ld+y}
8589 then :
8590   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8591 else $as_nop
8592   with_gnu_ld=no
8593 fi
8594
8595 # Prepare PATH_SEPARATOR.
8596 # The user is always right.
8597 if test "${PATH_SEPARATOR+set}" != set; then
8598   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8599   # contains only /bin. Note that ksh looks also at the FPATH variable,
8600   # so we have to set that as well for the test.
8601   PATH_SEPARATOR=:
8602   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8603     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8604            || PATH_SEPARATOR=';'
8605        }
8606 fi
8607
8608 if test -n "$LD"; then
8609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8610 printf %s "checking for ld... " >&6; }
8611 elif test "$GCC" = yes; then
8612   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8613 printf %s "checking for ld used by $CC... " >&6; }
8614 elif test "$with_gnu_ld" = yes; then
8615   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8616 printf %s "checking for GNU ld... " >&6; }
8617 else
8618   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8619 printf %s "checking for non-GNU ld... " >&6; }
8620 fi
8621 if test -n "$LD"; then
8622   # Let the user override the test with a path.
8623   :
8624 else
8625   if test ${acl_cv_path_LD+y}
8626 then :
8627   printf %s "(cached) " >&6
8628 else $as_nop
8629
8630     acl_cv_path_LD= # Final result of this test
8631     ac_prog=ld # Program to search in $PATH
8632     if test "$GCC" = yes; then
8633       # Check if gcc -print-prog-name=ld gives a path.
8634       case $host in
8635         *-*-mingw*)
8636           # gcc leaves a trailing carriage return which upsets mingw
8637           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8638         *)
8639           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8640       esac
8641       case $acl_output in
8642         # Accept absolute paths.
8643         [\\/]* | ?:[\\/]*)
8644           re_direlt='/[^/][^/]*/\.\./'
8645           # Canonicalize the pathname of ld
8646           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8647           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8648             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8649           done
8650           # Got the pathname. No search in PATH is needed.
8651           acl_cv_path_LD="$acl_output"
8652           ac_prog=
8653           ;;
8654         "")
8655           # If it fails, then pretend we aren't using GCC.
8656           ;;
8657         *)
8658           # If it is relative, then search for the first ld in PATH.
8659           with_gnu_ld=unknown
8660           ;;
8661       esac
8662     fi
8663     if test -n "$ac_prog"; then
8664       # Search for $ac_prog in $PATH.
8665       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8666       for ac_dir in $PATH; do
8667         IFS="$acl_save_ifs"
8668         test -z "$ac_dir" && ac_dir=.
8669         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8670           acl_cv_path_LD="$ac_dir/$ac_prog"
8671           # Check to see if the program is GNU ld.  I'd rather use --version,
8672           # but apparently some variants of GNU ld only accept -v.
8673           # Break only if it was the GNU/non-GNU ld that we prefer.
8674           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8675             *GNU* | *'with BFD'*)
8676               test "$with_gnu_ld" != no && break
8677               ;;
8678             *)
8679               test "$with_gnu_ld" != yes && break
8680               ;;
8681           esac
8682         fi
8683       done
8684       IFS="$acl_save_ifs"
8685     fi
8686     case $host in
8687       *-*-aix*)
8688         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h.  */
8690 #if defined __powerpc64__ || defined _ARCH_PPC64
8691                 int ok;
8692                #else
8693                 error fail
8694                #endif
8695
8696 _ACEOF
8697 if ac_fn_c_try_compile "$LINENO"
8698 then :
8699   # The compiler produces 64-bit code. Add option '-b64' so that the
8700            # linker groks 64-bit object files.
8701            case "$acl_cv_path_LD " in
8702              *" -b64 "*) ;;
8703              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8704            esac
8705
8706 fi
8707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8708         ;;
8709       sparc64-*-netbsd*)
8710         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h.  */
8712 #if defined __sparcv9 || defined __arch64__
8713                 int ok;
8714                #else
8715                 error fail
8716                #endif
8717
8718 _ACEOF
8719 if ac_fn_c_try_compile "$LINENO"
8720 then :
8721
8722 else $as_nop
8723   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8724            # so that the linker groks 32-bit object files.
8725            case "$acl_cv_path_LD " in
8726              *" -m elf32_sparc "*) ;;
8727              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8728            esac
8729
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8732         ;;
8733     esac
8734
8735 fi
8736
8737   LD="$acl_cv_path_LD"
8738 fi
8739 if test -n "$LD"; then
8740   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8741 printf "%s\n" "$LD" >&6; }
8742 else
8743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 printf "%s\n" "no" >&6; }
8745   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8746 fi
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8748 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8749 if test ${acl_cv_prog_gnu_ld+y}
8750 then :
8751   printf %s "(cached) " >&6
8752 else $as_nop
8753   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8754 case `$LD -v 2>&1 </dev/null` in
8755 *GNU* | *'with BFD'*)
8756   acl_cv_prog_gnu_ld=yes
8757   ;;
8758 *)
8759   acl_cv_prog_gnu_ld=no
8760   ;;
8761 esac
8762 fi
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8764 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8765 with_gnu_ld=$acl_cv_prog_gnu_ld
8766
8767
8768
8769
8770
8771
8772                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8773 printf %s "checking for shared library run path origin... " >&6; }
8774 if test ${acl_cv_rpath+y}
8775 then :
8776   printf %s "(cached) " >&6
8777 else $as_nop
8778
8779     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8780     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8781     . ./conftest.sh
8782     rm -f ./conftest.sh
8783     acl_cv_rpath=done
8784
8785 fi
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8787 printf "%s\n" "$acl_cv_rpath" >&6; }
8788   wl="$acl_cv_wl"
8789   acl_libext="$acl_cv_libext"
8790   acl_shlibext="$acl_cv_shlibext"
8791   acl_libname_spec="$acl_cv_libname_spec"
8792   acl_library_names_spec="$acl_cv_library_names_spec"
8793   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8794   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8795   acl_hardcode_direct="$acl_cv_hardcode_direct"
8796   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8797     # Check whether --enable-rpath was given.
8798 if test ${enable_rpath+y}
8799 then :
8800   enableval=$enable_rpath; :
8801 else $as_nop
8802   enable_rpath=yes
8803 fi
8804
8805
8806
8807
8808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8809 printf %s "checking 32-bit host C ABI... " >&6; }
8810 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8811 then :
8812   printf %s "(cached) " >&6
8813 else $as_nop
8814   if test -n "$gl_cv_host_cpu_c_abi"; then
8815        case "$gl_cv_host_cpu_c_abi" in
8816          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8817            gl_cv_host_cpu_c_abi_32bit=yes ;;
8818          x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8819            gl_cv_host_cpu_c_abi_32bit=no ;;
8820          *)
8821            gl_cv_host_cpu_c_abi_32bit=unknown ;;
8822        esac
8823      else
8824        case "$host_cpu" in
8825
8826          # CPUs that only support a 32-bit ABI.
8827          arc \
8828          | bfin \
8829          | cris* \
8830          | csky \
8831          | epiphany \
8832          | ft32 \
8833          | h8300 \
8834          | m68k \
8835          | microblaze | microblazeel \
8836          | nds32 | nds32le | nds32be \
8837          | nios2 | nios2eb | nios2el \
8838          | or1k* \
8839          | or32 \
8840          | sh | sh1234 | sh1234elb \
8841          | tic6x \
8842          | xtensa* )
8843            gl_cv_host_cpu_c_abi_32bit=yes
8844            ;;
8845
8846          # CPUs that only support a 64-bit ABI.
8847          alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8848          | mmix )
8849            gl_cv_host_cpu_c_abi_32bit=no
8850            ;;
8851
8852          i[34567]86 )
8853            gl_cv_host_cpu_c_abi_32bit=yes
8854            ;;
8855
8856          x86_64 )
8857            # On x86_64 systems, the C compiler may be generating code in one of
8858            # these ABIs:
8859            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8860            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8861            #   with native Windows (mingw, MSVC).
8862            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8863            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8864            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h.  */
8866 #if (defined __x86_64__ || defined __amd64__ \
8867                        || defined _M_X64 || defined _M_AMD64) \
8868                       && !(defined __ILP32__ || defined _ILP32)
8869                    int ok;
8870                   #else
8871                    error fail
8872                   #endif
8873
8874 _ACEOF
8875 if ac_fn_c_try_compile "$LINENO"
8876 then :
8877   gl_cv_host_cpu_c_abi_32bit=no
8878 else $as_nop
8879   gl_cv_host_cpu_c_abi_32bit=yes
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8882            ;;
8883
8884          arm* | aarch64 )
8885            # Assume arm with EABI.
8886            # On arm64 systems, the C compiler may be generating code in one of
8887            # these ABIs:
8888            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8889            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8890            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8891            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h.  */
8893 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8894                    int ok;
8895                   #else
8896                    error fail
8897                   #endif
8898
8899 _ACEOF
8900 if ac_fn_c_try_compile "$LINENO"
8901 then :
8902   gl_cv_host_cpu_c_abi_32bit=no
8903 else $as_nop
8904   gl_cv_host_cpu_c_abi_32bit=yes
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8907            ;;
8908
8909          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8910            # On hppa, the C compiler may be generating 32-bit code or 64-bit
8911            # code. In the latter case, it defines _LP64 and __LP64__.
8912            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h.  */
8914 #ifdef __LP64__
8915                    int ok;
8916                   #else
8917                    error fail
8918                   #endif
8919
8920 _ACEOF
8921 if ac_fn_c_try_compile "$LINENO"
8922 then :
8923   gl_cv_host_cpu_c_abi_32bit=no
8924 else $as_nop
8925   gl_cv_host_cpu_c_abi_32bit=yes
8926 fi
8927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8928            ;;
8929
8930          ia64* )
8931            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8932            # 32-bit code. In the latter case, it defines _ILP32.
8933            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h.  */
8935 #ifdef _ILP32
8936                    int ok;
8937                   #else
8938                    error fail
8939                   #endif
8940
8941 _ACEOF
8942 if ac_fn_c_try_compile "$LINENO"
8943 then :
8944   gl_cv_host_cpu_c_abi_32bit=yes
8945 else $as_nop
8946   gl_cv_host_cpu_c_abi_32bit=no
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8949            ;;
8950
8951          mips* )
8952            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8953            # at 32.
8954            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h.  */
8956 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8957                    int ok;
8958                   #else
8959                    error fail
8960                   #endif
8961
8962 _ACEOF
8963 if ac_fn_c_try_compile "$LINENO"
8964 then :
8965   gl_cv_host_cpu_c_abi_32bit=no
8966 else $as_nop
8967   gl_cv_host_cpu_c_abi_32bit=yes
8968 fi
8969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8970            ;;
8971
8972          powerpc* )
8973            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8974            # No need to distinguish them here; the caller may distinguish
8975            # them based on the OS.
8976            # On powerpc64 systems, the C compiler may still be generating
8977            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8978            # be generating 64-bit code.
8979            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h.  */
8981 #if defined __powerpc64__ || defined _ARCH_PPC64
8982                    int ok;
8983                   #else
8984                    error fail
8985                   #endif
8986
8987 _ACEOF
8988 if ac_fn_c_try_compile "$LINENO"
8989 then :
8990   gl_cv_host_cpu_c_abi_32bit=no
8991 else $as_nop
8992   gl_cv_host_cpu_c_abi_32bit=yes
8993 fi
8994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8995            ;;
8996
8997          rs6000 )
8998            gl_cv_host_cpu_c_abi_32bit=yes
8999            ;;
9000
9001          riscv32 | riscv64 )
9002            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9003            # Size of 'long' and 'void *':
9004            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h.  */
9006 #if defined __LP64__
9007                     int ok;
9008                   #else
9009                     error fail
9010                   #endif
9011
9012 _ACEOF
9013 if ac_fn_c_try_compile "$LINENO"
9014 then :
9015   gl_cv_host_cpu_c_abi_32bit=no
9016 else $as_nop
9017   gl_cv_host_cpu_c_abi_32bit=yes
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9020            ;;
9021
9022          s390* )
9023            # On s390x, the C compiler may be generating 64-bit (= s390x) code
9024            # or 31-bit (= s390) code.
9025            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h.  */
9027 #if defined __LP64__ || defined __s390x__
9028                     int ok;
9029                   #else
9030                     error fail
9031                   #endif
9032
9033 _ACEOF
9034 if ac_fn_c_try_compile "$LINENO"
9035 then :
9036   gl_cv_host_cpu_c_abi_32bit=no
9037 else $as_nop
9038   gl_cv_host_cpu_c_abi_32bit=yes
9039 fi
9040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9041            ;;
9042
9043          sparc | sparc64 )
9044            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9045            # C compiler still generates 32-bit code.
9046            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h.  */
9048 #if defined __sparcv9 || defined __arch64__
9049                    int ok;
9050                   #else
9051                    error fail
9052                   #endif
9053
9054 _ACEOF
9055 if ac_fn_c_try_compile "$LINENO"
9056 then :
9057   gl_cv_host_cpu_c_abi_32bit=no
9058 else $as_nop
9059   gl_cv_host_cpu_c_abi_32bit=yes
9060 fi
9061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9062            ;;
9063
9064          *)
9065            gl_cv_host_cpu_c_abi_32bit=unknown
9066            ;;
9067        esac
9068      fi
9069
9070 fi
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9072 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9073
9074   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9075
9076
9077
9078
9079
9080   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9081 printf %s "checking for ELF binary format... " >&6; }
9082 if test ${gl_cv_elf+y}
9083 then :
9084   printf %s "(cached) " >&6
9085 else $as_nop
9086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h.  */
9088 #ifdef __ELF__
9089         Extensible Linking Format
9090         #endif
9091
9092 _ACEOF
9093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9094   $EGREP "Extensible Linking Format" >/dev/null 2>&1
9095 then :
9096   gl_cv_elf=yes
9097 else $as_nop
9098   gl_cv_elf=no
9099 fi
9100 rm -rf conftest*
9101
9102
9103 fi
9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9105 printf "%s\n" "$gl_cv_elf" >&6; }
9106   if test $gl_cv_elf; then
9107     # Extract the ELF class of a file (5th byte) in decimal.
9108     # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9109     if od -A x < /dev/null >/dev/null 2>/dev/null; then
9110       # Use POSIX od.
9111       func_elfclass ()
9112       {
9113         od -A n -t d1 -j 4 -N 1
9114       }
9115     else
9116       # Use BSD hexdump.
9117       func_elfclass ()
9118       {
9119         dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9120         echo
9121       }
9122     fi
9123     case $HOST_CPU_C_ABI_32BIT in
9124       yes)
9125         # 32-bit ABI.
9126         acl_is_expected_elfclass ()
9127         {
9128           test "`func_elfclass | sed -e 's/[    ]//g'`" = 1
9129         }
9130         ;;
9131       no)
9132         # 64-bit ABI.
9133         acl_is_expected_elfclass ()
9134         {
9135           test "`func_elfclass | sed -e 's/[    ]//g'`" = 2
9136         }
9137         ;;
9138       *)
9139         # Unknown.
9140         acl_is_expected_elfclass ()
9141         {
9142           :
9143         }
9144         ;;
9145     esac
9146   else
9147     acl_is_expected_elfclass ()
9148     {
9149       :
9150     }
9151   fi
9152
9153     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9154 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9155 if test ${acl_cv_libdirstems+y}
9156 then :
9157   printf %s "(cached) " >&6
9158 else $as_nop
9159             acl_libdirstem=lib
9160      acl_libdirstem2=
9161      acl_libdirstem3=
9162      case "$host_os" in
9163        solaris*)
9164                                                       if test $HOST_CPU_C_ABI_32BIT = no; then
9165            acl_libdirstem2=lib/64
9166            case "$host_cpu" in
9167              sparc*)        acl_libdirstem3=lib/sparcv9 ;;
9168              i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9169            esac
9170          fi
9171          ;;
9172        *)
9173                                                                                  searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9174                      | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9175          if test $HOST_CPU_C_ABI_32BIT != no; then
9176            # 32-bit or unknown ABI.
9177            if test -d /usr/lib32; then
9178              acl_libdirstem2=lib32
9179            fi
9180          fi
9181          if test $HOST_CPU_C_ABI_32BIT != yes; then
9182            # 64-bit or unknown ABI.
9183            if test -d /usr/lib64; then
9184              acl_libdirstem3=lib64
9185            fi
9186          fi
9187          if test -n "$searchpath"; then
9188            acl_save_IFS="${IFS=         }"; IFS=":"
9189            for searchdir in $searchpath; do
9190              if test -d "$searchdir"; then
9191                case "$searchdir" in
9192                  */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9193                  */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9194                  */../ | */.. )
9195                    # Better ignore directories of this form. They are misleading.
9196                    ;;
9197                  *) searchdir=`cd "$searchdir" && pwd`
9198                     case "$searchdir" in
9199                       */lib32 ) acl_libdirstem2=lib32 ;;
9200                       */lib64 ) acl_libdirstem3=lib64 ;;
9201                     esac ;;
9202                esac
9203              fi
9204            done
9205            IFS="$acl_save_IFS"
9206            if test $HOST_CPU_C_ABI_32BIT = yes; then
9207              # 32-bit ABI.
9208              acl_libdirstem3=
9209            fi
9210            if test $HOST_CPU_C_ABI_32BIT = no; then
9211              # 64-bit ABI.
9212              acl_libdirstem2=
9213            fi
9214          fi
9215          ;;
9216      esac
9217      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9218      test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9219      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9220
9221 fi
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9223 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9224       acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9225   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9226   acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238     use_additional=yes
9239
9240   acl_save_prefix="$prefix"
9241   prefix="$acl_final_prefix"
9242   acl_save_exec_prefix="$exec_prefix"
9243   exec_prefix="$acl_final_exec_prefix"
9244
9245     eval additional_includedir=\"$includedir\"
9246     eval additional_libdir=\"$libdir\"
9247     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9248     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9249
9250   exec_prefix="$acl_save_exec_prefix"
9251   prefix="$acl_save_prefix"
9252
9253
9254 # Check whether --with-libiconv-prefix was given.
9255 if test ${with_libiconv_prefix+y}
9256 then :
9257   withval=$with_libiconv_prefix;
9258     if test "X$withval" = "Xno"; then
9259       use_additional=no
9260     else
9261       if test "X$withval" = "X"; then
9262
9263   acl_save_prefix="$prefix"
9264   prefix="$acl_final_prefix"
9265   acl_save_exec_prefix="$exec_prefix"
9266   exec_prefix="$acl_final_exec_prefix"
9267
9268           eval additional_includedir=\"$includedir\"
9269           eval additional_libdir=\"$libdir\"
9270           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9271           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9272
9273   exec_prefix="$acl_save_exec_prefix"
9274   prefix="$acl_save_prefix"
9275
9276       else
9277         additional_includedir="$withval/include"
9278         additional_libdir="$withval/$acl_libdirstem"
9279         additional_libdir2="$withval/$acl_libdirstem2"
9280         additional_libdir3="$withval/$acl_libdirstem3"
9281       fi
9282     fi
9283
9284 fi
9285
9286   if test "X$additional_libdir2" = "X$additional_libdir"; then
9287     additional_libdir2=
9288   fi
9289   if test "X$additional_libdir3" = "X$additional_libdir"; then
9290     additional_libdir3=
9291   fi
9292       LIBICONV=
9293   LTLIBICONV=
9294   INCICONV=
9295   LIBICONV_PREFIX=
9296       HAVE_LIBICONV=
9297   rpathdirs=
9298   ltrpathdirs=
9299   names_already_handled=
9300   names_next_round='iconv '
9301   while test -n "$names_next_round"; do
9302     names_this_round="$names_next_round"
9303     names_next_round=
9304     for name in $names_this_round; do
9305       already_handled=
9306       for n in $names_already_handled; do
9307         if test "$n" = "$name"; then
9308           already_handled=yes
9309           break
9310         fi
9311       done
9312       if test -z "$already_handled"; then
9313         names_already_handled="$names_already_handled $name"
9314                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9315         eval value=\"\$HAVE_LIB$uppername\"
9316         if test -n "$value"; then
9317           if test "$value" = yes; then
9318             eval value=\"\$LIB$uppername\"
9319             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9320             eval value=\"\$LTLIB$uppername\"
9321             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9322           else
9323                                     :
9324           fi
9325         else
9326                               found_dir=
9327           found_la=
9328           found_so=
9329           found_a=
9330           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9331           if test -n "$acl_shlibext"; then
9332             shrext=".$acl_shlibext"             # typically: shrext=.so
9333           else
9334             shrext=
9335           fi
9336           if test $use_additional = yes; then
9337             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9338               if test "X$found_dir" = "X"; then
9339                 eval dir=\$$additional_libdir_variable
9340                 if test -n "$dir"; then
9341                                                       if test -n "$acl_shlibext"; then
9342                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9343                       found_dir="$dir"
9344                       found_so="$dir/$libname$shrext"
9345                     else
9346                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9347                         ver=`(cd "$dir" && \
9348                               for f in "$libname$shrext".*; do echo "$f"; done \
9349                               | sed -e "s,^$libname$shrext\\\\.,," \
9350                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9351                               | sed 1q ) 2>/dev/null`
9352                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9353                           found_dir="$dir"
9354                           found_so="$dir/$libname$shrext.$ver"
9355                         fi
9356                       else
9357                         eval library_names=\"$acl_library_names_spec\"
9358                         for f in $library_names; do
9359                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9360                             found_dir="$dir"
9361                             found_so="$dir/$f"
9362                             break
9363                           fi
9364                         done
9365                       fi
9366                     fi
9367                   fi
9368                                     if test "X$found_dir" = "X"; then
9369                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9370                       found_dir="$dir"
9371                       found_a="$dir/$libname.$acl_libext"
9372                     fi
9373                   fi
9374                   if test "X$found_dir" != "X"; then
9375                     if test -f "$dir/$libname.la"; then
9376                       found_la="$dir/$libname.la"
9377                     fi
9378                   fi
9379                 fi
9380               fi
9381             done
9382           fi
9383           if test "X$found_dir" = "X"; then
9384             for x in $LDFLAGS $LTLIBICONV; do
9385
9386   acl_save_prefix="$prefix"
9387   prefix="$acl_final_prefix"
9388   acl_save_exec_prefix="$exec_prefix"
9389   exec_prefix="$acl_final_exec_prefix"
9390   eval x=\"$x\"
9391   exec_prefix="$acl_save_exec_prefix"
9392   prefix="$acl_save_prefix"
9393
9394               case "$x" in
9395                 -L*)
9396                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9397                                     if test -n "$acl_shlibext"; then
9398                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9399                       found_dir="$dir"
9400                       found_so="$dir/$libname$shrext"
9401                     else
9402                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9403                         ver=`(cd "$dir" && \
9404                               for f in "$libname$shrext".*; do echo "$f"; done \
9405                               | sed -e "s,^$libname$shrext\\\\.,," \
9406                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9407                               | sed 1q ) 2>/dev/null`
9408                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9409                           found_dir="$dir"
9410                           found_so="$dir/$libname$shrext.$ver"
9411                         fi
9412                       else
9413                         eval library_names=\"$acl_library_names_spec\"
9414                         for f in $library_names; do
9415                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9416                             found_dir="$dir"
9417                             found_so="$dir/$f"
9418                             break
9419                           fi
9420                         done
9421                       fi
9422                     fi
9423                   fi
9424                                     if test "X$found_dir" = "X"; then
9425                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9426                       found_dir="$dir"
9427                       found_a="$dir/$libname.$acl_libext"
9428                     fi
9429                   fi
9430                   if test "X$found_dir" != "X"; then
9431                     if test -f "$dir/$libname.la"; then
9432                       found_la="$dir/$libname.la"
9433                     fi
9434                   fi
9435                   ;;
9436               esac
9437               if test "X$found_dir" != "X"; then
9438                 break
9439               fi
9440             done
9441           fi
9442           if test "X$found_dir" != "X"; then
9443                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9444             if test "X$found_so" != "X"; then
9445                                                         if test "$enable_rpath" = no \
9446                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9447                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9448                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9449                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9450               else
9451                                                                                 haveit=
9452                 for x in $ltrpathdirs; do
9453                   if test "X$x" = "X$found_dir"; then
9454                     haveit=yes
9455                     break
9456                   fi
9457                 done
9458                 if test -z "$haveit"; then
9459                   ltrpathdirs="$ltrpathdirs $found_dir"
9460                 fi
9461                                 if test "$acl_hardcode_direct" = yes; then
9462                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9463                 else
9464                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9465                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9466                                                             haveit=
9467                     for x in $rpathdirs; do
9468                       if test "X$x" = "X$found_dir"; then
9469                         haveit=yes
9470                         break
9471                       fi
9472                     done
9473                     if test -z "$haveit"; then
9474                       rpathdirs="$rpathdirs $found_dir"
9475                     fi
9476                   else
9477                                                                                 haveit=
9478                     for x in $LDFLAGS $LIBICONV; do
9479
9480   acl_save_prefix="$prefix"
9481   prefix="$acl_final_prefix"
9482   acl_save_exec_prefix="$exec_prefix"
9483   exec_prefix="$acl_final_exec_prefix"
9484   eval x=\"$x\"
9485   exec_prefix="$acl_save_exec_prefix"
9486   prefix="$acl_save_prefix"
9487
9488                       if test "X$x" = "X-L$found_dir"; then
9489                         haveit=yes
9490                         break
9491                       fi
9492                     done
9493                     if test -z "$haveit"; then
9494                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9495                     fi
9496                     if test "$acl_hardcode_minus_L" != no; then
9497                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9498                     else
9499                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9500                     fi
9501                   fi
9502                 fi
9503               fi
9504             else
9505               if test "X$found_a" != "X"; then
9506                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9507               else
9508                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9509               fi
9510             fi
9511                         additional_includedir=
9512             case "$found_dir" in
9513               */$acl_libdirstem | */$acl_libdirstem/)
9514                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9515                 if test "$name" = 'iconv'; then
9516                   LIBICONV_PREFIX="$basedir"
9517                 fi
9518                 additional_includedir="$basedir/include"
9519                 ;;
9520               */$acl_libdirstem2 | */$acl_libdirstem2/)
9521                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9522                 if test "$name" = 'iconv'; then
9523                   LIBICONV_PREFIX="$basedir"
9524                 fi
9525                 additional_includedir="$basedir/include"
9526                 ;;
9527               */$acl_libdirstem3 | */$acl_libdirstem3/)
9528                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9529                 if test "$name" = 'iconv'; then
9530                   LIBICONV_PREFIX="$basedir"
9531                 fi
9532                 additional_includedir="$basedir/include"
9533                 ;;
9534             esac
9535             if test "X$additional_includedir" != "X"; then
9536                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9537                 haveit=
9538                 if test "X$additional_includedir" = "X/usr/local/include"; then
9539                   if test -n "$GCC"; then
9540                     case $host_os in
9541                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9542                     esac
9543                   fi
9544                 fi
9545                 if test -z "$haveit"; then
9546                   for x in $CPPFLAGS $INCICONV; do
9547
9548   acl_save_prefix="$prefix"
9549   prefix="$acl_final_prefix"
9550   acl_save_exec_prefix="$exec_prefix"
9551   exec_prefix="$acl_final_exec_prefix"
9552   eval x=\"$x\"
9553   exec_prefix="$acl_save_exec_prefix"
9554   prefix="$acl_save_prefix"
9555
9556                     if test "X$x" = "X-I$additional_includedir"; then
9557                       haveit=yes
9558                       break
9559                     fi
9560                   done
9561                   if test -z "$haveit"; then
9562                     if test -d "$additional_includedir"; then
9563                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9564                     fi
9565                   fi
9566                 fi
9567               fi
9568             fi
9569                         if test -n "$found_la"; then
9570                                                         save_libdir="$libdir"
9571               case "$found_la" in
9572                 */* | *\\*) . "$found_la" ;;
9573                 *) . "./$found_la" ;;
9574               esac
9575               libdir="$save_libdir"
9576                             for dep in $dependency_libs; do
9577                 case "$dep" in
9578                   -L*)
9579                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9580                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9581                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9582                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9583                       haveit=
9584                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9585                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9586                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9587                         if test -n "$GCC"; then
9588                           case $host_os in
9589                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9590                           esac
9591                         fi
9592                       fi
9593                       if test -z "$haveit"; then
9594                         haveit=
9595                         for x in $LDFLAGS $LIBICONV; do
9596
9597   acl_save_prefix="$prefix"
9598   prefix="$acl_final_prefix"
9599   acl_save_exec_prefix="$exec_prefix"
9600   exec_prefix="$acl_final_exec_prefix"
9601   eval x=\"$x\"
9602   exec_prefix="$acl_save_exec_prefix"
9603   prefix="$acl_save_prefix"
9604
9605                           if test "X$x" = "X-L$dependency_libdir"; then
9606                             haveit=yes
9607                             break
9608                           fi
9609                         done
9610                         if test -z "$haveit"; then
9611                           if test -d "$dependency_libdir"; then
9612                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9613                           fi
9614                         fi
9615                         haveit=
9616                         for x in $LDFLAGS $LTLIBICONV; do
9617
9618   acl_save_prefix="$prefix"
9619   prefix="$acl_final_prefix"
9620   acl_save_exec_prefix="$exec_prefix"
9621   exec_prefix="$acl_final_exec_prefix"
9622   eval x=\"$x\"
9623   exec_prefix="$acl_save_exec_prefix"
9624   prefix="$acl_save_prefix"
9625
9626                           if test "X$x" = "X-L$dependency_libdir"; then
9627                             haveit=yes
9628                             break
9629                           fi
9630                         done
9631                         if test -z "$haveit"; then
9632                           if test -d "$dependency_libdir"; then
9633                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9634                           fi
9635                         fi
9636                       fi
9637                     fi
9638                     ;;
9639                   -R*)
9640                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9641                     if test "$enable_rpath" != no; then
9642                                                                   haveit=
9643                       for x in $rpathdirs; do
9644                         if test "X$x" = "X$dir"; then
9645                           haveit=yes
9646                           break
9647                         fi
9648                       done
9649                       if test -z "$haveit"; then
9650                         rpathdirs="$rpathdirs $dir"
9651                       fi
9652                                                                   haveit=
9653                       for x in $ltrpathdirs; do
9654                         if test "X$x" = "X$dir"; then
9655                           haveit=yes
9656                           break
9657                         fi
9658                       done
9659                       if test -z "$haveit"; then
9660                         ltrpathdirs="$ltrpathdirs $dir"
9661                       fi
9662                     fi
9663                     ;;
9664                   -l*)
9665                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9666                     ;;
9667                   *.la)
9668                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9669                     ;;
9670                   *)
9671                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9672                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9673                     ;;
9674                 esac
9675               done
9676             fi
9677           else
9678                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9679             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9680           fi
9681         fi
9682       fi
9683     done
9684   done
9685   if test "X$rpathdirs" != "X"; then
9686     if test -n "$acl_hardcode_libdir_separator"; then
9687                         alldirs=
9688       for found_dir in $rpathdirs; do
9689         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9690       done
9691             acl_save_libdir="$libdir"
9692       libdir="$alldirs"
9693       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9694       libdir="$acl_save_libdir"
9695       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9696     else
9697             for found_dir in $rpathdirs; do
9698         acl_save_libdir="$libdir"
9699         libdir="$found_dir"
9700         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9701         libdir="$acl_save_libdir"
9702         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9703       done
9704     fi
9705   fi
9706   if test "X$ltrpathdirs" != "X"; then
9707             for found_dir in $ltrpathdirs; do
9708       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9709     done
9710   fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9741 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9742 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9743 then :
9744   printf %s "(cached) " >&6
9745 else $as_nop
9746   gt_save_LIBS="$LIBS"
9747      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9748      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h.  */
9750 #include <CoreFoundation/CFPreferences.h>
9751 int
9752 main (void)
9753 {
9754 CFPreferencesCopyAppValue(NULL, NULL)
9755   ;
9756   return 0;
9757 }
9758 _ACEOF
9759 if ac_fn_c_try_link "$LINENO"
9760 then :
9761   gt_cv_func_CFPreferencesCopyAppValue=yes
9762 else $as_nop
9763   gt_cv_func_CFPreferencesCopyAppValue=no
9764 fi
9765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9766     conftest$ac_exeext conftest.$ac_ext
9767      LIBS="$gt_save_LIBS"
9768 fi
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9770 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9771   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9772
9773 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9774
9775   fi
9776                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9777 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9778 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9779 then :
9780   printf %s "(cached) " >&6
9781 else $as_nop
9782   gt_save_LIBS="$LIBS"
9783      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9784      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h.  */
9786 #include <CoreFoundation/CFLocale.h>
9787 int
9788 main (void)
9789 {
9790 CFLocaleCopyPreferredLanguages();
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 if ac_fn_c_try_link "$LINENO"
9796 then :
9797   gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9798 else $as_nop
9799   gt_cv_func_CFLocaleCopyPreferredLanguages=no
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9802     conftest$ac_exeext conftest.$ac_ext
9803      LIBS="$gt_save_LIBS"
9804 fi
9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9806 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9807   if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9808
9809 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9810
9811   fi
9812   INTL_MACOSX_LIBS=
9813   if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9814      || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9815     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9816   fi
9817
9818
9819
9820
9821
9822
9823   LIBINTL=
9824   LTLIBINTL=
9825   POSUB=
9826
9827     case " $gt_needs " in
9828     *" need-formatstring-macros "*) gt_api_version=3 ;;
9829     *" need-ngettext "*) gt_api_version=2 ;;
9830     *) gt_api_version=1 ;;
9831   esac
9832   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9833   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9834
9835     if test "$USE_NLS" = "yes"; then
9836     gt_use_preinstalled_gnugettext=no
9837
9838
9839         if test $gt_api_version -ge 3; then
9840           gt_revision_test_code='
9841 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9842 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9843 #endif
9844 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9845 '
9846         else
9847           gt_revision_test_code=
9848         fi
9849         if test $gt_api_version -ge 2; then
9850           gt_expression_test_code=' + * ngettext ("", "", 0)'
9851         else
9852           gt_expression_test_code=
9853         fi
9854
9855         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9856 printf %s "checking for GNU gettext in libc... " >&6; }
9857 if eval test \${$gt_func_gnugettext_libc+y}
9858 then :
9859   printf %s "(cached) " >&6
9860 else $as_nop
9861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h.  */
9863
9864 #include <libintl.h>
9865 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9866 extern int _nl_msg_cat_cntr;
9867 extern int *_nl_domain_bindings;
9868 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9869 #else
9870 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9871 #endif
9872 $gt_revision_test_code
9873
9874 int
9875 main (void)
9876 {
9877
9878 bindtextdomain ("", "");
9879 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9880
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"
9886 then :
9887   eval "$gt_func_gnugettext_libc=yes"
9888 else $as_nop
9889   eval "$gt_func_gnugettext_libc=no"
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9892     conftest$ac_exeext conftest.$ac_ext
9893 fi
9894 eval ac_res=\$$gt_func_gnugettext_libc
9895                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9896 printf "%s\n" "$ac_res" >&6; }
9897
9898         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9899
9900
9901
9902
9903
9904           am_save_CPPFLAGS="$CPPFLAGS"
9905
9906   for element in $INCICONV; do
9907     haveit=
9908     for x in $CPPFLAGS; do
9909
9910   acl_save_prefix="$prefix"
9911   prefix="$acl_final_prefix"
9912   acl_save_exec_prefix="$exec_prefix"
9913   exec_prefix="$acl_final_exec_prefix"
9914   eval x=\"$x\"
9915   exec_prefix="$acl_save_exec_prefix"
9916   prefix="$acl_save_prefix"
9917
9918       if test "X$x" = "X$element"; then
9919         haveit=yes
9920         break
9921       fi
9922     done
9923     if test -z "$haveit"; then
9924       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9925     fi
9926   done
9927
9928
9929   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9930 printf %s "checking for iconv... " >&6; }
9931 if test ${am_cv_func_iconv+y}
9932 then :
9933   printf %s "(cached) " >&6
9934 else $as_nop
9935
9936     am_cv_func_iconv="no, consider installing GNU libiconv"
9937     am_cv_lib_iconv=no
9938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h.  */
9940
9941 #include <stdlib.h>
9942 #include <iconv.h>
9943
9944 int
9945 main (void)
9946 {
9947 iconv_t cd = iconv_open("","");
9948            iconv(cd,NULL,NULL,NULL,NULL);
9949            iconv_close(cd);
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 if ac_fn_c_try_link "$LINENO"
9955 then :
9956   am_cv_func_iconv=yes
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9959     conftest$ac_exeext conftest.$ac_ext
9960     if test "$am_cv_func_iconv" != yes; then
9961       am_save_LIBS="$LIBS"
9962       LIBS="$LIBS $LIBICONV"
9963       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h.  */
9965
9966 #include <stdlib.h>
9967 #include <iconv.h>
9968
9969 int
9970 main (void)
9971 {
9972 iconv_t cd = iconv_open("","");
9973              iconv(cd,NULL,NULL,NULL,NULL);
9974              iconv_close(cd);
9975   ;
9976   return 0;
9977 }
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"
9980 then :
9981   am_cv_lib_iconv=yes
9982         am_cv_func_iconv=yes
9983 fi
9984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9985     conftest$ac_exeext conftest.$ac_ext
9986       LIBS="$am_save_LIBS"
9987     fi
9988
9989 fi
9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9991 printf "%s\n" "$am_cv_func_iconv" >&6; }
9992   if test "$am_cv_func_iconv" = yes; then
9993     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9994 printf %s "checking for working iconv... " >&6; }
9995 if test ${am_cv_func_iconv_works+y}
9996 then :
9997   printf %s "(cached) " >&6
9998 else $as_nop
9999
10000                   am_save_LIBS="$LIBS"
10001       if test $am_cv_lib_iconv = yes; then
10002         LIBS="$LIBS $LIBICONV"
10003       fi
10004       am_cv_func_iconv_works=no
10005       for ac_iconv_const in '' 'const'; do
10006         if test "$cross_compiling" = yes
10007 then :
10008   case "$host_os" in
10009              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10010              *)            am_cv_func_iconv_works="guessing yes" ;;
10011            esac
10012 else $as_nop
10013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h.  */
10015
10016 #include <iconv.h>
10017 #include <string.h>
10018
10019 #ifndef ICONV_CONST
10020 # define ICONV_CONST $ac_iconv_const
10021 #endif
10022
10023 int
10024 main (void)
10025 {
10026 int result = 0;
10027   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10028      returns.  */
10029   {
10030     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10031     if (cd_utf8_to_88591 != (iconv_t)(-1))
10032       {
10033         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10034         char buf[10];
10035         ICONV_CONST char *inptr = input;
10036         size_t inbytesleft = strlen (input);
10037         char *outptr = buf;
10038         size_t outbytesleft = sizeof (buf);
10039         size_t res = iconv (cd_utf8_to_88591,
10040                             &inptr, &inbytesleft,
10041                             &outptr, &outbytesleft);
10042         if (res == 0)
10043           result |= 1;
10044         iconv_close (cd_utf8_to_88591);
10045       }
10046   }
10047   /* Test against Solaris 10 bug: Failures are not distinguishable from
10048      successful returns.  */
10049   {
10050     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10051     if (cd_ascii_to_88591 != (iconv_t)(-1))
10052       {
10053         static ICONV_CONST char input[] = "\263";
10054         char buf[10];
10055         ICONV_CONST char *inptr = input;
10056         size_t inbytesleft = strlen (input);
10057         char *outptr = buf;
10058         size_t outbytesleft = sizeof (buf);
10059         size_t res = iconv (cd_ascii_to_88591,
10060                             &inptr, &inbytesleft,
10061                             &outptr, &outbytesleft);
10062         if (res == 0)
10063           result |= 2;
10064         iconv_close (cd_ascii_to_88591);
10065       }
10066   }
10067   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
10068   {
10069     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10070     if (cd_88591_to_utf8 != (iconv_t)(-1))
10071       {
10072         static ICONV_CONST char input[] = "\304";
10073         static char buf[2] = { (char)0xDE, (char)0xAD };
10074         ICONV_CONST char *inptr = input;
10075         size_t inbytesleft = 1;
10076         char *outptr = buf;
10077         size_t outbytesleft = 1;
10078         size_t res = iconv (cd_88591_to_utf8,
10079                             &inptr, &inbytesleft,
10080                             &outptr, &outbytesleft);
10081         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10082           result |= 4;
10083         iconv_close (cd_88591_to_utf8);
10084       }
10085   }
10086 #if 0 /* This bug could be worked around by the caller.  */
10087   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
10088   {
10089     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10090     if (cd_88591_to_utf8 != (iconv_t)(-1))
10091       {
10092         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10093         char buf[50];
10094         ICONV_CONST char *inptr = input;
10095         size_t inbytesleft = strlen (input);
10096         char *outptr = buf;
10097         size_t outbytesleft = sizeof (buf);
10098         size_t res = iconv (cd_88591_to_utf8,
10099                             &inptr, &inbytesleft,
10100                             &outptr, &outbytesleft);
10101         if ((int)res > 0)
10102           result |= 8;
10103         iconv_close (cd_88591_to_utf8);
10104       }
10105   }
10106 #endif
10107   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10108      provided.  */
10109   {
10110     /* Try standardized names.  */
10111     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10112     /* Try IRIX, OSF/1 names.  */
10113     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10114     /* Try AIX names.  */
10115     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10116     /* Try HP-UX names.  */
10117     iconv_t cd4 = iconv_open ("utf8", "eucJP");
10118     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10119         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10120       result |= 16;
10121     if (cd1 != (iconv_t)(-1))
10122       iconv_close (cd1);
10123     if (cd2 != (iconv_t)(-1))
10124       iconv_close (cd2);
10125     if (cd3 != (iconv_t)(-1))
10126       iconv_close (cd3);
10127     if (cd4 != (iconv_t)(-1))
10128       iconv_close (cd4);
10129   }
10130   return result;
10131
10132   ;
10133   return 0;
10134 }
10135 _ACEOF
10136 if ac_fn_c_try_run "$LINENO"
10137 then :
10138   am_cv_func_iconv_works=yes
10139 fi
10140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10141   conftest.$ac_objext conftest.beam conftest.$ac_ext
10142 fi
10143
10144         test "$am_cv_func_iconv_works" = no || break
10145       done
10146       LIBS="$am_save_LIBS"
10147
10148 fi
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10150 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10151     case "$am_cv_func_iconv_works" in
10152       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10153       *)   am_func_iconv=yes ;;
10154     esac
10155   else
10156     am_func_iconv=no am_cv_lib_iconv=no
10157   fi
10158   if test "$am_func_iconv" = yes; then
10159
10160 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10161
10162   fi
10163   if test "$am_cv_lib_iconv" = yes; then
10164     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10165 printf %s "checking how to link with libiconv... " >&6; }
10166     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10167 printf "%s\n" "$LIBICONV" >&6; }
10168   else
10169             CPPFLAGS="$am_save_CPPFLAGS"
10170     LIBICONV=
10171     LTLIBICONV=
10172   fi
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183     use_additional=yes
10184
10185   acl_save_prefix="$prefix"
10186   prefix="$acl_final_prefix"
10187   acl_save_exec_prefix="$exec_prefix"
10188   exec_prefix="$acl_final_exec_prefix"
10189
10190     eval additional_includedir=\"$includedir\"
10191     eval additional_libdir=\"$libdir\"
10192     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10193     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10194
10195   exec_prefix="$acl_save_exec_prefix"
10196   prefix="$acl_save_prefix"
10197
10198
10199 # Check whether --with-libintl-prefix was given.
10200 if test ${with_libintl_prefix+y}
10201 then :
10202   withval=$with_libintl_prefix;
10203     if test "X$withval" = "Xno"; then
10204       use_additional=no
10205     else
10206       if test "X$withval" = "X"; then
10207
10208   acl_save_prefix="$prefix"
10209   prefix="$acl_final_prefix"
10210   acl_save_exec_prefix="$exec_prefix"
10211   exec_prefix="$acl_final_exec_prefix"
10212
10213           eval additional_includedir=\"$includedir\"
10214           eval additional_libdir=\"$libdir\"
10215           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10216           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10217
10218   exec_prefix="$acl_save_exec_prefix"
10219   prefix="$acl_save_prefix"
10220
10221       else
10222         additional_includedir="$withval/include"
10223         additional_libdir="$withval/$acl_libdirstem"
10224         additional_libdir2="$withval/$acl_libdirstem2"
10225         additional_libdir3="$withval/$acl_libdirstem3"
10226       fi
10227     fi
10228
10229 fi
10230
10231   if test "X$additional_libdir2" = "X$additional_libdir"; then
10232     additional_libdir2=
10233   fi
10234   if test "X$additional_libdir3" = "X$additional_libdir"; then
10235     additional_libdir3=
10236   fi
10237       LIBINTL=
10238   LTLIBINTL=
10239   INCINTL=
10240   LIBINTL_PREFIX=
10241       HAVE_LIBINTL=
10242   rpathdirs=
10243   ltrpathdirs=
10244   names_already_handled=
10245   names_next_round='intl '
10246   while test -n "$names_next_round"; do
10247     names_this_round="$names_next_round"
10248     names_next_round=
10249     for name in $names_this_round; do
10250       already_handled=
10251       for n in $names_already_handled; do
10252         if test "$n" = "$name"; then
10253           already_handled=yes
10254           break
10255         fi
10256       done
10257       if test -z "$already_handled"; then
10258         names_already_handled="$names_already_handled $name"
10259                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10260         eval value=\"\$HAVE_LIB$uppername\"
10261         if test -n "$value"; then
10262           if test "$value" = yes; then
10263             eval value=\"\$LIB$uppername\"
10264             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10265             eval value=\"\$LTLIB$uppername\"
10266             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10267           else
10268                                     :
10269           fi
10270         else
10271                               found_dir=
10272           found_la=
10273           found_so=
10274           found_a=
10275           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10276           if test -n "$acl_shlibext"; then
10277             shrext=".$acl_shlibext"             # typically: shrext=.so
10278           else
10279             shrext=
10280           fi
10281           if test $use_additional = yes; then
10282             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10283               if test "X$found_dir" = "X"; then
10284                 eval dir=\$$additional_libdir_variable
10285                 if test -n "$dir"; then
10286                                                       if test -n "$acl_shlibext"; then
10287                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10288                       found_dir="$dir"
10289                       found_so="$dir/$libname$shrext"
10290                     else
10291                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10292                         ver=`(cd "$dir" && \
10293                               for f in "$libname$shrext".*; do echo "$f"; done \
10294                               | sed -e "s,^$libname$shrext\\\\.,," \
10295                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10296                               | sed 1q ) 2>/dev/null`
10297                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10298                           found_dir="$dir"
10299                           found_so="$dir/$libname$shrext.$ver"
10300                         fi
10301                       else
10302                         eval library_names=\"$acl_library_names_spec\"
10303                         for f in $library_names; do
10304                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10305                             found_dir="$dir"
10306                             found_so="$dir/$f"
10307                             break
10308                           fi
10309                         done
10310                       fi
10311                     fi
10312                   fi
10313                                     if test "X$found_dir" = "X"; then
10314                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10315                       found_dir="$dir"
10316                       found_a="$dir/$libname.$acl_libext"
10317                     fi
10318                   fi
10319                   if test "X$found_dir" != "X"; then
10320                     if test -f "$dir/$libname.la"; then
10321                       found_la="$dir/$libname.la"
10322                     fi
10323                   fi
10324                 fi
10325               fi
10326             done
10327           fi
10328           if test "X$found_dir" = "X"; then
10329             for x in $LDFLAGS $LTLIBINTL; do
10330
10331   acl_save_prefix="$prefix"
10332   prefix="$acl_final_prefix"
10333   acl_save_exec_prefix="$exec_prefix"
10334   exec_prefix="$acl_final_exec_prefix"
10335   eval x=\"$x\"
10336   exec_prefix="$acl_save_exec_prefix"
10337   prefix="$acl_save_prefix"
10338
10339               case "$x" in
10340                 -L*)
10341                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10342                                     if test -n "$acl_shlibext"; then
10343                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10344                       found_dir="$dir"
10345                       found_so="$dir/$libname$shrext"
10346                     else
10347                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10348                         ver=`(cd "$dir" && \
10349                               for f in "$libname$shrext".*; do echo "$f"; done \
10350                               | sed -e "s,^$libname$shrext\\\\.,," \
10351                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10352                               | sed 1q ) 2>/dev/null`
10353                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10354                           found_dir="$dir"
10355                           found_so="$dir/$libname$shrext.$ver"
10356                         fi
10357                       else
10358                         eval library_names=\"$acl_library_names_spec\"
10359                         for f in $library_names; do
10360                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10361                             found_dir="$dir"
10362                             found_so="$dir/$f"
10363                             break
10364                           fi
10365                         done
10366                       fi
10367                     fi
10368                   fi
10369                                     if test "X$found_dir" = "X"; then
10370                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10371                       found_dir="$dir"
10372                       found_a="$dir/$libname.$acl_libext"
10373                     fi
10374                   fi
10375                   if test "X$found_dir" != "X"; then
10376                     if test -f "$dir/$libname.la"; then
10377                       found_la="$dir/$libname.la"
10378                     fi
10379                   fi
10380                   ;;
10381               esac
10382               if test "X$found_dir" != "X"; then
10383                 break
10384               fi
10385             done
10386           fi
10387           if test "X$found_dir" != "X"; then
10388                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10389             if test "X$found_so" != "X"; then
10390                                                         if test "$enable_rpath" = no \
10391                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10392                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10393                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10394                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10395               else
10396                                                                                 haveit=
10397                 for x in $ltrpathdirs; do
10398                   if test "X$x" = "X$found_dir"; then
10399                     haveit=yes
10400                     break
10401                   fi
10402                 done
10403                 if test -z "$haveit"; then
10404                   ltrpathdirs="$ltrpathdirs $found_dir"
10405                 fi
10406                                 if test "$acl_hardcode_direct" = yes; then
10407                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10408                 else
10409                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10410                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10411                                                             haveit=
10412                     for x in $rpathdirs; do
10413                       if test "X$x" = "X$found_dir"; then
10414                         haveit=yes
10415                         break
10416                       fi
10417                     done
10418                     if test -z "$haveit"; then
10419                       rpathdirs="$rpathdirs $found_dir"
10420                     fi
10421                   else
10422                                                                                 haveit=
10423                     for x in $LDFLAGS $LIBINTL; do
10424
10425   acl_save_prefix="$prefix"
10426   prefix="$acl_final_prefix"
10427   acl_save_exec_prefix="$exec_prefix"
10428   exec_prefix="$acl_final_exec_prefix"
10429   eval x=\"$x\"
10430   exec_prefix="$acl_save_exec_prefix"
10431   prefix="$acl_save_prefix"
10432
10433                       if test "X$x" = "X-L$found_dir"; then
10434                         haveit=yes
10435                         break
10436                       fi
10437                     done
10438                     if test -z "$haveit"; then
10439                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10440                     fi
10441                     if test "$acl_hardcode_minus_L" != no; then
10442                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10443                     else
10444                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10445                     fi
10446                   fi
10447                 fi
10448               fi
10449             else
10450               if test "X$found_a" != "X"; then
10451                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10452               else
10453                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10454               fi
10455             fi
10456                         additional_includedir=
10457             case "$found_dir" in
10458               */$acl_libdirstem | */$acl_libdirstem/)
10459                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10460                 if test "$name" = 'intl'; then
10461                   LIBINTL_PREFIX="$basedir"
10462                 fi
10463                 additional_includedir="$basedir/include"
10464                 ;;
10465               */$acl_libdirstem2 | */$acl_libdirstem2/)
10466                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10467                 if test "$name" = 'intl'; then
10468                   LIBINTL_PREFIX="$basedir"
10469                 fi
10470                 additional_includedir="$basedir/include"
10471                 ;;
10472               */$acl_libdirstem3 | */$acl_libdirstem3/)
10473                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10474                 if test "$name" = 'intl'; then
10475                   LIBINTL_PREFIX="$basedir"
10476                 fi
10477                 additional_includedir="$basedir/include"
10478                 ;;
10479             esac
10480             if test "X$additional_includedir" != "X"; then
10481                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10482                 haveit=
10483                 if test "X$additional_includedir" = "X/usr/local/include"; then
10484                   if test -n "$GCC"; then
10485                     case $host_os in
10486                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10487                     esac
10488                   fi
10489                 fi
10490                 if test -z "$haveit"; then
10491                   for x in $CPPFLAGS $INCINTL; do
10492
10493   acl_save_prefix="$prefix"
10494   prefix="$acl_final_prefix"
10495   acl_save_exec_prefix="$exec_prefix"
10496   exec_prefix="$acl_final_exec_prefix"
10497   eval x=\"$x\"
10498   exec_prefix="$acl_save_exec_prefix"
10499   prefix="$acl_save_prefix"
10500
10501                     if test "X$x" = "X-I$additional_includedir"; then
10502                       haveit=yes
10503                       break
10504                     fi
10505                   done
10506                   if test -z "$haveit"; then
10507                     if test -d "$additional_includedir"; then
10508                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10509                     fi
10510                   fi
10511                 fi
10512               fi
10513             fi
10514                         if test -n "$found_la"; then
10515                                                         save_libdir="$libdir"
10516               case "$found_la" in
10517                 */* | *\\*) . "$found_la" ;;
10518                 *) . "./$found_la" ;;
10519               esac
10520               libdir="$save_libdir"
10521                             for dep in $dependency_libs; do
10522                 case "$dep" in
10523                   -L*)
10524                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10525                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10526                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10527                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10528                       haveit=
10529                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10530                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10531                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10532                         if test -n "$GCC"; then
10533                           case $host_os in
10534                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10535                           esac
10536                         fi
10537                       fi
10538                       if test -z "$haveit"; then
10539                         haveit=
10540                         for x in $LDFLAGS $LIBINTL; do
10541
10542   acl_save_prefix="$prefix"
10543   prefix="$acl_final_prefix"
10544   acl_save_exec_prefix="$exec_prefix"
10545   exec_prefix="$acl_final_exec_prefix"
10546   eval x=\"$x\"
10547   exec_prefix="$acl_save_exec_prefix"
10548   prefix="$acl_save_prefix"
10549
10550                           if test "X$x" = "X-L$dependency_libdir"; then
10551                             haveit=yes
10552                             break
10553                           fi
10554                         done
10555                         if test -z "$haveit"; then
10556                           if test -d "$dependency_libdir"; then
10557                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10558                           fi
10559                         fi
10560                         haveit=
10561                         for x in $LDFLAGS $LTLIBINTL; do
10562
10563   acl_save_prefix="$prefix"
10564   prefix="$acl_final_prefix"
10565   acl_save_exec_prefix="$exec_prefix"
10566   exec_prefix="$acl_final_exec_prefix"
10567   eval x=\"$x\"
10568   exec_prefix="$acl_save_exec_prefix"
10569   prefix="$acl_save_prefix"
10570
10571                           if test "X$x" = "X-L$dependency_libdir"; then
10572                             haveit=yes
10573                             break
10574                           fi
10575                         done
10576                         if test -z "$haveit"; then
10577                           if test -d "$dependency_libdir"; then
10578                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10579                           fi
10580                         fi
10581                       fi
10582                     fi
10583                     ;;
10584                   -R*)
10585                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10586                     if test "$enable_rpath" != no; then
10587                                                                   haveit=
10588                       for x in $rpathdirs; do
10589                         if test "X$x" = "X$dir"; then
10590                           haveit=yes
10591                           break
10592                         fi
10593                       done
10594                       if test -z "$haveit"; then
10595                         rpathdirs="$rpathdirs $dir"
10596                       fi
10597                                                                   haveit=
10598                       for x in $ltrpathdirs; do
10599                         if test "X$x" = "X$dir"; then
10600                           haveit=yes
10601                           break
10602                         fi
10603                       done
10604                       if test -z "$haveit"; then
10605                         ltrpathdirs="$ltrpathdirs $dir"
10606                       fi
10607                     fi
10608                     ;;
10609                   -l*)
10610                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10611                     ;;
10612                   *.la)
10613                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10614                     ;;
10615                   *)
10616                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10617                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10618                     ;;
10619                 esac
10620               done
10621             fi
10622           else
10623                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10624             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10625           fi
10626         fi
10627       fi
10628     done
10629   done
10630   if test "X$rpathdirs" != "X"; then
10631     if test -n "$acl_hardcode_libdir_separator"; then
10632                         alldirs=
10633       for found_dir in $rpathdirs; do
10634         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10635       done
10636             acl_save_libdir="$libdir"
10637       libdir="$alldirs"
10638       eval flag=\"$acl_hardcode_libdir_flag_spec\"
10639       libdir="$acl_save_libdir"
10640       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10641     else
10642             for found_dir in $rpathdirs; do
10643         acl_save_libdir="$libdir"
10644         libdir="$found_dir"
10645         eval flag=\"$acl_hardcode_libdir_flag_spec\"
10646         libdir="$acl_save_libdir"
10647         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10648       done
10649     fi
10650   fi
10651   if test "X$ltrpathdirs" != "X"; then
10652             for found_dir in $ltrpathdirs; do
10653       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10654     done
10655   fi
10656
10657
10658
10659
10660
10661           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10662 printf %s "checking for GNU gettext in libintl... " >&6; }
10663 if eval test \${$gt_func_gnugettext_libintl+y}
10664 then :
10665   printf %s "(cached) " >&6
10666 else $as_nop
10667   gt_save_CPPFLAGS="$CPPFLAGS"
10668             CPPFLAGS="$CPPFLAGS $INCINTL"
10669             gt_save_LIBS="$LIBS"
10670             LIBS="$LIBS $LIBINTL"
10671                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h.  */
10673
10674 #include <libintl.h>
10675 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10676 extern int _nl_msg_cat_cntr;
10677 extern
10678 #ifdef __cplusplus
10679 "C"
10680 #endif
10681 const char *_nl_expand_alias (const char *);
10682 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10683 #else
10684 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10685 #endif
10686 $gt_revision_test_code
10687
10688 int
10689 main (void)
10690 {
10691
10692 bindtextdomain ("", "");
10693 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10694
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 if ac_fn_c_try_link "$LINENO"
10700 then :
10701   eval "$gt_func_gnugettext_libintl=yes"
10702 else $as_nop
10703   eval "$gt_func_gnugettext_libintl=no"
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10706     conftest$ac_exeext conftest.$ac_ext
10707                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10708               LIBS="$LIBS $LIBICONV"
10709               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h.  */
10711
10712 #include <libintl.h>
10713 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10714 extern int _nl_msg_cat_cntr;
10715 extern
10716 #ifdef __cplusplus
10717 "C"
10718 #endif
10719 const char *_nl_expand_alias (const char *);
10720 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10721 #else
10722 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10723 #endif
10724 $gt_revision_test_code
10725
10726 int
10727 main (void)
10728 {
10729
10730 bindtextdomain ("", "");
10731 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10732
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"
10738 then :
10739   LIBINTL="$LIBINTL $LIBICONV"
10740                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10741                  eval "$gt_func_gnugettext_libintl=yes"
10742
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10745     conftest$ac_exeext conftest.$ac_ext
10746             fi
10747             CPPFLAGS="$gt_save_CPPFLAGS"
10748             LIBS="$gt_save_LIBS"
10749 fi
10750 eval ac_res=\$$gt_func_gnugettext_libintl
10751                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10752 printf "%s\n" "$ac_res" >&6; }
10753         fi
10754
10755                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10756            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10757                 && test "$PACKAGE" != gettext-runtime \
10758                 && test "$PACKAGE" != gettext-tools; }; then
10759           gt_use_preinstalled_gnugettext=yes
10760         else
10761                     LIBINTL=
10762           LTLIBINTL=
10763           INCINTL=
10764         fi
10765
10766
10767
10768     if test -n "$INTL_MACOSX_LIBS"; then
10769       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10770          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10771                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10772         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10773       fi
10774     fi
10775
10776     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10777        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10778
10779 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10780
10781     else
10782       USE_NLS=no
10783     fi
10784   fi
10785
10786   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10787 printf %s "checking whether to use NLS... " >&6; }
10788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10789 printf "%s\n" "$USE_NLS" >&6; }
10790   if test "$USE_NLS" = "yes"; then
10791     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10792 printf %s "checking where the gettext function comes from... " >&6; }
10793     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10794       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10795         gt_source="external libintl"
10796       else
10797         gt_source="libc"
10798       fi
10799     else
10800       gt_source="included intl directory"
10801     fi
10802     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10803 printf "%s\n" "$gt_source" >&6; }
10804   fi
10805
10806   if test "$USE_NLS" = "yes"; then
10807
10808     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10809       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10810         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10811 printf %s "checking how to link with libintl... " >&6; }
10812         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10813 printf "%s\n" "$LIBINTL" >&6; }
10814
10815   for element in $INCINTL; do
10816     haveit=
10817     for x in $CPPFLAGS; do
10818
10819   acl_save_prefix="$prefix"
10820   prefix="$acl_final_prefix"
10821   acl_save_exec_prefix="$exec_prefix"
10822   exec_prefix="$acl_final_exec_prefix"
10823   eval x=\"$x\"
10824   exec_prefix="$acl_save_exec_prefix"
10825   prefix="$acl_save_prefix"
10826
10827       if test "X$x" = "X$element"; then
10828         haveit=yes
10829         break
10830       fi
10831     done
10832     if test -z "$haveit"; then
10833       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10834     fi
10835   done
10836
10837       fi
10838
10839
10840 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10841
10842
10843 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10844
10845     fi
10846
10847         POSUB=po
10848   fi
10849
10850
10851
10852     INTLLIBS="$LIBINTL"
10853
10854
10855
10856
10857
10858
10859
10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10861 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10862 set x ${MAKE-make}
10863 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10864 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10865 then :
10866   printf %s "(cached) " >&6
10867 else $as_nop
10868   cat >conftest.make <<\_ACEOF
10869 SHELL = /bin/sh
10870 all:
10871         @echo '@@@%%%=$(MAKE)=@@@%%%'
10872 _ACEOF
10873 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10874 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10875   *@@@%%%=?*=@@@%%%*)
10876     eval ac_cv_prog_make_${ac_make}_set=yes;;
10877   *)
10878     eval ac_cv_prog_make_${ac_make}_set=no;;
10879 esac
10880 rm -f conftest.make
10881 fi
10882 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 printf "%s\n" "yes" >&6; }
10885   SET_MAKE=
10886 else
10887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 printf "%s\n" "no" >&6; }
10889   SET_MAKE="MAKE=${MAKE-make}"
10890 fi
10891
10892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10893 printf %s "checking for GNU make... " >&6; }
10894 if test ${_cv_gnu_make_command+y}
10895 then :
10896   printf %s "(cached) " >&6
10897 else $as_nop
10898   _cv_gnu_make_command='' ;
10899                 if test -n "$FORCE_NATIVE_MAKE" ; then
10900                    MAKES="make"
10901                 else
10902                    MAKES="make gmake gnumake"
10903                 fi
10904                 for a in "$MAKE" $MAKES ; do
10905                         if test -z "$a" ; then continue ; fi ;
10906                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
10907                                 _cv_gnu_make_command=$a ;
10908                                 break;
10909                         fi
10910                 done ;
10911
10912 fi
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10914 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10915         if test  "x$_cv_gnu_make_command" != "x"  ; then
10916                 ifGNUmake='' ;
10917                 ifNotGNUmake='#' ;
10918         else
10919                 ifGNUmake='#' ;
10920                 ifNotGNUmake='' ;
10921                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10922 printf "%s\n" "\"Not found\"" >&6; };
10923         fi
10924
10925
10926
10927 # Extract the first word of "ln", so it can be a program name with args.
10928 set dummy ln; ac_word=$2
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 printf %s "checking for $ac_word... " >&6; }
10931 if test ${ac_cv_path_LN+y}
10932 then :
10933   printf %s "(cached) " >&6
10934 else $as_nop
10935   case $LN in
10936   [\\/]* | ?:[\\/]*)
10937   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10938   ;;
10939   *)
10940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10942 do
10943   IFS=$as_save_IFS
10944   case $as_dir in #(((
10945     '') as_dir=./ ;;
10946     */) ;;
10947     *) as_dir=$as_dir/ ;;
10948   esac
10949     for ac_exec_ext in '' $ac_executable_extensions; do
10950   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10951     ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10952     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10953     break 2
10954   fi
10955 done
10956   done
10957 IFS=$as_save_IFS
10958
10959   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10960   ;;
10961 esac
10962 fi
10963 LN=$ac_cv_path_LN
10964 if test -n "$LN"; then
10965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10966 printf "%s\n" "$LN" >&6; }
10967 else
10968   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 printf "%s\n" "no" >&6; }
10970 fi
10971
10972
10973
10974 mkdir_p=$MKDIR_P
10975
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10977 printf %s "checking whether ln -s works... " >&6; }
10978 LN_S=$as_ln_s
10979 if test "$LN_S" = "ln -s"; then
10980   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10981 printf "%s\n" "yes" >&6; }
10982 else
10983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10984 printf "%s\n" "no, using $LN_S" >&6; }
10985 fi
10986
10987 # Extract the first word of "mv", so it can be a program name with args.
10988 set dummy mv; ac_word=$2
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990 printf %s "checking for $ac_word... " >&6; }
10991 if test ${ac_cv_path_MV+y}
10992 then :
10993   printf %s "(cached) " >&6
10994 else $as_nop
10995   case $MV in
10996   [\\/]* | ?:[\\/]*)
10997   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10998   ;;
10999   *)
11000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11002 do
11003   IFS=$as_save_IFS
11004   case $as_dir in #(((
11005     '') as_dir=./ ;;
11006     */) ;;
11007     *) as_dir=$as_dir/ ;;
11008   esac
11009     for ac_exec_ext in '' $ac_executable_extensions; do
11010   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11011     ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11012     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11013     break 2
11014   fi
11015 done
11016   done
11017 IFS=$as_save_IFS
11018
11019   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11020   ;;
11021 esac
11022 fi
11023 MV=$ac_cv_path_MV
11024 if test -n "$MV"; then
11025   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11026 printf "%s\n" "$MV" >&6; }
11027 else
11028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 printf "%s\n" "no" >&6; }
11030 fi
11031
11032
11033 # Extract the first word of "cp", so it can be a program name with args.
11034 set dummy cp; ac_word=$2
11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 printf %s "checking for $ac_word... " >&6; }
11037 if test ${ac_cv_path_CP+y}
11038 then :
11039   printf %s "(cached) " >&6
11040 else $as_nop
11041   case $CP in
11042   [\\/]* | ?:[\\/]*)
11043   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11044   ;;
11045   *)
11046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11048 do
11049   IFS=$as_save_IFS
11050   case $as_dir in #(((
11051     '') as_dir=./ ;;
11052     */) ;;
11053     *) as_dir=$as_dir/ ;;
11054   esac
11055     for ac_exec_ext in '' $ac_executable_extensions; do
11056   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11057     ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11058     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11059     break 2
11060   fi
11061 done
11062   done
11063 IFS=$as_save_IFS
11064
11065   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11066   ;;
11067 esac
11068 fi
11069 CP=$ac_cv_path_CP
11070 if test -n "$CP"; then
11071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11072 printf "%s\n" "$CP" >&6; }
11073 else
11074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 printf "%s\n" "no" >&6; }
11076 fi
11077
11078
11079 # Extract the first word of "rm", so it can be a program name with args.
11080 set dummy rm; ac_word=$2
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 printf %s "checking for $ac_word... " >&6; }
11083 if test ${ac_cv_path_RM+y}
11084 then :
11085   printf %s "(cached) " >&6
11086 else $as_nop
11087   case $RM in
11088   [\\/]* | ?:[\\/]*)
11089   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11090   ;;
11091   *)
11092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11094 do
11095   IFS=$as_save_IFS
11096   case $as_dir in #(((
11097     '') as_dir=./ ;;
11098     */) ;;
11099     *) as_dir=$as_dir/ ;;
11100   esac
11101     for ac_exec_ext in '' $ac_executable_extensions; do
11102   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11103     ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11104     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11105     break 2
11106   fi
11107 done
11108   done
11109 IFS=$as_save_IFS
11110
11111   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11112   ;;
11113 esac
11114 fi
11115 RM=$ac_cv_path_RM
11116 if test -n "$RM"; then
11117   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11118 printf "%s\n" "$RM" >&6; }
11119 else
11120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121 printf "%s\n" "no" >&6; }
11122 fi
11123
11124
11125 # Extract the first word of "chmod", so it can be a program name with args.
11126 set dummy chmod; ac_word=$2
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128 printf %s "checking for $ac_word... " >&6; }
11129 if test ${ac_cv_path_CHMOD+y}
11130 then :
11131   printf %s "(cached) " >&6
11132 else $as_nop
11133   case $CHMOD in
11134   [\\/]* | ?:[\\/]*)
11135   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11136   ;;
11137   *)
11138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11140 do
11141   IFS=$as_save_IFS
11142   case $as_dir in #(((
11143     '') as_dir=./ ;;
11144     */) ;;
11145     *) as_dir=$as_dir/ ;;
11146   esac
11147     for ac_exec_ext in '' $ac_executable_extensions; do
11148   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11149     ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11150     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11151     break 2
11152   fi
11153 done
11154   done
11155 IFS=$as_save_IFS
11156
11157   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11158   ;;
11159 esac
11160 fi
11161 CHMOD=$ac_cv_path_CHMOD
11162 if test -n "$CHMOD"; then
11163   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11164 printf "%s\n" "$CHMOD" >&6; }
11165 else
11166   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 printf "%s\n" "no" >&6; }
11168 fi
11169
11170
11171 for ac_prog in gawk mawk nawk awk
11172 do
11173   # Extract the first word of "$ac_prog", so it can be a program name with args.
11174 set dummy $ac_prog; ac_word=$2
11175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176 printf %s "checking for $ac_word... " >&6; }
11177 if test ${ac_cv_prog_AWK+y}
11178 then :
11179   printf %s "(cached) " >&6
11180 else $as_nop
11181   if test -n "$AWK"; then
11182   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11183 else
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11186 do
11187   IFS=$as_save_IFS
11188   case $as_dir in #(((
11189     '') as_dir=./ ;;
11190     */) ;;
11191     *) as_dir=$as_dir/ ;;
11192   esac
11193     for ac_exec_ext in '' $ac_executable_extensions; do
11194   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11195     ac_cv_prog_AWK="$ac_prog"
11196     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11197     break 2
11198   fi
11199 done
11200   done
11201 IFS=$as_save_IFS
11202
11203 fi
11204 fi
11205 AWK=$ac_cv_prog_AWK
11206 if test -n "$AWK"; then
11207   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11208 printf "%s\n" "$AWK" >&6; }
11209 else
11210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 printf "%s\n" "no" >&6; }
11212 fi
11213
11214
11215   test -n "$AWK" && break
11216 done
11217
11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11219 printf %s "checking for egrep... " >&6; }
11220 if test ${ac_cv_path_EGREP+y}
11221 then :
11222   printf %s "(cached) " >&6
11223 else $as_nop
11224   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11225    then ac_cv_path_EGREP="$GREP -E"
11226    else
11227      if test -z "$EGREP"; then
11228   ac_path_EGREP_found=false
11229   # Loop through the user's path and test for each of PROGNAME-LIST
11230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11232 do
11233   IFS=$as_save_IFS
11234   case $as_dir in #(((
11235     '') as_dir=./ ;;
11236     */) ;;
11237     *) as_dir=$as_dir/ ;;
11238   esac
11239     for ac_prog in egrep
11240    do
11241     for ac_exec_ext in '' $ac_executable_extensions; do
11242       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11243       as_fn_executable_p "$ac_path_EGREP" || continue
11244 # Check for GNU ac_path_EGREP and select it if it is found.
11245   # Check for GNU $ac_path_EGREP
11246 case `"$ac_path_EGREP" --version 2>&1` in
11247 *GNU*)
11248   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11249 *)
11250   ac_count=0
11251   printf %s 0123456789 >"conftest.in"
11252   while :
11253   do
11254     cat "conftest.in" "conftest.in" >"conftest.tmp"
11255     mv "conftest.tmp" "conftest.in"
11256     cp "conftest.in" "conftest.nl"
11257     printf "%s\n" 'EGREP' >> "conftest.nl"
11258     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11259     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11260     as_fn_arith $ac_count + 1 && ac_count=$as_val
11261     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11262       # Best one so far, save it but keep looking for a better one
11263       ac_cv_path_EGREP="$ac_path_EGREP"
11264       ac_path_EGREP_max=$ac_count
11265     fi
11266     # 10*(2^10) chars as input seems more than enough
11267     test $ac_count -gt 10 && break
11268   done
11269   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11270 esac
11271
11272       $ac_path_EGREP_found && break 3
11273     done
11274   done
11275   done
11276 IFS=$as_save_IFS
11277   if test -z "$ac_cv_path_EGREP"; then
11278     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11279   fi
11280 else
11281   ac_cv_path_EGREP=$EGREP
11282 fi
11283
11284    fi
11285 fi
11286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11287 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11288  EGREP="$ac_cv_path_EGREP"
11289
11290
11291 # Extract the first word of "sed", so it can be a program name with args.
11292 set dummy sed; ac_word=$2
11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294 printf %s "checking for $ac_word... " >&6; }
11295 if test ${ac_cv_path_SED+y}
11296 then :
11297   printf %s "(cached) " >&6
11298 else $as_nop
11299   case $SED in
11300   [\\/]* | ?:[\\/]*)
11301   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11302   ;;
11303   *)
11304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11306 do
11307   IFS=$as_save_IFS
11308   case $as_dir in #(((
11309     '') as_dir=./ ;;
11310     */) ;;
11311     *) as_dir=$as_dir/ ;;
11312   esac
11313     for ac_exec_ext in '' $ac_executable_extensions; do
11314   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11315     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11316     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11317     break 2
11318   fi
11319 done
11320   done
11321 IFS=$as_save_IFS
11322
11323   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11324   ;;
11325 esac
11326 fi
11327 SED=$ac_cv_path_SED
11328 if test -n "$SED"; then
11329   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11330 printf "%s\n" "$SED" >&6; }
11331 else
11332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 printf "%s\n" "no" >&6; }
11334 fi
11335
11336
11337 # Extract the first word of "perl", so it can be a program name with args.
11338 set dummy perl; ac_word=$2
11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 printf %s "checking for $ac_word... " >&6; }
11341 if test ${ac_cv_path_PERL+y}
11342 then :
11343   printf %s "(cached) " >&6
11344 else $as_nop
11345   case $PERL in
11346   [\\/]* | ?:[\\/]*)
11347   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11348   ;;
11349   *)
11350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11352 do
11353   IFS=$as_save_IFS
11354   case $as_dir in #(((
11355     '') as_dir=./ ;;
11356     */) ;;
11357     *) as_dir=$as_dir/ ;;
11358   esac
11359     for ac_exec_ext in '' $ac_executable_extensions; do
11360   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11361     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11362     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11363     break 2
11364   fi
11365 done
11366   done
11367 IFS=$as_save_IFS
11368
11369   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11370   ;;
11371 esac
11372 fi
11373 PERL=$ac_cv_path_PERL
11374 if test -n "$PERL"; then
11375   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11376 printf "%s\n" "$PERL" >&6; }
11377 else
11378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 printf "%s\n" "no" >&6; }
11380 fi
11381
11382
11383 # Extract the first word of "ldconfig", so it can be a program name with args.
11384 set dummy ldconfig; ac_word=$2
11385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386 printf %s "checking for $ac_word... " >&6; }
11387 if test ${ac_cv_path_LDCONFIG+y}
11388 then :
11389   printf %s "(cached) " >&6
11390 else $as_nop
11391   case $LDCONFIG in
11392   [\\/]* | ?:[\\/]*)
11393   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11394   ;;
11395   *)
11396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11398 do
11399   IFS=$as_save_IFS
11400   case $as_dir in #(((
11401     '') as_dir=./ ;;
11402     */) ;;
11403     *) as_dir=$as_dir/ ;;
11404   esac
11405     for ac_exec_ext in '' $ac_executable_extensions; do
11406   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11407     ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11408     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11409     break 2
11410   fi
11411 done
11412   done
11413 IFS=$as_save_IFS
11414
11415   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11416   ;;
11417 esac
11418 fi
11419 LDCONFIG=$ac_cv_path_LDCONFIG
11420 if test -n "$LDCONFIG"; then
11421   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11422 printf "%s\n" "$LDCONFIG" >&6; }
11423 else
11424   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 printf "%s\n" "no" >&6; }
11426 fi
11427
11428
11429 if test -n "$ac_tool_prefix"; then
11430   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11431 set dummy ${ac_tool_prefix}ar; ac_word=$2
11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433 printf %s "checking for $ac_word... " >&6; }
11434 if test ${ac_cv_prog_AR+y}
11435 then :
11436   printf %s "(cached) " >&6
11437 else $as_nop
11438   if test -n "$AR"; then
11439   ac_cv_prog_AR="$AR" # Let the user override the test.
11440 else
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11443 do
11444   IFS=$as_save_IFS
11445   case $as_dir in #(((
11446     '') as_dir=./ ;;
11447     */) ;;
11448     *) as_dir=$as_dir/ ;;
11449   esac
11450     for ac_exec_ext in '' $ac_executable_extensions; do
11451   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11452     ac_cv_prog_AR="${ac_tool_prefix}ar"
11453     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11454     break 2
11455   fi
11456 done
11457   done
11458 IFS=$as_save_IFS
11459
11460 fi
11461 fi
11462 AR=$ac_cv_prog_AR
11463 if test -n "$AR"; then
11464   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11465 printf "%s\n" "$AR" >&6; }
11466 else
11467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 printf "%s\n" "no" >&6; }
11469 fi
11470
11471
11472 fi
11473 if test -z "$ac_cv_prog_AR"; then
11474   ac_ct_AR=$AR
11475   # Extract the first word of "ar", so it can be a program name with args.
11476 set dummy ar; ac_word=$2
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 printf %s "checking for $ac_word... " >&6; }
11479 if test ${ac_cv_prog_ac_ct_AR+y}
11480 then :
11481   printf %s "(cached) " >&6
11482 else $as_nop
11483   if test -n "$ac_ct_AR"; then
11484   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11485 else
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11488 do
11489   IFS=$as_save_IFS
11490   case $as_dir in #(((
11491     '') as_dir=./ ;;
11492     */) ;;
11493     *) as_dir=$as_dir/ ;;
11494   esac
11495     for ac_exec_ext in '' $ac_executable_extensions; do
11496   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11497     ac_cv_prog_ac_ct_AR="ar"
11498     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11499     break 2
11500   fi
11501 done
11502   done
11503 IFS=$as_save_IFS
11504
11505 fi
11506 fi
11507 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11508 if test -n "$ac_ct_AR"; then
11509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11510 printf "%s\n" "$ac_ct_AR" >&6; }
11511 else
11512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 printf "%s\n" "no" >&6; }
11514 fi
11515
11516   if test "x$ac_ct_AR" = x; then
11517     AR="ar"
11518   else
11519     case $cross_compiling:$ac_tool_warned in
11520 yes:)
11521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11523 ac_tool_warned=yes ;;
11524 esac
11525     AR=$ac_ct_AR
11526   fi
11527 else
11528   AR="$ac_cv_prog_AR"
11529 fi
11530
11531 if test -n "$ac_tool_prefix"; then
11532   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 printf %s "checking for $ac_word... " >&6; }
11536 if test ${ac_cv_prog_RANLIB+y}
11537 then :
11538   printf %s "(cached) " >&6
11539 else $as_nop
11540   if test -n "$RANLIB"; then
11541   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11542 else
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11545 do
11546   IFS=$as_save_IFS
11547   case $as_dir in #(((
11548     '') as_dir=./ ;;
11549     */) ;;
11550     *) as_dir=$as_dir/ ;;
11551   esac
11552     for ac_exec_ext in '' $ac_executable_extensions; do
11553   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11554     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11555     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11556     break 2
11557   fi
11558 done
11559   done
11560 IFS=$as_save_IFS
11561
11562 fi
11563 fi
11564 RANLIB=$ac_cv_prog_RANLIB
11565 if test -n "$RANLIB"; then
11566   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11567 printf "%s\n" "$RANLIB" >&6; }
11568 else
11569   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 printf "%s\n" "no" >&6; }
11571 fi
11572
11573
11574 fi
11575 if test -z "$ac_cv_prog_RANLIB"; then
11576   ac_ct_RANLIB=$RANLIB
11577   # Extract the first word of "ranlib", so it can be a program name with args.
11578 set dummy ranlib; ac_word=$2
11579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11580 printf %s "checking for $ac_word... " >&6; }
11581 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11582 then :
11583   printf %s "(cached) " >&6
11584 else $as_nop
11585   if test -n "$ac_ct_RANLIB"; then
11586   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11587 else
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in $PATH
11590 do
11591   IFS=$as_save_IFS
11592   case $as_dir in #(((
11593     '') as_dir=./ ;;
11594     */) ;;
11595     *) as_dir=$as_dir/ ;;
11596   esac
11597     for ac_exec_ext in '' $ac_executable_extensions; do
11598   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11599     ac_cv_prog_ac_ct_RANLIB="ranlib"
11600     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11601     break 2
11602   fi
11603 done
11604   done
11605 IFS=$as_save_IFS
11606
11607 fi
11608 fi
11609 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11610 if test -n "$ac_ct_RANLIB"; then
11611   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11612 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11613 else
11614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 printf "%s\n" "no" >&6; }
11616 fi
11617
11618   if test "x$ac_ct_RANLIB" = x; then
11619     RANLIB=":"
11620   else
11621     case $cross_compiling:$ac_tool_warned in
11622 yes:)
11623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11625 ac_tool_warned=yes ;;
11626 esac
11627     RANLIB=$ac_ct_RANLIB
11628   fi
11629 else
11630   RANLIB="$ac_cv_prog_RANLIB"
11631 fi
11632
11633 if test -n "$ac_tool_prefix"; then
11634   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11635 set dummy ${ac_tool_prefix}strip; ac_word=$2
11636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 printf %s "checking for $ac_word... " >&6; }
11638 if test ${ac_cv_prog_STRIP+y}
11639 then :
11640   printf %s "(cached) " >&6
11641 else $as_nop
11642   if test -n "$STRIP"; then
11643   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11644 else
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11647 do
11648   IFS=$as_save_IFS
11649   case $as_dir in #(((
11650     '') as_dir=./ ;;
11651     */) ;;
11652     *) as_dir=$as_dir/ ;;
11653   esac
11654     for ac_exec_ext in '' $ac_executable_extensions; do
11655   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11656     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11657     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11658     break 2
11659   fi
11660 done
11661   done
11662 IFS=$as_save_IFS
11663
11664 fi
11665 fi
11666 STRIP=$ac_cv_prog_STRIP
11667 if test -n "$STRIP"; then
11668   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11669 printf "%s\n" "$STRIP" >&6; }
11670 else
11671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 printf "%s\n" "no" >&6; }
11673 fi
11674
11675
11676 fi
11677 if test -z "$ac_cv_prog_STRIP"; then
11678   ac_ct_STRIP=$STRIP
11679   # Extract the first word of "strip", so it can be a program name with args.
11680 set dummy strip; ac_word=$2
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 printf %s "checking for $ac_word... " >&6; }
11683 if test ${ac_cv_prog_ac_ct_STRIP+y}
11684 then :
11685   printf %s "(cached) " >&6
11686 else $as_nop
11687   if test -n "$ac_ct_STRIP"; then
11688   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11689 else
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11692 do
11693   IFS=$as_save_IFS
11694   case $as_dir in #(((
11695     '') as_dir=./ ;;
11696     */) ;;
11697     *) as_dir=$as_dir/ ;;
11698   esac
11699     for ac_exec_ext in '' $ac_executable_extensions; do
11700   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11701     ac_cv_prog_ac_ct_STRIP="strip"
11702     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11703     break 2
11704   fi
11705 done
11706   done
11707 IFS=$as_save_IFS
11708
11709 fi
11710 fi
11711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11712 if test -n "$ac_ct_STRIP"; then
11713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11714 printf "%s\n" "$ac_ct_STRIP" >&6; }
11715 else
11716   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 printf "%s\n" "no" >&6; }
11718 fi
11719
11720   if test "x$ac_ct_STRIP" = x; then
11721     STRIP=":"
11722   else
11723     case $cross_compiling:$ac_tool_warned in
11724 yes:)
11725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11727 ac_tool_warned=yes ;;
11728 esac
11729     STRIP=$ac_ct_STRIP
11730   fi
11731 else
11732   STRIP="$ac_cv_prog_STRIP"
11733 fi
11734
11735 # Extract the first word of "makeinfo", so it can be a program name with args.
11736 set dummy makeinfo; ac_word=$2
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738 printf %s "checking for $ac_word... " >&6; }
11739 if test ${ac_cv_prog_MAKEINFO+y}
11740 then :
11741   printf %s "(cached) " >&6
11742 else $as_nop
11743   if test -n "$MAKEINFO"; then
11744   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11745 else
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11748 do
11749   IFS=$as_save_IFS
11750   case $as_dir in #(((
11751     '') as_dir=./ ;;
11752     */) ;;
11753     *) as_dir=$as_dir/ ;;
11754   esac
11755     for ac_exec_ext in '' $ac_executable_extensions; do
11756   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11757     ac_cv_prog_MAKEINFO="makeinfo"
11758     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11759     break 2
11760   fi
11761 done
11762   done
11763 IFS=$as_save_IFS
11764
11765 fi
11766 fi
11767 MAKEINFO=$ac_cv_prog_MAKEINFO
11768 if test -n "$MAKEINFO"; then
11769   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11770 printf "%s\n" "$MAKEINFO" >&6; }
11771 else
11772   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 printf "%s\n" "no" >&6; }
11774 fi
11775
11776
11777 if test "_$MAKEINFO" = "_"; then
11778     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11779 else
11780     case "$MAKEINFO" in
11781       */missing.*)
11782         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11783 *** Makeinfo is missing. Info documentation will not be built." >&5
11784 printf "%s\n" "$as_me: WARNING:
11785 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11786         ;;
11787       *)
11788         ;;
11789     esac
11790 fi
11791
11792
11793 # See if we need a separate native compiler.
11794 if test $cross_compiling = no; then
11795   BUILD_CC="$CC"
11796
11797 else
11798   for ac_prog in gcc cc
11799 do
11800   # Extract the first word of "$ac_prog", so it can be a program name with args.
11801 set dummy $ac_prog; ac_word=$2
11802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 printf %s "checking for $ac_word... " >&6; }
11804 if test ${ac_cv_prog_BUILD_CC+y}
11805 then :
11806   printf %s "(cached) " >&6
11807 else $as_nop
11808   if test -n "$BUILD_CC"; then
11809   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11810 else
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814   IFS=$as_save_IFS
11815   case $as_dir in #(((
11816     '') as_dir=./ ;;
11817     */) ;;
11818     *) as_dir=$as_dir/ ;;
11819   esac
11820     for ac_exec_ext in '' $ac_executable_extensions; do
11821   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11822     ac_cv_prog_BUILD_CC="$ac_prog"
11823     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11824     break 2
11825   fi
11826 done
11827   done
11828 IFS=$as_save_IFS
11829
11830 fi
11831 fi
11832 BUILD_CC=$ac_cv_prog_BUILD_CC
11833 if test -n "$BUILD_CC"; then
11834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11835 printf "%s\n" "$BUILD_CC" >&6; }
11836 else
11837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 printf "%s\n" "no" >&6; }
11839 fi
11840
11841
11842   test -n "$BUILD_CC" && break
11843 done
11844
11845 fi
11846 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11847 if test "x$ac_cv_header_dirent_h" = xyes
11848 then :
11849   printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11850
11851 fi
11852 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11853 if test "x$ac_cv_header_errno_h" = xyes
11854 then :
11855   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11856
11857 fi
11858 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11859 if test "x$ac_cv_header_execinfo_h" = xyes
11860 then :
11861   printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11862
11863 fi
11864 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11865 if test "x$ac_cv_header_getopt_h" = xyes
11866 then :
11867   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11868
11869 fi
11870 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11871 if test "x$ac_cv_header_malloc_h" = xyes
11872 then :
11873   printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11874
11875 fi
11876 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11877 if test "x$ac_cv_header_mntent_h" = xyes
11878 then :
11879   printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11880
11881 fi
11882 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11883 if test "x$ac_cv_header_paths_h" = xyes
11884 then :
11885   printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11886
11887 fi
11888 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11889 if test "x$ac_cv_header_pthread_h" = xyes
11890 then :
11891   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11892
11893 fi
11894 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11895 if test "x$ac_cv_header_semaphore_h" = xyes
11896 then :
11897   printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11898
11899 fi
11900 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11901 if test "x$ac_cv_header_setjmp_h" = xyes
11902 then :
11903   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11904
11905 fi
11906 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11907 if test "x$ac_cv_header_signal_h" = xyes
11908 then :
11909   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11910
11911 fi
11912 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11913 if test "x$ac_cv_header_stdarg_h" = xyes
11914 then :
11915   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11916
11917 fi
11918 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11919 if test "x$ac_cv_header_stdint_h" = xyes
11920 then :
11921   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11922
11923 fi
11924 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11925 if test "x$ac_cv_header_stdlib_h" = xyes
11926 then :
11927   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11928
11929 fi
11930 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11931 if test "x$ac_cv_header_termios_h" = xyes
11932 then :
11933   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11934
11935 fi
11936 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11937 if test "x$ac_cv_header_termio_h" = xyes
11938 then :
11939   printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11940
11941 fi
11942 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11943 if test "x$ac_cv_header_unistd_h" = xyes
11944 then :
11945   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11946
11947 fi
11948 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11949 if test "x$ac_cv_header_utime_h" = xyes
11950 then :
11951   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11952
11953 fi
11954 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11955 if test "x$ac_cv_header_attr_xattr_h" = xyes
11956 then :
11957   printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11958
11959 fi
11960 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11961 if test "x$ac_cv_header_linux_falloc_h" = xyes
11962 then :
11963   printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11964
11965 fi
11966 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11967 if test "x$ac_cv_header_linux_fd_h" = xyes
11968 then :
11969   printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11970
11971 fi
11972 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11973 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11974 then :
11975   printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11976
11977 fi
11978 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11979 if test "x$ac_cv_header_linux_major_h" = xyes
11980 then :
11981   printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11982
11983 fi
11984 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11985 if test "x$ac_cv_header_linux_loop_h" = xyes
11986 then :
11987   printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11988
11989 fi
11990 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11991 if test "x$ac_cv_header_linux_types_h" = xyes
11992 then :
11993   printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11994
11995 fi
11996 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11997 if test "x$ac_cv_header_net_if_dl_h" = xyes
11998 then :
11999   printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
12000
12001 fi
12002 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12003 if test "x$ac_cv_header_netinet_in_h" = xyes
12004 then :
12005   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12006
12007 fi
12008 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12009 if test "x$ac_cv_header_sys_acl_h" = xyes
12010 then :
12011   printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12012
12013 fi
12014 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12015 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12016 then :
12017   printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12018
12019 fi
12020 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12021 if test "x$ac_cv_header_sys_disk_h" = xyes
12022 then :
12023   printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12024
12025 fi
12026 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12027 if test "x$ac_cv_header_sys_file_h" = xyes
12028 then :
12029   printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12030
12031 fi
12032 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12033 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12034 then :
12035   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12036
12037 fi
12038 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12039 if test "x$ac_cv_header_sys_key_h" = xyes
12040 then :
12041   printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12042
12043 fi
12044 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12045 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12046 then :
12047   printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12048
12049 fi
12050 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12051 if test "x$ac_cv_header_sys_mman_h" = xyes
12052 then :
12053   printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12054
12055 fi
12056 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12057 if test "x$ac_cv_header_sys_mount_h" = xyes
12058 then :
12059   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12060
12061 fi
12062 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12063 if test "x$ac_cv_header_sys_prctl_h" = xyes
12064 then :
12065   printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12066
12067 fi
12068 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12069 if test "x$ac_cv_header_sys_random_h" = xyes
12070 then :
12071   printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12072
12073 fi
12074 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12075 if test "x$ac_cv_header_sys_resource_h" = xyes
12076 then :
12077   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12078
12079 fi
12080 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12081 if test "x$ac_cv_header_sys_select_h" = xyes
12082 then :
12083   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12084
12085 fi
12086 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12087 if test "x$ac_cv_header_sys_socket_h" = xyes
12088 then :
12089   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12090
12091 fi
12092 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12093 if test "x$ac_cv_header_sys_sockio_h" = xyes
12094 then :
12095   printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12096
12097 fi
12098 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12099 if test "x$ac_cv_header_sys_stat_h" = xyes
12100 then :
12101   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12102
12103 fi
12104 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12105 if test "x$ac_cv_header_sys_syscall_h" = xyes
12106 then :
12107   printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12108
12109 fi
12110 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12111 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12112 then :
12113   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12114
12115 fi
12116 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12117 if test "x$ac_cv_header_sys_time_h" = xyes
12118 then :
12119   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12120
12121 fi
12122 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12123 if test "x$ac_cv_header_sys_types_h" = xyes
12124 then :
12125   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12126
12127 fi
12128 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12129 if test "x$ac_cv_header_sys_un_h" = xyes
12130 then :
12131   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12132
12133 fi
12134 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12135 if test "x$ac_cv_header_sys_wait_h" = xyes
12136 then :
12137   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12138
12139 fi
12140 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12141 if test "x$ac_cv_header_sys_xattr_h" = xyes
12142 then :
12143   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12144
12145 fi
12146
12147 case "$host_os" in
12148 mingw*)
12149         # The above checks only detect system headers, not the headers in
12150         # ./include/mingw/, so explicitly define them to be available.
12151         printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12152
12153         printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12154
12155         printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12156
12157         printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12158
12159         printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12160
12161         ;;
12162 esac
12163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12164 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12165 DD=
12166 for i in dd gdd ; do
12167         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12168                 DD=$i
12169                 break
12170         fi
12171 done
12172 if test -n "$DD" ; then
12173         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12174 printf "%s\n" "$DD" >&6; }
12175 else
12176         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12177 printf "%s\n" "not found, using dd" >&6; }
12178         DD=dd
12179         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12180 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12181 fi
12182
12183
12184 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12185 #if HAVE_SYS_TYPES_H
12186 #include <sys/types.h>
12187 #endif
12188 #if HAVE_SYS_SOCKET
12189 #include <sys/socket.h>
12190 #endif
12191
12192 "
12193 if test "x$ac_cv_header_net_if_h" = xyes
12194 then :
12195   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12196
12197 fi
12198
12199 ac_func=
12200 for ac_item in $ac_func_c_list
12201 do
12202   if test $ac_func; then
12203     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12204     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12205       echo "#define $ac_item 1" >> confdefs.h
12206     fi
12207     ac_func=
12208   else
12209     ac_func=$ac_item
12210   fi
12211 done
12212
12213 if test "x$ac_cv_func_vprintf" = xno
12214 then :
12215   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12216 if test "x$ac_cv_func__doprnt" = xyes
12217 then :
12218
12219 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12220
12221 fi
12222
12223 fi
12224 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12225 "
12226 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12227 then :
12228
12229 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12230
12231 fi
12232
12233 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12234 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12235 then :
12236
12237 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12238
12239
12240 fi
12241
12242 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12243 "
12244 if test "x$ac_cv_type_ssize_t" = xyes
12245 then :
12246
12247 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12248
12249 fi
12250
12251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12252 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12253 if test ${ac_cv_c_undeclared_builtin_options+y}
12254 then :
12255   printf %s "(cached) " >&6
12256 else $as_nop
12257   ac_save_CFLAGS=$CFLAGS
12258    ac_cv_c_undeclared_builtin_options='cannot detect'
12259    for ac_arg in '' -fno-builtin; do
12260      CFLAGS="$ac_save_CFLAGS $ac_arg"
12261      # This test program should *not* compile successfully.
12262      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h.  */
12264
12265 int
12266 main (void)
12267 {
12268 (void) strchr;
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_compile "$LINENO"
12274 then :
12275
12276 else $as_nop
12277   # This test program should compile successfully.
12278         # No library function is consistently available on
12279         # freestanding implementations, so test against a dummy
12280         # declaration.  Include always-available headers on the
12281         # off chance that they somehow elicit warnings.
12282         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h.  */
12284 #include <float.h>
12285 #include <limits.h>
12286 #include <stdarg.h>
12287 #include <stddef.h>
12288 extern void ac_decl (int, char *);
12289
12290 int
12291 main (void)
12292 {
12293 (void) ac_decl (0, (char *) 0);
12294   (void) ac_decl;
12295
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 if ac_fn_c_try_compile "$LINENO"
12301 then :
12302   if test x"$ac_arg" = x
12303 then :
12304   ac_cv_c_undeclared_builtin_options='none needed'
12305 else $as_nop
12306   ac_cv_c_undeclared_builtin_options=$ac_arg
12307 fi
12308           break
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12313     done
12314     CFLAGS=$ac_save_CFLAGS
12315
12316 fi
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12318 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12319   case $ac_cv_c_undeclared_builtin_options in #(
12320   'cannot detect') :
12321     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12322 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12323 as_fn_error $? "cannot make $CC report undeclared builtins
12324 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12325   'none needed') :
12326     ac_c_undeclared_builtin_options='' ;; #(
12327   *) :
12328     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12329 esac
12330
12331 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12332 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12333 if test "x$ac_cv_have_decl_llseek" = xyes
12334 then :
12335
12336 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12337
12338 fi
12339 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12340                  #define _LARGEFILE64_SOURCE
12341                  #include <unistd.h>
12342 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12343 if test "x$ac_cv_have_decl_lseek64" = xyes
12344 then :
12345
12346 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12347
12348 fi
12349
12350 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12351 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12352 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12353 then :
12354
12355 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12356
12357 fi
12358 # Check whether --enable-largefile was given.
12359 if test ${enable_largefile+y}
12360 then :
12361   enableval=$enable_largefile;
12362 fi
12363
12364 if test "$enable_largefile" != no; then
12365
12366   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12367 printf %s "checking for special C compiler options needed for large files... " >&6; }
12368 if test ${ac_cv_sys_largefile_CC+y}
12369 then :
12370   printf %s "(cached) " >&6
12371 else $as_nop
12372   ac_cv_sys_largefile_CC=no
12373      if test "$GCC" != yes; then
12374        ac_save_CC=$CC
12375        while :; do
12376          # IRIX 6.2 and later do not support large files by default,
12377          # so use the C compiler's -n32 option if that helps.
12378          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h.  */
12380 #include <sys/types.h>
12381  /* Check that off_t can represent 2**63 - 1 correctly.
12382     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12383     since some C++ compilers masquerading as C compilers
12384     incorrectly reject 9223372036854775807.  */
12385 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12386   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12387                        && LARGE_OFF_T % 2147483647 == 1)
12388                       ? 1 : -1];
12389 int
12390 main (void)
12391 {
12392
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397          if ac_fn_c_try_compile "$LINENO"
12398 then :
12399   break
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext conftest.beam
12402          CC="$CC -n32"
12403          if ac_fn_c_try_compile "$LINENO"
12404 then :
12405   ac_cv_sys_largefile_CC=' -n32'; break
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext conftest.beam
12408          break
12409        done
12410        CC=$ac_save_CC
12411        rm -f conftest.$ac_ext
12412     fi
12413 fi
12414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12415 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12416   if test "$ac_cv_sys_largefile_CC" != no; then
12417     CC=$CC$ac_cv_sys_largefile_CC
12418   fi
12419
12420   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12421 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12422 if test ${ac_cv_sys_file_offset_bits+y}
12423 then :
12424   printf %s "(cached) " >&6
12425 else $as_nop
12426   while :; do
12427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h.  */
12429 #include <sys/types.h>
12430  /* Check that off_t can represent 2**63 - 1 correctly.
12431     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12432     since some C++ compilers masquerading as C compilers
12433     incorrectly reject 9223372036854775807.  */
12434 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12435   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12436                        && LARGE_OFF_T % 2147483647 == 1)
12437                       ? 1 : -1];
12438 int
12439 main (void)
12440 {
12441
12442   ;
12443   return 0;
12444 }
12445 _ACEOF
12446 if ac_fn_c_try_compile "$LINENO"
12447 then :
12448   ac_cv_sys_file_offset_bits=no; break
12449 fi
12450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h.  */
12453 #define _FILE_OFFSET_BITS 64
12454 #include <sys/types.h>
12455  /* Check that off_t can represent 2**63 - 1 correctly.
12456     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12457     since some C++ compilers masquerading as C compilers
12458     incorrectly reject 9223372036854775807.  */
12459 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12460   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12461                        && LARGE_OFF_T % 2147483647 == 1)
12462                       ? 1 : -1];
12463 int
12464 main (void)
12465 {
12466
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_c_try_compile "$LINENO"
12472 then :
12473   ac_cv_sys_file_offset_bits=64; break
12474 fi
12475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12476   ac_cv_sys_file_offset_bits=unknown
12477   break
12478 done
12479 fi
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12481 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12482 case $ac_cv_sys_file_offset_bits in #(
12483   no | unknown) ;;
12484   *)
12485 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12486 ;;
12487 esac
12488 rm -rf conftest*
12489   if test $ac_cv_sys_file_offset_bits = unknown; then
12490     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12491 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12492 if test ${ac_cv_sys_large_files+y}
12493 then :
12494   printf %s "(cached) " >&6
12495 else $as_nop
12496   while :; do
12497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h.  */
12499 #include <sys/types.h>
12500  /* Check that off_t can represent 2**63 - 1 correctly.
12501     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12502     since some C++ compilers masquerading as C compilers
12503     incorrectly reject 9223372036854775807.  */
12504 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12505   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12506                        && LARGE_OFF_T % 2147483647 == 1)
12507                       ? 1 : -1];
12508 int
12509 main (void)
12510 {
12511
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_compile "$LINENO"
12517 then :
12518   ac_cv_sys_large_files=no; break
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h.  */
12523 #define _LARGE_FILES 1
12524 #include <sys/types.h>
12525  /* Check that off_t can represent 2**63 - 1 correctly.
12526     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12527     since some C++ compilers masquerading as C compilers
12528     incorrectly reject 9223372036854775807.  */
12529 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12530   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12531                        && LARGE_OFF_T % 2147483647 == 1)
12532                       ? 1 : -1];
12533 int
12534 main (void)
12535 {
12536
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 if ac_fn_c_try_compile "$LINENO"
12542 then :
12543   ac_cv_sys_large_files=1; break
12544 fi
12545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12546   ac_cv_sys_large_files=unknown
12547   break
12548 done
12549 fi
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12551 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12552 case $ac_cv_sys_large_files in #(
12553   no | unknown) ;;
12554   *)
12555 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12556 ;;
12557 esac
12558 rm -rf conftest*
12559   fi
12560 fi
12561
12562 # The cast to long int works around a bug in the HP C Compiler
12563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12565 # This bug is HP SR number 8606223364.
12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12567 printf %s "checking size of short... " >&6; }
12568 if test ${ac_cv_sizeof_short+y}
12569 then :
12570   printf %s "(cached) " >&6
12571 else $as_nop
12572   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
12573 then :
12574
12575 else $as_nop
12576   if test "$ac_cv_type_short" = yes; then
12577      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12578 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12579 as_fn_error 77 "cannot compute sizeof (short)
12580 See \`config.log' for more details" "$LINENO" 5; }
12581    else
12582      ac_cv_sizeof_short=0
12583    fi
12584 fi
12585
12586 fi
12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12588 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12589
12590
12591
12592 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12593
12594
12595 # The cast to long int works around a bug in the HP C Compiler
12596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12598 # This bug is HP SR number 8606223364.
12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12600 printf %s "checking size of int... " >&6; }
12601 if test ${ac_cv_sizeof_int+y}
12602 then :
12603   printf %s "(cached) " >&6
12604 else $as_nop
12605   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
12606 then :
12607
12608 else $as_nop
12609   if test "$ac_cv_type_int" = yes; then
12610      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12611 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12612 as_fn_error 77 "cannot compute sizeof (int)
12613 See \`config.log' for more details" "$LINENO" 5; }
12614    else
12615      ac_cv_sizeof_int=0
12616    fi
12617 fi
12618
12619 fi
12620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12621 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12622
12623
12624
12625 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12626
12627
12628 # The cast to long int works around a bug in the HP C Compiler
12629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12631 # This bug is HP SR number 8606223364.
12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12633 printf %s "checking size of long... " >&6; }
12634 if test ${ac_cv_sizeof_long+y}
12635 then :
12636   printf %s "(cached) " >&6
12637 else $as_nop
12638   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
12639 then :
12640
12641 else $as_nop
12642   if test "$ac_cv_type_long" = yes; then
12643      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12644 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12645 as_fn_error 77 "cannot compute sizeof (long)
12646 See \`config.log' for more details" "$LINENO" 5; }
12647    else
12648      ac_cv_sizeof_long=0
12649    fi
12650 fi
12651
12652 fi
12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12654 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12655
12656
12657
12658 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12659
12660
12661 # The cast to long int works around a bug in the HP C Compiler
12662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12664 # This bug is HP SR number 8606223364.
12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12666 printf %s "checking size of long long... " >&6; }
12667 if test ${ac_cv_sizeof_long_long+y}
12668 then :
12669   printf %s "(cached) " >&6
12670 else $as_nop
12671   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
12672 then :
12673
12674 else $as_nop
12675   if test "$ac_cv_type_long_long" = yes; then
12676      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12677 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12678 as_fn_error 77 "cannot compute sizeof (long long)
12679 See \`config.log' for more details" "$LINENO" 5; }
12680    else
12681      ac_cv_sizeof_long_long=0
12682    fi
12683 fi
12684
12685 fi
12686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12687 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12688
12689
12690
12691 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12692
12693
12694 # The cast to long int works around a bug in the HP C Compiler
12695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12697 # This bug is HP SR number 8606223364.
12698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12699 printf %s "checking size of off_t... " >&6; }
12700 if test ${ac_cv_sizeof_off_t+y}
12701 then :
12702   printf %s "(cached) " >&6
12703 else $as_nop
12704   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
12705 then :
12706
12707 else $as_nop
12708   if test "$ac_cv_type_off_t" = yes; then
12709      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12710 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12711 as_fn_error 77 "cannot compute sizeof (off_t)
12712 See \`config.log' for more details" "$LINENO" 5; }
12713    else
12714      ac_cv_sizeof_off_t=0
12715    fi
12716 fi
12717
12718 fi
12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12720 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12721
12722
12723
12724 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12725
12726
12727 # The cast to long int works around a bug in the HP C Compiler
12728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12730 # This bug is HP SR number 8606223364.
12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12732 printf %s "checking size of time_t... " >&6; }
12733 if test ${ac_cv_sizeof_time_t+y}
12734 then :
12735   printf %s "(cached) " >&6
12736 else $as_nop
12737   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
12738 then :
12739
12740 else $as_nop
12741   if test "$ac_cv_type_time_t" = yes; then
12742      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12743 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12744 as_fn_error 77 "cannot compute sizeof (time_t)
12745 See \`config.log' for more details" "$LINENO" 5; }
12746    else
12747      ac_cv_sizeof_time_t=0
12748    fi
12749 fi
12750
12751 fi
12752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12753 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12754
12755
12756
12757 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12758
12759
12760 SIZEOF_SHORT=$ac_cv_sizeof_short
12761 SIZEOF_INT=$ac_cv_sizeof_int
12762 SIZEOF_LONG=$ac_cv_sizeof_long
12763 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12764 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12765 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12766
12767
12768
12769
12770
12771
12772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12773 printf %s "checking whether byte ordering is bigendian... " >&6; }
12774 if test ${ac_cv_c_bigendian+y}
12775 then :
12776   printf %s "(cached) " >&6
12777 else $as_nop
12778   ac_cv_c_bigendian=unknown
12779     # See if we're dealing with a universal compiler.
12780     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h.  */
12782 #ifndef __APPLE_CC__
12783                not a universal capable compiler
12784              #endif
12785              typedef int dummy;
12786
12787 _ACEOF
12788 if ac_fn_c_try_compile "$LINENO"
12789 then :
12790
12791         # Check for potential -arch flags.  It is not universal unless
12792         # there are at least two -arch flags with different values.
12793         ac_arch=
12794         ac_prev=
12795         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12796          if test -n "$ac_prev"; then
12797            case $ac_word in
12798              i?86 | x86_64 | ppc | ppc64)
12799                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12800                  ac_arch=$ac_word
12801                else
12802                  ac_cv_c_bigendian=universal
12803                  break
12804                fi
12805                ;;
12806            esac
12807            ac_prev=
12808          elif test "x$ac_word" = "x-arch"; then
12809            ac_prev=arch
12810          fi
12811        done
12812 fi
12813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12814     if test $ac_cv_c_bigendian = unknown; then
12815       # See if sys/param.h defines the BYTE_ORDER macro.
12816       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h.  */
12818 #include <sys/types.h>
12819              #include <sys/param.h>
12820
12821 int
12822 main (void)
12823 {
12824 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12825                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12826                      && LITTLE_ENDIAN)
12827               bogus endian macros
12828              #endif
12829
12830   ;
12831   return 0;
12832 }
12833 _ACEOF
12834 if ac_fn_c_try_compile "$LINENO"
12835 then :
12836   # It does; now see whether it defined to BIG_ENDIAN or not.
12837          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h.  */
12839 #include <sys/types.h>
12840                 #include <sys/param.h>
12841
12842 int
12843 main (void)
12844 {
12845 #if BYTE_ORDER != BIG_ENDIAN
12846                  not big endian
12847                 #endif
12848
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"
12854 then :
12855   ac_cv_c_bigendian=yes
12856 else $as_nop
12857   ac_cv_c_bigendian=no
12858 fi
12859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12862     fi
12863     if test $ac_cv_c_bigendian = unknown; then
12864       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12865       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h.  */
12867 #include <limits.h>
12868
12869 int
12870 main (void)
12871 {
12872 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12873               bogus endian macros
12874              #endif
12875
12876   ;
12877   return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_compile "$LINENO"
12881 then :
12882   # It does; now see whether it defined to _BIG_ENDIAN or not.
12883          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h.  */
12885 #include <limits.h>
12886
12887 int
12888 main (void)
12889 {
12890 #ifndef _BIG_ENDIAN
12891                  not big endian
12892                 #endif
12893
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_compile "$LINENO"
12899 then :
12900   ac_cv_c_bigendian=yes
12901 else $as_nop
12902   ac_cv_c_bigendian=no
12903 fi
12904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12905 fi
12906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12907     fi
12908     if test $ac_cv_c_bigendian = unknown; then
12909       # Compile a test program.
12910       if test "$cross_compiling" = yes
12911 then :
12912   # Try to guess by grepping values from an object file.
12913          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h.  */
12915 unsigned short int ascii_mm[] =
12916                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12917                 unsigned short int ascii_ii[] =
12918                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12919                 int use_ascii (int i) {
12920                   return ascii_mm[i] + ascii_ii[i];
12921                 }
12922                 unsigned short int ebcdic_ii[] =
12923                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12924                 unsigned short int ebcdic_mm[] =
12925                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12926                 int use_ebcdic (int i) {
12927                   return ebcdic_mm[i] + ebcdic_ii[i];
12928                 }
12929                 extern int foo;
12930
12931 int
12932 main (void)
12933 {
12934 return use_ascii (foo) == use_ebcdic (foo);
12935   ;
12936   return 0;
12937 }
12938 _ACEOF
12939 if ac_fn_c_try_compile "$LINENO"
12940 then :
12941   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12942               ac_cv_c_bigendian=yes
12943             fi
12944             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12945               if test "$ac_cv_c_bigendian" = unknown; then
12946                 ac_cv_c_bigendian=no
12947               else
12948                 # finding both strings is unlikely to happen, but who knows?
12949                 ac_cv_c_bigendian=unknown
12950               fi
12951             fi
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12954 else $as_nop
12955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h.  */
12957 $ac_includes_default
12958 int
12959 main (void)
12960 {
12961
12962              /* Are we little or big endian?  From Harbison&Steele.  */
12963              union
12964              {
12965                long int l;
12966                char c[sizeof (long int)];
12967              } u;
12968              u.l = 1;
12969              return u.c[sizeof (long int) - 1] == 1;
12970
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 if ac_fn_c_try_run "$LINENO"
12976 then :
12977   ac_cv_c_bigendian=no
12978 else $as_nop
12979   ac_cv_c_bigendian=yes
12980 fi
12981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12982   conftest.$ac_objext conftest.beam conftest.$ac_ext
12983 fi
12984
12985     fi
12986 fi
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12988 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12989  case $ac_cv_c_bigendian in #(
12990    yes)
12991      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12992 ;; #(
12993    no)
12994       ;; #(
12995    universal)
12996
12997 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12998
12999      ;; #(
13000    *)
13001      as_fn_error $? "unknown endianness
13002  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13003  esac
13004
13005 if test $cross_compiling = no; then
13006   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13007 else
13008   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13009 fi
13010 ASM_TYPES_HEADER=./asm_types.h
13011
13012 echo "/* These defines are needed for the public ext2fs.h header file */" \
13013      > public_config.h
13014 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13015   uniq tmp_config.$$ >> public_config.h
13016 else
13017   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13018 fi
13019 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13020   uniq tmp_config.$$ >> public_config.h
13021 else
13022   echo "#undef WORDS_BIGENDIAN" >> public_config.h
13023 fi
13024 rm -f tmp_config.$$
13025 PUBLIC_CONFIG_HEADER=./public_config.h
13026
13027 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13028 if test "x$ac_cv_header_inttypes_h" = xyes
13029 then :
13030   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13031
13032 fi
13033
13034 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13035 if test "x$ac_cv_type_intptr_t" = xyes
13036 then :
13037
13038 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
13039
13040
13041 fi
13042
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13044 printf %s "checking whether struct stat has a st_flags field... " >&6; }
13045 if test ${e2fsprogs_cv_struct_st_flags+y}
13046 then :
13047   printf %s "(cached) " >&6
13048 else $as_nop
13049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h.  */
13051 #include <sys/stat.h>
13052 int
13053 main (void)
13054 {
13055 struct stat stat; stat.st_flags = 0;
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 if ac_fn_c_try_compile "$LINENO"
13061 then :
13062   e2fsprogs_cv_struct_st_flags=yes
13063 else $as_nop
13064   e2fsprogs_cv_struct_st_flags=no
13065 fi
13066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13067 fi
13068
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13070 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
13071 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13072   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13073 printf %s "checking whether st_flags field is useful... " >&6; }
13074   if test ${e2fsprogs_cv_struct_st_flags_immut+y}
13075 then :
13076   printf %s "(cached) " >&6
13077 else $as_nop
13078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h.  */
13080 #include <sys/stat.h>
13081 int
13082 main (void)
13083 {
13084 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13085   ;
13086   return 0;
13087 }
13088 _ACEOF
13089 if ac_fn_c_try_compile "$LINENO"
13090 then :
13091   e2fsprogs_cv_struct_st_flags_immut=yes
13092 else $as_nop
13093   e2fsprogs_cv_struct_st_flags_immut=no
13094 fi
13095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13096 fi
13097
13098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13099 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13100   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13101
13102 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13103
13104   fi
13105 fi
13106 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13107          #include <sys/socket.h>
13108 "
13109 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
13110 then :
13111
13112 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
13113
13114 fi
13115
13116 if test -n "$BLKID_CMT"; then
13117   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13118 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13119 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
13120 then :
13121   printf %s "(cached) " >&6
13122 else $as_nop
13123   ac_check_lib_save_LIBS=$LIBS
13124 LIBS="-lblkid  $LIBS"
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h.  */
13127
13128 /* Override any GCC internal prototype to avoid an error.
13129    Use char because int might match the return type of a GCC
13130    builtin and then its argument prototype would still apply.  */
13131 char blkid_probe_get_topology ();
13132 int
13133 main (void)
13134 {
13135 return blkid_probe_get_topology ();
13136   ;
13137   return 0;
13138 }
13139 _ACEOF
13140 if ac_fn_c_try_link "$LINENO"
13141 then :
13142   ac_cv_lib_blkid_blkid_probe_get_topology=yes
13143 else $as_nop
13144   ac_cv_lib_blkid_blkid_probe_get_topology=no
13145 fi
13146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13147     conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13149 fi
13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13151 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13152 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
13153 then :
13154
13155 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13156
13157 fi
13158
13159   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
13160 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
13161 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
13162 then :
13163   printf %s "(cached) " >&6
13164 else $as_nop
13165   ac_check_lib_save_LIBS=$LIBS
13166 LIBS="-lblkid  $LIBS"
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h.  */
13169
13170 /* Override any GCC internal prototype to avoid an error.
13171    Use char because int might match the return type of a GCC
13172    builtin and then its argument prototype would still apply.  */
13173 char blkid_topology_get_dax ();
13174 int
13175 main (void)
13176 {
13177 return blkid_topology_get_dax ();
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 if ac_fn_c_try_link "$LINENO"
13183 then :
13184   ac_cv_lib_blkid_blkid_topology_get_dax=yes
13185 else $as_nop
13186   ac_cv_lib_blkid_blkid_topology_get_dax=no
13187 fi
13188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13189     conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_lib_save_LIBS
13191 fi
13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
13193 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13194 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13195 then :
13196
13197 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13198
13199 fi
13200
13201   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13202 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13203 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13204 then :
13205   printf %s "(cached) " >&6
13206 else $as_nop
13207   ac_check_lib_save_LIBS=$LIBS
13208 LIBS="-lblkid  $LIBS"
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h.  */
13211
13212 /* Override any GCC internal prototype to avoid an error.
13213    Use char because int might match the return type of a GCC
13214    builtin and then its argument prototype would still apply.  */
13215 char blkid_probe_enable_partitions ();
13216 int
13217 main (void)
13218 {
13219 return blkid_probe_enable_partitions ();
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 if ac_fn_c_try_link "$LINENO"
13225 then :
13226   ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13227 else $as_nop
13228   ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13229 fi
13230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13231     conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS
13233 fi
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13235 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13236 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13237 then :
13238
13239 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13240
13241 fi
13242
13243 fi
13244 if test -n "$DLOPEN_LIB" ; then
13245    ac_cv_func_dlopen=yes
13246 fi
13247 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13248 if test "x$ac_cv_func___secure_getenv" = xyes
13249 then :
13250   printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13251
13252 fi
13253 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13254 if test "x$ac_cv_func_add_key" = xyes
13255 then :
13256   printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13257
13258 fi
13259 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13260 if test "x$ac_cv_func_backtrace" = xyes
13261 then :
13262   printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13263
13264 fi
13265 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13266 if test "x$ac_cv_func_chflags" = xyes
13267 then :
13268   printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13269
13270 fi
13271 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13272 if test "x$ac_cv_func_dlopen" = xyes
13273 then :
13274   printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13275
13276 fi
13277 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13278 if test "x$ac_cv_func_fadvise64" = xyes
13279 then :
13280   printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13281
13282 fi
13283 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13284 if test "x$ac_cv_func_fallocate" = xyes
13285 then :
13286   printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13287
13288 fi
13289 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13290 if test "x$ac_cv_func_fallocate64" = xyes
13291 then :
13292   printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13293
13294 fi
13295 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13296 if test "x$ac_cv_func_fchown" = xyes
13297 then :
13298   printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13299
13300 fi
13301 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13302 if test "x$ac_cv_func_fcntl" = xyes
13303 then :
13304   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13305
13306 fi
13307 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13308 if test "x$ac_cv_func_fdatasync" = xyes
13309 then :
13310   printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13311
13312 fi
13313 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13314 if test "x$ac_cv_func_fstat64" = xyes
13315 then :
13316   printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13317
13318 fi
13319 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13320 if test "x$ac_cv_func_fsync" = xyes
13321 then :
13322   printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13323
13324 fi
13325 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13326 if test "x$ac_cv_func_ftruncate64" = xyes
13327 then :
13328   printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13329
13330 fi
13331 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13332 if test "x$ac_cv_func_futimes" = xyes
13333 then :
13334   printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13335
13336 fi
13337 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13338 if test "x$ac_cv_func_getcwd" = xyes
13339 then :
13340   printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13341
13342 fi
13343 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13344 if test "x$ac_cv_func_getdtablesize" = xyes
13345 then :
13346   printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13347
13348 fi
13349 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13350 if test "x$ac_cv_func_getentropy" = xyes
13351 then :
13352   printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13353
13354 fi
13355 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13356 if test "x$ac_cv_func_gethostname" = xyes
13357 then :
13358   printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13359
13360 fi
13361 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13362 if test "x$ac_cv_func_getmntinfo" = xyes
13363 then :
13364   printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13365
13366 fi
13367 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13368 if test "x$ac_cv_func_getpwuid_r" = xyes
13369 then :
13370   printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13371
13372 fi
13373 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13374 if test "x$ac_cv_func_getrandom" = xyes
13375 then :
13376   printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13377
13378 fi
13379 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13380 if test "x$ac_cv_func_getrlimit" = xyes
13381 then :
13382   printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13383
13384 fi
13385 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13386 if test "x$ac_cv_func_getrusage" = xyes
13387 then :
13388   printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13389
13390 fi
13391 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13392 if test "x$ac_cv_func_jrand48" = xyes
13393 then :
13394   printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13395
13396 fi
13397 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13398 if test "x$ac_cv_func_keyctl" = xyes
13399 then :
13400   printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13401
13402 fi
13403 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13404 if test "x$ac_cv_func_llistxattr" = xyes
13405 then :
13406   printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13407
13408 fi
13409 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13410 if test "x$ac_cv_func_llseek" = xyes
13411 then :
13412   printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13413
13414 fi
13415 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13416 if test "x$ac_cv_func_lseek64" = xyes
13417 then :
13418   printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13419
13420 fi
13421 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13422 if test "x$ac_cv_func_mallinfo" = xyes
13423 then :
13424   printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13425
13426 fi
13427 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13428 if test "x$ac_cv_func_mallinfo2" = xyes
13429 then :
13430   printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13431
13432 fi
13433 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13434 if test "x$ac_cv_func_mbstowcs" = xyes
13435 then :
13436   printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13437
13438 fi
13439 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13440 if test "x$ac_cv_func_memalign" = xyes
13441 then :
13442   printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13443
13444 fi
13445 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13446 if test "x$ac_cv_func_mempcpy" = xyes
13447 then :
13448   printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13449
13450 fi
13451 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13452 if test "x$ac_cv_func_mmap" = xyes
13453 then :
13454   printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13455
13456 fi
13457 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13458 if test "x$ac_cv_func_msync" = xyes
13459 then :
13460   printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13461
13462 fi
13463 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13464 if test "x$ac_cv_func_nanosleep" = xyes
13465 then :
13466   printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13467
13468 fi
13469 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13470 if test "x$ac_cv_func_open64" = xyes
13471 then :
13472   printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13473
13474 fi
13475 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13476 if test "x$ac_cv_func_pathconf" = xyes
13477 then :
13478   printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13479
13480 fi
13481 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13482 if test "x$ac_cv_func_posix_fadvise" = xyes
13483 then :
13484   printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13485
13486 fi
13487 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13488 if test "x$ac_cv_func_posix_fadvise64" = xyes
13489 then :
13490   printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13491
13492 fi
13493 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13494 if test "x$ac_cv_func_posix_memalign" = xyes
13495 then :
13496   printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13497
13498 fi
13499 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13500 if test "x$ac_cv_func_prctl" = xyes
13501 then :
13502   printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13503
13504 fi
13505 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13506 if test "x$ac_cv_func_pread" = xyes
13507 then :
13508   printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13509
13510 fi
13511 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13512 if test "x$ac_cv_func_pwrite" = xyes
13513 then :
13514   printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13515
13516 fi
13517 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13518 if test "x$ac_cv_func_pread64" = xyes
13519 then :
13520   printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13521
13522 fi
13523 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13524 if test "x$ac_cv_func_pwrite64" = xyes
13525 then :
13526   printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13527
13528 fi
13529 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13530 if test "x$ac_cv_func_qsort_r" = xyes
13531 then :
13532   printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13533
13534 fi
13535 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13536 if test "x$ac_cv_func_secure_getenv" = xyes
13537 then :
13538   printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13539
13540 fi
13541 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13542 if test "x$ac_cv_func_setmntent" = xyes
13543 then :
13544   printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13545
13546 fi
13547 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13548 if test "x$ac_cv_func_setresgid" = xyes
13549 then :
13550   printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13551
13552 fi
13553 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13554 if test "x$ac_cv_func_setresuid" = xyes
13555 then :
13556   printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13557
13558 fi
13559 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13560 if test "x$ac_cv_func_snprintf" = xyes
13561 then :
13562   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13563
13564 fi
13565 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13566 if test "x$ac_cv_func_srandom" = xyes
13567 then :
13568   printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13569
13570 fi
13571 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13572 if test "x$ac_cv_func_stpcpy" = xyes
13573 then :
13574   printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13575
13576 fi
13577 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13578 if test "x$ac_cv_func_strcasecmp" = xyes
13579 then :
13580   printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13581
13582 fi
13583 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13584 if test "x$ac_cv_func_strdup" = xyes
13585 then :
13586   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13587
13588 fi
13589 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13590 if test "x$ac_cv_func_strnlen" = xyes
13591 then :
13592   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13593
13594 fi
13595 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13596 if test "x$ac_cv_func_strptime" = xyes
13597 then :
13598   printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13599
13600 fi
13601 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13602 if test "x$ac_cv_func_strtoull" = xyes
13603 then :
13604   printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13605
13606 fi
13607 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13608 if test "x$ac_cv_func_sync_file_range" = xyes
13609 then :
13610   printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13611
13612 fi
13613 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13614 if test "x$ac_cv_func_sysconf" = xyes
13615 then :
13616   printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13617
13618 fi
13619 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13620 if test "x$ac_cv_func_usleep" = xyes
13621 then :
13622   printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13623
13624 fi
13625 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13626 if test "x$ac_cv_func_utime" = xyes
13627 then :
13628   printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13629
13630 fi
13631 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13632 if test "x$ac_cv_func_utimes" = xyes
13633 then :
13634   printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13635
13636 fi
13637 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13638 if test "x$ac_cv_func_valloc" = xyes
13639 then :
13640   printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13641
13642 fi
13643
13644 SOCKET_LIB=''
13645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13646 printf %s "checking for socket in -lsocket... " >&6; }
13647 if test ${ac_cv_lib_socket_socket+y}
13648 then :
13649   printf %s "(cached) " >&6
13650 else $as_nop
13651   ac_check_lib_save_LIBS=$LIBS
13652 LIBS="-lsocket  $LIBS"
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h.  */
13655
13656 /* Override any GCC internal prototype to avoid an error.
13657    Use char because int might match the return type of a GCC
13658    builtin and then its argument prototype would still apply.  */
13659 char socket ();
13660 int
13661 main (void)
13662 {
13663 return socket ();
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 if ac_fn_c_try_link "$LINENO"
13669 then :
13670   ac_cv_lib_socket_socket=yes
13671 else $as_nop
13672   ac_cv_lib_socket_socket=no
13673 fi
13674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13675     conftest$ac_exeext conftest.$ac_ext
13676 LIBS=$ac_check_lib_save_LIBS
13677 fi
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13679 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13680 if test "x$ac_cv_lib_socket_socket" = xyes
13681 then :
13682   SOCKET_LIB=-lsocket
13683 fi
13684
13685
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13687 printf %s "checking for magic_file in -lmagic... " >&6; }
13688 if test ${ac_cv_lib_magic_magic_file+y}
13689 then :
13690   printf %s "(cached) " >&6
13691 else $as_nop
13692   ac_check_lib_save_LIBS=$LIBS
13693 LIBS="-lmagic  $LIBS"
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h.  */
13696
13697 /* Override any GCC internal prototype to avoid an error.
13698    Use char because int might match the return type of a GCC
13699    builtin and then its argument prototype would still apply.  */
13700 char magic_file ();
13701 int
13702 main (void)
13703 {
13704 return magic_file ();
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 if ac_fn_c_try_link "$LINENO"
13710 then :
13711   ac_cv_lib_magic_magic_file=yes
13712 else $as_nop
13713   ac_cv_lib_magic_magic_file=no
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13716     conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13718 fi
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13720 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13721 if test "x$ac_cv_lib_magic_magic_file" = xyes
13722 then :
13723   MAGIC_LIB=-lmagic
13724 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13725 if test "x$ac_cv_header_magic_h" = xyes
13726 then :
13727   printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13728
13729 fi
13730
13731 fi
13732
13733 if test "$ac_cv_func_dlopen" = yes ; then
13734    MAGIC_LIB=$DLOPEN_LIB
13735 fi
13736
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13738 printf %s "checking for archive_read_new in -larchive... " >&6; }
13739 if test ${ac_cv_lib_archive_archive_read_new+y}
13740 then :
13741   printf %s "(cached) " >&6
13742 else $as_nop
13743   ac_check_lib_save_LIBS=$LIBS
13744 LIBS="-larchive  $LIBS"
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h.  */
13747
13748 /* Override any GCC internal prototype to avoid an error.
13749    Use char because int might match the return type of a GCC
13750    builtin and then its argument prototype would still apply.  */
13751 char archive_read_new ();
13752 int
13753 main (void)
13754 {
13755 return archive_read_new ();
13756   ;
13757   return 0;
13758 }
13759 _ACEOF
13760 if ac_fn_c_try_link "$LINENO"
13761 then :
13762   ac_cv_lib_archive_archive_read_new=yes
13763 else $as_nop
13764   ac_cv_lib_archive_archive_read_new=no
13765 fi
13766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13767     conftest$ac_exeext conftest.$ac_ext
13768 LIBS=$ac_check_lib_save_LIBS
13769 fi
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
13771 printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
13772 if test "x$ac_cv_lib_archive_archive_read_new" = xyes
13773 then :
13774   ARCHIVE_LIB=-larchive
13775 ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13776 if test "x$ac_cv_header_archive_h" = xyes
13777 then :
13778   printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13779
13780 fi
13781
13782 fi
13783
13784 if test "$ac_cv_func_dlopen" = yes ; then
13785    ARCHIVE_LIB=$DLOPEN_LIB
13786 fi
13787
13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13789 printf %s "checking for clock_gettime in -lrt... " >&6; }
13790 if test ${ac_cv_lib_rt_clock_gettime+y}
13791 then :
13792   printf %s "(cached) " >&6
13793 else $as_nop
13794   ac_check_lib_save_LIBS=$LIBS
13795 LIBS="-lrt  $LIBS"
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h.  */
13798
13799 /* Override any GCC internal prototype to avoid an error.
13800    Use char because int might match the return type of a GCC
13801    builtin and then its argument prototype would still apply.  */
13802 char clock_gettime ();
13803 int
13804 main (void)
13805 {
13806 return clock_gettime ();
13807   ;
13808   return 0;
13809 }
13810 _ACEOF
13811 if ac_fn_c_try_link "$LINENO"
13812 then :
13813   ac_cv_lib_rt_clock_gettime=yes
13814 else $as_nop
13815   ac_cv_lib_rt_clock_gettime=no
13816 fi
13817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13818     conftest$ac_exeext conftest.$ac_ext
13819 LIBS=$ac_check_lib_save_LIBS
13820 fi
13821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13822 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13823 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13824 then :
13825   CLOCK_GETTIME_LIB=-lrt
13826 fi
13827
13828
13829 FUSE_CMT=
13830 FUSE_LIB=
13831 # Check whether --enable-fuse2fs was given.
13832 if test ${enable_fuse2fs+y}
13833 then :
13834   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13835 then
13836         FUSE_CMT="#"
13837         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13838 printf "%s\n" "Disabling fuse2fs" >&6; }
13839 else
13840         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h.  */
13842 #ifdef __linux__
13843 #include <linux/fs.h>
13844 #include <linux/falloc.h>
13845 #include <linux/xattr.h>
13846 #endif
13847
13848 int
13849 main (void)
13850 {
13851
13852   ;
13853   return 0;
13854 }
13855 _ACEOF
13856 if ac_fn_c_try_cpp "$LINENO"
13857 then :
13858
13859 else $as_nop
13860   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13861 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13862 as_fn_error $? "Cannot find fuse2fs Linux headers.
13863 See \`config.log' for more details" "$LINENO" 5; }
13864 fi
13865 rm -f conftest.err conftest.i conftest.$ac_ext
13866
13867           fuse3_CFLAGS
13868               C compiler flags for fuse3, overriding pkg-config
13869   fuse3_LIBS  linker flags for fuse3, overriding pkg-config
13870
13871 pkg_failed=no
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13873 printf %s "checking for fuse3... " >&6; }
13874
13875 if test -n "$fuse3_CFLAGS"; then
13876     pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13877  elif test -n "$PKG_CONFIG"; then
13878     if test -n "$PKG_CONFIG" && \
13879     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13880   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13881   ac_status=$?
13882   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13883   test $ac_status = 0; }; then
13884   pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13885                       test "x$?" != "x0" && pkg_failed=yes
13886 else
13887   pkg_failed=yes
13888 fi
13889  else
13890     pkg_failed=untried
13891 fi
13892 if test -n "$fuse3_LIBS"; then
13893     pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13894  elif test -n "$PKG_CONFIG"; then
13895     if test -n "$PKG_CONFIG" && \
13896     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13897   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13898   ac_status=$?
13899   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13900   test $ac_status = 0; }; then
13901   pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13902                       test "x$?" != "x0" && pkg_failed=yes
13903 else
13904   pkg_failed=yes
13905 fi
13906  else
13907     pkg_failed=untried
13908 fi
13909
13910
13911
13912 if test $pkg_failed = yes; then
13913         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 printf "%s\n" "no" >&6; }
13915
13916 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13917         _pkg_short_errors_supported=yes
13918 else
13919         _pkg_short_errors_supported=no
13920 fi
13921         if test $_pkg_short_errors_supported = yes; then
13922                 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13923         else
13924                 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13925         fi
13926         # Put the nasty error message in config.log where it belongs
13927         echo "$fuse3_PKG_ERRORS" >&5
13928
13929
13930                        for ac_header in pthread.h fuse.h
13931 do :
13932   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13933 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13934 #define FUSE_USE_VERSION 29
13935 "
13936 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13937 then :
13938   cat >>confdefs.h <<_ACEOF
13939 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13940 _ACEOF
13941
13942 else $as_nop
13943   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13944 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13945 as_fn_error $? "Cannot find fuse2fs headers.
13946 See \`config.log' for more details" "$LINENO" 5; }
13947 fi
13948
13949 done
13950
13951                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13952 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13953 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13954 then :
13955   printf %s "(cached) " >&6
13956 else $as_nop
13957   ac_check_lib_save_LIBS=$LIBS
13958 LIBS="-losxfuse  $LIBS"
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h.  */
13961
13962 /* Override any GCC internal prototype to avoid an error.
13963    Use char because int might match the return type of a GCC
13964    builtin and then its argument prototype would still apply.  */
13965 char fuse_main ();
13966 int
13967 main (void)
13968 {
13969 return fuse_main ();
13970   ;
13971   return 0;
13972 }
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"
13975 then :
13976   ac_cv_lib_osxfuse_fuse_main=yes
13977 else $as_nop
13978   ac_cv_lib_osxfuse_fuse_main=no
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13981     conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13983 fi
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13985 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13986 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13987 then :
13988   FUSE_LIB=-losxfuse
13989 else $as_nop
13990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13991 printf %s "checking for fuse_main in -lfuse... " >&6; }
13992 if test ${ac_cv_lib_fuse_fuse_main+y}
13993 then :
13994   printf %s "(cached) " >&6
13995 else $as_nop
13996   ac_check_lib_save_LIBS=$LIBS
13997 LIBS="-lfuse  $LIBS"
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h.  */
14000
14001 /* Override any GCC internal prototype to avoid an error.
14002    Use char because int might match the return type of a GCC
14003    builtin and then its argument prototype would still apply.  */
14004 char fuse_main ();
14005 int
14006 main (void)
14007 {
14008 return fuse_main ();
14009   ;
14010   return 0;
14011 }
14012 _ACEOF
14013 if ac_fn_c_try_link "$LINENO"
14014 then :
14015   ac_cv_lib_fuse_fuse_main=yes
14016 else $as_nop
14017   ac_cv_lib_fuse_fuse_main=no
14018 fi
14019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14020     conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14022 fi
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14024 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14025 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14026 then :
14027   FUSE_LIB=-lfuse
14028 else $as_nop
14029   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14030 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14031 as_fn_error $? "Cannot find fuse library.
14032 See \`config.log' for more details" "$LINENO" 5; }
14033 fi
14034
14035 fi
14036
14037
14038 elif test $pkg_failed = untried; then
14039         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 printf "%s\n" "no" >&6; }
14041
14042                        for ac_header in pthread.h fuse.h
14043 do :
14044   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14046 #define FUSE_USE_VERSION 29
14047 "
14048 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14049 then :
14050   cat >>confdefs.h <<_ACEOF
14051 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14052 _ACEOF
14053
14054 else $as_nop
14055   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14056 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14057 as_fn_error $? "Cannot find fuse2fs headers.
14058 See \`config.log' for more details" "$LINENO" 5; }
14059 fi
14060
14061 done
14062
14063                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14064 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14065 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14066 then :
14067   printf %s "(cached) " >&6
14068 else $as_nop
14069   ac_check_lib_save_LIBS=$LIBS
14070 LIBS="-losxfuse  $LIBS"
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h.  */
14073
14074 /* Override any GCC internal prototype to avoid an error.
14075    Use char because int might match the return type of a GCC
14076    builtin and then its argument prototype would still apply.  */
14077 char fuse_main ();
14078 int
14079 main (void)
14080 {
14081 return fuse_main ();
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 if ac_fn_c_try_link "$LINENO"
14087 then :
14088   ac_cv_lib_osxfuse_fuse_main=yes
14089 else $as_nop
14090   ac_cv_lib_osxfuse_fuse_main=no
14091 fi
14092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14093     conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14095 fi
14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14097 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14098 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14099 then :
14100   FUSE_LIB=-losxfuse
14101 else $as_nop
14102   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14103 printf %s "checking for fuse_main in -lfuse... " >&6; }
14104 if test ${ac_cv_lib_fuse_fuse_main+y}
14105 then :
14106   printf %s "(cached) " >&6
14107 else $as_nop
14108   ac_check_lib_save_LIBS=$LIBS
14109 LIBS="-lfuse  $LIBS"
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h.  */
14112
14113 /* Override any GCC internal prototype to avoid an error.
14114    Use char because int might match the return type of a GCC
14115    builtin and then its argument prototype would still apply.  */
14116 char fuse_main ();
14117 int
14118 main (void)
14119 {
14120 return fuse_main ();
14121   ;
14122   return 0;
14123 }
14124 _ACEOF
14125 if ac_fn_c_try_link "$LINENO"
14126 then :
14127   ac_cv_lib_fuse_fuse_main=yes
14128 else $as_nop
14129   ac_cv_lib_fuse_fuse_main=no
14130 fi
14131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14132     conftest$ac_exeext conftest.$ac_ext
14133 LIBS=$ac_check_lib_save_LIBS
14134 fi
14135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14136 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14137 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14138 then :
14139   FUSE_LIB=-lfuse
14140 else $as_nop
14141   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14142 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14143 as_fn_error $? "Cannot find fuse library.
14144 See \`config.log' for more details" "$LINENO" 5; }
14145 fi
14146
14147 fi
14148
14149
14150 else
14151         fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14152         fuse3_LIBS=$pkg_cv_fuse3_LIBS
14153         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154 printf "%s\n" "yes" >&6; }
14155
14156                 FUSE_LIB=-lfuse3
14157
14158 fi
14159         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
14160 printf "%s\n" "Enabling fuse2fs" >&6; }
14161 fi
14162
14163 else $as_nop
14164
14165 pkg_failed=no
14166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
14167 printf %s "checking for fuse3... " >&6; }
14168
14169 if test -n "$fuse3_CFLAGS"; then
14170     pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
14171  elif test -n "$PKG_CONFIG"; then
14172     if test -n "$PKG_CONFIG" && \
14173     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14174   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14175   ac_status=$?
14176   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14177   test $ac_status = 0; }; then
14178   pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
14179                       test "x$?" != "x0" && pkg_failed=yes
14180 else
14181   pkg_failed=yes
14182 fi
14183  else
14184     pkg_failed=untried
14185 fi
14186 if test -n "$fuse3_LIBS"; then
14187     pkg_cv_fuse3_LIBS="$fuse3_LIBS"
14188  elif test -n "$PKG_CONFIG"; then
14189     if test -n "$PKG_CONFIG" && \
14190     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14191   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14192   ac_status=$?
14193   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14194   test $ac_status = 0; }; then
14195   pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
14196                       test "x$?" != "x0" && pkg_failed=yes
14197 else
14198   pkg_failed=yes
14199 fi
14200  else
14201     pkg_failed=untried
14202 fi
14203
14204
14205
14206 if test $pkg_failed = yes; then
14207         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14208 printf "%s\n" "no" >&6; }
14209
14210 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14211         _pkg_short_errors_supported=yes
14212 else
14213         _pkg_short_errors_supported=no
14214 fi
14215         if test $_pkg_short_errors_supported = yes; then
14216                 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
14217         else
14218                 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
14219         fi
14220         # Put the nasty error message in config.log where it belongs
14221         echo "$fuse3_PKG_ERRORS" >&5
14222
14223
14224                for ac_header in pthread.h fuse.h
14225 do :
14226   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14227 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14228 #define FUSE_USE_VERSION 29
14229 #ifdef __linux__
14230 # include <linux/fs.h>
14231 # include <linux/falloc.h>
14232 # include <linux/xattr.h>
14233 #endif
14234 "
14235 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14236 then :
14237   cat >>confdefs.h <<_ACEOF
14238 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14239 _ACEOF
14240
14241 else $as_nop
14242   FUSE_CMT="#"
14243 fi
14244
14245 done
14246         if test -z "$FUSE_CMT"
14247         then
14248                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14249 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14250 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14251 then :
14252   printf %s "(cached) " >&6
14253 else $as_nop
14254   ac_check_lib_save_LIBS=$LIBS
14255 LIBS="-losxfuse  $LIBS"
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h.  */
14258
14259 /* Override any GCC internal prototype to avoid an error.
14260    Use char because int might match the return type of a GCC
14261    builtin and then its argument prototype would still apply.  */
14262 char fuse_main ();
14263 int
14264 main (void)
14265 {
14266 return fuse_main ();
14267   ;
14268   return 0;
14269 }
14270 _ACEOF
14271 if ac_fn_c_try_link "$LINENO"
14272 then :
14273   ac_cv_lib_osxfuse_fuse_main=yes
14274 else $as_nop
14275   ac_cv_lib_osxfuse_fuse_main=no
14276 fi
14277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14278     conftest$ac_exeext conftest.$ac_ext
14279 LIBS=$ac_check_lib_save_LIBS
14280 fi
14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14282 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14283 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14284 then :
14285   FUSE_LIB=-losxfuse
14286 else $as_nop
14287   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14288 printf %s "checking for fuse_main in -lfuse... " >&6; }
14289 if test ${ac_cv_lib_fuse_fuse_main+y}
14290 then :
14291   printf %s "(cached) " >&6
14292 else $as_nop
14293   ac_check_lib_save_LIBS=$LIBS
14294 LIBS="-lfuse  $LIBS"
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h.  */
14297
14298 /* Override any GCC internal prototype to avoid an error.
14299    Use char because int might match the return type of a GCC
14300    builtin and then its argument prototype would still apply.  */
14301 char fuse_main ();
14302 int
14303 main (void)
14304 {
14305 return fuse_main ();
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 if ac_fn_c_try_link "$LINENO"
14311 then :
14312   ac_cv_lib_fuse_fuse_main=yes
14313 else $as_nop
14314   ac_cv_lib_fuse_fuse_main=no
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14317     conftest$ac_exeext conftest.$ac_ext
14318 LIBS=$ac_check_lib_save_LIBS
14319 fi
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14321 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14322 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14323 then :
14324   FUSE_LIB=-lfuse
14325 else $as_nop
14326   FUSE_CMT="#"
14327 fi
14328
14329 fi
14330
14331         fi
14332
14333 elif test $pkg_failed = untried; then
14334         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 printf "%s\n" "no" >&6; }
14336
14337                for ac_header in pthread.h fuse.h
14338 do :
14339   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14340 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14341 #define FUSE_USE_VERSION 29
14342 #ifdef __linux__
14343 # include <linux/fs.h>
14344 # include <linux/falloc.h>
14345 # include <linux/xattr.h>
14346 #endif
14347 "
14348 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14349 then :
14350   cat >>confdefs.h <<_ACEOF
14351 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14352 _ACEOF
14353
14354 else $as_nop
14355   FUSE_CMT="#"
14356 fi
14357
14358 done
14359         if test -z "$FUSE_CMT"
14360         then
14361                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14362 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14363 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14364 then :
14365   printf %s "(cached) " >&6
14366 else $as_nop
14367   ac_check_lib_save_LIBS=$LIBS
14368 LIBS="-losxfuse  $LIBS"
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h.  */
14371
14372 /* Override any GCC internal prototype to avoid an error.
14373    Use char because int might match the return type of a GCC
14374    builtin and then its argument prototype would still apply.  */
14375 char fuse_main ();
14376 int
14377 main (void)
14378 {
14379 return fuse_main ();
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 if ac_fn_c_try_link "$LINENO"
14385 then :
14386   ac_cv_lib_osxfuse_fuse_main=yes
14387 else $as_nop
14388   ac_cv_lib_osxfuse_fuse_main=no
14389 fi
14390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14391     conftest$ac_exeext conftest.$ac_ext
14392 LIBS=$ac_check_lib_save_LIBS
14393 fi
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14395 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14396 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14397 then :
14398   FUSE_LIB=-losxfuse
14399 else $as_nop
14400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14401 printf %s "checking for fuse_main in -lfuse... " >&6; }
14402 if test ${ac_cv_lib_fuse_fuse_main+y}
14403 then :
14404   printf %s "(cached) " >&6
14405 else $as_nop
14406   ac_check_lib_save_LIBS=$LIBS
14407 LIBS="-lfuse  $LIBS"
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h.  */
14410
14411 /* Override any GCC internal prototype to avoid an error.
14412    Use char because int might match the return type of a GCC
14413    builtin and then its argument prototype would still apply.  */
14414 char fuse_main ();
14415 int
14416 main (void)
14417 {
14418 return fuse_main ();
14419   ;
14420   return 0;
14421 }
14422 _ACEOF
14423 if ac_fn_c_try_link "$LINENO"
14424 then :
14425   ac_cv_lib_fuse_fuse_main=yes
14426 else $as_nop
14427   ac_cv_lib_fuse_fuse_main=no
14428 fi
14429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14430     conftest$ac_exeext conftest.$ac_ext
14431 LIBS=$ac_check_lib_save_LIBS
14432 fi
14433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14434 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14435 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14436 then :
14437   FUSE_LIB=-lfuse
14438 else $as_nop
14439   FUSE_CMT="#"
14440 fi
14441
14442 fi
14443
14444         fi
14445
14446 else
14447         fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14448         fuse3_LIBS=$pkg_cv_fuse3_LIBS
14449         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14450 printf "%s\n" "yes" >&6; }
14451
14452         FUSE_LIB=-lfuse3
14453
14454 fi
14455 if test -z "$FUSE_CMT"
14456 then
14457         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14458 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14459 fi
14460
14461 fi
14462
14463
14464
14465 if test "$FUSE_LIB" = "-lfuse3"
14466 then
14467         FUSE_USE_VERSION=35
14468         CFLAGS="$CFLAGS $fuse3_CFLAGS"
14469         LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
14470                for ac_header in pthread.h fuse.h
14471 do :
14472   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14473 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14474 #define FUSE_USE_VERSION 35
14475 #ifdef __linux__
14476 #include <linux/fs.h>
14477 #include <linux/falloc.h>
14478 #include <linux/xattr.h>
14479 #endif
14480 "
14481 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14482 then :
14483   cat >>confdefs.h <<_ACEOF
14484 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14485 _ACEOF
14486
14487 else $as_nop
14488   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14489 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14490 as_fn_error $? "Cannot find fuse3 fuse2fs headers.
14491 See \`config.log' for more details" "$LINENO" 5; }
14492 fi
14493
14494 done
14495 elif test -n "$FUSE_LIB"
14496 then
14497         FUSE_USE_VERSION=29
14498 fi
14499 if test -n "$FUSE_USE_VERSION"
14500 then
14501
14502 printf "%s\n" "#define FUSE_USE_VERSION $FUSE_USE_VERSION" >>confdefs.h
14503
14504 fi
14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14506 printf %s "checking for optreset... " >&6; }
14507 if test ${ac_cv_have_optreset+y}
14508 then :
14509   printf %s "(cached) " >&6
14510 else $as_nop
14511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h.  */
14513 #include <unistd.h>
14514
14515 _ACEOF
14516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14517   $EGREP "optreset" >/dev/null 2>&1
14518 then :
14519   ac_cv_have_optreset=yes
14520 else $as_nop
14521   ac_cv_have_optreset=no
14522 fi
14523 rm -rf conftest*
14524
14525 fi
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14527 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14528 if test $ac_cv_have_optreset = yes; then
14529
14530 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14531
14532 fi
14533
14534 SEM_INIT_LIB=''
14535 echo GL_THREADS_API: ${gl_threads_api}
14536 if test "${gl_threads_api}" != none
14537 then
14538   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14539 if test "x$ac_cv_func_sem_init" = xyes
14540 then :
14541
14542 else $as_nop
14543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14544 printf %s "checking for sem_init in -lpthread... " >&6; }
14545 if test ${ac_cv_lib_pthread_sem_init+y}
14546 then :
14547   printf %s "(cached) " >&6
14548 else $as_nop
14549   ac_check_lib_save_LIBS=$LIBS
14550 LIBS="-lpthread  $LIBS"
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h.  */
14553
14554 /* Override any GCC internal prototype to avoid an error.
14555    Use char because int might match the return type of a GCC
14556    builtin and then its argument prototype would still apply.  */
14557 char sem_init ();
14558 int
14559 main (void)
14560 {
14561 return sem_init ();
14562   ;
14563   return 0;
14564 }
14565 _ACEOF
14566 if ac_fn_c_try_link "$LINENO"
14567 then :
14568   ac_cv_lib_pthread_sem_init=yes
14569 else $as_nop
14570   ac_cv_lib_pthread_sem_init=no
14571 fi
14572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14573     conftest$ac_exeext conftest.$ac_ext
14574 LIBS=$ac_check_lib_save_LIBS
14575 fi
14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14577 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14578 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14579 then :
14580   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14581
14582         SEM_INIT_LIB=-lpthread
14583 else $as_nop
14584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14585 printf %s "checking for sem_init in -lrt... " >&6; }
14586 if test ${ac_cv_lib_rt_sem_init+y}
14587 then :
14588   printf %s "(cached) " >&6
14589 else $as_nop
14590   ac_check_lib_save_LIBS=$LIBS
14591 LIBS="-lrt  $LIBS"
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h.  */
14594
14595 /* Override any GCC internal prototype to avoid an error.
14596    Use char because int might match the return type of a GCC
14597    builtin and then its argument prototype would still apply.  */
14598 char sem_init ();
14599 int
14600 main (void)
14601 {
14602 return sem_init ();
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 if ac_fn_c_try_link "$LINENO"
14608 then :
14609   ac_cv_lib_rt_sem_init=yes
14610 else $as_nop
14611   ac_cv_lib_rt_sem_init=no
14612 fi
14613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14614     conftest$ac_exeext conftest.$ac_ext
14615 LIBS=$ac_check_lib_save_LIBS
14616 fi
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14618 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14619 if test "x$ac_cv_lib_rt_sem_init" = xyes
14620 then :
14621   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14622
14623         SEM_INIT_LIB=-lrt
14624 else $as_nop
14625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14626 printf %s "checking for sem_init in -lposix4... " >&6; }
14627 if test ${ac_cv_lib_posix4_sem_init+y}
14628 then :
14629   printf %s "(cached) " >&6
14630 else $as_nop
14631   ac_check_lib_save_LIBS=$LIBS
14632 LIBS="-lposix4  $LIBS"
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h.  */
14635
14636 /* Override any GCC internal prototype to avoid an error.
14637    Use char because int might match the return type of a GCC
14638    builtin and then its argument prototype would still apply.  */
14639 char sem_init ();
14640 int
14641 main (void)
14642 {
14643 return sem_init ();
14644   ;
14645   return 0;
14646 }
14647 _ACEOF
14648 if ac_fn_c_try_link "$LINENO"
14649 then :
14650   ac_cv_lib_posix4_sem_init=yes
14651 else $as_nop
14652   ac_cv_lib_posix4_sem_init=no
14653 fi
14654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14655     conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14657 fi
14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14659 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14660 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14661 then :
14662   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14663
14664         SEM_INIT_LIB=-lposix4
14665 fi
14666
14667 fi
14668
14669 fi
14670
14671 fi
14672 fi
14673
14674 if test "$ac_cv_func_qsort_r" != no
14675 then :
14676
14677   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14678 printf %s "checking whether qsort_r is GNU version... " >&6; }
14679 if test ${e2_cv_gnu_qsort_r+y}
14680 then :
14681   printf %s "(cached) " >&6
14682 else $as_nop
14683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h.  */
14685
14686 #include <stdlib.h>
14687 void (qsort_r)(void *base, size_t nmemb, size_t size,
14688             int (*compar)(const void *, const void *, void *),
14689             void *arg);
14690
14691 int
14692 main (void)
14693 {
14694
14695   ;
14696   return 0;
14697 }
14698 _ACEOF
14699 if ac_fn_c_try_compile "$LINENO"
14700 then :
14701   e2_cv_gnu_qsort_r=yes
14702 else $as_nop
14703   e2_cv_gnu_qsort_r=no
14704 fi
14705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14706
14707 fi
14708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14709 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14710   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14711 printf %s "checking whether qsort_r is BSD version... " >&6; }
14712 if test ${e2_cv_bsd_qsort_r+y}
14713 then :
14714   printf %s "(cached) " >&6
14715 else $as_nop
14716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h.  */
14718
14719 #include <stdlib.h>
14720 void (qsort_r)(void *base, size_t nmemb, size_t size,
14721              void *arg, int (*compar)(void *, const void *, const void *));
14722
14723 int
14724 main (void)
14725 {
14726
14727   ;
14728   return 0;
14729 }
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"
14732 then :
14733   e2_cv_bsd_qsort_r=yes
14734 else $as_nop
14735   e2_cv_bsd_qsort_r=no
14736 fi
14737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14738
14739 fi
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14741 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14742   case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14743   yes:no) :
14744
14745
14746 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14747
14748    ;; #(
14749   no:yes) :
14750
14751
14752 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14753
14754    ;; #(
14755   *) :
14756      ;;
14757 esac
14758
14759 fi
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14761 printf %s "checking for unified diff option... " >&6; }
14762 if diff -u $0 $0 > /dev/null 2>&1 ; then
14763    UNI_DIFF_OPTS=-u
14764 else
14765    UNI_DIFF_OPTS=-c
14766 fi
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14768 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14769
14770 case "$host_os" in
14771 linux*)
14772
14773 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14774
14775         ;;
14776 esac
14777
14778     printf %s "checking for mount 'nosuid' option... "
14779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h.  */
14781 #include <sys/mount.h>
14782 int
14783 main (void)
14784 {
14785 void *temp = (void *)(MS_NOSUID); (void) temp;
14786   ;
14787   return 0;
14788 }
14789 _ACEOF
14790 if ac_fn_c_try_compile "$LINENO"
14791 then :
14792
14793 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14794
14795          ac_cv_mount_nosuid=yes
14796          printf "%s\n" "yes"
14797 else $as_nop
14798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h.  */
14800 #include <sys/mount.h>
14801 int
14802 main (void)
14803 {
14804 void *temp = (void *)(MNT_NOSUID); (void) temp;
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 if ac_fn_c_try_compile "$LINENO"
14810 then :
14811
14812 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14813
14814              ac_cv_mount_nosuid=yes
14815              printf "%s\n" "yes"
14816 else $as_nop
14817   ac_cv_mount_nosuid=no
14818              printf "%s\n" "no"
14819
14820 fi
14821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14822
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14825
14826
14827     printf %s "checking for mount 'nodev' option... "
14828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h.  */
14830 #include <sys/mount.h>
14831 int
14832 main (void)
14833 {
14834 void *temp = (void *)(MS_NODEV); (void) temp;
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 if ac_fn_c_try_compile "$LINENO"
14840 then :
14841
14842 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14843
14844          ac_cv_mount_nodev=yes
14845          printf "%s\n" "yes"
14846 else $as_nop
14847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h.  */
14849 #include <sys/mount.h>
14850 int
14851 main (void)
14852 {
14853 void *temp = (void *)(MNT_NODEV); (void) temp;
14854   ;
14855   return 0;
14856 }
14857 _ACEOF
14858 if ac_fn_c_try_compile "$LINENO"
14859 then :
14860
14861 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14862
14863              ac_cv_mount_nodev=yes
14864              printf "%s\n" "yes"
14865 else $as_nop
14866   ac_cv_mount_nodev=no
14867              printf "%s\n" "no"
14868
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14871
14872 fi
14873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14874
14875 # Check whether --enable-lto was given.
14876 if test ${enable_lto+y}
14877 then :
14878   enableval=$enable_lto;
14879 else $as_nop
14880   enable_lto=no
14881 fi
14882
14883 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14884         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14885 printf %s "checking if C compiler supports LTO... " >&6; }
14886         OLD_CFLAGS="$CFLAGS"
14887         OLD_LDFLAGS="$LDFLAGS"
14888         LTO_FLAGS="-g -flto -ffat-lto-objects"
14889         CFLAGS="$CFLAGS $LTO_FLAGS"
14890         LDFLAGS="$LDFLAGS $LTO_FLAGS"
14891         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h.  */
14893
14894 int
14895 main (void)
14896 {
14897
14898   ;
14899   return 0;
14900 }
14901 _ACEOF
14902 if ac_fn_c_try_link "$LINENO"
14903 then :
14904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14905 printf "%s\n" "yes" >&6; }
14906                 lto_cflags=$LTO_FLAGS
14907                 lto_ldflags=$LTO_FLAGS
14908                 # Extract the first word of "gcc-ar", so it can be a program name with args.
14909 set dummy gcc-ar; ac_word=$2
14910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14911 printf %s "checking for $ac_word... " >&6; }
14912 if test ${ac_cv_path_gcc_ar+y}
14913 then :
14914   printf %s "(cached) " >&6
14915 else $as_nop
14916   case $gcc_ar in
14917   [\\/]* | ?:[\\/]*)
14918   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14919   ;;
14920   *)
14921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922 for as_dir in $PATH
14923 do
14924   IFS=$as_save_IFS
14925   case $as_dir in #(((
14926     '') as_dir=./ ;;
14927     */) ;;
14928     *) as_dir=$as_dir/ ;;
14929   esac
14930     for ac_exec_ext in '' $ac_executable_extensions; do
14931   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14932     ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14933     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14934     break 2
14935   fi
14936 done
14937   done
14938 IFS=$as_save_IFS
14939
14940   ;;
14941 esac
14942 fi
14943 gcc_ar=$ac_cv_path_gcc_ar
14944 if test -n "$gcc_ar"; then
14945   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14946 printf "%s\n" "$gcc_ar" >&6; }
14947 else
14948   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 printf "%s\n" "no" >&6; }
14950 fi
14951
14952
14953                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14954 set dummy gcc-ranlib; ac_word=$2
14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14956 printf %s "checking for $ac_word... " >&6; }
14957 if test ${ac_cv_path_gcc_ranlib+y}
14958 then :
14959   printf %s "(cached) " >&6
14960 else $as_nop
14961   case $gcc_ranlib in
14962   [\\/]* | ?:[\\/]*)
14963   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14964   ;;
14965   *)
14966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14967 for as_dir in $PATH
14968 do
14969   IFS=$as_save_IFS
14970   case $as_dir in #(((
14971     '') as_dir=./ ;;
14972     */) ;;
14973     *) as_dir=$as_dir/ ;;
14974   esac
14975     for ac_exec_ext in '' $ac_executable_extensions; do
14976   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14977     ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14978     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14979     break 2
14980   fi
14981 done
14982   done
14983 IFS=$as_save_IFS
14984
14985   ;;
14986 esac
14987 fi
14988 gcc_ranlib=$ac_cv_path_gcc_ranlib
14989 if test -n "$gcc_ranlib"; then
14990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14991 printf "%s\n" "$gcc_ranlib" >&6; }
14992 else
14993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14994 printf "%s\n" "no" >&6; }
14995 fi
14996
14997
14998 else $as_nop
14999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 printf "%s\n" "no" >&6; }
15001 fi
15002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15003     conftest$ac_exeext conftest.$ac_ext
15004         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
15005                 have_lto=yes
15006                 AR="${gcc_ar}"
15007                 RANLIB="${gcc_ranlib}"
15008         fi
15009         CFLAGS="${OLD_CFLAGS}"
15010         LDFLAGS="${OLD_LDFLAGS}"
15011
15012
15013
15014 fi
15015 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
15016         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
15017 fi
15018 # Check whether --enable-ubsan was given.
15019 if test ${enable_ubsan+y}
15020 then :
15021   enableval=$enable_ubsan;
15022 else $as_nop
15023   enable_ubsan=no
15024 fi
15025
15026 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
15027         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
15028 printf %s "checking if C compiler supports UBSAN... " >&6; }
15029         OLD_CFLAGS="$CFLAGS"
15030         OLD_LDFLAGS="$LDFLAGS"
15031         UBSAN_FLAGS="-fsanitize=undefined"
15032         CFLAGS="$CFLAGS $UBSAN_FLAGS"
15033         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
15034         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h.  */
15036
15037 int
15038 main (void)
15039 {
15040
15041   ;
15042   return 0;
15043 }
15044 _ACEOF
15045 if ac_fn_c_try_link "$LINENO"
15046 then :
15047   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15048 printf "%s\n" "yes" >&6; }
15049                 ubsan_cflags=$UBSAN_FLAGS
15050                 ubsan_ldflags=$UBSAN_FLAGS
15051                 have_ubsan=yes
15052 else $as_nop
15053   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 printf "%s\n" "no" >&6; }
15055 fi
15056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15057     conftest$ac_exeext conftest.$ac_ext
15058         CFLAGS="${OLD_CFLAGS}"
15059         LDFLAGS="${OLD_LDFLAGS}"
15060
15061
15062
15063 fi
15064 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
15065         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
15066 fi
15067 # Check whether --enable-addrsan was given.
15068 if test ${enable_addrsan+y}
15069 then :
15070   enableval=$enable_addrsan;
15071 else $as_nop
15072   enable_addrsan=no
15073 fi
15074
15075 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
15076         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
15077 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
15078         OLD_CFLAGS="$CFLAGS"
15079         OLD_LDFLAGS="$LDFLAGS"
15080         ADDRSAN_FLAGS="-fsanitize=address"
15081         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
15082         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
15083         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h.  */
15085
15086 int
15087 main (void)
15088 {
15089
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_c_try_link "$LINENO"
15095 then :
15096   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097 printf "%s\n" "yes" >&6; }
15098                 addrsan_cflags=$ADDRSAN_FLAGS
15099                 addrsan_ldflags=$ADDRSAN_FLAGS
15100                 have_addrsan=yes
15101 else $as_nop
15102   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103 printf "%s\n" "no" >&6; }
15104 fi
15105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15106     conftest$ac_exeext conftest.$ac_ext
15107         CFLAGS="${OLD_CFLAGS}"
15108         LDFLAGS="${OLD_LDFLAGS}"
15109
15110
15111
15112 fi
15113 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
15114         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
15115 fi
15116 # Check whether --enable-threadsan was given.
15117 if test ${enable_threadsan+y}
15118 then :
15119   enableval=$enable_threadsan;
15120 else $as_nop
15121   enable_threadsan=no
15122 fi
15123
15124 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
15125         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
15126 printf %s "checking if C compiler supports THREADSAN... " >&6; }
15127         OLD_CFLAGS="$CFLAGS"
15128         OLD_LDFLAGS="$LDFLAGS"
15129         THREADSAN_FLAGS="-fsanitize=thread"
15130         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
15131         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
15132         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h.  */
15134
15135 int
15136 main (void)
15137 {
15138
15139   ;
15140   return 0;
15141 }
15142 _ACEOF
15143 if ac_fn_c_try_link "$LINENO"
15144 then :
15145   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15146 printf "%s\n" "yes" >&6; }
15147                 threadsan_cflags=$THREADSAN_FLAGS
15148                 threadsan_ldflags=$THREADSAN_FLAGS
15149                 have_threadsan=yes
15150 else $as_nop
15151   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15152 printf "%s\n" "no" >&6; }
15153 fi
15154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15155     conftest$ac_exeext conftest.$ac_ext
15156         CFLAGS="${OLD_CFLAGS}"
15157         LDFLAGS="${OLD_LDFLAGS}"
15158
15159
15160
15161 fi
15162 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
15163         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
15164 fi
15165 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
15166         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
15167 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
15168 fi
15169 FUZZING_CMT="#"
15170 # Check whether --enable-fuzzing was given.
15171 if test ${enable_fuzzing+y}
15172 then :
15173   enableval=$enable_fuzzing;
15174 else $as_nop
15175   enable_fuzzing=no
15176 fi
15177
15178 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
15179
15180
15181
15182
15183
15184
15185 ac_ext=cpp
15186 ac_cpp='$CXXCPP $CPPFLAGS'
15187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15190 if test -z "$CXX"; then
15191   if test -n "$CCC"; then
15192     CXX=$CCC
15193   else
15194     if test -n "$ac_tool_prefix"; then
15195   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15196   do
15197     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15200 printf %s "checking for $ac_word... " >&6; }
15201 if test ${ac_cv_prog_CXX+y}
15202 then :
15203   printf %s "(cached) " >&6
15204 else $as_nop
15205   if test -n "$CXX"; then
15206   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15207 else
15208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209 for as_dir in $PATH
15210 do
15211   IFS=$as_save_IFS
15212   case $as_dir in #(((
15213     '') as_dir=./ ;;
15214     */) ;;
15215     *) as_dir=$as_dir/ ;;
15216   esac
15217     for ac_exec_ext in '' $ac_executable_extensions; do
15218   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15219     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15220     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15221     break 2
15222   fi
15223 done
15224   done
15225 IFS=$as_save_IFS
15226
15227 fi
15228 fi
15229 CXX=$ac_cv_prog_CXX
15230 if test -n "$CXX"; then
15231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15232 printf "%s\n" "$CXX" >&6; }
15233 else
15234   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15235 printf "%s\n" "no" >&6; }
15236 fi
15237
15238
15239     test -n "$CXX" && break
15240   done
15241 fi
15242 if test -z "$CXX"; then
15243   ac_ct_CXX=$CXX
15244   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15245 do
15246   # Extract the first word of "$ac_prog", so it can be a program name with args.
15247 set dummy $ac_prog; ac_word=$2
15248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15249 printf %s "checking for $ac_word... " >&6; }
15250 if test ${ac_cv_prog_ac_ct_CXX+y}
15251 then :
15252   printf %s "(cached) " >&6
15253 else $as_nop
15254   if test -n "$ac_ct_CXX"; then
15255   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15256 else
15257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15258 for as_dir in $PATH
15259 do
15260   IFS=$as_save_IFS
15261   case $as_dir in #(((
15262     '') as_dir=./ ;;
15263     */) ;;
15264     *) as_dir=$as_dir/ ;;
15265   esac
15266     for ac_exec_ext in '' $ac_executable_extensions; do
15267   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15268     ac_cv_prog_ac_ct_CXX="$ac_prog"
15269     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15270     break 2
15271   fi
15272 done
15273   done
15274 IFS=$as_save_IFS
15275
15276 fi
15277 fi
15278 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15279 if test -n "$ac_ct_CXX"; then
15280   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15281 printf "%s\n" "$ac_ct_CXX" >&6; }
15282 else
15283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284 printf "%s\n" "no" >&6; }
15285 fi
15286
15287
15288   test -n "$ac_ct_CXX" && break
15289 done
15290
15291   if test "x$ac_ct_CXX" = x; then
15292     CXX="g++"
15293   else
15294     case $cross_compiling:$ac_tool_warned in
15295 yes:)
15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15297 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15298 ac_tool_warned=yes ;;
15299 esac
15300     CXX=$ac_ct_CXX
15301   fi
15302 fi
15303
15304   fi
15305 fi
15306 # Provide some information about the compiler.
15307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15308 set X $ac_compile
15309 ac_compiler=$2
15310 for ac_option in --version -v -V -qversion; do
15311   { { ac_try="$ac_compiler $ac_option >&5"
15312 case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15317 printf "%s\n" "$ac_try_echo"; } >&5
15318   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15319   ac_status=$?
15320   if test -s conftest.err; then
15321     sed '10a\
15322 ... rest of stderr output deleted ...
15323          10q' conftest.err >conftest.er1
15324     cat conftest.er1 >&5
15325   fi
15326   rm -f conftest.er1 conftest.err
15327   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15328   test $ac_status = 0; }
15329 done
15330
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15332 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15333 if test ${ac_cv_cxx_compiler_gnu+y}
15334 then :
15335   printf %s "(cached) " >&6
15336 else $as_nop
15337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h.  */
15339
15340 int
15341 main (void)
15342 {
15343 #ifndef __GNUC__
15344        choke me
15345 #endif
15346
15347   ;
15348   return 0;
15349 }
15350 _ACEOF
15351 if ac_fn_cxx_try_compile "$LINENO"
15352 then :
15353   ac_compiler_gnu=yes
15354 else $as_nop
15355   ac_compiler_gnu=no
15356 fi
15357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15358 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15359
15360 fi
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15362 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15364
15365 if test $ac_compiler_gnu = yes; then
15366   GXX=yes
15367 else
15368   GXX=
15369 fi
15370 ac_test_CXXFLAGS=${CXXFLAGS+y}
15371 ac_save_CXXFLAGS=$CXXFLAGS
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15373 printf %s "checking whether $CXX accepts -g... " >&6; }
15374 if test ${ac_cv_prog_cxx_g+y}
15375 then :
15376   printf %s "(cached) " >&6
15377 else $as_nop
15378   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15379    ac_cxx_werror_flag=yes
15380    ac_cv_prog_cxx_g=no
15381    CXXFLAGS="-g"
15382    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h.  */
15384
15385 int
15386 main (void)
15387 {
15388
15389   ;
15390   return 0;
15391 }
15392 _ACEOF
15393 if ac_fn_cxx_try_compile "$LINENO"
15394 then :
15395   ac_cv_prog_cxx_g=yes
15396 else $as_nop
15397   CXXFLAGS=""
15398       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h.  */
15400
15401 int
15402 main (void)
15403 {
15404
15405   ;
15406   return 0;
15407 }
15408 _ACEOF
15409 if ac_fn_cxx_try_compile "$LINENO"
15410 then :
15411
15412 else $as_nop
15413   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15414          CXXFLAGS="-g"
15415          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h.  */
15417
15418 int
15419 main (void)
15420 {
15421
15422   ;
15423   return 0;
15424 }
15425 _ACEOF
15426 if ac_fn_cxx_try_compile "$LINENO"
15427 then :
15428   ac_cv_prog_cxx_g=yes
15429 fi
15430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15431 fi
15432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15433 fi
15434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15435    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15436 fi
15437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15438 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15439 if test $ac_test_CXXFLAGS; then
15440   CXXFLAGS=$ac_save_CXXFLAGS
15441 elif test $ac_cv_prog_cxx_g = yes; then
15442   if test "$GXX" = yes; then
15443     CXXFLAGS="-g -O2"
15444   else
15445     CXXFLAGS="-g"
15446   fi
15447 else
15448   if test "$GXX" = yes; then
15449     CXXFLAGS="-O2"
15450   else
15451     CXXFLAGS=
15452   fi
15453 fi
15454 ac_prog_cxx_stdcxx=no
15455 if test x$ac_prog_cxx_stdcxx = xno
15456 then :
15457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15458 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15459 if test ${ac_cv_prog_cxx_cxx11+y}
15460 then :
15461   printf %s "(cached) " >&6
15462 else $as_nop
15463   ac_cv_prog_cxx_cxx11=no
15464 ac_save_CXX=$CXX
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h.  */
15467 $ac_cxx_conftest_cxx11_program
15468 _ACEOF
15469 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15470 do
15471   CXX="$ac_save_CXX $ac_arg"
15472   if ac_fn_cxx_try_compile "$LINENO"
15473 then :
15474   ac_cv_prog_cxx_cxx11=$ac_arg
15475 fi
15476 rm -f core conftest.err conftest.$ac_objext conftest.beam
15477   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15478 done
15479 rm -f conftest.$ac_ext
15480 CXX=$ac_save_CXX
15481 fi
15482
15483 if test "x$ac_cv_prog_cxx_cxx11" = xno
15484 then :
15485   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15486 printf "%s\n" "unsupported" >&6; }
15487 else $as_nop
15488   if test "x$ac_cv_prog_cxx_cxx11" = x
15489 then :
15490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15491 printf "%s\n" "none needed" >&6; }
15492 else $as_nop
15493   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15494 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15495      CXX="$CXX $ac_cv_prog_cxx_cxx11"
15496 fi
15497   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15498   ac_prog_cxx_stdcxx=cxx11
15499 fi
15500 fi
15501 if test x$ac_prog_cxx_stdcxx = xno
15502 then :
15503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15504 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15505 if test ${ac_cv_prog_cxx_cxx98+y}
15506 then :
15507   printf %s "(cached) " >&6
15508 else $as_nop
15509   ac_cv_prog_cxx_cxx98=no
15510 ac_save_CXX=$CXX
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h.  */
15513 $ac_cxx_conftest_cxx98_program
15514 _ACEOF
15515 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15516 do
15517   CXX="$ac_save_CXX $ac_arg"
15518   if ac_fn_cxx_try_compile "$LINENO"
15519 then :
15520   ac_cv_prog_cxx_cxx98=$ac_arg
15521 fi
15522 rm -f core conftest.err conftest.$ac_objext conftest.beam
15523   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15524 done
15525 rm -f conftest.$ac_ext
15526 CXX=$ac_save_CXX
15527 fi
15528
15529 if test "x$ac_cv_prog_cxx_cxx98" = xno
15530 then :
15531   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15532 printf "%s\n" "unsupported" >&6; }
15533 else $as_nop
15534   if test "x$ac_cv_prog_cxx_cxx98" = x
15535 then :
15536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15537 printf "%s\n" "none needed" >&6; }
15538 else $as_nop
15539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15540 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15541      CXX="$CXX $ac_cv_prog_cxx_cxx98"
15542 fi
15543   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15544   ac_prog_cxx_stdcxx=cxx98
15545 fi
15546 fi
15547
15548 ac_ext=c
15549 ac_cpp='$CPP $CPPFLAGS'
15550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15553
15554         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15555 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15556         ac_ext=cpp
15557 ac_cpp='$CXXCPP $CPPFLAGS'
15558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15561
15562         OLD_CXXFLAGS="$CXXFLAGS"
15563         OLD_LDFLAGS="$LDFLAGS"
15564         FUZZER_FLAGS="-fsanitize=fuzzer"
15565         CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15566         LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15567
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h.  */
15570
15571                 #include <stddef.h>
15572                 #include <stdint.h>
15573
15574 int
15575 main (void)
15576 {
15577  return 0;
15578   ;
15579   return 0;
15580 }
15581 _ACEOF
15582 if ac_fn_cxx_try_compile "$LINENO"
15583 then :
15584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15585 printf "%s\n" "yes" >&6; }
15586                 fuzzer_cflags=$FUZZER_FLAGS
15587                 fuzzer_ldflags=$FUZZER_FLAGS
15588                 FUZZING_CMT=
15589                 have_fuzzer=yes
15590 else $as_nop
15591   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15592 printf "%s\n" "no" >&6; }
15593                 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15594 fi
15595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15596         CXXFLAGS="${OLD_CXXFLAGS}"
15597         LDFLAGS="${OLD_LDFLAGS}"
15598         ac_ext=c
15599 ac_cpp='$CPP $CPPFLAGS'
15600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15603
15604
15605
15606
15607 fi
15608 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
15609         as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
15610 fi
15611
15612 LINUX_CMT="#"
15613 CYGWIN_CMT="#"
15614 UNIX_CMT=
15615 case "$host_os" in
15616 linux*)
15617         LINUX_CMT=
15618         ;;
15619 cygwin)
15620         CYGWIN_CMT=
15621         UNIX_CMT="#"
15622         ;;
15623 esac
15624
15625
15626
15627 E2SCRUB_CMT="$LINUX_CMT"
15628
15629 case "$host_os" in
15630 linux* | gnu* | k*bsd*-gnu)
15631         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15632                 root_prefix="";
15633                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15634 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15635         fi
15636         ;;
15637 esac
15638 case "$host_os" in
15639 linux* | gnu* | k*bsd*-gnu)
15640         if test "$prefix" = NONE ; then
15641                 prefix="/usr";
15642                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15643 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15644                 if test "$mandir" = '${prefix}/man' ; then
15645                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15646 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15647                         mandir=/usr/share/man
15648                 fi
15649         fi
15650 ;;
15651 esac
15652 if test "$root_prefix" = NONE ; then
15653         if test "$prefix" = NONE ; then
15654                 root_prefix="$ac_default_prefix"
15655         else
15656                 root_prefix="$prefix"
15657         fi
15658         root_bindir=$bindir
15659         root_sbindir=$sbindir
15660         root_libdir=$libdir
15661         root_sysconfdir=$sysconfdir
15662 else
15663         root_bindir='${root_prefix}/bin'
15664         root_sbindir='${root_prefix}/sbin'
15665         root_libdir='${root_prefix}/lib'
15666         root_sysconfdir='${root_prefix}/etc'
15667 fi
15668 if test "$bindir" != '${exec_prefix}/bin'; then
15669     root_bindir=$bindir
15670     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15671 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15672 fi
15673 if test "$sbindir" != '${exec_prefix}/sbin'; then
15674     root_sbindir=$sbindir
15675     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15676 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15677 fi
15678 if test "$libdir" != '${exec_prefix}/lib'; then
15679     root_libdir=$libdir
15680     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15681 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15682 fi
15683 if test "$sysconfdir" != '${prefix}/etc'; then
15684     root_sysconfdir=$sysconfdir
15685     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15686 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15687 fi
15688
15689
15690
15691
15692
15693
15694 # Check whether --with-multiarch was given.
15695 if test ${with_multiarch+y}
15696 then :
15697   withval=$with_multiarch; if test "$withval" = "lib64"; then
15698     libdir=/usr/lib64
15699     root_libdir=/lib64
15700 else
15701     libdir=$libdir/$withval
15702     root_libdir=$root_libdir/$withval
15703 fi
15704
15705 fi
15706
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15708 printf %s "checking whether we can link with -static... " >&6; }
15709 if test ${ac_cv_e2fsprogs_use_static+y}
15710 then :
15711   printf %s "(cached) " >&6
15712 else $as_nop
15713   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h.  */
15716 #include <stdio.h>
15717 int
15718 main (void)
15719 {
15720 fflush(stdout);
15721   ;
15722   return 0;
15723 }
15724 _ACEOF
15725 if ac_fn_c_try_link "$LINENO"
15726 then :
15727   ac_cv_e2fsprogs_use_static=yes
15728 else $as_nop
15729   ac_cv_e2fsprogs_use_static=no
15730 fi
15731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15732     conftest$ac_exeext conftest.$ac_ext
15733 LDFLAGS=$SAVE_LDFLAGS
15734 fi
15735
15736 case "$host_os" in
15737 solaris2.*)
15738         ac_cv_e2fsprogs_use_static=no
15739 ;;
15740 esac
15741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15742 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15743 if test $ac_cv_e2fsprogs_use_static = yes; then
15744         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15745 fi
15746
15747 case "$host_os" in
15748 darwin*)
15749         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15750 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15751
15752 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15753
15754         ;;
15755 esac
15756 if test "$cross_compiling" = yes ; then
15757   DO_TEST_SUITE=
15758 else
15759   DO_TEST_SUITE=check
15760 fi
15761
15762 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15763 if test -n "$CPPFLAGS" ; then
15764         INCLUDES="$INCLUDES $CPPFLAGS"
15765 fi
15766 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15767         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15768 fi
15769 if test -n "$WITH_DIET_LIBC" ; then
15770         INCLUDES="$INCLUDES -D_REENTRANT"
15771 fi
15772 case "$host_os" in
15773 mingw*)
15774         INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15775         ;;
15776 esac
15777
15778 if test $cross_compiling = no; then
15779    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15780    BUILD_LDFLAGS="$LDFLAGS"
15781 fi
15782
15783
15784 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15785 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15786 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15787
15788
15789
15790
15791
15792 # Check whether --with-udev_rules_dir was given.
15793 if test ${with_udev_rules_dir+y}
15794 then :
15795   withval=$with_udev_rules_dir;
15796 else $as_nop
15797   with_udev_rules_dir=yes
15798 fi
15799
15800 if test "x${with_udev_rules_dir}" != "xno"
15801 then :
15802
15803         if test "x${with_udev_rules_dir}" = "xyes"
15804 then :
15805
15806
15807 pkg_failed=no
15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15809 printf %s "checking for udev... " >&6; }
15810
15811 if test -n "$udev_CFLAGS"; then
15812     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15813  elif test -n "$PKG_CONFIG"; then
15814     if test -n "$PKG_CONFIG" && \
15815     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15816   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15817   ac_status=$?
15818   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15819   test $ac_status = 0; }; then
15820   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15821                       test "x$?" != "x0" && pkg_failed=yes
15822 else
15823   pkg_failed=yes
15824 fi
15825  else
15826     pkg_failed=untried
15827 fi
15828 if test -n "$udev_LIBS"; then
15829     pkg_cv_udev_LIBS="$udev_LIBS"
15830  elif test -n "$PKG_CONFIG"; then
15831     if test -n "$PKG_CONFIG" && \
15832     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15833   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15834   ac_status=$?
15835   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836   test $ac_status = 0; }; then
15837   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15838                       test "x$?" != "x0" && pkg_failed=yes
15839 else
15840   pkg_failed=yes
15841 fi
15842  else
15843     pkg_failed=untried
15844 fi
15845
15846
15847
15848 if test $pkg_failed = yes; then
15849         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15850 printf "%s\n" "no" >&6; }
15851
15852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15853         _pkg_short_errors_supported=yes
15854 else
15855         _pkg_short_errors_supported=no
15856 fi
15857         if test $_pkg_short_errors_supported = yes; then
15858                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15859         else
15860                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15861         fi
15862         # Put the nasty error message in config.log where it belongs
15863         echo "$udev_PKG_ERRORS" >&5
15864
15865
15866                         with_udev_rules_dir=""
15867
15868 elif test $pkg_failed = untried; then
15869         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15870 printf "%s\n" "no" >&6; }
15871
15872                         with_udev_rules_dir=""
15873
15874 else
15875         udev_CFLAGS=$pkg_cv_udev_CFLAGS
15876         udev_LIBS=$pkg_cv_udev_LIBS
15877         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15878 printf "%s\n" "yes" >&6; }
15879
15880                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15881
15882 fi
15883
15884 fi
15885         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15886 printf %s "checking for udev rules dir... " >&6; }
15887         pkg_udev_rules_dir="${with_udev_rules_dir}"
15888         if test -n "${pkg_udev_rules_dir}"
15889 then :
15890
15891                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15892 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15893                 have_udev="yes"
15894
15895 else $as_nop
15896
15897                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898 printf "%s\n" "no" >&6; }
15899                 have_udev="no"
15900
15901 fi
15902
15903 else $as_nop
15904
15905         have_udev="disabled"
15906
15907 fi
15908
15909
15910
15911
15912 # Check whether --with-crond_dir was given.
15913 if test ${with_crond_dir+y}
15914 then :
15915   withval=$with_crond_dir;
15916 else $as_nop
15917   with_crond_dir=yes
15918 fi
15919
15920 if test "x${with_crond_dir}" != "xno"
15921 then :
15922
15923         if test "x${with_crond_dir}" = "xyes"
15924 then :
15925
15926                 if test -d "/etc/cron.d"
15927 then :
15928   with_crond_dir="/etc/cron.d"
15929 else $as_nop
15930   have_crond="no"; with_crond_dir=""
15931 fi
15932
15933 fi
15934         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15935 printf %s "checking for system crontab dir... " >&6; }
15936         crond_dir="${with_crond_dir}"
15937         if test -n "${crond_dir}"
15938 then :
15939
15940                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15941 printf "%s\n" "${crond_dir}" >&6; }
15942                 have_crond="yes"
15943
15944 else $as_nop
15945
15946                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947 printf "%s\n" "no" >&6; }
15948                 have_crond="no"
15949
15950 fi
15951
15952 else $as_nop
15953
15954         have_crond="disabled"
15955
15956 fi
15957
15958
15959
15960
15961 # Check whether --with-systemd_unit_dir was given.
15962 if test ${with_systemd_unit_dir+y}
15963 then :
15964   withval=$with_systemd_unit_dir;
15965 else $as_nop
15966   with_systemd_unit_dir=yes
15967 fi
15968
15969 if test "x${with_systemd_unit_dir}" != "xno"
15970 then :
15971
15972         if test "x${with_systemd_unit_dir}" = "xyes"
15973 then :
15974
15975
15976 pkg_failed=no
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15978 printf %s "checking for systemd... " >&6; }
15979
15980 if test -n "$systemd_CFLAGS"; then
15981     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15982  elif test -n "$PKG_CONFIG"; then
15983     if test -n "$PKG_CONFIG" && \
15984     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15985   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15986   ac_status=$?
15987   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15988   test $ac_status = 0; }; then
15989   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15990                       test "x$?" != "x0" && pkg_failed=yes
15991 else
15992   pkg_failed=yes
15993 fi
15994  else
15995     pkg_failed=untried
15996 fi
15997 if test -n "$systemd_LIBS"; then
15998     pkg_cv_systemd_LIBS="$systemd_LIBS"
15999  elif test -n "$PKG_CONFIG"; then
16000     if test -n "$PKG_CONFIG" && \
16001     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16002   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16003   ac_status=$?
16004   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005   test $ac_status = 0; }; then
16006   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
16007                       test "x$?" != "x0" && pkg_failed=yes
16008 else
16009   pkg_failed=yes
16010 fi
16011  else
16012     pkg_failed=untried
16013 fi
16014
16015
16016
16017 if test $pkg_failed = yes; then
16018         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16019 printf "%s\n" "no" >&6; }
16020
16021 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16022         _pkg_short_errors_supported=yes
16023 else
16024         _pkg_short_errors_supported=no
16025 fi
16026         if test $_pkg_short_errors_supported = yes; then
16027                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
16028         else
16029                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
16030         fi
16031         # Put the nasty error message in config.log where it belongs
16032         echo "$systemd_PKG_ERRORS" >&5
16033
16034
16035                         with_systemd_unit_dir=""
16036
16037 elif test $pkg_failed = untried; then
16038         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039 printf "%s\n" "no" >&6; }
16040
16041                         with_systemd_unit_dir=""
16042
16043 else
16044         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
16045         systemd_LIBS=$pkg_cv_systemd_LIBS
16046         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16047 printf "%s\n" "yes" >&6; }
16048
16049                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
16050
16051 fi
16052
16053
16054 fi
16055         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
16056 printf %s "checking for systemd system unit dir... " >&6; }
16057         systemd_system_unit_dir="${with_systemd_unit_dir}"
16058         if test -n "${systemd_system_unit_dir}"
16059 then :
16060
16061                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
16062 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
16063                 have_systemd="yes"
16064
16065 else $as_nop
16066
16067                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068 printf "%s\n" "no" >&6; }
16069                 have_systemd="no"
16070
16071 fi
16072
16073 else $as_nop
16074
16075         have_systemd="disabled"
16076
16077 fi
16078
16079
16080 OS_IO_FILE=""
16081 case "$host_os" in
16082   mingw*)
16083     OS_IO_FILE=windows_io
16084   ;;
16085   *)
16086     OS_IO_FILE=unix_io
16087   ;;
16088 esac
16089
16090
16091 test -d lib || mkdir lib
16092 test -d include || mkdir include
16093 test -d include/linux || mkdir include/linux
16094 test -d include/asm || mkdir include/asm
16095 if test -z "$UUID_CMT" ; then
16096         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
16097                 lib/uuid/uuid_types.h"
16098 fi
16099 if test -z "$BLKID_CMT" ; then
16100         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
16101                 lib/blkid/blkid_types.h"
16102 fi
16103 for i in MCONFIG Makefile \
16104         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
16105         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16106         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16107         $uuid_out_list $blkid_out_list lib/support/Makefile \
16108         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
16109         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16110         debugfs/Makefile tests/Makefile tests/progs/Makefile \
16111         tests/fuzz/Makefile resize/Makefile doc/Makefile \
16112         po/Makefile.in scrub/Makefile; do
16113         if test -d `dirname ${srcdir}/$i` ; then
16114                 outlist="$outlist $i"
16115         fi
16116 done
16117 ac_config_files="$ac_config_files $outlist"
16118
16119 cat >confcache <<\_ACEOF
16120 # This file is a shell script that caches the results of configure
16121 # tests run on this system so they can be shared between configure
16122 # scripts and configure runs, see configure's option --config-cache.
16123 # It is not useful on other systems.  If it contains results you don't
16124 # want to keep, you may remove or edit it.
16125 #
16126 # config.status only pays attention to the cache file if you give it
16127 # the --recheck option to rerun configure.
16128 #
16129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16131 # following values.
16132
16133 _ACEOF
16134
16135 # The following way of writing the cache mishandles newlines in values,
16136 # but we know of no workaround that is simple, portable, and efficient.
16137 # So, we kill variables containing newlines.
16138 # Ultrix sh set writes to stderr and can't be redirected directly,
16139 # and sets the high bit in the cache file unless we assign to the vars.
16140 (
16141   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16142     eval ac_val=\$$ac_var
16143     case $ac_val in #(
16144     *${as_nl}*)
16145       case $ac_var in #(
16146       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16147 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16148       esac
16149       case $ac_var in #(
16150       _ | IFS | as_nl) ;; #(
16151       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16152       *) { eval $ac_var=; unset $ac_var;} ;;
16153       esac ;;
16154     esac
16155   done
16156
16157   (set) 2>&1 |
16158     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16159     *${as_nl}ac_space=\ *)
16160       # `set' does not quote correctly, so add quotes: double-quote
16161       # substitution turns \\\\ into \\, and sed turns \\ into \.
16162       sed -n \
16163         "s/'/'\\\\''/g;
16164           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16165       ;; #(
16166     *)
16167       # `set' quotes correctly as required by POSIX, so do not add quotes.
16168       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16169       ;;
16170     esac |
16171     sort
16172 ) |
16173   sed '
16174      /^ac_cv_env_/b end
16175      t clear
16176      :clear
16177      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16178      t end
16179      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16180      :end' >>confcache
16181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16182   if test -w "$cache_file"; then
16183     if test "x$cache_file" != "x/dev/null"; then
16184       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16185 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16186       if test ! -f "$cache_file" || test -h "$cache_file"; then
16187         cat confcache >"$cache_file"
16188       else
16189         case $cache_file in #(
16190         */* | ?:*)
16191           mv -f confcache "$cache_file"$$ &&
16192           mv -f "$cache_file"$$ "$cache_file" ;; #(
16193         *)
16194           mv -f confcache "$cache_file" ;;
16195         esac
16196       fi
16197     fi
16198   else
16199     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16200 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16201   fi
16202 fi
16203 rm -f confcache
16204
16205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16206 # Let make expand exec_prefix.
16207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16208
16209 DEFS=-DHAVE_CONFIG_H
16210
16211 ac_libobjs=
16212 ac_ltlibobjs=
16213 U=
16214 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16215   # 1. Remove the extension, and $U if already installed.
16216   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16217   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16218   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16219   #    will be set to the directory where LIBOBJS objects are built.
16220   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16221   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16222 done
16223 LIBOBJS=$ac_libobjs
16224
16225 LTLIBOBJS=$ac_ltlibobjs
16226
16227
16228
16229
16230 : "${CONFIG_STATUS=./config.status}"
16231 ac_write_fail=0
16232 ac_clean_files_save=$ac_clean_files
16233 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16235 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16236 as_write_fail=0
16237 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16238 #! $SHELL
16239 # Generated by $as_me.
16240 # Run this file to recreate the current configuration.
16241 # Compiler output produced by configure, useful for debugging
16242 # configure, is in config.log if it exists.
16243
16244 debug=false
16245 ac_cs_recheck=false
16246 ac_cs_silent=false
16247
16248 SHELL=\${CONFIG_SHELL-$SHELL}
16249 export SHELL
16250 _ASEOF
16251 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16252 ## -------------------- ##
16253 ## M4sh Initialization. ##
16254 ## -------------------- ##
16255
16256 # Be more Bourne compatible
16257 DUALCASE=1; export DUALCASE # for MKS sh
16258 as_nop=:
16259 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16260 then :
16261   emulate sh
16262   NULLCMD=:
16263   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16264   # is contrary to our usage.  Disable this feature.
16265   alias -g '${1+"$@"}'='"$@"'
16266   setopt NO_GLOB_SUBST
16267 else $as_nop
16268   case `(set -o) 2>/dev/null` in #(
16269   *posix*) :
16270     set -o posix ;; #(
16271   *) :
16272      ;;
16273 esac
16274 fi
16275
16276
16277
16278 # Reset variables that may have inherited troublesome values from
16279 # the environment.
16280
16281 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16282 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16283 # side effect of setting IFS to empty, thus disabling word splitting.)
16284 # Quoting is to prevent editors from complaining about space-tab.
16285 as_nl='
16286 '
16287 export as_nl
16288 IFS=" ""        $as_nl"
16289
16290 PS1='$ '
16291 PS2='> '
16292 PS4='+ '
16293
16294 # Ensure predictable behavior from utilities with locale-dependent output.
16295 LC_ALL=C
16296 export LC_ALL
16297 LANGUAGE=C
16298 export LANGUAGE
16299
16300 # We cannot yet rely on "unset" to work, but we need these variables
16301 # to be unset--not just set to an empty or harmless value--now, to
16302 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
16303 # also avoids known problems related to "unset" and subshell syntax
16304 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16305 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16306 do eval test \${$as_var+y} \
16307   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16308 done
16309
16310 # Ensure that fds 0, 1, and 2 are open.
16311 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16312 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16313 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
16314
16315 # The user is always right.
16316 if ${PATH_SEPARATOR+false} :; then
16317   PATH_SEPARATOR=:
16318   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16319     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16320       PATH_SEPARATOR=';'
16321   }
16322 fi
16323
16324
16325 # Find who we are.  Look in the path if we contain no directory separator.
16326 as_myself=
16327 case $0 in #((
16328   *[\\/]* ) as_myself=$0 ;;
16329   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16330 for as_dir in $PATH
16331 do
16332   IFS=$as_save_IFS
16333   case $as_dir in #(((
16334     '') as_dir=./ ;;
16335     */) ;;
16336     *) as_dir=$as_dir/ ;;
16337   esac
16338     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16339   done
16340 IFS=$as_save_IFS
16341
16342      ;;
16343 esac
16344 # We did not find ourselves, most probably we were run as `sh COMMAND'
16345 # in which case we are not to be found in the path.
16346 if test "x$as_myself" = x; then
16347   as_myself=$0
16348 fi
16349 if test ! -f "$as_myself"; then
16350   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16351   exit 1
16352 fi
16353
16354
16355
16356 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16357 # ----------------------------------------
16358 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16359 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16360 # script with STATUS, using 1 if that was 0.
16361 as_fn_error ()
16362 {
16363   as_status=$1; test $as_status -eq 0 && as_status=1
16364   if test "$4"; then
16365     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16366     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16367   fi
16368   printf "%s\n" "$as_me: error: $2" >&2
16369   as_fn_exit $as_status
16370 } # as_fn_error
16371
16372
16373
16374 # as_fn_set_status STATUS
16375 # -----------------------
16376 # Set $? to STATUS, without forking.
16377 as_fn_set_status ()
16378 {
16379   return $1
16380 } # as_fn_set_status
16381
16382 # as_fn_exit STATUS
16383 # -----------------
16384 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16385 as_fn_exit ()
16386 {
16387   set +e
16388   as_fn_set_status $1
16389   exit $1
16390 } # as_fn_exit
16391
16392 # as_fn_unset VAR
16393 # ---------------
16394 # Portably unset VAR.
16395 as_fn_unset ()
16396 {
16397   { eval $1=; unset $1;}
16398 }
16399 as_unset=as_fn_unset
16400
16401 # as_fn_append VAR VALUE
16402 # ----------------------
16403 # Append the text in VALUE to the end of the definition contained in VAR. Take
16404 # advantage of any shell optimizations that allow amortized linear growth over
16405 # repeated appends, instead of the typical quadratic growth present in naive
16406 # implementations.
16407 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16408 then :
16409   eval 'as_fn_append ()
16410   {
16411     eval $1+=\$2
16412   }'
16413 else $as_nop
16414   as_fn_append ()
16415   {
16416     eval $1=\$$1\$2
16417   }
16418 fi # as_fn_append
16419
16420 # as_fn_arith ARG...
16421 # ------------------
16422 # Perform arithmetic evaluation on the ARGs, and store the result in the
16423 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16424 # must be portable across $(()) and expr.
16425 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16426 then :
16427   eval 'as_fn_arith ()
16428   {
16429     as_val=$(( $* ))
16430   }'
16431 else $as_nop
16432   as_fn_arith ()
16433   {
16434     as_val=`expr "$@" || test $? -eq 1`
16435   }
16436 fi # as_fn_arith
16437
16438
16439 if expr a : '\(a\)' >/dev/null 2>&1 &&
16440    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16441   as_expr=expr
16442 else
16443   as_expr=false
16444 fi
16445
16446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16447   as_basename=basename
16448 else
16449   as_basename=false
16450 fi
16451
16452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16453   as_dirname=dirname
16454 else
16455   as_dirname=false
16456 fi
16457
16458 as_me=`$as_basename -- "$0" ||
16459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16460          X"$0" : 'X\(//\)$' \| \
16461          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16462 printf "%s\n" X/"$0" |
16463     sed '/^.*\/\([^/][^/]*\)\/*$/{
16464             s//\1/
16465             q
16466           }
16467           /^X\/\(\/\/\)$/{
16468             s//\1/
16469             q
16470           }
16471           /^X\/\(\/\).*/{
16472             s//\1/
16473             q
16474           }
16475           s/.*/./; q'`
16476
16477 # Avoid depending upon Character Ranges.
16478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16481 as_cr_digits='0123456789'
16482 as_cr_alnum=$as_cr_Letters$as_cr_digits
16483
16484
16485 # Determine whether it's possible to make 'echo' print without a newline.
16486 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16487 # for compatibility with existing Makefiles.
16488 ECHO_C= ECHO_N= ECHO_T=
16489 case `echo -n x` in #(((((
16490 -n*)
16491   case `echo 'xy\c'` in
16492   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16493   xy)  ECHO_C='\c';;
16494   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16495        ECHO_T=' ';;
16496   esac;;
16497 *)
16498   ECHO_N='-n';;
16499 esac
16500
16501 # For backward compatibility with old third-party macros, we provide
16502 # the shell variables $as_echo and $as_echo_n.  New code should use
16503 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16504 as_echo='printf %s\n'
16505 as_echo_n='printf %s'
16506
16507 rm -f conf$$ conf$$.exe conf$$.file
16508 if test -d conf$$.dir; then
16509   rm -f conf$$.dir/conf$$.file
16510 else
16511   rm -f conf$$.dir
16512   mkdir conf$$.dir 2>/dev/null
16513 fi
16514 if (echo >conf$$.file) 2>/dev/null; then
16515   if ln -s conf$$.file conf$$ 2>/dev/null; then
16516     as_ln_s='ln -s'
16517     # ... but there are two gotchas:
16518     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16519     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16520     # In both cases, we have to default to `cp -pR'.
16521     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16522       as_ln_s='cp -pR'
16523   elif ln conf$$.file conf$$ 2>/dev/null; then
16524     as_ln_s=ln
16525   else
16526     as_ln_s='cp -pR'
16527   fi
16528 else
16529   as_ln_s='cp -pR'
16530 fi
16531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16532 rmdir conf$$.dir 2>/dev/null
16533
16534
16535 # as_fn_mkdir_p
16536 # -------------
16537 # Create "$as_dir" as a directory, including parents if necessary.
16538 as_fn_mkdir_p ()
16539 {
16540
16541   case $as_dir in #(
16542   -*) as_dir=./$as_dir;;
16543   esac
16544   test -d "$as_dir" || eval $as_mkdir_p || {
16545     as_dirs=
16546     while :; do
16547       case $as_dir in #(
16548       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16549       *) as_qdir=$as_dir;;
16550       esac
16551       as_dirs="'$as_qdir' $as_dirs"
16552       as_dir=`$as_dirname -- "$as_dir" ||
16553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16554          X"$as_dir" : 'X\(//\)[^/]' \| \
16555          X"$as_dir" : 'X\(//\)$' \| \
16556          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16557 printf "%s\n" X"$as_dir" |
16558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16559             s//\1/
16560             q
16561           }
16562           /^X\(\/\/\)[^/].*/{
16563             s//\1/
16564             q
16565           }
16566           /^X\(\/\/\)$/{
16567             s//\1/
16568             q
16569           }
16570           /^X\(\/\).*/{
16571             s//\1/
16572             q
16573           }
16574           s/.*/./; q'`
16575       test -d "$as_dir" && break
16576     done
16577     test -z "$as_dirs" || eval "mkdir $as_dirs"
16578   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16579
16580
16581 } # as_fn_mkdir_p
16582 if mkdir -p . 2>/dev/null; then
16583   as_mkdir_p='mkdir -p "$as_dir"'
16584 else
16585   test -d ./-p && rmdir ./-p
16586   as_mkdir_p=false
16587 fi
16588
16589
16590 # as_fn_executable_p FILE
16591 # -----------------------
16592 # Test if FILE is an executable regular file.
16593 as_fn_executable_p ()
16594 {
16595   test -f "$1" && test -x "$1"
16596 } # as_fn_executable_p
16597 as_test_x='test -x'
16598 as_executable_p=as_fn_executable_p
16599
16600 # Sed expression to map a string onto a valid CPP name.
16601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16602
16603 # Sed expression to map a string onto a valid variable name.
16604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16605
16606
16607 exec 6>&1
16608 ## ----------------------------------- ##
16609 ## Main body of $CONFIG_STATUS script. ##
16610 ## ----------------------------------- ##
16611 _ASEOF
16612 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16613
16614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16615 # Save the log message, to keep $0 and so on meaningful, and to
16616 # report actual input values of CONFIG_FILES etc. instead of their
16617 # values after options handling.
16618 ac_log="
16619 This file was extended by $as_me, which was
16620 generated by GNU Autoconf 2.71.  Invocation command line was
16621
16622   CONFIG_FILES    = $CONFIG_FILES
16623   CONFIG_HEADERS  = $CONFIG_HEADERS
16624   CONFIG_LINKS    = $CONFIG_LINKS
16625   CONFIG_COMMANDS = $CONFIG_COMMANDS
16626   $ $0 $@
16627
16628 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16629 "
16630
16631 _ACEOF
16632
16633 case $ac_config_files in *"
16634 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16635 esac
16636
16637 case $ac_config_headers in *"
16638 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16639 esac
16640
16641
16642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16643 # Files that config.status was made for.
16644 config_files="$ac_config_files"
16645 config_headers="$ac_config_headers"
16646 config_commands="$ac_config_commands"
16647
16648 _ACEOF
16649
16650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16651 ac_cs_usage="\
16652 \`$as_me' instantiates files and other configuration actions
16653 from templates according to the current configuration.  Unless the files
16654 and actions are specified as TAGs, all are instantiated by default.
16655
16656 Usage: $0 [OPTION]... [TAG]...
16657
16658   -h, --help       print this help, then exit
16659   -V, --version    print version number and configuration settings, then exit
16660       --config     print configuration, then exit
16661   -q, --quiet, --silent
16662                    do not print progress messages
16663   -d, --debug      don't remove temporary files
16664       --recheck    update $as_me by reconfiguring in the same conditions
16665       --file=FILE[:TEMPLATE]
16666                    instantiate the configuration file FILE
16667       --header=FILE[:TEMPLATE]
16668                    instantiate the configuration header FILE
16669
16670 Configuration files:
16671 $config_files
16672
16673 Configuration headers:
16674 $config_headers
16675
16676 Configuration commands:
16677 $config_commands
16678
16679 Report bugs to the package provider."
16680
16681 _ACEOF
16682 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16683 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 ac_cs_config='$ac_cs_config_escaped'
16686 ac_cs_version="\\
16687 config.status
16688 configured by $0, generated by GNU Autoconf 2.71,
16689   with options \\"\$ac_cs_config\\"
16690
16691 Copyright (C) 2021 Free Software Foundation, Inc.
16692 This config.status script is free software; the Free Software Foundation
16693 gives unlimited permission to copy, distribute and modify it."
16694
16695 ac_pwd='$ac_pwd'
16696 srcdir='$srcdir'
16697 INSTALL='$INSTALL'
16698 MKDIR_P='$MKDIR_P'
16699 AWK='$AWK'
16700 test -n "\$AWK" || AWK=awk
16701 _ACEOF
16702
16703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16704 # The default lists apply if the user does not specify any file.
16705 ac_need_defaults=:
16706 while test $# != 0
16707 do
16708   case $1 in
16709   --*=?*)
16710     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16711     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16712     ac_shift=:
16713     ;;
16714   --*=)
16715     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16716     ac_optarg=
16717     ac_shift=:
16718     ;;
16719   *)
16720     ac_option=$1
16721     ac_optarg=$2
16722     ac_shift=shift
16723     ;;
16724   esac
16725
16726   case $ac_option in
16727   # Handling of the options.
16728   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16729     ac_cs_recheck=: ;;
16730   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16731     printf "%s\n" "$ac_cs_version"; exit ;;
16732   --config | --confi | --conf | --con | --co | --c )
16733     printf "%s\n" "$ac_cs_config"; exit ;;
16734   --debug | --debu | --deb | --de | --d | -d )
16735     debug=: ;;
16736   --file | --fil | --fi | --f )
16737     $ac_shift
16738     case $ac_optarg in
16739     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16740     '') as_fn_error $? "missing file argument" ;;
16741     esac
16742     as_fn_append CONFIG_FILES " '$ac_optarg'"
16743     ac_need_defaults=false;;
16744   --header | --heade | --head | --hea )
16745     $ac_shift
16746     case $ac_optarg in
16747     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16748     esac
16749     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16750     ac_need_defaults=false;;
16751   --he | --h)
16752     # Conflict between --help and --header
16753     as_fn_error $? "ambiguous option: \`$1'
16754 Try \`$0 --help' for more information.";;
16755   --help | --hel | -h )
16756     printf "%s\n" "$ac_cs_usage"; exit ;;
16757   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16758   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16759     ac_cs_silent=: ;;
16760
16761   # This is an error.
16762   -*) as_fn_error $? "unrecognized option: \`$1'
16763 Try \`$0 --help' for more information." ;;
16764
16765   *) as_fn_append ac_config_targets " $1"
16766      ac_need_defaults=false ;;
16767
16768   esac
16769   shift
16770 done
16771
16772 ac_configure_extra_args=
16773
16774 if $ac_cs_silent; then
16775   exec 6>/dev/null
16776   ac_configure_extra_args="$ac_configure_extra_args --silent"
16777 fi
16778
16779 _ACEOF
16780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16781 if \$ac_cs_recheck; then
16782   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16783   shift
16784   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16785   CONFIG_SHELL='$SHELL'
16786   export CONFIG_SHELL
16787   exec "\$@"
16788 fi
16789
16790 _ACEOF
16791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16792 exec 5>>config.log
16793 {
16794   echo
16795   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16796 ## Running $as_me. ##
16797 _ASBOX
16798   printf "%s\n" "$ac_log"
16799 } >&5
16800
16801 _ACEOF
16802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16803 #
16804 # INIT-COMMANDS
16805 #
16806 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16807     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16808     OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16809     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16810     LINGUAS="${LINGUAS-%UNSET%}"
16811
16812
16813 _ACEOF
16814
16815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16816
16817 # Handling of arguments.
16818 for ac_config_target in $ac_config_targets
16819 do
16820   case $ac_config_target in
16821     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16822     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16823     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16824
16825   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16826   esac
16827 done
16828
16829
16830 # If the user did not use the arguments to specify the items to instantiate,
16831 # then the envvar interface is used.  Set only those that are not.
16832 # We use the long form for the default assignment because of an extremely
16833 # bizarre bug on SunOS 4.1.3.
16834 if $ac_need_defaults; then
16835   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16836   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16837   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16838 fi
16839
16840 # Have a temporary directory for convenience.  Make it in the build tree
16841 # simply because there is no reason against having it here, and in addition,
16842 # creating and moving files from /tmp can sometimes cause problems.
16843 # Hook for its removal unless debugging.
16844 # Note that there is a small window in which the directory will not be cleaned:
16845 # after its creation but before its name has been assigned to `$tmp'.
16846 $debug ||
16847 {
16848   tmp= ac_tmp=
16849   trap 'exit_status=$?
16850   : "${ac_tmp:=$tmp}"
16851   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16852 ' 0
16853   trap 'as_fn_exit 1' 1 2 13 15
16854 }
16855 # Create a (secure) tmp directory for tmp files.
16856
16857 {
16858   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16859   test -d "$tmp"
16860 }  ||
16861 {
16862   tmp=./conf$$-$RANDOM
16863   (umask 077 && mkdir "$tmp")
16864 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16865 ac_tmp=$tmp
16866
16867 # Set up the scripts for CONFIG_FILES section.
16868 # No need to generate them if there are no CONFIG_FILES.
16869 # This happens for instance with `./config.status config.h'.
16870 if test -n "$CONFIG_FILES"; then
16871
16872 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16873   ac_cs_awk_getline=:
16874   ac_cs_awk_pipe_init=
16875   ac_cs_awk_read_file='
16876       while ((getline aline < (F[key])) > 0)
16877         print(aline)
16878       close(F[key])'
16879   ac_cs_awk_pipe_fini=
16880 else
16881   ac_cs_awk_getline=false
16882   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16883   ac_cs_awk_read_file='
16884       print "|#_!!_#|"
16885       print "cat " F[key] " &&"
16886       '$ac_cs_awk_pipe_init
16887   # The final `:' finishes the AND list.
16888   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16889 fi
16890 ac_cr=`echo X | tr X '\015'`
16891 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16892 # But we know of no other shell where ac_cr would be empty at this
16893 # point, so we can use a bashism as a fallback.
16894 if test "x$ac_cr" = x; then
16895   eval ac_cr=\$\'\\r\'
16896 fi
16897 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16898 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16899   ac_cs_awk_cr='\\r'
16900 else
16901   ac_cs_awk_cr=$ac_cr
16902 fi
16903
16904 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16905 _ACEOF
16906
16907 # Create commands to substitute file output variables.
16908 {
16909   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16910   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16911   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16912   echo "_ACAWK" &&
16913   echo "_ACEOF"
16914 } >conf$$files.sh &&
16915 . ./conf$$files.sh ||
16916   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16917 rm -f conf$$files.sh
16918
16919 {
16920   echo "cat >conf$$subs.awk <<_ACEOF" &&
16921   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16922   echo "_ACEOF"
16923 } >conf$$subs.sh ||
16924   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16925 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16926 ac_delim='%!_!# '
16927 for ac_last_try in false false false false false :; do
16928   . ./conf$$subs.sh ||
16929     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16930
16931   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16932   if test $ac_delim_n = $ac_delim_num; then
16933     break
16934   elif $ac_last_try; then
16935     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16936   else
16937     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16938   fi
16939 done
16940 rm -f conf$$subs.sh
16941
16942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16943 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16944 _ACEOF
16945 sed -n '
16946 h
16947 s/^/S["/; s/!.*/"]=/
16948 p
16949 g
16950 s/^[^!]*!//
16951 :repl
16952 t repl
16953 s/'"$ac_delim"'$//
16954 t delim
16955 :nl
16956 h
16957 s/\(.\{148\}\)..*/\1/
16958 t more1
16959 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16960 p
16961 n
16962 b repl
16963 :more1
16964 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16965 p
16966 g
16967 s/.\{148\}//
16968 t nl
16969 :delim
16970 h
16971 s/\(.\{148\}\)..*/\1/
16972 t more2
16973 s/["\\]/\\&/g; s/^/"/; s/$/"/
16974 p
16975 b
16976 :more2
16977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16978 p
16979 g
16980 s/.\{148\}//
16981 t delim
16982 ' <conf$$subs.awk | sed '
16983 /^[^""]/{
16984   N
16985   s/\n//
16986 }
16987 ' >>$CONFIG_STATUS || ac_write_fail=1
16988 rm -f conf$$subs.awk
16989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16990 _ACAWK
16991 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16992   for (key in S) S_is_set[key] = 1
16993   FS = "\a"
16994   \$ac_cs_awk_pipe_init
16995 }
16996 {
16997   line = $ 0
16998   nfields = split(line, field, "@")
16999   substed = 0
17000   len = length(field[1])
17001   for (i = 2; i < nfields; i++) {
17002     key = field[i]
17003     keylen = length(key)
17004     if (S_is_set[key]) {
17005       value = S[key]
17006       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17007       len += length(value) + length(field[++i])
17008       substed = 1
17009     } else
17010       len += 1 + keylen
17011   }
17012   if (nfields == 3 && !substed) {
17013     key = field[2]
17014     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
17015       \$ac_cs_awk_read_file
17016       next
17017     }
17018   }
17019   print line
17020 }
17021 \$ac_cs_awk_pipe_fini
17022 _ACAWK
17023 _ACEOF
17024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17025 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17026   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17027 else
17028   cat
17029 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17030   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17031 _ACEOF
17032
17033 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17034 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17035 # trailing colons and then remove the whole line if VPATH becomes empty
17036 # (actually we leave an empty line to preserve line numbers).
17037 if test "x$srcdir" = x.; then
17038   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17039 h
17040 s///
17041 s/^/:/
17042 s/[      ]*$/:/
17043 s/:\$(srcdir):/:/g
17044 s/:\${srcdir}:/:/g
17045 s/:@srcdir@:/:/g
17046 s/^:*//
17047 s/:*$//
17048 x
17049 s/\(=[   ]*\).*/\1/
17050 G
17051 s/\n//
17052 s/^[^=]*=[       ]*$//
17053 }'
17054 fi
17055
17056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17057 fi # test -n "$CONFIG_FILES"
17058
17059 # Set up the scripts for CONFIG_HEADERS section.
17060 # No need to generate them if there are no CONFIG_HEADERS.
17061 # This happens for instance with `./config.status Makefile'.
17062 if test -n "$CONFIG_HEADERS"; then
17063 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17064 BEGIN {
17065 _ACEOF
17066
17067 # Transform confdefs.h into an awk script `defines.awk', embedded as
17068 # here-document in config.status, that substitutes the proper values into
17069 # config.h.in to produce config.h.
17070
17071 # Create a delimiter string that does not exist in confdefs.h, to ease
17072 # handling of long lines.
17073 ac_delim='%!_!# '
17074 for ac_last_try in false false :; do
17075   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17076   if test -z "$ac_tt"; then
17077     break
17078   elif $ac_last_try; then
17079     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17080   else
17081     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17082   fi
17083 done
17084
17085 # For the awk script, D is an array of macro values keyed by name,
17086 # likewise P contains macro parameters if any.  Preserve backslash
17087 # newline sequences.
17088
17089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17090 sed -n '
17091 s/.\{148\}/&'"$ac_delim"'/g
17092 t rset
17093 :rset
17094 s/^[     ]*#[    ]*define[       ][      ]*/ /
17095 t def
17096 d
17097 :def
17098 s/\\$//
17099 t bsnl
17100 s/["\\]/\\&/g
17101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17102 D["\1"]=" \3"/p
17103 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17104 d
17105 :bsnl
17106 s/["\\]/\\&/g
17107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17108 D["\1"]=" \3\\\\\\n"\\/p
17109 t cont
17110 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17111 t cont
17112 d
17113 :cont
17114 n
17115 s/.\{148\}/&'"$ac_delim"'/g
17116 t clear
17117 :clear
17118 s/\\$//
17119 t bsnlc
17120 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17121 d
17122 :bsnlc
17123 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17124 b cont
17125 ' <confdefs.h | sed '
17126 s/'"$ac_delim"'/"\\\
17127 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17128
17129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17130   for (key in D) D_is_set[key] = 1
17131   FS = "\a"
17132 }
17133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17134   line = \$ 0
17135   split(line, arg, " ")
17136   if (arg[1] == "#") {
17137     defundef = arg[2]
17138     mac1 = arg[3]
17139   } else {
17140     defundef = substr(arg[1], 2)
17141     mac1 = arg[2]
17142   }
17143   split(mac1, mac2, "(") #)
17144   macro = mac2[1]
17145   prefix = substr(line, 1, index(line, defundef) - 1)
17146   if (D_is_set[macro]) {
17147     # Preserve the white space surrounding the "#".
17148     print prefix "define", macro P[macro] D[macro]
17149     next
17150   } else {
17151     # Replace #undef with comments.  This is necessary, for example,
17152     # in the case of _POSIX_SOURCE, which is predefined and required
17153     # on some systems where configure will not decide to define it.
17154     if (defundef == "undef") {
17155       print "/*", prefix defundef, macro, "*/"
17156       next
17157     }
17158   }
17159 }
17160 { print }
17161 _ACAWK
17162 _ACEOF
17163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17164   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17165 fi # test -n "$CONFIG_HEADERS"
17166
17167
17168 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17169 shift
17170 for ac_tag
17171 do
17172   case $ac_tag in
17173   :[FHLC]) ac_mode=$ac_tag; continue;;
17174   esac
17175   case $ac_mode$ac_tag in
17176   :[FHL]*:*);;
17177   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17178   :[FH]-) ac_tag=-:-;;
17179   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17180   esac
17181   ac_save_IFS=$IFS
17182   IFS=:
17183   set x $ac_tag
17184   IFS=$ac_save_IFS
17185   shift
17186   ac_file=$1
17187   shift
17188
17189   case $ac_mode in
17190   :L) ac_source=$1;;
17191   :[FH])
17192     ac_file_inputs=
17193     for ac_f
17194     do
17195       case $ac_f in
17196       -) ac_f="$ac_tmp/stdin";;
17197       *) # Look for the file first in the build tree, then in the source tree
17198          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17199          # because $ac_f cannot contain `:'.
17200          test -f "$ac_f" ||
17201            case $ac_f in
17202            [\\/$]*) false;;
17203            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17204            esac ||
17205            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17206       esac
17207       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17208       as_fn_append ac_file_inputs " '$ac_f'"
17209     done
17210
17211     # Let's still pretend it is `configure' which instantiates (i.e., don't
17212     # use $as_me), people would be surprised to read:
17213     #    /* config.h.  Generated by config.status.  */
17214     configure_input='Generated from '`
17215           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17216         `' by configure.'
17217     if test x"$ac_file" != x-; then
17218       configure_input="$ac_file.  $configure_input"
17219       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17220 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17221     fi
17222     # Neutralize special characters interpreted by sed in replacement strings.
17223     case $configure_input in #(
17224     *\&* | *\|* | *\\* )
17225        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17226        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17227     *) ac_sed_conf_input=$configure_input;;
17228     esac
17229
17230     case $ac_tag in
17231     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17232       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17233     esac
17234     ;;
17235   esac
17236
17237   ac_dir=`$as_dirname -- "$ac_file" ||
17238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239          X"$ac_file" : 'X\(//\)[^/]' \| \
17240          X"$ac_file" : 'X\(//\)$' \| \
17241          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17242 printf "%s\n" X"$ac_file" |
17243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17244             s//\1/
17245             q
17246           }
17247           /^X\(\/\/\)[^/].*/{
17248             s//\1/
17249             q
17250           }
17251           /^X\(\/\/\)$/{
17252             s//\1/
17253             q
17254           }
17255           /^X\(\/\).*/{
17256             s//\1/
17257             q
17258           }
17259           s/.*/./; q'`
17260   as_dir="$ac_dir"; as_fn_mkdir_p
17261   ac_builddir=.
17262
17263 case "$ac_dir" in
17264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17265 *)
17266   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17267   # A ".." for each directory in $ac_dir_suffix.
17268   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17269   case $ac_top_builddir_sub in
17270   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17271   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17272   esac ;;
17273 esac
17274 ac_abs_top_builddir=$ac_pwd
17275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17276 # for backward compatibility:
17277 ac_top_builddir=$ac_top_build_prefix
17278
17279 case $srcdir in
17280   .)  # We are building in place.
17281     ac_srcdir=.
17282     ac_top_srcdir=$ac_top_builddir_sub
17283     ac_abs_top_srcdir=$ac_pwd ;;
17284   [\\/]* | ?:[\\/]* )  # Absolute name.
17285     ac_srcdir=$srcdir$ac_dir_suffix;
17286     ac_top_srcdir=$srcdir
17287     ac_abs_top_srcdir=$srcdir ;;
17288   *) # Relative name.
17289     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17290     ac_top_srcdir=$ac_top_build_prefix$srcdir
17291     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17292 esac
17293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17294
17295
17296   case $ac_mode in
17297   :F)
17298   #
17299   # CONFIG_FILE
17300   #
17301
17302   case $INSTALL in
17303   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17304   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17305   esac
17306   ac_MKDIR_P=$MKDIR_P
17307   case $MKDIR_P in
17308   [\\/$]* | ?:[\\/]* ) ;;
17309   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17310   esac
17311 _ACEOF
17312
17313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17314 # If the template does not know about datarootdir, expand it.
17315 # FIXME: This hack should be removed a few years after 2.60.
17316 ac_datarootdir_hack=; ac_datarootdir_seen=
17317 ac_sed_dataroot='
17318 /datarootdir/ {
17319   p
17320   q
17321 }
17322 /@datadir@/p
17323 /@docdir@/p
17324 /@infodir@/p
17325 /@localedir@/p
17326 /@mandir@/p'
17327 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17328 *datarootdir*) ac_datarootdir_seen=yes;;
17329 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17330   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17331 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17332 _ACEOF
17333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17334   ac_datarootdir_hack='
17335   s&@datadir@&$datadir&g
17336   s&@docdir@&$docdir&g
17337   s&@infodir@&$infodir&g
17338   s&@localedir@&$localedir&g
17339   s&@mandir@&$mandir&g
17340   s&\\\${datarootdir}&$datarootdir&g' ;;
17341 esac
17342 _ACEOF
17343
17344 # Neutralize VPATH when `$srcdir' = `.'.
17345 # Shell code in configure.ac might set extrasub.
17346 # FIXME: do we really want to maintain this feature?
17347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17348 ac_sed_extra="$ac_vpsub
17349 $extrasub
17350 _ACEOF
17351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17352 :t
17353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17354 s|@configure_input@|$ac_sed_conf_input|;t t
17355 s&@top_builddir@&$ac_top_builddir_sub&;t t
17356 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17357 s&@srcdir@&$ac_srcdir&;t t
17358 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17359 s&@top_srcdir@&$ac_top_srcdir&;t t
17360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17361 s&@builddir@&$ac_builddir&;t t
17362 s&@abs_builddir@&$ac_abs_builddir&;t t
17363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17364 s&@INSTALL@&$ac_INSTALL&;t t
17365 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17366 $ac_datarootdir_hack
17367 "
17368 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17369 if $ac_cs_awk_getline; then
17370   $AWK -f "$ac_tmp/subs.awk"
17371 else
17372   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17373 fi \
17374   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17375
17376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17377   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17378   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17379       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17381 which seems to be undefined.  Please make sure it is defined" >&5
17382 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17383 which seems to be undefined.  Please make sure it is defined" >&2;}
17384
17385   rm -f "$ac_tmp/stdin"
17386   case $ac_file in
17387   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17388   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17389   esac \
17390   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17391  ;;
17392   :H)
17393   #
17394   # CONFIG_HEADER
17395   #
17396   if test x"$ac_file" != x-; then
17397     {
17398       printf "%s\n" "/* $configure_input  */" >&1 \
17399       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17400     } >"$ac_tmp/config.h" \
17401       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17402     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17403       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17404 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17405     else
17406       rm -f "$ac_file"
17407       mv "$ac_tmp/config.h" "$ac_file" \
17408         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17409     fi
17410   else
17411     printf "%s\n" "/* $configure_input  */" >&1 \
17412       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17413       || as_fn_error $? "could not create -" "$LINENO" 5
17414   fi
17415  ;;
17416
17417   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17418 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17419  ;;
17420   esac
17421
17422
17423   case $ac_file$ac_mode in
17424     "po-directories":C)
17425     for ac_file in $CONFIG_FILES; do
17426       # Support "outfile[:infile[:infile...]]"
17427       case "$ac_file" in
17428         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17429       esac
17430       # PO directories have a Makefile.in generated from Makefile.in.in.
17431       case "$ac_file" in */Makefile.in)
17432         # Adjust a relative srcdir.
17433         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17434         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17435         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17436         # In autoconf-2.13 it is called $ac_given_srcdir.
17437         # In autoconf-2.50 it is called $srcdir.
17438         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17439         case "$ac_given_srcdir" in
17440           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17441           /*) top_srcdir="$ac_given_srcdir" ;;
17442           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17443         esac
17444         # Treat a directory as a PO directory if and only if it has a
17445         # POTFILES.in file. This allows packages to have multiple PO
17446         # directories under different names or in different locations.
17447         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17448           rm -f "$ac_dir/POTFILES"
17449           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17450           gt_tab=`printf '\t'`
17451           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"
17452           POMAKEFILEDEPS="POTFILES.in"
17453           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17454           # on $ac_dir but don't depend on user-specified configuration
17455           # parameters.
17456           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17457             # The LINGUAS file contains the set of available languages.
17458             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17459               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17460             fi
17461             ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17462             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17463           else
17464             # The set of available languages was given in configure.in.
17465             ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17466           fi
17467           # Compute POFILES
17468           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17469           # Compute UPDATEPOFILES
17470           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17471           # Compute DUMMYPOFILES
17472           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17473           # Compute GMOFILES
17474           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17475           case "$ac_given_srcdir" in
17476             .) srcdirpre= ;;
17477             *) srcdirpre='$(srcdir)/' ;;
17478           esac
17479           POFILES=
17480           UPDATEPOFILES=
17481           DUMMYPOFILES=
17482           GMOFILES=
17483           for lang in $ALL_LINGUAS; do
17484             POFILES="$POFILES $srcdirpre$lang.po"
17485             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17486             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17487             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17488           done
17489           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17490           # environment variable.
17491           INST_LINGUAS=
17492           if test -n "$ALL_LINGUAS"; then
17493             for presentlang in $ALL_LINGUAS; do
17494               useit=no
17495               if test "%UNSET%" != "$LINGUAS"; then
17496                 desiredlanguages="$LINGUAS"
17497               else
17498                 desiredlanguages="$ALL_LINGUAS"
17499               fi
17500               for desiredlang in $desiredlanguages; do
17501                 # Use the presentlang catalog if desiredlang is
17502                 #   a. equal to presentlang, or
17503                 #   b. a variant of presentlang (because in this case,
17504                 #      presentlang can be used as a fallback for messages
17505                 #      which are not translated in the desiredlang catalog).
17506                 case "$desiredlang" in
17507                   "$presentlang"*) useit=yes;;
17508                 esac
17509               done
17510               if test $useit = yes; then
17511                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17512               fi
17513             done
17514           fi
17515           CATALOGS=
17516           if test -n "$INST_LINGUAS"; then
17517             for lang in $INST_LINGUAS; do
17518               CATALOGS="$CATALOGS $lang.gmo"
17519             done
17520           fi
17521           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17522           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"
17523           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17524             if test -f "$f"; then
17525               case "$f" in
17526                 *.orig | *.bak | *~) ;;
17527                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17528               esac
17529             fi
17530           done
17531         fi
17532         ;;
17533       esac
17534     done ;;
17535
17536   esac
17537 done # for ac_tag
17538
17539
17540 as_fn_exit 0
17541 _ACEOF
17542 ac_clean_files=$ac_clean_files_save
17543
17544 test $ac_write_fail = 0 ||
17545   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17546
17547
17548 # configure is writing to config.log, and then calls config.status.
17549 # config.status does its own redirection, appending to config.log.
17550 # Unfortunately, on DOS this fails, as config.log is still kept open
17551 # by configure, so config.status won't be able to write to it; its
17552 # output is simply discarded.  So we exec the FD to /dev/null,
17553 # effectively closing config.log, so it can be properly (re)opened and
17554 # appended to by config.status.  When coming back to configure, we
17555 # need to make the FD available again.
17556 if test "$no_create" != yes; then
17557   ac_cs_success=:
17558   ac_config_status_args=
17559   test "$silent" = yes &&
17560     ac_config_status_args="$ac_config_status_args --quiet"
17561   exec 5>/dev/null
17562   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17563   exec 5>>config.log
17564   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17565   # would make configure fail if this is the last instruction.
17566   $ac_cs_success || as_fn_exit 1
17567 fi
17568 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17569   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17570 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17571 fi
17572
17573 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
17574