Whamcloud - gitweb
LU-17310 tests: make m_assume_storage_prezeroed more robust
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else $as_nop
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" ""        $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # Find who we are.  Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88   *[\\/]* ) as_myself=$0 ;;
89   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92   IFS=$as_save_IFS
93   case $as_dir in #(((
94     '') as_dir=./ ;;
95     */) ;;
96     *) as_dir=$as_dir/ ;;
97   esac
98     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116   # into an infinite loop, continuously re-executing ourselves.
117   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118     _as_can_reexec=no; export _as_can_reexec;
119     # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127   *v*x* | *x*v* ) as_opts=-vx ;;
128   *v* ) as_opts=-v ;;
129   *x* ) as_opts=-x ;;
130   * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137   fi
138   # We don't want this to propagate to other subprocesses.
139           { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144   emulate sh
145   NULLCMD=:
146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147   # is contrary to our usage.  Disable this feature.
148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
149   setopt NO_GLOB_SUBST
150 else \$as_nop
151   case \`(set -o) 2>/dev/null\` in #(
152   *posix*) :
153     set -o posix ;; #(
154   *) :
155      ;;
156 esac
157 fi
158 "
159   as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174   exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185   if (eval "$as_required") 2>/dev/null
186 then :
187   as_have_required=yes
188 else $as_nop
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199   IFS=$as_save_IFS
200   case $as_dir in #(((
201     '') as_dir=./ ;;
202     */) ;;
203     *) as_dir=$as_dir/ ;;
204   esac
205   as_found=:
206   case $as_dir in #(
207          /*)
208            for as_base in sh bash ksh sh5; do
209              # Try only shells that exist, to save several forks.
210              as_shell=$as_dir$as_base
211              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214   CONFIG_SHELL=$as_shell as_have_required=yes
215                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217   break 2
218 fi
219 fi
220            done;;
221        esac
222   as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232   CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237       if test "x$CONFIG_SHELL" != x
238 then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno
261 then :
262   printf "%s\n" "$0: This script requires a shell more modern than all"
263   printf "%s\n" "$0: the shells that I found on your system."
264   if test ${ZSH_VERSION+y} ; then
265     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267   else
268     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272   fi
273   exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291   { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301   return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309   set +e
310   as_fn_set_status $1
311   exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318   return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328   case $as_dir in #(
329   -*) as_dir=./$as_dir;;
330   esac
331   test -d "$as_dir" || eval $as_mkdir_p || {
332     as_dirs=
333     while :; do
334       case $as_dir in #(
335       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336       *) as_qdir=$as_dir;;
337       esac
338       as_dirs="'$as_qdir' $as_dirs"
339       as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341          X"$as_dir" : 'X\(//\)[^/]' \| \
342          X"$as_dir" : 'X\(//\)$' \| \
343          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346             s//\1/
347             q
348           }
349           /^X\(\/\/\)[^/].*/{
350             s//\1/
351             q
352           }
353           /^X\(\/\/\)$/{
354             s//\1/
355             q
356           }
357           /^X\(\/\).*/{
358             s//\1/
359             q
360           }
361           s/.*/./; q'`
362       test -d "$as_dir" && break
363     done
364     test -z "$as_dirs" || eval "mkdir $as_dirs"
365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375   test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else $as_nop
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else $as_nop
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419   return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430   as_status=$1; test $as_status -eq 0 && as_status=1
431   if test "$4"; then
432     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434   fi
435   printf "%s\n" "$as_me: error: $2" >&2
436   as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440    test "X`expr 00001 : '.*\(...\)'`" = X001; then
441   as_expr=expr
442 else
443   as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447   as_basename=basename
448 else
449   as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453   as_dirname=dirname
454 else
455   as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460          X"$0" : 'X\(//\)$' \| \
461          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463     sed '/^.*\/\([^/][^/]*\)\/*$/{
464             s//\1/
465             q
466           }
467           /^X\/\(\/\/\)$/{
468             s//\1/
469             q
470           }
471           /^X\/\(\/\).*/{
472             s//\1/
473             q
474           }
475           s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485   as_lineno_1=$LINENO as_lineno_1a=$LINENO
486   as_lineno_2=$LINENO as_lineno_2a=$LINENO
487   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
490   sed -n '
491     p
492     /[$]LINENO/=
493   ' <$as_myself |
494     sed '
495       s/[$]LINENO.*/&-/
496       t lineno
497       b
498       :lineno
499       N
500       :loop
501       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502       t loop
503       s/-\n.*//
504     ' >$as_me.lineno &&
505   chmod +x "$as_me.lineno" ||
506     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509   # already done that, so ensure we don't try to do so again and fall
510   # in an infinite loop.  This has already happened in practice.
511   _as_can_reexec=no; export _as_can_reexec
512   # Don't try to exec as it changes $[0], causing all sort of problems
513   # (the dirname of $[0] is not the place where we might find the
514   # original and so on.  Autoconf is especially sensitive to this).
515   . "./$as_me.lineno"
516   # Exit status is that of the last command.
517   exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527   case `echo 'xy\c'` in
528   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
529   xy)  ECHO_C='\c';;
530   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
531        ECHO_T=' ';;
532   esac;;
533 *)
534   ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n.  New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546   rm -f conf$$.dir/conf$$.file
547 else
548   rm -f conf$$.dir
549   mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552   if ln -s conf$$.file conf$$ 2>/dev/null; then
553     as_ln_s='ln -s'
554     # ... but there are two gotchas:
555     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557     # In both cases, we have to default to `cp -pR'.
558     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559       as_ln_s='cp -pR'
560   elif ln conf$$.file conf$$ 2>/dev/null; then
561     as_ln_s=ln
562   else
563     as_ln_s='cp -pR'
564   fi
565 else
566   as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572   as_mkdir_p='mkdir -p "$as_dir"'
573 else
574   test -d ./-p && rmdir ./-p
575   as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 ac_unique_file="version.h"
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stddef.h>
620 #ifdef HAVE_STDIO_H
621 # include <stdio.h>
622 #endif
623 #ifdef HAVE_STDLIB_H
624 # include <stdlib.h>
625 #endif
626 #ifdef HAVE_STRING_H
627 # include <string.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
637 #endif
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
640 #endif
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
643 #endif
644 #ifdef HAVE_UNISTD_H
645 # include <unistd.h>
646 #endif"
647
648 ac_header_c_list=
649 gt_needs=
650 ac_func_c_list=
651 ac_subst_vars='LTLIBOBJS
652 LIBOBJS
653 OS_IO_FILE
654 systemd_system_unit_dir
655 have_systemd
656 systemd_LIBS
657 systemd_CFLAGS
658 crond_dir
659 have_crond
660 pkg_udev_rules_dir
661 have_udev
662 udev_LIBS
663 udev_CFLAGS
664 LDFLAGS_SHLIB
665 CFLAGS_STLIB
666 CFLAGS_SHLIB
667 BUILD_LDFLAGS
668 BUILD_CFLAGS
669 INCLUDES
670 DO_TEST_SUITE
671 LDFLAGS_STATIC
672 root_sysconfdir
673 root_libdir
674 root_sbindir
675 root_bindir
676 root_prefix
677 E2SCRUB_CMT
678 UNIX_CMT
679 CYGWIN_CMT
680 LINUX_CMT
681 FUZZING_CMT
682 fuzzer_ldflags
683 fuzzer_cflags
684 have_fuzzer
685 ac_ct_CXX
686 CXXFLAGS
687 CXX
688 threadsan_ldflags
689 threadsan_cflags
690 have_threadsan
691 addrsan_ldflags
692 addrsan_cflags
693 have_addrsan
694 ubsan_ldflags
695 ubsan_cflags
696 have_ubsan
697 lto_ldflags
698 lto_cflags
699 have_lto
700 gcc_ranlib
701 gcc_ar
702 UNI_DIFF_OPTS
703 SEM_INIT_LIB
704 FUSE_CMT
705 FUSE_LIB
706 CLOCK_GETTIME_LIB
707 MAGIC_LIB
708 SOCKET_LIB
709 SIZEOF_TIME_T
710 SIZEOF_OFF_T
711 SIZEOF_LONG_LONG
712 SIZEOF_LONG
713 SIZEOF_INT
714 SIZEOF_SHORT
715 DD
716 BUILD_CC
717 MAKEINFO
718 STRIP
719 RANLIB
720 AR
721 LDCONFIG
722 PERL
723 AWK
724 CHMOD
725 RM
726 CP
727 MV
728 LN_S
729 mkdir_p
730 LN
731 ifNotGNUmake
732 ifGNUmake
733 BINARY_TYPE
734 POSUB
735 LTLIBINTL
736 LIBINTL
737 INTLLIBS
738 LTLIBICONV
739 LIBICONV
740 INTL_MACOSX_LIBS
741 XGETTEXT_EXTRA_OPTIONS
742 MSGMERGE_FOR_MSGFMT_OPTION
743 MSGMERGE
744 XGETTEXT_015
745 XGETTEXT
746 GMSGFMT_015
747 GMSGFMT
748 MSGFMT
749 GETTEXT_MACRO_VERSION
750 USE_NLS
751 MKDIR_P
752 INSTALL_DATA
753 INSTALL_SCRIPT
754 INSTALL_PROGRAM
755 SET_MAKE
756 VERSION
757 PACKAGE
758 GETTEXT_PACKAGE
759 TDB_MAN_COMMENT
760 TDB_CMT
761 UUIDD_CMT
762 PTHREAD_CFLAGS
763 PTHREAD_LIBS
764 PTHREAD_CXX
765 PTHREAD_CC
766 ax_pthread_config
767 EGREP
768 GREP
769 SED
770 E2INITRD_MAN
771 E2INITRD_PROG
772 FSCK_MAN
773 FSCK_PROG
774 DEFRAG_CMT
775 RESIZER_CMT
776 IMAGER_CMT
777 DEBUGFS_CMT
778 SUBSET_CMT
779 ALL_CMT
780 BLKID_CMT
781 DEPPROFILED_LIBBLKID
782 PROFILED_LIBBLKID
783 DEPSTATIC_LIBBLKID
784 STATIC_LIBBLKID
785 DEPLIBBLKID
786 LIBBLKID
787 UUID_CMT
788 DEPPROFILED_LIBUUID
789 PROFILED_LIBUUID
790 DEPSTATIC_LIBUUID
791 STATIC_LIBUUID
792 DEPLIBUUID
793 LIBUUID
794 PKG_CONFIG_LIBDIR
795 PKG_CONFIG_PATH
796 PKG_CONFIG
797 DEV_FEATURES_CMT
798 TEST_IO_CMT
799 PRIVATE_LIBS_CMT
800 LDFLAG_DYNAMIC
801 PROFILED_LIB_EXT
802 STATIC_LIB_EXT
803 LIB_EXT
804 PROFILE_CMT
805 BSDLIB_CMT
806 ELF_CMT
807 Q
808 ES
809 E
810 LINK_BUILD_FLAGS
811 SYMLINK_RELATIVE
812 LINK_INSTALL_FLAGS
813 MAINTAINER_CMT
814 CPP
815 RDYNAMIC
816 DLOPEN_LIB
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 E2FSPROGS_DATE
826 E2FSPROGS_PKGREL
827 E2FSPROGS_PKGVER
828 E2FSPROGS_VERSION
829 E2FSPROGS_DAY
830 E2FSPROGS_MONTH
831 E2FSPROGS_YEAR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 runstatedir
859 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL'
878 ac_subst_files='MCONFIG
879 MAKEFILE_ELF
880 MAKEFILE_BSDLIB
881 MAKEFILE_PROFILE
882 MAKEFILE_LIBRARY
883 ASM_TYPES_HEADER
884 PUBLIC_CONFIG_HEADER'
885 ac_user_opts='
886 enable_option_checking
887 with_diet_libc
888 with_cc
889 with_ccopts
890 with_ldopts
891 with_root_prefix
892 enable_maintainer_mode
893 enable_symlink_install
894 enable_relative_symlinks
895 enable_symlink_relative_symlinks
896 enable_symlink_build
897 enable_verbose_makecmds
898 enable_elf_shlibs
899 enable_bsd_shlibs
900 enable_profile
901 enable_gcov
902 enable_hardening
903 enable_jbd_debug
904 enable_blkid_debug
905 enable_testio_debug
906 enable_developer_features
907 enable_libuuid
908 enable_libblkid
909 enable_subset
910 enable_backtrace
911 enable_debugfs
912 enable_imager
913 enable_resizer
914 enable_defrag
915 enable_fsck
916 enable_e2initrd_helper
917 enable_tls
918 with_pthread
919 enable_uuidd
920 enable_mmp
921 enable_tdb
922 enable_bmap_stats
923 enable_bmap_stats_ops
924 enable_nls
925 with_gnu_ld
926 enable_rpath
927 with_libiconv_prefix
928 with_libintl_prefix
929 enable_fuse2fs
930 enable_lto
931 enable_ubsan
932 enable_addrsan
933 enable_threadsan
934 enable_fuzzing
935 with_multiarch
936 with_udev_rules_dir
937 with_crond_dir
938 with_systemd_unit_dir
939 enable_largefile
940 '
941       ac_precious_vars='build_alias
942 host_alias
943 target_alias
944 CC
945 CFLAGS
946 LDFLAGS
947 LIBS
948 CPPFLAGS
949 CPP
950 PKG_CONFIG
951 PKG_CONFIG_PATH
952 PKG_CONFIG_LIBDIR
953 CXX
954 CXXFLAGS
955 CCC
956 udev_CFLAGS
957 udev_LIBS
958 systemd_CFLAGS
959 systemd_LIBS'
960
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
983
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 runstatedir='${localstatedir}/run'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015   # If the previous option needs an argument, assign it.
1016   if test -n "$ac_prev"; then
1017     eval $ac_prev=\$ac_option
1018     ac_prev=
1019     continue
1020   fi
1021
1022   case $ac_option in
1023   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024   *=)   ac_optarg= ;;
1025   *)    ac_optarg=yes ;;
1026   esac
1027
1028   case $ac_dashdash$ac_option in
1029   --)
1030     ac_dashdash=yes ;;
1031
1032   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033     ac_prev=bindir ;;
1034   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035     bindir=$ac_optarg ;;
1036
1037   -build | --build | --buil | --bui | --bu)
1038     ac_prev=build_alias ;;
1039   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040     build_alias=$ac_optarg ;;
1041
1042   -cache-file | --cache-file | --cache-fil | --cache-fi \
1043   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044     ac_prev=cache_file ;;
1045   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047     cache_file=$ac_optarg ;;
1048
1049   --config-cache | -C)
1050     cache_file=config.cache ;;
1051
1052   -datadir | --datadir | --datadi | --datad)
1053     ac_prev=datadir ;;
1054   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055     datadir=$ac_optarg ;;
1056
1057   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058   | --dataroo | --dataro | --datar)
1059     ac_prev=datarootdir ;;
1060   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062     datarootdir=$ac_optarg ;;
1063
1064   -disable-* | --disable-*)
1065     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1069     ac_useropt_orig=$ac_useropt
1070     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1071     case $ac_user_opts in
1072       *"
1073 "enable_$ac_useropt"
1074 "*) ;;
1075       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076          ac_unrecognized_sep=', ';;
1077     esac
1078     eval enable_$ac_useropt=no ;;
1079
1080   -docdir | --docdir | --docdi | --doc | --do)
1081     ac_prev=docdir ;;
1082   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083     docdir=$ac_optarg ;;
1084
1085   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086     ac_prev=dvidir ;;
1087   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088     dvidir=$ac_optarg ;;
1089
1090   -enable-* | --enable-*)
1091     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1095     ac_useropt_orig=$ac_useropt
1096     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1097     case $ac_user_opts in
1098       *"
1099 "enable_$ac_useropt"
1100 "*) ;;
1101       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1102          ac_unrecognized_sep=', ';;
1103     esac
1104     eval enable_$ac_useropt=\$ac_optarg ;;
1105
1106   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108   | --exec | --exe | --ex)
1109     ac_prev=exec_prefix ;;
1110   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112   | --exec=* | --exe=* | --ex=*)
1113     exec_prefix=$ac_optarg ;;
1114
1115   -gas | --gas | --ga | --g)
1116     # Obsolete; use --with-gas.
1117     with_gas=yes ;;
1118
1119   -help | --help | --hel | --he | -h)
1120     ac_init_help=long ;;
1121   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122     ac_init_help=recursive ;;
1123   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124     ac_init_help=short ;;
1125
1126   -host | --host | --hos | --ho)
1127     ac_prev=host_alias ;;
1128   -host=* | --host=* | --hos=* | --ho=*)
1129     host_alias=$ac_optarg ;;
1130
1131   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132     ac_prev=htmldir ;;
1133   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134   | --ht=*)
1135     htmldir=$ac_optarg ;;
1136
1137   -includedir | --includedir | --includedi | --included | --include \
1138   | --includ | --inclu | --incl | --inc)
1139     ac_prev=includedir ;;
1140   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141   | --includ=* | --inclu=* | --incl=* | --inc=*)
1142     includedir=$ac_optarg ;;
1143
1144   -infodir | --infodir | --infodi | --infod | --info | --inf)
1145     ac_prev=infodir ;;
1146   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147     infodir=$ac_optarg ;;
1148
1149   -libdir | --libdir | --libdi | --libd)
1150     ac_prev=libdir ;;
1151   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152     libdir=$ac_optarg ;;
1153
1154   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155   | --libexe | --libex | --libe)
1156     ac_prev=libexecdir ;;
1157   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158   | --libexe=* | --libex=* | --libe=*)
1159     libexecdir=$ac_optarg ;;
1160
1161   -localedir | --localedir | --localedi | --localed | --locale)
1162     ac_prev=localedir ;;
1163   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164     localedir=$ac_optarg ;;
1165
1166   -localstatedir | --localstatedir | --localstatedi | --localstated \
1167   | --localstate | --localstat | --localsta | --localst | --locals)
1168     ac_prev=localstatedir ;;
1169   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171     localstatedir=$ac_optarg ;;
1172
1173   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174     ac_prev=mandir ;;
1175   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176     mandir=$ac_optarg ;;
1177
1178   -nfp | --nfp | --nf)
1179     # Obsolete; use --without-fp.
1180     with_fp=no ;;
1181
1182   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183   | --no-cr | --no-c | -n)
1184     no_create=yes ;;
1185
1186   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188     no_recursion=yes ;;
1189
1190   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192   | --oldin | --oldi | --old | --ol | --o)
1193     ac_prev=oldincludedir ;;
1194   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197     oldincludedir=$ac_optarg ;;
1198
1199   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200     ac_prev=prefix ;;
1201   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202     prefix=$ac_optarg ;;
1203
1204   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205   | --program-pre | --program-pr | --program-p)
1206     ac_prev=program_prefix ;;
1207   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209     program_prefix=$ac_optarg ;;
1210
1211   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212   | --program-suf | --program-su | --program-s)
1213     ac_prev=program_suffix ;;
1214   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216     program_suffix=$ac_optarg ;;
1217
1218   -program-transform-name | --program-transform-name \
1219   | --program-transform-nam | --program-transform-na \
1220   | --program-transform-n | --program-transform- \
1221   | --program-transform | --program-transfor \
1222   | --program-transfo | --program-transf \
1223   | --program-trans | --program-tran \
1224   | --progr-tra | --program-tr | --program-t)
1225     ac_prev=program_transform_name ;;
1226   -program-transform-name=* | --program-transform-name=* \
1227   | --program-transform-nam=* | --program-transform-na=* \
1228   | --program-transform-n=* | --program-transform-=* \
1229   | --program-transform=* | --program-transfor=* \
1230   | --program-transfo=* | --program-transf=* \
1231   | --program-trans=* | --program-tran=* \
1232   | --progr-tra=* | --program-tr=* | --program-t=*)
1233     program_transform_name=$ac_optarg ;;
1234
1235   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236     ac_prev=pdfdir ;;
1237   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238     pdfdir=$ac_optarg ;;
1239
1240   -psdir | --psdir | --psdi | --psd | --ps)
1241     ac_prev=psdir ;;
1242   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243     psdir=$ac_optarg ;;
1244
1245   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246   | -silent | --silent | --silen | --sile | --sil)
1247     silent=yes ;;
1248
1249   -runstatedir | --runstatedir | --runstatedi | --runstated \
1250   | --runstate | --runstat | --runsta | --runst | --runs \
1251   | --run | --ru | --r)
1252     ac_prev=runstatedir ;;
1253   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1254   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1255   | --run=* | --ru=* | --r=*)
1256     runstatedir=$ac_optarg ;;
1257
1258   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259     ac_prev=sbindir ;;
1260   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261   | --sbi=* | --sb=*)
1262     sbindir=$ac_optarg ;;
1263
1264   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266   | --sharedst | --shareds | --shared | --share | --shar \
1267   | --sha | --sh)
1268     ac_prev=sharedstatedir ;;
1269   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272   | --sha=* | --sh=*)
1273     sharedstatedir=$ac_optarg ;;
1274
1275   -site | --site | --sit)
1276     ac_prev=site ;;
1277   -site=* | --site=* | --sit=*)
1278     site=$ac_optarg ;;
1279
1280   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281     ac_prev=srcdir ;;
1282   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283     srcdir=$ac_optarg ;;
1284
1285   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286   | --syscon | --sysco | --sysc | --sys | --sy)
1287     ac_prev=sysconfdir ;;
1288   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290     sysconfdir=$ac_optarg ;;
1291
1292   -target | --target | --targe | --targ | --tar | --ta | --t)
1293     ac_prev=target_alias ;;
1294   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295     target_alias=$ac_optarg ;;
1296
1297   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298     verbose=yes ;;
1299
1300   -version | --version | --versio | --versi | --vers | -V)
1301     ac_init_version=: ;;
1302
1303   -with-* | --with-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       as_fn_error $? "invalid package name: \`$ac_useropt'"
1308     ac_useropt_orig=$ac_useropt
1309     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1310     case $ac_user_opts in
1311       *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315          ac_unrecognized_sep=', ';;
1316     esac
1317     eval with_$ac_useropt=\$ac_optarg ;;
1318
1319   -without-* | --without-*)
1320     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323       as_fn_error $? "invalid package name: \`$ac_useropt'"
1324     ac_useropt_orig=$ac_useropt
1325     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1326     case $ac_user_opts in
1327       *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331          ac_unrecognized_sep=', ';;
1332     esac
1333     eval with_$ac_useropt=no ;;
1334
1335   --x)
1336     # Obsolete; use --with-x.
1337     with_x=yes ;;
1338
1339   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340   | --x-incl | --x-inc | --x-in | --x-i)
1341     ac_prev=x_includes ;;
1342   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344     x_includes=$ac_optarg ;;
1345
1346   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348     ac_prev=x_libraries ;;
1349   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351     x_libraries=$ac_optarg ;;
1352
1353   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information"
1355     ;;
1356
1357   *=*)
1358     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359     # Reject names that are not valid shell variable names.
1360     case $ac_envvar in #(
1361       '' | [0-9]* | *[!_$as_cr_alnum]* )
1362       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1363     esac
1364     eval $ac_envvar=\$ac_optarg
1365     export $ac_envvar ;;
1366
1367   *)
1368     # FIXME: should be removed in autoconf 3.0.
1369     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1370     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1372     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1373     ;;
1374
1375   esac
1376 done
1377
1378 if test -n "$ac_prev"; then
1379   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380   as_fn_error $? "missing argument to $ac_option"
1381 fi
1382
1383 if test -n "$ac_unrecognized_opts"; then
1384   case $enable_option_checking in
1385     no) ;;
1386     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1387     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388   esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393                 datadir sysconfdir sharedstatedir localstatedir includedir \
1394                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395                 libdir localedir mandir runstatedir
1396 do
1397   eval ac_val=\$$ac_var
1398   # Remove trailing slashes.
1399   case $ac_val in
1400     */ )
1401       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402       eval $ac_var=\$ac_val;;
1403   esac
1404   # Be sure to have absolute directory names.
1405   case $ac_val in
1406     [\\/$]* | ?:[\\/]* )  continue;;
1407     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408   esac
1409   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1411
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1418
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421   if test "x$build_alias" = x; then
1422     cross_compiling=maybe
1423   elif test "x$build_alias" != "x$host_alias"; then
1424     cross_compiling=yes
1425   fi
1426 fi
1427
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431 test "$silent" = yes && exec 6>/dev/null
1432
1433
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437   as_fn_error $? "working directory cannot be determined"
1438 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439   as_fn_error $? "pwd does not report name of working directory"
1440
1441
1442 # Find the source files, if location was not specified.
1443 if test -z "$srcdir"; then
1444   ac_srcdir_defaulted=yes
1445   # Try the directory containing this script, then the parent directory.
1446   ac_confdir=`$as_dirname -- "$as_myself" ||
1447 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1448          X"$as_myself" : 'X\(//\)[^/]' \| \
1449          X"$as_myself" : 'X\(//\)$' \| \
1450          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1451 printf "%s\n" X"$as_myself" |
1452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453             s//\1/
1454             q
1455           }
1456           /^X\(\/\/\)[^/].*/{
1457             s//\1/
1458             q
1459           }
1460           /^X\(\/\/\)$/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\).*/{
1465             s//\1/
1466             q
1467           }
1468           s/.*/./; q'`
1469   srcdir=$ac_confdir
1470   if test ! -r "$srcdir/$ac_unique_file"; then
1471     srcdir=..
1472   fi
1473 else
1474   ac_srcdir_defaulted=no
1475 fi
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1478   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1479 fi
1480 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 ac_abs_confdir=`(
1482         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1483         pwd)`
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486   srcdir=.
1487 fi
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1491 case $srcdir in
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 esac
1494 for ac_var in $ac_precious_vars; do
1495   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496   eval ac_env_${ac_var}_value=\$${ac_var}
1497   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499 done
1500
1501 #
1502 # Report the --help message.
1503 #
1504 if test "$ac_init_help" = "long"; then
1505   # Omit some internal or obsolete options to make the list less imposing.
1506   # This message is too long to be a string in the A/UX 3.1 sh.
1507   cat <<_ACEOF
1508 \`configure' configures this package to adapt to many kinds of systems.
1509
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1511
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE.  See below for descriptions of some of the useful variables.
1514
1515 Defaults for the options are specified in brackets.
1516
1517 Configuration:
1518   -h, --help              display this help and exit
1519       --help=short        display options specific to this package
1520       --help=recursive    display the short help of all the included packages
1521   -V, --version           display version information and exit
1522   -q, --quiet, --silent   do not print \`checking ...' messages
1523       --cache-file=FILE   cache test results in FILE [disabled]
1524   -C, --config-cache      alias for \`--cache-file=config.cache'
1525   -n, --no-create         do not create output files
1526       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1527
1528 Installation directories:
1529   --prefix=PREFIX         install architecture-independent files in PREFIX
1530                           [$ac_default_prefix]
1531   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1532                           [PREFIX]
1533
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1538
1539 For better control, use the options below.
1540
1541 Fine tuning of the installation directories:
1542   --bindir=DIR            user executables [EPREFIX/bin]
1543   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1544   --libexecdir=DIR        program executables [EPREFIX/libexec]
1545   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1546   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1547   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1548   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1549   --libdir=DIR            object code libraries [EPREFIX/lib]
1550   --includedir=DIR        C header files [PREFIX/include]
1551   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1552   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1553   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1554   --infodir=DIR           info documentation [DATAROOTDIR/info]
1555   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1556   --mandir=DIR            man documentation [DATAROOTDIR/man]
1557   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1558   --htmldir=DIR           html documentation [DOCDIR]
1559   --dvidir=DIR            dvi documentation [DOCDIR]
1560   --pdfdir=DIR            pdf documentation [DOCDIR]
1561   --psdir=DIR             ps documentation [DOCDIR]
1562 _ACEOF
1563
1564   cat <<\_ACEOF
1565
1566 System types:
1567   --build=BUILD     configure for building on BUILD [guessed]
1568   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1569 _ACEOF
1570 fi
1571
1572 if test -n "$ac_init_help"; then
1573
1574   cat <<\_ACEOF
1575
1576 Optional Features:
1577   --disable-option-checking  ignore unrecognized --enable/--with options
1578   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1579   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1580   --enable-maintainer-mode
1581                           enable makefile rules useful for maintainers
1582   --enable-symlink-install
1583                           use symlinks when installing instead of hard links
1584   --enable-relative-symlinks
1585                           use relative symlinks when installing
1586
1587   --enable-symlink-build  use symlinks while building instead of hard links
1588   --enable-verbose-makecmds
1589                           enable verbose make command output
1590   --enable-elf-shlibs     select ELF shared libraries
1591   --enable-bsd-shlibs     select BSD shared libraries
1592   --enable-profile        build profiling libraries
1593   --enable-gcov           build for coverage testing using gcov
1594   --enable-hardening      build for coverage testing using gcov
1595   --enable-jbd-debug      enable journal debugging
1596   --enable-blkid-debug    enable blkid debugging
1597   --disable-testio-debug  disable the use of the test I/O manager for
1598                           debugging
1599   --enable-developer-features
1600                           enable features for use by ext4 developers
1601   --enable-libuuid        build and use private uuid library
1602   --enable-libblkid       build and use private blkid library
1603   --enable-subset         enable subset-only build
1604   --disable-backtrace     disable use backtrace
1605   --disable-debugfs       disable support of debugfs program
1606   --disable-imager        disable support of e2image program
1607   --disable-resizer       disable support of e2resize program
1608   --disable-defrag        disable support of e4defrag program
1609   --enable-fsck           build fsck wrapper program
1610   --enable-e2initrd-helper
1611                           build e2initrd-helper program
1612   --disable-tls           disable use of thread local support
1613   --disable-uuidd         disable building the uuid daemon
1614   --disable-mmp           disable support mmp, Multi Mount Protection
1615   --disable-tdb           disable tdb support
1616   --disable-bmap-stats    disable collection of bitmap stats
1617   --enable-bmap-stats-ops enable collection of additional bitmap stats
1618   --disable-nls           do not use Native Language Support
1619   --disable-rpath         do not hardcode runtime library paths
1620   --disable-fuse2fs       do not build fuse2fs
1621   --enable-lto            enable link time optimization
1622   --enable-ubsan          enable undefined behavior sanitizer
1623   --enable-addrsan        enable address sanitizer
1624   --enable-threadsan      enable thread sanitizer
1625   --enable-fuzzing        enable fuzzing sanitizer
1626   --disable-largefile     omit support for large files
1627
1628 Optional Packages:
1629   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1630   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1631   --with-diet-libc        use diet libc
1632   --with-cc               no longer supported, use CC= instead
1633   --with-ccopts           no longer supported, use CFLAGS= instead
1634   --with-ldopts           no longer supported, use LDFLAGS= instead
1635   --with-root-prefix=PREFIX
1636                           override prefix variable for files to be placed in
1637                           the root
1638   --without-pthread       disable use of pthread support
1639   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1640   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1641   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1642   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1643   --without-libintl-prefix     don't search for libintl in includedir and libdir
1644   --with-multiarch=ARCH   specify the multiarch triplet
1645   --with-udev-rules-dir[=DIR]
1646                           Install udev rules into DIR.
1647   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1648   --with-systemd-unit-dir[=DIR]
1649                           Install systemd system units into DIR.
1650
1651 Some influential environment variables:
1652   CC          C compiler command
1653   CFLAGS      C compiler flags
1654   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1655               nonstandard directory <lib dir>
1656   LIBS        libraries to pass to the linker, e.g. -l<library>
1657   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658               you have headers in a nonstandard directory <include dir>
1659   CPP         C preprocessor
1660   PKG_CONFIG  path to pkg-config utility
1661   PKG_CONFIG_PATH
1662               directories to add to pkg-config's search path
1663   PKG_CONFIG_LIBDIR
1664               path overriding pkg-config's built-in search path
1665   CXX         C++ compiler command
1666   CXXFLAGS    C++ compiler flags
1667   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1668   udev_LIBS   linker flags for udev, overriding pkg-config
1669   systemd_CFLAGS
1670               C compiler flags for systemd, overriding pkg-config
1671   systemd_LIBS
1672               linker flags for systemd, overriding pkg-config
1673
1674 Use these variables to override the choices made by `configure' or to help
1675 it to find libraries and programs with nonstandard names/locations.
1676
1677 Report bugs to the package provider.
1678 _ACEOF
1679 ac_status=$?
1680 fi
1681
1682 if test "$ac_init_help" = "recursive"; then
1683   # If there are subdirs, report their specific --help.
1684   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685     test -d "$ac_dir" ||
1686       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687       continue
1688     ac_builddir=.
1689
1690 case "$ac_dir" in
1691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 *)
1693   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1694   # A ".." for each directory in $ac_dir_suffix.
1695   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696   case $ac_top_builddir_sub in
1697   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699   esac ;;
1700 esac
1701 ac_abs_top_builddir=$ac_pwd
1702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703 # for backward compatibility:
1704 ac_top_builddir=$ac_top_build_prefix
1705
1706 case $srcdir in
1707   .)  # We are building in place.
1708     ac_srcdir=.
1709     ac_top_srcdir=$ac_top_builddir_sub
1710     ac_abs_top_srcdir=$ac_pwd ;;
1711   [\\/]* | ?:[\\/]* )  # Absolute name.
1712     ac_srcdir=$srcdir$ac_dir_suffix;
1713     ac_top_srcdir=$srcdir
1714     ac_abs_top_srcdir=$srcdir ;;
1715   *) # Relative name.
1716     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717     ac_top_srcdir=$ac_top_build_prefix$srcdir
1718     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 esac
1720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721
1722     cd "$ac_dir" || { ac_status=$?; continue; }
1723     # Check for configure.gnu first; this name is used for a wrapper for
1724     # Metaconfig's "Configure" on case-insensitive file systems.
1725     if test -f "$ac_srcdir/configure.gnu"; then
1726       echo &&
1727       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1728     elif test -f "$ac_srcdir/configure"; then
1729       echo &&
1730       $SHELL "$ac_srcdir/configure" --help=recursive
1731     else
1732       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1733     fi || ac_status=$?
1734     cd "$ac_pwd" || { ac_status=$?; break; }
1735   done
1736 fi
1737
1738 test -n "$ac_init_help" && exit $ac_status
1739 if $ac_init_version; then
1740   cat <<\_ACEOF
1741 configure
1742 generated by GNU Autoconf 2.71
1743
1744 Copyright (C) 2021 Free Software Foundation, Inc.
1745 This configure script is free software; the Free Software Foundation
1746 gives unlimited permission to copy, distribute and modify it.
1747 _ACEOF
1748   exit
1749 fi
1750
1751 ## ------------------------ ##
1752 ## Autoconf initialization. ##
1753 ## ------------------------ ##
1754
1755 # ac_fn_c_try_compile LINENO
1756 # --------------------------
1757 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_compile ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   rm -f conftest.$ac_objext conftest.beam
1762   if { { ac_try="$ac_compile"
1763 case "(($ac_try" in
1764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765   *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 printf "%s\n" "$ac_try_echo"; } >&5
1769   (eval "$ac_compile") 2>conftest.err
1770   ac_status=$?
1771   if test -s conftest.err; then
1772     grep -v '^ *+' conftest.err >conftest.er1
1773     cat conftest.er1 >&5
1774     mv -f conftest.er1 conftest.err
1775   fi
1776   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777   test $ac_status = 0; } && {
1778          test -z "$ac_c_werror_flag" ||
1779          test ! -s conftest.err
1780        } && test -s conftest.$ac_objext
1781 then :
1782   ac_retval=0
1783 else $as_nop
1784   printf "%s\n" "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787         ac_retval=1
1788 fi
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_compile
1793
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 printf %s "checking for $2... " >&6; }
1803 if eval test \${$3+y}
1804 then :
1805   printf %s "(cached) " >&6
1806 else $as_nop
1807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 $4
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"
1813 then :
1814   eval "$3=yes"
1815 else $as_nop
1816   eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 printf "%s\n" "$ac_res" >&6; }
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_header_compile
1826
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_link ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1834   if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837   *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 printf "%s\n" "$ac_try_echo"; } >&5
1841   (eval "$ac_link") 2>conftest.err
1842   ac_status=$?
1843   if test -s conftest.err; then
1844     grep -v '^ *+' conftest.err >conftest.er1
1845     cat conftest.er1 >&5
1846     mv -f conftest.er1 conftest.err
1847   fi
1848   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; } && {
1850          test -z "$ac_c_werror_flag" ||
1851          test ! -s conftest.err
1852        } && test -s conftest$ac_exeext && {
1853          test "$cross_compiling" = yes ||
1854          test -x conftest$ac_exeext
1855        }
1856 then :
1857   ac_retval=0
1858 else $as_nop
1859   printf "%s\n" "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862         ac_retval=1
1863 fi
1864   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866   # interfere with the next link command; also delete a directory that is
1867   # left behind by Apple's compiler.  We do this before executing the actions.
1868   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870   as_fn_set_status $ac_retval
1871
1872 } # ac_fn_c_try_link
1873
1874 # ac_fn_c_try_cpp LINENO
1875 # ----------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_cpp ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   if { { ac_try="$ac_cpp conftest.$ac_ext"
1881 case "(($ac_try" in
1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883   *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 printf "%s\n" "$ac_try_echo"; } >&5
1887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1888   ac_status=$?
1889   if test -s conftest.err; then
1890     grep -v '^ *+' conftest.err >conftest.er1
1891     cat conftest.er1 >&5
1892     mv -f conftest.er1 conftest.err
1893   fi
1894   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; } > conftest.i && {
1896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1897          test ! -s conftest.err
1898        }
1899 then :
1900   ac_retval=0
1901 else $as_nop
1902   printf "%s\n" "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905     ac_retval=1
1906 fi
1907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908   as_fn_set_status $ac_retval
1909
1910 } # ac_fn_c_try_cpp
1911
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1915 # executables *can* be run.
1916 ac_fn_c_try_run ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922   *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 printf "%s\n" "$ac_try_echo"; } >&5
1926   (eval "$ac_link") 2>&5
1927   ac_status=$?
1928   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930   { { case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 printf "%s\n" "$ac_try_echo"; } >&5
1936   (eval "$ac_try") 2>&5
1937   ac_status=$?
1938   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; }; }
1940 then :
1941   ac_retval=0
1942 else $as_nop
1943   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1944        printf "%s\n" "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947        ac_retval=$ac_status
1948 fi
1949   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951   as_fn_set_status $ac_retval
1952
1953 } # ac_fn_c_try_run
1954
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 printf %s "checking for $2... " >&6; }
1963 if eval test \${$3+y}
1964 then :
1965   printf %s "(cached) " >&6
1966 else $as_nop
1967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h.  */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1971 #define $2 innocuous_$2
1972
1973 /* System header to define __stub macros and hopefully few prototypes,
1974    which can conflict with char $2 (); below.  */
1975
1976 #include <limits.h>
1977 #undef $2
1978
1979 /* Override any GCC internal prototype to avoid an error.
1980    Use char because int might match the return type of a GCC
1981    builtin and then its argument prototype would still apply.  */
1982 #ifdef __cplusplus
1983 extern "C"
1984 #endif
1985 char $2 ();
1986 /* The GNU C library defines this for functions which it implements
1987     to always fail with ENOSYS.  Some functions are actually named
1988     something starting with __ and the normal name is an alias.  */
1989 #if defined __stub_$2 || defined __stub___$2
1990 choke me
1991 #endif
1992
1993 int
1994 main (void)
1995 {
1996 return $2 ();
1997   ;
1998   return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_link "$LINENO"
2002 then :
2003   eval "$3=yes"
2004 else $as_nop
2005   eval "$3=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2008     conftest$ac_exeext conftest.$ac_ext
2009 fi
2010 eval ac_res=\$$3
2011                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 printf "%s\n" "$ac_res" >&6; }
2013   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015 } # ac_fn_c_check_func
2016
2017 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2018 # ----------------------------------------------------
2019 # Tries to find if the field MEMBER exists in type AGGR, after including
2020 # INCLUDES, setting cache variable VAR accordingly.
2021 ac_fn_c_check_member ()
2022 {
2023   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2025 printf %s "checking for $2.$3... " >&6; }
2026 if eval test \${$4+y}
2027 then :
2028   printf %s "(cached) " >&6
2029 else $as_nop
2030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h.  */
2032 $5
2033 int
2034 main (void)
2035 {
2036 static $2 ac_aggr;
2037 if (ac_aggr.$3)
2038 return 0;
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"
2044 then :
2045   eval "$4=yes"
2046 else $as_nop
2047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $5
2050 int
2051 main (void)
2052 {
2053 static $2 ac_aggr;
2054 if (sizeof ac_aggr.$3)
2055 return 0;
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"
2061 then :
2062   eval "$4=yes"
2063 else $as_nop
2064   eval "$4=no"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$4
2071                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 printf "%s\n" "$ac_res" >&6; }
2073   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_member
2076
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 printf %s "checking for $2... " >&6; }
2086 if eval test \${$3+y}
2087 then :
2088   printf %s "(cached) " >&6
2089 else $as_nop
2090   eval "$3=no"
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main (void)
2096 {
2097 if (sizeof ($2))
2098          return 0;
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"
2104 then :
2105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 $4
2108 int
2109 main (void)
2110 {
2111 if (sizeof (($2)))
2112             return 0;
2113   ;
2114   return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"
2118 then :
2119
2120 else $as_nop
2121   eval "$3=yes"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126 fi
2127 eval ac_res=\$$3
2128                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 printf "%s\n" "$ac_res" >&6; }
2130   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_type
2133
2134 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2135 # ------------------------------------------------------------------
2136 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2137 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2138 ac_fn_check_decl ()
2139 {
2140   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141   as_decl_name=`echo $2|sed 's/ *(.*//'`
2142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2143 printf %s "checking whether $as_decl_name is declared... " >&6; }
2144 if eval test \${$3+y}
2145 then :
2146   printf %s "(cached) " >&6
2147 else $as_nop
2148   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2149   eval ac_save_FLAGS=\$$6
2150   as_fn_append $6 " $5"
2151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h.  */
2153 $4
2154 int
2155 main (void)
2156 {
2157 #ifndef $as_decl_name
2158 #ifdef __cplusplus
2159   (void) $as_decl_use;
2160 #else
2161   (void) $as_decl_name;
2162 #endif
2163 #endif
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"
2170 then :
2171   eval "$3=yes"
2172 else $as_nop
2173   eval "$3=no"
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2176   eval $6=\$ac_save_FLAGS
2177
2178 fi
2179 eval ac_res=\$$3
2180                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 printf "%s\n" "$ac_res" >&6; }
2182   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183
2184 } # ac_fn_check_decl
2185
2186 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2187 # --------------------------------------------
2188 # Tries to find the compile-time value of EXPR in a program that includes
2189 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2190 # computed
2191 ac_fn_c_compute_int ()
2192 {
2193   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194   if test "$cross_compiling" = yes; then
2195     # Depending upon the size, compute the lo and hi bounds.
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 int
2200 main (void)
2201 {
2202 static int test_array [1 - 2 * !(($2) >= 0)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"
2211 then :
2212   ac_lo=0 ac_mid=0
2213   while :; do
2214     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h.  */
2216 $4
2217 int
2218 main (void)
2219 {
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 test_array [0] = 0;
2222 return test_array [0];
2223
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"
2229 then :
2230   ac_hi=$ac_mid; break
2231 else $as_nop
2232   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2233                         if test $ac_lo -le $ac_mid; then
2234                           ac_lo= ac_hi=
2235                           break
2236                         fi
2237                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2240   done
2241 else $as_nop
2242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h.  */
2244 $4
2245 int
2246 main (void)
2247 {
2248 static int test_array [1 - 2 * !(($2) < 0)];
2249 test_array [0] = 0;
2250 return test_array [0];
2251
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"
2257 then :
2258   ac_hi=-1 ac_mid=-1
2259   while :; do
2260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 int
2264 main (void)
2265 {
2266 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2267 test_array [0] = 0;
2268 return test_array [0];
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"
2275 then :
2276   ac_lo=$ac_mid; break
2277 else $as_nop
2278   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2279                         if test $ac_mid -le $ac_hi; then
2280                           ac_lo= ac_hi=
2281                           break
2282                         fi
2283                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2286   done
2287 else $as_nop
2288   ac_lo= ac_hi=
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 # Binary search between lo and hi bounds.
2294 while test "x$ac_lo" != "x$ac_hi"; do
2295   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 $4
2299 int
2300 main (void)
2301 {
2302 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 test_array [0] = 0;
2304 return test_array [0];
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"
2311 then :
2312   ac_hi=$ac_mid
2313 else $as_nop
2314   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2315 fi
2316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2317 done
2318 case $ac_lo in #((
2319 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2320 '') ac_retval=1 ;;
2321 esac
2322   else
2323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 static long int longval (void) { return $2; }
2327 static unsigned long int ulongval (void) { return $2; }
2328 #include <stdio.h>
2329 #include <stdlib.h>
2330 int
2331 main (void)
2332 {
2333
2334   FILE *f = fopen ("conftest.val", "w");
2335   if (! f)
2336     return 1;
2337   if (($2) < 0)
2338     {
2339       long int i = longval ();
2340       if (i != ($2))
2341         return 1;
2342       fprintf (f, "%ld", i);
2343     }
2344   else
2345     {
2346       unsigned long int i = ulongval ();
2347       if (i != ($2))
2348         return 1;
2349       fprintf (f, "%lu", i);
2350     }
2351   /* Do not output a trailing newline, as this causes \r\n confusion
2352      on some platforms.  */
2353   return ferror (f) || fclose (f) != 0;
2354
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_c_try_run "$LINENO"
2360 then :
2361   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2362 else $as_nop
2363   ac_retval=1
2364 fi
2365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2366   conftest.$ac_objext conftest.beam conftest.$ac_ext
2367 rm -f conftest.val
2368
2369   fi
2370   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371   as_fn_set_status $ac_retval
2372
2373 } # ac_fn_c_compute_int
2374
2375 # ac_fn_cxx_try_compile LINENO
2376 # ----------------------------
2377 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_cxx_try_compile ()
2379 {
2380   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381   rm -f conftest.$ac_objext conftest.beam
2382   if { { ac_try="$ac_compile"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 printf "%s\n" "$ac_try_echo"; } >&5
2389   (eval "$ac_compile") 2>conftest.err
2390   ac_status=$?
2391   if test -s conftest.err; then
2392     grep -v '^ *+' conftest.err >conftest.er1
2393     cat conftest.er1 >&5
2394     mv -f conftest.er1 conftest.err
2395   fi
2396   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397   test $ac_status = 0; } && {
2398          test -z "$ac_cxx_werror_flag" ||
2399          test ! -s conftest.err
2400        } && test -s conftest.$ac_objext
2401 then :
2402   ac_retval=0
2403 else $as_nop
2404   printf "%s\n" "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407         ac_retval=1
2408 fi
2409   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410   as_fn_set_status $ac_retval
2411
2412 } # ac_fn_cxx_try_compile
2413 ac_configure_args_raw=
2414 for ac_arg
2415 do
2416   case $ac_arg in
2417   *\'*)
2418     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2419   esac
2420   as_fn_append ac_configure_args_raw " '$ac_arg'"
2421 done
2422
2423 case $ac_configure_args_raw in
2424   *$as_nl*)
2425     ac_safe_unquote= ;;
2426   *)
2427     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2428     ac_unsafe_a="$ac_unsafe_z#~"
2429     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2430     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2431 esac
2432
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2436
2437 It was created by $as_me, which was
2438 generated by GNU Autoconf 2.71.  Invocation command line was
2439
2440   $ $0$ac_configure_args_raw
2441
2442 _ACEOF
2443 exec 5>>config.log
2444 {
2445 cat <<_ASUNAME
2446 ## --------- ##
2447 ## Platform. ##
2448 ## --------- ##
2449
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2455
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2458
2459 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2460 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2463 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2464 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2465 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2466
2467 _ASUNAME
2468
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   case $as_dir in #(((
2474     '') as_dir=./ ;;
2475     */) ;;
2476     *) as_dir=$as_dir/ ;;
2477   esac
2478     printf "%s\n" "PATH: $as_dir"
2479   done
2480 IFS=$as_save_IFS
2481
2482 } >&5
2483
2484 cat >&5 <<_ACEOF
2485
2486
2487 ## ----------- ##
2488 ## Core tests. ##
2489 ## ----------- ##
2490
2491 _ACEOF
2492
2493
2494 # Keep a trace of the command line.
2495 # Strip out --no-create and --no-recursion so they do not pile up.
2496 # Strip out --silent because we don't want to record it for future runs.
2497 # Also quote any args containing shell meta-characters.
2498 # Make two passes to allow for proper duplicate-argument suppression.
2499 ac_configure_args=
2500 ac_configure_args0=
2501 ac_configure_args1=
2502 ac_must_keep_next=false
2503 for ac_pass in 1 2
2504 do
2505   for ac_arg
2506   do
2507     case $ac_arg in
2508     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2509     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2510     | -silent | --silent | --silen | --sile | --sil)
2511       continue ;;
2512     *\'*)
2513       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2514     esac
2515     case $ac_pass in
2516     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2517     2)
2518       as_fn_append ac_configure_args1 " '$ac_arg'"
2519       if test $ac_must_keep_next = true; then
2520         ac_must_keep_next=false # Got value, back to normal.
2521       else
2522         case $ac_arg in
2523           *=* | --config-cache | -C | -disable-* | --disable-* \
2524           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2525           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2526           | -with-* | --with-* | -without-* | --without-* | --x)
2527             case "$ac_configure_args0 " in
2528               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2529             esac
2530             ;;
2531           -* ) ac_must_keep_next=true ;;
2532         esac
2533       fi
2534       as_fn_append ac_configure_args " '$ac_arg'"
2535       ;;
2536     esac
2537   done
2538 done
2539 { ac_configure_args0=; unset ac_configure_args0;}
2540 { ac_configure_args1=; unset ac_configure_args1;}
2541
2542 # When interrupted or exit'd, cleanup temporary files, and complete
2543 # config.log.  We remove comments because anyway the quotes in there
2544 # would cause problems or look ugly.
2545 # WARNING: Use '\'' to represent an apostrophe within the trap.
2546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2547 trap 'exit_status=$?
2548   # Sanitize IFS.
2549   IFS=" ""      $as_nl"
2550   # Save into config.log some information that might help in debugging.
2551   {
2552     echo
2553
2554     printf "%s\n" "## ---------------- ##
2555 ## Cache variables. ##
2556 ## ---------------- ##"
2557     echo
2558     # The following way of writing the cache mishandles newlines in values,
2559 (
2560   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2561     eval ac_val=\$$ac_var
2562     case $ac_val in #(
2563     *${as_nl}*)
2564       case $ac_var in #(
2565       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2566 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2567       esac
2568       case $ac_var in #(
2569       _ | IFS | as_nl) ;; #(
2570       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2571       *) { eval $ac_var=; unset $ac_var;} ;;
2572       esac ;;
2573     esac
2574   done
2575   (set) 2>&1 |
2576     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2577     *${as_nl}ac_space=\ *)
2578       sed -n \
2579         "s/'\''/'\''\\\\'\'''\''/g;
2580           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2581       ;; #(
2582     *)
2583       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2584       ;;
2585     esac |
2586     sort
2587 )
2588     echo
2589
2590     printf "%s\n" "## ----------------- ##
2591 ## Output variables. ##
2592 ## ----------------- ##"
2593     echo
2594     for ac_var in $ac_subst_vars
2595     do
2596       eval ac_val=\$$ac_var
2597       case $ac_val in
2598       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2599       esac
2600       printf "%s\n" "$ac_var='\''$ac_val'\''"
2601     done | sort
2602     echo
2603
2604     if test -n "$ac_subst_files"; then
2605       printf "%s\n" "## ------------------- ##
2606 ## File substitutions. ##
2607 ## ------------------- ##"
2608       echo
2609       for ac_var in $ac_subst_files
2610       do
2611         eval ac_val=\$$ac_var
2612         case $ac_val in
2613         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2614         esac
2615         printf "%s\n" "$ac_var='\''$ac_val'\''"
2616       done | sort
2617       echo
2618     fi
2619
2620     if test -s confdefs.h; then
2621       printf "%s\n" "## ----------- ##
2622 ## confdefs.h. ##
2623 ## ----------- ##"
2624       echo
2625       cat confdefs.h
2626       echo
2627     fi
2628     test "$ac_signal" != 0 &&
2629       printf "%s\n" "$as_me: caught signal $ac_signal"
2630     printf "%s\n" "$as_me: exit $exit_status"
2631   } >&5
2632   rm -f core *.core core.conftest.* &&
2633     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2634     exit $exit_status
2635 ' 0
2636 for ac_signal in 1 2 13 15; do
2637   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2638 done
2639 ac_signal=0
2640
2641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2642 rm -f -r conftest* confdefs.h
2643
2644 printf "%s\n" "/* confdefs.h */" > confdefs.h
2645
2646 # Predefined preprocessor variables.
2647
2648 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2649
2650 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2651
2652 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2653
2654 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2655
2656 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2657
2658 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2659
2660
2661 # Let the site file select an alternate cache file if it wants to.
2662 # Prefer an explicitly selected file to automatically selected ones.
2663 if test -n "$CONFIG_SITE"; then
2664   ac_site_files="$CONFIG_SITE"
2665 elif test "x$prefix" != xNONE; then
2666   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2667 else
2668   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2669 fi
2670
2671 for ac_site_file in $ac_site_files
2672 do
2673   case $ac_site_file in #(
2674   */*) :
2675      ;; #(
2676   *) :
2677     ac_site_file=./$ac_site_file ;;
2678 esac
2679   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2680     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2681 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2682     sed 's/^/| /' "$ac_site_file" >&5
2683     . "$ac_site_file" \
2684       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "failed to load site script $ac_site_file
2687 See \`config.log' for more details" "$LINENO" 5; }
2688   fi
2689 done
2690
2691 if test -r "$cache_file"; then
2692   # Some versions of bash will fail to source /dev/null (special files
2693   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2694   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2695     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2696 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2697     case $cache_file in
2698       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2699       *)                      . "./$cache_file";;
2700     esac
2701   fi
2702 else
2703   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2704 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2705   >$cache_file
2706 fi
2707
2708 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2709 # Test code for whether the C compiler supports C89 (global declarations)
2710 ac_c_conftest_c89_globals='
2711 /* Does the compiler advertise C89 conformance?
2712    Do not test the value of __STDC__, because some compilers set it to 0
2713    while being otherwise adequately conformant. */
2714 #if !defined __STDC__
2715 # error "Compiler does not advertise C89 conformance"
2716 #endif
2717
2718 #include <stddef.h>
2719 #include <stdarg.h>
2720 struct stat;
2721 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2722 struct buf { int x; };
2723 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2724 static char *e (p, i)
2725      char **p;
2726      int i;
2727 {
2728   return p[i];
2729 }
2730 static char *f (char * (*g) (char **, int), char **p, ...)
2731 {
2732   char *s;
2733   va_list v;
2734   va_start (v,p);
2735   s = g (p, va_arg (v,int));
2736   va_end (v);
2737   return s;
2738 }
2739
2740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2741    function prototypes and stuff, but not \xHH hex character constants.
2742    These do not provoke an error unfortunately, instead are silently treated
2743    as an "x".  The following induces an error, until -std is added to get
2744    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2745    array size at least.  It is necessary to write \x00 == 0 to get something
2746    that is true only with -std.  */
2747 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2748
2749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2750    inside strings and character constants.  */
2751 #define FOO(x) '\''x'\''
2752 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2753
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2758                int, int);'
2759
2760 # Test code for whether the C compiler supports C89 (body of main).
2761 ac_c_conftest_c89_main='
2762 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2763 '
2764
2765 # Test code for whether the C compiler supports C99 (global declarations)
2766 ac_c_conftest_c99_globals='
2767 // Does the compiler advertise C99 conformance?
2768 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2769 # error "Compiler does not advertise C99 conformance"
2770 #endif
2771
2772 #include <stdbool.h>
2773 extern int puts (const char *);
2774 extern int printf (const char *, ...);
2775 extern int dprintf (int, const char *, ...);
2776 extern void *malloc (size_t);
2777
2778 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2779 // dprintf is used instead of fprintf to avoid needing to declare
2780 // FILE and stderr.
2781 #define debug(...) dprintf (2, __VA_ARGS__)
2782 #define showlist(...) puts (#__VA_ARGS__)
2783 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2784 static void
2785 test_varargs_macros (void)
2786 {
2787   int x = 1234;
2788   int y = 5678;
2789   debug ("Flag");
2790   debug ("X = %d\n", x);
2791   showlist (The first, second, and third items.);
2792   report (x>y, "x is %d but y is %d", x, y);
2793 }
2794
2795 // Check long long types.
2796 #define BIG64 18446744073709551615ull
2797 #define BIG32 4294967295ul
2798 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2799 #if !BIG_OK
2800   #error "your preprocessor is broken"
2801 #endif
2802 #if BIG_OK
2803 #else
2804   #error "your preprocessor is broken"
2805 #endif
2806 static long long int bignum = -9223372036854775807LL;
2807 static unsigned long long int ubignum = BIG64;
2808
2809 struct incomplete_array
2810 {
2811   int datasize;
2812   double data[];
2813 };
2814
2815 struct named_init {
2816   int number;
2817   const wchar_t *name;
2818   double average;
2819 };
2820
2821 typedef const char *ccp;
2822
2823 static inline int
2824 test_restrict (ccp restrict text)
2825 {
2826   // See if C++-style comments work.
2827   // Iterate through items via the restricted pointer.
2828   // Also check for declarations in for loops.
2829   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2830     continue;
2831   return 0;
2832 }
2833
2834 // Check varargs and va_copy.
2835 static bool
2836 test_varargs (const char *format, ...)
2837 {
2838   va_list args;
2839   va_start (args, format);
2840   va_list args_copy;
2841   va_copy (args_copy, args);
2842
2843   const char *str = "";
2844   int number = 0;
2845   float fnumber = 0;
2846
2847   while (*format)
2848     {
2849       switch (*format++)
2850         {
2851         case '\''s'\'': // string
2852           str = va_arg (args_copy, const char *);
2853           break;
2854         case '\''d'\'': // int
2855           number = va_arg (args_copy, int);
2856           break;
2857         case '\''f'\'': // float
2858           fnumber = va_arg (args_copy, double);
2859           break;
2860         default:
2861           break;
2862         }
2863     }
2864   va_end (args_copy);
2865   va_end (args);
2866
2867   return *str && number && fnumber;
2868 }
2869 '
2870
2871 # Test code for whether the C compiler supports C99 (body of main).
2872 ac_c_conftest_c99_main='
2873   // Check bool.
2874   _Bool success = false;
2875   success |= (argc != 0);
2876
2877   // Check restrict.
2878   if (test_restrict ("String literal") == 0)
2879     success = true;
2880   char *restrict newvar = "Another string";
2881
2882   // Check varargs.
2883   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2884   test_varargs_macros ();
2885
2886   // Check flexible array members.
2887   struct incomplete_array *ia =
2888     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2889   ia->datasize = 10;
2890   for (int i = 0; i < ia->datasize; ++i)
2891     ia->data[i] = i * 1.234;
2892
2893   // Check named initializers.
2894   struct named_init ni = {
2895     .number = 34,
2896     .name = L"Test wide string",
2897     .average = 543.34343,
2898   };
2899
2900   ni.number = 58;
2901
2902   int dynamic_array[ni.number];
2903   dynamic_array[0] = argv[0][0];
2904   dynamic_array[ni.number - 1] = 543;
2905
2906   // work around unused variable warnings
2907   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2908          || dynamic_array[ni.number - 1] != 543);
2909 '
2910
2911 # Test code for whether the C compiler supports C11 (global declarations)
2912 ac_c_conftest_c11_globals='
2913 // Does the compiler advertise C11 conformance?
2914 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2915 # error "Compiler does not advertise C11 conformance"
2916 #endif
2917
2918 // Check _Alignas.
2919 char _Alignas (double) aligned_as_double;
2920 char _Alignas (0) no_special_alignment;
2921 extern char aligned_as_int;
2922 char _Alignas (0) _Alignas (int) aligned_as_int;
2923
2924 // Check _Alignof.
2925 enum
2926 {
2927   int_alignment = _Alignof (int),
2928   int_array_alignment = _Alignof (int[100]),
2929   char_alignment = _Alignof (char)
2930 };
2931 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2932
2933 // Check _Noreturn.
2934 int _Noreturn does_not_return (void) { for (;;) continue; }
2935
2936 // Check _Static_assert.
2937 struct test_static_assert
2938 {
2939   int x;
2940   _Static_assert (sizeof (int) <= sizeof (long int),
2941                   "_Static_assert does not work in struct");
2942   long int y;
2943 };
2944
2945 // Check UTF-8 literals.
2946 #define u8 syntax error!
2947 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2948
2949 // Check duplicate typedefs.
2950 typedef long *long_ptr;
2951 typedef long int *long_ptr;
2952 typedef long_ptr long_ptr;
2953
2954 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2955 struct anonymous
2956 {
2957   union {
2958     struct { int i; int j; };
2959     struct { int k; long int l; } w;
2960   };
2961   int m;
2962 } v1;
2963 '
2964
2965 # Test code for whether the C compiler supports C11 (body of main).
2966 ac_c_conftest_c11_main='
2967   _Static_assert ((offsetof (struct anonymous, i)
2968                    == offsetof (struct anonymous, w.k)),
2969                   "Anonymous union alignment botch");
2970   v1.i = 2;
2971   v1.w.k = 5;
2972   ok |= v1.i != 5;
2973 '
2974
2975 # Test code for whether the C compiler supports C11 (complete).
2976 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2977 ${ac_c_conftest_c99_globals}
2978 ${ac_c_conftest_c11_globals}
2979
2980 int
2981 main (int argc, char **argv)
2982 {
2983   int ok = 0;
2984   ${ac_c_conftest_c89_main}
2985   ${ac_c_conftest_c99_main}
2986   ${ac_c_conftest_c11_main}
2987   return ok;
2988 }
2989 "
2990
2991 # Test code for whether the C compiler supports C99 (complete).
2992 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2993 ${ac_c_conftest_c99_globals}
2994
2995 int
2996 main (int argc, char **argv)
2997 {
2998   int ok = 0;
2999   ${ac_c_conftest_c89_main}
3000   ${ac_c_conftest_c99_main}
3001   return ok;
3002 }
3003 "
3004
3005 # Test code for whether the C compiler supports C89 (complete).
3006 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3007
3008 int
3009 main (int argc, char **argv)
3010 {
3011   int ok = 0;
3012   ${ac_c_conftest_c89_main}
3013   return ok;
3014 }
3015 "
3016
3017 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3018 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3019 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3020 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3021 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3022 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3023 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3024 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3025 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3026 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3027 gt_needs="$gt_needs "
3028 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3029 # Test code for whether the C++ compiler supports C++98 (global declarations)
3030 ac_cxx_conftest_cxx98_globals='
3031 // Does the compiler advertise C++98 conformance?
3032 #if !defined __cplusplus || __cplusplus < 199711L
3033 # error "Compiler does not advertise C++98 conformance"
3034 #endif
3035
3036 // These inclusions are to reject old compilers that
3037 // lack the unsuffixed header files.
3038 #include <cstdlib>
3039 #include <exception>
3040
3041 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3042 extern void assert (int);
3043 namespace std {
3044   extern int strcmp (const char *, const char *);
3045 }
3046
3047 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3048 using std::exception;
3049 using std::strcmp;
3050
3051 namespace {
3052
3053 void test_exception_syntax()
3054 {
3055   try {
3056     throw "test";
3057   } catch (const char *s) {
3058     // Extra parentheses suppress a warning when building autoconf itself,
3059     // due to lint rules shared with more typical C programs.
3060     assert (!(strcmp) (s, "test"));
3061   }
3062 }
3063
3064 template <typename T> struct test_template
3065 {
3066   T const val;
3067   explicit test_template(T t) : val(t) {}
3068   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3069 };
3070
3071 } // anonymous namespace
3072 '
3073
3074 # Test code for whether the C++ compiler supports C++98 (body of main)
3075 ac_cxx_conftest_cxx98_main='
3076   assert (argc);
3077   assert (! argv[0]);
3078 {
3079   test_exception_syntax ();
3080   test_template<double> tt (2.0);
3081   assert (tt.add (4) == 6.0);
3082   assert (true && !false);
3083 }
3084 '
3085
3086 # Test code for whether the C++ compiler supports C++11 (global declarations)
3087 ac_cxx_conftest_cxx11_globals='
3088 // Does the compiler advertise C++ 2011 conformance?
3089 #if !defined __cplusplus || __cplusplus < 201103L
3090 # error "Compiler does not advertise C++11 conformance"
3091 #endif
3092
3093 namespace cxx11test
3094 {
3095   constexpr int get_val() { return 20; }
3096
3097   struct testinit
3098   {
3099     int i;
3100     double d;
3101   };
3102
3103   class delegate
3104   {
3105   public:
3106     delegate(int n) : n(n) {}
3107     delegate(): delegate(2354) {}
3108
3109     virtual int getval() { return this->n; };
3110   protected:
3111     int n;
3112   };
3113
3114   class overridden : public delegate
3115   {
3116   public:
3117     overridden(int n): delegate(n) {}
3118     virtual int getval() override final { return this->n * 2; }
3119   };
3120
3121   class nocopy
3122   {
3123   public:
3124     nocopy(int i): i(i) {}
3125     nocopy() = default;
3126     nocopy(const nocopy&) = delete;
3127     nocopy & operator=(const nocopy&) = delete;
3128   private:
3129     int i;
3130   };
3131
3132   // for testing lambda expressions
3133   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3134   {
3135     return f(v);
3136   }
3137
3138   // for testing variadic templates and trailing return types
3139   template <typename V> auto sum(V first) -> V
3140   {
3141     return first;
3142   }
3143   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3144   {
3145     return first + sum(rest...);
3146   }
3147 }
3148 '
3149
3150 # Test code for whether the C++ compiler supports C++11 (body of main)
3151 ac_cxx_conftest_cxx11_main='
3152 {
3153   // Test auto and decltype
3154   auto a1 = 6538;
3155   auto a2 = 48573953.4;
3156   auto a3 = "String literal";
3157
3158   int total = 0;
3159   for (auto i = a3; *i; ++i) { total += *i; }
3160
3161   decltype(a2) a4 = 34895.034;
3162 }
3163 {
3164   // Test constexpr
3165   short sa[cxx11test::get_val()] = { 0 };
3166 }
3167 {
3168   // Test initializer lists
3169   cxx11test::testinit il = { 4323, 435234.23544 };
3170 }
3171 {
3172   // Test range-based for
3173   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3174                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3175   for (auto &x : array) { x += 23; }
3176 }
3177 {
3178   // Test lambda expressions
3179   using cxx11test::eval;
3180   assert (eval ([](int x) { return x*2; }, 21) == 42);
3181   double d = 2.0;
3182   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3183   assert (d == 5.0);
3184   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3185   assert (d == 5.0);
3186 }
3187 {
3188   // Test use of variadic templates
3189   using cxx11test::sum;
3190   auto a = sum(1);
3191   auto b = sum(1, 2);
3192   auto c = sum(1.0, 2.0, 3.0);
3193 }
3194 {
3195   // Test constructor delegation
3196   cxx11test::delegate d1;
3197   cxx11test::delegate d2();
3198   cxx11test::delegate d3(45);
3199 }
3200 {
3201   // Test override and final
3202   cxx11test::overridden o1(55464);
3203 }
3204 {
3205   // Test nullptr
3206   char *c = nullptr;
3207 }
3208 {
3209   // Test template brackets
3210   test_template<::test_template<int>> v(test_template<int>(12));
3211 }
3212 {
3213   // Unicode literals
3214   char const *utf8 = u8"UTF-8 string \u2500";
3215   char16_t const *utf16 = u"UTF-8 string \u2500";
3216   char32_t const *utf32 = U"UTF-32 string \u2500";
3217 }
3218 '
3219
3220 # Test code for whether the C compiler supports C++11 (complete).
3221 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3222 ${ac_cxx_conftest_cxx11_globals}
3223
3224 int
3225 main (int argc, char **argv)
3226 {
3227   int ok = 0;
3228   ${ac_cxx_conftest_cxx98_main}
3229   ${ac_cxx_conftest_cxx11_main}
3230   return ok;
3231 }
3232 "
3233
3234 # Test code for whether the C compiler supports C++98 (complete).
3235 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3236 int
3237 main (int argc, char **argv)
3238 {
3239   int ok = 0;
3240   ${ac_cxx_conftest_cxx98_main}
3241   return ok;
3242 }
3243 "
3244
3245
3246 # Auxiliary files required by this configure script.
3247 ac_aux_files="config.rpath install-sh config.guess config.sub"
3248
3249 # Locations in which to look for auxiliary files.
3250 ac_aux_dir_candidates="${srcdir}/config"
3251
3252 # Search for a directory containing all of the required auxiliary files,
3253 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3254 # If we don't find one directory that contains all the files we need,
3255 # we report the set of missing files from the *first* directory in
3256 # $ac_aux_dir_candidates and give up.
3257 ac_missing_aux_files=""
3258 ac_first_candidate=:
3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 as_found=false
3262 for as_dir in $ac_aux_dir_candidates
3263 do
3264   IFS=$as_save_IFS
3265   case $as_dir in #(((
3266     '') as_dir=./ ;;
3267     */) ;;
3268     *) as_dir=$as_dir/ ;;
3269   esac
3270   as_found=:
3271
3272   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3273   ac_aux_dir_found=yes
3274   ac_install_sh=
3275   for ac_aux in $ac_aux_files
3276   do
3277     # As a special case, if "install-sh" is required, that requirement
3278     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3279     # and $ac_install_sh is set appropriately for whichever one is found.
3280     if test x"$ac_aux" = x"install-sh"
3281     then
3282       if test -f "${as_dir}install-sh"; then
3283         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3284         ac_install_sh="${as_dir}install-sh -c"
3285       elif test -f "${as_dir}install.sh"; then
3286         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3287         ac_install_sh="${as_dir}install.sh -c"
3288       elif test -f "${as_dir}shtool"; then
3289         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3290         ac_install_sh="${as_dir}shtool install -c"
3291       else
3292         ac_aux_dir_found=no
3293         if $ac_first_candidate; then
3294           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3295         else
3296           break
3297         fi
3298       fi
3299     else
3300       if test -f "${as_dir}${ac_aux}"; then
3301         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3302       else
3303         ac_aux_dir_found=no
3304         if $ac_first_candidate; then
3305           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3306         else
3307           break
3308         fi
3309       fi
3310     fi
3311   done
3312   if test "$ac_aux_dir_found" = yes; then
3313     ac_aux_dir="$as_dir"
3314     break
3315   fi
3316   ac_first_candidate=false
3317
3318   as_found=false
3319 done
3320 IFS=$as_save_IFS
3321 if $as_found
3322 then :
3323
3324 else $as_nop
3325   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3326 fi
3327
3328
3329 # These three variables are undocumented and unsupported,
3330 # and are intended to be withdrawn in a future Autoconf release.
3331 # They can cause serious problems if a builder's source tree is in a directory
3332 # whose full name contains unusual characters.
3333 if test -f "${ac_aux_dir}config.guess"; then
3334   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3335 fi
3336 if test -f "${ac_aux_dir}config.sub"; then
3337   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3338 fi
3339 if test -f "$ac_aux_dir/configure"; then
3340   ac_configure="$SHELL ${ac_aux_dir}configure"
3341 fi
3342
3343 # Check that the precious variables saved in the cache have kept the same
3344 # value.
3345 ac_cache_corrupted=false
3346 for ac_var in $ac_precious_vars; do
3347   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3348   eval ac_new_set=\$ac_env_${ac_var}_set
3349   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3350   eval ac_new_val=\$ac_env_${ac_var}_value
3351   case $ac_old_set,$ac_new_set in
3352     set,)
3353       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3354 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3355       ac_cache_corrupted=: ;;
3356     ,set)
3357       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3358 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3359       ac_cache_corrupted=: ;;
3360     ,);;
3361     *)
3362       if test "x$ac_old_val" != "x$ac_new_val"; then
3363         # differences in whitespace do not lead to failure.
3364         ac_old_val_w=`echo x $ac_old_val`
3365         ac_new_val_w=`echo x $ac_new_val`
3366         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3367           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3368 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3369           ac_cache_corrupted=:
3370         else
3371           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3372 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3373           eval $ac_var=\$ac_old_val
3374         fi
3375         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3376 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3377         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3378 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3379       fi;;
3380   esac
3381   # Pass precious variables to config.status.
3382   if test "$ac_new_set" = set; then
3383     case $ac_new_val in
3384     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3385     *) ac_arg=$ac_var=$ac_new_val ;;
3386     esac
3387     case " $ac_configure_args " in
3388       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3389       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3390     esac
3391   fi
3392 done
3393 if $ac_cache_corrupted; then
3394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3397 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3398   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3399             and start over" "$LINENO" 5
3400 fi
3401 ## -------------------- ##
3402 ## Main body of script. ##
3403 ## -------------------- ##
3404
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410
3411
3412
3413
3414
3415 ac_config_headers="$ac_config_headers lib/config.h"
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 if test -n "$ac_tool_prefix"; then
3433   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 printf %s "checking for $ac_word... " >&6; }
3437 if test ${ac_cv_prog_CC+y}
3438 then :
3439   printf %s "(cached) " >&6
3440 else $as_nop
3441   if test -n "$CC"; then
3442   ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447   IFS=$as_save_IFS
3448   case $as_dir in #(((
3449     '') as_dir=./ ;;
3450     */) ;;
3451     *) as_dir=$as_dir/ ;;
3452   esac
3453     for ac_exec_ext in '' $ac_executable_extensions; do
3454   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3455     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3456     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460   done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 printf "%s\n" "$CC" >&6; }
3469 else
3470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 printf "%s\n" "no" >&6; }
3472 fi
3473
3474
3475 fi
3476 if test -z "$ac_cv_prog_CC"; then
3477   ac_ct_CC=$CC
3478   # Extract the first word of "gcc", so it can be a program name with args.
3479 set dummy gcc; ac_word=$2
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 printf %s "checking for $ac_word... " >&6; }
3482 if test ${ac_cv_prog_ac_ct_CC+y}
3483 then :
3484   printf %s "(cached) " >&6
3485 else $as_nop
3486   if test -n "$ac_ct_CC"; then
3487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   case $as_dir in #(((
3494     '') as_dir=./ ;;
3495     */) ;;
3496     *) as_dir=$as_dir/ ;;
3497   esac
3498     for ac_exec_ext in '' $ac_executable_extensions; do
3499   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3500     ac_cv_prog_ac_ct_CC="gcc"
3501     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3511 if test -n "$ac_ct_CC"; then
3512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3513 printf "%s\n" "$ac_ct_CC" >&6; }
3514 else
3515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 printf "%s\n" "no" >&6; }
3517 fi
3518
3519   if test "x$ac_ct_CC" = x; then
3520     CC=""
3521   else
3522     case $cross_compiling:$ac_tool_warned in
3523 yes:)
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526 ac_tool_warned=yes ;;
3527 esac
3528     CC=$ac_ct_CC
3529   fi
3530 else
3531   CC="$ac_cv_prog_CC"
3532 fi
3533
3534 if test -z "$CC"; then
3535           if test -n "$ac_tool_prefix"; then
3536     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}cc; ac_word=$2
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 printf %s "checking for $ac_word... " >&6; }
3540 if test ${ac_cv_prog_CC+y}
3541 then :
3542   printf %s "(cached) " >&6
3543 else $as_nop
3544   if test -n "$CC"; then
3545   ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   case $as_dir in #(((
3552     '') as_dir=./ ;;
3553     */) ;;
3554     *) as_dir=$as_dir/ ;;
3555   esac
3556     for ac_exec_ext in '' $ac_executable_extensions; do
3557   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3558     ac_cv_prog_CC="${ac_tool_prefix}cc"
3559     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563   done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 CC=$ac_cv_prog_CC
3569 if test -n "$CC"; then
3570   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 printf "%s\n" "$CC" >&6; }
3572 else
3573   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 printf "%s\n" "no" >&6; }
3575 fi
3576
3577
3578   fi
3579 fi
3580 if test -z "$CC"; then
3581   # Extract the first word of "cc", so it can be a program name with args.
3582 set dummy cc; ac_word=$2
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 printf %s "checking for $ac_word... " >&6; }
3585 if test ${ac_cv_prog_CC+y}
3586 then :
3587   printf %s "(cached) " >&6
3588 else $as_nop
3589   if test -n "$CC"; then
3590   ac_cv_prog_CC="$CC" # Let the user override the test.
3591 else
3592   ac_prog_rejected=no
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   case $as_dir in #(((
3598     '') as_dir=./ ;;
3599     */) ;;
3600     *) as_dir=$as_dir/ ;;
3601   esac
3602     for ac_exec_ext in '' $ac_executable_extensions; do
3603   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3605        ac_prog_rejected=yes
3606        continue
3607      fi
3608     ac_cv_prog_CC="cc"
3609     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610     break 2
3611   fi
3612 done
3613   done
3614 IFS=$as_save_IFS
3615
3616 if test $ac_prog_rejected = yes; then
3617   # We found a bogon in the path, so make sure we never use it.
3618   set dummy $ac_cv_prog_CC
3619   shift
3620   if test $# != 0; then
3621     # We chose a different compiler from the bogus one.
3622     # However, it has the same basename, so the bogon will be chosen
3623     # first if we set CC to just the basename; use the full file name.
3624     shift
3625     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3626   fi
3627 fi
3628 fi
3629 fi
3630 CC=$ac_cv_prog_CC
3631 if test -n "$CC"; then
3632   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 printf "%s\n" "$CC" >&6; }
3634 else
3635   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 printf "%s\n" "no" >&6; }
3637 fi
3638
3639
3640 fi
3641 if test -z "$CC"; then
3642   if test -n "$ac_tool_prefix"; then
3643   for ac_prog in cl.exe
3644   do
3645     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_CC+y}
3650 then :
3651   printf %s "(cached) " >&6
3652 else $as_nop
3653   if test -n "$CC"; then
3654   ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   case $as_dir in #(((
3661     '') as_dir=./ ;;
3662     */) ;;
3663     *) as_dir=$as_dir/ ;;
3664   esac
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3669     break 2
3670   fi
3671 done
3672   done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3681 else
3682   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3684 fi
3685
3686
3687     test -n "$CC" && break
3688   done
3689 fi
3690 if test -z "$CC"; then
3691   ac_ct_CC=$CC
3692   for ac_prog in cl.exe
3693 do
3694   # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 printf %s "checking for $ac_word... " >&6; }
3698 if test ${ac_cv_prog_ac_ct_CC+y}
3699 then :
3700   printf %s "(cached) " >&6
3701 else $as_nop
3702   if test -n "$ac_ct_CC"; then
3703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   case $as_dir in #(((
3710     '') as_dir=./ ;;
3711     */) ;;
3712     *) as_dir=$as_dir/ ;;
3713   esac
3714     for ac_exec_ext in '' $ac_executable_extensions; do
3715   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716     ac_cv_prog_ac_ct_CC="$ac_prog"
3717     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718     break 2
3719   fi
3720 done
3721   done
3722 IFS=$as_save_IFS
3723
3724 fi
3725 fi
3726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3727 if test -n "$ac_ct_CC"; then
3728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3729 printf "%s\n" "$ac_ct_CC" >&6; }
3730 else
3731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 printf "%s\n" "no" >&6; }
3733 fi
3734
3735
3736   test -n "$ac_ct_CC" && break
3737 done
3738
3739   if test "x$ac_ct_CC" = x; then
3740     CC=""
3741   else
3742     case $cross_compiling:$ac_tool_warned in
3743 yes:)
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3746 ac_tool_warned=yes ;;
3747 esac
3748     CC=$ac_ct_CC
3749   fi
3750 fi
3751
3752 fi
3753 if test -z "$CC"; then
3754   if test -n "$ac_tool_prefix"; then
3755   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}clang; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_prog_CC+y}
3760 then :
3761   printf %s "(cached) " >&6
3762 else $as_nop
3763   if test -n "$CC"; then
3764   ac_cv_prog_CC="$CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   case $as_dir in #(((
3771     '') as_dir=./ ;;
3772     */) ;;
3773     *) as_dir=$as_dir/ ;;
3774   esac
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777     ac_cv_prog_CC="${ac_tool_prefix}clang"
3778     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779     break 2
3780   fi
3781 done
3782   done
3783 IFS=$as_save_IFS
3784
3785 fi
3786 fi
3787 CC=$ac_cv_prog_CC
3788 if test -n "$CC"; then
3789   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790 printf "%s\n" "$CC" >&6; }
3791 else
3792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3794 fi
3795
3796
3797 fi
3798 if test -z "$ac_cv_prog_CC"; then
3799   ac_ct_CC=$CC
3800   # Extract the first word of "clang", so it can be a program name with args.
3801 set dummy clang; ac_word=$2
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 printf %s "checking for $ac_word... " >&6; }
3804 if test ${ac_cv_prog_ac_ct_CC+y}
3805 then :
3806   printf %s "(cached) " >&6
3807 else $as_nop
3808   if test -n "$ac_ct_CC"; then
3809   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814   IFS=$as_save_IFS
3815   case $as_dir in #(((
3816     '') as_dir=./ ;;
3817     */) ;;
3818     *) as_dir=$as_dir/ ;;
3819   esac
3820     for ac_exec_ext in '' $ac_executable_extensions; do
3821   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3822     ac_cv_prog_ac_ct_CC="clang"
3823     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3824     break 2
3825   fi
3826 done
3827   done
3828 IFS=$as_save_IFS
3829
3830 fi
3831 fi
3832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3833 if test -n "$ac_ct_CC"; then
3834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3835 printf "%s\n" "$ac_ct_CC" >&6; }
3836 else
3837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 printf "%s\n" "no" >&6; }
3839 fi
3840
3841   if test "x$ac_ct_CC" = x; then
3842     CC=""
3843   else
3844     case $cross_compiling:$ac_tool_warned in
3845 yes:)
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3847 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3848 ac_tool_warned=yes ;;
3849 esac
3850     CC=$ac_ct_CC
3851   fi
3852 else
3853   CC="$ac_cv_prog_CC"
3854 fi
3855
3856 fi
3857
3858
3859 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "no acceptable C compiler found in \$PATH
3862 See \`config.log' for more details" "$LINENO" 5; }
3863
3864 # Provide some information about the compiler.
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3866 set X $ac_compile
3867 ac_compiler=$2
3868 for ac_option in --version -v -V -qversion -version; do
3869   { { ac_try="$ac_compiler $ac_option >&5"
3870 case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 printf "%s\n" "$ac_try_echo"; } >&5
3876   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3877   ac_status=$?
3878   if test -s conftest.err; then
3879     sed '10a\
3880 ... rest of stderr output deleted ...
3881          10q' conftest.err >conftest.er1
3882     cat conftest.er1 >&5
3883   fi
3884   rm -f conftest.er1 conftest.err
3885   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886   test $ac_status = 0; }
3887 done
3888
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h.  */
3891
3892 int
3893 main (void)
3894 {
3895
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 ac_clean_files_save=$ac_clean_files
3901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3902 # Try to create an executable without -o first, disregard a.out.
3903 # It will help us diagnose broken compilers, and finding out an intuition
3904 # of exeext.
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3906 printf %s "checking whether the C compiler works... " >&6; }
3907 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3908
3909 # The possible output files:
3910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3911
3912 ac_rmfiles=
3913 for ac_file in $ac_files
3914 do
3915   case $ac_file in
3916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3918   esac
3919 done
3920 rm -f $ac_rmfiles
3921
3922 if { { ac_try="$ac_link_default"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 printf "%s\n" "$ac_try_echo"; } >&5
3929   (eval "$ac_link_default") 2>&5
3930   ac_status=$?
3931   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932   test $ac_status = 0; }
3933 then :
3934   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3935 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3936 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3937 # so that the user can short-circuit this test for compilers unknown to
3938 # Autoconf.
3939 for ac_file in $ac_files ''
3940 do
3941   test -f "$ac_file" || continue
3942   case $ac_file in
3943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3944         ;;
3945     [ab].out )
3946         # We found the default executable, but exeext='' is most
3947         # certainly right.
3948         break;;
3949     *.* )
3950         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3951         then :; else
3952            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3953         fi
3954         # We set ac_cv_exeext here because the later test for it is not
3955         # safe: cross compilers may not add the suffix if given an `-o'
3956         # argument, so we may need to know it at that point already.
3957         # Even if this section looks crufty: it has the advantage of
3958         # actually working.
3959         break;;
3960     * )
3961         break;;
3962   esac
3963 done
3964 test "$ac_cv_exeext" = no && ac_cv_exeext=
3965
3966 else $as_nop
3967   ac_file=''
3968 fi
3969 if test -z "$ac_file"
3970 then :
3971   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 printf "%s\n" "no" >&6; }
3973 printf "%s\n" "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error 77 "C compiler cannot create executables
3979 See \`config.log' for more details" "$LINENO" 5; }
3980 else $as_nop
3981   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982 printf "%s\n" "yes" >&6; }
3983 fi
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3985 printf %s "checking for C compiler default output file name... " >&6; }
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987 printf "%s\n" "$ac_file" >&6; }
3988 ac_exeext=$ac_cv_exeext
3989
3990 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3991 ac_clean_files=$ac_clean_files_save
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 printf %s "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 printf "%s\n" "$ac_try_echo"; } >&5
4001   (eval "$ac_link") 2>&5
4002   ac_status=$?
4003   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004   test $ac_status = 0; }
4005 then :
4006   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4007 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4008 # work properly (i.e., refer to `conftest.exe'), while it won't with
4009 # `rm'.
4010 for ac_file in conftest.exe conftest conftest.*; do
4011   test -f "$ac_file" || continue
4012   case $ac_file in
4013     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4014     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4015           break;;
4016     * ) break;;
4017   esac
4018 done
4019 else $as_nop
4020   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4023 See \`config.log' for more details" "$LINENO" 5; }
4024 fi
4025 rm -f conftest conftest$ac_cv_exeext
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4027 printf "%s\n" "$ac_cv_exeext" >&6; }
4028
4029 rm -f conftest.$ac_ext
4030 EXEEXT=$ac_cv_exeext
4031 ac_exeext=$EXEEXT
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h.  */
4034 #include <stdio.h>
4035 int
4036 main (void)
4037 {
4038 FILE *f = fopen ("conftest.out", "w");
4039  return ferror (f) || fclose (f) != 0;
4040
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 ac_clean_files="$ac_clean_files conftest.out"
4046 # Check that the compiler produces executables we can run.  If not, either
4047 # the compiler is broken, or we cross compile.
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4049 printf %s "checking whether we are cross compiling... " >&6; }
4050 if test "$cross_compiling" != yes; then
4051   { { ac_try="$ac_link"
4052 case "(($ac_try" in
4053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054   *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 printf "%s\n" "$ac_try_echo"; } >&5
4058   (eval "$ac_link") 2>&5
4059   ac_status=$?
4060   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061   test $ac_status = 0; }
4062   if { ac_try='./conftest$ac_cv_exeext'
4063   { { case "(($ac_try" in
4064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065   *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 printf "%s\n" "$ac_try_echo"; } >&5
4069   (eval "$ac_try") 2>&5
4070   ac_status=$?
4071   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072   test $ac_status = 0; }; }; then
4073     cross_compiling=no
4074   else
4075     if test "$cross_compiling" = maybe; then
4076         cross_compiling=yes
4077     else
4078         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error 77 "cannot run C compiled programs.
4081 If you meant to cross compile, use \`--host'.
4082 See \`config.log' for more details" "$LINENO" 5; }
4083     fi
4084   fi
4085 fi
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4087 printf "%s\n" "$cross_compiling" >&6; }
4088
4089 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4090 ac_clean_files=$ac_clean_files_save
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4092 printf %s "checking for suffix of object files... " >&6; }
4093 if test ${ac_cv_objext+y}
4094 then :
4095   printf %s "(cached) " >&6
4096 else $as_nop
4097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4099
4100 int
4101 main (void)
4102 {
4103
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 rm -f conftest.o conftest.obj
4109 if { { ac_try="$ac_compile"
4110 case "(($ac_try" in
4111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112   *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 printf "%s\n" "$ac_try_echo"; } >&5
4116   (eval "$ac_compile") 2>&5
4117   ac_status=$?
4118   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119   test $ac_status = 0; }
4120 then :
4121   for ac_file in conftest.o conftest.obj conftest.*; do
4122   test -f "$ac_file" || continue;
4123   case $ac_file in
4124     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4125     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4126        break;;
4127   esac
4128 done
4129 else $as_nop
4130   printf "%s\n" "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4135 as_fn_error $? "cannot compute suffix of object files: cannot compile
4136 See \`config.log' for more details" "$LINENO" 5; }
4137 fi
4138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4139 fi
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4141 printf "%s\n" "$ac_cv_objext" >&6; }
4142 OBJEXT=$ac_cv_objext
4143 ac_objext=$OBJEXT
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4145 printf %s "checking whether the compiler supports GNU C... " >&6; }
4146 if test ${ac_cv_c_compiler_gnu+y}
4147 then :
4148   printf %s "(cached) " >&6
4149 else $as_nop
4150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h.  */
4152
4153 int
4154 main (void)
4155 {
4156 #ifndef __GNUC__
4157        choke me
4158 #endif
4159
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"
4165 then :
4166   ac_compiler_gnu=yes
4167 else $as_nop
4168   ac_compiler_gnu=no
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4172
4173 fi
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
4178 if test $ac_compiler_gnu = yes; then
4179   GCC=yes
4180 else
4181   GCC=
4182 fi
4183 ac_test_CFLAGS=${CFLAGS+y}
4184 ac_save_CFLAGS=$CFLAGS
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4186 printf %s "checking whether $CC accepts -g... " >&6; }
4187 if test ${ac_cv_prog_cc_g+y}
4188 then :
4189   printf %s "(cached) " >&6
4190 else $as_nop
4191   ac_save_c_werror_flag=$ac_c_werror_flag
4192    ac_c_werror_flag=yes
4193    ac_cv_prog_cc_g=no
4194    CFLAGS="-g"
4195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h.  */
4197
4198 int
4199 main (void)
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"
4207 then :
4208   ac_cv_prog_cc_g=yes
4209 else $as_nop
4210   CFLAGS=""
4211       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h.  */
4213
4214 int
4215 main (void)
4216 {
4217
4218   ;
4219   return 0;
4220 }
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"
4223 then :
4224
4225 else $as_nop
4226   ac_c_werror_flag=$ac_save_c_werror_flag
4227          CFLAGS="-g"
4228          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h.  */
4230
4231 int
4232 main (void)
4233 {
4234
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_c_try_compile "$LINENO"
4240 then :
4241   ac_cv_prog_cc_g=yes
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4244 fi
4245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4248    ac_c_werror_flag=$ac_save_c_werror_flag
4249 fi
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4251 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4252 if test $ac_test_CFLAGS; then
4253   CFLAGS=$ac_save_CFLAGS
4254 elif test $ac_cv_prog_cc_g = yes; then
4255   if test "$GCC" = yes; then
4256     CFLAGS="-g -O2"
4257   else
4258     CFLAGS="-g"
4259   fi
4260 else
4261   if test "$GCC" = yes; then
4262     CFLAGS="-O2"
4263   else
4264     CFLAGS=
4265   fi
4266 fi
4267 ac_prog_cc_stdc=no
4268 if test x$ac_prog_cc_stdc = xno
4269 then :
4270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4271 printf %s "checking for $CC option to enable C11 features... " >&6; }
4272 if test ${ac_cv_prog_cc_c11+y}
4273 then :
4274   printf %s "(cached) " >&6
4275 else $as_nop
4276   ac_cv_prog_cc_c11=no
4277 ac_save_CC=$CC
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280 $ac_c_conftest_c11_program
4281 _ACEOF
4282 for ac_arg in '' -std=gnu11
4283 do
4284   CC="$ac_save_CC $ac_arg"
4285   if ac_fn_c_try_compile "$LINENO"
4286 then :
4287   ac_cv_prog_cc_c11=$ac_arg
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.beam
4290   test "x$ac_cv_prog_cc_c11" != "xno" && break
4291 done
4292 rm -f conftest.$ac_ext
4293 CC=$ac_save_CC
4294 fi
4295
4296 if test "x$ac_cv_prog_cc_c11" = xno
4297 then :
4298   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4299 printf "%s\n" "unsupported" >&6; }
4300 else $as_nop
4301   if test "x$ac_cv_prog_cc_c11" = x
4302 then :
4303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4304 printf "%s\n" "none needed" >&6; }
4305 else $as_nop
4306   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4307 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4308      CC="$CC $ac_cv_prog_cc_c11"
4309 fi
4310   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4311   ac_prog_cc_stdc=c11
4312 fi
4313 fi
4314 if test x$ac_prog_cc_stdc = xno
4315 then :
4316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4317 printf %s "checking for $CC option to enable C99 features... " >&6; }
4318 if test ${ac_cv_prog_cc_c99+y}
4319 then :
4320   printf %s "(cached) " >&6
4321 else $as_nop
4322   ac_cv_prog_cc_c99=no
4323 ac_save_CC=$CC
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h.  */
4326 $ac_c_conftest_c99_program
4327 _ACEOF
4328 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4329 do
4330   CC="$ac_save_CC $ac_arg"
4331   if ac_fn_c_try_compile "$LINENO"
4332 then :
4333   ac_cv_prog_cc_c99=$ac_arg
4334 fi
4335 rm -f core conftest.err conftest.$ac_objext conftest.beam
4336   test "x$ac_cv_prog_cc_c99" != "xno" && break
4337 done
4338 rm -f conftest.$ac_ext
4339 CC=$ac_save_CC
4340 fi
4341
4342 if test "x$ac_cv_prog_cc_c99" = xno
4343 then :
4344   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4345 printf "%s\n" "unsupported" >&6; }
4346 else $as_nop
4347   if test "x$ac_cv_prog_cc_c99" = x
4348 then :
4349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4350 printf "%s\n" "none needed" >&6; }
4351 else $as_nop
4352   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4353 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4354      CC="$CC $ac_cv_prog_cc_c99"
4355 fi
4356   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4357   ac_prog_cc_stdc=c99
4358 fi
4359 fi
4360 if test x$ac_prog_cc_stdc = xno
4361 then :
4362   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4363 printf %s "checking for $CC option to enable C89 features... " >&6; }
4364 if test ${ac_cv_prog_cc_c89+y}
4365 then :
4366   printf %s "(cached) " >&6
4367 else $as_nop
4368   ac_cv_prog_cc_c89=no
4369 ac_save_CC=$CC
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h.  */
4372 $ac_c_conftest_c89_program
4373 _ACEOF
4374 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4375 do
4376   CC="$ac_save_CC $ac_arg"
4377   if ac_fn_c_try_compile "$LINENO"
4378 then :
4379   ac_cv_prog_cc_c89=$ac_arg
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.beam
4382   test "x$ac_cv_prog_cc_c89" != "xno" && break
4383 done
4384 rm -f conftest.$ac_ext
4385 CC=$ac_save_CC
4386 fi
4387
4388 if test "x$ac_cv_prog_cc_c89" = xno
4389 then :
4390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4391 printf "%s\n" "unsupported" >&6; }
4392 else $as_nop
4393   if test "x$ac_cv_prog_cc_c89" = x
4394 then :
4395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396 printf "%s\n" "none needed" >&6; }
4397 else $as_nop
4398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4399 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4400      CC="$CC $ac_cv_prog_cc_c89"
4401 fi
4402   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4403   ac_prog_cc_stdc=c89
4404 fi
4405 fi
4406
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
4413
4414 ac_header= ac_cache=
4415 for ac_item in $ac_header_c_list
4416 do
4417   if test $ac_cache; then
4418     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4419     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4420       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4421     fi
4422     ac_header= ac_cache=
4423   elif test $ac_header; then
4424     ac_cache=$ac_item
4425   else
4426     ac_header=$ac_item
4427   fi
4428 done
4429
4430
4431
4432
4433
4434
4435
4436
4437 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4438 then :
4439
4440 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4441
4442 fi
4443
4444
4445
4446
4447
4448
4449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4450 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4451 if test ${ac_cv_safe_to_define___extensions__+y}
4452 then :
4453   printf %s "(cached) " >&6
4454 else $as_nop
4455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h.  */
4457
4458 #         define __EXTENSIONS__ 1
4459           $ac_includes_default
4460 int
4461 main (void)
4462 {
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"
4469 then :
4470   ac_cv_safe_to_define___extensions__=yes
4471 else $as_nop
4472   ac_cv_safe_to_define___extensions__=no
4473 fi
4474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4475 fi
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4477 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4478
4479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4480 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4481 if test ${ac_cv_should_define__xopen_source+y}
4482 then :
4483   printf %s "(cached) " >&6
4484 else $as_nop
4485   ac_cv_should_define__xopen_source=no
4486     if test $ac_cv_header_wchar_h = yes
4487 then :
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490
4491           #include <wchar.h>
4492           mbstate_t x;
4493 int
4494 main (void)
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_c_try_compile "$LINENO"
4502 then :
4503
4504 else $as_nop
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507
4508             #define _XOPEN_SOURCE 500
4509             #include <wchar.h>
4510             mbstate_t x;
4511 int
4512 main (void)
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"
4520 then :
4521   ac_cv_should_define__xopen_source=yes
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4526 fi
4527 fi
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4529 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4530
4531   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4532
4533   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4534
4535   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4536
4537   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4538
4539   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4540
4541   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4542
4543   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4544
4545   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4546
4547   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4548
4549   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4550
4551   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4552
4553   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4554
4555   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4556
4557   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4558
4559   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4560
4561   if test $ac_cv_header_minix_config_h = yes
4562 then :
4563   MINIX=yes
4564     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4565
4566     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4567
4568     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4569
4570 else $as_nop
4571   MINIX=
4572 fi
4573   if test $ac_cv_safe_to_define___extensions__ = yes
4574 then :
4575   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4576
4577 fi
4578   if test $ac_cv_should_define__xopen_source = yes
4579 then :
4580   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4581
4582 fi
4583
4584 MCONFIG=./MCONFIG
4585
4586 BINARY_TYPE=bin
4587 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VER/ { print $2 }' ${srcdir}/version.h`
4588 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4589 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4590 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4591 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4592
4593 if expr $YEAR ">" 1900 > /dev/null ; then
4594         E2FSPROGS_YEAR=$YEAR
4595 elif expr $YEAR ">" 90 >/dev/null ; then
4596         E2FSPROGS_YEAR=19$YEAR
4597 else
4598         E2FSPROGS_YEAR=20$YEAR
4599 fi
4600
4601 case $MONTH in
4602 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4603 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4604 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4605 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4606 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4607 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4608 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4609 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4610 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4611 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4612 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4613 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4614 *)      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4615 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4616 esac
4617
4618 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4619 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4620
4621 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4622
4623 case $E2FSPROGS_VERSION in
4624 *-WIP|pre-*)
4625         E2FSPROGS_PKGVER="$base_ver"
4626         E2FSPROGS_PKGREL="WIP.$date_spec"
4627         ;;
4628 *)
4629         E2FSPROGS_PKGVER="$base_ver"
4630         E2FSPROGS_PKGREL="$base_rel"
4631         ;;
4632 esac
4633
4634 unset DATE MONTH YEAR base_ver pre_vers date_spec
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4636 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4638 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4639
4640
4641
4642
4643
4644
4645 WITH_DIET_LIBC=
4646
4647 # Check whether --with-diet-libc was given.
4648 if test ${with_diet_libc+y}
4649 then :
4650   withval=$with_diet_libc; CC="diet cc -nostdinc"
4651 WITH_DIET_LIBC=yes
4652 if test -z "$LIBS"
4653 then
4654         LIBS="-lcompat"
4655 else
4656         LIBS="$LIBS -lcompat"
4657 fi
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4659 printf "%s\n" "CC=$CC" >&6; }
4660 fi
4661
4662
4663
4664   # Make sure we can run config.sub.
4665 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4666   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4667
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4669 printf %s "checking build system type... " >&6; }
4670 if test ${ac_cv_build+y}
4671 then :
4672   printf %s "(cached) " >&6
4673 else $as_nop
4674   ac_build_alias=$build_alias
4675 test "x$ac_build_alias" = x &&
4676   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4677 test "x$ac_build_alias" = x &&
4678   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4679 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4680   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4681
4682 fi
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4684 printf "%s\n" "$ac_cv_build" >&6; }
4685 case $ac_cv_build in
4686 *-*-*) ;;
4687 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4688 esac
4689 build=$ac_cv_build
4690 ac_save_IFS=$IFS; IFS='-'
4691 set x $ac_cv_build
4692 shift
4693 build_cpu=$1
4694 build_vendor=$2
4695 shift; shift
4696 # Remember, the first character of IFS is used to create $*,
4697 # except with old shells:
4698 build_os=$*
4699 IFS=$ac_save_IFS
4700 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4701
4702
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4704 printf %s "checking host system type... " >&6; }
4705 if test ${ac_cv_host+y}
4706 then :
4707   printf %s "(cached) " >&6
4708 else $as_nop
4709   if test "x$host_alias" = x; then
4710   ac_cv_host=$ac_cv_build
4711 else
4712   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4713     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4714 fi
4715
4716 fi
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4718 printf "%s\n" "$ac_cv_host" >&6; }
4719 case $ac_cv_host in
4720 *-*-*) ;;
4721 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4722 esac
4723 host=$ac_cv_host
4724 ac_save_IFS=$IFS; IFS='-'
4725 set x $ac_cv_host
4726 shift
4727 host_cpu=$1
4728 host_vendor=$2
4729 shift; shift
4730 # Remember, the first character of IFS is used to create $*,
4731 # except with old shells:
4732 host_os=$*
4733 IFS=$ac_save_IFS
4734 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4735
4736
4737 DLOPEN_LIB=''
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4739 printf %s "checking for dlopen in -ldl... " >&6; }
4740 if test ${ac_cv_lib_dl_dlopen+y}
4741 then :
4742   printf %s "(cached) " >&6
4743 else $as_nop
4744   ac_check_lib_save_LIBS=$LIBS
4745 LIBS="-ldl  $LIBS"
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h.  */
4748
4749 /* Override any GCC internal prototype to avoid an error.
4750    Use char because int might match the return type of a GCC
4751    builtin and then its argument prototype would still apply.  */
4752 char dlopen ();
4753 int
4754 main (void)
4755 {
4756 return dlopen ();
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_link "$LINENO"
4762 then :
4763   ac_cv_lib_dl_dlopen=yes
4764 else $as_nop
4765   ac_cv_lib_dl_dlopen=no
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4768     conftest$ac_exeext conftest.$ac_ext
4769 LIBS=$ac_check_lib_save_LIBS
4770 fi
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4772 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4773 if test "x$ac_cv_lib_dl_dlopen" = xyes
4774 then :
4775   DLOPEN_LIB=-ldl
4776 fi
4777
4778
4779
4780 # Check whether --with-cc was given.
4781 if test ${with_cc+y}
4782 then :
4783   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4784 fi
4785
4786
4787 # Check whether --with-ccopts was given.
4788 if test ${with_ccopts+y}
4789 then :
4790   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4791 fi
4792
4793
4794 # Check whether --with-ldopts was given.
4795 if test ${with_ldopts+y}
4796 then :
4797   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4798 fi
4799
4800 ac_ext=c
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805 if test -n "$ac_tool_prefix"; then
4806   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 printf %s "checking for $ac_word... " >&6; }
4810 if test ${ac_cv_prog_CC+y}
4811 then :
4812   printf %s "(cached) " >&6
4813 else $as_nop
4814   if test -n "$CC"; then
4815   ac_cv_prog_CC="$CC" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820   IFS=$as_save_IFS
4821   case $as_dir in #(((
4822     '') as_dir=./ ;;
4823     */) ;;
4824     *) as_dir=$as_dir/ ;;
4825   esac
4826     for ac_exec_ext in '' $ac_executable_extensions; do
4827   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4828     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4829     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833   done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 CC=$ac_cv_prog_CC
4839 if test -n "$CC"; then
4840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4841 printf "%s\n" "$CC" >&6; }
4842 else
4843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 printf "%s\n" "no" >&6; }
4845 fi
4846
4847
4848 fi
4849 if test -z "$ac_cv_prog_CC"; then
4850   ac_ct_CC=$CC
4851   # Extract the first word of "gcc", so it can be a program name with args.
4852 set dummy gcc; ac_word=$2
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 printf %s "checking for $ac_word... " >&6; }
4855 if test ${ac_cv_prog_ac_ct_CC+y}
4856 then :
4857   printf %s "(cached) " >&6
4858 else $as_nop
4859   if test -n "$ac_ct_CC"; then
4860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   case $as_dir in #(((
4867     '') as_dir=./ ;;
4868     */) ;;
4869     *) as_dir=$as_dir/ ;;
4870   esac
4871     for ac_exec_ext in '' $ac_executable_extensions; do
4872   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4873     ac_cv_prog_ac_ct_CC="gcc"
4874     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878   done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4886 printf "%s\n" "$ac_ct_CC" >&6; }
4887 else
4888   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 printf "%s\n" "no" >&6; }
4890 fi
4891
4892   if test "x$ac_ct_CC" = x; then
4893     CC=""
4894   else
4895     case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901     CC=$ac_ct_CC
4902   fi
4903 else
4904   CC="$ac_cv_prog_CC"
4905 fi
4906
4907 if test -z "$CC"; then
4908           if test -n "$ac_tool_prefix"; then
4909     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4910 set dummy ${ac_tool_prefix}cc; ac_word=$2
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 printf %s "checking for $ac_word... " >&6; }
4913 if test ${ac_cv_prog_CC+y}
4914 then :
4915   printf %s "(cached) " >&6
4916 else $as_nop
4917   if test -n "$CC"; then
4918   ac_cv_prog_CC="$CC" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   case $as_dir in #(((
4925     '') as_dir=./ ;;
4926     */) ;;
4927     *) as_dir=$as_dir/ ;;
4928   esac
4929     for ac_exec_ext in '' $ac_executable_extensions; do
4930   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4931     ac_cv_prog_CC="${ac_tool_prefix}cc"
4932     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4933     break 2
4934   fi
4935 done
4936   done
4937 IFS=$as_save_IFS
4938
4939 fi
4940 fi
4941 CC=$ac_cv_prog_CC
4942 if test -n "$CC"; then
4943   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4944 printf "%s\n" "$CC" >&6; }
4945 else
4946   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 printf "%s\n" "no" >&6; }
4948 fi
4949
4950
4951   fi
4952 fi
4953 if test -z "$CC"; then
4954   # Extract the first word of "cc", so it can be a program name with args.
4955 set dummy cc; ac_word=$2
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 printf %s "checking for $ac_word... " >&6; }
4958 if test ${ac_cv_prog_CC+y}
4959 then :
4960   printf %s "(cached) " >&6
4961 else $as_nop
4962   if test -n "$CC"; then
4963   ac_cv_prog_CC="$CC" # Let the user override the test.
4964 else
4965   ac_prog_rejected=no
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   case $as_dir in #(((
4971     '') as_dir=./ ;;
4972     */) ;;
4973     *) as_dir=$as_dir/ ;;
4974   esac
4975     for ac_exec_ext in '' $ac_executable_extensions; do
4976   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4977     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4978        ac_prog_rejected=yes
4979        continue
4980      fi
4981     ac_cv_prog_CC="cc"
4982     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4983     break 2
4984   fi
4985 done
4986   done
4987 IFS=$as_save_IFS
4988
4989 if test $ac_prog_rejected = yes; then
4990   # We found a bogon in the path, so make sure we never use it.
4991   set dummy $ac_cv_prog_CC
4992   shift
4993   if test $# != 0; then
4994     # We chose a different compiler from the bogus one.
4995     # However, it has the same basename, so the bogon will be chosen
4996     # first if we set CC to just the basename; use the full file name.
4997     shift
4998     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4999   fi
5000 fi
5001 fi
5002 fi
5003 CC=$ac_cv_prog_CC
5004 if test -n "$CC"; then
5005   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5006 printf "%s\n" "$CC" >&6; }
5007 else
5008   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 printf "%s\n" "no" >&6; }
5010 fi
5011
5012
5013 fi
5014 if test -z "$CC"; then
5015   if test -n "$ac_tool_prefix"; then
5016   for ac_prog in cl.exe
5017   do
5018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 printf %s "checking for $ac_word... " >&6; }
5022 if test ${ac_cv_prog_CC+y}
5023 then :
5024   printf %s "(cached) " >&6
5025 else $as_nop
5026   if test -n "$CC"; then
5027   ac_cv_prog_CC="$CC" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   case $as_dir in #(((
5034     '') as_dir=./ ;;
5035     */) ;;
5036     *) as_dir=$as_dir/ ;;
5037   esac
5038     for ac_exec_ext in '' $ac_executable_extensions; do
5039   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5040     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5041     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045   done
5046 IFS=$as_save_IFS
5047
5048 fi
5049 fi
5050 CC=$ac_cv_prog_CC
5051 if test -n "$CC"; then
5052   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5053 printf "%s\n" "$CC" >&6; }
5054 else
5055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 printf "%s\n" "no" >&6; }
5057 fi
5058
5059
5060     test -n "$CC" && break
5061   done
5062 fi
5063 if test -z "$CC"; then
5064   ac_ct_CC=$CC
5065   for ac_prog in cl.exe
5066 do
5067   # Extract the first word of "$ac_prog", so it can be a program name with args.
5068 set dummy $ac_prog; ac_word=$2
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 printf %s "checking for $ac_word... " >&6; }
5071 if test ${ac_cv_prog_ac_ct_CC+y}
5072 then :
5073   printf %s "(cached) " >&6
5074 else $as_nop
5075   if test -n "$ac_ct_CC"; then
5076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   case $as_dir in #(((
5083     '') as_dir=./ ;;
5084     */) ;;
5085     *) as_dir=$as_dir/ ;;
5086   esac
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5089     ac_cv_prog_ac_ct_CC="$ac_prog"
5090     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5100 if test -n "$ac_ct_CC"; then
5101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5102 printf "%s\n" "$ac_ct_CC" >&6; }
5103 else
5104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 printf "%s\n" "no" >&6; }
5106 fi
5107
5108
5109   test -n "$ac_ct_CC" && break
5110 done
5111
5112   if test "x$ac_ct_CC" = x; then
5113     CC=""
5114   else
5115     case $cross_compiling:$ac_tool_warned in
5116 yes:)
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119 ac_tool_warned=yes ;;
5120 esac
5121     CC=$ac_ct_CC
5122   fi
5123 fi
5124
5125 fi
5126 if test -z "$CC"; then
5127   if test -n "$ac_tool_prefix"; then
5128   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5129 set dummy ${ac_tool_prefix}clang; ac_word=$2
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 printf %s "checking for $ac_word... " >&6; }
5132 if test ${ac_cv_prog_CC+y}
5133 then :
5134   printf %s "(cached) " >&6
5135 else $as_nop
5136   if test -n "$CC"; then
5137   ac_cv_prog_CC="$CC" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   case $as_dir in #(((
5144     '') as_dir=./ ;;
5145     */) ;;
5146     *) as_dir=$as_dir/ ;;
5147   esac
5148     for ac_exec_ext in '' $ac_executable_extensions; do
5149   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5150     ac_cv_prog_CC="${ac_tool_prefix}clang"
5151     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5152     break 2
5153   fi
5154 done
5155   done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 CC=$ac_cv_prog_CC
5161 if test -n "$CC"; then
5162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5163 printf "%s\n" "$CC" >&6; }
5164 else
5165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 printf "%s\n" "no" >&6; }
5167 fi
5168
5169
5170 fi
5171 if test -z "$ac_cv_prog_CC"; then
5172   ac_ct_CC=$CC
5173   # Extract the first word of "clang", so it can be a program name with args.
5174 set dummy clang; ac_word=$2
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 printf %s "checking for $ac_word... " >&6; }
5177 if test ${ac_cv_prog_ac_ct_CC+y}
5178 then :
5179   printf %s "(cached) " >&6
5180 else $as_nop
5181   if test -n "$ac_ct_CC"; then
5182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187   IFS=$as_save_IFS
5188   case $as_dir in #(((
5189     '') as_dir=./ ;;
5190     */) ;;
5191     *) as_dir=$as_dir/ ;;
5192   esac
5193     for ac_exec_ext in '' $ac_executable_extensions; do
5194   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5195     ac_cv_prog_ac_ct_CC="clang"
5196     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200   done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5206 if test -n "$ac_ct_CC"; then
5207   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5208 printf "%s\n" "$ac_ct_CC" >&6; }
5209 else
5210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 printf "%s\n" "no" >&6; }
5212 fi
5213
5214   if test "x$ac_ct_CC" = x; then
5215     CC=""
5216   else
5217     case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223     CC=$ac_ct_CC
5224   fi
5225 else
5226   CC="$ac_cv_prog_CC"
5227 fi
5228
5229 fi
5230
5231
5232 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5233 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5234 as_fn_error $? "no acceptable C compiler found in \$PATH
5235 See \`config.log' for more details" "$LINENO" 5; }
5236
5237 # Provide some information about the compiler.
5238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5239 set X $ac_compile
5240 ac_compiler=$2
5241 for ac_option in --version -v -V -qversion -version; do
5242   { { ac_try="$ac_compiler $ac_option >&5"
5243 case "(($ac_try" in
5244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245   *) ac_try_echo=$ac_try;;
5246 esac
5247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5248 printf "%s\n" "$ac_try_echo"; } >&5
5249   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5250   ac_status=$?
5251   if test -s conftest.err; then
5252     sed '10a\
5253 ... rest of stderr output deleted ...
5254          10q' conftest.err >conftest.er1
5255     cat conftest.er1 >&5
5256   fi
5257   rm -f conftest.er1 conftest.err
5258   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259   test $ac_status = 0; }
5260 done
5261
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5263 printf %s "checking whether the compiler supports GNU C... " >&6; }
5264 if test ${ac_cv_c_compiler_gnu+y}
5265 then :
5266   printf %s "(cached) " >&6
5267 else $as_nop
5268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h.  */
5270
5271 int
5272 main (void)
5273 {
5274 #ifndef __GNUC__
5275        choke me
5276 #endif
5277
5278   ;
5279   return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"
5283 then :
5284   ac_compiler_gnu=yes
5285 else $as_nop
5286   ac_compiler_gnu=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5290
5291 fi
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5293 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295
5296 if test $ac_compiler_gnu = yes; then
5297   GCC=yes
5298 else
5299   GCC=
5300 fi
5301 ac_test_CFLAGS=${CFLAGS+y}
5302 ac_save_CFLAGS=$CFLAGS
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5304 printf %s "checking whether $CC accepts -g... " >&6; }
5305 if test ${ac_cv_prog_cc_g+y}
5306 then :
5307   printf %s "(cached) " >&6
5308 else $as_nop
5309   ac_save_c_werror_flag=$ac_c_werror_flag
5310    ac_c_werror_flag=yes
5311    ac_cv_prog_cc_g=no
5312    CFLAGS="-g"
5313    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h.  */
5315
5316 int
5317 main (void)
5318 {
5319
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_c_try_compile "$LINENO"
5325 then :
5326   ac_cv_prog_cc_g=yes
5327 else $as_nop
5328   CFLAGS=""
5329       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331
5332 int
5333 main (void)
5334 {
5335
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"
5341 then :
5342
5343 else $as_nop
5344   ac_c_werror_flag=$ac_save_c_werror_flag
5345          CFLAGS="-g"
5346          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h.  */
5348
5349 int
5350 main (void)
5351 {
5352
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"
5358 then :
5359   ac_cv_prog_cc_g=yes
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5362 fi
5363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5364 fi
5365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5366    ac_c_werror_flag=$ac_save_c_werror_flag
5367 fi
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5369 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5370 if test $ac_test_CFLAGS; then
5371   CFLAGS=$ac_save_CFLAGS
5372 elif test $ac_cv_prog_cc_g = yes; then
5373   if test "$GCC" = yes; then
5374     CFLAGS="-g -O2"
5375   else
5376     CFLAGS="-g"
5377   fi
5378 else
5379   if test "$GCC" = yes; then
5380     CFLAGS="-O2"
5381   else
5382     CFLAGS=
5383   fi
5384 fi
5385 ac_prog_cc_stdc=no
5386 if test x$ac_prog_cc_stdc = xno
5387 then :
5388   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5389 printf %s "checking for $CC option to enable C11 features... " >&6; }
5390 if test ${ac_cv_prog_cc_c11+y}
5391 then :
5392   printf %s "(cached) " >&6
5393 else $as_nop
5394   ac_cv_prog_cc_c11=no
5395 ac_save_CC=$CC
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h.  */
5398 $ac_c_conftest_c11_program
5399 _ACEOF
5400 for ac_arg in '' -std=gnu11
5401 do
5402   CC="$ac_save_CC $ac_arg"
5403   if ac_fn_c_try_compile "$LINENO"
5404 then :
5405   ac_cv_prog_cc_c11=$ac_arg
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.beam
5408   test "x$ac_cv_prog_cc_c11" != "xno" && break
5409 done
5410 rm -f conftest.$ac_ext
5411 CC=$ac_save_CC
5412 fi
5413
5414 if test "x$ac_cv_prog_cc_c11" = xno
5415 then :
5416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5417 printf "%s\n" "unsupported" >&6; }
5418 else $as_nop
5419   if test "x$ac_cv_prog_cc_c11" = x
5420 then :
5421   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5422 printf "%s\n" "none needed" >&6; }
5423 else $as_nop
5424   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5425 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5426      CC="$CC $ac_cv_prog_cc_c11"
5427 fi
5428   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5429   ac_prog_cc_stdc=c11
5430 fi
5431 fi
5432 if test x$ac_prog_cc_stdc = xno
5433 then :
5434   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5435 printf %s "checking for $CC option to enable C99 features... " >&6; }
5436 if test ${ac_cv_prog_cc_c99+y}
5437 then :
5438   printf %s "(cached) " >&6
5439 else $as_nop
5440   ac_cv_prog_cc_c99=no
5441 ac_save_CC=$CC
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h.  */
5444 $ac_c_conftest_c99_program
5445 _ACEOF
5446 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5447 do
5448   CC="$ac_save_CC $ac_arg"
5449   if ac_fn_c_try_compile "$LINENO"
5450 then :
5451   ac_cv_prog_cc_c99=$ac_arg
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.beam
5454   test "x$ac_cv_prog_cc_c99" != "xno" && break
5455 done
5456 rm -f conftest.$ac_ext
5457 CC=$ac_save_CC
5458 fi
5459
5460 if test "x$ac_cv_prog_cc_c99" = xno
5461 then :
5462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5463 printf "%s\n" "unsupported" >&6; }
5464 else $as_nop
5465   if test "x$ac_cv_prog_cc_c99" = x
5466 then :
5467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5468 printf "%s\n" "none needed" >&6; }
5469 else $as_nop
5470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5471 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5472      CC="$CC $ac_cv_prog_cc_c99"
5473 fi
5474   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5475   ac_prog_cc_stdc=c99
5476 fi
5477 fi
5478 if test x$ac_prog_cc_stdc = xno
5479 then :
5480   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5481 printf %s "checking for $CC option to enable C89 features... " >&6; }
5482 if test ${ac_cv_prog_cc_c89+y}
5483 then :
5484   printf %s "(cached) " >&6
5485 else $as_nop
5486   ac_cv_prog_cc_c89=no
5487 ac_save_CC=$CC
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h.  */
5490 $ac_c_conftest_c89_program
5491 _ACEOF
5492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5493 do
5494   CC="$ac_save_CC $ac_arg"
5495   if ac_fn_c_try_compile "$LINENO"
5496 then :
5497   ac_cv_prog_cc_c89=$ac_arg
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext conftest.beam
5500   test "x$ac_cv_prog_cc_c89" != "xno" && break
5501 done
5502 rm -f conftest.$ac_ext
5503 CC=$ac_save_CC
5504 fi
5505
5506 if test "x$ac_cv_prog_cc_c89" = xno
5507 then :
5508   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5509 printf "%s\n" "unsupported" >&6; }
5510 else $as_nop
5511   if test "x$ac_cv_prog_cc_c89" = x
5512 then :
5513   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5514 printf "%s\n" "none needed" >&6; }
5515 else $as_nop
5516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5517 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5518      CC="$CC $ac_cv_prog_cc_c89"
5519 fi
5520   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5521   ac_prog_cc_stdc=c89
5522 fi
5523 fi
5524
5525 ac_ext=c
5526 ac_cpp='$CPP $CPPFLAGS'
5527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530
5531 if test "$GCC" = yes; then
5532    RDYNAMIC="-rdynamic"
5533
5534 fi
5535 ac_ext=c
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5541 printf %s "checking how to run the C preprocessor... " >&6; }
5542 # On Suns, sometimes $CPP names a directory.
5543 if test -n "$CPP" && test -d "$CPP"; then
5544   CPP=
5545 fi
5546 if test -z "$CPP"; then
5547   if test ${ac_cv_prog_CPP+y}
5548 then :
5549   printf %s "(cached) " >&6
5550 else $as_nop
5551       # Double quotes because $CC needs to be expanded
5552     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5553     do
5554       ac_preproc_ok=false
5555 for ac_c_preproc_warn_flag in '' yes
5556 do
5557   # Use a header file that comes with gcc, so configuring glibc
5558   # with a fresh cross-compiler works.
5559   # On the NeXT, cc -E runs the code through the compiler's parser,
5560   # not just through cpp. "Syntax error" is here to catch this case.
5561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h.  */
5563 #include <limits.h>
5564                      Syntax error
5565 _ACEOF
5566 if ac_fn_c_try_cpp "$LINENO"
5567 then :
5568
5569 else $as_nop
5570   # Broken: fails on valid input.
5571 continue
5572 fi
5573 rm -f conftest.err conftest.i conftest.$ac_ext
5574
5575   # OK, works on sane cases.  Now check whether nonexistent headers
5576   # can be detected and how.
5577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h.  */
5579 #include <ac_nonexistent.h>
5580 _ACEOF
5581 if ac_fn_c_try_cpp "$LINENO"
5582 then :
5583   # Broken: success on invalid input.
5584 continue
5585 else $as_nop
5586   # Passes both tests.
5587 ac_preproc_ok=:
5588 break
5589 fi
5590 rm -f conftest.err conftest.i conftest.$ac_ext
5591
5592 done
5593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5594 rm -f conftest.i conftest.err conftest.$ac_ext
5595 if $ac_preproc_ok
5596 then :
5597   break
5598 fi
5599
5600     done
5601     ac_cv_prog_CPP=$CPP
5602
5603 fi
5604   CPP=$ac_cv_prog_CPP
5605 else
5606   ac_cv_prog_CPP=$CPP
5607 fi
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5609 printf "%s\n" "$CPP" >&6; }
5610 ac_preproc_ok=false
5611 for ac_c_preproc_warn_flag in '' yes
5612 do
5613   # Use a header file that comes with gcc, so configuring glibc
5614   # with a fresh cross-compiler works.
5615   # On the NeXT, cc -E runs the code through the compiler's parser,
5616   # not just through cpp. "Syntax error" is here to catch this case.
5617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h.  */
5619 #include <limits.h>
5620                      Syntax error
5621 _ACEOF
5622 if ac_fn_c_try_cpp "$LINENO"
5623 then :
5624
5625 else $as_nop
5626   # Broken: fails on valid input.
5627 continue
5628 fi
5629 rm -f conftest.err conftest.i conftest.$ac_ext
5630
5631   # OK, works on sane cases.  Now check whether nonexistent headers
5632   # can be detected and how.
5633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635 #include <ac_nonexistent.h>
5636 _ACEOF
5637 if ac_fn_c_try_cpp "$LINENO"
5638 then :
5639   # Broken: success on invalid input.
5640 continue
5641 else $as_nop
5642   # Passes both tests.
5643 ac_preproc_ok=:
5644 break
5645 fi
5646 rm -f conftest.err conftest.i conftest.$ac_ext
5647
5648 done
5649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5650 rm -f conftest.i conftest.err conftest.$ac_ext
5651 if $ac_preproc_ok
5652 then :
5653
5654 else $as_nop
5655   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5656 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5657 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5658 See \`config.log' for more details" "$LINENO" 5; }
5659 fi
5660
5661 ac_ext=c
5662 ac_cpp='$CPP $CPPFLAGS'
5663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5668 printf %s "checking for additional special compiler flags... " >&6; }
5669 if test "$GCC" = yes
5670 then
5671     case "$host_cpu" in
5672         alpha)          addcflags="-mieee" ;;
5673     esac
5674 fi
5675 if test "x$addcflags" != x
5676 then
5677     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5678 printf "%s\n" "$addcflags" >&6; }
5679     CFLAGS="$addcflags $CFLAGS"
5680 else
5681     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5682 printf "%s\n" "(none)" >&6; }
5683 fi
5684 LIB_EXT=.a
5685 STATIC_LIB_EXT=.a
5686 PROFILED_LIB_EXT=.a
5687
5688 # Check whether --with-root-prefix was given.
5689 if test ${with_root_prefix+y}
5690 then :
5691   withval=$with_root_prefix; root_prefix=$withval
5692 else $as_nop
5693   root_prefix=NONE
5694 fi
5695 # Check whether --enable-maintainer-mode was given.
5696 if test ${enable_maintainer_mode+y}
5697 then :
5698   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5699 then
5700         MAINTAINER_CMT=#
5701         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5702 printf "%s\n" "Disabling maintainer mode" >&6; }
5703 else
5704         MAINTAINER_CMT=
5705         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5706 printf "%s\n" "Enabling maintainer mode" >&6; }
5707 fi
5708
5709 else $as_nop
5710   MAINTAINER_CMT=#
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5712 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5713
5714 fi
5715
5716
5717 # Check whether --enable-symlink-install was given.
5718 if test ${enable_symlink_install+y}
5719 then :
5720   enableval=$enable_symlink_install; if test "$enableval" = "no"
5721 then
5722         LINK_INSTALL_FLAGS=-f
5723         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5724 printf "%s\n" "Disabling symlinks for install" >&6; }
5725 else
5726         LINK_INSTALL_FLAGS=-sf
5727         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5728 printf "%s\n" "Enabling symlinks for install" >&6; }
5729 fi
5730
5731 else $as_nop
5732   LINK_INSTALL_FLAGS=-f
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5734 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5735
5736 fi
5737
5738
5739 relative_symlink_defined=
5740 # Check whether --enable-relative-symlinks was given.
5741 if test ${enable_relative_symlinks+y}
5742 then :
5743   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5744 then
5745         SYMLINK_RELATIVE=
5746         relative_symlink_defined=yes
5747         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5748 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5749 else
5750         SYMLINK_RELATIVE=--relative
5751         relative_symlink_defined=yes
5752         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5753 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5754 fi
5755 fi
5756
5757 # Check whether --enable-symlink-relative-symlinks was given.
5758 if test ${enable_symlink_relative_symlinks+y}
5759 then :
5760   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5761 then
5762         SYMLINK_RELATIVE=yes
5763         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5764 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5765 else
5766         SYMLINK_RELATIVE=--relative
5767         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5768 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5769 fi
5770
5771 else $as_nop
5772   if test -z "$relative_symlink_defined"
5773 then
5774         SYMLINK_RELATIVE=
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5776 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5777 fi
5778
5779 fi
5780
5781
5782 # Check whether --enable-symlink-build was given.
5783 if test ${enable_symlink_build+y}
5784 then :
5785   enableval=$enable_symlink_build; if test "$enableval" = "no"
5786 then
5787         LINK_BUILD_FLAGS=
5788         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5789 printf "%s\n" "Disabling symlinks for build" >&6; }
5790 else
5791         LINK_BUILD_FLAGS=-s
5792         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5793 printf "%s\n" "Enabling symlinks for build" >&6; }
5794 fi
5795
5796 else $as_nop
5797   LINK_BUILD_FLAGS=
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5799 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5800
5801 fi
5802
5803
5804 # Check whether --enable-verbose-makecmds was given.
5805 if test ${enable_verbose_makecmds+y}
5806 then :
5807   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5808 then
5809         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5810 printf "%s\n" "Disabling verbose make commands" >&6; }
5811         E=@echo
5812         ES=echo
5813         Q=@
5814 else
5815         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5816 printf "%s\n" "Enabling verbose make commands" >&6; }
5817         E=@\\#
5818         ES=\\#
5819         Q=
5820 fi
5821
5822 else $as_nop
5823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5824 printf "%s\n" "Disabling verbose make commands" >&6; }
5825 E=@echo
5826 ES=echo
5827 Q=@
5828
5829 fi
5830
5831
5832
5833
5834 E2_PKG_CONFIG_STATIC=--static
5835 LDFLAG_DYNAMIC=
5836 PRIVATE_LIBS_CMT=
5837 # Check whether --enable-elf-shlibs was given.
5838 if test ${enable_elf_shlibs+y}
5839 then :
5840   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5841 then
5842         ELF_CMT=#
5843         MAKEFILE_ELF=/dev/null
5844         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5845 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5846 else
5847         E2_PKG_CONFIG_STATIC=
5848         ELF_CMT=
5849         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5850         case "$host_os" in
5851         solaris2.*)
5852                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5853         ;;
5854         esac
5855         BINARY_TYPE=elfbin
5856         LIB_EXT=.so
5857         PRIVATE_LIBS_CMT=#
5858         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5859         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5860 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5861 fi
5862
5863 else $as_nop
5864   MAKEFILE_ELF=/dev/null
5865 ELF_CMT=#
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5867 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5868
5869 fi
5870
5871
5872
5873 # Check whether --enable-bsd-shlibs was given.
5874 if test ${enable_bsd_shlibs+y}
5875 then :
5876   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5877 then
5878         BSDLIB_CMT=#
5879         MAKEFILE_BSDLIB=/dev/null
5880         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5881 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5882 else
5883         E2_PKG_CONFIG_STATIC=
5884         BSDLIB_CMT=
5885         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5886         LIB_EXT=.so
5887         case "$host_os" in
5888         darwin*)
5889                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5890                 LIB_EXT=.dylib
5891         ;;
5892         esac
5893         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5894 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5895 fi
5896
5897 else $as_nop
5898   MAKEFILE_BSDLIB=/dev/null
5899 BSDLIB_CMT=#
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5901 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5902
5903 fi
5904
5905
5906
5907 # Check whether --enable-profile was given.
5908 if test ${enable_profile+y}
5909 then :
5910   enableval=$enable_profile; if test "$enableval" = "no"
5911 then
5912         PROFILE_CMT=#
5913         MAKEFILE_PROFILE=/dev/null
5914         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5915 printf "%s\n" "Disabling profiling libraries" >&6; }
5916 else
5917         PROFILE_CMT=
5918         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5919         PROFILED_LIB_EXT=_p.a
5920         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5921 printf "%s\n" "Building profiling libraries" >&6; }
5922 fi
5923
5924 else $as_nop
5925   PROFILE_CMT=#
5926 MAKEFILE_PROFILE=/dev/null
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5928 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5929
5930 fi
5931
5932
5933
5934 # Check whether --enable-gcov was given.
5935 if test ${enable_gcov+y}
5936 then :
5937   enableval=$enable_gcov; if test "$enableval" = "yes"
5938 then
5939         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5940         LDFLAGS="-fprofile-arcs -ftest-coverage"
5941         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5942 printf "%s\n" "Enabling gcov support" >&6; }
5943 fi
5944
5945 fi
5946
5947 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5948 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5949 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5950 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5951 # Check whether --enable-hardening was given.
5952 if test ${enable_hardening+y}
5953 then :
5954   enableval=$enable_hardening; if test "$enableval" = "yes"
5955 then
5956         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5957         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5958         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5959         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5960         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5961         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5962         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5963         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5964         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5965 printf "%s\n" "Enabling hardening support" >&6; }
5966 fi
5967
5968 fi
5969
5970
5971
5972
5973
5974
5975 # Check whether --enable-jbd-debug was given.
5976 if test ${enable_jbd_debug+y}
5977 then :
5978   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5979 then
5980         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5981 printf "%s\n" "Disabling journal debugging" >&6; }
5982 else
5983
5984 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5985
5986         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5987 printf "%s\n" "Enabling journal debugging" >&6; }
5988 fi
5989
5990 else $as_nop
5991   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5992 printf "%s\n" "Disabling journal debugging by default" >&6; }
5993
5994 fi
5995
5996 # Check whether --enable-blkid-debug was given.
5997 if test ${enable_blkid_debug+y}
5998 then :
5999   enableval=$enable_blkid_debug; if test "$enableval" = "no"
6000 then
6001         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6002 printf "%s\n" "Disabling blkid debugging" >&6; }
6003 else
6004
6005 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6006
6007         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6008 printf "%s\n" "Enabling blkid debugging" >&6; }
6009 fi
6010
6011 else $as_nop
6012   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6013 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6014
6015 fi
6016
6017 # Check whether --enable-testio-debug was given.
6018 if test ${enable_testio_debug+y}
6019 then :
6020   enableval=$enable_testio_debug;
6021 if test "$enableval" = "no"
6022 then
6023         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6024 printf "%s\n" "Disabling testio debugging" >&6; }
6025         TEST_IO_CMT="#"
6026 else
6027         TEST_IO_CMT=
6028         printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6029
6030         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6031 printf "%s\n" "Enabling testio debugging" >&6; }
6032 fi
6033
6034 else $as_nop
6035   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6036 printf "%s\n" "Enabling testio debugging by default" >&6; }
6037 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6038
6039 TEST_IO_CMT=
6040
6041 fi
6042
6043
6044 # Check whether --enable-developer-features was given.
6045 if test ${enable_developer_features+y}
6046 then :
6047   enableval=$enable_developer_features;
6048 if test "$enableval" = "yes"
6049 then
6050         DEV_FEATURES_CMT=
6051         printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6052
6053         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6054 printf "%s\n" "Enabling ext4 developer features" >&6; }
6055 else
6056         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6057 printf "%s\n" "Disabling ext4 developer features" >&6; }
6058         DEV_FEATURES_CMT="#"
6059 fi
6060
6061 else $as_nop
6062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6063 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6064 DEV_FEATURES_CMT=
6065
6066 fi
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6077         if test -n "$ac_tool_prefix"; then
6078   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 printf %s "checking for $ac_word... " >&6; }
6082 if test ${ac_cv_path_PKG_CONFIG+y}
6083 then :
6084   printf %s "(cached) " >&6
6085 else $as_nop
6086   case $PKG_CONFIG in
6087   [\\/]* | ?:[\\/]*)
6088   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6089   ;;
6090   *)
6091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   case $as_dir in #(((
6096     '') as_dir=./ ;;
6097     */) ;;
6098     *) as_dir=$as_dir/ ;;
6099   esac
6100     for ac_exec_ext in '' $ac_executable_extensions; do
6101   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6102     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6103     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6104     break 2
6105   fi
6106 done
6107   done
6108 IFS=$as_save_IFS
6109
6110   ;;
6111 esac
6112 fi
6113 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6114 if test -n "$PKG_CONFIG"; then
6115   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6116 printf "%s\n" "$PKG_CONFIG" >&6; }
6117 else
6118   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 printf "%s\n" "no" >&6; }
6120 fi
6121
6122
6123 fi
6124 if test -z "$ac_cv_path_PKG_CONFIG"; then
6125   ac_pt_PKG_CONFIG=$PKG_CONFIG
6126   # Extract the first word of "pkg-config", so it can be a program name with args.
6127 set dummy pkg-config; ac_word=$2
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 printf %s "checking for $ac_word... " >&6; }
6130 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6131 then :
6132   printf %s "(cached) " >&6
6133 else $as_nop
6134   case $ac_pt_PKG_CONFIG in
6135   [\\/]* | ?:[\\/]*)
6136   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6137   ;;
6138   *)
6139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   case $as_dir in #(((
6144     '') as_dir=./ ;;
6145     */) ;;
6146     *) as_dir=$as_dir/ ;;
6147   esac
6148     for ac_exec_ext in '' $ac_executable_extensions; do
6149   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6150     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6151     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155   done
6156 IFS=$as_save_IFS
6157
6158   ;;
6159 esac
6160 fi
6161 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6162 if test -n "$ac_pt_PKG_CONFIG"; then
6163   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6164 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6165 else
6166   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 printf "%s\n" "no" >&6; }
6168 fi
6169
6170   if test "x$ac_pt_PKG_CONFIG" = x; then
6171     PKG_CONFIG=""
6172   else
6173     case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned=yes ;;
6178 esac
6179     PKG_CONFIG=$ac_pt_PKG_CONFIG
6180   fi
6181 else
6182   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6183 fi
6184
6185 fi
6186 if test -n "$PKG_CONFIG"; then
6187         _pkg_min_version=0.9.0
6188         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6189 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6190         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6191                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6192 printf "%s\n" "yes" >&6; }
6193         else
6194                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 printf "%s\n" "no" >&6; }
6196                 PKG_CONFIG=""
6197         fi
6198 fi
6199 LIBUUID=
6200 DEPLIBUUID=
6201 STATIC_LIBUUID=
6202 DEPSTATIC_LIBUUID=
6203 PROFILED_LIBUUID=
6204 DEPPROFILED_LIBUUID=
6205 UUID_CMT=
6206 # Check whether --enable-libuuid was given.
6207 if test ${enable_libuuid+y}
6208 then :
6209   enableval=$enable_libuuid; if test "$enableval" = "no"
6210 then
6211         if test -z "$PKG_CONFIG"; then
6212                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6213         fi
6214
6215         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6216 printf %s "checking for uuid_generate in -luuid... " >&6; }
6217 if test ${ac_cv_lib_uuid_uuid_generate+y}
6218 then :
6219   printf %s "(cached) " >&6
6220 else $as_nop
6221   ac_check_lib_save_LIBS=$LIBS
6222 LIBS="-luuid  $LIBS"
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h.  */
6225
6226 /* Override any GCC internal prototype to avoid an error.
6227    Use char because int might match the return type of a GCC
6228    builtin and then its argument prototype would still apply.  */
6229 char uuid_generate ();
6230 int
6231 main (void)
6232 {
6233 return uuid_generate ();
6234   ;
6235   return 0;
6236 }
6237 _ACEOF
6238 if ac_fn_c_try_link "$LINENO"
6239 then :
6240   ac_cv_lib_uuid_uuid_generate=yes
6241 else $as_nop
6242   ac_cv_lib_uuid_uuid_generate=no
6243 fi
6244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6245     conftest$ac_exeext conftest.$ac_ext
6246 LIBS=$ac_check_lib_save_LIBS
6247 fi
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6249 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6250 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6251 then :
6252   LIBUUID=`$PKG_CONFIG --libs uuid`;
6253                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6254 else $as_nop
6255   as_fn_error $? "external uuid library not found" "$LINENO" 5
6256 fi
6257
6258         PROFILED_LIBUUID=$LIBUUID
6259         UUID_CMT=#
6260         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6261 printf "%s\n" "Disabling private uuid library" >&6; }
6262 else
6263         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6264         DEPLIBUUID=$LIBUUID
6265         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6266         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6267         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6268         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6269         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6270 printf "%s\n" "Enabling private uuid library" >&6; }
6271 fi
6272
6273 else $as_nop
6274   if test -n "$PKG_CONFIG"; then
6275         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6276 printf %s "checking for uuid_generate in -luuid... " >&6; }
6277 if test ${ac_cv_lib_uuid_uuid_generate+y}
6278 then :
6279   printf %s "(cached) " >&6
6280 else $as_nop
6281   ac_check_lib_save_LIBS=$LIBS
6282 LIBS="-luuid  $LIBS"
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h.  */
6285
6286 /* Override any GCC internal prototype to avoid an error.
6287    Use char because int might match the return type of a GCC
6288    builtin and then its argument prototype would still apply.  */
6289 char uuid_generate ();
6290 int
6291 main (void)
6292 {
6293 return uuid_generate ();
6294   ;
6295   return 0;
6296 }
6297 _ACEOF
6298 if ac_fn_c_try_link "$LINENO"
6299 then :
6300   ac_cv_lib_uuid_uuid_generate=yes
6301 else $as_nop
6302   ac_cv_lib_uuid_uuid_generate=no
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6305     conftest$ac_exeext conftest.$ac_ext
6306 LIBS=$ac_check_lib_save_LIBS
6307 fi
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6309 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6310 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6311 then :
6312   LIBUUID=`$PKG_CONFIG --libs uuid`;
6313                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6314 fi
6315
6316 fi
6317 if test -n "$LIBUUID"; then
6318         PROFILED_LIBUUID=$LIBUUID
6319         UUID_CMT=#
6320         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6321 printf "%s\n" "Using system uuid by default" >&6; }
6322 else
6323         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6324         DEPLIBUUID=$LIBUUID
6325         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6326         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6327         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6328         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6329         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6330 printf "%s\n" "Enabling private uuid library by default" >&6; }
6331 fi
6332
6333 fi
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6350         if test -n "$ac_tool_prefix"; then
6351   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 printf %s "checking for $ac_word... " >&6; }
6355 if test ${ac_cv_path_PKG_CONFIG+y}
6356 then :
6357   printf %s "(cached) " >&6
6358 else $as_nop
6359   case $PKG_CONFIG in
6360   [\\/]* | ?:[\\/]*)
6361   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6362   ;;
6363   *)
6364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   case $as_dir in #(((
6369     '') as_dir=./ ;;
6370     */) ;;
6371     *) as_dir=$as_dir/ ;;
6372   esac
6373     for ac_exec_ext in '' $ac_executable_extensions; do
6374   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6375     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6376     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6377     break 2
6378   fi
6379 done
6380   done
6381 IFS=$as_save_IFS
6382
6383   ;;
6384 esac
6385 fi
6386 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6387 if test -n "$PKG_CONFIG"; then
6388   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6389 printf "%s\n" "$PKG_CONFIG" >&6; }
6390 else
6391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 printf "%s\n" "no" >&6; }
6393 fi
6394
6395
6396 fi
6397 if test -z "$ac_cv_path_PKG_CONFIG"; then
6398   ac_pt_PKG_CONFIG=$PKG_CONFIG
6399   # Extract the first word of "pkg-config", so it can be a program name with args.
6400 set dummy pkg-config; ac_word=$2
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 printf %s "checking for $ac_word... " >&6; }
6403 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6404 then :
6405   printf %s "(cached) " >&6
6406 else $as_nop
6407   case $ac_pt_PKG_CONFIG in
6408   [\\/]* | ?:[\\/]*)
6409   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6410   ;;
6411   *)
6412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415   IFS=$as_save_IFS
6416   case $as_dir in #(((
6417     '') as_dir=./ ;;
6418     */) ;;
6419     *) as_dir=$as_dir/ ;;
6420   esac
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6423     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6424     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431   ;;
6432 esac
6433 fi
6434 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6435 if test -n "$ac_pt_PKG_CONFIG"; then
6436   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6437 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6438 else
6439   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 printf "%s\n" "no" >&6; }
6441 fi
6442
6443   if test "x$ac_pt_PKG_CONFIG" = x; then
6444     PKG_CONFIG=""
6445   else
6446     case $cross_compiling:$ac_tool_warned in
6447 yes:)
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450 ac_tool_warned=yes ;;
6451 esac
6452     PKG_CONFIG=$ac_pt_PKG_CONFIG
6453   fi
6454 else
6455   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6456 fi
6457
6458 fi
6459 if test -n "$PKG_CONFIG"; then
6460         _pkg_min_version=0.9.0
6461         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6462 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6463         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6464                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6465 printf "%s\n" "yes" >&6; }
6466         else
6467                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 printf "%s\n" "no" >&6; }
6469                 PKG_CONFIG=""
6470         fi
6471 fi
6472 LIBBLKID=
6473 DEPLIBBLKID=
6474 STATIC_LIBBLKID=
6475 DEPSTATIC_LIBBLKID=
6476 PROFILED_LIBBLKID=
6477 DEPPROFILED_LIBBLKID=
6478 BLKID_CMT=
6479
6480 # Check whether --enable-libblkid was given.
6481 if test ${enable_libblkid+y}
6482 then :
6483   enableval=$enable_libblkid; if test "$enableval" = "no"
6484 then
6485         if test -z "$PKG_CONFIG"; then
6486                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6487         fi
6488
6489         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6490 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6491 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6492 then :
6493   printf %s "(cached) " >&6
6494 else $as_nop
6495   ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lblkid -luuid $LIBS"
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h.  */
6499
6500 /* Override any GCC internal prototype to avoid an error.
6501    Use char because int might match the return type of a GCC
6502    builtin and then its argument prototype would still apply.  */
6503 char blkid_get_cache ();
6504 int
6505 main (void)
6506 {
6507 return blkid_get_cache ();
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 if ac_fn_c_try_link "$LINENO"
6513 then :
6514   ac_cv_lib_blkid_blkid_get_cache=yes
6515 else $as_nop
6516   ac_cv_lib_blkid_blkid_get_cache=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6519     conftest$ac_exeext conftest.$ac_ext
6520 LIBS=$ac_check_lib_save_LIBS
6521 fi
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6523 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6524 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6525 then :
6526   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6527                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6528 else $as_nop
6529   as_fn_error $? "external blkid library not found" "$LINENO" 5
6530 fi
6531
6532         BLKID_CMT=#
6533         PROFILED_LIBBLKID=$LIBBLKID
6534         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6535 printf "%s\n" "Disabling private blkid library" >&6; }
6536 else
6537         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6538         DEPLIBBLKID=$LIBBLKID
6539         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6540         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6541         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6542         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6543         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6544
6545         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6546 printf "%s\n" "Enabling private blkid library" >&6; }
6547 fi
6548
6549 else $as_nop
6550   if test -n "$PKG_CONFIG"; then
6551         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6552 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6553 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6554 then :
6555   printf %s "(cached) " >&6
6556 else $as_nop
6557   ac_check_lib_save_LIBS=$LIBS
6558 LIBS="-lblkid  $LIBS"
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h.  */
6561
6562 /* Override any GCC internal prototype to avoid an error.
6563    Use char because int might match the return type of a GCC
6564    builtin and then its argument prototype would still apply.  */
6565 char blkid_get_cache ();
6566 int
6567 main (void)
6568 {
6569 return blkid_get_cache ();
6570   ;
6571   return 0;
6572 }
6573 _ACEOF
6574 if ac_fn_c_try_link "$LINENO"
6575 then :
6576   ac_cv_lib_blkid_blkid_get_cache=yes
6577 else $as_nop
6578   ac_cv_lib_blkid_blkid_get_cache=no
6579 fi
6580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6581     conftest$ac_exeext conftest.$ac_ext
6582 LIBS=$ac_check_lib_save_LIBS
6583 fi
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6585 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6586 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6587 then :
6588   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6589                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6590 fi
6591
6592 fi
6593 if test -n "$LIBBLKID"; then
6594         BLKID_CMT=#
6595         PROFILED_LIBBLKID=$LIBBLKID
6596         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6597 printf "%s\n" "Using system blkid library by default" >&6; }
6598 else
6599         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6600         DEPLIBBLKID=$LIBBLKID
6601         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6602         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6603         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6604         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6605         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6606
6607         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6608 printf "%s\n" "Enabling private blkid library by default" >&6; }
6609 fi
6610
6611 fi
6612
6613
6614
6615
6616
6617
6618
6619
6620 ALL_CMT=
6621 SUBSET_CMT=
6622 # Check whether --enable-subset was given.
6623 if test ${enable_subset+y}
6624 then :
6625   enableval=$enable_subset; if test "$enableval" = "no"
6626 then
6627         SUBSET_CMT=#
6628         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6629 printf "%s\n" "Disabling subset-only build" >&6; }
6630 else
6631         ALL_CMT=#
6632         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6633 printf "%s\n" "Enabling subset-only-build" >&6; }
6634 fi
6635
6636 fi
6637
6638
6639
6640
6641 # Check whether --enable-backtrace was given.
6642 if test ${enable_backtrace+y}
6643 then :
6644   enableval=$enable_backtrace; if test "$enableval" = "no"
6645 then
6646         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6647 printf "%s\n" "Disabling use of backtrace" >&6; }
6648         printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6649
6650 else
6651         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6652 printf "%s\n" "Enabling use of backtrace" >&6; }
6653 fi
6654
6655 else $as_nop
6656   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6657 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6658
6659 fi
6660
6661 # Check whether --enable-debugfs was given.
6662 if test ${enable_debugfs+y}
6663 then :
6664   enableval=$enable_debugfs; if test "$enableval" = "no"
6665 then
6666         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6667 printf "%s\n" "Disabling debugfs support" >&6; }
6668         DEBUGFS_CMT="#"
6669 else
6670         DEBUGFS_CMT=
6671         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6672 printf "%s\n" "Enabling debugfs support" >&6; }
6673 fi
6674
6675 else $as_nop
6676   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6677 printf "%s\n" "Enabling debugfs support by default" >&6; }
6678 DEBUGFS_CMT=
6679
6680 fi
6681
6682
6683 # Check whether --enable-imager was given.
6684 if test ${enable_imager+y}
6685 then :
6686   enableval=$enable_imager; if test "$enableval" = "no"
6687 then
6688         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6689 printf "%s\n" "Disabling e2image support" >&6; }
6690         IMAGER_CMT="#"
6691 else
6692         IMAGER_CMT=
6693         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6694 printf "%s\n" "Enabling e2image support" >&6; }
6695 fi
6696
6697 else $as_nop
6698   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6699 printf "%s\n" "Enabling e2image support by default" >&6; }
6700 IMAGER_CMT=
6701
6702 fi
6703
6704
6705 # Check whether --enable-resizer was given.
6706 if test ${enable_resizer+y}
6707 then :
6708   enableval=$enable_resizer; if test "$enableval" = "no"
6709 then
6710         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6711 printf "%s\n" "Disabling e2resize support" >&6; }
6712         RESIZER_CMT="#"
6713 else
6714         RESIZER_CMT=
6715         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6716 printf "%s\n" "Enabling e2resize support" >&6; }
6717 fi
6718
6719 else $as_nop
6720   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6721 printf "%s\n" "Enabling e2resize support by default" >&6; }
6722 RESIZER_CMT=
6723
6724 fi
6725
6726
6727 # Check whether --enable-defrag was given.
6728 if test ${enable_defrag+y}
6729 then :
6730   enableval=$enable_defrag; if test "$enableval" = "no"
6731 then
6732         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6733 printf "%s\n" "Disabling e4defrag support" >&6; }
6734         DEFRAG_CMT="#"
6735 else
6736         DEFRAG_CMT=
6737         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6738 printf "%s\n" "Enabling e4defrag support" >&6; }
6739 fi
6740
6741 else $as_nop
6742   if test -z "$WITH_DIET_LIBC"
6743 then
6744         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6745 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6746         DEFRAG_CMT=
6747 else
6748         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6749 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6750         DEFRAG_CMT="#"
6751 fi
6752
6753 fi
6754
6755
6756 # Check whether --enable-fsck was given.
6757 if test ${enable_fsck+y}
6758 then :
6759   enableval=$enable_fsck; if test "$enableval" = "no"
6760 then
6761         FSCK_PROG='' FSCK_MAN=''
6762         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6763 printf "%s\n" "Not building fsck wrapper" >&6; }
6764 else
6765         FSCK_PROG=fsck FSCK_MAN=fsck.8
6766         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6767 printf "%s\n" "Building fsck wrapper" >&6; }
6768 fi
6769
6770 else $as_nop
6771   case "$host_os" in
6772   gnu*)
6773     FSCK_PROG='' FSCK_MAN=''
6774     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6775 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6776     ;;
6777   *)
6778     FSCK_PROG=fsck FSCK_MAN=fsck.8
6779     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6780 printf "%s\n" "Building fsck wrapper by default" >&6; }
6781 esac
6782
6783 fi
6784
6785
6786
6787 # Check whether --enable-e2initrd-helper was given.
6788 if test ${enable_e2initrd_helper+y}
6789 then :
6790   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6791 then
6792         E2INITRD_PROG='' E2INITRD_MAN=''
6793         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6794 printf "%s\n" "Not building e2initrd helper" >&6; }
6795 else
6796         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6797         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6798 printf "%s\n" "Building e2initrd helper" >&6; }
6799 fi
6800
6801 else $as_nop
6802   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6804 printf "%s\n" "Building e2initrd helper by default" >&6; }
6805
6806 fi
6807
6808
6809
6810 # Check whether --enable-tls was given.
6811 if test ${enable_tls+y}
6812 then :
6813   enableval=$enable_tls; if test "$enableval" = "no"
6814 then
6815         try_tls=""
6816         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6817 printf "%s\n" "Disabling thread local support" >&6; }
6818 else
6819         try_tls="yes"
6820         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6821 printf "%s\n" "Enabling thread local support" >&6; }
6822 fi
6823
6824 else $as_nop
6825   if test -n "$WITH_DIET_LIBC"
6826 then
6827         try_tls=""
6828         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6829 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6830 else
6831         try_tls="yes"
6832         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6833 printf "%s\n" "Try using thread local support by default" >&6; }
6834 fi
6835
6836 fi
6837
6838 if test "$try_tls" = "yes"
6839 then
6840
6841   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6842 printf %s "checking for thread local storage (TLS) class... " >&6; }
6843   if test ${ac_cv_tls+y}
6844 then :
6845   printf %s "(cached) " >&6
6846 else $as_nop
6847
6848     ax_tls_keywords="__thread __declspec(thread) none"
6849     for ax_tls_keyword in $ax_tls_keywords; do
6850        case $ax_tls_keyword in
6851           none) ac_cv_tls=none ; break ;;
6852           *)
6853              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h.  */
6855 #include <stdlib.h>
6856                  static void
6857                  foo(void) {
6858                  static  $ax_tls_keyword  int bar;
6859                  exit(1);
6860                  }
6861 int
6862 main (void)
6863 {
6864
6865   ;
6866   return 0;
6867 }
6868 _ACEOF
6869 if ac_fn_c_try_compile "$LINENO"
6870 then :
6871   ac_cv_tls=$ax_tls_keyword ; break
6872 else $as_nop
6873   ac_cv_tls=none
6874
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6877           esac
6878     done
6879
6880 fi
6881
6882
6883   if test "$ac_cv_tls" != "none"; then
6884
6885 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6886
6887   fi
6888   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6889 printf "%s\n" "$ac_cv_tls" >&6; }
6890
6891 fi
6892
6893 # Check whether --with-pthread was given.
6894 if test ${with_pthread+y}
6895 then :
6896   withval=$with_pthread; if test "$withval" = "no"
6897 then
6898         try_pthread=""
6899         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6900 printf "%s\n" "Disabling pthread support" >&6; }
6901 else
6902         try_pthread="yes"
6903         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6904 printf "%s\n" "Testing for pthread support" >&6; }
6905 fi
6906
6907 else $as_nop
6908   try_pthread="yes"
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6910 printf "%s\n" "Try testing for pthread support by default" >&6; }
6911
6912 fi
6913
6914 if test "$try_pthread" = "yes"
6915 then
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6917 printf %s "checking for a sed that does not truncate output... " >&6; }
6918 if test ${ac_cv_path_SED+y}
6919 then :
6920   printf %s "(cached) " >&6
6921 else $as_nop
6922             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6923      for ac_i in 1 2 3 4 5 6 7; do
6924        ac_script="$ac_script$as_nl$ac_script"
6925      done
6926      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6927      { ac_script=; unset ac_script;}
6928      if test -z "$SED"; then
6929   ac_path_SED_found=false
6930   # Loop through the user's path and test for each of PROGNAME-LIST
6931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   case $as_dir in #(((
6936     '') as_dir=./ ;;
6937     */) ;;
6938     *) as_dir=$as_dir/ ;;
6939   esac
6940     for ac_prog in sed gsed
6941    do
6942     for ac_exec_ext in '' $ac_executable_extensions; do
6943       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6944       as_fn_executable_p "$ac_path_SED" || continue
6945 # Check for GNU ac_path_SED and select it if it is found.
6946   # Check for GNU $ac_path_SED
6947 case `"$ac_path_SED" --version 2>&1` in
6948 *GNU*)
6949   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6950 *)
6951   ac_count=0
6952   printf %s 0123456789 >"conftest.in"
6953   while :
6954   do
6955     cat "conftest.in" "conftest.in" >"conftest.tmp"
6956     mv "conftest.tmp" "conftest.in"
6957     cp "conftest.in" "conftest.nl"
6958     printf "%s\n" '' >> "conftest.nl"
6959     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6960     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6961     as_fn_arith $ac_count + 1 && ac_count=$as_val
6962     if test $ac_count -gt ${ac_path_SED_max-0}; then
6963       # Best one so far, save it but keep looking for a better one
6964       ac_cv_path_SED="$ac_path_SED"
6965       ac_path_SED_max=$ac_count
6966     fi
6967     # 10*(2^10) chars as input seems more than enough
6968     test $ac_count -gt 10 && break
6969   done
6970   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6971 esac
6972
6973       $ac_path_SED_found && break 3
6974     done
6975   done
6976   done
6977 IFS=$as_save_IFS
6978   if test -z "$ac_cv_path_SED"; then
6979     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6980   fi
6981 else
6982   ac_cv_path_SED=$SED
6983 fi
6984
6985 fi
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6987 printf "%s\n" "$ac_cv_path_SED" >&6; }
6988  SED="$ac_cv_path_SED"
6989   rm -f conftest.sed
6990
6991
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6993 printf %s "checking for grep that handles long lines and -e... " >&6; }
6994 if test ${ac_cv_path_GREP+y}
6995 then :
6996   printf %s "(cached) " >&6
6997 else $as_nop
6998   if test -z "$GREP"; then
6999   ac_path_GREP_found=false
7000   # Loop through the user's path and test for each of PROGNAME-LIST
7001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7003 do
7004   IFS=$as_save_IFS
7005   case $as_dir in #(((
7006     '') as_dir=./ ;;
7007     */) ;;
7008     *) as_dir=$as_dir/ ;;
7009   esac
7010     for ac_prog in grep ggrep
7011    do
7012     for ac_exec_ext in '' $ac_executable_extensions; do
7013       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7014       as_fn_executable_p "$ac_path_GREP" || continue
7015 # Check for GNU ac_path_GREP and select it if it is found.
7016   # Check for GNU $ac_path_GREP
7017 case `"$ac_path_GREP" --version 2>&1` in
7018 *GNU*)
7019   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7020 *)
7021   ac_count=0
7022   printf %s 0123456789 >"conftest.in"
7023   while :
7024   do
7025     cat "conftest.in" "conftest.in" >"conftest.tmp"
7026     mv "conftest.tmp" "conftest.in"
7027     cp "conftest.in" "conftest.nl"
7028     printf "%s\n" 'GREP' >> "conftest.nl"
7029     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7030     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7031     as_fn_arith $ac_count + 1 && ac_count=$as_val
7032     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7033       # Best one so far, save it but keep looking for a better one
7034       ac_cv_path_GREP="$ac_path_GREP"
7035       ac_path_GREP_max=$ac_count
7036     fi
7037     # 10*(2^10) chars as input seems more than enough
7038     test $ac_count -gt 10 && break
7039   done
7040   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7041 esac
7042
7043       $ac_path_GREP_found && break 3
7044     done
7045   done
7046   done
7047 IFS=$as_save_IFS
7048   if test -z "$ac_cv_path_GREP"; then
7049     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7050   fi
7051 else
7052   ac_cv_path_GREP=$GREP
7053 fi
7054
7055 fi
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7057 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7058  GREP="$ac_cv_path_GREP"
7059
7060
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7062 printf %s "checking for egrep... " >&6; }
7063 if test ${ac_cv_path_EGREP+y}
7064 then :
7065   printf %s "(cached) " >&6
7066 else $as_nop
7067   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7068    then ac_cv_path_EGREP="$GREP -E"
7069    else
7070      if test -z "$EGREP"; then
7071   ac_path_EGREP_found=false
7072   # Loop through the user's path and test for each of PROGNAME-LIST
7073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7075 do
7076   IFS=$as_save_IFS
7077   case $as_dir in #(((
7078     '') as_dir=./ ;;
7079     */) ;;
7080     *) as_dir=$as_dir/ ;;
7081   esac
7082     for ac_prog in egrep
7083    do
7084     for ac_exec_ext in '' $ac_executable_extensions; do
7085       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7086       as_fn_executable_p "$ac_path_EGREP" || continue
7087 # Check for GNU ac_path_EGREP and select it if it is found.
7088   # Check for GNU $ac_path_EGREP
7089 case `"$ac_path_EGREP" --version 2>&1` in
7090 *GNU*)
7091   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7092 *)
7093   ac_count=0
7094   printf %s 0123456789 >"conftest.in"
7095   while :
7096   do
7097     cat "conftest.in" "conftest.in" >"conftest.tmp"
7098     mv "conftest.tmp" "conftest.in"
7099     cp "conftest.in" "conftest.nl"
7100     printf "%s\n" 'EGREP' >> "conftest.nl"
7101     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7102     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7103     as_fn_arith $ac_count + 1 && ac_count=$as_val
7104     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7105       # Best one so far, save it but keep looking for a better one
7106       ac_cv_path_EGREP="$ac_path_EGREP"
7107       ac_path_EGREP_max=$ac_count
7108     fi
7109     # 10*(2^10) chars as input seems more than enough
7110     test $ac_count -gt 10 && break
7111   done
7112   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7113 esac
7114
7115       $ac_path_EGREP_found && break 3
7116     done
7117   done
7118   done
7119 IFS=$as_save_IFS
7120   if test -z "$ac_cv_path_EGREP"; then
7121     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7122   fi
7123 else
7124   ac_cv_path_EGREP=$EGREP
7125 fi
7126
7127    fi
7128 fi
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7130 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7131  EGREP="$ac_cv_path_EGREP"
7132
7133
7134
7135
7136
7137
7138 ac_ext=c
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143
7144 ax_pthread_ok=no
7145
7146 # We used to check for pthread.h first, but this fails if pthread.h
7147 # requires special compiler flags (e.g. on Tru64 or Sequent).
7148 # It gets checked for in the link test anyway.
7149
7150 # First of all, check if the user has set any of the PTHREAD_LIBS,
7151 # etcetera environment variables, and if threads linking works using
7152 # them:
7153 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7154         ax_pthread_save_CC="$CC"
7155         ax_pthread_save_CFLAGS="$CFLAGS"
7156         ax_pthread_save_LIBS="$LIBS"
7157         if test "x$PTHREAD_CC" != "x"
7158 then :
7159   CC="$PTHREAD_CC"
7160 fi
7161         if test "x$PTHREAD_CXX" != "x"
7162 then :
7163   CXX="$PTHREAD_CXX"
7164 fi
7165         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7166         LIBS="$PTHREAD_LIBS $LIBS"
7167         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7168 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7169         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h.  */
7171
7172 /* Override any GCC internal prototype to avoid an error.
7173    Use char because int might match the return type of a GCC
7174    builtin and then its argument prototype would still apply.  */
7175 char pthread_join ();
7176 int
7177 main (void)
7178 {
7179 return pthread_join ();
7180   ;
7181   return 0;
7182 }
7183 _ACEOF
7184 if ac_fn_c_try_link "$LINENO"
7185 then :
7186   ax_pthread_ok=yes
7187 fi
7188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7189     conftest$ac_exeext conftest.$ac_ext
7190         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7191 printf "%s\n" "$ax_pthread_ok" >&6; }
7192         if test "x$ax_pthread_ok" = "xno"; then
7193                 PTHREAD_LIBS=""
7194                 PTHREAD_CFLAGS=""
7195         fi
7196         CC="$ax_pthread_save_CC"
7197         CFLAGS="$ax_pthread_save_CFLAGS"
7198         LIBS="$ax_pthread_save_LIBS"
7199 fi
7200
7201 # We must check for the threads library under a number of different
7202 # names; the ordering is very important because some systems
7203 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7204 # libraries is broken (non-POSIX).
7205
7206 # Create a list of thread flags to try. Items with a "," contain both
7207 # C compiler flags (before ",") and linker flags (after ","). Other items
7208 # starting with a "-" are C compiler flags, and remaining items are
7209 # library names, except for "none" which indicates that we try without
7210 # any flags at all, and "pthread-config" which is a program returning
7211 # the flags for the Pth emulation library.
7212
7213 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7214
7215 # The ordering *is* (sometimes) important.  Some notes on the
7216 # individual items follow:
7217
7218 # pthreads: AIX (must check this before -lpthread)
7219 # none: in case threads are in libc; should be tried before -Kthread and
7220 #       other compiler flags to prevent continual compiler warnings
7221 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7222 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7223 #           (Note: HP C rejects this with "bad form for `-t' option")
7224 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7225 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7226 #      doesn't hurt to check since this sometimes defines pthreads and
7227 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7228 #      is present but should not be used directly; and before -mthreads,
7229 #      because the compiler interprets this as "-mt" + "-hreads")
7230 # -mthreads: Mingw32/gcc, Lynx/gcc
7231 # pthread: Linux, etcetera
7232 # --thread-safe: KAI C++
7233 # pthread-config: use pthread-config program (for GNU Pth library)
7234
7235 case $host_os in
7236
7237         freebsd*)
7238
7239         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7240         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7241
7242         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7243         ;;
7244
7245         hpux*)
7246
7247         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7248         # multi-threading and also sets -lpthread."
7249
7250         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7251         ;;
7252
7253         openedition*)
7254
7255         # IBM z/OS requires a feature-test macro to be defined in order to
7256         # enable POSIX threads at all, so give the user a hint if this is
7257         # not set. (We don't define these ourselves, as they can affect
7258         # other portions of the system API in unpredictable ways.)
7259
7260         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h.  */
7262
7263 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7264              AX_PTHREAD_ZOS_MISSING
7265 #            endif
7266
7267 _ACEOF
7268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7269   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7270 then :
7271   { 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
7272 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7273 fi
7274 rm -rf conftest*
7275
7276         ;;
7277
7278         solaris*)
7279
7280         # On Solaris (at least, for some versions), libc contains stubbed
7281         # (non-functional) versions of the pthreads routines, so link-based
7282         # tests will erroneously succeed. (N.B.: The stubs are missing
7283         # pthread_cleanup_push, or rather a function called by this macro,
7284         # so we could check for that, but who knows whether they'll stub
7285         # that too in a future libc.)  So we'll check first for the
7286         # standard Solaris way of linking pthreads (-mt -lpthread).
7287
7288         ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7289         ;;
7290 esac
7291
7292 # Are we compiling with Clang?
7293
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7295 printf %s "checking whether $CC is Clang... " >&6; }
7296 if test ${ax_cv_PTHREAD_CLANG+y}
7297 then :
7298   printf %s "(cached) " >&6
7299 else $as_nop
7300   ax_cv_PTHREAD_CLANG=no
7301      # Note that Autoconf sets GCC=yes for Clang as well as GCC
7302      if test "x$GCC" = "xyes"; then
7303         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7306 #            if defined(__clang__) && defined(__llvm__)
7307              AX_PTHREAD_CC_IS_CLANG
7308 #            endif
7309
7310 _ACEOF
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7312   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7313 then :
7314   ax_cv_PTHREAD_CLANG=yes
7315 fi
7316 rm -rf conftest*
7317
7318      fi
7319
7320 fi
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7322 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7323 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7324
7325
7326 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7327
7328 # Note that for GCC and Clang -pthread generally implies -lpthread,
7329 # except when -nostdlib is passed.
7330 # This is problematic using libtool to build C++ shared libraries with pthread:
7331 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7332 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7333 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7334 # To solve this, first try -pthread together with -lpthread for GCC
7335
7336 if test "x$GCC" = "xyes"
7337 then :
7338   ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7339 fi
7340
7341 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7342
7343 if test "x$ax_pthread_clang" = "xyes"
7344 then :
7345   ax_pthread_flags="-pthread,-lpthread -pthread"
7346 fi
7347
7348
7349 # The presence of a feature test macro requesting re-entrant function
7350 # definitions is, on some systems, a strong hint that pthreads support is
7351 # correctly enabled
7352
7353 case $host_os in
7354         darwin* | hpux* | linux* | osf* | solaris*)
7355         ax_pthread_check_macro="_REENTRANT"
7356         ;;
7357
7358         aix*)
7359         ax_pthread_check_macro="_THREAD_SAFE"
7360         ;;
7361
7362         *)
7363         ax_pthread_check_macro="--"
7364         ;;
7365 esac
7366 if test "x$ax_pthread_check_macro" = "x--"
7367 then :
7368   ax_pthread_check_cond=0
7369 else $as_nop
7370   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7371 fi
7372
7373
7374 if test "x$ax_pthread_ok" = "xno"; then
7375 for ax_pthread_try_flag in $ax_pthread_flags; do
7376
7377         case $ax_pthread_try_flag in
7378                 none)
7379                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7380 printf %s "checking whether pthreads work without any flags... " >&6; }
7381                 ;;
7382
7383                 *,*)
7384                 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7385                 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7386                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7387 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7388                 ;;
7389
7390                 -*)
7391                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7392 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7393                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7394                 ;;
7395
7396                 pthread-config)
7397                 # Extract the first word of "pthread-config", so it can be a program name with args.
7398 set dummy pthread-config; ac_word=$2
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 printf %s "checking for $ac_word... " >&6; }
7401 if test ${ac_cv_prog_ax_pthread_config+y}
7402 then :
7403   printf %s "(cached) " >&6
7404 else $as_nop
7405   if test -n "$ax_pthread_config"; then
7406   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7407 else
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7410 do
7411   IFS=$as_save_IFS
7412   case $as_dir in #(((
7413     '') as_dir=./ ;;
7414     */) ;;
7415     *) as_dir=$as_dir/ ;;
7416   esac
7417     for ac_exec_ext in '' $ac_executable_extensions; do
7418   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7419     ac_cv_prog_ax_pthread_config="yes"
7420     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424   done
7425 IFS=$as_save_IFS
7426
7427   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7428 fi
7429 fi
7430 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7431 if test -n "$ax_pthread_config"; then
7432   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7433 printf "%s\n" "$ax_pthread_config" >&6; }
7434 else
7435   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 printf "%s\n" "no" >&6; }
7437 fi
7438
7439
7440                 if test "x$ax_pthread_config" = "xno"
7441 then :
7442   continue
7443 fi
7444                 PTHREAD_CFLAGS="`pthread-config --cflags`"
7445                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7446                 ;;
7447
7448                 *)
7449                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7450 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7451                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7452                 ;;
7453         esac
7454
7455         ax_pthread_save_CFLAGS="$CFLAGS"
7456         ax_pthread_save_LIBS="$LIBS"
7457         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7458         LIBS="$PTHREAD_LIBS $LIBS"
7459
7460         # Check for various functions.  We must include pthread.h,
7461         # since some functions may be macros.  (On the Sequent, we
7462         # need a special flag -Kthread to make this header compile.)
7463         # We check for pthread_join because it is in -lpthread on IRIX
7464         # while pthread_create is in libc.  We check for pthread_attr_init
7465         # due to DEC craziness with -lpthreads.  We check for
7466         # pthread_cleanup_push because it is one of the few pthread
7467         # functions on Solaris that doesn't have a non-functional libc stub.
7468         # We try pthread_create on general principles.
7469
7470         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h.  */
7472 #include <pthread.h>
7473 #                       if $ax_pthread_check_cond
7474 #                        error "$ax_pthread_check_macro must be defined"
7475 #                       endif
7476                         static void *some_global = NULL;
7477                         static void routine(void *a)
7478                           {
7479                              /* To avoid any unused-parameter or
7480                                 unused-but-set-parameter warning.  */
7481                              some_global = a;
7482                           }
7483                         static void *start_routine(void *a) { return a; }
7484 int
7485 main (void)
7486 {
7487 pthread_t th; pthread_attr_t attr;
7488                         pthread_create(&th, 0, start_routine, 0);
7489                         pthread_join(th, 0);
7490                         pthread_attr_init(&attr);
7491                         pthread_cleanup_push(routine, 0);
7492                         pthread_cleanup_pop(0) /* ; */
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"
7498 then :
7499   ax_pthread_ok=yes
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7502     conftest$ac_exeext conftest.$ac_ext
7503
7504         CFLAGS="$ax_pthread_save_CFLAGS"
7505         LIBS="$ax_pthread_save_LIBS"
7506
7507         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7508 printf "%s\n" "$ax_pthread_ok" >&6; }
7509         if test "x$ax_pthread_ok" = "xyes"
7510 then :
7511   break
7512 fi
7513
7514         PTHREAD_LIBS=""
7515         PTHREAD_CFLAGS=""
7516 done
7517 fi
7518
7519
7520 # Clang needs special handling, because older versions handle the -pthread
7521 # option in a rather... idiosyncratic way
7522
7523 if test "x$ax_pthread_clang" = "xyes"; then
7524
7525         # Clang takes -pthread; it has never supported any other flag
7526
7527         # (Note 1: This will need to be revisited if a system that Clang
7528         # supports has POSIX threads in a separate library.  This tends not
7529         # to be the way of modern systems, but it's conceivable.)
7530
7531         # (Note 2: On some systems, notably Darwin, -pthread is not needed
7532         # to get POSIX threads support; the API is always present and
7533         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7534         # -pthread does define _REENTRANT, and while the Darwin headers
7535         # ignore this macro, third-party headers might not.)
7536
7537         # However, older versions of Clang make a point of warning the user
7538         # that, in an invocation where only linking and no compilation is
7539         # taking place, the -pthread option has no effect ("argument unused
7540         # during compilation").  They expect -pthread to be passed in only
7541         # when source code is being compiled.
7542         #
7543         # Problem is, this is at odds with the way Automake and most other
7544         # C build frameworks function, which is that the same flags used in
7545         # compilation (CFLAGS) are also used in linking.  Many systems
7546         # supported by AX_PTHREAD require exactly this for POSIX threads
7547         # support, and in fact it is often not straightforward to specify a
7548         # flag that is used only in the compilation phase and not in
7549         # linking.  Such a scenario is extremely rare in practice.
7550         #
7551         # Even though use of the -pthread flag in linking would only print
7552         # a warning, this can be a nuisance for well-run software projects
7553         # that build with -Werror.  So if the active version of Clang has
7554         # this misfeature, we search for an option to squash it.
7555
7556         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7557 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7558 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7559 then :
7560   printf %s "(cached) " >&6
7561 else $as_nop
7562   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7563              # Create an alternate version of $ac_link that compiles and
7564              # links in two steps (.c -> .o, .o -> exe) instead of one
7565              # (.c -> exe), because the warning occurs only in the second
7566              # step
7567              ax_pthread_save_ac_link="$ac_link"
7568              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7569              ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7570              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7571              ax_pthread_save_CFLAGS="$CFLAGS"
7572              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7573                 if test "x$ax_pthread_try" = "xunknown"
7574 then :
7575   break
7576 fi
7577                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7578                 ac_link="$ax_pthread_save_ac_link"
7579                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h.  */
7581 int main(void){return 0;}
7582 _ACEOF
7583 if ac_fn_c_try_link "$LINENO"
7584 then :
7585   ac_link="$ax_pthread_2step_ac_link"
7586                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h.  */
7588 int main(void){return 0;}
7589 _ACEOF
7590 if ac_fn_c_try_link "$LINENO"
7591 then :
7592   break
7593 fi
7594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7595     conftest$ac_exeext conftest.$ac_ext
7596
7597 fi
7598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7599     conftest$ac_exeext conftest.$ac_ext
7600              done
7601              ac_link="$ax_pthread_save_ac_link"
7602              CFLAGS="$ax_pthread_save_CFLAGS"
7603              if test "x$ax_pthread_try" = "x"
7604 then :
7605   ax_pthread_try=no
7606 fi
7607              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7608
7609 fi
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7611 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7612
7613         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7614                 no | unknown) ;;
7615                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7616         esac
7617
7618 fi # $ax_pthread_clang = yes
7619
7620
7621
7622 # Various other checks:
7623 if test "x$ax_pthread_ok" = "xyes"; then
7624         ax_pthread_save_CFLAGS="$CFLAGS"
7625         ax_pthread_save_LIBS="$LIBS"
7626         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7627         LIBS="$PTHREAD_LIBS $LIBS"
7628
7629         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7630         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7631 printf %s "checking for joinable pthread attribute... " >&6; }
7632 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7633 then :
7634   printf %s "(cached) " >&6
7635 else $as_nop
7636   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7637              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7638                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h.  */
7640 #include <pthread.h>
7641 int
7642 main (void)
7643 {
7644 int attr = $ax_pthread_attr; return attr /* ; */
7645   ;
7646   return 0;
7647 }
7648 _ACEOF
7649 if ac_fn_c_try_link "$LINENO"
7650 then :
7651   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7654     conftest$ac_exeext conftest.$ac_ext
7655              done
7656
7657 fi
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7659 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7660         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7661                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7662                test "x$ax_pthread_joinable_attr_defined" != "xyes"
7663 then :
7664
7665 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7666
7667                ax_pthread_joinable_attr_defined=yes
7668
7669 fi
7670
7671         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7672 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7673 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7674 then :
7675   printf %s "(cached) " >&6
7676 else $as_nop
7677   ax_cv_PTHREAD_SPECIAL_FLAGS=no
7678              case $host_os in
7679              solaris*)
7680              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7681              ;;
7682              esac
7683
7684 fi
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7686 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7687         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7688                test "x$ax_pthread_special_flags_added" != "xyes"
7689 then :
7690   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7691                ax_pthread_special_flags_added=yes
7692 fi
7693
7694         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7695 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7696 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7697 then :
7698   printf %s "(cached) " >&6
7699 else $as_nop
7700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h.  */
7702 #include <pthread.h>
7703 int
7704 main (void)
7705 {
7706 int i = PTHREAD_PRIO_INHERIT;
7707                                                return i;
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_link "$LINENO"
7713 then :
7714   ax_cv_PTHREAD_PRIO_INHERIT=yes
7715 else $as_nop
7716   ax_cv_PTHREAD_PRIO_INHERIT=no
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7719     conftest$ac_exeext conftest.$ac_ext
7720
7721 fi
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7723 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7724         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7725                test "x$ax_pthread_prio_inherit_defined" != "xyes"
7726 then :
7727
7728 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7729
7730                ax_pthread_prio_inherit_defined=yes
7731
7732 fi
7733
7734         CFLAGS="$ax_pthread_save_CFLAGS"
7735         LIBS="$ax_pthread_save_LIBS"
7736
7737         # More AIX lossage: compile with *_r variant
7738         if test "x$GCC" != "xyes"; then
7739             case $host_os in
7740                 aix*)
7741                 case "x/$CC" in #(
7742   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7743     #handle absolute path differently from PATH based program lookup
7744                      case "x$CC" in #(
7745   x/*) :
7746
7747                            if as_fn_executable_p ${CC}_r
7748 then :
7749   PTHREAD_CC="${CC}_r"
7750 fi
7751                            if test "x${CXX}" != "x"
7752 then :
7753   if as_fn_executable_p ${CXX}_r
7754 then :
7755   PTHREAD_CXX="${CXX}_r"
7756 fi
7757 fi
7758                           ;; #(
7759   *) :
7760
7761                            for ac_prog in ${CC}_r
7762 do
7763   # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 printf %s "checking for $ac_word... " >&6; }
7767 if test ${ac_cv_prog_PTHREAD_CC+y}
7768 then :
7769   printf %s "(cached) " >&6
7770 else $as_nop
7771   if test -n "$PTHREAD_CC"; then
7772   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777   IFS=$as_save_IFS
7778   case $as_dir in #(((
7779     '') as_dir=./ ;;
7780     */) ;;
7781     *) as_dir=$as_dir/ ;;
7782   esac
7783     for ac_exec_ext in '' $ac_executable_extensions; do
7784   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7785     ac_cv_prog_PTHREAD_CC="$ac_prog"
7786     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7787     break 2
7788   fi
7789 done
7790   done
7791 IFS=$as_save_IFS
7792
7793 fi
7794 fi
7795 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7796 if test -n "$PTHREAD_CC"; then
7797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7798 printf "%s\n" "$PTHREAD_CC" >&6; }
7799 else
7800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 printf "%s\n" "no" >&6; }
7802 fi
7803
7804
7805   test -n "$PTHREAD_CC" && break
7806 done
7807 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7808
7809                            if test "x${CXX}" != "x"
7810 then :
7811   for ac_prog in ${CXX}_r
7812 do
7813   # Extract the first word of "$ac_prog", so it can be a program name with args.
7814 set dummy $ac_prog; ac_word=$2
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 printf %s "checking for $ac_word... " >&6; }
7817 if test ${ac_cv_prog_PTHREAD_CXX+y}
7818 then :
7819   printf %s "(cached) " >&6
7820 else $as_nop
7821   if test -n "$PTHREAD_CXX"; then
7822   ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   case $as_dir in #(((
7829     '') as_dir=./ ;;
7830     */) ;;
7831     *) as_dir=$as_dir/ ;;
7832   esac
7833     for ac_exec_ext in '' $ac_executable_extensions; do
7834   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7835     ac_cv_prog_PTHREAD_CXX="$ac_prog"
7836     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7837     break 2
7838   fi
7839 done
7840   done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7846 if test -n "$PTHREAD_CXX"; then
7847   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7848 printf "%s\n" "$PTHREAD_CXX" >&6; }
7849 else
7850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 printf "%s\n" "no" >&6; }
7852 fi
7853
7854
7855   test -n "$PTHREAD_CXX" && break
7856 done
7857 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7858
7859 fi
7860
7861                       ;;
7862 esac
7863                      ;; #(
7864   *) :
7865      ;;
7866 esac
7867                 ;;
7868             esac
7869         fi
7870 fi
7871
7872 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7873 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7874
7875
7876
7877
7878
7879
7880 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7881 if test "x$ax_pthread_ok" = "xyes"; then
7882
7883 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7884
7885         :
7886 else
7887         ax_pthread_ok=no
7888
7889 fi
7890 ac_ext=c
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895
7896
7897 else
7898 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7899
7900 fi
7901
7902 # Check whether --enable-uuidd was given.
7903 if test ${enable_uuidd+y}
7904 then :
7905   enableval=$enable_uuidd; if test "$enableval" = "no"
7906 then
7907         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7908 printf "%s\n" "Not building uuidd" >&6; }
7909         UUIDD_CMT="#"
7910 else
7911         printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7912
7913         UUIDD_CMT=""
7914         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7915 printf "%s\n" "Building uuidd" >&6; }
7916 fi
7917
7918 else $as_nop
7919   printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7920
7921 if test -z "$UUID_CMT"
7922 then
7923         UUIDD_CMT=""
7924         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7925 printf "%s\n" "Building uuidd by default" >&6; }
7926 else
7927         UUIDD_CMT="#"
7928         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7929 printf "%s\n" "Disabling uuidd by default" >&6; }
7930 fi
7931
7932 fi
7933
7934
7935
7936 # Check whether --enable-mmp was given.
7937 if test ${enable_mmp+y}
7938 then :
7939   enableval=$enable_mmp; if test "$enableval" = "no"
7940 then
7941         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7942 printf "%s\n" "Disabling mmp support" >&6; }
7943 else
7944         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7945 printf "%s\n" "Enabling mmp support" >&6; }
7946         printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7947
7948 fi
7949
7950 else $as_nop
7951   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7952 printf "%s\n" "Enabling mmp support by default" >&6; }
7953 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7954
7955
7956 fi
7957
7958
7959 # Check whether --enable-tdb was given.
7960 if test ${enable_tdb+y}
7961 then :
7962   enableval=$enable_tdb;
7963 if test "$enableval" = "no"
7964 then
7965         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7966 printf "%s\n" "Disabling tdb support" >&6; }
7967         CONFIG_TDB=0
7968 else
7969         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7970 printf "%s\n" "Enabling tdb support" >&6; }
7971         CONFIG_TDB=1
7972 fi
7973
7974
7975 else $as_nop
7976
7977 case "$host_os" in
7978 mingw*)
7979         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7980 printf "%s\n" "Disabling tdb support by default" >&6; }
7981         CONFIG_TDB=0
7982         ;;
7983 *)
7984         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7985 printf "%s\n" "Enabling tdb support by default" >&6; }
7986         CONFIG_TDB=1
7987         ;;
7988 esac
7989
7990
7991 fi
7992
7993 if test "$CONFIG_TDB" = "1"
7994 then
7995         printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
7996
7997         TDB_CMT=""
7998         TDB_MAN_COMMENT=""
7999 else
8000         TDB_CMT="#"
8001         TDB_MAN_COMMENT='.\"'
8002 fi
8003
8004
8005
8006 # Check whether --enable-bmap-stats was given.
8007 if test ${enable_bmap_stats+y}
8008 then :
8009   enableval=$enable_bmap_stats; if test "$enableval" = "no"
8010 then
8011         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8012 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8013 else
8014         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8015 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8016         printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8017
8018 fi
8019
8020 else $as_nop
8021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8022 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8023 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8024
8025
8026 fi
8027
8028
8029 # Check whether --enable-bmap-stats-ops was given.
8030 if test ${enable_bmap_stats_ops+y}
8031 then :
8032   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8033 then
8034         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8035 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8036 else
8037                 if test "x${enable_bmap_stats}" = "xno"
8038 then :
8039   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8040 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8041 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8042 See \`config.log' for more details" "$LINENO" 5; }
8043 fi
8044
8045         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8046 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8047         printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8048
8049 fi
8050
8051 else $as_nop
8052   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8053 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8054
8055 fi
8056
8057 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8058
8059 GETTEXT_PACKAGE=e2fsprogs
8060 PACKAGE=e2fsprogs
8061 VERSION="$E2FSPROGS_VERSION"
8062 VERSION=0.14.1
8063
8064 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8065
8066
8067 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8068
8069
8070
8071
8072
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8074 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8075 set x ${MAKE-make}
8076 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8077 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8078 then :
8079   printf %s "(cached) " >&6
8080 else $as_nop
8081   cat >conftest.make <<\_ACEOF
8082 SHELL = /bin/sh
8083 all:
8084         @echo '@@@%%%=$(MAKE)=@@@%%%'
8085 _ACEOF
8086 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8087 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8088   *@@@%%%=?*=@@@%%%*)
8089     eval ac_cv_prog_make_${ac_make}_set=yes;;
8090   *)
8091     eval ac_cv_prog_make_${ac_make}_set=no;;
8092 esac
8093 rm -f conftest.make
8094 fi
8095 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8096   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8097 printf "%s\n" "yes" >&6; }
8098   SET_MAKE=
8099 else
8100   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 printf "%s\n" "no" >&6; }
8102   SET_MAKE="MAKE=${MAKE-make}"
8103 fi
8104
8105
8106   # Find a good install program.  We prefer a C program (faster),
8107 # so one script is as good as another.  But avoid the broken or
8108 # incompatible versions:
8109 # SysV /etc/install, /usr/sbin/install
8110 # SunOS /usr/etc/install
8111 # IRIX /sbin/install
8112 # AIX /bin/install
8113 # AmigaOS /C/install, which installs bootblocks on floppy discs
8114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8117 # OS/2's system install, which has a completely different semantic
8118 # ./install, which can be erroneously created by make from ./install.sh.
8119 # Reject install programs that cannot install multiple files.
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8121 printf %s "checking for a BSD-compatible install... " >&6; }
8122 if test -z "$INSTALL"; then
8123 if test ${ac_cv_path_install+y}
8124 then :
8125   printf %s "(cached) " >&6
8126 else $as_nop
8127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130   IFS=$as_save_IFS
8131   case $as_dir in #(((
8132     '') as_dir=./ ;;
8133     */) ;;
8134     *) as_dir=$as_dir/ ;;
8135   esac
8136     # Account for fact that we put trailing slashes in our PATH walk.
8137 case $as_dir in #((
8138   ./ | /[cC]/* | \
8139   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8140   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8141   /usr/ucb/* ) ;;
8142   *)
8143     # OSF1 and SCO ODT 3.0 have their own names for install.
8144     # Don't use installbsd from OSF since it installs stuff as root
8145     # by default.
8146     for ac_prog in ginstall scoinst install; do
8147       for ac_exec_ext in '' $ac_executable_extensions; do
8148         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8149           if test $ac_prog = install &&
8150             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8151             # AIX install.  It has an incompatible calling convention.
8152             :
8153           elif test $ac_prog = install &&
8154             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8155             # program-specific install script used by HP pwplus--don't use.
8156             :
8157           else
8158             rm -rf conftest.one conftest.two conftest.dir
8159             echo one > conftest.one
8160             echo two > conftest.two
8161             mkdir conftest.dir
8162             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8163               test -s conftest.one && test -s conftest.two &&
8164               test -s conftest.dir/conftest.one &&
8165               test -s conftest.dir/conftest.two
8166             then
8167               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8168               break 3
8169             fi
8170           fi
8171         fi
8172       done
8173     done
8174     ;;
8175 esac
8176
8177   done
8178 IFS=$as_save_IFS
8179
8180 rm -rf conftest.one conftest.two conftest.dir
8181
8182 fi
8183   if test ${ac_cv_path_install+y}; then
8184     INSTALL=$ac_cv_path_install
8185   else
8186     # As a last resort, use the slow shell script.  Don't cache a
8187     # value for INSTALL within a source directory, because that will
8188     # break other packages using the cache if that directory is
8189     # removed, or if the value is a relative name.
8190     INSTALL=$ac_install_sh
8191   fi
8192 fi
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8194 printf "%s\n" "$INSTALL" >&6; }
8195
8196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8197 # It thinks the first close brace ends the variable substitution.
8198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8199
8200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8201
8202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8203
8204
8205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8206 printf %s "checking for a race-free mkdir -p... " >&6; }
8207 if test -z "$MKDIR_P"; then
8208   if test ${ac_cv_path_mkdir+y}
8209 then :
8210   printf %s "(cached) " >&6
8211 else $as_nop
8212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8214 do
8215   IFS=$as_save_IFS
8216   case $as_dir in #(((
8217     '') as_dir=./ ;;
8218     */) ;;
8219     *) as_dir=$as_dir/ ;;
8220   esac
8221     for ac_prog in mkdir gmkdir; do
8222          for ac_exec_ext in '' $ac_executable_extensions; do
8223            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8224            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8225              'mkdir ('*'coreutils) '* | \
8226              'BusyBox '* | \
8227              'mkdir (fileutils) '4.1*)
8228                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8229                break 3;;
8230            esac
8231          done
8232        done
8233   done
8234 IFS=$as_save_IFS
8235
8236 fi
8237
8238   test -d ./--version && rmdir ./--version
8239   if test ${ac_cv_path_mkdir+y}; then
8240     MKDIR_P="$ac_cv_path_mkdir -p"
8241   else
8242     # As a last resort, use the slow shell script.  Don't cache a
8243     # value for MKDIR_P within a source directory, because that will
8244     # break other packages using the cache if that directory is
8245     # removed, or if the value is a relative name.
8246     MKDIR_P="$ac_install_sh -d"
8247   fi
8248 fi
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8250 printf "%s\n" "$MKDIR_P" >&6; }
8251
8252
8253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8254 printf %s "checking whether NLS is requested... " >&6; }
8255     # Check whether --enable-nls was given.
8256 if test ${enable_nls+y}
8257 then :
8258   enableval=$enable_nls; USE_NLS=$enableval
8259 else $as_nop
8260   USE_NLS=yes
8261 fi
8262
8263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8264 printf "%s\n" "$USE_NLS" >&6; }
8265
8266
8267
8268
8269       GETTEXT_MACRO_VERSION=0.20
8270
8271
8272
8273
8274 # Prepare PATH_SEPARATOR.
8275 # The user is always right.
8276 if test "${PATH_SEPARATOR+set}" != set; then
8277   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8278   # contains only /bin. Note that ksh looks also at the FPATH variable,
8279   # so we have to set that as well for the test.
8280   PATH_SEPARATOR=:
8281   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8282     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8283            || PATH_SEPARATOR=';'
8284        }
8285 fi
8286
8287 # Find out how to test for executable files. Don't use a zero-byte file,
8288 # as systems may use methods other than mode bits to determine executability.
8289 cat >conf$$.file <<_ASEOF
8290 #! /bin/sh
8291 exit 0
8292 _ASEOF
8293 chmod +x conf$$.file
8294 if test -x conf$$.file >/dev/null 2>&1; then
8295   ac_executable_p="test -x"
8296 else
8297   ac_executable_p="test -f"
8298 fi
8299 rm -f conf$$.file
8300
8301 # Extract the first word of "msgfmt", so it can be a program name with args.
8302 set dummy msgfmt; ac_word=$2
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 printf %s "checking for $ac_word... " >&6; }
8305 if test ${ac_cv_path_MSGFMT+y}
8306 then :
8307   printf %s "(cached) " >&6
8308 else $as_nop
8309   case "$MSGFMT" in
8310   [\\/]* | ?:[\\/]*)
8311     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8312     ;;
8313   *)
8314     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8315     for ac_dir in $PATH; do
8316       IFS="$ac_save_IFS"
8317       test -z "$ac_dir" && ac_dir=.
8318       for ac_exec_ext in '' $ac_executable_extensions; do
8319         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8320           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8321           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8322      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8323             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8324             break 2
8325           fi
8326         fi
8327       done
8328     done
8329     IFS="$ac_save_IFS"
8330   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8331     ;;
8332 esac
8333 fi
8334 MSGFMT="$ac_cv_path_MSGFMT"
8335 if test "$MSGFMT" != ":"; then
8336   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8337 printf "%s\n" "$MSGFMT" >&6; }
8338 else
8339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 printf "%s\n" "no" >&6; }
8341 fi
8342
8343   # Extract the first word of "gmsgfmt", so it can be a program name with args.
8344 set dummy gmsgfmt; ac_word=$2
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 printf %s "checking for $ac_word... " >&6; }
8347 if test ${ac_cv_path_GMSGFMT+y}
8348 then :
8349   printf %s "(cached) " >&6
8350 else $as_nop
8351   case $GMSGFMT in
8352   [\\/]* | ?:[\\/]*)
8353   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8354   ;;
8355   *)
8356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8358 do
8359   IFS=$as_save_IFS
8360   case $as_dir in #(((
8361     '') as_dir=./ ;;
8362     */) ;;
8363     *) as_dir=$as_dir/ ;;
8364   esac
8365     for ac_exec_ext in '' $ac_executable_extensions; do
8366   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8367     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8368     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372   done
8373 IFS=$as_save_IFS
8374
8375   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8376   ;;
8377 esac
8378 fi
8379 GMSGFMT=$ac_cv_path_GMSGFMT
8380 if test -n "$GMSGFMT"; then
8381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8382 printf "%s\n" "$GMSGFMT" >&6; }
8383 else
8384   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 printf "%s\n" "no" >&6; }
8386 fi
8387
8388
8389
8390     case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8391     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8392     *) GMSGFMT_015=$GMSGFMT ;;
8393   esac
8394
8395
8396
8397 # Prepare PATH_SEPARATOR.
8398 # The user is always right.
8399 if test "${PATH_SEPARATOR+set}" != set; then
8400   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8401   # contains only /bin. Note that ksh looks also at the FPATH variable,
8402   # so we have to set that as well for the test.
8403   PATH_SEPARATOR=:
8404   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8405     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8406            || PATH_SEPARATOR=';'
8407        }
8408 fi
8409
8410 # Find out how to test for executable files. Don't use a zero-byte file,
8411 # as systems may use methods other than mode bits to determine executability.
8412 cat >conf$$.file <<_ASEOF
8413 #! /bin/sh
8414 exit 0
8415 _ASEOF
8416 chmod +x conf$$.file
8417 if test -x conf$$.file >/dev/null 2>&1; then
8418   ac_executable_p="test -x"
8419 else
8420   ac_executable_p="test -f"
8421 fi
8422 rm -f conf$$.file
8423
8424 # Extract the first word of "xgettext", so it can be a program name with args.
8425 set dummy xgettext; ac_word=$2
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 printf %s "checking for $ac_word... " >&6; }
8428 if test ${ac_cv_path_XGETTEXT+y}
8429 then :
8430   printf %s "(cached) " >&6
8431 else $as_nop
8432   case "$XGETTEXT" in
8433   [\\/]* | ?:[\\/]*)
8434     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8435     ;;
8436   *)
8437     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8438     for ac_dir in $PATH; do
8439       IFS="$ac_save_IFS"
8440       test -z "$ac_dir" && ac_dir=.
8441       for ac_exec_ext in '' $ac_executable_extensions; do
8442         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8443           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8444           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8445      (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
8446             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8447             break 2
8448           fi
8449         fi
8450       done
8451     done
8452     IFS="$ac_save_IFS"
8453   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8454     ;;
8455 esac
8456 fi
8457 XGETTEXT="$ac_cv_path_XGETTEXT"
8458 if test "$XGETTEXT" != ":"; then
8459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8460 printf "%s\n" "$XGETTEXT" >&6; }
8461 else
8462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 printf "%s\n" "no" >&6; }
8464 fi
8465
8466     rm -f messages.po
8467
8468     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8469     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8470     *) XGETTEXT_015=$XGETTEXT ;;
8471   esac
8472
8473
8474
8475 # Prepare PATH_SEPARATOR.
8476 # The user is always right.
8477 if test "${PATH_SEPARATOR+set}" != set; then
8478   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8479   # contains only /bin. Note that ksh looks also at the FPATH variable,
8480   # so we have to set that as well for the test.
8481   PATH_SEPARATOR=:
8482   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8483     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8484            || PATH_SEPARATOR=';'
8485        }
8486 fi
8487
8488 # Find out how to test for executable files. Don't use a zero-byte file,
8489 # as systems may use methods other than mode bits to determine executability.
8490 cat >conf$$.file <<_ASEOF
8491 #! /bin/sh
8492 exit 0
8493 _ASEOF
8494 chmod +x conf$$.file
8495 if test -x conf$$.file >/dev/null 2>&1; then
8496   ac_executable_p="test -x"
8497 else
8498   ac_executable_p="test -f"
8499 fi
8500 rm -f conf$$.file
8501
8502 # Extract the first word of "msgmerge", so it can be a program name with args.
8503 set dummy msgmerge; ac_word=$2
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 printf %s "checking for $ac_word... " >&6; }
8506 if test ${ac_cv_path_MSGMERGE+y}
8507 then :
8508   printf %s "(cached) " >&6
8509 else $as_nop
8510   case "$MSGMERGE" in
8511   [\\/]* | ?:[\\/]*)
8512     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8513     ;;
8514   *)
8515     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8516     for ac_dir in $PATH; do
8517       IFS="$ac_save_IFS"
8518       test -z "$ac_dir" && ac_dir=.
8519       for ac_exec_ext in '' $ac_executable_extensions; do
8520         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8521           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8522           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8523             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8524             break 2
8525           fi
8526         fi
8527       done
8528     done
8529     IFS="$ac_save_IFS"
8530   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8531     ;;
8532 esac
8533 fi
8534 MSGMERGE="$ac_cv_path_MSGMERGE"
8535 if test "$MSGMERGE" != ":"; then
8536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8537 printf "%s\n" "$MSGMERGE" >&6; }
8538 else
8539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 printf "%s\n" "no" >&6; }
8541 fi
8542
8543
8544     if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8545     MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8546   else
8547         if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8548       MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8549     else
8550                         MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8551     fi
8552   fi
8553
8554
8555     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8556
8557
8558   ac_config_commands="$ac_config_commands po-directories"
8559
8560
8561
8562       if test "X$prefix" = "XNONE"; then
8563     acl_final_prefix="$ac_default_prefix"
8564   else
8565     acl_final_prefix="$prefix"
8566   fi
8567   if test "X$exec_prefix" = "XNONE"; then
8568     acl_final_exec_prefix='${prefix}'
8569   else
8570     acl_final_exec_prefix="$exec_prefix"
8571   fi
8572   acl_save_prefix="$prefix"
8573   prefix="$acl_final_prefix"
8574   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8575   prefix="$acl_save_prefix"
8576
8577
8578
8579 # Check whether --with-gnu-ld was given.
8580 if test ${with_gnu_ld+y}
8581 then :
8582   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8583 else $as_nop
8584   with_gnu_ld=no
8585 fi
8586
8587 # Prepare PATH_SEPARATOR.
8588 # The user is always right.
8589 if test "${PATH_SEPARATOR+set}" != set; then
8590   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8591   # contains only /bin. Note that ksh looks also at the FPATH variable,
8592   # so we have to set that as well for the test.
8593   PATH_SEPARATOR=:
8594   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8595     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8596            || PATH_SEPARATOR=';'
8597        }
8598 fi
8599
8600 if test -n "$LD"; then
8601   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8602 printf %s "checking for ld... " >&6; }
8603 elif test "$GCC" = yes; then
8604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8605 printf %s "checking for ld used by $CC... " >&6; }
8606 elif test "$with_gnu_ld" = yes; then
8607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8608 printf %s "checking for GNU ld... " >&6; }
8609 else
8610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8611 printf %s "checking for non-GNU ld... " >&6; }
8612 fi
8613 if test -n "$LD"; then
8614   # Let the user override the test with a path.
8615   :
8616 else
8617   if test ${acl_cv_path_LD+y}
8618 then :
8619   printf %s "(cached) " >&6
8620 else $as_nop
8621
8622     acl_cv_path_LD= # Final result of this test
8623     ac_prog=ld # Program to search in $PATH
8624     if test "$GCC" = yes; then
8625       # Check if gcc -print-prog-name=ld gives a path.
8626       case $host in
8627         *-*-mingw*)
8628           # gcc leaves a trailing carriage return which upsets mingw
8629           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8630         *)
8631           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8632       esac
8633       case $acl_output in
8634         # Accept absolute paths.
8635         [\\/]* | ?:[\\/]*)
8636           re_direlt='/[^/][^/]*/\.\./'
8637           # Canonicalize the pathname of ld
8638           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8639           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8640             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8641           done
8642           # Got the pathname. No search in PATH is needed.
8643           acl_cv_path_LD="$acl_output"
8644           ac_prog=
8645           ;;
8646         "")
8647           # If it fails, then pretend we aren't using GCC.
8648           ;;
8649         *)
8650           # If it is relative, then search for the first ld in PATH.
8651           with_gnu_ld=unknown
8652           ;;
8653       esac
8654     fi
8655     if test -n "$ac_prog"; then
8656       # Search for $ac_prog in $PATH.
8657       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8658       for ac_dir in $PATH; do
8659         IFS="$acl_save_ifs"
8660         test -z "$ac_dir" && ac_dir=.
8661         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8662           acl_cv_path_LD="$ac_dir/$ac_prog"
8663           # Check to see if the program is GNU ld.  I'd rather use --version,
8664           # but apparently some variants of GNU ld only accept -v.
8665           # Break only if it was the GNU/non-GNU ld that we prefer.
8666           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8667             *GNU* | *'with BFD'*)
8668               test "$with_gnu_ld" != no && break
8669               ;;
8670             *)
8671               test "$with_gnu_ld" != yes && break
8672               ;;
8673           esac
8674         fi
8675       done
8676       IFS="$acl_save_ifs"
8677     fi
8678     case $host in
8679       *-*-aix*)
8680         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h.  */
8682 #if defined __powerpc64__ || defined _ARCH_PPC64
8683                 int ok;
8684                #else
8685                 error fail
8686                #endif
8687
8688 _ACEOF
8689 if ac_fn_c_try_compile "$LINENO"
8690 then :
8691   # The compiler produces 64-bit code. Add option '-b64' so that the
8692            # linker groks 64-bit object files.
8693            case "$acl_cv_path_LD " in
8694              *" -b64 "*) ;;
8695              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8696            esac
8697
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8700         ;;
8701       sparc64-*-netbsd*)
8702         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h.  */
8704 #if defined __sparcv9 || defined __arch64__
8705                 int ok;
8706                #else
8707                 error fail
8708                #endif
8709
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"
8712 then :
8713
8714 else $as_nop
8715   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8716            # so that the linker groks 32-bit object files.
8717            case "$acl_cv_path_LD " in
8718              *" -m elf32_sparc "*) ;;
8719              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8720            esac
8721
8722 fi
8723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8724         ;;
8725     esac
8726
8727 fi
8728
8729   LD="$acl_cv_path_LD"
8730 fi
8731 if test -n "$LD"; then
8732   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8733 printf "%s\n" "$LD" >&6; }
8734 else
8735   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 printf "%s\n" "no" >&6; }
8737   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8738 fi
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8740 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8741 if test ${acl_cv_prog_gnu_ld+y}
8742 then :
8743   printf %s "(cached) " >&6
8744 else $as_nop
8745   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8746 case `$LD -v 2>&1 </dev/null` in
8747 *GNU* | *'with BFD'*)
8748   acl_cv_prog_gnu_ld=yes
8749   ;;
8750 *)
8751   acl_cv_prog_gnu_ld=no
8752   ;;
8753 esac
8754 fi
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8756 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8757 with_gnu_ld=$acl_cv_prog_gnu_ld
8758
8759
8760
8761
8762
8763
8764                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8765 printf %s "checking for shared library run path origin... " >&6; }
8766 if test ${acl_cv_rpath+y}
8767 then :
8768   printf %s "(cached) " >&6
8769 else $as_nop
8770
8771     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8772     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8773     . ./conftest.sh
8774     rm -f ./conftest.sh
8775     acl_cv_rpath=done
8776
8777 fi
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8779 printf "%s\n" "$acl_cv_rpath" >&6; }
8780   wl="$acl_cv_wl"
8781   acl_libext="$acl_cv_libext"
8782   acl_shlibext="$acl_cv_shlibext"
8783   acl_libname_spec="$acl_cv_libname_spec"
8784   acl_library_names_spec="$acl_cv_library_names_spec"
8785   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8786   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8787   acl_hardcode_direct="$acl_cv_hardcode_direct"
8788   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8789     # Check whether --enable-rpath was given.
8790 if test ${enable_rpath+y}
8791 then :
8792   enableval=$enable_rpath; :
8793 else $as_nop
8794   enable_rpath=yes
8795 fi
8796
8797
8798
8799
8800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8801 printf %s "checking 32-bit host C ABI... " >&6; }
8802 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8803 then :
8804   printf %s "(cached) " >&6
8805 else $as_nop
8806   if test -n "$gl_cv_host_cpu_c_abi"; then
8807        case "$gl_cv_host_cpu_c_abi" in
8808          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8809            gl_cv_host_cpu_c_abi_32bit=yes ;;
8810          x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8811            gl_cv_host_cpu_c_abi_32bit=no ;;
8812          *)
8813            gl_cv_host_cpu_c_abi_32bit=unknown ;;
8814        esac
8815      else
8816        case "$host_cpu" in
8817
8818          # CPUs that only support a 32-bit ABI.
8819          arc \
8820          | bfin \
8821          | cris* \
8822          | csky \
8823          | epiphany \
8824          | ft32 \
8825          | h8300 \
8826          | m68k \
8827          | microblaze | microblazeel \
8828          | nds32 | nds32le | nds32be \
8829          | nios2 | nios2eb | nios2el \
8830          | or1k* \
8831          | or32 \
8832          | sh | sh1234 | sh1234elb \
8833          | tic6x \
8834          | xtensa* )
8835            gl_cv_host_cpu_c_abi_32bit=yes
8836            ;;
8837
8838          # CPUs that only support a 64-bit ABI.
8839          alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8840          | mmix )
8841            gl_cv_host_cpu_c_abi_32bit=no
8842            ;;
8843
8844          i[34567]86 )
8845            gl_cv_host_cpu_c_abi_32bit=yes
8846            ;;
8847
8848          x86_64 )
8849            # On x86_64 systems, the C compiler may be generating code in one of
8850            # these ABIs:
8851            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8852            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8853            #   with native Windows (mingw, MSVC).
8854            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8855            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8856            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h.  */
8858 #if (defined __x86_64__ || defined __amd64__ \
8859                        || defined _M_X64 || defined _M_AMD64) \
8860                       && !(defined __ILP32__ || defined _ILP32)
8861                    int ok;
8862                   #else
8863                    error fail
8864                   #endif
8865
8866 _ACEOF
8867 if ac_fn_c_try_compile "$LINENO"
8868 then :
8869   gl_cv_host_cpu_c_abi_32bit=no
8870 else $as_nop
8871   gl_cv_host_cpu_c_abi_32bit=yes
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8874            ;;
8875
8876          arm* | aarch64 )
8877            # Assume arm with EABI.
8878            # On arm64 systems, the C compiler may be generating code in one of
8879            # these ABIs:
8880            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8881            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8882            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8883            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h.  */
8885 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8886                    int ok;
8887                   #else
8888                    error fail
8889                   #endif
8890
8891 _ACEOF
8892 if ac_fn_c_try_compile "$LINENO"
8893 then :
8894   gl_cv_host_cpu_c_abi_32bit=no
8895 else $as_nop
8896   gl_cv_host_cpu_c_abi_32bit=yes
8897 fi
8898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8899            ;;
8900
8901          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8902            # On hppa, the C compiler may be generating 32-bit code or 64-bit
8903            # code. In the latter case, it defines _LP64 and __LP64__.
8904            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h.  */
8906 #ifdef __LP64__
8907                    int ok;
8908                   #else
8909                    error fail
8910                   #endif
8911
8912 _ACEOF
8913 if ac_fn_c_try_compile "$LINENO"
8914 then :
8915   gl_cv_host_cpu_c_abi_32bit=no
8916 else $as_nop
8917   gl_cv_host_cpu_c_abi_32bit=yes
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8920            ;;
8921
8922          ia64* )
8923            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8924            # 32-bit code. In the latter case, it defines _ILP32.
8925            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h.  */
8927 #ifdef _ILP32
8928                    int ok;
8929                   #else
8930                    error fail
8931                   #endif
8932
8933 _ACEOF
8934 if ac_fn_c_try_compile "$LINENO"
8935 then :
8936   gl_cv_host_cpu_c_abi_32bit=yes
8937 else $as_nop
8938   gl_cv_host_cpu_c_abi_32bit=no
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8941            ;;
8942
8943          mips* )
8944            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8945            # at 32.
8946            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h.  */
8948 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8949                    int ok;
8950                   #else
8951                    error fail
8952                   #endif
8953
8954 _ACEOF
8955 if ac_fn_c_try_compile "$LINENO"
8956 then :
8957   gl_cv_host_cpu_c_abi_32bit=no
8958 else $as_nop
8959   gl_cv_host_cpu_c_abi_32bit=yes
8960 fi
8961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8962            ;;
8963
8964          powerpc* )
8965            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8966            # No need to distinguish them here; the caller may distinguish
8967            # them based on the OS.
8968            # On powerpc64 systems, the C compiler may still be generating
8969            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8970            # be generating 64-bit code.
8971            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h.  */
8973 #if defined __powerpc64__ || defined _ARCH_PPC64
8974                    int ok;
8975                   #else
8976                    error fail
8977                   #endif
8978
8979 _ACEOF
8980 if ac_fn_c_try_compile "$LINENO"
8981 then :
8982   gl_cv_host_cpu_c_abi_32bit=no
8983 else $as_nop
8984   gl_cv_host_cpu_c_abi_32bit=yes
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8987            ;;
8988
8989          rs6000 )
8990            gl_cv_host_cpu_c_abi_32bit=yes
8991            ;;
8992
8993          riscv32 | riscv64 )
8994            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8995            # Size of 'long' and 'void *':
8996            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h.  */
8998 #if defined __LP64__
8999                     int ok;
9000                   #else
9001                     error fail
9002                   #endif
9003
9004 _ACEOF
9005 if ac_fn_c_try_compile "$LINENO"
9006 then :
9007   gl_cv_host_cpu_c_abi_32bit=no
9008 else $as_nop
9009   gl_cv_host_cpu_c_abi_32bit=yes
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9012            ;;
9013
9014          s390* )
9015            # On s390x, the C compiler may be generating 64-bit (= s390x) code
9016            # or 31-bit (= s390) code.
9017            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h.  */
9019 #if defined __LP64__ || defined __s390x__
9020                     int ok;
9021                   #else
9022                     error fail
9023                   #endif
9024
9025 _ACEOF
9026 if ac_fn_c_try_compile "$LINENO"
9027 then :
9028   gl_cv_host_cpu_c_abi_32bit=no
9029 else $as_nop
9030   gl_cv_host_cpu_c_abi_32bit=yes
9031 fi
9032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9033            ;;
9034
9035          sparc | sparc64 )
9036            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9037            # C compiler still generates 32-bit code.
9038            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h.  */
9040 #if defined __sparcv9 || defined __arch64__
9041                    int ok;
9042                   #else
9043                    error fail
9044                   #endif
9045
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"
9048 then :
9049   gl_cv_host_cpu_c_abi_32bit=no
9050 else $as_nop
9051   gl_cv_host_cpu_c_abi_32bit=yes
9052 fi
9053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9054            ;;
9055
9056          *)
9057            gl_cv_host_cpu_c_abi_32bit=unknown
9058            ;;
9059        esac
9060      fi
9061
9062 fi
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9064 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9065
9066   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9067
9068
9069
9070
9071
9072   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9073 printf %s "checking for ELF binary format... " >&6; }
9074 if test ${gl_cv_elf+y}
9075 then :
9076   printf %s "(cached) " >&6
9077 else $as_nop
9078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h.  */
9080 #ifdef __ELF__
9081         Extensible Linking Format
9082         #endif
9083
9084 _ACEOF
9085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9086   $EGREP "Extensible Linking Format" >/dev/null 2>&1
9087 then :
9088   gl_cv_elf=yes
9089 else $as_nop
9090   gl_cv_elf=no
9091 fi
9092 rm -rf conftest*
9093
9094
9095 fi
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9097 printf "%s\n" "$gl_cv_elf" >&6; }
9098   if test $gl_cv_elf; then
9099     # Extract the ELF class of a file (5th byte) in decimal.
9100     # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9101     if od -A x < /dev/null >/dev/null 2>/dev/null; then
9102       # Use POSIX od.
9103       func_elfclass ()
9104       {
9105         od -A n -t d1 -j 4 -N 1
9106       }
9107     else
9108       # Use BSD hexdump.
9109       func_elfclass ()
9110       {
9111         dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9112         echo
9113       }
9114     fi
9115     case $HOST_CPU_C_ABI_32BIT in
9116       yes)
9117         # 32-bit ABI.
9118         acl_is_expected_elfclass ()
9119         {
9120           test "`func_elfclass | sed -e 's/[    ]//g'`" = 1
9121         }
9122         ;;
9123       no)
9124         # 64-bit ABI.
9125         acl_is_expected_elfclass ()
9126         {
9127           test "`func_elfclass | sed -e 's/[    ]//g'`" = 2
9128         }
9129         ;;
9130       *)
9131         # Unknown.
9132         acl_is_expected_elfclass ()
9133         {
9134           :
9135         }
9136         ;;
9137     esac
9138   else
9139     acl_is_expected_elfclass ()
9140     {
9141       :
9142     }
9143   fi
9144
9145     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9146 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9147 if test ${acl_cv_libdirstems+y}
9148 then :
9149   printf %s "(cached) " >&6
9150 else $as_nop
9151             acl_libdirstem=lib
9152      acl_libdirstem2=
9153      acl_libdirstem3=
9154      case "$host_os" in
9155        solaris*)
9156                                                       if test $HOST_CPU_C_ABI_32BIT = no; then
9157            acl_libdirstem2=lib/64
9158            case "$host_cpu" in
9159              sparc*)        acl_libdirstem3=lib/sparcv9 ;;
9160              i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9161            esac
9162          fi
9163          ;;
9164        *)
9165                                                                                  searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9166                      | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9167          if test $HOST_CPU_C_ABI_32BIT != no; then
9168            # 32-bit or unknown ABI.
9169            if test -d /usr/lib32; then
9170              acl_libdirstem2=lib32
9171            fi
9172          fi
9173          if test $HOST_CPU_C_ABI_32BIT != yes; then
9174            # 64-bit or unknown ABI.
9175            if test -d /usr/lib64; then
9176              acl_libdirstem3=lib64
9177            fi
9178          fi
9179          if test -n "$searchpath"; then
9180            acl_save_IFS="${IFS=         }"; IFS=":"
9181            for searchdir in $searchpath; do
9182              if test -d "$searchdir"; then
9183                case "$searchdir" in
9184                  */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9185                  */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9186                  */../ | */.. )
9187                    # Better ignore directories of this form. They are misleading.
9188                    ;;
9189                  *) searchdir=`cd "$searchdir" && pwd`
9190                     case "$searchdir" in
9191                       */lib32 ) acl_libdirstem2=lib32 ;;
9192                       */lib64 ) acl_libdirstem3=lib64 ;;
9193                     esac ;;
9194                esac
9195              fi
9196            done
9197            IFS="$acl_save_IFS"
9198            if test $HOST_CPU_C_ABI_32BIT = yes; then
9199              # 32-bit ABI.
9200              acl_libdirstem3=
9201            fi
9202            if test $HOST_CPU_C_ABI_32BIT = no; then
9203              # 64-bit ABI.
9204              acl_libdirstem2=
9205            fi
9206          fi
9207          ;;
9208      esac
9209      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9210      test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9211      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9212
9213 fi
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9215 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9216       acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9217   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9218   acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230     use_additional=yes
9231
9232   acl_save_prefix="$prefix"
9233   prefix="$acl_final_prefix"
9234   acl_save_exec_prefix="$exec_prefix"
9235   exec_prefix="$acl_final_exec_prefix"
9236
9237     eval additional_includedir=\"$includedir\"
9238     eval additional_libdir=\"$libdir\"
9239     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9240     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9241
9242   exec_prefix="$acl_save_exec_prefix"
9243   prefix="$acl_save_prefix"
9244
9245
9246 # Check whether --with-libiconv-prefix was given.
9247 if test ${with_libiconv_prefix+y}
9248 then :
9249   withval=$with_libiconv_prefix;
9250     if test "X$withval" = "Xno"; then
9251       use_additional=no
9252     else
9253       if test "X$withval" = "X"; then
9254
9255   acl_save_prefix="$prefix"
9256   prefix="$acl_final_prefix"
9257   acl_save_exec_prefix="$exec_prefix"
9258   exec_prefix="$acl_final_exec_prefix"
9259
9260           eval additional_includedir=\"$includedir\"
9261           eval additional_libdir=\"$libdir\"
9262           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9263           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9264
9265   exec_prefix="$acl_save_exec_prefix"
9266   prefix="$acl_save_prefix"
9267
9268       else
9269         additional_includedir="$withval/include"
9270         additional_libdir="$withval/$acl_libdirstem"
9271         additional_libdir2="$withval/$acl_libdirstem2"
9272         additional_libdir3="$withval/$acl_libdirstem3"
9273       fi
9274     fi
9275
9276 fi
9277
9278   if test "X$additional_libdir2" = "X$additional_libdir"; then
9279     additional_libdir2=
9280   fi
9281   if test "X$additional_libdir3" = "X$additional_libdir"; then
9282     additional_libdir3=
9283   fi
9284       LIBICONV=
9285   LTLIBICONV=
9286   INCICONV=
9287   LIBICONV_PREFIX=
9288       HAVE_LIBICONV=
9289   rpathdirs=
9290   ltrpathdirs=
9291   names_already_handled=
9292   names_next_round='iconv '
9293   while test -n "$names_next_round"; do
9294     names_this_round="$names_next_round"
9295     names_next_round=
9296     for name in $names_this_round; do
9297       already_handled=
9298       for n in $names_already_handled; do
9299         if test "$n" = "$name"; then
9300           already_handled=yes
9301           break
9302         fi
9303       done
9304       if test -z "$already_handled"; then
9305         names_already_handled="$names_already_handled $name"
9306                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9307         eval value=\"\$HAVE_LIB$uppername\"
9308         if test -n "$value"; then
9309           if test "$value" = yes; then
9310             eval value=\"\$LIB$uppername\"
9311             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9312             eval value=\"\$LTLIB$uppername\"
9313             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9314           else
9315                                     :
9316           fi
9317         else
9318                               found_dir=
9319           found_la=
9320           found_so=
9321           found_a=
9322           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9323           if test -n "$acl_shlibext"; then
9324             shrext=".$acl_shlibext"             # typically: shrext=.so
9325           else
9326             shrext=
9327           fi
9328           if test $use_additional = yes; then
9329             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9330               if test "X$found_dir" = "X"; then
9331                 eval dir=\$$additional_libdir_variable
9332                 if test -n "$dir"; then
9333                                                       if test -n "$acl_shlibext"; then
9334                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9335                       found_dir="$dir"
9336                       found_so="$dir/$libname$shrext"
9337                     else
9338                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9339                         ver=`(cd "$dir" && \
9340                               for f in "$libname$shrext".*; do echo "$f"; done \
9341                               | sed -e "s,^$libname$shrext\\\\.,," \
9342                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9343                               | sed 1q ) 2>/dev/null`
9344                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9345                           found_dir="$dir"
9346                           found_so="$dir/$libname$shrext.$ver"
9347                         fi
9348                       else
9349                         eval library_names=\"$acl_library_names_spec\"
9350                         for f in $library_names; do
9351                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9352                             found_dir="$dir"
9353                             found_so="$dir/$f"
9354                             break
9355                           fi
9356                         done
9357                       fi
9358                     fi
9359                   fi
9360                                     if test "X$found_dir" = "X"; then
9361                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9362                       found_dir="$dir"
9363                       found_a="$dir/$libname.$acl_libext"
9364                     fi
9365                   fi
9366                   if test "X$found_dir" != "X"; then
9367                     if test -f "$dir/$libname.la"; then
9368                       found_la="$dir/$libname.la"
9369                     fi
9370                   fi
9371                 fi
9372               fi
9373             done
9374           fi
9375           if test "X$found_dir" = "X"; then
9376             for x in $LDFLAGS $LTLIBICONV; do
9377
9378   acl_save_prefix="$prefix"
9379   prefix="$acl_final_prefix"
9380   acl_save_exec_prefix="$exec_prefix"
9381   exec_prefix="$acl_final_exec_prefix"
9382   eval x=\"$x\"
9383   exec_prefix="$acl_save_exec_prefix"
9384   prefix="$acl_save_prefix"
9385
9386               case "$x" in
9387                 -L*)
9388                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9389                                     if test -n "$acl_shlibext"; then
9390                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9391                       found_dir="$dir"
9392                       found_so="$dir/$libname$shrext"
9393                     else
9394                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9395                         ver=`(cd "$dir" && \
9396                               for f in "$libname$shrext".*; do echo "$f"; done \
9397                               | sed -e "s,^$libname$shrext\\\\.,," \
9398                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9399                               | sed 1q ) 2>/dev/null`
9400                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9401                           found_dir="$dir"
9402                           found_so="$dir/$libname$shrext.$ver"
9403                         fi
9404                       else
9405                         eval library_names=\"$acl_library_names_spec\"
9406                         for f in $library_names; do
9407                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9408                             found_dir="$dir"
9409                             found_so="$dir/$f"
9410                             break
9411                           fi
9412                         done
9413                       fi
9414                     fi
9415                   fi
9416                                     if test "X$found_dir" = "X"; then
9417                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9418                       found_dir="$dir"
9419                       found_a="$dir/$libname.$acl_libext"
9420                     fi
9421                   fi
9422                   if test "X$found_dir" != "X"; then
9423                     if test -f "$dir/$libname.la"; then
9424                       found_la="$dir/$libname.la"
9425                     fi
9426                   fi
9427                   ;;
9428               esac
9429               if test "X$found_dir" != "X"; then
9430                 break
9431               fi
9432             done
9433           fi
9434           if test "X$found_dir" != "X"; then
9435                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9436             if test "X$found_so" != "X"; then
9437                                                         if test "$enable_rpath" = no \
9438                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9439                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9440                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9441                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9442               else
9443                                                                                 haveit=
9444                 for x in $ltrpathdirs; do
9445                   if test "X$x" = "X$found_dir"; then
9446                     haveit=yes
9447                     break
9448                   fi
9449                 done
9450                 if test -z "$haveit"; then
9451                   ltrpathdirs="$ltrpathdirs $found_dir"
9452                 fi
9453                                 if test "$acl_hardcode_direct" = yes; then
9454                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9455                 else
9456                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9457                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9458                                                             haveit=
9459                     for x in $rpathdirs; do
9460                       if test "X$x" = "X$found_dir"; then
9461                         haveit=yes
9462                         break
9463                       fi
9464                     done
9465                     if test -z "$haveit"; then
9466                       rpathdirs="$rpathdirs $found_dir"
9467                     fi
9468                   else
9469                                                                                 haveit=
9470                     for x in $LDFLAGS $LIBICONV; do
9471
9472   acl_save_prefix="$prefix"
9473   prefix="$acl_final_prefix"
9474   acl_save_exec_prefix="$exec_prefix"
9475   exec_prefix="$acl_final_exec_prefix"
9476   eval x=\"$x\"
9477   exec_prefix="$acl_save_exec_prefix"
9478   prefix="$acl_save_prefix"
9479
9480                       if test "X$x" = "X-L$found_dir"; then
9481                         haveit=yes
9482                         break
9483                       fi
9484                     done
9485                     if test -z "$haveit"; then
9486                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9487                     fi
9488                     if test "$acl_hardcode_minus_L" != no; then
9489                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9490                     else
9491                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9492                     fi
9493                   fi
9494                 fi
9495               fi
9496             else
9497               if test "X$found_a" != "X"; then
9498                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9499               else
9500                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9501               fi
9502             fi
9503                         additional_includedir=
9504             case "$found_dir" in
9505               */$acl_libdirstem | */$acl_libdirstem/)
9506                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9507                 if test "$name" = 'iconv'; then
9508                   LIBICONV_PREFIX="$basedir"
9509                 fi
9510                 additional_includedir="$basedir/include"
9511                 ;;
9512               */$acl_libdirstem2 | */$acl_libdirstem2/)
9513                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9514                 if test "$name" = 'iconv'; then
9515                   LIBICONV_PREFIX="$basedir"
9516                 fi
9517                 additional_includedir="$basedir/include"
9518                 ;;
9519               */$acl_libdirstem3 | */$acl_libdirstem3/)
9520                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9521                 if test "$name" = 'iconv'; then
9522                   LIBICONV_PREFIX="$basedir"
9523                 fi
9524                 additional_includedir="$basedir/include"
9525                 ;;
9526             esac
9527             if test "X$additional_includedir" != "X"; then
9528                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9529                 haveit=
9530                 if test "X$additional_includedir" = "X/usr/local/include"; then
9531                   if test -n "$GCC"; then
9532                     case $host_os in
9533                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9534                     esac
9535                   fi
9536                 fi
9537                 if test -z "$haveit"; then
9538                   for x in $CPPFLAGS $INCICONV; do
9539
9540   acl_save_prefix="$prefix"
9541   prefix="$acl_final_prefix"
9542   acl_save_exec_prefix="$exec_prefix"
9543   exec_prefix="$acl_final_exec_prefix"
9544   eval x=\"$x\"
9545   exec_prefix="$acl_save_exec_prefix"
9546   prefix="$acl_save_prefix"
9547
9548                     if test "X$x" = "X-I$additional_includedir"; then
9549                       haveit=yes
9550                       break
9551                     fi
9552                   done
9553                   if test -z "$haveit"; then
9554                     if test -d "$additional_includedir"; then
9555                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9556                     fi
9557                   fi
9558                 fi
9559               fi
9560             fi
9561                         if test -n "$found_la"; then
9562                                                         save_libdir="$libdir"
9563               case "$found_la" in
9564                 */* | *\\*) . "$found_la" ;;
9565                 *) . "./$found_la" ;;
9566               esac
9567               libdir="$save_libdir"
9568                             for dep in $dependency_libs; do
9569                 case "$dep" in
9570                   -L*)
9571                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9572                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9573                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9574                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9575                       haveit=
9576                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9577                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9578                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9579                         if test -n "$GCC"; then
9580                           case $host_os in
9581                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9582                           esac
9583                         fi
9584                       fi
9585                       if test -z "$haveit"; then
9586                         haveit=
9587                         for x in $LDFLAGS $LIBICONV; do
9588
9589   acl_save_prefix="$prefix"
9590   prefix="$acl_final_prefix"
9591   acl_save_exec_prefix="$exec_prefix"
9592   exec_prefix="$acl_final_exec_prefix"
9593   eval x=\"$x\"
9594   exec_prefix="$acl_save_exec_prefix"
9595   prefix="$acl_save_prefix"
9596
9597                           if test "X$x" = "X-L$dependency_libdir"; then
9598                             haveit=yes
9599                             break
9600                           fi
9601                         done
9602                         if test -z "$haveit"; then
9603                           if test -d "$dependency_libdir"; then
9604                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9605                           fi
9606                         fi
9607                         haveit=
9608                         for x in $LDFLAGS $LTLIBICONV; do
9609
9610   acl_save_prefix="$prefix"
9611   prefix="$acl_final_prefix"
9612   acl_save_exec_prefix="$exec_prefix"
9613   exec_prefix="$acl_final_exec_prefix"
9614   eval x=\"$x\"
9615   exec_prefix="$acl_save_exec_prefix"
9616   prefix="$acl_save_prefix"
9617
9618                           if test "X$x" = "X-L$dependency_libdir"; then
9619                             haveit=yes
9620                             break
9621                           fi
9622                         done
9623                         if test -z "$haveit"; then
9624                           if test -d "$dependency_libdir"; then
9625                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9626                           fi
9627                         fi
9628                       fi
9629                     fi
9630                     ;;
9631                   -R*)
9632                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9633                     if test "$enable_rpath" != no; then
9634                                                                   haveit=
9635                       for x in $rpathdirs; do
9636                         if test "X$x" = "X$dir"; then
9637                           haveit=yes
9638                           break
9639                         fi
9640                       done
9641                       if test -z "$haveit"; then
9642                         rpathdirs="$rpathdirs $dir"
9643                       fi
9644                                                                   haveit=
9645                       for x in $ltrpathdirs; do
9646                         if test "X$x" = "X$dir"; then
9647                           haveit=yes
9648                           break
9649                         fi
9650                       done
9651                       if test -z "$haveit"; then
9652                         ltrpathdirs="$ltrpathdirs $dir"
9653                       fi
9654                     fi
9655                     ;;
9656                   -l*)
9657                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9658                     ;;
9659                   *.la)
9660                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9661                     ;;
9662                   *)
9663                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9664                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9665                     ;;
9666                 esac
9667               done
9668             fi
9669           else
9670                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9671             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9672           fi
9673         fi
9674       fi
9675     done
9676   done
9677   if test "X$rpathdirs" != "X"; then
9678     if test -n "$acl_hardcode_libdir_separator"; then
9679                         alldirs=
9680       for found_dir in $rpathdirs; do
9681         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9682       done
9683             acl_save_libdir="$libdir"
9684       libdir="$alldirs"
9685       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9686       libdir="$acl_save_libdir"
9687       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9688     else
9689             for found_dir in $rpathdirs; do
9690         acl_save_libdir="$libdir"
9691         libdir="$found_dir"
9692         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9693         libdir="$acl_save_libdir"
9694         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9695       done
9696     fi
9697   fi
9698   if test "X$ltrpathdirs" != "X"; then
9699             for found_dir in $ltrpathdirs; do
9700       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9701     done
9702   fi
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9733 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9734 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9735 then :
9736   printf %s "(cached) " >&6
9737 else $as_nop
9738   gt_save_LIBS="$LIBS"
9739      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9740      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h.  */
9742 #include <CoreFoundation/CFPreferences.h>
9743 int
9744 main (void)
9745 {
9746 CFPreferencesCopyAppValue(NULL, NULL)
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 if ac_fn_c_try_link "$LINENO"
9752 then :
9753   gt_cv_func_CFPreferencesCopyAppValue=yes
9754 else $as_nop
9755   gt_cv_func_CFPreferencesCopyAppValue=no
9756 fi
9757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9758     conftest$ac_exeext conftest.$ac_ext
9759      LIBS="$gt_save_LIBS"
9760 fi
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9762 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9763   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9764
9765 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9766
9767   fi
9768                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9769 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9770 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9771 then :
9772   printf %s "(cached) " >&6
9773 else $as_nop
9774   gt_save_LIBS="$LIBS"
9775      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9776      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h.  */
9778 #include <CoreFoundation/CFLocale.h>
9779 int
9780 main (void)
9781 {
9782 CFLocaleCopyPreferredLanguages();
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"
9788 then :
9789   gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9790 else $as_nop
9791   gt_cv_func_CFLocaleCopyPreferredLanguages=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9794     conftest$ac_exeext conftest.$ac_ext
9795      LIBS="$gt_save_LIBS"
9796 fi
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9798 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9799   if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9800
9801 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9802
9803   fi
9804   INTL_MACOSX_LIBS=
9805   if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9806      || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9807     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9808   fi
9809
9810
9811
9812
9813
9814
9815   LIBINTL=
9816   LTLIBINTL=
9817   POSUB=
9818
9819     case " $gt_needs " in
9820     *" need-formatstring-macros "*) gt_api_version=3 ;;
9821     *" need-ngettext "*) gt_api_version=2 ;;
9822     *) gt_api_version=1 ;;
9823   esac
9824   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9825   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9826
9827     if test "$USE_NLS" = "yes"; then
9828     gt_use_preinstalled_gnugettext=no
9829
9830
9831         if test $gt_api_version -ge 3; then
9832           gt_revision_test_code='
9833 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9834 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9835 #endif
9836 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9837 '
9838         else
9839           gt_revision_test_code=
9840         fi
9841         if test $gt_api_version -ge 2; then
9842           gt_expression_test_code=' + * ngettext ("", "", 0)'
9843         else
9844           gt_expression_test_code=
9845         fi
9846
9847         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9848 printf %s "checking for GNU gettext in libc... " >&6; }
9849 if eval test \${$gt_func_gnugettext_libc+y}
9850 then :
9851   printf %s "(cached) " >&6
9852 else $as_nop
9853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h.  */
9855
9856 #include <libintl.h>
9857 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9858 extern int _nl_msg_cat_cntr;
9859 extern int *_nl_domain_bindings;
9860 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9861 #else
9862 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9863 #endif
9864 $gt_revision_test_code
9865
9866 int
9867 main (void)
9868 {
9869
9870 bindtextdomain ("", "");
9871 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9872
9873   ;
9874   return 0;
9875 }
9876 _ACEOF
9877 if ac_fn_c_try_link "$LINENO"
9878 then :
9879   eval "$gt_func_gnugettext_libc=yes"
9880 else $as_nop
9881   eval "$gt_func_gnugettext_libc=no"
9882 fi
9883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9884     conftest$ac_exeext conftest.$ac_ext
9885 fi
9886 eval ac_res=\$$gt_func_gnugettext_libc
9887                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9888 printf "%s\n" "$ac_res" >&6; }
9889
9890         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9891
9892
9893
9894
9895
9896           am_save_CPPFLAGS="$CPPFLAGS"
9897
9898   for element in $INCICONV; do
9899     haveit=
9900     for x in $CPPFLAGS; do
9901
9902   acl_save_prefix="$prefix"
9903   prefix="$acl_final_prefix"
9904   acl_save_exec_prefix="$exec_prefix"
9905   exec_prefix="$acl_final_exec_prefix"
9906   eval x=\"$x\"
9907   exec_prefix="$acl_save_exec_prefix"
9908   prefix="$acl_save_prefix"
9909
9910       if test "X$x" = "X$element"; then
9911         haveit=yes
9912         break
9913       fi
9914     done
9915     if test -z "$haveit"; then
9916       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9917     fi
9918   done
9919
9920
9921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9922 printf %s "checking for iconv... " >&6; }
9923 if test ${am_cv_func_iconv+y}
9924 then :
9925   printf %s "(cached) " >&6
9926 else $as_nop
9927
9928     am_cv_func_iconv="no, consider installing GNU libiconv"
9929     am_cv_lib_iconv=no
9930     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h.  */
9932
9933 #include <stdlib.h>
9934 #include <iconv.h>
9935
9936 int
9937 main (void)
9938 {
9939 iconv_t cd = iconv_open("","");
9940            iconv(cd,NULL,NULL,NULL,NULL);
9941            iconv_close(cd);
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 if ac_fn_c_try_link "$LINENO"
9947 then :
9948   am_cv_func_iconv=yes
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9951     conftest$ac_exeext conftest.$ac_ext
9952     if test "$am_cv_func_iconv" != yes; then
9953       am_save_LIBS="$LIBS"
9954       LIBS="$LIBS $LIBICONV"
9955       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h.  */
9957
9958 #include <stdlib.h>
9959 #include <iconv.h>
9960
9961 int
9962 main (void)
9963 {
9964 iconv_t cd = iconv_open("","");
9965              iconv(cd,NULL,NULL,NULL,NULL);
9966              iconv_close(cd);
9967   ;
9968   return 0;
9969 }
9970 _ACEOF
9971 if ac_fn_c_try_link "$LINENO"
9972 then :
9973   am_cv_lib_iconv=yes
9974         am_cv_func_iconv=yes
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9977     conftest$ac_exeext conftest.$ac_ext
9978       LIBS="$am_save_LIBS"
9979     fi
9980
9981 fi
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9983 printf "%s\n" "$am_cv_func_iconv" >&6; }
9984   if test "$am_cv_func_iconv" = yes; then
9985     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9986 printf %s "checking for working iconv... " >&6; }
9987 if test ${am_cv_func_iconv_works+y}
9988 then :
9989   printf %s "(cached) " >&6
9990 else $as_nop
9991
9992                   am_save_LIBS="$LIBS"
9993       if test $am_cv_lib_iconv = yes; then
9994         LIBS="$LIBS $LIBICONV"
9995       fi
9996       am_cv_func_iconv_works=no
9997       for ac_iconv_const in '' 'const'; do
9998         if test "$cross_compiling" = yes
9999 then :
10000   case "$host_os" in
10001              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10002              *)            am_cv_func_iconv_works="guessing yes" ;;
10003            esac
10004 else $as_nop
10005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h.  */
10007
10008 #include <iconv.h>
10009 #include <string.h>
10010
10011 #ifndef ICONV_CONST
10012 # define ICONV_CONST $ac_iconv_const
10013 #endif
10014
10015 int
10016 main (void)
10017 {
10018 int result = 0;
10019   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10020      returns.  */
10021   {
10022     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10023     if (cd_utf8_to_88591 != (iconv_t)(-1))
10024       {
10025         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10026         char buf[10];
10027         ICONV_CONST char *inptr = input;
10028         size_t inbytesleft = strlen (input);
10029         char *outptr = buf;
10030         size_t outbytesleft = sizeof (buf);
10031         size_t res = iconv (cd_utf8_to_88591,
10032                             &inptr, &inbytesleft,
10033                             &outptr, &outbytesleft);
10034         if (res == 0)
10035           result |= 1;
10036         iconv_close (cd_utf8_to_88591);
10037       }
10038   }
10039   /* Test against Solaris 10 bug: Failures are not distinguishable from
10040      successful returns.  */
10041   {
10042     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10043     if (cd_ascii_to_88591 != (iconv_t)(-1))
10044       {
10045         static ICONV_CONST char input[] = "\263";
10046         char buf[10];
10047         ICONV_CONST char *inptr = input;
10048         size_t inbytesleft = strlen (input);
10049         char *outptr = buf;
10050         size_t outbytesleft = sizeof (buf);
10051         size_t res = iconv (cd_ascii_to_88591,
10052                             &inptr, &inbytesleft,
10053                             &outptr, &outbytesleft);
10054         if (res == 0)
10055           result |= 2;
10056         iconv_close (cd_ascii_to_88591);
10057       }
10058   }
10059   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
10060   {
10061     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10062     if (cd_88591_to_utf8 != (iconv_t)(-1))
10063       {
10064         static ICONV_CONST char input[] = "\304";
10065         static char buf[2] = { (char)0xDE, (char)0xAD };
10066         ICONV_CONST char *inptr = input;
10067         size_t inbytesleft = 1;
10068         char *outptr = buf;
10069         size_t outbytesleft = 1;
10070         size_t res = iconv (cd_88591_to_utf8,
10071                             &inptr, &inbytesleft,
10072                             &outptr, &outbytesleft);
10073         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10074           result |= 4;
10075         iconv_close (cd_88591_to_utf8);
10076       }
10077   }
10078 #if 0 /* This bug could be worked around by the caller.  */
10079   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
10080   {
10081     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10082     if (cd_88591_to_utf8 != (iconv_t)(-1))
10083       {
10084         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10085         char buf[50];
10086         ICONV_CONST char *inptr = input;
10087         size_t inbytesleft = strlen (input);
10088         char *outptr = buf;
10089         size_t outbytesleft = sizeof (buf);
10090         size_t res = iconv (cd_88591_to_utf8,
10091                             &inptr, &inbytesleft,
10092                             &outptr, &outbytesleft);
10093         if ((int)res > 0)
10094           result |= 8;
10095         iconv_close (cd_88591_to_utf8);
10096       }
10097   }
10098 #endif
10099   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10100      provided.  */
10101   {
10102     /* Try standardized names.  */
10103     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10104     /* Try IRIX, OSF/1 names.  */
10105     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10106     /* Try AIX names.  */
10107     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10108     /* Try HP-UX names.  */
10109     iconv_t cd4 = iconv_open ("utf8", "eucJP");
10110     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10111         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10112       result |= 16;
10113     if (cd1 != (iconv_t)(-1))
10114       iconv_close (cd1);
10115     if (cd2 != (iconv_t)(-1))
10116       iconv_close (cd2);
10117     if (cd3 != (iconv_t)(-1))
10118       iconv_close (cd3);
10119     if (cd4 != (iconv_t)(-1))
10120       iconv_close (cd4);
10121   }
10122   return result;
10123
10124   ;
10125   return 0;
10126 }
10127 _ACEOF
10128 if ac_fn_c_try_run "$LINENO"
10129 then :
10130   am_cv_func_iconv_works=yes
10131 fi
10132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10133   conftest.$ac_objext conftest.beam conftest.$ac_ext
10134 fi
10135
10136         test "$am_cv_func_iconv_works" = no || break
10137       done
10138       LIBS="$am_save_LIBS"
10139
10140 fi
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10142 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10143     case "$am_cv_func_iconv_works" in
10144       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10145       *)   am_func_iconv=yes ;;
10146     esac
10147   else
10148     am_func_iconv=no am_cv_lib_iconv=no
10149   fi
10150   if test "$am_func_iconv" = yes; then
10151
10152 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10153
10154   fi
10155   if test "$am_cv_lib_iconv" = yes; then
10156     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10157 printf %s "checking how to link with libiconv... " >&6; }
10158     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10159 printf "%s\n" "$LIBICONV" >&6; }
10160   else
10161             CPPFLAGS="$am_save_CPPFLAGS"
10162     LIBICONV=
10163     LTLIBICONV=
10164   fi
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175     use_additional=yes
10176
10177   acl_save_prefix="$prefix"
10178   prefix="$acl_final_prefix"
10179   acl_save_exec_prefix="$exec_prefix"
10180   exec_prefix="$acl_final_exec_prefix"
10181
10182     eval additional_includedir=\"$includedir\"
10183     eval additional_libdir=\"$libdir\"
10184     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10185     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10186
10187   exec_prefix="$acl_save_exec_prefix"
10188   prefix="$acl_save_prefix"
10189
10190
10191 # Check whether --with-libintl-prefix was given.
10192 if test ${with_libintl_prefix+y}
10193 then :
10194   withval=$with_libintl_prefix;
10195     if test "X$withval" = "Xno"; then
10196       use_additional=no
10197     else
10198       if test "X$withval" = "X"; then
10199
10200   acl_save_prefix="$prefix"
10201   prefix="$acl_final_prefix"
10202   acl_save_exec_prefix="$exec_prefix"
10203   exec_prefix="$acl_final_exec_prefix"
10204
10205           eval additional_includedir=\"$includedir\"
10206           eval additional_libdir=\"$libdir\"
10207           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10208           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10209
10210   exec_prefix="$acl_save_exec_prefix"
10211   prefix="$acl_save_prefix"
10212
10213       else
10214         additional_includedir="$withval/include"
10215         additional_libdir="$withval/$acl_libdirstem"
10216         additional_libdir2="$withval/$acl_libdirstem2"
10217         additional_libdir3="$withval/$acl_libdirstem3"
10218       fi
10219     fi
10220
10221 fi
10222
10223   if test "X$additional_libdir2" = "X$additional_libdir"; then
10224     additional_libdir2=
10225   fi
10226   if test "X$additional_libdir3" = "X$additional_libdir"; then
10227     additional_libdir3=
10228   fi
10229       LIBINTL=
10230   LTLIBINTL=
10231   INCINTL=
10232   LIBINTL_PREFIX=
10233       HAVE_LIBINTL=
10234   rpathdirs=
10235   ltrpathdirs=
10236   names_already_handled=
10237   names_next_round='intl '
10238   while test -n "$names_next_round"; do
10239     names_this_round="$names_next_round"
10240     names_next_round=
10241     for name in $names_this_round; do
10242       already_handled=
10243       for n in $names_already_handled; do
10244         if test "$n" = "$name"; then
10245           already_handled=yes
10246           break
10247         fi
10248       done
10249       if test -z "$already_handled"; then
10250         names_already_handled="$names_already_handled $name"
10251                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10252         eval value=\"\$HAVE_LIB$uppername\"
10253         if test -n "$value"; then
10254           if test "$value" = yes; then
10255             eval value=\"\$LIB$uppername\"
10256             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10257             eval value=\"\$LTLIB$uppername\"
10258             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10259           else
10260                                     :
10261           fi
10262         else
10263                               found_dir=
10264           found_la=
10265           found_so=
10266           found_a=
10267           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10268           if test -n "$acl_shlibext"; then
10269             shrext=".$acl_shlibext"             # typically: shrext=.so
10270           else
10271             shrext=
10272           fi
10273           if test $use_additional = yes; then
10274             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10275               if test "X$found_dir" = "X"; then
10276                 eval dir=\$$additional_libdir_variable
10277                 if test -n "$dir"; then
10278                                                       if test -n "$acl_shlibext"; then
10279                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10280                       found_dir="$dir"
10281                       found_so="$dir/$libname$shrext"
10282                     else
10283                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10284                         ver=`(cd "$dir" && \
10285                               for f in "$libname$shrext".*; do echo "$f"; done \
10286                               | sed -e "s,^$libname$shrext\\\\.,," \
10287                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10288                               | sed 1q ) 2>/dev/null`
10289                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10290                           found_dir="$dir"
10291                           found_so="$dir/$libname$shrext.$ver"
10292                         fi
10293                       else
10294                         eval library_names=\"$acl_library_names_spec\"
10295                         for f in $library_names; do
10296                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10297                             found_dir="$dir"
10298                             found_so="$dir/$f"
10299                             break
10300                           fi
10301                         done
10302                       fi
10303                     fi
10304                   fi
10305                                     if test "X$found_dir" = "X"; then
10306                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10307                       found_dir="$dir"
10308                       found_a="$dir/$libname.$acl_libext"
10309                     fi
10310                   fi
10311                   if test "X$found_dir" != "X"; then
10312                     if test -f "$dir/$libname.la"; then
10313                       found_la="$dir/$libname.la"
10314                     fi
10315                   fi
10316                 fi
10317               fi
10318             done
10319           fi
10320           if test "X$found_dir" = "X"; then
10321             for x in $LDFLAGS $LTLIBINTL; do
10322
10323   acl_save_prefix="$prefix"
10324   prefix="$acl_final_prefix"
10325   acl_save_exec_prefix="$exec_prefix"
10326   exec_prefix="$acl_final_exec_prefix"
10327   eval x=\"$x\"
10328   exec_prefix="$acl_save_exec_prefix"
10329   prefix="$acl_save_prefix"
10330
10331               case "$x" in
10332                 -L*)
10333                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10334                                     if test -n "$acl_shlibext"; then
10335                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10336                       found_dir="$dir"
10337                       found_so="$dir/$libname$shrext"
10338                     else
10339                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10340                         ver=`(cd "$dir" && \
10341                               for f in "$libname$shrext".*; do echo "$f"; done \
10342                               | sed -e "s,^$libname$shrext\\\\.,," \
10343                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10344                               | sed 1q ) 2>/dev/null`
10345                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10346                           found_dir="$dir"
10347                           found_so="$dir/$libname$shrext.$ver"
10348                         fi
10349                       else
10350                         eval library_names=\"$acl_library_names_spec\"
10351                         for f in $library_names; do
10352                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10353                             found_dir="$dir"
10354                             found_so="$dir/$f"
10355                             break
10356                           fi
10357                         done
10358                       fi
10359                     fi
10360                   fi
10361                                     if test "X$found_dir" = "X"; then
10362                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10363                       found_dir="$dir"
10364                       found_a="$dir/$libname.$acl_libext"
10365                     fi
10366                   fi
10367                   if test "X$found_dir" != "X"; then
10368                     if test -f "$dir/$libname.la"; then
10369                       found_la="$dir/$libname.la"
10370                     fi
10371                   fi
10372                   ;;
10373               esac
10374               if test "X$found_dir" != "X"; then
10375                 break
10376               fi
10377             done
10378           fi
10379           if test "X$found_dir" != "X"; then
10380                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10381             if test "X$found_so" != "X"; then
10382                                                         if test "$enable_rpath" = no \
10383                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10384                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10385                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10386                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10387               else
10388                                                                                 haveit=
10389                 for x in $ltrpathdirs; do
10390                   if test "X$x" = "X$found_dir"; then
10391                     haveit=yes
10392                     break
10393                   fi
10394                 done
10395                 if test -z "$haveit"; then
10396                   ltrpathdirs="$ltrpathdirs $found_dir"
10397                 fi
10398                                 if test "$acl_hardcode_direct" = yes; then
10399                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10400                 else
10401                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10402                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10403                                                             haveit=
10404                     for x in $rpathdirs; do
10405                       if test "X$x" = "X$found_dir"; then
10406                         haveit=yes
10407                         break
10408                       fi
10409                     done
10410                     if test -z "$haveit"; then
10411                       rpathdirs="$rpathdirs $found_dir"
10412                     fi
10413                   else
10414                                                                                 haveit=
10415                     for x in $LDFLAGS $LIBINTL; do
10416
10417   acl_save_prefix="$prefix"
10418   prefix="$acl_final_prefix"
10419   acl_save_exec_prefix="$exec_prefix"
10420   exec_prefix="$acl_final_exec_prefix"
10421   eval x=\"$x\"
10422   exec_prefix="$acl_save_exec_prefix"
10423   prefix="$acl_save_prefix"
10424
10425                       if test "X$x" = "X-L$found_dir"; then
10426                         haveit=yes
10427                         break
10428                       fi
10429                     done
10430                     if test -z "$haveit"; then
10431                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10432                     fi
10433                     if test "$acl_hardcode_minus_L" != no; then
10434                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10435                     else
10436                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10437                     fi
10438                   fi
10439                 fi
10440               fi
10441             else
10442               if test "X$found_a" != "X"; then
10443                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10444               else
10445                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10446               fi
10447             fi
10448                         additional_includedir=
10449             case "$found_dir" in
10450               */$acl_libdirstem | */$acl_libdirstem/)
10451                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10452                 if test "$name" = 'intl'; then
10453                   LIBINTL_PREFIX="$basedir"
10454                 fi
10455                 additional_includedir="$basedir/include"
10456                 ;;
10457               */$acl_libdirstem2 | */$acl_libdirstem2/)
10458                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10459                 if test "$name" = 'intl'; then
10460                   LIBINTL_PREFIX="$basedir"
10461                 fi
10462                 additional_includedir="$basedir/include"
10463                 ;;
10464               */$acl_libdirstem3 | */$acl_libdirstem3/)
10465                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10466                 if test "$name" = 'intl'; then
10467                   LIBINTL_PREFIX="$basedir"
10468                 fi
10469                 additional_includedir="$basedir/include"
10470                 ;;
10471             esac
10472             if test "X$additional_includedir" != "X"; then
10473                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10474                 haveit=
10475                 if test "X$additional_includedir" = "X/usr/local/include"; then
10476                   if test -n "$GCC"; then
10477                     case $host_os in
10478                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10479                     esac
10480                   fi
10481                 fi
10482                 if test -z "$haveit"; then
10483                   for x in $CPPFLAGS $INCINTL; do
10484
10485   acl_save_prefix="$prefix"
10486   prefix="$acl_final_prefix"
10487   acl_save_exec_prefix="$exec_prefix"
10488   exec_prefix="$acl_final_exec_prefix"
10489   eval x=\"$x\"
10490   exec_prefix="$acl_save_exec_prefix"
10491   prefix="$acl_save_prefix"
10492
10493                     if test "X$x" = "X-I$additional_includedir"; then
10494                       haveit=yes
10495                       break
10496                     fi
10497                   done
10498                   if test -z "$haveit"; then
10499                     if test -d "$additional_includedir"; then
10500                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10501                     fi
10502                   fi
10503                 fi
10504               fi
10505             fi
10506                         if test -n "$found_la"; then
10507                                                         save_libdir="$libdir"
10508               case "$found_la" in
10509                 */* | *\\*) . "$found_la" ;;
10510                 *) . "./$found_la" ;;
10511               esac
10512               libdir="$save_libdir"
10513                             for dep in $dependency_libs; do
10514                 case "$dep" in
10515                   -L*)
10516                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10517                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10518                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10519                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10520                       haveit=
10521                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10522                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10523                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10524                         if test -n "$GCC"; then
10525                           case $host_os in
10526                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10527                           esac
10528                         fi
10529                       fi
10530                       if test -z "$haveit"; then
10531                         haveit=
10532                         for x in $LDFLAGS $LIBINTL; do
10533
10534   acl_save_prefix="$prefix"
10535   prefix="$acl_final_prefix"
10536   acl_save_exec_prefix="$exec_prefix"
10537   exec_prefix="$acl_final_exec_prefix"
10538   eval x=\"$x\"
10539   exec_prefix="$acl_save_exec_prefix"
10540   prefix="$acl_save_prefix"
10541
10542                           if test "X$x" = "X-L$dependency_libdir"; then
10543                             haveit=yes
10544                             break
10545                           fi
10546                         done
10547                         if test -z "$haveit"; then
10548                           if test -d "$dependency_libdir"; then
10549                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10550                           fi
10551                         fi
10552                         haveit=
10553                         for x in $LDFLAGS $LTLIBINTL; do
10554
10555   acl_save_prefix="$prefix"
10556   prefix="$acl_final_prefix"
10557   acl_save_exec_prefix="$exec_prefix"
10558   exec_prefix="$acl_final_exec_prefix"
10559   eval x=\"$x\"
10560   exec_prefix="$acl_save_exec_prefix"
10561   prefix="$acl_save_prefix"
10562
10563                           if test "X$x" = "X-L$dependency_libdir"; then
10564                             haveit=yes
10565                             break
10566                           fi
10567                         done
10568                         if test -z "$haveit"; then
10569                           if test -d "$dependency_libdir"; then
10570                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10571                           fi
10572                         fi
10573                       fi
10574                     fi
10575                     ;;
10576                   -R*)
10577                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10578                     if test "$enable_rpath" != no; then
10579                                                                   haveit=
10580                       for x in $rpathdirs; do
10581                         if test "X$x" = "X$dir"; then
10582                           haveit=yes
10583                           break
10584                         fi
10585                       done
10586                       if test -z "$haveit"; then
10587                         rpathdirs="$rpathdirs $dir"
10588                       fi
10589                                                                   haveit=
10590                       for x in $ltrpathdirs; do
10591                         if test "X$x" = "X$dir"; then
10592                           haveit=yes
10593                           break
10594                         fi
10595                       done
10596                       if test -z "$haveit"; then
10597                         ltrpathdirs="$ltrpathdirs $dir"
10598                       fi
10599                     fi
10600                     ;;
10601                   -l*)
10602                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10603                     ;;
10604                   *.la)
10605                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10606                     ;;
10607                   *)
10608                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10609                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10610                     ;;
10611                 esac
10612               done
10613             fi
10614           else
10615                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10616             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10617           fi
10618         fi
10619       fi
10620     done
10621   done
10622   if test "X$rpathdirs" != "X"; then
10623     if test -n "$acl_hardcode_libdir_separator"; then
10624                         alldirs=
10625       for found_dir in $rpathdirs; do
10626         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10627       done
10628             acl_save_libdir="$libdir"
10629       libdir="$alldirs"
10630       eval flag=\"$acl_hardcode_libdir_flag_spec\"
10631       libdir="$acl_save_libdir"
10632       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10633     else
10634             for found_dir in $rpathdirs; do
10635         acl_save_libdir="$libdir"
10636         libdir="$found_dir"
10637         eval flag=\"$acl_hardcode_libdir_flag_spec\"
10638         libdir="$acl_save_libdir"
10639         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10640       done
10641     fi
10642   fi
10643   if test "X$ltrpathdirs" != "X"; then
10644             for found_dir in $ltrpathdirs; do
10645       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10646     done
10647   fi
10648
10649
10650
10651
10652
10653           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10654 printf %s "checking for GNU gettext in libintl... " >&6; }
10655 if eval test \${$gt_func_gnugettext_libintl+y}
10656 then :
10657   printf %s "(cached) " >&6
10658 else $as_nop
10659   gt_save_CPPFLAGS="$CPPFLAGS"
10660             CPPFLAGS="$CPPFLAGS $INCINTL"
10661             gt_save_LIBS="$LIBS"
10662             LIBS="$LIBS $LIBINTL"
10663                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h.  */
10665
10666 #include <libintl.h>
10667 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10668 extern int _nl_msg_cat_cntr;
10669 extern
10670 #ifdef __cplusplus
10671 "C"
10672 #endif
10673 const char *_nl_expand_alias (const char *);
10674 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10675 #else
10676 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10677 #endif
10678 $gt_revision_test_code
10679
10680 int
10681 main (void)
10682 {
10683
10684 bindtextdomain ("", "");
10685 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10686
10687   ;
10688   return 0;
10689 }
10690 _ACEOF
10691 if ac_fn_c_try_link "$LINENO"
10692 then :
10693   eval "$gt_func_gnugettext_libintl=yes"
10694 else $as_nop
10695   eval "$gt_func_gnugettext_libintl=no"
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10698     conftest$ac_exeext conftest.$ac_ext
10699                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10700               LIBS="$LIBS $LIBICONV"
10701               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h.  */
10703
10704 #include <libintl.h>
10705 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10706 extern int _nl_msg_cat_cntr;
10707 extern
10708 #ifdef __cplusplus
10709 "C"
10710 #endif
10711 const char *_nl_expand_alias (const char *);
10712 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10713 #else
10714 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10715 #endif
10716 $gt_revision_test_code
10717
10718 int
10719 main (void)
10720 {
10721
10722 bindtextdomain ("", "");
10723 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10724
10725   ;
10726   return 0;
10727 }
10728 _ACEOF
10729 if ac_fn_c_try_link "$LINENO"
10730 then :
10731   LIBINTL="$LIBINTL $LIBICONV"
10732                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10733                  eval "$gt_func_gnugettext_libintl=yes"
10734
10735 fi
10736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10737     conftest$ac_exeext conftest.$ac_ext
10738             fi
10739             CPPFLAGS="$gt_save_CPPFLAGS"
10740             LIBS="$gt_save_LIBS"
10741 fi
10742 eval ac_res=\$$gt_func_gnugettext_libintl
10743                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10744 printf "%s\n" "$ac_res" >&6; }
10745         fi
10746
10747                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10748            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10749                 && test "$PACKAGE" != gettext-runtime \
10750                 && test "$PACKAGE" != gettext-tools; }; then
10751           gt_use_preinstalled_gnugettext=yes
10752         else
10753                     LIBINTL=
10754           LTLIBINTL=
10755           INCINTL=
10756         fi
10757
10758
10759
10760     if test -n "$INTL_MACOSX_LIBS"; then
10761       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10762          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10763                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10764         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10765       fi
10766     fi
10767
10768     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10769        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10770
10771 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10772
10773     else
10774       USE_NLS=no
10775     fi
10776   fi
10777
10778   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10779 printf %s "checking whether to use NLS... " >&6; }
10780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10781 printf "%s\n" "$USE_NLS" >&6; }
10782   if test "$USE_NLS" = "yes"; then
10783     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10784 printf %s "checking where the gettext function comes from... " >&6; }
10785     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10786       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10787         gt_source="external libintl"
10788       else
10789         gt_source="libc"
10790       fi
10791     else
10792       gt_source="included intl directory"
10793     fi
10794     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10795 printf "%s\n" "$gt_source" >&6; }
10796   fi
10797
10798   if test "$USE_NLS" = "yes"; then
10799
10800     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10801       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10802         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10803 printf %s "checking how to link with libintl... " >&6; }
10804         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10805 printf "%s\n" "$LIBINTL" >&6; }
10806
10807   for element in $INCINTL; do
10808     haveit=
10809     for x in $CPPFLAGS; do
10810
10811   acl_save_prefix="$prefix"
10812   prefix="$acl_final_prefix"
10813   acl_save_exec_prefix="$exec_prefix"
10814   exec_prefix="$acl_final_exec_prefix"
10815   eval x=\"$x\"
10816   exec_prefix="$acl_save_exec_prefix"
10817   prefix="$acl_save_prefix"
10818
10819       if test "X$x" = "X$element"; then
10820         haveit=yes
10821         break
10822       fi
10823     done
10824     if test -z "$haveit"; then
10825       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10826     fi
10827   done
10828
10829       fi
10830
10831
10832 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10833
10834
10835 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10836
10837     fi
10838
10839         POSUB=po
10840   fi
10841
10842
10843
10844     INTLLIBS="$LIBINTL"
10845
10846
10847
10848
10849
10850
10851
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10853 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10854 set x ${MAKE-make}
10855 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10856 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10857 then :
10858   printf %s "(cached) " >&6
10859 else $as_nop
10860   cat >conftest.make <<\_ACEOF
10861 SHELL = /bin/sh
10862 all:
10863         @echo '@@@%%%=$(MAKE)=@@@%%%'
10864 _ACEOF
10865 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10866 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10867   *@@@%%%=?*=@@@%%%*)
10868     eval ac_cv_prog_make_${ac_make}_set=yes;;
10869   *)
10870     eval ac_cv_prog_make_${ac_make}_set=no;;
10871 esac
10872 rm -f conftest.make
10873 fi
10874 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10875   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10876 printf "%s\n" "yes" >&6; }
10877   SET_MAKE=
10878 else
10879   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880 printf "%s\n" "no" >&6; }
10881   SET_MAKE="MAKE=${MAKE-make}"
10882 fi
10883
10884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10885 printf %s "checking for GNU make... " >&6; }
10886 if test ${_cv_gnu_make_command+y}
10887 then :
10888   printf %s "(cached) " >&6
10889 else $as_nop
10890   _cv_gnu_make_command='' ;
10891                 if test -n "$FORCE_NATIVE_MAKE" ; then
10892                    MAKES="make"
10893                 else
10894                    MAKES="make gmake gnumake"
10895                 fi
10896                 for a in "$MAKE" $MAKES ; do
10897                         if test -z "$a" ; then continue ; fi ;
10898                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
10899                                 _cv_gnu_make_command=$a ;
10900                                 break;
10901                         fi
10902                 done ;
10903
10904 fi
10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10906 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10907         if test  "x$_cv_gnu_make_command" != "x"  ; then
10908                 ifGNUmake='' ;
10909                 ifNotGNUmake='#' ;
10910         else
10911                 ifGNUmake='#' ;
10912                 ifNotGNUmake='' ;
10913                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10914 printf "%s\n" "\"Not found\"" >&6; };
10915         fi
10916
10917
10918
10919 # Extract the first word of "ln", so it can be a program name with args.
10920 set dummy ln; ac_word=$2
10921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922 printf %s "checking for $ac_word... " >&6; }
10923 if test ${ac_cv_path_LN+y}
10924 then :
10925   printf %s "(cached) " >&6
10926 else $as_nop
10927   case $LN in
10928   [\\/]* | ?:[\\/]*)
10929   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10930   ;;
10931   *)
10932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10934 do
10935   IFS=$as_save_IFS
10936   case $as_dir in #(((
10937     '') as_dir=./ ;;
10938     */) ;;
10939     *) as_dir=$as_dir/ ;;
10940   esac
10941     for ac_exec_ext in '' $ac_executable_extensions; do
10942   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10943     ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10944     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10945     break 2
10946   fi
10947 done
10948   done
10949 IFS=$as_save_IFS
10950
10951   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10952   ;;
10953 esac
10954 fi
10955 LN=$ac_cv_path_LN
10956 if test -n "$LN"; then
10957   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10958 printf "%s\n" "$LN" >&6; }
10959 else
10960   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 printf "%s\n" "no" >&6; }
10962 fi
10963
10964
10965
10966 mkdir_p=$MKDIR_P
10967
10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10969 printf %s "checking whether ln -s works... " >&6; }
10970 LN_S=$as_ln_s
10971 if test "$LN_S" = "ln -s"; then
10972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10973 printf "%s\n" "yes" >&6; }
10974 else
10975   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10976 printf "%s\n" "no, using $LN_S" >&6; }
10977 fi
10978
10979 # Extract the first word of "mv", so it can be a program name with args.
10980 set dummy mv; ac_word=$2
10981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10982 printf %s "checking for $ac_word... " >&6; }
10983 if test ${ac_cv_path_MV+y}
10984 then :
10985   printf %s "(cached) " >&6
10986 else $as_nop
10987   case $MV in
10988   [\\/]* | ?:[\\/]*)
10989   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10990   ;;
10991   *)
10992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10994 do
10995   IFS=$as_save_IFS
10996   case $as_dir in #(((
10997     '') as_dir=./ ;;
10998     */) ;;
10999     *) as_dir=$as_dir/ ;;
11000   esac
11001     for ac_exec_ext in '' $ac_executable_extensions; do
11002   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11003     ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11004     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11005     break 2
11006   fi
11007 done
11008   done
11009 IFS=$as_save_IFS
11010
11011   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11012   ;;
11013 esac
11014 fi
11015 MV=$ac_cv_path_MV
11016 if test -n "$MV"; then
11017   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11018 printf "%s\n" "$MV" >&6; }
11019 else
11020   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 printf "%s\n" "no" >&6; }
11022 fi
11023
11024
11025 # Extract the first word of "cp", so it can be a program name with args.
11026 set dummy cp; ac_word=$2
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028 printf %s "checking for $ac_word... " >&6; }
11029 if test ${ac_cv_path_CP+y}
11030 then :
11031   printf %s "(cached) " >&6
11032 else $as_nop
11033   case $CP in
11034   [\\/]* | ?:[\\/]*)
11035   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11036   ;;
11037   *)
11038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039 for as_dir in $PATH
11040 do
11041   IFS=$as_save_IFS
11042   case $as_dir in #(((
11043     '') as_dir=./ ;;
11044     */) ;;
11045     *) as_dir=$as_dir/ ;;
11046   esac
11047     for ac_exec_ext in '' $ac_executable_extensions; do
11048   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11049     ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11050     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11051     break 2
11052   fi
11053 done
11054   done
11055 IFS=$as_save_IFS
11056
11057   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11058   ;;
11059 esac
11060 fi
11061 CP=$ac_cv_path_CP
11062 if test -n "$CP"; then
11063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11064 printf "%s\n" "$CP" >&6; }
11065 else
11066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 printf "%s\n" "no" >&6; }
11068 fi
11069
11070
11071 # Extract the first word of "rm", so it can be a program name with args.
11072 set dummy rm; ac_word=$2
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074 printf %s "checking for $ac_word... " >&6; }
11075 if test ${ac_cv_path_RM+y}
11076 then :
11077   printf %s "(cached) " >&6
11078 else $as_nop
11079   case $RM in
11080   [\\/]* | ?:[\\/]*)
11081   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11082   ;;
11083   *)
11084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11086 do
11087   IFS=$as_save_IFS
11088   case $as_dir in #(((
11089     '') as_dir=./ ;;
11090     */) ;;
11091     *) as_dir=$as_dir/ ;;
11092   esac
11093     for ac_exec_ext in '' $ac_executable_extensions; do
11094   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11095     ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11096     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11097     break 2
11098   fi
11099 done
11100   done
11101 IFS=$as_save_IFS
11102
11103   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11104   ;;
11105 esac
11106 fi
11107 RM=$ac_cv_path_RM
11108 if test -n "$RM"; then
11109   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11110 printf "%s\n" "$RM" >&6; }
11111 else
11112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 printf "%s\n" "no" >&6; }
11114 fi
11115
11116
11117 # Extract the first word of "chmod", so it can be a program name with args.
11118 set dummy chmod; ac_word=$2
11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120 printf %s "checking for $ac_word... " >&6; }
11121 if test ${ac_cv_path_CHMOD+y}
11122 then :
11123   printf %s "(cached) " >&6
11124 else $as_nop
11125   case $CHMOD in
11126   [\\/]* | ?:[\\/]*)
11127   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11128   ;;
11129   *)
11130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in $PATH
11132 do
11133   IFS=$as_save_IFS
11134   case $as_dir in #(((
11135     '') as_dir=./ ;;
11136     */) ;;
11137     *) as_dir=$as_dir/ ;;
11138   esac
11139     for ac_exec_ext in '' $ac_executable_extensions; do
11140   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11141     ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11142     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11143     break 2
11144   fi
11145 done
11146   done
11147 IFS=$as_save_IFS
11148
11149   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11150   ;;
11151 esac
11152 fi
11153 CHMOD=$ac_cv_path_CHMOD
11154 if test -n "$CHMOD"; then
11155   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11156 printf "%s\n" "$CHMOD" >&6; }
11157 else
11158   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 printf "%s\n" "no" >&6; }
11160 fi
11161
11162
11163 for ac_prog in gawk mawk nawk awk
11164 do
11165   # Extract the first word of "$ac_prog", so it can be a program name with args.
11166 set dummy $ac_prog; ac_word=$2
11167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 printf %s "checking for $ac_word... " >&6; }
11169 if test ${ac_cv_prog_AWK+y}
11170 then :
11171   printf %s "(cached) " >&6
11172 else $as_nop
11173   if test -n "$AWK"; then
11174   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11175 else
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179   IFS=$as_save_IFS
11180   case $as_dir in #(((
11181     '') as_dir=./ ;;
11182     */) ;;
11183     *) as_dir=$as_dir/ ;;
11184   esac
11185     for ac_exec_ext in '' $ac_executable_extensions; do
11186   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11187     ac_cv_prog_AWK="$ac_prog"
11188     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11189     break 2
11190   fi
11191 done
11192   done
11193 IFS=$as_save_IFS
11194
11195 fi
11196 fi
11197 AWK=$ac_cv_prog_AWK
11198 if test -n "$AWK"; then
11199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11200 printf "%s\n" "$AWK" >&6; }
11201 else
11202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 printf "%s\n" "no" >&6; }
11204 fi
11205
11206
11207   test -n "$AWK" && break
11208 done
11209
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11211 printf %s "checking for egrep... " >&6; }
11212 if test ${ac_cv_path_EGREP+y}
11213 then :
11214   printf %s "(cached) " >&6
11215 else $as_nop
11216   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11217    then ac_cv_path_EGREP="$GREP -E"
11218    else
11219      if test -z "$EGREP"; then
11220   ac_path_EGREP_found=false
11221   # Loop through the user's path and test for each of PROGNAME-LIST
11222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11224 do
11225   IFS=$as_save_IFS
11226   case $as_dir in #(((
11227     '') as_dir=./ ;;
11228     */) ;;
11229     *) as_dir=$as_dir/ ;;
11230   esac
11231     for ac_prog in egrep
11232    do
11233     for ac_exec_ext in '' $ac_executable_extensions; do
11234       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11235       as_fn_executable_p "$ac_path_EGREP" || continue
11236 # Check for GNU ac_path_EGREP and select it if it is found.
11237   # Check for GNU $ac_path_EGREP
11238 case `"$ac_path_EGREP" --version 2>&1` in
11239 *GNU*)
11240   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11241 *)
11242   ac_count=0
11243   printf %s 0123456789 >"conftest.in"
11244   while :
11245   do
11246     cat "conftest.in" "conftest.in" >"conftest.tmp"
11247     mv "conftest.tmp" "conftest.in"
11248     cp "conftest.in" "conftest.nl"
11249     printf "%s\n" 'EGREP' >> "conftest.nl"
11250     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11251     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11252     as_fn_arith $ac_count + 1 && ac_count=$as_val
11253     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11254       # Best one so far, save it but keep looking for a better one
11255       ac_cv_path_EGREP="$ac_path_EGREP"
11256       ac_path_EGREP_max=$ac_count
11257     fi
11258     # 10*(2^10) chars as input seems more than enough
11259     test $ac_count -gt 10 && break
11260   done
11261   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11262 esac
11263
11264       $ac_path_EGREP_found && break 3
11265     done
11266   done
11267   done
11268 IFS=$as_save_IFS
11269   if test -z "$ac_cv_path_EGREP"; then
11270     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11271   fi
11272 else
11273   ac_cv_path_EGREP=$EGREP
11274 fi
11275
11276    fi
11277 fi
11278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11279 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11280  EGREP="$ac_cv_path_EGREP"
11281
11282
11283 # Extract the first word of "sed", so it can be a program name with args.
11284 set dummy sed; ac_word=$2
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 printf %s "checking for $ac_word... " >&6; }
11287 if test ${ac_cv_path_SED+y}
11288 then :
11289   printf %s "(cached) " >&6
11290 else $as_nop
11291   case $SED in
11292   [\\/]* | ?:[\\/]*)
11293   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11294   ;;
11295   *)
11296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11298 do
11299   IFS=$as_save_IFS
11300   case $as_dir in #(((
11301     '') as_dir=./ ;;
11302     */) ;;
11303     *) as_dir=$as_dir/ ;;
11304   esac
11305     for ac_exec_ext in '' $ac_executable_extensions; do
11306   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11307     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11308     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11309     break 2
11310   fi
11311 done
11312   done
11313 IFS=$as_save_IFS
11314
11315   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11316   ;;
11317 esac
11318 fi
11319 SED=$ac_cv_path_SED
11320 if test -n "$SED"; then
11321   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11322 printf "%s\n" "$SED" >&6; }
11323 else
11324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325 printf "%s\n" "no" >&6; }
11326 fi
11327
11328
11329 # Extract the first word of "perl", so it can be a program name with args.
11330 set dummy perl; ac_word=$2
11331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 printf %s "checking for $ac_word... " >&6; }
11333 if test ${ac_cv_path_PERL+y}
11334 then :
11335   printf %s "(cached) " >&6
11336 else $as_nop
11337   case $PERL in
11338   [\\/]* | ?:[\\/]*)
11339   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11340   ;;
11341   *)
11342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345   IFS=$as_save_IFS
11346   case $as_dir in #(((
11347     '') as_dir=./ ;;
11348     */) ;;
11349     *) as_dir=$as_dir/ ;;
11350   esac
11351     for ac_exec_ext in '' $ac_executable_extensions; do
11352   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11353     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11354     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11355     break 2
11356   fi
11357 done
11358   done
11359 IFS=$as_save_IFS
11360
11361   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11362   ;;
11363 esac
11364 fi
11365 PERL=$ac_cv_path_PERL
11366 if test -n "$PERL"; then
11367   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11368 printf "%s\n" "$PERL" >&6; }
11369 else
11370   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 printf "%s\n" "no" >&6; }
11372 fi
11373
11374
11375 # Extract the first word of "ldconfig", so it can be a program name with args.
11376 set dummy ldconfig; ac_word=$2
11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 printf %s "checking for $ac_word... " >&6; }
11379 if test ${ac_cv_path_LDCONFIG+y}
11380 then :
11381   printf %s "(cached) " >&6
11382 else $as_nop
11383   case $LDCONFIG in
11384   [\\/]* | ?:[\\/]*)
11385   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11386   ;;
11387   *)
11388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11390 do
11391   IFS=$as_save_IFS
11392   case $as_dir in #(((
11393     '') as_dir=./ ;;
11394     */) ;;
11395     *) as_dir=$as_dir/ ;;
11396   esac
11397     for ac_exec_ext in '' $ac_executable_extensions; do
11398   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11399     ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11400     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11401     break 2
11402   fi
11403 done
11404   done
11405 IFS=$as_save_IFS
11406
11407   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11408   ;;
11409 esac
11410 fi
11411 LDCONFIG=$ac_cv_path_LDCONFIG
11412 if test -n "$LDCONFIG"; then
11413   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11414 printf "%s\n" "$LDCONFIG" >&6; }
11415 else
11416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 printf "%s\n" "no" >&6; }
11418 fi
11419
11420
11421 if test -n "$ac_tool_prefix"; then
11422   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11423 set dummy ${ac_tool_prefix}ar; ac_word=$2
11424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 printf %s "checking for $ac_word... " >&6; }
11426 if test ${ac_cv_prog_AR+y}
11427 then :
11428   printf %s "(cached) " >&6
11429 else $as_nop
11430   if test -n "$AR"; then
11431   ac_cv_prog_AR="$AR" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436   IFS=$as_save_IFS
11437   case $as_dir in #(((
11438     '') as_dir=./ ;;
11439     */) ;;
11440     *) as_dir=$as_dir/ ;;
11441   esac
11442     for ac_exec_ext in '' $ac_executable_extensions; do
11443   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11444     ac_cv_prog_AR="${ac_tool_prefix}ar"
11445     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11446     break 2
11447   fi
11448 done
11449   done
11450 IFS=$as_save_IFS
11451
11452 fi
11453 fi
11454 AR=$ac_cv_prog_AR
11455 if test -n "$AR"; then
11456   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11457 printf "%s\n" "$AR" >&6; }
11458 else
11459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 printf "%s\n" "no" >&6; }
11461 fi
11462
11463
11464 fi
11465 if test -z "$ac_cv_prog_AR"; then
11466   ac_ct_AR=$AR
11467   # Extract the first word of "ar", so it can be a program name with args.
11468 set dummy ar; ac_word=$2
11469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11470 printf %s "checking for $ac_word... " >&6; }
11471 if test ${ac_cv_prog_ac_ct_AR+y}
11472 then :
11473   printf %s "(cached) " >&6
11474 else $as_nop
11475   if test -n "$ac_ct_AR"; then
11476   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11477 else
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11480 do
11481   IFS=$as_save_IFS
11482   case $as_dir in #(((
11483     '') as_dir=./ ;;
11484     */) ;;
11485     *) as_dir=$as_dir/ ;;
11486   esac
11487     for ac_exec_ext in '' $ac_executable_extensions; do
11488   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11489     ac_cv_prog_ac_ct_AR="ar"
11490     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11491     break 2
11492   fi
11493 done
11494   done
11495 IFS=$as_save_IFS
11496
11497 fi
11498 fi
11499 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11500 if test -n "$ac_ct_AR"; then
11501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11502 printf "%s\n" "$ac_ct_AR" >&6; }
11503 else
11504   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 printf "%s\n" "no" >&6; }
11506 fi
11507
11508   if test "x$ac_ct_AR" = x; then
11509     AR="ar"
11510   else
11511     case $cross_compiling:$ac_tool_warned in
11512 yes:)
11513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11514 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11515 ac_tool_warned=yes ;;
11516 esac
11517     AR=$ac_ct_AR
11518   fi
11519 else
11520   AR="$ac_cv_prog_AR"
11521 fi
11522
11523 if test -n "$ac_tool_prefix"; then
11524   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 printf %s "checking for $ac_word... " >&6; }
11528 if test ${ac_cv_prog_RANLIB+y}
11529 then :
11530   printf %s "(cached) " >&6
11531 else $as_nop
11532   if test -n "$RANLIB"; then
11533   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11534 else
11535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536 for as_dir in $PATH
11537 do
11538   IFS=$as_save_IFS
11539   case $as_dir in #(((
11540     '') as_dir=./ ;;
11541     */) ;;
11542     *) as_dir=$as_dir/ ;;
11543   esac
11544     for ac_exec_ext in '' $ac_executable_extensions; do
11545   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11546     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11547     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11548     break 2
11549   fi
11550 done
11551   done
11552 IFS=$as_save_IFS
11553
11554 fi
11555 fi
11556 RANLIB=$ac_cv_prog_RANLIB
11557 if test -n "$RANLIB"; then
11558   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11559 printf "%s\n" "$RANLIB" >&6; }
11560 else
11561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562 printf "%s\n" "no" >&6; }
11563 fi
11564
11565
11566 fi
11567 if test -z "$ac_cv_prog_RANLIB"; then
11568   ac_ct_RANLIB=$RANLIB
11569   # Extract the first word of "ranlib", so it can be a program name with args.
11570 set dummy ranlib; ac_word=$2
11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 printf %s "checking for $ac_word... " >&6; }
11573 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11574 then :
11575   printf %s "(cached) " >&6
11576 else $as_nop
11577   if test -n "$ac_ct_RANLIB"; then
11578   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11579 else
11580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581 for as_dir in $PATH
11582 do
11583   IFS=$as_save_IFS
11584   case $as_dir in #(((
11585     '') as_dir=./ ;;
11586     */) ;;
11587     *) as_dir=$as_dir/ ;;
11588   esac
11589     for ac_exec_ext in '' $ac_executable_extensions; do
11590   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11591     ac_cv_prog_ac_ct_RANLIB="ranlib"
11592     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11593     break 2
11594   fi
11595 done
11596   done
11597 IFS=$as_save_IFS
11598
11599 fi
11600 fi
11601 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11602 if test -n "$ac_ct_RANLIB"; then
11603   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11604 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11605 else
11606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607 printf "%s\n" "no" >&6; }
11608 fi
11609
11610   if test "x$ac_ct_RANLIB" = x; then
11611     RANLIB=":"
11612   else
11613     case $cross_compiling:$ac_tool_warned in
11614 yes:)
11615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11616 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11617 ac_tool_warned=yes ;;
11618 esac
11619     RANLIB=$ac_ct_RANLIB
11620   fi
11621 else
11622   RANLIB="$ac_cv_prog_RANLIB"
11623 fi
11624
11625 if test -n "$ac_tool_prefix"; then
11626   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11627 set dummy ${ac_tool_prefix}strip; ac_word=$2
11628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629 printf %s "checking for $ac_word... " >&6; }
11630 if test ${ac_cv_prog_STRIP+y}
11631 then :
11632   printf %s "(cached) " >&6
11633 else $as_nop
11634   if test -n "$STRIP"; then
11635   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11636 else
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11639 do
11640   IFS=$as_save_IFS
11641   case $as_dir in #(((
11642     '') as_dir=./ ;;
11643     */) ;;
11644     *) as_dir=$as_dir/ ;;
11645   esac
11646     for ac_exec_ext in '' $ac_executable_extensions; do
11647   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11648     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11649     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11650     break 2
11651   fi
11652 done
11653   done
11654 IFS=$as_save_IFS
11655
11656 fi
11657 fi
11658 STRIP=$ac_cv_prog_STRIP
11659 if test -n "$STRIP"; then
11660   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11661 printf "%s\n" "$STRIP" >&6; }
11662 else
11663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 printf "%s\n" "no" >&6; }
11665 fi
11666
11667
11668 fi
11669 if test -z "$ac_cv_prog_STRIP"; then
11670   ac_ct_STRIP=$STRIP
11671   # Extract the first word of "strip", so it can be a program name with args.
11672 set dummy strip; ac_word=$2
11673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 printf %s "checking for $ac_word... " >&6; }
11675 if test ${ac_cv_prog_ac_ct_STRIP+y}
11676 then :
11677   printf %s "(cached) " >&6
11678 else $as_nop
11679   if test -n "$ac_ct_STRIP"; then
11680   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11681 else
11682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $PATH
11684 do
11685   IFS=$as_save_IFS
11686   case $as_dir in #(((
11687     '') as_dir=./ ;;
11688     */) ;;
11689     *) as_dir=$as_dir/ ;;
11690   esac
11691     for ac_exec_ext in '' $ac_executable_extensions; do
11692   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11693     ac_cv_prog_ac_ct_STRIP="strip"
11694     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11695     break 2
11696   fi
11697 done
11698   done
11699 IFS=$as_save_IFS
11700
11701 fi
11702 fi
11703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11704 if test -n "$ac_ct_STRIP"; then
11705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11706 printf "%s\n" "$ac_ct_STRIP" >&6; }
11707 else
11708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 printf "%s\n" "no" >&6; }
11710 fi
11711
11712   if test "x$ac_ct_STRIP" = x; then
11713     STRIP=":"
11714   else
11715     case $cross_compiling:$ac_tool_warned in
11716 yes:)
11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11718 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11719 ac_tool_warned=yes ;;
11720 esac
11721     STRIP=$ac_ct_STRIP
11722   fi
11723 else
11724   STRIP="$ac_cv_prog_STRIP"
11725 fi
11726
11727 # Extract the first word of "makeinfo", so it can be a program name with args.
11728 set dummy makeinfo; ac_word=$2
11729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730 printf %s "checking for $ac_word... " >&6; }
11731 if test ${ac_cv_prog_MAKEINFO+y}
11732 then :
11733   printf %s "(cached) " >&6
11734 else $as_nop
11735   if test -n "$MAKEINFO"; then
11736   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11737 else
11738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739 for as_dir in $PATH
11740 do
11741   IFS=$as_save_IFS
11742   case $as_dir in #(((
11743     '') as_dir=./ ;;
11744     */) ;;
11745     *) as_dir=$as_dir/ ;;
11746   esac
11747     for ac_exec_ext in '' $ac_executable_extensions; do
11748   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11749     ac_cv_prog_MAKEINFO="makeinfo"
11750     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11751     break 2
11752   fi
11753 done
11754   done
11755 IFS=$as_save_IFS
11756
11757 fi
11758 fi
11759 MAKEINFO=$ac_cv_prog_MAKEINFO
11760 if test -n "$MAKEINFO"; then
11761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11762 printf "%s\n" "$MAKEINFO" >&6; }
11763 else
11764   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 printf "%s\n" "no" >&6; }
11766 fi
11767
11768
11769 if test "_$MAKEINFO" = "_"; then
11770     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11771 else
11772     case "$MAKEINFO" in
11773       */missing.*)
11774         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11775 *** Makeinfo is missing. Info documentation will not be built." >&5
11776 printf "%s\n" "$as_me: WARNING:
11777 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11778         ;;
11779       *)
11780         ;;
11781     esac
11782 fi
11783
11784
11785 # See if we need a separate native compiler.
11786 if test $cross_compiling = no; then
11787   BUILD_CC="$CC"
11788
11789 else
11790   for ac_prog in gcc cc
11791 do
11792   # Extract the first word of "$ac_prog", so it can be a program name with args.
11793 set dummy $ac_prog; ac_word=$2
11794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 printf %s "checking for $ac_word... " >&6; }
11796 if test ${ac_cv_prog_BUILD_CC+y}
11797 then :
11798   printf %s "(cached) " >&6
11799 else $as_nop
11800   if test -n "$BUILD_CC"; then
11801   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11802 else
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in $PATH
11805 do
11806   IFS=$as_save_IFS
11807   case $as_dir in #(((
11808     '') as_dir=./ ;;
11809     */) ;;
11810     *) as_dir=$as_dir/ ;;
11811   esac
11812     for ac_exec_ext in '' $ac_executable_extensions; do
11813   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11814     ac_cv_prog_BUILD_CC="$ac_prog"
11815     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11816     break 2
11817   fi
11818 done
11819   done
11820 IFS=$as_save_IFS
11821
11822 fi
11823 fi
11824 BUILD_CC=$ac_cv_prog_BUILD_CC
11825 if test -n "$BUILD_CC"; then
11826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11827 printf "%s\n" "$BUILD_CC" >&6; }
11828 else
11829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 printf "%s\n" "no" >&6; }
11831 fi
11832
11833
11834   test -n "$BUILD_CC" && break
11835 done
11836
11837 fi
11838 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11839 if test "x$ac_cv_header_attr_xattr_h" = xyes
11840 then :
11841   printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11842
11843 fi
11844 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11845 if test "x$ac_cv_header_dirent_h" = xyes
11846 then :
11847   printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11848
11849 fi
11850 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11851 if test "x$ac_cv_header_errno_h" = xyes
11852 then :
11853   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11854
11855 fi
11856 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11857 if test "x$ac_cv_header_execinfo_h" = xyes
11858 then :
11859   printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11860
11861 fi
11862 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11863 if test "x$ac_cv_header_getopt_h" = xyes
11864 then :
11865   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11866
11867 fi
11868 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11869 if test "x$ac_cv_header_malloc_h" = xyes
11870 then :
11871   printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11872
11873 fi
11874 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11875 if test "x$ac_cv_header_mntent_h" = xyes
11876 then :
11877   printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11878
11879 fi
11880 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11881 if test "x$ac_cv_header_paths_h" = xyes
11882 then :
11883   printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11884
11885 fi
11886 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11887 if test "x$ac_cv_header_pthread_h" = xyes
11888 then :
11889   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11890
11891 fi
11892 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11893 if test "x$ac_cv_header_semaphore_h" = xyes
11894 then :
11895   printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11896
11897 fi
11898 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11899 if test "x$ac_cv_header_setjmp_h" = xyes
11900 then :
11901   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11902
11903 fi
11904 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11905 if test "x$ac_cv_header_signal_h" = xyes
11906 then :
11907   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11908
11909 fi
11910 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11911 if test "x$ac_cv_header_stdarg_h" = xyes
11912 then :
11913   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11914
11915 fi
11916 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11917 if test "x$ac_cv_header_stdint_h" = xyes
11918 then :
11919   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11920
11921 fi
11922 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11923 if test "x$ac_cv_header_stdlib_h" = xyes
11924 then :
11925   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11926
11927 fi
11928 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11929 if test "x$ac_cv_header_termios_h" = xyes
11930 then :
11931   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11932
11933 fi
11934 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11935 if test "x$ac_cv_header_termio_h" = xyes
11936 then :
11937   printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11938
11939 fi
11940 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11941 if test "x$ac_cv_header_unistd_h" = xyes
11942 then :
11943   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11944
11945 fi
11946 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11947 if test "x$ac_cv_header_utime_h" = xyes
11948 then :
11949   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11950
11951 fi
11952 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11953 if test "x$ac_cv_header_attr_xattr_h" = xyes
11954 then :
11955   printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11956
11957 fi
11958 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11959 if test "x$ac_cv_header_linux_falloc_h" = xyes
11960 then :
11961   printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11962
11963 fi
11964 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11965 if test "x$ac_cv_header_linux_fd_h" = xyes
11966 then :
11967   printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11968
11969 fi
11970 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11971 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11972 then :
11973   printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11974
11975 fi
11976 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11977 if test "x$ac_cv_header_linux_major_h" = xyes
11978 then :
11979   printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11980
11981 fi
11982 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11983 if test "x$ac_cv_header_linux_loop_h" = xyes
11984 then :
11985   printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11986
11987 fi
11988 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11989 if test "x$ac_cv_header_linux_types_h" = xyes
11990 then :
11991   printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11992
11993 fi
11994 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11995 if test "x$ac_cv_header_net_if_dl_h" = xyes
11996 then :
11997   printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
11998
11999 fi
12000 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12001 if test "x$ac_cv_header_netinet_in_h" = xyes
12002 then :
12003   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12004
12005 fi
12006 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12007 if test "x$ac_cv_header_sys_acl_h" = xyes
12008 then :
12009   printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12010
12011 fi
12012 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12013 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12014 then :
12015   printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12016
12017 fi
12018 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12019 if test "x$ac_cv_header_sys_disk_h" = xyes
12020 then :
12021   printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12022
12023 fi
12024 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12025 if test "x$ac_cv_header_sys_file_h" = xyes
12026 then :
12027   printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12028
12029 fi
12030 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12031 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12032 then :
12033   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12034
12035 fi
12036 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12037 if test "x$ac_cv_header_sys_key_h" = xyes
12038 then :
12039   printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12040
12041 fi
12042 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12043 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12044 then :
12045   printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12046
12047 fi
12048 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12049 if test "x$ac_cv_header_sys_mman_h" = xyes
12050 then :
12051   printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12052
12053 fi
12054 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12055 if test "x$ac_cv_header_sys_mount_h" = xyes
12056 then :
12057   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12058
12059 fi
12060 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12061 if test "x$ac_cv_header_sys_prctl_h" = xyes
12062 then :
12063   printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12064
12065 fi
12066 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12067 if test "x$ac_cv_header_sys_random_h" = xyes
12068 then :
12069   printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12070
12071 fi
12072 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12073 if test "x$ac_cv_header_sys_resource_h" = xyes
12074 then :
12075   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12076
12077 fi
12078 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12079 if test "x$ac_cv_header_sys_select_h" = xyes
12080 then :
12081   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12082
12083 fi
12084 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12085 if test "x$ac_cv_header_sys_socket_h" = xyes
12086 then :
12087   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12088
12089 fi
12090 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12091 if test "x$ac_cv_header_sys_sockio_h" = xyes
12092 then :
12093   printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12094
12095 fi
12096 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12097 if test "x$ac_cv_header_sys_stat_h" = xyes
12098 then :
12099   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12100
12101 fi
12102 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12103 if test "x$ac_cv_header_sys_syscall_h" = xyes
12104 then :
12105   printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12106
12107 fi
12108 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12109 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12110 then :
12111   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12112
12113 fi
12114 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12115 if test "x$ac_cv_header_sys_time_h" = xyes
12116 then :
12117   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12118
12119 fi
12120 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12121 if test "x$ac_cv_header_sys_types_h" = xyes
12122 then :
12123   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12124
12125 fi
12126 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12127 if test "x$ac_cv_header_sys_un_h" = xyes
12128 then :
12129   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12130
12131 fi
12132 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12133 if test "x$ac_cv_header_sys_wait_h" = xyes
12134 then :
12135   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12136
12137 fi
12138 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12139 if test "x$ac_cv_header_sys_xattr_h" = xyes
12140 then :
12141   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12142
12143 fi
12144
12145 case "$host_os" in
12146 mingw*)
12147         # The above checks only detect system headers, not the headers in
12148         # ./include/mingw/, so explicitly define them to be available.
12149         printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12150
12151         printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12152
12153         printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12154
12155         printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12156
12157         printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12158
12159         ;;
12160 esac
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12162 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12163 DD=
12164 for i in dd gdd ; do
12165         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12166                 DD=$i
12167                 break
12168         fi
12169 done
12170 if test -n "$DD" ; then
12171         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12172 printf "%s\n" "$DD" >&6; }
12173 else
12174         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12175 printf "%s\n" "not found, using dd" >&6; }
12176         DD=dd
12177         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12178 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12179 fi
12180
12181
12182 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12183 #if HAVE_SYS_TYPES_H
12184 #include <sys/types.h>
12185 #endif
12186 #if HAVE_SYS_SOCKET
12187 #include <sys/socket.h>
12188 #endif
12189
12190 "
12191 if test "x$ac_cv_header_net_if_h" = xyes
12192 then :
12193   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12194
12195 fi
12196
12197 ac_func=
12198 for ac_item in $ac_func_c_list
12199 do
12200   if test $ac_func; then
12201     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12202     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12203       echo "#define $ac_item 1" >> confdefs.h
12204     fi
12205     ac_func=
12206   else
12207     ac_func=$ac_item
12208   fi
12209 done
12210
12211 if test "x$ac_cv_func_vprintf" = xno
12212 then :
12213   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12214 if test "x$ac_cv_func__doprnt" = xyes
12215 then :
12216
12217 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12218
12219 fi
12220
12221 fi
12222 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12223 "
12224 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12225 then :
12226
12227 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12228
12229 fi
12230
12231 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12232 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12233 then :
12234
12235 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12236
12237
12238 fi
12239
12240 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12241 "
12242 if test "x$ac_cv_type_ssize_t" = xyes
12243 then :
12244
12245 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12246
12247 fi
12248
12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12250 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12251 if test ${ac_cv_c_undeclared_builtin_options+y}
12252 then :
12253   printf %s "(cached) " >&6
12254 else $as_nop
12255   ac_save_CFLAGS=$CFLAGS
12256    ac_cv_c_undeclared_builtin_options='cannot detect'
12257    for ac_arg in '' -fno-builtin; do
12258      CFLAGS="$ac_save_CFLAGS $ac_arg"
12259      # This test program should *not* compile successfully.
12260      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h.  */
12262
12263 int
12264 main (void)
12265 {
12266 (void) strchr;
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_compile "$LINENO"
12272 then :
12273
12274 else $as_nop
12275   # This test program should compile successfully.
12276         # No library function is consistently available on
12277         # freestanding implementations, so test against a dummy
12278         # declaration.  Include always-available headers on the
12279         # off chance that they somehow elicit warnings.
12280         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h.  */
12282 #include <float.h>
12283 #include <limits.h>
12284 #include <stdarg.h>
12285 #include <stddef.h>
12286 extern void ac_decl (int, char *);
12287
12288 int
12289 main (void)
12290 {
12291 (void) ac_decl (0, (char *) 0);
12292   (void) ac_decl;
12293
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_compile "$LINENO"
12299 then :
12300   if test x"$ac_arg" = x
12301 then :
12302   ac_cv_c_undeclared_builtin_options='none needed'
12303 else $as_nop
12304   ac_cv_c_undeclared_builtin_options=$ac_arg
12305 fi
12306           break
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12311     done
12312     CFLAGS=$ac_save_CFLAGS
12313
12314 fi
12315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12316 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12317   case $ac_cv_c_undeclared_builtin_options in #(
12318   'cannot detect') :
12319     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12320 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12321 as_fn_error $? "cannot make $CC report undeclared builtins
12322 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12323   'none needed') :
12324     ac_c_undeclared_builtin_options='' ;; #(
12325   *) :
12326     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12327 esac
12328
12329 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12330 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12331 if test "x$ac_cv_have_decl_llseek" = xyes
12332 then :
12333
12334 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12335
12336 fi
12337 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12338                  #define _LARGEFILE64_SOURCE
12339                  #include <unistd.h>
12340 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12341 if test "x$ac_cv_have_decl_lseek64" = xyes
12342 then :
12343
12344 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12345
12346 fi
12347 # The cast to long int works around a bug in the HP C Compiler
12348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12350 # This bug is HP SR number 8606223364.
12351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12352 printf %s "checking size of short... " >&6; }
12353 if test ${ac_cv_sizeof_short+y}
12354 then :
12355   printf %s "(cached) " >&6
12356 else $as_nop
12357   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
12358 then :
12359
12360 else $as_nop
12361   if test "$ac_cv_type_short" = yes; then
12362      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12363 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12364 as_fn_error 77 "cannot compute sizeof (short)
12365 See \`config.log' for more details" "$LINENO" 5; }
12366    else
12367      ac_cv_sizeof_short=0
12368    fi
12369 fi
12370
12371 fi
12372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12373 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12374
12375
12376
12377 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12378
12379
12380 # The cast to long int works around a bug in the HP C Compiler
12381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12383 # This bug is HP SR number 8606223364.
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12385 printf %s "checking size of int... " >&6; }
12386 if test ${ac_cv_sizeof_int+y}
12387 then :
12388   printf %s "(cached) " >&6
12389 else $as_nop
12390   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
12391 then :
12392
12393 else $as_nop
12394   if test "$ac_cv_type_int" = yes; then
12395      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12396 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12397 as_fn_error 77 "cannot compute sizeof (int)
12398 See \`config.log' for more details" "$LINENO" 5; }
12399    else
12400      ac_cv_sizeof_int=0
12401    fi
12402 fi
12403
12404 fi
12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12406 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12407
12408
12409
12410 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12411
12412
12413 # The cast to long int works around a bug in the HP C Compiler
12414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12416 # This bug is HP SR number 8606223364.
12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12418 printf %s "checking size of long... " >&6; }
12419 if test ${ac_cv_sizeof_long+y}
12420 then :
12421   printf %s "(cached) " >&6
12422 else $as_nop
12423   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
12424 then :
12425
12426 else $as_nop
12427   if test "$ac_cv_type_long" = yes; then
12428      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12429 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12430 as_fn_error 77 "cannot compute sizeof (long)
12431 See \`config.log' for more details" "$LINENO" 5; }
12432    else
12433      ac_cv_sizeof_long=0
12434    fi
12435 fi
12436
12437 fi
12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12439 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12440
12441
12442
12443 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12444
12445
12446 # The cast to long int works around a bug in the HP C Compiler
12447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12449 # This bug is HP SR number 8606223364.
12450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12451 printf %s "checking size of long long... " >&6; }
12452 if test ${ac_cv_sizeof_long_long+y}
12453 then :
12454   printf %s "(cached) " >&6
12455 else $as_nop
12456   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
12457 then :
12458
12459 else $as_nop
12460   if test "$ac_cv_type_long_long" = yes; then
12461      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12462 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12463 as_fn_error 77 "cannot compute sizeof (long long)
12464 See \`config.log' for more details" "$LINENO" 5; }
12465    else
12466      ac_cv_sizeof_long_long=0
12467    fi
12468 fi
12469
12470 fi
12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12472 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12473
12474
12475
12476 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12477
12478
12479 # The cast to long int works around a bug in the HP C Compiler
12480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12482 # This bug is HP SR number 8606223364.
12483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12484 printf %s "checking size of off_t... " >&6; }
12485 if test ${ac_cv_sizeof_off_t+y}
12486 then :
12487   printf %s "(cached) " >&6
12488 else $as_nop
12489   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
12490 then :
12491
12492 else $as_nop
12493   if test "$ac_cv_type_off_t" = yes; then
12494      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12495 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12496 as_fn_error 77 "cannot compute sizeof (off_t)
12497 See \`config.log' for more details" "$LINENO" 5; }
12498    else
12499      ac_cv_sizeof_off_t=0
12500    fi
12501 fi
12502
12503 fi
12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12505 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12506
12507
12508
12509 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12510
12511
12512 # The cast to long int works around a bug in the HP C Compiler
12513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12515 # This bug is HP SR number 8606223364.
12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12517 printf %s "checking size of time_t... " >&6; }
12518 if test ${ac_cv_sizeof_time_t+y}
12519 then :
12520   printf %s "(cached) " >&6
12521 else $as_nop
12522   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
12523 then :
12524
12525 else $as_nop
12526   if test "$ac_cv_type_time_t" = yes; then
12527      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12528 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12529 as_fn_error 77 "cannot compute sizeof (time_t)
12530 See \`config.log' for more details" "$LINENO" 5; }
12531    else
12532      ac_cv_sizeof_time_t=0
12533    fi
12534 fi
12535
12536 fi
12537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12538 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12539
12540
12541
12542 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12543
12544
12545 SIZEOF_SHORT=$ac_cv_sizeof_short
12546 SIZEOF_INT=$ac_cv_sizeof_int
12547 SIZEOF_LONG=$ac_cv_sizeof_long
12548 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12549 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12550 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12551
12552
12553
12554
12555
12556
12557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12558 printf %s "checking whether byte ordering is bigendian... " >&6; }
12559 if test ${ac_cv_c_bigendian+y}
12560 then :
12561   printf %s "(cached) " >&6
12562 else $as_nop
12563   ac_cv_c_bigendian=unknown
12564     # See if we're dealing with a universal compiler.
12565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h.  */
12567 #ifndef __APPLE_CC__
12568                not a universal capable compiler
12569              #endif
12570              typedef int dummy;
12571
12572 _ACEOF
12573 if ac_fn_c_try_compile "$LINENO"
12574 then :
12575
12576         # Check for potential -arch flags.  It is not universal unless
12577         # there are at least two -arch flags with different values.
12578         ac_arch=
12579         ac_prev=
12580         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12581          if test -n "$ac_prev"; then
12582            case $ac_word in
12583              i?86 | x86_64 | ppc | ppc64)
12584                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12585                  ac_arch=$ac_word
12586                else
12587                  ac_cv_c_bigendian=universal
12588                  break
12589                fi
12590                ;;
12591            esac
12592            ac_prev=
12593          elif test "x$ac_word" = "x-arch"; then
12594            ac_prev=arch
12595          fi
12596        done
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12599     if test $ac_cv_c_bigendian = unknown; then
12600       # See if sys/param.h defines the BYTE_ORDER macro.
12601       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h.  */
12603 #include <sys/types.h>
12604              #include <sys/param.h>
12605
12606 int
12607 main (void)
12608 {
12609 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12610                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12611                      && LITTLE_ENDIAN)
12612               bogus endian macros
12613              #endif
12614
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_c_try_compile "$LINENO"
12620 then :
12621   # It does; now see whether it defined to BIG_ENDIAN or not.
12622          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h.  */
12624 #include <sys/types.h>
12625                 #include <sys/param.h>
12626
12627 int
12628 main (void)
12629 {
12630 #if BYTE_ORDER != BIG_ENDIAN
12631                  not big endian
12632                 #endif
12633
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 if ac_fn_c_try_compile "$LINENO"
12639 then :
12640   ac_cv_c_bigendian=yes
12641 else $as_nop
12642   ac_cv_c_bigendian=no
12643 fi
12644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12645 fi
12646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12647     fi
12648     if test $ac_cv_c_bigendian = unknown; then
12649       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12650       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h.  */
12652 #include <limits.h>
12653
12654 int
12655 main (void)
12656 {
12657 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12658               bogus endian macros
12659              #endif
12660
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 if ac_fn_c_try_compile "$LINENO"
12666 then :
12667   # It does; now see whether it defined to _BIG_ENDIAN or not.
12668          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h.  */
12670 #include <limits.h>
12671
12672 int
12673 main (void)
12674 {
12675 #ifndef _BIG_ENDIAN
12676                  not big endian
12677                 #endif
12678
12679   ;
12680   return 0;
12681 }
12682 _ACEOF
12683 if ac_fn_c_try_compile "$LINENO"
12684 then :
12685   ac_cv_c_bigendian=yes
12686 else $as_nop
12687   ac_cv_c_bigendian=no
12688 fi
12689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12690 fi
12691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12692     fi
12693     if test $ac_cv_c_bigendian = unknown; then
12694       # Compile a test program.
12695       if test "$cross_compiling" = yes
12696 then :
12697   # Try to guess by grepping values from an object file.
12698          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h.  */
12700 unsigned short int ascii_mm[] =
12701                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12702                 unsigned short int ascii_ii[] =
12703                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12704                 int use_ascii (int i) {
12705                   return ascii_mm[i] + ascii_ii[i];
12706                 }
12707                 unsigned short int ebcdic_ii[] =
12708                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12709                 unsigned short int ebcdic_mm[] =
12710                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12711                 int use_ebcdic (int i) {
12712                   return ebcdic_mm[i] + ebcdic_ii[i];
12713                 }
12714                 extern int foo;
12715
12716 int
12717 main (void)
12718 {
12719 return use_ascii (foo) == use_ebcdic (foo);
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_compile "$LINENO"
12725 then :
12726   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12727               ac_cv_c_bigendian=yes
12728             fi
12729             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12730               if test "$ac_cv_c_bigendian" = unknown; then
12731                 ac_cv_c_bigendian=no
12732               else
12733                 # finding both strings is unlikely to happen, but who knows?
12734                 ac_cv_c_bigendian=unknown
12735               fi
12736             fi
12737 fi
12738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12739 else $as_nop
12740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h.  */
12742 $ac_includes_default
12743 int
12744 main (void)
12745 {
12746
12747              /* Are we little or big endian?  From Harbison&Steele.  */
12748              union
12749              {
12750                long int l;
12751                char c[sizeof (long int)];
12752              } u;
12753              u.l = 1;
12754              return u.c[sizeof (long int) - 1] == 1;
12755
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_run "$LINENO"
12761 then :
12762   ac_cv_c_bigendian=no
12763 else $as_nop
12764   ac_cv_c_bigendian=yes
12765 fi
12766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12767   conftest.$ac_objext conftest.beam conftest.$ac_ext
12768 fi
12769
12770     fi
12771 fi
12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12773 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12774  case $ac_cv_c_bigendian in #(
12775    yes)
12776      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12777 ;; #(
12778    no)
12779       ;; #(
12780    universal)
12781
12782 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12783
12784      ;; #(
12785    *)
12786      as_fn_error $? "unknown endianness
12787  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12788  esac
12789
12790 if test $cross_compiling = no; then
12791   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12792 else
12793   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12794 fi
12795 ASM_TYPES_HEADER=./asm_types.h
12796
12797 echo "/* These defines are needed for the public ext2fs.h header file */" \
12798      > public_config.h
12799 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12800   uniq tmp_config.$$ >> public_config.h
12801 else
12802   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12803 fi
12804 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12805   uniq tmp_config.$$ >> public_config.h
12806 else
12807   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12808 fi
12809 rm -f tmp_config.$$
12810 PUBLIC_CONFIG_HEADER=./public_config.h
12811
12812 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12813 if test "x$ac_cv_header_inttypes_h" = xyes
12814 then :
12815   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12816
12817 fi
12818
12819 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12820 if test "x$ac_cv_type_intptr_t" = xyes
12821 then :
12822
12823 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12824
12825
12826 fi
12827
12828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12829 printf %s "checking whether struct stat has a st_flags field... " >&6; }
12830 if test ${e2fsprogs_cv_struct_st_flags+y}
12831 then :
12832   printf %s "(cached) " >&6
12833 else $as_nop
12834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h.  */
12836 #include <sys/stat.h>
12837 int
12838 main (void)
12839 {
12840 struct stat stat; stat.st_flags = 0;
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_compile "$LINENO"
12846 then :
12847   e2fsprogs_cv_struct_st_flags=yes
12848 else $as_nop
12849   e2fsprogs_cv_struct_st_flags=no
12850 fi
12851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12852 fi
12853
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12855 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
12856 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12858 printf %s "checking whether st_flags field is useful... " >&6; }
12859   if test ${e2fsprogs_cv_struct_st_flags_immut+y}
12860 then :
12861   printf %s "(cached) " >&6
12862 else $as_nop
12863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h.  */
12865 #include <sys/stat.h>
12866 int
12867 main (void)
12868 {
12869 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12870   ;
12871   return 0;
12872 }
12873 _ACEOF
12874 if ac_fn_c_try_compile "$LINENO"
12875 then :
12876   e2fsprogs_cv_struct_st_flags_immut=yes
12877 else $as_nop
12878   e2fsprogs_cv_struct_st_flags_immut=no
12879 fi
12880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12881 fi
12882
12883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12884 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12885   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12886
12887 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12888
12889   fi
12890 fi
12891 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12892          #include <sys/socket.h>
12893 "
12894 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
12895 then :
12896
12897 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
12898
12899 fi
12900
12901 if test -n "$BLKID_CMT"; then
12902   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
12903 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
12904 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
12905 then :
12906   printf %s "(cached) " >&6
12907 else $as_nop
12908   ac_check_lib_save_LIBS=$LIBS
12909 LIBS="-lblkid  $LIBS"
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h.  */
12912
12913 /* Override any GCC internal prototype to avoid an error.
12914    Use char because int might match the return type of a GCC
12915    builtin and then its argument prototype would still apply.  */
12916 char blkid_probe_get_topology ();
12917 int
12918 main (void)
12919 {
12920 return blkid_probe_get_topology ();
12921   ;
12922   return 0;
12923 }
12924 _ACEOF
12925 if ac_fn_c_try_link "$LINENO"
12926 then :
12927   ac_cv_lib_blkid_blkid_probe_get_topology=yes
12928 else $as_nop
12929   ac_cv_lib_blkid_blkid_probe_get_topology=no
12930 fi
12931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12932     conftest$ac_exeext conftest.$ac_ext
12933 LIBS=$ac_check_lib_save_LIBS
12934 fi
12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
12936 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
12937 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
12938 then :
12939
12940 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
12941
12942 fi
12943
12944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
12945 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
12946 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
12947 then :
12948   printf %s "(cached) " >&6
12949 else $as_nop
12950   ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-lblkid  $LIBS"
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h.  */
12954
12955 /* Override any GCC internal prototype to avoid an error.
12956    Use char because int might match the return type of a GCC
12957    builtin and then its argument prototype would still apply.  */
12958 char blkid_topology_get_dax ();
12959 int
12960 main (void)
12961 {
12962 return blkid_topology_get_dax ();
12963   ;
12964   return 0;
12965 }
12966 _ACEOF
12967 if ac_fn_c_try_link "$LINENO"
12968 then :
12969   ac_cv_lib_blkid_blkid_topology_get_dax=yes
12970 else $as_nop
12971   ac_cv_lib_blkid_blkid_topology_get_dax=no
12972 fi
12973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12974     conftest$ac_exeext conftest.$ac_ext
12975 LIBS=$ac_check_lib_save_LIBS
12976 fi
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
12978 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
12979 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
12980 then :
12981
12982 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
12983
12984 fi
12985
12986   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
12987 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
12988 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
12989 then :
12990   printf %s "(cached) " >&6
12991 else $as_nop
12992   ac_check_lib_save_LIBS=$LIBS
12993 LIBS="-lblkid  $LIBS"
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h.  */
12996
12997 /* Override any GCC internal prototype to avoid an error.
12998    Use char because int might match the return type of a GCC
12999    builtin and then its argument prototype would still apply.  */
13000 char blkid_probe_enable_partitions ();
13001 int
13002 main (void)
13003 {
13004 return blkid_probe_enable_partitions ();
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 if ac_fn_c_try_link "$LINENO"
13010 then :
13011   ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13012 else $as_nop
13013   ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13014 fi
13015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13016     conftest$ac_exeext conftest.$ac_ext
13017 LIBS=$ac_check_lib_save_LIBS
13018 fi
13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13020 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13021 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13022 then :
13023
13024 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13025
13026 fi
13027
13028 fi
13029 if test -n "$DLOPEN_LIB" ; then
13030    ac_cv_func_dlopen=yes
13031 fi
13032 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13033 if test "x$ac_cv_func___secure_getenv" = xyes
13034 then :
13035   printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13036
13037 fi
13038 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13039 if test "x$ac_cv_func_add_key" = xyes
13040 then :
13041   printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13042
13043 fi
13044 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13045 if test "x$ac_cv_func_backtrace" = xyes
13046 then :
13047   printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13048
13049 fi
13050 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13051 if test "x$ac_cv_func_chflags" = xyes
13052 then :
13053   printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13054
13055 fi
13056 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13057 if test "x$ac_cv_func_dlopen" = xyes
13058 then :
13059   printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13060
13061 fi
13062 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13063 if test "x$ac_cv_func_fadvise64" = xyes
13064 then :
13065   printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13066
13067 fi
13068 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13069 if test "x$ac_cv_func_fallocate" = xyes
13070 then :
13071   printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13072
13073 fi
13074 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13075 if test "x$ac_cv_func_fallocate64" = xyes
13076 then :
13077   printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13078
13079 fi
13080 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13081 if test "x$ac_cv_func_fchown" = xyes
13082 then :
13083   printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13084
13085 fi
13086 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13087 if test "x$ac_cv_func_fcntl" = xyes
13088 then :
13089   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13090
13091 fi
13092 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13093 if test "x$ac_cv_func_fdatasync" = xyes
13094 then :
13095   printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13096
13097 fi
13098 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13099 if test "x$ac_cv_func_fstat64" = xyes
13100 then :
13101   printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13102
13103 fi
13104 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13105 if test "x$ac_cv_func_fsync" = xyes
13106 then :
13107   printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13108
13109 fi
13110 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13111 if test "x$ac_cv_func_ftruncate64" = xyes
13112 then :
13113   printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13114
13115 fi
13116 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13117 if test "x$ac_cv_func_futimes" = xyes
13118 then :
13119   printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13120
13121 fi
13122 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13123 if test "x$ac_cv_func_getcwd" = xyes
13124 then :
13125   printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13126
13127 fi
13128 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13129 if test "x$ac_cv_func_getdtablesize" = xyes
13130 then :
13131   printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13132
13133 fi
13134 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13135 if test "x$ac_cv_func_getentropy" = xyes
13136 then :
13137   printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13138
13139 fi
13140 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13141 if test "x$ac_cv_func_gethostname" = xyes
13142 then :
13143   printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13144
13145 fi
13146 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13147 if test "x$ac_cv_func_getmntinfo" = xyes
13148 then :
13149   printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13150
13151 fi
13152 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13153 if test "x$ac_cv_func_getpwuid_r" = xyes
13154 then :
13155   printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13156
13157 fi
13158 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13159 if test "x$ac_cv_func_getrandom" = xyes
13160 then :
13161   printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13162
13163 fi
13164 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13165 if test "x$ac_cv_func_getrlimit" = xyes
13166 then :
13167   printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13168
13169 fi
13170 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13171 if test "x$ac_cv_func_getrusage" = xyes
13172 then :
13173   printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13174
13175 fi
13176 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13177 if test "x$ac_cv_func_jrand48" = xyes
13178 then :
13179   printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13180
13181 fi
13182 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13183 if test "x$ac_cv_func_keyctl" = xyes
13184 then :
13185   printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13186
13187 fi
13188 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13189 if test "x$ac_cv_func_llistxattr" = xyes
13190 then :
13191   printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13192
13193 fi
13194 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13195 if test "x$ac_cv_func_llseek" = xyes
13196 then :
13197   printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13198
13199 fi
13200 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13201 if test "x$ac_cv_func_lseek64" = xyes
13202 then :
13203   printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13204
13205 fi
13206 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13207 if test "x$ac_cv_func_mallinfo" = xyes
13208 then :
13209   printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13210
13211 fi
13212 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13213 if test "x$ac_cv_func_mallinfo2" = xyes
13214 then :
13215   printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13216
13217 fi
13218 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13219 if test "x$ac_cv_func_mbstowcs" = xyes
13220 then :
13221   printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13222
13223 fi
13224 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13225 if test "x$ac_cv_func_memalign" = xyes
13226 then :
13227   printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13228
13229 fi
13230 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13231 if test "x$ac_cv_func_mempcpy" = xyes
13232 then :
13233   printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13234
13235 fi
13236 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13237 if test "x$ac_cv_func_mmap" = xyes
13238 then :
13239   printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13240
13241 fi
13242 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13243 if test "x$ac_cv_func_msync" = xyes
13244 then :
13245   printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13246
13247 fi
13248 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13249 if test "x$ac_cv_func_nanosleep" = xyes
13250 then :
13251   printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13252
13253 fi
13254 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13255 if test "x$ac_cv_func_open64" = xyes
13256 then :
13257   printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13258
13259 fi
13260 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13261 if test "x$ac_cv_func_pathconf" = xyes
13262 then :
13263   printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13264
13265 fi
13266 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13267 if test "x$ac_cv_func_posix_fadvise" = xyes
13268 then :
13269   printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13270
13271 fi
13272 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13273 if test "x$ac_cv_func_posix_fadvise64" = xyes
13274 then :
13275   printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13276
13277 fi
13278 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13279 if test "x$ac_cv_func_posix_memalign" = xyes
13280 then :
13281   printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13282
13283 fi
13284 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13285 if test "x$ac_cv_func_prctl" = xyes
13286 then :
13287   printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13288
13289 fi
13290 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13291 if test "x$ac_cv_func_pread" = xyes
13292 then :
13293   printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13294
13295 fi
13296 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13297 if test "x$ac_cv_func_pwrite" = xyes
13298 then :
13299   printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13300
13301 fi
13302 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13303 if test "x$ac_cv_func_pread64" = xyes
13304 then :
13305   printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13306
13307 fi
13308 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13309 if test "x$ac_cv_func_pwrite64" = xyes
13310 then :
13311   printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13312
13313 fi
13314 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13315 if test "x$ac_cv_func_qsort_r" = xyes
13316 then :
13317   printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13318
13319 fi
13320 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13321 if test "x$ac_cv_func_secure_getenv" = xyes
13322 then :
13323   printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13324
13325 fi
13326 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13327 if test "x$ac_cv_func_setmntent" = xyes
13328 then :
13329   printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13330
13331 fi
13332 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13333 if test "x$ac_cv_func_setresgid" = xyes
13334 then :
13335   printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13336
13337 fi
13338 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13339 if test "x$ac_cv_func_setresuid" = xyes
13340 then :
13341   printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13342
13343 fi
13344 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13345 if test "x$ac_cv_func_snprintf" = xyes
13346 then :
13347   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13348
13349 fi
13350 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13351 if test "x$ac_cv_func_srandom" = xyes
13352 then :
13353   printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13354
13355 fi
13356 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13357 if test "x$ac_cv_func_stpcpy" = xyes
13358 then :
13359   printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13360
13361 fi
13362 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13363 if test "x$ac_cv_func_strcasecmp" = xyes
13364 then :
13365   printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13366
13367 fi
13368 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13369 if test "x$ac_cv_func_strdup" = xyes
13370 then :
13371   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13372
13373 fi
13374 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13375 if test "x$ac_cv_func_strnlen" = xyes
13376 then :
13377   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13378
13379 fi
13380 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13381 if test "x$ac_cv_func_strptime" = xyes
13382 then :
13383   printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13384
13385 fi
13386 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13387 if test "x$ac_cv_func_strtoull" = xyes
13388 then :
13389   printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13390
13391 fi
13392 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13393 if test "x$ac_cv_func_sync_file_range" = xyes
13394 then :
13395   printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13396
13397 fi
13398 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13399 if test "x$ac_cv_func_sysconf" = xyes
13400 then :
13401   printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13402
13403 fi
13404 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13405 if test "x$ac_cv_func_usleep" = xyes
13406 then :
13407   printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13408
13409 fi
13410 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13411 if test "x$ac_cv_func_utime" = xyes
13412 then :
13413   printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13414
13415 fi
13416 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13417 if test "x$ac_cv_func_utimes" = xyes
13418 then :
13419   printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13420
13421 fi
13422 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13423 if test "x$ac_cv_func_valloc" = xyes
13424 then :
13425   printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13426
13427 fi
13428
13429 SOCKET_LIB=''
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13431 printf %s "checking for socket in -lsocket... " >&6; }
13432 if test ${ac_cv_lib_socket_socket+y}
13433 then :
13434   printf %s "(cached) " >&6
13435 else $as_nop
13436   ac_check_lib_save_LIBS=$LIBS
13437 LIBS="-lsocket  $LIBS"
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h.  */
13440
13441 /* Override any GCC internal prototype to avoid an error.
13442    Use char because int might match the return type of a GCC
13443    builtin and then its argument prototype would still apply.  */
13444 char socket ();
13445 int
13446 main (void)
13447 {
13448 return socket ();
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_link "$LINENO"
13454 then :
13455   ac_cv_lib_socket_socket=yes
13456 else $as_nop
13457   ac_cv_lib_socket_socket=no
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13460     conftest$ac_exeext conftest.$ac_ext
13461 LIBS=$ac_check_lib_save_LIBS
13462 fi
13463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13464 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13465 if test "x$ac_cv_lib_socket_socket" = xyes
13466 then :
13467   SOCKET_LIB=-lsocket
13468 fi
13469
13470
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13472 printf %s "checking for magic_file in -lmagic... " >&6; }
13473 if test ${ac_cv_lib_magic_magic_file+y}
13474 then :
13475   printf %s "(cached) " >&6
13476 else $as_nop
13477   ac_check_lib_save_LIBS=$LIBS
13478 LIBS="-lmagic  $LIBS"
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h.  */
13481
13482 /* Override any GCC internal prototype to avoid an error.
13483    Use char because int might match the return type of a GCC
13484    builtin and then its argument prototype would still apply.  */
13485 char magic_file ();
13486 int
13487 main (void)
13488 {
13489 return magic_file ();
13490   ;
13491   return 0;
13492 }
13493 _ACEOF
13494 if ac_fn_c_try_link "$LINENO"
13495 then :
13496   ac_cv_lib_magic_magic_file=yes
13497 else $as_nop
13498   ac_cv_lib_magic_magic_file=no
13499 fi
13500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13501     conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13503 fi
13504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13505 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13506 if test "x$ac_cv_lib_magic_magic_file" = xyes
13507 then :
13508   MAGIC_LIB=-lmagic
13509 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13510 if test "x$ac_cv_header_magic_h" = xyes
13511 then :
13512   printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13513
13514 fi
13515
13516 fi
13517
13518 if test "$ac_cv_func_dlopen" = yes ; then
13519    MAGIC_LIB=$DLOPEN_LIB
13520 fi
13521
13522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13523 printf %s "checking for clock_gettime in -lrt... " >&6; }
13524 if test ${ac_cv_lib_rt_clock_gettime+y}
13525 then :
13526   printf %s "(cached) " >&6
13527 else $as_nop
13528   ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-lrt  $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h.  */
13532
13533 /* Override any GCC internal prototype to avoid an error.
13534    Use char because int might match the return type of a GCC
13535    builtin and then its argument prototype would still apply.  */
13536 char clock_gettime ();
13537 int
13538 main (void)
13539 {
13540 return clock_gettime ();
13541   ;
13542   return 0;
13543 }
13544 _ACEOF
13545 if ac_fn_c_try_link "$LINENO"
13546 then :
13547   ac_cv_lib_rt_clock_gettime=yes
13548 else $as_nop
13549   ac_cv_lib_rt_clock_gettime=no
13550 fi
13551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13552     conftest$ac_exeext conftest.$ac_ext
13553 LIBS=$ac_check_lib_save_LIBS
13554 fi
13555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13556 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13557 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13558 then :
13559   CLOCK_GETTIME_LIB=-lrt
13560 fi
13561
13562
13563 FUSE_CMT=
13564 FUSE_LIB=
13565 # Check whether --enable-fuse2fs was given.
13566 if test ${enable_fuse2fs+y}
13567 then :
13568   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13569 then
13570         FUSE_CMT="#"
13571         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13572 printf "%s\n" "Disabling fuse2fs" >&6; }
13573 else
13574                for ac_header in pthread.h fuse.h
13575 do :
13576   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13577 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13578 #define FUSE_USE_VERSION 29
13579 "
13580 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13581 then :
13582   cat >>confdefs.h <<_ACEOF
13583 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13584 _ACEOF
13585
13586 else $as_nop
13587   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13588 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13589 as_fn_error $? "Cannot find fuse2fs headers.
13590 See \`config.log' for more details" "$LINENO" 5; }
13591 fi
13592
13593 done
13594
13595         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h.  */
13597 #define FUSE_USE_VERSION 29
13598 #ifdef __linux__
13599 #include <linux/fs.h>
13600 #include <linux/falloc.h>
13601 #include <linux/xattr.h>
13602 #endif
13603
13604 int
13605 main (void)
13606 {
13607
13608   ;
13609   return 0;
13610 }
13611 _ACEOF
13612 if ac_fn_c_try_cpp "$LINENO"
13613 then :
13614
13615 else $as_nop
13616   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13617 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13618 as_fn_error $? "Cannot find fuse2fs Linux headers.
13619 See \`config.log' for more details" "$LINENO" 5; }
13620 fi
13621 rm -f conftest.err conftest.i conftest.$ac_ext
13622
13623         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13624 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13625 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13626 then :
13627   printf %s "(cached) " >&6
13628 else $as_nop
13629   ac_check_lib_save_LIBS=$LIBS
13630 LIBS="-losxfuse  $LIBS"
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h.  */
13633
13634 /* Override any GCC internal prototype to avoid an error.
13635    Use char because int might match the return type of a GCC
13636    builtin and then its argument prototype would still apply.  */
13637 char fuse_main ();
13638 int
13639 main (void)
13640 {
13641 return fuse_main ();
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 if ac_fn_c_try_link "$LINENO"
13647 then :
13648   ac_cv_lib_osxfuse_fuse_main=yes
13649 else $as_nop
13650   ac_cv_lib_osxfuse_fuse_main=no
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13653     conftest$ac_exeext conftest.$ac_ext
13654 LIBS=$ac_check_lib_save_LIBS
13655 fi
13656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13657 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13658 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13659 then :
13660   FUSE_LIB=-losxfuse
13661 else $as_nop
13662   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13663 printf %s "checking for fuse_main in -lfuse... " >&6; }
13664 if test ${ac_cv_lib_fuse_fuse_main+y}
13665 then :
13666   printf %s "(cached) " >&6
13667 else $as_nop
13668   ac_check_lib_save_LIBS=$LIBS
13669 LIBS="-lfuse  $LIBS"
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h.  */
13672
13673 /* Override any GCC internal prototype to avoid an error.
13674    Use char because int might match the return type of a GCC
13675    builtin and then its argument prototype would still apply.  */
13676 char fuse_main ();
13677 int
13678 main (void)
13679 {
13680 return fuse_main ();
13681   ;
13682   return 0;
13683 }
13684 _ACEOF
13685 if ac_fn_c_try_link "$LINENO"
13686 then :
13687   ac_cv_lib_fuse_fuse_main=yes
13688 else $as_nop
13689   ac_cv_lib_fuse_fuse_main=no
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13692     conftest$ac_exeext conftest.$ac_ext
13693 LIBS=$ac_check_lib_save_LIBS
13694 fi
13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13696 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13697 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13698 then :
13699   FUSE_LIB=-lfuse
13700 else $as_nop
13701   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13702 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13703 as_fn_error $? "Cannot find fuse library.
13704 See \`config.log' for more details" "$LINENO" 5; }
13705 fi
13706
13707 fi
13708
13709         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13710 printf "%s\n" "Enabling fuse2fs" >&6; }
13711 fi
13712
13713 else $as_nop
13714          for ac_header in pthread.h fuse.h
13715 do :
13716   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13718 #define FUSE_USE_VERSION 29
13719 #ifdef __linux__
13720 # include <linux/fs.h>
13721 # include <linux/falloc.h>
13722 # include <linux/xattr.h>
13723 #endif
13724 "
13725 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13726 then :
13727   cat >>confdefs.h <<_ACEOF
13728 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13729 _ACEOF
13730
13731 else $as_nop
13732   FUSE_CMT="#"
13733 fi
13734
13735 done
13736 if test -z "$FUSE_CMT"
13737 then
13738         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13739 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13740 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13741 then :
13742   printf %s "(cached) " >&6
13743 else $as_nop
13744   ac_check_lib_save_LIBS=$LIBS
13745 LIBS="-losxfuse  $LIBS"
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h.  */
13748
13749 /* Override any GCC internal prototype to avoid an error.
13750    Use char because int might match the return type of a GCC
13751    builtin and then its argument prototype would still apply.  */
13752 char fuse_main ();
13753 int
13754 main (void)
13755 {
13756 return fuse_main ();
13757   ;
13758   return 0;
13759 }
13760 _ACEOF
13761 if ac_fn_c_try_link "$LINENO"
13762 then :
13763   ac_cv_lib_osxfuse_fuse_main=yes
13764 else $as_nop
13765   ac_cv_lib_osxfuse_fuse_main=no
13766 fi
13767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13768     conftest$ac_exeext conftest.$ac_ext
13769 LIBS=$ac_check_lib_save_LIBS
13770 fi
13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13772 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13773 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13774 then :
13775   FUSE_LIB=-losxfuse
13776 else $as_nop
13777   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13778 printf %s "checking for fuse_main in -lfuse... " >&6; }
13779 if test ${ac_cv_lib_fuse_fuse_main+y}
13780 then :
13781   printf %s "(cached) " >&6
13782 else $as_nop
13783   ac_check_lib_save_LIBS=$LIBS
13784 LIBS="-lfuse  $LIBS"
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h.  */
13787
13788 /* Override any GCC internal prototype to avoid an error.
13789    Use char because int might match the return type of a GCC
13790    builtin and then its argument prototype would still apply.  */
13791 char fuse_main ();
13792 int
13793 main (void)
13794 {
13795 return fuse_main ();
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 if ac_fn_c_try_link "$LINENO"
13801 then :
13802   ac_cv_lib_fuse_fuse_main=yes
13803 else $as_nop
13804   ac_cv_lib_fuse_fuse_main=no
13805 fi
13806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13807     conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13809 fi
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13811 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13812 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13813 then :
13814   FUSE_LIB=-lfuse
13815 else $as_nop
13816   FUSE_CMT="#"
13817 fi
13818
13819 fi
13820
13821 fi
13822 if test -z "$FUSE_CMT"
13823 then
13824         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13825 printf "%s\n" "Enabling fuse2fs by default." >&6; }
13826 fi
13827
13828 fi
13829
13830
13831
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13833 printf %s "checking for optreset... " >&6; }
13834 if test ${ac_cv_have_optreset+y}
13835 then :
13836   printf %s "(cached) " >&6
13837 else $as_nop
13838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h.  */
13840 #include <unistd.h>
13841
13842 _ACEOF
13843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13844   $EGREP "optreset" >/dev/null 2>&1
13845 then :
13846   ac_cv_have_optreset=yes
13847 else $as_nop
13848   ac_cv_have_optreset=no
13849 fi
13850 rm -rf conftest*
13851
13852 fi
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13854 printf "%s\n" "$ac_cv_have_optreset" >&6; }
13855 if test $ac_cv_have_optreset = yes; then
13856
13857 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
13858
13859 fi
13860
13861 SEM_INIT_LIB=''
13862 echo GL_THREADS_API: ${gl_threads_api}
13863 if test "${gl_threads_api}" != none
13864 then
13865   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13866 if test "x$ac_cv_func_sem_init" = xyes
13867 then :
13868
13869 else $as_nop
13870   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13871 printf %s "checking for sem_init in -lpthread... " >&6; }
13872 if test ${ac_cv_lib_pthread_sem_init+y}
13873 then :
13874   printf %s "(cached) " >&6
13875 else $as_nop
13876   ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-lpthread  $LIBS"
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h.  */
13880
13881 /* Override any GCC internal prototype to avoid an error.
13882    Use char because int might match the return type of a GCC
13883    builtin and then its argument prototype would still apply.  */
13884 char sem_init ();
13885 int
13886 main (void)
13887 {
13888 return sem_init ();
13889   ;
13890   return 0;
13891 }
13892 _ACEOF
13893 if ac_fn_c_try_link "$LINENO"
13894 then :
13895   ac_cv_lib_pthread_sem_init=yes
13896 else $as_nop
13897   ac_cv_lib_pthread_sem_init=no
13898 fi
13899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13900     conftest$ac_exeext conftest.$ac_ext
13901 LIBS=$ac_check_lib_save_LIBS
13902 fi
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13904 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
13905 if test "x$ac_cv_lib_pthread_sem_init" = xyes
13906 then :
13907   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13908
13909         SEM_INIT_LIB=-lpthread
13910 else $as_nop
13911   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13912 printf %s "checking for sem_init in -lrt... " >&6; }
13913 if test ${ac_cv_lib_rt_sem_init+y}
13914 then :
13915   printf %s "(cached) " >&6
13916 else $as_nop
13917   ac_check_lib_save_LIBS=$LIBS
13918 LIBS="-lrt  $LIBS"
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h.  */
13921
13922 /* Override any GCC internal prototype to avoid an error.
13923    Use char because int might match the return type of a GCC
13924    builtin and then its argument prototype would still apply.  */
13925 char sem_init ();
13926 int
13927 main (void)
13928 {
13929 return sem_init ();
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 if ac_fn_c_try_link "$LINENO"
13935 then :
13936   ac_cv_lib_rt_sem_init=yes
13937 else $as_nop
13938   ac_cv_lib_rt_sem_init=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13941     conftest$ac_exeext conftest.$ac_ext
13942 LIBS=$ac_check_lib_save_LIBS
13943 fi
13944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13945 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
13946 if test "x$ac_cv_lib_rt_sem_init" = xyes
13947 then :
13948   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13949
13950         SEM_INIT_LIB=-lrt
13951 else $as_nop
13952   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13953 printf %s "checking for sem_init in -lposix4... " >&6; }
13954 if test ${ac_cv_lib_posix4_sem_init+y}
13955 then :
13956   printf %s "(cached) " >&6
13957 else $as_nop
13958   ac_check_lib_save_LIBS=$LIBS
13959 LIBS="-lposix4  $LIBS"
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h.  */
13962
13963 /* Override any GCC internal prototype to avoid an error.
13964    Use char because int might match the return type of a GCC
13965    builtin and then its argument prototype would still apply.  */
13966 char sem_init ();
13967 int
13968 main (void)
13969 {
13970 return sem_init ();
13971   ;
13972   return 0;
13973 }
13974 _ACEOF
13975 if ac_fn_c_try_link "$LINENO"
13976 then :
13977   ac_cv_lib_posix4_sem_init=yes
13978 else $as_nop
13979   ac_cv_lib_posix4_sem_init=no
13980 fi
13981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13982     conftest$ac_exeext conftest.$ac_ext
13983 LIBS=$ac_check_lib_save_LIBS
13984 fi
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13986 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
13987 if test "x$ac_cv_lib_posix4_sem_init" = xyes
13988 then :
13989   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13990
13991         SEM_INIT_LIB=-lposix4
13992 fi
13993
13994 fi
13995
13996 fi
13997
13998 fi
13999 fi
14000
14001 if test "$ac_cv_func_qsort_r" != no
14002 then :
14003
14004   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14005 printf %s "checking whether qsort_r is GNU version... " >&6; }
14006 if test ${e2_cv_gnu_qsort_r+y}
14007 then :
14008   printf %s "(cached) " >&6
14009 else $as_nop
14010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h.  */
14012
14013 #include <stdlib.h>
14014 void (qsort_r)(void *base, size_t nmemb, size_t size,
14015             int (*compar)(const void *, const void *, void *),
14016             void *arg);
14017
14018 int
14019 main (void)
14020 {
14021
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"
14027 then :
14028   e2_cv_gnu_qsort_r=yes
14029 else $as_nop
14030   e2_cv_gnu_qsort_r=no
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14033
14034 fi
14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14036 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14037   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14038 printf %s "checking whether qsort_r is BSD version... " >&6; }
14039 if test ${e2_cv_bsd_qsort_r+y}
14040 then :
14041   printf %s "(cached) " >&6
14042 else $as_nop
14043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h.  */
14045
14046 #include <stdlib.h>
14047 void (qsort_r)(void *base, size_t nmemb, size_t size,
14048              void *arg, int (*compar)(void *, const void *, const void *));
14049
14050 int
14051 main (void)
14052 {
14053
14054   ;
14055   return 0;
14056 }
14057 _ACEOF
14058 if ac_fn_c_try_compile "$LINENO"
14059 then :
14060   e2_cv_bsd_qsort_r=yes
14061 else $as_nop
14062   e2_cv_bsd_qsort_r=no
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14065
14066 fi
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14068 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14069   case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14070   yes:no) :
14071
14072
14073 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14074
14075    ;; #(
14076   no:yes) :
14077
14078
14079 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14080
14081    ;; #(
14082   *) :
14083      ;;
14084 esac
14085
14086 fi
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14088 printf %s "checking for unified diff option... " >&6; }
14089 if diff -u $0 $0 > /dev/null 2>&1 ; then
14090    UNI_DIFF_OPTS=-u
14091 else
14092    UNI_DIFF_OPTS=-c
14093 fi
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14095 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14096
14097 case "$host_os" in
14098 linux*)
14099
14100 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14101
14102         ;;
14103 esac
14104
14105     printf %s "checking for mount 'nosuid' option... "
14106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h.  */
14108 #include <sys/mount.h>
14109 int
14110 main (void)
14111 {
14112 void *temp = (void *)(MS_NOSUID); (void) temp;
14113   ;
14114   return 0;
14115 }
14116 _ACEOF
14117 if ac_fn_c_try_compile "$LINENO"
14118 then :
14119
14120 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14121
14122          ac_cv_mount_nosuid=yes
14123          printf "%s\n" "yes"
14124 else $as_nop
14125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h.  */
14127 #include <sys/mount.h>
14128 int
14129 main (void)
14130 {
14131 void *temp = (void *)(MNT_NOSUID); (void) temp;
14132   ;
14133   return 0;
14134 }
14135 _ACEOF
14136 if ac_fn_c_try_compile "$LINENO"
14137 then :
14138
14139 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14140
14141              ac_cv_mount_nosuid=yes
14142              printf "%s\n" "yes"
14143 else $as_nop
14144   ac_cv_mount_nosuid=no
14145              printf "%s\n" "no"
14146
14147 fi
14148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14149
14150 fi
14151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14152
14153
14154     printf %s "checking for mount 'nodev' option... "
14155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h.  */
14157 #include <sys/mount.h>
14158 int
14159 main (void)
14160 {
14161 void *temp = (void *)(MS_NODEV); (void) temp;
14162   ;
14163   return 0;
14164 }
14165 _ACEOF
14166 if ac_fn_c_try_compile "$LINENO"
14167 then :
14168
14169 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14170
14171          ac_cv_mount_nodev=yes
14172          printf "%s\n" "yes"
14173 else $as_nop
14174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h.  */
14176 #include <sys/mount.h>
14177 int
14178 main (void)
14179 {
14180 void *temp = (void *)(MNT_NODEV); (void) temp;
14181   ;
14182   return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_compile "$LINENO"
14186 then :
14187
14188 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14189
14190              ac_cv_mount_nodev=yes
14191              printf "%s\n" "yes"
14192 else $as_nop
14193   ac_cv_mount_nodev=no
14194              printf "%s\n" "no"
14195
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14198
14199 fi
14200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14201
14202 # Check whether --enable-lto was given.
14203 if test ${enable_lto+y}
14204 then :
14205   enableval=$enable_lto;
14206 else $as_nop
14207   enable_lto=no
14208 fi
14209
14210 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14211         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14212 printf %s "checking if C compiler supports LTO... " >&6; }
14213         OLD_CFLAGS="$CFLAGS"
14214         OLD_LDFLAGS="$LDFLAGS"
14215         LTO_FLAGS="-g -flto -ffat-lto-objects"
14216         CFLAGS="$CFLAGS $LTO_FLAGS"
14217         LDFLAGS="$LDFLAGS $LTO_FLAGS"
14218         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h.  */
14220
14221 int
14222 main (void)
14223 {
14224
14225   ;
14226   return 0;
14227 }
14228 _ACEOF
14229 if ac_fn_c_try_link "$LINENO"
14230 then :
14231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14232 printf "%s\n" "yes" >&6; }
14233                 lto_cflags=$LTO_FLAGS
14234                 lto_ldflags=$LTO_FLAGS
14235                 # Extract the first word of "gcc-ar", so it can be a program name with args.
14236 set dummy gcc-ar; ac_word=$2
14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14238 printf %s "checking for $ac_word... " >&6; }
14239 if test ${ac_cv_path_gcc_ar+y}
14240 then :
14241   printf %s "(cached) " >&6
14242 else $as_nop
14243   case $gcc_ar in
14244   [\\/]* | ?:[\\/]*)
14245   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14246   ;;
14247   *)
14248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249 for as_dir in $PATH
14250 do
14251   IFS=$as_save_IFS
14252   case $as_dir in #(((
14253     '') as_dir=./ ;;
14254     */) ;;
14255     *) as_dir=$as_dir/ ;;
14256   esac
14257     for ac_exec_ext in '' $ac_executable_extensions; do
14258   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14259     ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14260     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14261     break 2
14262   fi
14263 done
14264   done
14265 IFS=$as_save_IFS
14266
14267   ;;
14268 esac
14269 fi
14270 gcc_ar=$ac_cv_path_gcc_ar
14271 if test -n "$gcc_ar"; then
14272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14273 printf "%s\n" "$gcc_ar" >&6; }
14274 else
14275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 printf "%s\n" "no" >&6; }
14277 fi
14278
14279
14280                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14281 set dummy gcc-ranlib; ac_word=$2
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 printf %s "checking for $ac_word... " >&6; }
14284 if test ${ac_cv_path_gcc_ranlib+y}
14285 then :
14286   printf %s "(cached) " >&6
14287 else $as_nop
14288   case $gcc_ranlib in
14289   [\\/]* | ?:[\\/]*)
14290   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14291   ;;
14292   *)
14293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296   IFS=$as_save_IFS
14297   case $as_dir in #(((
14298     '') as_dir=./ ;;
14299     */) ;;
14300     *) as_dir=$as_dir/ ;;
14301   esac
14302     for ac_exec_ext in '' $ac_executable_extensions; do
14303   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14304     ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14305     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14306     break 2
14307   fi
14308 done
14309   done
14310 IFS=$as_save_IFS
14311
14312   ;;
14313 esac
14314 fi
14315 gcc_ranlib=$ac_cv_path_gcc_ranlib
14316 if test -n "$gcc_ranlib"; then
14317   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14318 printf "%s\n" "$gcc_ranlib" >&6; }
14319 else
14320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321 printf "%s\n" "no" >&6; }
14322 fi
14323
14324
14325 else $as_nop
14326   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327 printf "%s\n" "no" >&6; }
14328 fi
14329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14330     conftest$ac_exeext conftest.$ac_ext
14331         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14332                 have_lto=yes
14333                 AR="${gcc_ar}"
14334                 RANLIB="${gcc_ranlib}"
14335         fi
14336         CFLAGS="${OLD_CFLAGS}"
14337         LDFLAGS="${OLD_LDFLAGS}"
14338
14339
14340
14341 fi
14342 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14343         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14344 fi
14345 # Check whether --enable-ubsan was given.
14346 if test ${enable_ubsan+y}
14347 then :
14348   enableval=$enable_ubsan;
14349 else $as_nop
14350   enable_ubsan=no
14351 fi
14352
14353 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14354         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14355 printf %s "checking if C compiler supports UBSAN... " >&6; }
14356         OLD_CFLAGS="$CFLAGS"
14357         OLD_LDFLAGS="$LDFLAGS"
14358         UBSAN_FLAGS="-fsanitize=undefined"
14359         CFLAGS="$CFLAGS $UBSAN_FLAGS"
14360         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14361         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h.  */
14363
14364 int
14365 main (void)
14366 {
14367
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"
14373 then :
14374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14375 printf "%s\n" "yes" >&6; }
14376                 ubsan_cflags=$UBSAN_FLAGS
14377                 ubsan_ldflags=$UBSAN_FLAGS
14378                 have_ubsan=yes
14379 else $as_nop
14380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381 printf "%s\n" "no" >&6; }
14382 fi
14383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14384     conftest$ac_exeext conftest.$ac_ext
14385         CFLAGS="${OLD_CFLAGS}"
14386         LDFLAGS="${OLD_LDFLAGS}"
14387
14388
14389
14390 fi
14391 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14392         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14393 fi
14394 # Check whether --enable-addrsan was given.
14395 if test ${enable_addrsan+y}
14396 then :
14397   enableval=$enable_addrsan;
14398 else $as_nop
14399   enable_addrsan=no
14400 fi
14401
14402 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14403         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14404 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
14405         OLD_CFLAGS="$CFLAGS"
14406         OLD_LDFLAGS="$LDFLAGS"
14407         ADDRSAN_FLAGS="-fsanitize=address"
14408         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14409         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14410         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h.  */
14412
14413 int
14414 main (void)
14415 {
14416
14417   ;
14418   return 0;
14419 }
14420 _ACEOF
14421 if ac_fn_c_try_link "$LINENO"
14422 then :
14423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14424 printf "%s\n" "yes" >&6; }
14425                 addrsan_cflags=$ADDRSAN_FLAGS
14426                 addrsan_ldflags=$ADDRSAN_FLAGS
14427                 have_addrsan=yes
14428 else $as_nop
14429   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 printf "%s\n" "no" >&6; }
14431 fi
14432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14433     conftest$ac_exeext conftest.$ac_ext
14434         CFLAGS="${OLD_CFLAGS}"
14435         LDFLAGS="${OLD_LDFLAGS}"
14436
14437
14438
14439 fi
14440 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14441         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14442 fi
14443 # Check whether --enable-threadsan was given.
14444 if test ${enable_threadsan+y}
14445 then :
14446   enableval=$enable_threadsan;
14447 else $as_nop
14448   enable_threadsan=no
14449 fi
14450
14451 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14452         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14453 printf %s "checking if C compiler supports THREADSAN... " >&6; }
14454         OLD_CFLAGS="$CFLAGS"
14455         OLD_LDFLAGS="$LDFLAGS"
14456         THREADSAN_FLAGS="-fsanitize=thread"
14457         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14458         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14459         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h.  */
14461
14462 int
14463 main (void)
14464 {
14465
14466   ;
14467   return 0;
14468 }
14469 _ACEOF
14470 if ac_fn_c_try_link "$LINENO"
14471 then :
14472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473 printf "%s\n" "yes" >&6; }
14474                 threadsan_cflags=$THREADSAN_FLAGS
14475                 threadsan_ldflags=$THREADSAN_FLAGS
14476                 have_threadsan=yes
14477 else $as_nop
14478   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 printf "%s\n" "no" >&6; }
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14482     conftest$ac_exeext conftest.$ac_ext
14483         CFLAGS="${OLD_CFLAGS}"
14484         LDFLAGS="${OLD_LDFLAGS}"
14485
14486
14487
14488 fi
14489 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14490         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14491 fi
14492 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14493         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14494 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14495 fi
14496 FUZZING_CMT="#"
14497 # Check whether --enable-fuzzing was given.
14498 if test ${enable_fuzzing+y}
14499 then :
14500   enableval=$enable_fuzzing;
14501 else $as_nop
14502   enable_fuzzing=no
14503 fi
14504
14505 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14506
14507
14508
14509
14510
14511
14512 ac_ext=cpp
14513 ac_cpp='$CXXCPP $CPPFLAGS'
14514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14517 if test -z "$CXX"; then
14518   if test -n "$CCC"; then
14519     CXX=$CCC
14520   else
14521     if test -n "$ac_tool_prefix"; then
14522   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14523   do
14524     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14527 printf %s "checking for $ac_word... " >&6; }
14528 if test ${ac_cv_prog_CXX+y}
14529 then :
14530   printf %s "(cached) " >&6
14531 else $as_nop
14532   if test -n "$CXX"; then
14533   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14534 else
14535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14536 for as_dir in $PATH
14537 do
14538   IFS=$as_save_IFS
14539   case $as_dir in #(((
14540     '') as_dir=./ ;;
14541     */) ;;
14542     *) as_dir=$as_dir/ ;;
14543   esac
14544     for ac_exec_ext in '' $ac_executable_extensions; do
14545   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14546     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14547     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14548     break 2
14549   fi
14550 done
14551   done
14552 IFS=$as_save_IFS
14553
14554 fi
14555 fi
14556 CXX=$ac_cv_prog_CXX
14557 if test -n "$CXX"; then
14558   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14559 printf "%s\n" "$CXX" >&6; }
14560 else
14561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14562 printf "%s\n" "no" >&6; }
14563 fi
14564
14565
14566     test -n "$CXX" && break
14567   done
14568 fi
14569 if test -z "$CXX"; then
14570   ac_ct_CXX=$CXX
14571   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14572 do
14573   # Extract the first word of "$ac_prog", so it can be a program name with args.
14574 set dummy $ac_prog; ac_word=$2
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14576 printf %s "checking for $ac_word... " >&6; }
14577 if test ${ac_cv_prog_ac_ct_CXX+y}
14578 then :
14579   printf %s "(cached) " >&6
14580 else $as_nop
14581   if test -n "$ac_ct_CXX"; then
14582   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14583 else
14584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14585 for as_dir in $PATH
14586 do
14587   IFS=$as_save_IFS
14588   case $as_dir in #(((
14589     '') as_dir=./ ;;
14590     */) ;;
14591     *) as_dir=$as_dir/ ;;
14592   esac
14593     for ac_exec_ext in '' $ac_executable_extensions; do
14594   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14595     ac_cv_prog_ac_ct_CXX="$ac_prog"
14596     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14597     break 2
14598   fi
14599 done
14600   done
14601 IFS=$as_save_IFS
14602
14603 fi
14604 fi
14605 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14606 if test -n "$ac_ct_CXX"; then
14607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14608 printf "%s\n" "$ac_ct_CXX" >&6; }
14609 else
14610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14611 printf "%s\n" "no" >&6; }
14612 fi
14613
14614
14615   test -n "$ac_ct_CXX" && break
14616 done
14617
14618   if test "x$ac_ct_CXX" = x; then
14619     CXX="g++"
14620   else
14621     case $cross_compiling:$ac_tool_warned in
14622 yes:)
14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14625 ac_tool_warned=yes ;;
14626 esac
14627     CXX=$ac_ct_CXX
14628   fi
14629 fi
14630
14631   fi
14632 fi
14633 # Provide some information about the compiler.
14634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14635 set X $ac_compile
14636 ac_compiler=$2
14637 for ac_option in --version -v -V -qversion; do
14638   { { ac_try="$ac_compiler $ac_option >&5"
14639 case "(($ac_try" in
14640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641   *) ac_try_echo=$ac_try;;
14642 esac
14643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14644 printf "%s\n" "$ac_try_echo"; } >&5
14645   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14646   ac_status=$?
14647   if test -s conftest.err; then
14648     sed '10a\
14649 ... rest of stderr output deleted ...
14650          10q' conftest.err >conftest.er1
14651     cat conftest.er1 >&5
14652   fi
14653   rm -f conftest.er1 conftest.err
14654   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14655   test $ac_status = 0; }
14656 done
14657
14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14659 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14660 if test ${ac_cv_cxx_compiler_gnu+y}
14661 then :
14662   printf %s "(cached) " >&6
14663 else $as_nop
14664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h.  */
14666
14667 int
14668 main (void)
14669 {
14670 #ifndef __GNUC__
14671        choke me
14672 #endif
14673
14674   ;
14675   return 0;
14676 }
14677 _ACEOF
14678 if ac_fn_cxx_try_compile "$LINENO"
14679 then :
14680   ac_compiler_gnu=yes
14681 else $as_nop
14682   ac_compiler_gnu=no
14683 fi
14684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14685 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14686
14687 fi
14688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14689 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14691
14692 if test $ac_compiler_gnu = yes; then
14693   GXX=yes
14694 else
14695   GXX=
14696 fi
14697 ac_test_CXXFLAGS=${CXXFLAGS+y}
14698 ac_save_CXXFLAGS=$CXXFLAGS
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14700 printf %s "checking whether $CXX accepts -g... " >&6; }
14701 if test ${ac_cv_prog_cxx_g+y}
14702 then :
14703   printf %s "(cached) " >&6
14704 else $as_nop
14705   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14706    ac_cxx_werror_flag=yes
14707    ac_cv_prog_cxx_g=no
14708    CXXFLAGS="-g"
14709    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h.  */
14711
14712 int
14713 main (void)
14714 {
14715
14716   ;
14717   return 0;
14718 }
14719 _ACEOF
14720 if ac_fn_cxx_try_compile "$LINENO"
14721 then :
14722   ac_cv_prog_cxx_g=yes
14723 else $as_nop
14724   CXXFLAGS=""
14725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h.  */
14727
14728 int
14729 main (void)
14730 {
14731
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 if ac_fn_cxx_try_compile "$LINENO"
14737 then :
14738
14739 else $as_nop
14740   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14741          CXXFLAGS="-g"
14742          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h.  */
14744
14745 int
14746 main (void)
14747 {
14748
14749   ;
14750   return 0;
14751 }
14752 _ACEOF
14753 if ac_fn_cxx_try_compile "$LINENO"
14754 then :
14755   ac_cv_prog_cxx_g=yes
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14758 fi
14759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14760 fi
14761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14762    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14763 fi
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14765 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14766 if test $ac_test_CXXFLAGS; then
14767   CXXFLAGS=$ac_save_CXXFLAGS
14768 elif test $ac_cv_prog_cxx_g = yes; then
14769   if test "$GXX" = yes; then
14770     CXXFLAGS="-g -O2"
14771   else
14772     CXXFLAGS="-g"
14773   fi
14774 else
14775   if test "$GXX" = yes; then
14776     CXXFLAGS="-O2"
14777   else
14778     CXXFLAGS=
14779   fi
14780 fi
14781 ac_prog_cxx_stdcxx=no
14782 if test x$ac_prog_cxx_stdcxx = xno
14783 then :
14784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14785 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14786 if test ${ac_cv_prog_cxx_cxx11+y}
14787 then :
14788   printf %s "(cached) " >&6
14789 else $as_nop
14790   ac_cv_prog_cxx_cxx11=no
14791 ac_save_CXX=$CXX
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h.  */
14794 $ac_cxx_conftest_cxx11_program
14795 _ACEOF
14796 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14797 do
14798   CXX="$ac_save_CXX $ac_arg"
14799   if ac_fn_cxx_try_compile "$LINENO"
14800 then :
14801   ac_cv_prog_cxx_cxx11=$ac_arg
14802 fi
14803 rm -f core conftest.err conftest.$ac_objext conftest.beam
14804   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14805 done
14806 rm -f conftest.$ac_ext
14807 CXX=$ac_save_CXX
14808 fi
14809
14810 if test "x$ac_cv_prog_cxx_cxx11" = xno
14811 then :
14812   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14813 printf "%s\n" "unsupported" >&6; }
14814 else $as_nop
14815   if test "x$ac_cv_prog_cxx_cxx11" = x
14816 then :
14817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14818 printf "%s\n" "none needed" >&6; }
14819 else $as_nop
14820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14821 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14822      CXX="$CXX $ac_cv_prog_cxx_cxx11"
14823 fi
14824   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14825   ac_prog_cxx_stdcxx=cxx11
14826 fi
14827 fi
14828 if test x$ac_prog_cxx_stdcxx = xno
14829 then :
14830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14831 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14832 if test ${ac_cv_prog_cxx_cxx98+y}
14833 then :
14834   printf %s "(cached) " >&6
14835 else $as_nop
14836   ac_cv_prog_cxx_cxx98=no
14837 ac_save_CXX=$CXX
14838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14839 /* end confdefs.h.  */
14840 $ac_cxx_conftest_cxx98_program
14841 _ACEOF
14842 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14843 do
14844   CXX="$ac_save_CXX $ac_arg"
14845   if ac_fn_cxx_try_compile "$LINENO"
14846 then :
14847   ac_cv_prog_cxx_cxx98=$ac_arg
14848 fi
14849 rm -f core conftest.err conftest.$ac_objext conftest.beam
14850   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14851 done
14852 rm -f conftest.$ac_ext
14853 CXX=$ac_save_CXX
14854 fi
14855
14856 if test "x$ac_cv_prog_cxx_cxx98" = xno
14857 then :
14858   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14859 printf "%s\n" "unsupported" >&6; }
14860 else $as_nop
14861   if test "x$ac_cv_prog_cxx_cxx98" = x
14862 then :
14863   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14864 printf "%s\n" "none needed" >&6; }
14865 else $as_nop
14866   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14867 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14868      CXX="$CXX $ac_cv_prog_cxx_cxx98"
14869 fi
14870   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14871   ac_prog_cxx_stdcxx=cxx98
14872 fi
14873 fi
14874
14875 ac_ext=c
14876 ac_cpp='$CPP $CPPFLAGS'
14877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14880
14881         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
14882 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
14883         ac_ext=cpp
14884 ac_cpp='$CXXCPP $CPPFLAGS'
14885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14888
14889         OLD_CXXFLAGS="$CXXFLAGS"
14890         OLD_LDFLAGS="$LDFLAGS"
14891         FUZZER_FLAGS="-fsanitize=fuzzer"
14892         CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
14893         LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
14894
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h.  */
14897
14898                 #include <stddef.h>
14899                 #include <stdint.h>
14900
14901 int
14902 main (void)
14903 {
14904  return 0;
14905   ;
14906   return 0;
14907 }
14908 _ACEOF
14909 if ac_fn_cxx_try_compile "$LINENO"
14910 then :
14911   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14912 printf "%s\n" "yes" >&6; }
14913                 fuzzer_cflags=$FUZZER_FLAGS
14914                 fuzzer_ldflags=$FUZZER_FLAGS
14915                 FUZZING_CMT=
14916                 have_fuzzer=yes
14917 else $as_nop
14918   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14919 printf "%s\n" "no" >&6; }
14920                 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
14921 fi
14922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14923         CXXFLAGS="${OLD_CXXFLAGS}"
14924         LDFLAGS="${OLD_LDFLAGS}"
14925         ac_ext=c
14926 ac_cpp='$CPP $CPPFLAGS'
14927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14930
14931
14932
14933
14934 fi
14935 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
14936         as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
14937 fi
14938
14939 LINUX_CMT="#"
14940 CYGWIN_CMT="#"
14941 UNIX_CMT=
14942 case "$host_os" in
14943 linux*)
14944         LINUX_CMT=
14945         ;;
14946 cygwin)
14947         CYGWIN_CMT=
14948         UNIX_CMT="#"
14949         ;;
14950 esac
14951
14952
14953
14954 E2SCRUB_CMT="$LINUX_CMT"
14955
14956 case "$host_os" in
14957 linux* | gnu* | k*bsd*-gnu)
14958         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14959                 root_prefix="";
14960                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14961 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
14962         fi
14963         ;;
14964 esac
14965 case "$host_os" in
14966 linux* | gnu* | k*bsd*-gnu)
14967         if test "$prefix" = NONE ; then
14968                 prefix="/usr";
14969                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14970 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
14971                 if test "$mandir" = '${prefix}/man' ; then
14972                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14973 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
14974                         mandir=/usr/share/man
14975                 fi
14976         fi
14977 ;;
14978 esac
14979 if test "$root_prefix" = NONE ; then
14980         if test "$prefix" = NONE ; then
14981                 root_prefix="$ac_default_prefix"
14982         else
14983                 root_prefix="$prefix"
14984         fi
14985         root_bindir=$bindir
14986         root_sbindir=$sbindir
14987         root_libdir=$libdir
14988         root_sysconfdir=$sysconfdir
14989 else
14990         root_bindir='${root_prefix}/bin'
14991         root_sbindir='${root_prefix}/sbin'
14992         root_libdir='${root_prefix}/lib'
14993         root_sysconfdir='${root_prefix}/etc'
14994 fi
14995 if test "$bindir" != '${exec_prefix}/bin'; then
14996     root_bindir=$bindir
14997     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14998 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
14999 fi
15000 if test "$sbindir" != '${exec_prefix}/sbin'; then
15001     root_sbindir=$sbindir
15002     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15003 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15004 fi
15005 if test "$libdir" != '${exec_prefix}/lib'; then
15006     root_libdir=$libdir
15007     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15008 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15009 fi
15010 if test "$sysconfdir" != '${prefix}/etc'; then
15011     root_sysconfdir=$sysconfdir
15012     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15013 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15014 fi
15015
15016
15017
15018
15019
15020
15021 # Check whether --with-multiarch was given.
15022 if test ${with_multiarch+y}
15023 then :
15024   withval=$with_multiarch; if test "$withval" = "lib64"; then
15025     libdir=/usr/lib64
15026     root_libdir=/lib64
15027 else
15028     libdir=$libdir/$withval
15029     root_libdir=$root_libdir/$withval
15030 fi
15031
15032 fi
15033
15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15035 printf %s "checking whether we can link with -static... " >&6; }
15036 if test ${ac_cv_e2fsprogs_use_static+y}
15037 then :
15038   printf %s "(cached) " >&6
15039 else $as_nop
15040   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h.  */
15043 #include <stdio.h>
15044 int
15045 main (void)
15046 {
15047 fflush(stdout);
15048   ;
15049   return 0;
15050 }
15051 _ACEOF
15052 if ac_fn_c_try_link "$LINENO"
15053 then :
15054   ac_cv_e2fsprogs_use_static=yes
15055 else $as_nop
15056   ac_cv_e2fsprogs_use_static=no
15057 fi
15058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15059     conftest$ac_exeext conftest.$ac_ext
15060 LDFLAGS=$SAVE_LDFLAGS
15061 fi
15062
15063 case "$host_os" in
15064 solaris2.*)
15065         ac_cv_e2fsprogs_use_static=no
15066 ;;
15067 esac
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15069 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15070 if test $ac_cv_e2fsprogs_use_static = yes; then
15071         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15072 fi
15073
15074 case "$host_os" in
15075 darwin*)
15076         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15077 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15078
15079 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15080
15081         ;;
15082 esac
15083 if test "$cross_compiling" = yes ; then
15084   DO_TEST_SUITE=
15085 else
15086   DO_TEST_SUITE=check
15087 fi
15088
15089 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15090 if test -n "$CPPFLAGS" ; then
15091         INCLUDES="$INCLUDES $CPPFLAGS"
15092 fi
15093 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15094         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15095 fi
15096 if test -n "$WITH_DIET_LIBC" ; then
15097         INCLUDES="$INCLUDES -D_REENTRANT"
15098 fi
15099 case "$host_os" in
15100 mingw*)
15101         INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15102         ;;
15103 esac
15104
15105 if test $cross_compiling = no; then
15106    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15107    BUILD_LDFLAGS="$LDFLAGS"
15108 fi
15109
15110
15111 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15112 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15113 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15114
15115
15116
15117
15118
15119 # Check whether --with-udev_rules_dir was given.
15120 if test ${with_udev_rules_dir+y}
15121 then :
15122   withval=$with_udev_rules_dir;
15123 else $as_nop
15124   with_udev_rules_dir=yes
15125 fi
15126
15127 if test "x${with_udev_rules_dir}" != "xno"
15128 then :
15129
15130         if test "x${with_udev_rules_dir}" = "xyes"
15131 then :
15132
15133
15134 pkg_failed=no
15135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15136 printf %s "checking for udev... " >&6; }
15137
15138 if test -n "$udev_CFLAGS"; then
15139     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15140  elif test -n "$PKG_CONFIG"; then
15141     if test -n "$PKG_CONFIG" && \
15142     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15143   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15144   ac_status=$?
15145   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15146   test $ac_status = 0; }; then
15147   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15148                       test "x$?" != "x0" && pkg_failed=yes
15149 else
15150   pkg_failed=yes
15151 fi
15152  else
15153     pkg_failed=untried
15154 fi
15155 if test -n "$udev_LIBS"; then
15156     pkg_cv_udev_LIBS="$udev_LIBS"
15157  elif test -n "$PKG_CONFIG"; then
15158     if test -n "$PKG_CONFIG" && \
15159     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15160   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15161   ac_status=$?
15162   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15163   test $ac_status = 0; }; then
15164   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15165                       test "x$?" != "x0" && pkg_failed=yes
15166 else
15167   pkg_failed=yes
15168 fi
15169  else
15170     pkg_failed=untried
15171 fi
15172
15173
15174
15175 if test $pkg_failed = yes; then
15176         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15177 printf "%s\n" "no" >&6; }
15178
15179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15180         _pkg_short_errors_supported=yes
15181 else
15182         _pkg_short_errors_supported=no
15183 fi
15184         if test $_pkg_short_errors_supported = yes; then
15185                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15186         else
15187                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15188         fi
15189         # Put the nasty error message in config.log where it belongs
15190         echo "$udev_PKG_ERRORS" >&5
15191
15192
15193                         with_udev_rules_dir=""
15194
15195 elif test $pkg_failed = untried; then
15196         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15197 printf "%s\n" "no" >&6; }
15198
15199                         with_udev_rules_dir=""
15200
15201 else
15202         udev_CFLAGS=$pkg_cv_udev_CFLAGS
15203         udev_LIBS=$pkg_cv_udev_LIBS
15204         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15205 printf "%s\n" "yes" >&6; }
15206
15207                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15208
15209 fi
15210
15211 fi
15212         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15213 printf %s "checking for udev rules dir... " >&6; }
15214         pkg_udev_rules_dir="${with_udev_rules_dir}"
15215         if test -n "${pkg_udev_rules_dir}"
15216 then :
15217
15218                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15219 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15220                 have_udev="yes"
15221
15222 else $as_nop
15223
15224                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225 printf "%s\n" "no" >&6; }
15226                 have_udev="no"
15227
15228 fi
15229
15230 else $as_nop
15231
15232         have_udev="disabled"
15233
15234 fi
15235
15236
15237
15238
15239 # Check whether --with-crond_dir was given.
15240 if test ${with_crond_dir+y}
15241 then :
15242   withval=$with_crond_dir;
15243 else $as_nop
15244   with_crond_dir=yes
15245 fi
15246
15247 if test "x${with_crond_dir}" != "xno"
15248 then :
15249
15250         if test "x${with_crond_dir}" = "xyes"
15251 then :
15252
15253                 if test -d "/etc/cron.d"
15254 then :
15255   with_crond_dir="/etc/cron.d"
15256 else $as_nop
15257   have_crond="no"; with_crond_dir=""
15258 fi
15259
15260 fi
15261         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15262 printf %s "checking for system crontab dir... " >&6; }
15263         crond_dir="${with_crond_dir}"
15264         if test -n "${crond_dir}"
15265 then :
15266
15267                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15268 printf "%s\n" "${crond_dir}" >&6; }
15269                 have_crond="yes"
15270
15271 else $as_nop
15272
15273                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15274 printf "%s\n" "no" >&6; }
15275                 have_crond="no"
15276
15277 fi
15278
15279 else $as_nop
15280
15281         have_crond="disabled"
15282
15283 fi
15284
15285
15286
15287
15288 # Check whether --with-systemd_unit_dir was given.
15289 if test ${with_systemd_unit_dir+y}
15290 then :
15291   withval=$with_systemd_unit_dir;
15292 else $as_nop
15293   with_systemd_unit_dir=yes
15294 fi
15295
15296 if test "x${with_systemd_unit_dir}" != "xno"
15297 then :
15298
15299         if test "x${with_systemd_unit_dir}" = "xyes"
15300 then :
15301
15302
15303 pkg_failed=no
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15305 printf %s "checking for systemd... " >&6; }
15306
15307 if test -n "$systemd_CFLAGS"; then
15308     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15309  elif test -n "$PKG_CONFIG"; then
15310     if test -n "$PKG_CONFIG" && \
15311     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15312   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15313   ac_status=$?
15314   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15315   test $ac_status = 0; }; then
15316   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15317                       test "x$?" != "x0" && pkg_failed=yes
15318 else
15319   pkg_failed=yes
15320 fi
15321  else
15322     pkg_failed=untried
15323 fi
15324 if test -n "$systemd_LIBS"; then
15325     pkg_cv_systemd_LIBS="$systemd_LIBS"
15326  elif test -n "$PKG_CONFIG"; then
15327     if test -n "$PKG_CONFIG" && \
15328     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15329   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15330   ac_status=$?
15331   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15332   test $ac_status = 0; }; then
15333   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15334                       test "x$?" != "x0" && pkg_failed=yes
15335 else
15336   pkg_failed=yes
15337 fi
15338  else
15339     pkg_failed=untried
15340 fi
15341
15342
15343
15344 if test $pkg_failed = yes; then
15345         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346 printf "%s\n" "no" >&6; }
15347
15348 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15349         _pkg_short_errors_supported=yes
15350 else
15351         _pkg_short_errors_supported=no
15352 fi
15353         if test $_pkg_short_errors_supported = yes; then
15354                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15355         else
15356                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15357         fi
15358         # Put the nasty error message in config.log where it belongs
15359         echo "$systemd_PKG_ERRORS" >&5
15360
15361
15362                         with_systemd_unit_dir=""
15363
15364 elif test $pkg_failed = untried; then
15365         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 printf "%s\n" "no" >&6; }
15367
15368                         with_systemd_unit_dir=""
15369
15370 else
15371         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15372         systemd_LIBS=$pkg_cv_systemd_LIBS
15373         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15374 printf "%s\n" "yes" >&6; }
15375
15376                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15377
15378 fi
15379
15380
15381 fi
15382         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15383 printf %s "checking for systemd system unit dir... " >&6; }
15384         systemd_system_unit_dir="${with_systemd_unit_dir}"
15385         if test -n "${systemd_system_unit_dir}"
15386 then :
15387
15388                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15389 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
15390                 have_systemd="yes"
15391
15392 else $as_nop
15393
15394                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15395 printf "%s\n" "no" >&6; }
15396                 have_systemd="no"
15397
15398 fi
15399
15400 else $as_nop
15401
15402         have_systemd="disabled"
15403
15404 fi
15405
15406
15407 OS_IO_FILE=""
15408 case "$host_os" in
15409   mingw*)
15410     OS_IO_FILE=windows_io
15411   ;;
15412   *)
15413     OS_IO_FILE=unix_io
15414   ;;
15415 esac
15416
15417
15418 # Check whether --enable-largefile was given.
15419 if test ${enable_largefile+y}
15420 then :
15421   enableval=$enable_largefile;
15422 fi
15423
15424 if test "$enable_largefile" != no; then
15425
15426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15427 printf %s "checking for special C compiler options needed for large files... " >&6; }
15428 if test ${ac_cv_sys_largefile_CC+y}
15429 then :
15430   printf %s "(cached) " >&6
15431 else $as_nop
15432   ac_cv_sys_largefile_CC=no
15433      if test "$GCC" != yes; then
15434        ac_save_CC=$CC
15435        while :; do
15436          # IRIX 6.2 and later do not support large files by default,
15437          # so use the C compiler's -n32 option if that helps.
15438          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h.  */
15440 #include <sys/types.h>
15441  /* Check that off_t can represent 2**63 - 1 correctly.
15442     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15443     since some C++ compilers masquerading as C compilers
15444     incorrectly reject 9223372036854775807.  */
15445 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15446   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15447                        && LARGE_OFF_T % 2147483647 == 1)
15448                       ? 1 : -1];
15449 int
15450 main (void)
15451 {
15452
15453   ;
15454   return 0;
15455 }
15456 _ACEOF
15457          if ac_fn_c_try_compile "$LINENO"
15458 then :
15459   break
15460 fi
15461 rm -f core conftest.err conftest.$ac_objext conftest.beam
15462          CC="$CC -n32"
15463          if ac_fn_c_try_compile "$LINENO"
15464 then :
15465   ac_cv_sys_largefile_CC=' -n32'; break
15466 fi
15467 rm -f core conftest.err conftest.$ac_objext conftest.beam
15468          break
15469        done
15470        CC=$ac_save_CC
15471        rm -f conftest.$ac_ext
15472     fi
15473 fi
15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15475 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
15476   if test "$ac_cv_sys_largefile_CC" != no; then
15477     CC=$CC$ac_cv_sys_largefile_CC
15478   fi
15479
15480   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15481 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15482 if test ${ac_cv_sys_file_offset_bits+y}
15483 then :
15484   printf %s "(cached) " >&6
15485 else $as_nop
15486   while :; do
15487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h.  */
15489 #include <sys/types.h>
15490  /* Check that off_t can represent 2**63 - 1 correctly.
15491     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15492     since some C++ compilers masquerading as C compilers
15493     incorrectly reject 9223372036854775807.  */
15494 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15495   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15496                        && LARGE_OFF_T % 2147483647 == 1)
15497                       ? 1 : -1];
15498 int
15499 main (void)
15500 {
15501
15502   ;
15503   return 0;
15504 }
15505 _ACEOF
15506 if ac_fn_c_try_compile "$LINENO"
15507 then :
15508   ac_cv_sys_file_offset_bits=no; break
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h.  */
15513 #define _FILE_OFFSET_BITS 64
15514 #include <sys/types.h>
15515  /* Check that off_t can represent 2**63 - 1 correctly.
15516     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15517     since some C++ compilers masquerading as C compilers
15518     incorrectly reject 9223372036854775807.  */
15519 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15520   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15521                        && LARGE_OFF_T % 2147483647 == 1)
15522                       ? 1 : -1];
15523 int
15524 main (void)
15525 {
15526
15527   ;
15528   return 0;
15529 }
15530 _ACEOF
15531 if ac_fn_c_try_compile "$LINENO"
15532 then :
15533   ac_cv_sys_file_offset_bits=64; break
15534 fi
15535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15536   ac_cv_sys_file_offset_bits=unknown
15537   break
15538 done
15539 fi
15540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15541 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
15542 case $ac_cv_sys_file_offset_bits in #(
15543   no | unknown) ;;
15544   *)
15545 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
15546 ;;
15547 esac
15548 rm -rf conftest*
15549   if test $ac_cv_sys_file_offset_bits = unknown; then
15550     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15551 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
15552 if test ${ac_cv_sys_large_files+y}
15553 then :
15554   printf %s "(cached) " >&6
15555 else $as_nop
15556   while :; do
15557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h.  */
15559 #include <sys/types.h>
15560  /* Check that off_t can represent 2**63 - 1 correctly.
15561     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15562     since some C++ compilers masquerading as C compilers
15563     incorrectly reject 9223372036854775807.  */
15564 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15565   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15566                        && LARGE_OFF_T % 2147483647 == 1)
15567                       ? 1 : -1];
15568 int
15569 main (void)
15570 {
15571
15572   ;
15573   return 0;
15574 }
15575 _ACEOF
15576 if ac_fn_c_try_compile "$LINENO"
15577 then :
15578   ac_cv_sys_large_files=no; break
15579 fi
15580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h.  */
15583 #define _LARGE_FILES 1
15584 #include <sys/types.h>
15585  /* Check that off_t can represent 2**63 - 1 correctly.
15586     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15587     since some C++ compilers masquerading as C compilers
15588     incorrectly reject 9223372036854775807.  */
15589 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15590   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15591                        && LARGE_OFF_T % 2147483647 == 1)
15592                       ? 1 : -1];
15593 int
15594 main (void)
15595 {
15596
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 if ac_fn_c_try_compile "$LINENO"
15602 then :
15603   ac_cv_sys_large_files=1; break
15604 fi
15605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15606   ac_cv_sys_large_files=unknown
15607   break
15608 done
15609 fi
15610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15611 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
15612 case $ac_cv_sys_large_files in #(
15613   no | unknown) ;;
15614   *)
15615 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
15616 ;;
15617 esac
15618 rm -rf conftest*
15619   fi
15620 fi
15621
15622
15623 test -d lib || mkdir lib
15624 test -d include || mkdir include
15625 test -d include/linux || mkdir include/linux
15626 test -d include/asm || mkdir include/asm
15627 if test -z "$UUID_CMT" ; then
15628         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
15629                 lib/uuid/uuid_types.h"
15630 fi
15631 if test -z "$BLKID_CMT" ; then
15632         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
15633                 lib/blkid/blkid_types.h"
15634 fi
15635 for i in MCONFIG Makefile \
15636         e2fsprogs-RHEL-6.spec \
15637         e2fsprogs-SUSE_LINUX-11+.spec \
15638         e2fsprogs-RHEL-7+.spec \
15639         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
15640         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15641         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15642         $uuid_out_list $blkid_out_list lib/support/Makefile \
15643         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
15644         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15645         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15646         tests/fuzz/Makefile resize/Makefile doc/Makefile \
15647         po/Makefile.in scrub/Makefile; do
15648         if test -d `dirname ${srcdir}/$i` ; then
15649                 outlist="$outlist $i"
15650         fi
15651 done
15652 ac_config_files="$ac_config_files $outlist"
15653
15654 cat >confcache <<\_ACEOF
15655 # This file is a shell script that caches the results of configure
15656 # tests run on this system so they can be shared between configure
15657 # scripts and configure runs, see configure's option --config-cache.
15658 # It is not useful on other systems.  If it contains results you don't
15659 # want to keep, you may remove or edit it.
15660 #
15661 # config.status only pays attention to the cache file if you give it
15662 # the --recheck option to rerun configure.
15663 #
15664 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15665 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15666 # following values.
15667
15668 _ACEOF
15669
15670 # The following way of writing the cache mishandles newlines in values,
15671 # but we know of no workaround that is simple, portable, and efficient.
15672 # So, we kill variables containing newlines.
15673 # Ultrix sh set writes to stderr and can't be redirected directly,
15674 # and sets the high bit in the cache file unless we assign to the vars.
15675 (
15676   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15677     eval ac_val=\$$ac_var
15678     case $ac_val in #(
15679     *${as_nl}*)
15680       case $ac_var in #(
15681       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15682 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15683       esac
15684       case $ac_var in #(
15685       _ | IFS | as_nl) ;; #(
15686       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15687       *) { eval $ac_var=; unset $ac_var;} ;;
15688       esac ;;
15689     esac
15690   done
15691
15692   (set) 2>&1 |
15693     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15694     *${as_nl}ac_space=\ *)
15695       # `set' does not quote correctly, so add quotes: double-quote
15696       # substitution turns \\\\ into \\, and sed turns \\ into \.
15697       sed -n \
15698         "s/'/'\\\\''/g;
15699           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15700       ;; #(
15701     *)
15702       # `set' quotes correctly as required by POSIX, so do not add quotes.
15703       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15704       ;;
15705     esac |
15706     sort
15707 ) |
15708   sed '
15709      /^ac_cv_env_/b end
15710      t clear
15711      :clear
15712      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15713      t end
15714      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15715      :end' >>confcache
15716 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15717   if test -w "$cache_file"; then
15718     if test "x$cache_file" != "x/dev/null"; then
15719       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15720 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15721       if test ! -f "$cache_file" || test -h "$cache_file"; then
15722         cat confcache >"$cache_file"
15723       else
15724         case $cache_file in #(
15725         */* | ?:*)
15726           mv -f confcache "$cache_file"$$ &&
15727           mv -f "$cache_file"$$ "$cache_file" ;; #(
15728         *)
15729           mv -f confcache "$cache_file" ;;
15730         esac
15731       fi
15732     fi
15733   else
15734     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15735 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15736   fi
15737 fi
15738 rm -f confcache
15739
15740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15741 # Let make expand exec_prefix.
15742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15743
15744 DEFS=-DHAVE_CONFIG_H
15745
15746 ac_libobjs=
15747 ac_ltlibobjs=
15748 U=
15749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15750   # 1. Remove the extension, and $U if already installed.
15751   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15752   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15753   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15754   #    will be set to the directory where LIBOBJS objects are built.
15755   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15756   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15757 done
15758 LIBOBJS=$ac_libobjs
15759
15760 LTLIBOBJS=$ac_ltlibobjs
15761
15762
15763
15764
15765 : "${CONFIG_STATUS=./config.status}"
15766 ac_write_fail=0
15767 ac_clean_files_save=$ac_clean_files
15768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15770 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15771 as_write_fail=0
15772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15773 #! $SHELL
15774 # Generated by $as_me.
15775 # Run this file to recreate the current configuration.
15776 # Compiler output produced by configure, useful for debugging
15777 # configure, is in config.log if it exists.
15778
15779 debug=false
15780 ac_cs_recheck=false
15781 ac_cs_silent=false
15782
15783 SHELL=\${CONFIG_SHELL-$SHELL}
15784 export SHELL
15785 _ASEOF
15786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15787 ## -------------------- ##
15788 ## M4sh Initialization. ##
15789 ## -------------------- ##
15790
15791 # Be more Bourne compatible
15792 DUALCASE=1; export DUALCASE # for MKS sh
15793 as_nop=:
15794 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15795 then :
15796   emulate sh
15797   NULLCMD=:
15798   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15799   # is contrary to our usage.  Disable this feature.
15800   alias -g '${1+"$@"}'='"$@"'
15801   setopt NO_GLOB_SUBST
15802 else $as_nop
15803   case `(set -o) 2>/dev/null` in #(
15804   *posix*) :
15805     set -o posix ;; #(
15806   *) :
15807      ;;
15808 esac
15809 fi
15810
15811
15812
15813 # Reset variables that may have inherited troublesome values from
15814 # the environment.
15815
15816 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15817 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15818 # side effect of setting IFS to empty, thus disabling word splitting.)
15819 # Quoting is to prevent editors from complaining about space-tab.
15820 as_nl='
15821 '
15822 export as_nl
15823 IFS=" ""        $as_nl"
15824
15825 PS1='$ '
15826 PS2='> '
15827 PS4='+ '
15828
15829 # Ensure predictable behavior from utilities with locale-dependent output.
15830 LC_ALL=C
15831 export LC_ALL
15832 LANGUAGE=C
15833 export LANGUAGE
15834
15835 # We cannot yet rely on "unset" to work, but we need these variables
15836 # to be unset--not just set to an empty or harmless value--now, to
15837 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15838 # also avoids known problems related to "unset" and subshell syntax
15839 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15840 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15841 do eval test \${$as_var+y} \
15842   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15843 done
15844
15845 # Ensure that fds 0, 1, and 2 are open.
15846 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15847 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15848 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15849
15850 # The user is always right.
15851 if ${PATH_SEPARATOR+false} :; then
15852   PATH_SEPARATOR=:
15853   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15854     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15855       PATH_SEPARATOR=';'
15856   }
15857 fi
15858
15859
15860 # Find who we are.  Look in the path if we contain no directory separator.
15861 as_myself=
15862 case $0 in #((
15863   *[\\/]* ) as_myself=$0 ;;
15864   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15865 for as_dir in $PATH
15866 do
15867   IFS=$as_save_IFS
15868   case $as_dir in #(((
15869     '') as_dir=./ ;;
15870     */) ;;
15871     *) as_dir=$as_dir/ ;;
15872   esac
15873     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15874   done
15875 IFS=$as_save_IFS
15876
15877      ;;
15878 esac
15879 # We did not find ourselves, most probably we were run as `sh COMMAND'
15880 # in which case we are not to be found in the path.
15881 if test "x$as_myself" = x; then
15882   as_myself=$0
15883 fi
15884 if test ! -f "$as_myself"; then
15885   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15886   exit 1
15887 fi
15888
15889
15890
15891 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15892 # ----------------------------------------
15893 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15894 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15895 # script with STATUS, using 1 if that was 0.
15896 as_fn_error ()
15897 {
15898   as_status=$1; test $as_status -eq 0 && as_status=1
15899   if test "$4"; then
15900     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15901     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15902   fi
15903   printf "%s\n" "$as_me: error: $2" >&2
15904   as_fn_exit $as_status
15905 } # as_fn_error
15906
15907
15908
15909 # as_fn_set_status STATUS
15910 # -----------------------
15911 # Set $? to STATUS, without forking.
15912 as_fn_set_status ()
15913 {
15914   return $1
15915 } # as_fn_set_status
15916
15917 # as_fn_exit STATUS
15918 # -----------------
15919 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15920 as_fn_exit ()
15921 {
15922   set +e
15923   as_fn_set_status $1
15924   exit $1
15925 } # as_fn_exit
15926
15927 # as_fn_unset VAR
15928 # ---------------
15929 # Portably unset VAR.
15930 as_fn_unset ()
15931 {
15932   { eval $1=; unset $1;}
15933 }
15934 as_unset=as_fn_unset
15935
15936 # as_fn_append VAR VALUE
15937 # ----------------------
15938 # Append the text in VALUE to the end of the definition contained in VAR. Take
15939 # advantage of any shell optimizations that allow amortized linear growth over
15940 # repeated appends, instead of the typical quadratic growth present in naive
15941 # implementations.
15942 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15943 then :
15944   eval 'as_fn_append ()
15945   {
15946     eval $1+=\$2
15947   }'
15948 else $as_nop
15949   as_fn_append ()
15950   {
15951     eval $1=\$$1\$2
15952   }
15953 fi # as_fn_append
15954
15955 # as_fn_arith ARG...
15956 # ------------------
15957 # Perform arithmetic evaluation on the ARGs, and store the result in the
15958 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15959 # must be portable across $(()) and expr.
15960 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15961 then :
15962   eval 'as_fn_arith ()
15963   {
15964     as_val=$(( $* ))
15965   }'
15966 else $as_nop
15967   as_fn_arith ()
15968   {
15969     as_val=`expr "$@" || test $? -eq 1`
15970   }
15971 fi # as_fn_arith
15972
15973
15974 if expr a : '\(a\)' >/dev/null 2>&1 &&
15975    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15976   as_expr=expr
15977 else
15978   as_expr=false
15979 fi
15980
15981 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15982   as_basename=basename
15983 else
15984   as_basename=false
15985 fi
15986
15987 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15988   as_dirname=dirname
15989 else
15990   as_dirname=false
15991 fi
15992
15993 as_me=`$as_basename -- "$0" ||
15994 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15995          X"$0" : 'X\(//\)$' \| \
15996          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15997 printf "%s\n" X/"$0" |
15998     sed '/^.*\/\([^/][^/]*\)\/*$/{
15999             s//\1/
16000             q
16001           }
16002           /^X\/\(\/\/\)$/{
16003             s//\1/
16004             q
16005           }
16006           /^X\/\(\/\).*/{
16007             s//\1/
16008             q
16009           }
16010           s/.*/./; q'`
16011
16012 # Avoid depending upon Character Ranges.
16013 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16014 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16015 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16016 as_cr_digits='0123456789'
16017 as_cr_alnum=$as_cr_Letters$as_cr_digits
16018
16019
16020 # Determine whether it's possible to make 'echo' print without a newline.
16021 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16022 # for compatibility with existing Makefiles.
16023 ECHO_C= ECHO_N= ECHO_T=
16024 case `echo -n x` in #(((((
16025 -n*)
16026   case `echo 'xy\c'` in
16027   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16028   xy)  ECHO_C='\c';;
16029   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16030        ECHO_T=' ';;
16031   esac;;
16032 *)
16033   ECHO_N='-n';;
16034 esac
16035
16036 # For backward compatibility with old third-party macros, we provide
16037 # the shell variables $as_echo and $as_echo_n.  New code should use
16038 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16039 as_echo='printf %s\n'
16040 as_echo_n='printf %s'
16041
16042 rm -f conf$$ conf$$.exe conf$$.file
16043 if test -d conf$$.dir; then
16044   rm -f conf$$.dir/conf$$.file
16045 else
16046   rm -f conf$$.dir
16047   mkdir conf$$.dir 2>/dev/null
16048 fi
16049 if (echo >conf$$.file) 2>/dev/null; then
16050   if ln -s conf$$.file conf$$ 2>/dev/null; then
16051     as_ln_s='ln -s'
16052     # ... but there are two gotchas:
16053     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16054     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16055     # In both cases, we have to default to `cp -pR'.
16056     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16057       as_ln_s='cp -pR'
16058   elif ln conf$$.file conf$$ 2>/dev/null; then
16059     as_ln_s=ln
16060   else
16061     as_ln_s='cp -pR'
16062   fi
16063 else
16064   as_ln_s='cp -pR'
16065 fi
16066 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16067 rmdir conf$$.dir 2>/dev/null
16068
16069
16070 # as_fn_mkdir_p
16071 # -------------
16072 # Create "$as_dir" as a directory, including parents if necessary.
16073 as_fn_mkdir_p ()
16074 {
16075
16076   case $as_dir in #(
16077   -*) as_dir=./$as_dir;;
16078   esac
16079   test -d "$as_dir" || eval $as_mkdir_p || {
16080     as_dirs=
16081     while :; do
16082       case $as_dir in #(
16083       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16084       *) as_qdir=$as_dir;;
16085       esac
16086       as_dirs="'$as_qdir' $as_dirs"
16087       as_dir=`$as_dirname -- "$as_dir" ||
16088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16089          X"$as_dir" : 'X\(//\)[^/]' \| \
16090          X"$as_dir" : 'X\(//\)$' \| \
16091          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16092 printf "%s\n" X"$as_dir" |
16093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16094             s//\1/
16095             q
16096           }
16097           /^X\(\/\/\)[^/].*/{
16098             s//\1/
16099             q
16100           }
16101           /^X\(\/\/\)$/{
16102             s//\1/
16103             q
16104           }
16105           /^X\(\/\).*/{
16106             s//\1/
16107             q
16108           }
16109           s/.*/./; q'`
16110       test -d "$as_dir" && break
16111     done
16112     test -z "$as_dirs" || eval "mkdir $as_dirs"
16113   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16114
16115
16116 } # as_fn_mkdir_p
16117 if mkdir -p . 2>/dev/null; then
16118   as_mkdir_p='mkdir -p "$as_dir"'
16119 else
16120   test -d ./-p && rmdir ./-p
16121   as_mkdir_p=false
16122 fi
16123
16124
16125 # as_fn_executable_p FILE
16126 # -----------------------
16127 # Test if FILE is an executable regular file.
16128 as_fn_executable_p ()
16129 {
16130   test -f "$1" && test -x "$1"
16131 } # as_fn_executable_p
16132 as_test_x='test -x'
16133 as_executable_p=as_fn_executable_p
16134
16135 # Sed expression to map a string onto a valid CPP name.
16136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16137
16138 # Sed expression to map a string onto a valid variable name.
16139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16140
16141
16142 exec 6>&1
16143 ## ----------------------------------- ##
16144 ## Main body of $CONFIG_STATUS script. ##
16145 ## ----------------------------------- ##
16146 _ASEOF
16147 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16148
16149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16150 # Save the log message, to keep $0 and so on meaningful, and to
16151 # report actual input values of CONFIG_FILES etc. instead of their
16152 # values after options handling.
16153 ac_log="
16154 This file was extended by $as_me, which was
16155 generated by GNU Autoconf 2.71.  Invocation command line was
16156
16157   CONFIG_FILES    = $CONFIG_FILES
16158   CONFIG_HEADERS  = $CONFIG_HEADERS
16159   CONFIG_LINKS    = $CONFIG_LINKS
16160   CONFIG_COMMANDS = $CONFIG_COMMANDS
16161   $ $0 $@
16162
16163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16164 "
16165
16166 _ACEOF
16167
16168 case $ac_config_files in *"
16169 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16170 esac
16171
16172 case $ac_config_headers in *"
16173 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16174 esac
16175
16176
16177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16178 # Files that config.status was made for.
16179 config_files="$ac_config_files"
16180 config_headers="$ac_config_headers"
16181 config_commands="$ac_config_commands"
16182
16183 _ACEOF
16184
16185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16186 ac_cs_usage="\
16187 \`$as_me' instantiates files and other configuration actions
16188 from templates according to the current configuration.  Unless the files
16189 and actions are specified as TAGs, all are instantiated by default.
16190
16191 Usage: $0 [OPTION]... [TAG]...
16192
16193   -h, --help       print this help, then exit
16194   -V, --version    print version number and configuration settings, then exit
16195       --config     print configuration, then exit
16196   -q, --quiet, --silent
16197                    do not print progress messages
16198   -d, --debug      don't remove temporary files
16199       --recheck    update $as_me by reconfiguring in the same conditions
16200       --file=FILE[:TEMPLATE]
16201                    instantiate the configuration file FILE
16202       --header=FILE[:TEMPLATE]
16203                    instantiate the configuration header FILE
16204
16205 Configuration files:
16206 $config_files
16207
16208 Configuration headers:
16209 $config_headers
16210
16211 Configuration commands:
16212 $config_commands
16213
16214 Report bugs to the package provider."
16215
16216 _ACEOF
16217 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16218 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16220 ac_cs_config='$ac_cs_config_escaped'
16221 ac_cs_version="\\
16222 config.status
16223 configured by $0, generated by GNU Autoconf 2.71,
16224   with options \\"\$ac_cs_config\\"
16225
16226 Copyright (C) 2021 Free Software Foundation, Inc.
16227 This config.status script is free software; the Free Software Foundation
16228 gives unlimited permission to copy, distribute and modify it."
16229
16230 ac_pwd='$ac_pwd'
16231 srcdir='$srcdir'
16232 INSTALL='$INSTALL'
16233 MKDIR_P='$MKDIR_P'
16234 AWK='$AWK'
16235 test -n "\$AWK" || AWK=awk
16236 _ACEOF
16237
16238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16239 # The default lists apply if the user does not specify any file.
16240 ac_need_defaults=:
16241 while test $# != 0
16242 do
16243   case $1 in
16244   --*=?*)
16245     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16246     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16247     ac_shift=:
16248     ;;
16249   --*=)
16250     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16251     ac_optarg=
16252     ac_shift=:
16253     ;;
16254   *)
16255     ac_option=$1
16256     ac_optarg=$2
16257     ac_shift=shift
16258     ;;
16259   esac
16260
16261   case $ac_option in
16262   # Handling of the options.
16263   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16264     ac_cs_recheck=: ;;
16265   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16266     printf "%s\n" "$ac_cs_version"; exit ;;
16267   --config | --confi | --conf | --con | --co | --c )
16268     printf "%s\n" "$ac_cs_config"; exit ;;
16269   --debug | --debu | --deb | --de | --d | -d )
16270     debug=: ;;
16271   --file | --fil | --fi | --f )
16272     $ac_shift
16273     case $ac_optarg in
16274     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16275     '') as_fn_error $? "missing file argument" ;;
16276     esac
16277     as_fn_append CONFIG_FILES " '$ac_optarg'"
16278     ac_need_defaults=false;;
16279   --header | --heade | --head | --hea )
16280     $ac_shift
16281     case $ac_optarg in
16282     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16283     esac
16284     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16285     ac_need_defaults=false;;
16286   --he | --h)
16287     # Conflict between --help and --header
16288     as_fn_error $? "ambiguous option: \`$1'
16289 Try \`$0 --help' for more information.";;
16290   --help | --hel | -h )
16291     printf "%s\n" "$ac_cs_usage"; exit ;;
16292   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16293   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16294     ac_cs_silent=: ;;
16295
16296   # This is an error.
16297   -*) as_fn_error $? "unrecognized option: \`$1'
16298 Try \`$0 --help' for more information." ;;
16299
16300   *) as_fn_append ac_config_targets " $1"
16301      ac_need_defaults=false ;;
16302
16303   esac
16304   shift
16305 done
16306
16307 ac_configure_extra_args=
16308
16309 if $ac_cs_silent; then
16310   exec 6>/dev/null
16311   ac_configure_extra_args="$ac_configure_extra_args --silent"
16312 fi
16313
16314 _ACEOF
16315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16316 if \$ac_cs_recheck; then
16317   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16318   shift
16319   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16320   CONFIG_SHELL='$SHELL'
16321   export CONFIG_SHELL
16322   exec "\$@"
16323 fi
16324
16325 _ACEOF
16326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16327 exec 5>>config.log
16328 {
16329   echo
16330   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16331 ## Running $as_me. ##
16332 _ASBOX
16333   printf "%s\n" "$ac_log"
16334 } >&5
16335
16336 _ACEOF
16337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16338 #
16339 # INIT-COMMANDS
16340 #
16341 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16342     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16343     OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16344     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16345     LINGUAS="${LINGUAS-%UNSET%}"
16346
16347
16348 _ACEOF
16349
16350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16351
16352 # Handling of arguments.
16353 for ac_config_target in $ac_config_targets
16354 do
16355   case $ac_config_target in
16356     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16357     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16358     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16359
16360   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16361   esac
16362 done
16363
16364
16365 # If the user did not use the arguments to specify the items to instantiate,
16366 # then the envvar interface is used.  Set only those that are not.
16367 # We use the long form for the default assignment because of an extremely
16368 # bizarre bug on SunOS 4.1.3.
16369 if $ac_need_defaults; then
16370   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16371   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16372   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16373 fi
16374
16375 # Have a temporary directory for convenience.  Make it in the build tree
16376 # simply because there is no reason against having it here, and in addition,
16377 # creating and moving files from /tmp can sometimes cause problems.
16378 # Hook for its removal unless debugging.
16379 # Note that there is a small window in which the directory will not be cleaned:
16380 # after its creation but before its name has been assigned to `$tmp'.
16381 $debug ||
16382 {
16383   tmp= ac_tmp=
16384   trap 'exit_status=$?
16385   : "${ac_tmp:=$tmp}"
16386   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16387 ' 0
16388   trap 'as_fn_exit 1' 1 2 13 15
16389 }
16390 # Create a (secure) tmp directory for tmp files.
16391
16392 {
16393   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16394   test -d "$tmp"
16395 }  ||
16396 {
16397   tmp=./conf$$-$RANDOM
16398   (umask 077 && mkdir "$tmp")
16399 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16400 ac_tmp=$tmp
16401
16402 # Set up the scripts for CONFIG_FILES section.
16403 # No need to generate them if there are no CONFIG_FILES.
16404 # This happens for instance with `./config.status config.h'.
16405 if test -n "$CONFIG_FILES"; then
16406
16407 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16408   ac_cs_awk_getline=:
16409   ac_cs_awk_pipe_init=
16410   ac_cs_awk_read_file='
16411       while ((getline aline < (F[key])) > 0)
16412         print(aline)
16413       close(F[key])'
16414   ac_cs_awk_pipe_fini=
16415 else
16416   ac_cs_awk_getline=false
16417   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16418   ac_cs_awk_read_file='
16419       print "|#_!!_#|"
16420       print "cat " F[key] " &&"
16421       '$ac_cs_awk_pipe_init
16422   # The final `:' finishes the AND list.
16423   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16424 fi
16425 ac_cr=`echo X | tr X '\015'`
16426 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16427 # But we know of no other shell where ac_cr would be empty at this
16428 # point, so we can use a bashism as a fallback.
16429 if test "x$ac_cr" = x; then
16430   eval ac_cr=\$\'\\r\'
16431 fi
16432 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16433 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16434   ac_cs_awk_cr='\\r'
16435 else
16436   ac_cs_awk_cr=$ac_cr
16437 fi
16438
16439 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16440 _ACEOF
16441
16442 # Create commands to substitute file output variables.
16443 {
16444   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16445   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16446   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16447   echo "_ACAWK" &&
16448   echo "_ACEOF"
16449 } >conf$$files.sh &&
16450 . ./conf$$files.sh ||
16451   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16452 rm -f conf$$files.sh
16453
16454 {
16455   echo "cat >conf$$subs.awk <<_ACEOF" &&
16456   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16457   echo "_ACEOF"
16458 } >conf$$subs.sh ||
16459   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16460 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16461 ac_delim='%!_!# '
16462 for ac_last_try in false false false false false :; do
16463   . ./conf$$subs.sh ||
16464     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16465
16466   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16467   if test $ac_delim_n = $ac_delim_num; then
16468     break
16469   elif $ac_last_try; then
16470     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16471   else
16472     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16473   fi
16474 done
16475 rm -f conf$$subs.sh
16476
16477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16478 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16479 _ACEOF
16480 sed -n '
16481 h
16482 s/^/S["/; s/!.*/"]=/
16483 p
16484 g
16485 s/^[^!]*!//
16486 :repl
16487 t repl
16488 s/'"$ac_delim"'$//
16489 t delim
16490 :nl
16491 h
16492 s/\(.\{148\}\)..*/\1/
16493 t more1
16494 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16495 p
16496 n
16497 b repl
16498 :more1
16499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16500 p
16501 g
16502 s/.\{148\}//
16503 t nl
16504 :delim
16505 h
16506 s/\(.\{148\}\)..*/\1/
16507 t more2
16508 s/["\\]/\\&/g; s/^/"/; s/$/"/
16509 p
16510 b
16511 :more2
16512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16513 p
16514 g
16515 s/.\{148\}//
16516 t delim
16517 ' <conf$$subs.awk | sed '
16518 /^[^""]/{
16519   N
16520   s/\n//
16521 }
16522 ' >>$CONFIG_STATUS || ac_write_fail=1
16523 rm -f conf$$subs.awk
16524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525 _ACAWK
16526 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16527   for (key in S) S_is_set[key] = 1
16528   FS = "\a"
16529   \$ac_cs_awk_pipe_init
16530 }
16531 {
16532   line = $ 0
16533   nfields = split(line, field, "@")
16534   substed = 0
16535   len = length(field[1])
16536   for (i = 2; i < nfields; i++) {
16537     key = field[i]
16538     keylen = length(key)
16539     if (S_is_set[key]) {
16540       value = S[key]
16541       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16542       len += length(value) + length(field[++i])
16543       substed = 1
16544     } else
16545       len += 1 + keylen
16546   }
16547   if (nfields == 3 && !substed) {
16548     key = field[2]
16549     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16550       \$ac_cs_awk_read_file
16551       next
16552     }
16553   }
16554   print line
16555 }
16556 \$ac_cs_awk_pipe_fini
16557 _ACAWK
16558 _ACEOF
16559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16560 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16561   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16562 else
16563   cat
16564 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16565   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16566 _ACEOF
16567
16568 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16569 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16570 # trailing colons and then remove the whole line if VPATH becomes empty
16571 # (actually we leave an empty line to preserve line numbers).
16572 if test "x$srcdir" = x.; then
16573   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16574 h
16575 s///
16576 s/^/:/
16577 s/[      ]*$/:/
16578 s/:\$(srcdir):/:/g
16579 s/:\${srcdir}:/:/g
16580 s/:@srcdir@:/:/g
16581 s/^:*//
16582 s/:*$//
16583 x
16584 s/\(=[   ]*\).*/\1/
16585 G
16586 s/\n//
16587 s/^[^=]*=[       ]*$//
16588 }'
16589 fi
16590
16591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16592 fi # test -n "$CONFIG_FILES"
16593
16594 # Set up the scripts for CONFIG_HEADERS section.
16595 # No need to generate them if there are no CONFIG_HEADERS.
16596 # This happens for instance with `./config.status Makefile'.
16597 if test -n "$CONFIG_HEADERS"; then
16598 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16599 BEGIN {
16600 _ACEOF
16601
16602 # Transform confdefs.h into an awk script `defines.awk', embedded as
16603 # here-document in config.status, that substitutes the proper values into
16604 # config.h.in to produce config.h.
16605
16606 # Create a delimiter string that does not exist in confdefs.h, to ease
16607 # handling of long lines.
16608 ac_delim='%!_!# '
16609 for ac_last_try in false false :; do
16610   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16611   if test -z "$ac_tt"; then
16612     break
16613   elif $ac_last_try; then
16614     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16615   else
16616     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16617   fi
16618 done
16619
16620 # For the awk script, D is an array of macro values keyed by name,
16621 # likewise P contains macro parameters if any.  Preserve backslash
16622 # newline sequences.
16623
16624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16625 sed -n '
16626 s/.\{148\}/&'"$ac_delim"'/g
16627 t rset
16628 :rset
16629 s/^[     ]*#[    ]*define[       ][      ]*/ /
16630 t def
16631 d
16632 :def
16633 s/\\$//
16634 t bsnl
16635 s/["\\]/\\&/g
16636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16637 D["\1"]=" \3"/p
16638 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16639 d
16640 :bsnl
16641 s/["\\]/\\&/g
16642 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16643 D["\1"]=" \3\\\\\\n"\\/p
16644 t cont
16645 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16646 t cont
16647 d
16648 :cont
16649 n
16650 s/.\{148\}/&'"$ac_delim"'/g
16651 t clear
16652 :clear
16653 s/\\$//
16654 t bsnlc
16655 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16656 d
16657 :bsnlc
16658 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16659 b cont
16660 ' <confdefs.h | sed '
16661 s/'"$ac_delim"'/"\\\
16662 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16663
16664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16665   for (key in D) D_is_set[key] = 1
16666   FS = "\a"
16667 }
16668 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16669   line = \$ 0
16670   split(line, arg, " ")
16671   if (arg[1] == "#") {
16672     defundef = arg[2]
16673     mac1 = arg[3]
16674   } else {
16675     defundef = substr(arg[1], 2)
16676     mac1 = arg[2]
16677   }
16678   split(mac1, mac2, "(") #)
16679   macro = mac2[1]
16680   prefix = substr(line, 1, index(line, defundef) - 1)
16681   if (D_is_set[macro]) {
16682     # Preserve the white space surrounding the "#".
16683     print prefix "define", macro P[macro] D[macro]
16684     next
16685   } else {
16686     # Replace #undef with comments.  This is necessary, for example,
16687     # in the case of _POSIX_SOURCE, which is predefined and required
16688     # on some systems where configure will not decide to define it.
16689     if (defundef == "undef") {
16690       print "/*", prefix defundef, macro, "*/"
16691       next
16692     }
16693   }
16694 }
16695 { print }
16696 _ACAWK
16697 _ACEOF
16698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16699   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16700 fi # test -n "$CONFIG_HEADERS"
16701
16702
16703 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16704 shift
16705 for ac_tag
16706 do
16707   case $ac_tag in
16708   :[FHLC]) ac_mode=$ac_tag; continue;;
16709   esac
16710   case $ac_mode$ac_tag in
16711   :[FHL]*:*);;
16712   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16713   :[FH]-) ac_tag=-:-;;
16714   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16715   esac
16716   ac_save_IFS=$IFS
16717   IFS=:
16718   set x $ac_tag
16719   IFS=$ac_save_IFS
16720   shift
16721   ac_file=$1
16722   shift
16723
16724   case $ac_mode in
16725   :L) ac_source=$1;;
16726   :[FH])
16727     ac_file_inputs=
16728     for ac_f
16729     do
16730       case $ac_f in
16731       -) ac_f="$ac_tmp/stdin";;
16732       *) # Look for the file first in the build tree, then in the source tree
16733          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16734          # because $ac_f cannot contain `:'.
16735          test -f "$ac_f" ||
16736            case $ac_f in
16737            [\\/$]*) false;;
16738            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16739            esac ||
16740            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16741       esac
16742       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16743       as_fn_append ac_file_inputs " '$ac_f'"
16744     done
16745
16746     # Let's still pretend it is `configure' which instantiates (i.e., don't
16747     # use $as_me), people would be surprised to read:
16748     #    /* config.h.  Generated by config.status.  */
16749     configure_input='Generated from '`
16750           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16751         `' by configure.'
16752     if test x"$ac_file" != x-; then
16753       configure_input="$ac_file.  $configure_input"
16754       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16755 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16756     fi
16757     # Neutralize special characters interpreted by sed in replacement strings.
16758     case $configure_input in #(
16759     *\&* | *\|* | *\\* )
16760        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16761        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16762     *) ac_sed_conf_input=$configure_input;;
16763     esac
16764
16765     case $ac_tag in
16766     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16767       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16768     esac
16769     ;;
16770   esac
16771
16772   ac_dir=`$as_dirname -- "$ac_file" ||
16773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16774          X"$ac_file" : 'X\(//\)[^/]' \| \
16775          X"$ac_file" : 'X\(//\)$' \| \
16776          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16777 printf "%s\n" X"$ac_file" |
16778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16779             s//\1/
16780             q
16781           }
16782           /^X\(\/\/\)[^/].*/{
16783             s//\1/
16784             q
16785           }
16786           /^X\(\/\/\)$/{
16787             s//\1/
16788             q
16789           }
16790           /^X\(\/\).*/{
16791             s//\1/
16792             q
16793           }
16794           s/.*/./; q'`
16795   as_dir="$ac_dir"; as_fn_mkdir_p
16796   ac_builddir=.
16797
16798 case "$ac_dir" in
16799 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16800 *)
16801   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16802   # A ".." for each directory in $ac_dir_suffix.
16803   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16804   case $ac_top_builddir_sub in
16805   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16806   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16807   esac ;;
16808 esac
16809 ac_abs_top_builddir=$ac_pwd
16810 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16811 # for backward compatibility:
16812 ac_top_builddir=$ac_top_build_prefix
16813
16814 case $srcdir in
16815   .)  # We are building in place.
16816     ac_srcdir=.
16817     ac_top_srcdir=$ac_top_builddir_sub
16818     ac_abs_top_srcdir=$ac_pwd ;;
16819   [\\/]* | ?:[\\/]* )  # Absolute name.
16820     ac_srcdir=$srcdir$ac_dir_suffix;
16821     ac_top_srcdir=$srcdir
16822     ac_abs_top_srcdir=$srcdir ;;
16823   *) # Relative name.
16824     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16825     ac_top_srcdir=$ac_top_build_prefix$srcdir
16826     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16827 esac
16828 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16829
16830
16831   case $ac_mode in
16832   :F)
16833   #
16834   # CONFIG_FILE
16835   #
16836
16837   case $INSTALL in
16838   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16839   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16840   esac
16841   ac_MKDIR_P=$MKDIR_P
16842   case $MKDIR_P in
16843   [\\/$]* | ?:[\\/]* ) ;;
16844   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16845   esac
16846 _ACEOF
16847
16848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16849 # If the template does not know about datarootdir, expand it.
16850 # FIXME: This hack should be removed a few years after 2.60.
16851 ac_datarootdir_hack=; ac_datarootdir_seen=
16852 ac_sed_dataroot='
16853 /datarootdir/ {
16854   p
16855   q
16856 }
16857 /@datadir@/p
16858 /@docdir@/p
16859 /@infodir@/p
16860 /@localedir@/p
16861 /@mandir@/p'
16862 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16863 *datarootdir*) ac_datarootdir_seen=yes;;
16864 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16865   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16866 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16867 _ACEOF
16868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16869   ac_datarootdir_hack='
16870   s&@datadir@&$datadir&g
16871   s&@docdir@&$docdir&g
16872   s&@infodir@&$infodir&g
16873   s&@localedir@&$localedir&g
16874   s&@mandir@&$mandir&g
16875   s&\\\${datarootdir}&$datarootdir&g' ;;
16876 esac
16877 _ACEOF
16878
16879 # Neutralize VPATH when `$srcdir' = `.'.
16880 # Shell code in configure.ac might set extrasub.
16881 # FIXME: do we really want to maintain this feature?
16882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16883 ac_sed_extra="$ac_vpsub
16884 $extrasub
16885 _ACEOF
16886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16887 :t
16888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16889 s|@configure_input@|$ac_sed_conf_input|;t t
16890 s&@top_builddir@&$ac_top_builddir_sub&;t t
16891 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16892 s&@srcdir@&$ac_srcdir&;t t
16893 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16894 s&@top_srcdir@&$ac_top_srcdir&;t t
16895 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16896 s&@builddir@&$ac_builddir&;t t
16897 s&@abs_builddir@&$ac_abs_builddir&;t t
16898 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16899 s&@INSTALL@&$ac_INSTALL&;t t
16900 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16901 $ac_datarootdir_hack
16902 "
16903 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16904 if $ac_cs_awk_getline; then
16905   $AWK -f "$ac_tmp/subs.awk"
16906 else
16907   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16908 fi \
16909   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16910
16911 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16912   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16913   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16914       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16915   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16916 which seems to be undefined.  Please make sure it is defined" >&5
16917 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16918 which seems to be undefined.  Please make sure it is defined" >&2;}
16919
16920   rm -f "$ac_tmp/stdin"
16921   case $ac_file in
16922   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16923   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16924   esac \
16925   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16926  ;;
16927   :H)
16928   #
16929   # CONFIG_HEADER
16930   #
16931   if test x"$ac_file" != x-; then
16932     {
16933       printf "%s\n" "/* $configure_input  */" >&1 \
16934       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16935     } >"$ac_tmp/config.h" \
16936       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16937     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16938       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16939 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16940     else
16941       rm -f "$ac_file"
16942       mv "$ac_tmp/config.h" "$ac_file" \
16943         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16944     fi
16945   else
16946     printf "%s\n" "/* $configure_input  */" >&1 \
16947       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16948       || as_fn_error $? "could not create -" "$LINENO" 5
16949   fi
16950  ;;
16951
16952   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16953 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16954  ;;
16955   esac
16956
16957
16958   case $ac_file$ac_mode in
16959     "po-directories":C)
16960     for ac_file in $CONFIG_FILES; do
16961       # Support "outfile[:infile[:infile...]]"
16962       case "$ac_file" in
16963         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16964       esac
16965       # PO directories have a Makefile.in generated from Makefile.in.in.
16966       case "$ac_file" in */Makefile.in)
16967         # Adjust a relative srcdir.
16968         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16969         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16970         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16971         # In autoconf-2.13 it is called $ac_given_srcdir.
16972         # In autoconf-2.50 it is called $srcdir.
16973         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16974         case "$ac_given_srcdir" in
16975           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16976           /*) top_srcdir="$ac_given_srcdir" ;;
16977           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16978         esac
16979         # Treat a directory as a PO directory if and only if it has a
16980         # POTFILES.in file. This allows packages to have multiple PO
16981         # directories under different names or in different locations.
16982         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16983           rm -f "$ac_dir/POTFILES"
16984           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16985           gt_tab=`printf '\t'`
16986           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"
16987           POMAKEFILEDEPS="POTFILES.in"
16988           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16989           # on $ac_dir but don't depend on user-specified configuration
16990           # parameters.
16991           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16992             # The LINGUAS file contains the set of available languages.
16993             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16994               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16995             fi
16996             ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16997             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16998           else
16999             # The set of available languages was given in configure.in.
17000             ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17001           fi
17002           # Compute POFILES
17003           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17004           # Compute UPDATEPOFILES
17005           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17006           # Compute DUMMYPOFILES
17007           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17008           # Compute GMOFILES
17009           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17010           case "$ac_given_srcdir" in
17011             .) srcdirpre= ;;
17012             *) srcdirpre='$(srcdir)/' ;;
17013           esac
17014           POFILES=
17015           UPDATEPOFILES=
17016           DUMMYPOFILES=
17017           GMOFILES=
17018           for lang in $ALL_LINGUAS; do
17019             POFILES="$POFILES $srcdirpre$lang.po"
17020             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17021             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17022             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17023           done
17024           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17025           # environment variable.
17026           INST_LINGUAS=
17027           if test -n "$ALL_LINGUAS"; then
17028             for presentlang in $ALL_LINGUAS; do
17029               useit=no
17030               if test "%UNSET%" != "$LINGUAS"; then
17031                 desiredlanguages="$LINGUAS"
17032               else
17033                 desiredlanguages="$ALL_LINGUAS"
17034               fi
17035               for desiredlang in $desiredlanguages; do
17036                 # Use the presentlang catalog if desiredlang is
17037                 #   a. equal to presentlang, or
17038                 #   b. a variant of presentlang (because in this case,
17039                 #      presentlang can be used as a fallback for messages
17040                 #      which are not translated in the desiredlang catalog).
17041                 case "$desiredlang" in
17042                   "$presentlang"*) useit=yes;;
17043                 esac
17044               done
17045               if test $useit = yes; then
17046                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17047               fi
17048             done
17049           fi
17050           CATALOGS=
17051           if test -n "$INST_LINGUAS"; then
17052             for lang in $INST_LINGUAS; do
17053               CATALOGS="$CATALOGS $lang.gmo"
17054             done
17055           fi
17056           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17057           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"
17058           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17059             if test -f "$f"; then
17060               case "$f" in
17061                 *.orig | *.bak | *~) ;;
17062                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17063               esac
17064             fi
17065           done
17066         fi
17067         ;;
17068       esac
17069     done ;;
17070
17071   esac
17072 done # for ac_tag
17073
17074
17075 as_fn_exit 0
17076 _ACEOF
17077 ac_clean_files=$ac_clean_files_save
17078
17079 test $ac_write_fail = 0 ||
17080   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17081
17082
17083 # configure is writing to config.log, and then calls config.status.
17084 # config.status does its own redirection, appending to config.log.
17085 # Unfortunately, on DOS this fails, as config.log is still kept open
17086 # by configure, so config.status won't be able to write to it; its
17087 # output is simply discarded.  So we exec the FD to /dev/null,
17088 # effectively closing config.log, so it can be properly (re)opened and
17089 # appended to by config.status.  When coming back to configure, we
17090 # need to make the FD available again.
17091 if test "$no_create" != yes; then
17092   ac_cs_success=:
17093   ac_config_status_args=
17094   test "$silent" = yes &&
17095     ac_config_status_args="$ac_config_status_args --quiet"
17096   exec 5>/dev/null
17097   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17098   exec 5>>config.log
17099   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17100   # would make configure fail if this is the last instruction.
17101   $ac_cs_success || as_fn_exit 1
17102 fi
17103 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17105 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17106 fi
17107
17108 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
17109