Whamcloud - gitweb
e2fsck: drop use of sysctl(2)
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
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   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 gt_needs=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 systemd_system_unit_dir
626 have_systemd
627 systemd_LIBS
628 systemd_CFLAGS
629 crond_dir
630 have_crond
631 pkg_udev_rules_dir
632 have_udev
633 udev_LIBS
634 udev_CFLAGS
635 LDFLAGS_SHLIB
636 CFLAGS_STLIB
637 CFLAGS_SHLIB
638 BUILD_LDFLAGS
639 BUILD_CFLAGS
640 INCLUDES
641 DO_TEST_SUITE
642 LDFLAGS_STATIC
643 root_sysconfdir
644 root_libdir
645 root_sbindir
646 root_bindir
647 root_prefix
648 E2SCRUB_CMT
649 UNIX_CMT
650 CYGWIN_CMT
651 LINUX_CMT
652 threadsan_ldflags
653 threadsan_cflags
654 have_threadsan
655 addrsan_ldflags
656 addrsan_cflags
657 have_addrsan
658 ubsan_ldflags
659 ubsan_cflags
660 have_ubsan
661 lto_ldflags
662 lto_cflags
663 have_lto
664 gcc_ranlib
665 gcc_ar
666 UNI_DIFF_OPTS
667 SEM_INIT_LIB
668 FUSE_CMT
669 FUSE_LIB
670 CLOCK_GETTIME_LIB
671 MAGIC_LIB
672 SOCKET_LIB
673 SIZEOF_TIME_T
674 SIZEOF_OFF_T
675 SIZEOF_LONG_LONG
676 SIZEOF_LONG
677 SIZEOF_INT
678 SIZEOF_SHORT
679 DD
680 BUILD_CC
681 MAKEINFO
682 STRIP
683 RANLIB
684 AR
685 LDCONFIG
686 PERL
687 AWK
688 CHMOD
689 RM
690 CP
691 MV
692 LN_S
693 mkdir_p
694 LN
695 ifNotGNUmake
696 ifGNUmake
697 BINARY_TYPE
698 POSUB
699 LTLIBINTL
700 LIBINTL
701 INTLLIBS
702 LTLIBICONV
703 LIBICONV
704 INTL_MACOSX_LIBS
705 XGETTEXT_EXTRA_OPTIONS
706 MSGMERGE_FOR_MSGFMT_OPTION
707 MSGMERGE
708 XGETTEXT_015
709 XGETTEXT
710 GMSGFMT_015
711 GMSGFMT
712 MSGFMT
713 GETTEXT_MACRO_VERSION
714 USE_NLS
715 MKDIR_P
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 SET_MAKE
720 VERSION
721 PACKAGE
722 GETTEXT_PACKAGE
723 TDB_MAN_COMMENT
724 TDB_CMT
725 UUIDD_CMT
726 PTHREAD_CFLAGS
727 PTHREAD_LIBS
728 PTHREAD_CC
729 ax_pthread_config
730 SED
731 E2INITRD_MAN
732 E2INITRD_PROG
733 FSCK_MAN
734 FSCK_PROG
735 DEFRAG_CMT
736 RESIZER_CMT
737 IMAGER_CMT
738 DEBUGFS_CMT
739 SUBSET_CMT
740 ALL_CMT
741 BLKID_CMT
742 DEPPROFILED_LIBBLKID
743 PROFILED_LIBBLKID
744 DEPSTATIC_LIBBLKID
745 STATIC_LIBBLKID
746 DEPLIBBLKID
747 LIBBLKID
748 UUID_CMT
749 DEPPROFILED_LIBUUID
750 PROFILED_LIBUUID
751 DEPSTATIC_LIBUUID
752 STATIC_LIBUUID
753 DEPLIBUUID
754 LIBUUID
755 PKG_CONFIG_LIBDIR
756 PKG_CONFIG_PATH
757 PKG_CONFIG
758 DEV_FEATURES_CMT
759 TEST_IO_CMT
760 PRIVATE_LIBS_CMT
761 LDFLAG_DYNAMIC
762 PROFILED_LIB_EXT
763 STATIC_LIB_EXT
764 LIB_EXT
765 PROFILE_CMT
766 BSDLIB_CMT
767 ELF_CMT
768 Q
769 ES
770 E
771 LINK_BUILD_FLAGS
772 SYMLINK_RELATIVE
773 LINK_INSTALL_FLAGS
774 MAINTAINER_CMT
775 EGREP
776 GREP
777 CPP
778 RDYNAMIC
779 DLOPEN_LIB
780 OBJEXT
781 EXEEXT
782 ac_ct_CC
783 CPPFLAGS
784 LDFLAGS
785 CFLAGS
786 CC
787 host_os
788 host_vendor
789 host_cpu
790 host
791 build_os
792 build_vendor
793 build_cpu
794 build
795 E2FSPROGS_DATE
796 E2FSPROGS_PKGVER
797 E2FSPROGS_VERSION
798 E2FSPROGS_DAY
799 E2FSPROGS_MONTH
800 E2FSPROGS_YEAR
801 target_alias
802 host_alias
803 build_alias
804 LIBS
805 ECHO_T
806 ECHO_N
807 ECHO_C
808 DEFS
809 mandir
810 localedir
811 libdir
812 psdir
813 pdfdir
814 dvidir
815 htmldir
816 infodir
817 docdir
818 oldincludedir
819 includedir
820 runstatedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files='MCONFIG
841 MAKEFILE_ELF
842 MAKEFILE_BSDLIB
843 MAKEFILE_PROFILE
844 MAKEFILE_LIBRARY
845 ASM_TYPES_HEADER
846 PUBLIC_CONFIG_HEADER'
847 ac_user_opts='
848 enable_option_checking
849 with_diet_libc
850 with_cc
851 with_ccopts
852 with_ldopts
853 with_root_prefix
854 enable_maintainer_mode
855 enable_symlink_install
856 enable_relative_symlinks
857 enable_symlink_relative_symlinks
858 enable_symlink_build
859 enable_verbose_makecmds
860 enable_elf_shlibs
861 enable_bsd_shlibs
862 enable_profile
863 enable_gcov
864 enable_hardening
865 enable_jbd_debug
866 enable_blkid_debug
867 enable_testio_debug
868 enable_developer_features
869 enable_libuuid
870 enable_libblkid
871 enable_subset
872 enable_backtrace
873 enable_debugfs
874 enable_imager
875 enable_resizer
876 enable_defrag
877 enable_fsck
878 enable_e2initrd_helper
879 enable_tls
880 with_pthread
881 enable_uuidd
882 enable_mmp
883 enable_tdb
884 enable_bmap_stats
885 enable_bmap_stats_ops
886 enable_nls
887 with_gnu_ld
888 enable_rpath
889 with_libiconv_prefix
890 with_libintl_prefix
891 enable_fuse2fs
892 enable_lto
893 enable_ubsan
894 enable_addrsan
895 enable_threadsan
896 with_multiarch
897 with_udev_rules_dir
898 with_crond_dir
899 with_systemd_unit_dir
900 '
901       ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 PKG_CONFIG
911 PKG_CONFIG_PATH
912 PKG_CONFIG_LIBDIR
913 udev_CFLAGS
914 udev_LIBS
915 systemd_CFLAGS
916 systemd_LIBS'
917
918
919 # Initialize some variables set by options.
920 ac_init_help=
921 ac_init_version=false
922 ac_unrecognized_opts=
923 ac_unrecognized_sep=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
940
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 runstatedir='${localstatedir}/run'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
967
968 ac_prev=
969 ac_dashdash=
970 for ac_option
971 do
972   # If the previous option needs an argument, assign it.
973   if test -n "$ac_prev"; then
974     eval $ac_prev=\$ac_option
975     ac_prev=
976     continue
977   fi
978
979   case $ac_option in
980   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981   *=)   ac_optarg= ;;
982   *)    ac_optarg=yes ;;
983   esac
984
985   # Accept the important Cygnus configure options, so we can diagnose typos.
986
987   case $ac_dashdash$ac_option in
988   --)
989     ac_dashdash=yes ;;
990
991   -bindir | --bindir | --bindi | --bind | --bin | --bi)
992     ac_prev=bindir ;;
993   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994     bindir=$ac_optarg ;;
995
996   -build | --build | --buil | --bui | --bu)
997     ac_prev=build_alias ;;
998   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999     build_alias=$ac_optarg ;;
1000
1001   -cache-file | --cache-file | --cache-fil | --cache-fi \
1002   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003     ac_prev=cache_file ;;
1004   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006     cache_file=$ac_optarg ;;
1007
1008   --config-cache | -C)
1009     cache_file=config.cache ;;
1010
1011   -datadir | --datadir | --datadi | --datad)
1012     ac_prev=datadir ;;
1013   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014     datadir=$ac_optarg ;;
1015
1016   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017   | --dataroo | --dataro | --datar)
1018     ac_prev=datarootdir ;;
1019   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021     datarootdir=$ac_optarg ;;
1022
1023   -disable-* | --disable-*)
1024     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027       as_fn_error $? "invalid feature name: $ac_useropt"
1028     ac_useropt_orig=$ac_useropt
1029     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030     case $ac_user_opts in
1031       *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035          ac_unrecognized_sep=', ';;
1036     esac
1037     eval enable_$ac_useropt=no ;;
1038
1039   -docdir | --docdir | --docdi | --doc | --do)
1040     ac_prev=docdir ;;
1041   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042     docdir=$ac_optarg ;;
1043
1044   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045     ac_prev=dvidir ;;
1046   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047     dvidir=$ac_optarg ;;
1048
1049   -enable-* | --enable-*)
1050     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053       as_fn_error $? "invalid feature name: $ac_useropt"
1054     ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057       *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061          ac_unrecognized_sep=', ';;
1062     esac
1063     eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067   | --exec | --exe | --ex)
1068     ac_prev=exec_prefix ;;
1069   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071   | --exec=* | --exe=* | --ex=*)
1072     exec_prefix=$ac_optarg ;;
1073
1074   -gas | --gas | --ga | --g)
1075     # Obsolete; use --with-gas.
1076     with_gas=yes ;;
1077
1078   -help | --help | --hel | --he | -h)
1079     ac_init_help=long ;;
1080   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081     ac_init_help=recursive ;;
1082   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083     ac_init_help=short ;;
1084
1085   -host | --host | --hos | --ho)
1086     ac_prev=host_alias ;;
1087   -host=* | --host=* | --hos=* | --ho=*)
1088     host_alias=$ac_optarg ;;
1089
1090   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091     ac_prev=htmldir ;;
1092   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093   | --ht=*)
1094     htmldir=$ac_optarg ;;
1095
1096   -includedir | --includedir | --includedi | --included | --include \
1097   | --includ | --inclu | --incl | --inc)
1098     ac_prev=includedir ;;
1099   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100   | --includ=* | --inclu=* | --incl=* | --inc=*)
1101     includedir=$ac_optarg ;;
1102
1103   -infodir | --infodir | --infodi | --infod | --info | --inf)
1104     ac_prev=infodir ;;
1105   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106     infodir=$ac_optarg ;;
1107
1108   -libdir | --libdir | --libdi | --libd)
1109     ac_prev=libdir ;;
1110   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111     libdir=$ac_optarg ;;
1112
1113   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114   | --libexe | --libex | --libe)
1115     ac_prev=libexecdir ;;
1116   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117   | --libexe=* | --libex=* | --libe=*)
1118     libexecdir=$ac_optarg ;;
1119
1120   -localedir | --localedir | --localedi | --localed | --locale)
1121     ac_prev=localedir ;;
1122   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123     localedir=$ac_optarg ;;
1124
1125   -localstatedir | --localstatedir | --localstatedi | --localstated \
1126   | --localstate | --localstat | --localsta | --localst | --locals)
1127     ac_prev=localstatedir ;;
1128   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130     localstatedir=$ac_optarg ;;
1131
1132   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133     ac_prev=mandir ;;
1134   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135     mandir=$ac_optarg ;;
1136
1137   -nfp | --nfp | --nf)
1138     # Obsolete; use --without-fp.
1139     with_fp=no ;;
1140
1141   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142   | --no-cr | --no-c | -n)
1143     no_create=yes ;;
1144
1145   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147     no_recursion=yes ;;
1148
1149   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151   | --oldin | --oldi | --old | --ol | --o)
1152     ac_prev=oldincludedir ;;
1153   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156     oldincludedir=$ac_optarg ;;
1157
1158   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159     ac_prev=prefix ;;
1160   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161     prefix=$ac_optarg ;;
1162
1163   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164   | --program-pre | --program-pr | --program-p)
1165     ac_prev=program_prefix ;;
1166   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168     program_prefix=$ac_optarg ;;
1169
1170   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171   | --program-suf | --program-su | --program-s)
1172     ac_prev=program_suffix ;;
1173   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175     program_suffix=$ac_optarg ;;
1176
1177   -program-transform-name | --program-transform-name \
1178   | --program-transform-nam | --program-transform-na \
1179   | --program-transform-n | --program-transform- \
1180   | --program-transform | --program-transfor \
1181   | --program-transfo | --program-transf \
1182   | --program-trans | --program-tran \
1183   | --progr-tra | --program-tr | --program-t)
1184     ac_prev=program_transform_name ;;
1185   -program-transform-name=* | --program-transform-name=* \
1186   | --program-transform-nam=* | --program-transform-na=* \
1187   | --program-transform-n=* | --program-transform-=* \
1188   | --program-transform=* | --program-transfor=* \
1189   | --program-transfo=* | --program-transf=* \
1190   | --program-trans=* | --program-tran=* \
1191   | --progr-tra=* | --program-tr=* | --program-t=*)
1192     program_transform_name=$ac_optarg ;;
1193
1194   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195     ac_prev=pdfdir ;;
1196   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197     pdfdir=$ac_optarg ;;
1198
1199   -psdir | --psdir | --psdi | --psd | --ps)
1200     ac_prev=psdir ;;
1201   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202     psdir=$ac_optarg ;;
1203
1204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205   | -silent | --silent | --silen | --sile | --sil)
1206     silent=yes ;;
1207
1208   -runstatedir | --runstatedir | --runstatedi | --runstated \
1209   | --runstate | --runstat | --runsta | --runst | --runs \
1210   | --run | --ru | --r)
1211     ac_prev=runstatedir ;;
1212   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1213   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1214   | --run=* | --ru=* | --r=*)
1215     runstatedir=$ac_optarg ;;
1216
1217   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218     ac_prev=sbindir ;;
1219   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220   | --sbi=* | --sb=*)
1221     sbindir=$ac_optarg ;;
1222
1223   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225   | --sharedst | --shareds | --shared | --share | --shar \
1226   | --sha | --sh)
1227     ac_prev=sharedstatedir ;;
1228   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231   | --sha=* | --sh=*)
1232     sharedstatedir=$ac_optarg ;;
1233
1234   -site | --site | --sit)
1235     ac_prev=site ;;
1236   -site=* | --site=* | --sit=*)
1237     site=$ac_optarg ;;
1238
1239   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240     ac_prev=srcdir ;;
1241   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242     srcdir=$ac_optarg ;;
1243
1244   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245   | --syscon | --sysco | --sysc | --sys | --sy)
1246     ac_prev=sysconfdir ;;
1247   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249     sysconfdir=$ac_optarg ;;
1250
1251   -target | --target | --targe | --targ | --tar | --ta | --t)
1252     ac_prev=target_alias ;;
1253   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254     target_alias=$ac_optarg ;;
1255
1256   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257     verbose=yes ;;
1258
1259   -version | --version | --versio | --versi | --vers | -V)
1260     ac_init_version=: ;;
1261
1262   -with-* | --with-*)
1263     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266       as_fn_error $? "invalid package name: $ac_useropt"
1267     ac_useropt_orig=$ac_useropt
1268     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269     case $ac_user_opts in
1270       *"
1271 "with_$ac_useropt"
1272 "*) ;;
1273       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274          ac_unrecognized_sep=', ';;
1275     esac
1276     eval with_$ac_useropt=\$ac_optarg ;;
1277
1278   -without-* | --without-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       as_fn_error $? "invalid package name: $ac_useropt"
1283     ac_useropt_orig=$ac_useropt
1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285     case $ac_user_opts in
1286       *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290          ac_unrecognized_sep=', ';;
1291     esac
1292     eval with_$ac_useropt=no ;;
1293
1294   --x)
1295     # Obsolete; use --with-x.
1296     with_x=yes ;;
1297
1298   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299   | --x-incl | --x-inc | --x-in | --x-i)
1300     ac_prev=x_includes ;;
1301   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303     x_includes=$ac_optarg ;;
1304
1305   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307     ac_prev=x_libraries ;;
1308   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310     x_libraries=$ac_optarg ;;
1311
1312   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1314     ;;
1315
1316   *=*)
1317     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318     # Reject names that are not valid shell variable names.
1319     case $ac_envvar in #(
1320       '' | [0-9]* | *[!_$as_cr_alnum]* )
1321       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1322     esac
1323     eval $ac_envvar=\$ac_optarg
1324     export $ac_envvar ;;
1325
1326   *)
1327     # FIXME: should be removed in autoconf 3.0.
1328     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332     ;;
1333
1334   esac
1335 done
1336
1337 if test -n "$ac_prev"; then
1338   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339   as_fn_error $? "missing argument to $ac_option"
1340 fi
1341
1342 if test -n "$ac_unrecognized_opts"; then
1343   case $enable_option_checking in
1344     no) ;;
1345     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347   esac
1348 fi
1349
1350 # Check all directory arguments for consistency.
1351 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352                 datadir sysconfdir sharedstatedir localstatedir includedir \
1353                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354                 libdir localedir mandir runstatedir
1355 do
1356   eval ac_val=\$$ac_var
1357   # Remove trailing slashes.
1358   case $ac_val in
1359     */ )
1360       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361       eval $ac_var=\$ac_val;;
1362   esac
1363   # Be sure to have absolute directory names.
1364   case $ac_val in
1365     [\\/$]* | ?:[\\/]* )  continue;;
1366     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367   esac
1368   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380   if test "x$build_alias" = x; then
1381     cross_compiling=maybe
1382   elif test "x$build_alias" != "x$host_alias"; then
1383     cross_compiling=yes
1384   fi
1385 fi
1386
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390 test "$silent" = yes && exec 6>/dev/null
1391
1392
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396   as_fn_error $? "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398   as_fn_error $? "pwd does not report name of working directory"
1399
1400
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403   ac_srcdir_defaulted=yes
1404   # Try the directory containing this script, then the parent directory.
1405   ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407          X"$as_myself" : 'X\(//\)[^/]' \| \
1408          X"$as_myself" : 'X\(//\)$' \| \
1409          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)[^/].*/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\/\)$/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\).*/{
1424             s//\1/
1425             q
1426           }
1427           s/.*/./; q'`
1428   srcdir=$ac_confdir
1429   if test ! -r "$srcdir/$ac_unique_file"; then
1430     srcdir=..
1431   fi
1432 else
1433   ac_srcdir_defaulted=no
1434 fi
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1438 fi
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 ac_abs_confdir=`(
1441         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1442         pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445   srcdir=.
1446 fi
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_env_${ac_var}_value=\$${ac_var}
1456   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1459
1460 #
1461 # Report the --help message.
1462 #
1463 if test "$ac_init_help" = "long"; then
1464   # Omit some internal or obsolete options to make the list less imposing.
1465   # This message is too long to be a string in the A/UX 3.1 sh.
1466   cat <<_ACEOF
1467 \`configure' configures this package to adapt to many kinds of systems.
1468
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE.  See below for descriptions of some of the useful variables.
1473
1474 Defaults for the options are specified in brackets.
1475
1476 Configuration:
1477   -h, --help              display this help and exit
1478       --help=short        display options specific to this package
1479       --help=recursive    display the short help of all the included packages
1480   -V, --version           display version information and exit
1481   -q, --quiet, --silent   do not print \`checking ...' messages
1482       --cache-file=FILE   cache test results in FILE [disabled]
1483   -C, --config-cache      alias for \`--cache-file=config.cache'
1484   -n, --no-create         do not create output files
1485       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1486
1487 Installation directories:
1488   --prefix=PREFIX         install architecture-independent files in PREFIX
1489                           [$ac_default_prefix]
1490   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1491                           [PREFIX]
1492
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1497
1498 For better control, use the options below.
1499
1500 Fine tuning of the installation directories:
1501   --bindir=DIR            user executables [EPREFIX/bin]
1502   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1503   --libexecdir=DIR        program executables [EPREFIX/libexec]
1504   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1505   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1506   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1507   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1508   --libdir=DIR            object code libraries [EPREFIX/lib]
1509   --includedir=DIR        C header files [PREFIX/include]
1510   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1511   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1512   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1513   --infodir=DIR           info documentation [DATAROOTDIR/info]
1514   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1515   --mandir=DIR            man documentation [DATAROOTDIR/man]
1516   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1517   --htmldir=DIR           html documentation [DOCDIR]
1518   --dvidir=DIR            dvi documentation [DOCDIR]
1519   --pdfdir=DIR            pdf documentation [DOCDIR]
1520   --psdir=DIR             ps documentation [DOCDIR]
1521 _ACEOF
1522
1523   cat <<\_ACEOF
1524
1525 System types:
1526   --build=BUILD     configure for building on BUILD [guessed]
1527   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1528 _ACEOF
1529 fi
1530
1531 if test -n "$ac_init_help"; then
1532
1533   cat <<\_ACEOF
1534
1535 Optional Features:
1536   --disable-option-checking  ignore unrecognized --enable/--with options
1537   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539   --enable-maintainer-mode enable makefile rules useful for maintainers
1540   --enable-symlink-install use symlinks when installing instead of hard links
1541   --enable-relative-symlinks use relative symlinks when installing
1542
1543   --enable-symlink-build  use symlinks while building instead of hard links
1544   --enable-verbose-makecmds enable verbose make command output
1545   --enable-elf-shlibs     select ELF shared libraries
1546   --enable-bsd-shlibs     select BSD shared libraries
1547   --enable-profile        build profiling libraries
1548   --enable-gcov           build for coverage testing using gcov
1549   --enable-hardening              build for coverage testing using gcov
1550   --enable-jbd-debug      enable journal debugging
1551   --enable-blkid-debug    enable blkid debugging
1552   --disable-testio-debug  disable the use of the test I/O manager for debugging
1553   --enable-developer-features  enable features for use by ext4 developers
1554   --enable-libuuid        build and use private uuid library
1555   --enable-libblkid       build and use private blkid library
1556   --enable-subset         enable subset-only build
1557   --disable-backtrace     disable use backtrace
1558   --disable-debugfs       disable support of debugfs program
1559   --disable-imager        disable support of e2image program
1560   --disable-resizer       disable support of e2resize program
1561   --disable-defrag        disable support of e4defrag program
1562   --enable-fsck           build fsck wrapper program
1563   --enable-e2initrd-helper build e2initrd-helper program
1564   --disable-tls           disable use of thread local support
1565   --disable-uuidd         disable building the uuid daemon
1566   --disable-mmp           disable support mmp, Multi Mount Protection
1567   --disable-tdb           disable tdb support
1568   --disable-bmap-stats    disable collection of bitmap stats.
1569   --enable-bmap-stats-ops enable collection of additional bitmap stats
1570   --disable-nls           do not use Native Language Support
1571   --disable-rpath         do not hardcode runtime library paths
1572   --disable-fuse2fs       do not build fuse2fs
1573   --enable-lto            enable link time optimization
1574   --enable-ubsan          enable undefined behavior sanitizer
1575   --enable-addrsan        enable address sanitizer
1576   --enable-threadsan      enable thread sanitizer
1577
1578 Optional Packages:
1579   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1580   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1581   --with-diet-libc        use diet libc
1582   --with-cc               no longer supported, use CC= instead
1583   --with-ccopts           no longer supported, use CFLAGS= instead
1584   --with-ldopts           no longer supported, use LDFLAGS= instead
1585   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1586   --without-pthread       disable use of pthread support
1587   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1588   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1589   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1590   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1591   --without-libintl-prefix     don't search for libintl in includedir and libdir
1592   --with-multiarch=ARCH specify the multiarch triplet
1593   --with-udev-rules-dir[=DIR]
1594                           Install udev rules into DIR.
1595   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1596   --with-systemd-unit-dir[=DIR]
1597                           Install systemd system units into DIR.
1598
1599 Some influential environment variables:
1600   CC          C compiler command
1601   CFLAGS      C compiler flags
1602   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1603               nonstandard directory <lib dir>
1604   LIBS        libraries to pass to the linker, e.g. -l<library>
1605   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1606               you have headers in a nonstandard directory <include dir>
1607   CPP         C preprocessor
1608   PKG_CONFIG  path to pkg-config utility
1609   PKG_CONFIG_PATH
1610               directories to add to pkg-config's search path
1611   PKG_CONFIG_LIBDIR
1612               path overriding pkg-config's built-in search path
1613   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1614   udev_LIBS   linker flags for udev, overriding pkg-config
1615   systemd_CFLAGS
1616               C compiler flags for systemd, overriding pkg-config
1617   systemd_LIBS
1618               linker flags for systemd, overriding pkg-config
1619
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1622
1623 Report bugs to the package provider.
1624 _ACEOF
1625 ac_status=$?
1626 fi
1627
1628 if test "$ac_init_help" = "recursive"; then
1629   # If there are subdirs, report their specific --help.
1630   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631     test -d "$ac_dir" ||
1632       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633       continue
1634     ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640   # A ".." for each directory in $ac_dir_suffix.
1641   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642   case $ac_top_builddir_sub in
1643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645   esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653   .)  # We are building in place.
1654     ac_srcdir=.
1655     ac_top_srcdir=$ac_top_builddir_sub
1656     ac_abs_top_srcdir=$ac_pwd ;;
1657   [\\/]* | ?:[\\/]* )  # Absolute name.
1658     ac_srcdir=$srcdir$ac_dir_suffix;
1659     ac_top_srcdir=$srcdir
1660     ac_abs_top_srcdir=$srcdir ;;
1661   *) # Relative name.
1662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663     ac_top_srcdir=$ac_top_build_prefix$srcdir
1664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668     cd "$ac_dir" || { ac_status=$?; continue; }
1669     # Check for guested configure.
1670     if test -f "$ac_srcdir/configure.gnu"; then
1671       echo &&
1672       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673     elif test -f "$ac_srcdir/configure"; then
1674       echo &&
1675       $SHELL "$ac_srcdir/configure" --help=recursive
1676     else
1677       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678     fi || ac_status=$?
1679     cd "$ac_pwd" || { ac_status=$?; break; }
1680   done
1681 fi
1682
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1685   cat <<\_ACEOF
1686 configure
1687 generated by GNU Autoconf 2.69
1688
1689 Copyright (C) 2012 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1692 _ACEOF
1693   exit
1694 fi
1695
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1699
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   rm -f conftest.$ac_objext
1707   if { { ac_try="$ac_compile"
1708 case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_compile") 2>conftest.err
1715   ac_status=$?
1716   if test -s conftest.err; then
1717     grep -v '^ *+' conftest.err >conftest.er1
1718     cat conftest.er1 >&5
1719     mv -f conftest.er1 conftest.err
1720   fi
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; } && {
1723          test -z "$ac_c_werror_flag" ||
1724          test ! -s conftest.err
1725        } && test -s conftest.$ac_objext; then :
1726   ac_retval=0
1727 else
1728   $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731         ac_retval=1
1732 fi
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734   as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_compile
1737
1738 # ac_fn_c_try_link LINENO
1739 # -----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_link ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   rm -f conftest.$ac_objext conftest$ac_exeext
1745   if { { ac_try="$ac_link"
1746 case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_link") 2>conftest.err
1753   ac_status=$?
1754   if test -s conftest.err; then
1755     grep -v '^ *+' conftest.err >conftest.er1
1756     cat conftest.er1 >&5
1757     mv -f conftest.er1 conftest.err
1758   fi
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } && {
1761          test -z "$ac_c_werror_flag" ||
1762          test ! -s conftest.err
1763        } && test -s conftest$ac_exeext && {
1764          test "$cross_compiling" = yes ||
1765          test -x conftest$ac_exeext
1766        }; then :
1767   ac_retval=0
1768 else
1769   $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772         ac_retval=1
1773 fi
1774   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776   # interfere with the next link command; also delete a directory that is
1777   # left behind by Apple's compiler.  We do this before executing the actions.
1778   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780   as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_link
1783
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_cpp ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 case "(($ac_try" in
1792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793   *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798   ac_status=$?
1799   if test -s conftest.err; then
1800     grep -v '^ *+' conftest.err >conftest.er1
1801     cat conftest.er1 >&5
1802     mv -f conftest.er1 conftest.err
1803   fi
1804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805   test $ac_status = 0; } > conftest.i && {
1806          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807          test ! -s conftest.err
1808        }; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814     ac_retval=1
1815 fi
1816   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817   as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_cpp
1820
1821 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824 # the include files in INCLUDES and setting the cache variable VAR
1825 # accordingly.
1826 ac_fn_c_check_header_mongrel ()
1827 {
1828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829   if eval \${$3+:} false; then :
1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833   $as_echo_n "(cached) " >&6
1834 fi
1835 eval ac_res=\$$3
1836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 else
1839   # Is the header compilable?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841 $as_echo_n "checking $2 usability... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h.  */
1844 $4
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848   ac_header_compiler=yes
1849 else
1850   ac_header_compiler=no
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854 $as_echo "$ac_header_compiler" >&6; }
1855
1856 # Is the header present?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858 $as_echo_n "checking $2 presence... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h.  */
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_cpp "$LINENO"; then :
1864   ac_header_preproc=yes
1865 else
1866   ac_header_preproc=no
1867 fi
1868 rm -f conftest.err conftest.i conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870 $as_echo "$ac_header_preproc" >&6; }
1871
1872 # So?  What about this header?
1873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874   yes:no: )
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879     ;;
1880   no:yes:* )
1881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1884 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1885     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1888 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1889     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1891     ;;
1892 esac
1893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896   $as_echo_n "(cached) " >&6
1897 else
1898   eval "$3=\$ac_header_compiler"
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 fi
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906 } # ac_fn_c_check_header_mongrel
1907
1908 # ac_fn_c_try_run LINENO
1909 # ----------------------
1910 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1911 # that executables *can* be run.
1912 ac_fn_c_try_run ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   if { { ac_try="$ac_link"
1916 case "(($ac_try" in
1917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918   *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922   (eval "$ac_link") 2>&5
1923   ac_status=$?
1924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1926   { { case "(($ac_try" in
1927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928   *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932   (eval "$ac_try") 2>&5
1933   ac_status=$?
1934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935   test $ac_status = 0; }; }; then :
1936   ac_retval=0
1937 else
1938   $as_echo "$as_me: program exited with status $ac_status" >&5
1939        $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942        ac_retval=$ac_status
1943 fi
1944   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946   as_fn_set_status $ac_retval
1947
1948 } # ac_fn_c_try_run
1949
1950 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1951 # -------------------------------------------------------
1952 # Tests whether HEADER exists and can be compiled using the include files in
1953 # INCLUDES, setting the cache variable VAR accordingly.
1954 ac_fn_c_check_header_compile ()
1955 {
1956   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \${$3+:} false; then :
1960   $as_echo_n "(cached) " >&6
1961 else
1962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h.  */
1964 $4
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968   eval "$3=yes"
1969 else
1970   eval "$3=no"
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 fi
1974 eval ac_res=\$$3
1975                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979 } # ac_fn_c_check_header_compile
1980
1981 # ac_fn_c_check_func LINENO FUNC VAR
1982 # ----------------------------------
1983 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1984 ac_fn_c_check_func ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990   $as_echo_n "(cached) " >&6
1991 else
1992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h.  */
1994 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1996 #define $2 innocuous_$2
1997
1998 /* System header to define __stub macros and hopefully few prototypes,
1999     which can conflict with char $2 (); below.
2000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2001     <limits.h> exists even on freestanding compilers.  */
2002
2003 #ifdef __STDC__
2004 # include <limits.h>
2005 #else
2006 # include <assert.h>
2007 #endif
2008
2009 #undef $2
2010
2011 /* Override any GCC internal prototype to avoid an error.
2012    Use char because int might match the return type of a GCC
2013    builtin and then its argument prototype would still apply.  */
2014 #ifdef __cplusplus
2015 extern "C"
2016 #endif
2017 char $2 ();
2018 /* The GNU C library defines this for functions which it implements
2019     to always fail with ENOSYS.  Some functions are actually named
2020     something starting with __ and the normal name is an alias.  */
2021 #if defined __stub_$2 || defined __stub___$2
2022 choke me
2023 #endif
2024
2025 int
2026 main ()
2027 {
2028 return $2 ();
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_link "$LINENO"; then :
2034   eval "$3=yes"
2035 else
2036   eval "$3=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext \
2039     conftest$ac_exeext conftest.$ac_ext
2040 fi
2041 eval ac_res=\$$3
2042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046 } # ac_fn_c_check_func
2047
2048 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2049 # ----------------------------------------------------
2050 # Tries to find if the field MEMBER exists in type AGGR, after including
2051 # INCLUDES, setting cache variable VAR accordingly.
2052 ac_fn_c_check_member ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2056 $as_echo_n "checking for $2.$3... " >&6; }
2057 if eval \${$4+:} false; then :
2058   $as_echo_n "(cached) " >&6
2059 else
2060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 $5
2063 int
2064 main ()
2065 {
2066 static $2 ac_aggr;
2067 if (ac_aggr.$3)
2068 return 0;
2069   ;
2070   return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074   eval "$4=yes"
2075 else
2076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h.  */
2078 $5
2079 int
2080 main ()
2081 {
2082 static $2 ac_aggr;
2083 if (sizeof ac_aggr.$3)
2084 return 0;
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090   eval "$4=yes"
2091 else
2092   eval "$4=no"
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 eval ac_res=\$$4
2099                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102
2103 } # ac_fn_c_check_member
2104
2105 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2106 # -------------------------------------------
2107 # Tests whether TYPE exists after having included INCLUDES, setting cache
2108 # variable VAR accordingly.
2109 ac_fn_c_check_type ()
2110 {
2111   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115   $as_echo_n "(cached) " >&6
2116 else
2117   eval "$3=no"
2118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h.  */
2120 $4
2121 int
2122 main ()
2123 {
2124 if (sizeof ($2))
2125          return 0;
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h.  */
2133 $4
2134 int
2135 main ()
2136 {
2137 if (sizeof (($2)))
2138             return 0;
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144
2145 else
2146   eval "$3=yes"
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 fi
2152 eval ac_res=\$$3
2153                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156
2157 } # ac_fn_c_check_type
2158
2159 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2160 # ---------------------------------------------
2161 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2162 # accordingly.
2163 ac_fn_c_check_decl ()
2164 {
2165   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166   as_decl_name=`echo $2|sed 's/ *(.*//'`
2167   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2169 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2170 if eval \${$3+:} false; then :
2171   $as_echo_n "(cached) " >&6
2172 else
2173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 int
2177 main ()
2178 {
2179 #ifndef $as_decl_name
2180 #ifdef __cplusplus
2181   (void) $as_decl_use;
2182 #else
2183   (void) $as_decl_name;
2184 #endif
2185 #endif
2186
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192   eval "$3=yes"
2193 else
2194   eval "$3=no"
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 fi
2198 eval ac_res=\$$3
2199                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202
2203 } # ac_fn_c_check_decl
2204
2205 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2206 # --------------------------------------------
2207 # Tries to find the compile-time value of EXPR in a program that includes
2208 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2209 # computed
2210 ac_fn_c_compute_int ()
2211 {
2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213   if test "$cross_compiling" = yes; then
2214     # Depending upon the size, compute the lo and hi bounds.
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 $4
2218 int
2219 main ()
2220 {
2221 static int test_array [1 - 2 * !(($2) >= 0)];
2222 test_array [0] = 0;
2223 return test_array [0];
2224
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230   ac_lo=0 ac_mid=0
2231   while :; do
2232     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $4
2235 int
2236 main ()
2237 {
2238 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2239 test_array [0] = 0;
2240 return test_array [0];
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247   ac_hi=$ac_mid; break
2248 else
2249   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2250                         if test $ac_lo -le $ac_mid; then
2251                           ac_lo= ac_hi=
2252                           break
2253                         fi
2254                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257   done
2258 else
2259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h.  */
2261 $4
2262 int
2263 main ()
2264 {
2265 static int test_array [1 - 2 * !(($2) < 0)];
2266 test_array [0] = 0;
2267 return test_array [0];
2268
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 if ac_fn_c_try_compile "$LINENO"; then :
2274   ac_hi=-1 ac_mid=-1
2275   while :; do
2276     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h.  */
2278 $4
2279 int
2280 main ()
2281 {
2282 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2283 test_array [0] = 0;
2284 return test_array [0];
2285
2286   ;
2287   return 0;
2288 }
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291   ac_lo=$ac_mid; break
2292 else
2293   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2294                         if test $ac_mid -le $ac_hi; then
2295                           ac_lo= ac_hi=
2296                           break
2297                         fi
2298                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301   done
2302 else
2303   ac_lo= ac_hi=
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 # Binary search between lo and hi bounds.
2309 while test "x$ac_lo" != "x$ac_hi"; do
2310   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h.  */
2313 $4
2314 int
2315 main ()
2316 {
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318 test_array [0] = 0;
2319 return test_array [0];
2320
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_compile "$LINENO"; then :
2326   ac_hi=$ac_mid
2327 else
2328   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2329 fi
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 done
2332 case $ac_lo in #((
2333 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2334 '') ac_retval=1 ;;
2335 esac
2336   else
2337     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h.  */
2339 $4
2340 static long int longval () { return $2; }
2341 static unsigned long int ulongval () { return $2; }
2342 #include <stdio.h>
2343 #include <stdlib.h>
2344 int
2345 main ()
2346 {
2347
2348   FILE *f = fopen ("conftest.val", "w");
2349   if (! f)
2350     return 1;
2351   if (($2) < 0)
2352     {
2353       long int i = longval ();
2354       if (i != ($2))
2355         return 1;
2356       fprintf (f, "%ld", i);
2357     }
2358   else
2359     {
2360       unsigned long int i = ulongval ();
2361       if (i != ($2))
2362         return 1;
2363       fprintf (f, "%lu", i);
2364     }
2365   /* Do not output a trailing newline, as this causes \r\n confusion
2366      on some platforms.  */
2367   return ferror (f) || fclose (f) != 0;
2368
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_c_try_run "$LINENO"; then :
2374   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2375 else
2376   ac_retval=1
2377 fi
2378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2379   conftest.$ac_objext conftest.beam conftest.$ac_ext
2380 rm -f conftest.val
2381
2382   fi
2383   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384   as_fn_set_status $ac_retval
2385
2386 } # ac_fn_c_compute_int
2387 cat >config.log <<_ACEOF
2388 This file contains any messages produced by compilers while
2389 running configure, to aid debugging if configure makes a mistake.
2390
2391 It was created by $as_me, which was
2392 generated by GNU Autoconf 2.69.  Invocation command line was
2393
2394   $ $0 $@
2395
2396 _ACEOF
2397 exec 5>>config.log
2398 {
2399 cat <<_ASUNAME
2400 ## --------- ##
2401 ## Platform. ##
2402 ## --------- ##
2403
2404 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2405 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2406 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2407 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2408 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2409
2410 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2411 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2412
2413 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2414 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2415 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2416 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2417 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2418 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2419 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2420
2421 _ASUNAME
2422
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428     $as_echo "PATH: $as_dir"
2429   done
2430 IFS=$as_save_IFS
2431
2432 } >&5
2433
2434 cat >&5 <<_ACEOF
2435
2436
2437 ## ----------- ##
2438 ## Core tests. ##
2439 ## ----------- ##
2440
2441 _ACEOF
2442
2443
2444 # Keep a trace of the command line.
2445 # Strip out --no-create and --no-recursion so they do not pile up.
2446 # Strip out --silent because we don't want to record it for future runs.
2447 # Also quote any args containing shell meta-characters.
2448 # Make two passes to allow for proper duplicate-argument suppression.
2449 ac_configure_args=
2450 ac_configure_args0=
2451 ac_configure_args1=
2452 ac_must_keep_next=false
2453 for ac_pass in 1 2
2454 do
2455   for ac_arg
2456   do
2457     case $ac_arg in
2458     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2459     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2460     | -silent | --silent | --silen | --sile | --sil)
2461       continue ;;
2462     *\'*)
2463       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2464     esac
2465     case $ac_pass in
2466     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2467     2)
2468       as_fn_append ac_configure_args1 " '$ac_arg'"
2469       if test $ac_must_keep_next = true; then
2470         ac_must_keep_next=false # Got value, back to normal.
2471       else
2472         case $ac_arg in
2473           *=* | --config-cache | -C | -disable-* | --disable-* \
2474           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2475           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2476           | -with-* | --with-* | -without-* | --without-* | --x)
2477             case "$ac_configure_args0 " in
2478               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2479             esac
2480             ;;
2481           -* ) ac_must_keep_next=true ;;
2482         esac
2483       fi
2484       as_fn_append ac_configure_args " '$ac_arg'"
2485       ;;
2486     esac
2487   done
2488 done
2489 { ac_configure_args0=; unset ac_configure_args0;}
2490 { ac_configure_args1=; unset ac_configure_args1;}
2491
2492 # When interrupted or exit'd, cleanup temporary files, and complete
2493 # config.log.  We remove comments because anyway the quotes in there
2494 # would cause problems or look ugly.
2495 # WARNING: Use '\'' to represent an apostrophe within the trap.
2496 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2497 trap 'exit_status=$?
2498   # Save into config.log some information that might help in debugging.
2499   {
2500     echo
2501
2502     $as_echo "## ---------------- ##
2503 ## Cache variables. ##
2504 ## ---------------- ##"
2505     echo
2506     # The following way of writing the cache mishandles newlines in values,
2507 (
2508   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2509     eval ac_val=\$$ac_var
2510     case $ac_val in #(
2511     *${as_nl}*)
2512       case $ac_var in #(
2513       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2515       esac
2516       case $ac_var in #(
2517       _ | IFS | as_nl) ;; #(
2518       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2519       *) { eval $ac_var=; unset $ac_var;} ;;
2520       esac ;;
2521     esac
2522   done
2523   (set) 2>&1 |
2524     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2525     *${as_nl}ac_space=\ *)
2526       sed -n \
2527         "s/'\''/'\''\\\\'\'''\''/g;
2528           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2529       ;; #(
2530     *)
2531       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2532       ;;
2533     esac |
2534     sort
2535 )
2536     echo
2537
2538     $as_echo "## ----------------- ##
2539 ## Output variables. ##
2540 ## ----------------- ##"
2541     echo
2542     for ac_var in $ac_subst_vars
2543     do
2544       eval ac_val=\$$ac_var
2545       case $ac_val in
2546       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547       esac
2548       $as_echo "$ac_var='\''$ac_val'\''"
2549     done | sort
2550     echo
2551
2552     if test -n "$ac_subst_files"; then
2553       $as_echo "## ------------------- ##
2554 ## File substitutions. ##
2555 ## ------------------- ##"
2556       echo
2557       for ac_var in $ac_subst_files
2558       do
2559         eval ac_val=\$$ac_var
2560         case $ac_val in
2561         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2562         esac
2563         $as_echo "$ac_var='\''$ac_val'\''"
2564       done | sort
2565       echo
2566     fi
2567
2568     if test -s confdefs.h; then
2569       $as_echo "## ----------- ##
2570 ## confdefs.h. ##
2571 ## ----------- ##"
2572       echo
2573       cat confdefs.h
2574       echo
2575     fi
2576     test "$ac_signal" != 0 &&
2577       $as_echo "$as_me: caught signal $ac_signal"
2578     $as_echo "$as_me: exit $exit_status"
2579   } >&5
2580   rm -f core *.core core.conftest.* &&
2581     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2582     exit $exit_status
2583 ' 0
2584 for ac_signal in 1 2 13 15; do
2585   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2586 done
2587 ac_signal=0
2588
2589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2590 rm -f -r conftest* confdefs.h
2591
2592 $as_echo "/* confdefs.h */" > confdefs.h
2593
2594 # Predefined preprocessor variables.
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_NAME "$PACKAGE_NAME"
2598 _ACEOF
2599
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2602 _ACEOF
2603
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2606 _ACEOF
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_STRING "$PACKAGE_STRING"
2610 _ACEOF
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2614 _ACEOF
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_URL "$PACKAGE_URL"
2618 _ACEOF
2619
2620
2621 # Let the site file select an alternate cache file if it wants to.
2622 # Prefer an explicitly selected file to automatically selected ones.
2623 ac_site_file1=NONE
2624 ac_site_file2=NONE
2625 if test -n "$CONFIG_SITE"; then
2626   # We do not want a PATH search for config.site.
2627   case $CONFIG_SITE in #((
2628     -*)  ac_site_file1=./$CONFIG_SITE;;
2629     */*) ac_site_file1=$CONFIG_SITE;;
2630     *)   ac_site_file1=./$CONFIG_SITE;;
2631   esac
2632 elif test "x$prefix" != xNONE; then
2633   ac_site_file1=$prefix/share/config.site
2634   ac_site_file2=$prefix/etc/config.site
2635 else
2636   ac_site_file1=$ac_default_prefix/share/config.site
2637   ac_site_file2=$ac_default_prefix/etc/config.site
2638 fi
2639 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2640 do
2641   test "x$ac_site_file" = xNONE && continue
2642   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2643     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2644 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2645     sed 's/^/| /' "$ac_site_file" >&5
2646     . "$ac_site_file" \
2647       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649 as_fn_error $? "failed to load site script $ac_site_file
2650 See \`config.log' for more details" "$LINENO" 5; }
2651   fi
2652 done
2653
2654 if test -r "$cache_file"; then
2655   # Some versions of bash will fail to source /dev/null (special files
2656   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2657   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2658     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2659 $as_echo "$as_me: loading cache $cache_file" >&6;}
2660     case $cache_file in
2661       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2662       *)                      . "./$cache_file";;
2663     esac
2664   fi
2665 else
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2667 $as_echo "$as_me: creating cache $cache_file" >&6;}
2668   >$cache_file
2669 fi
2670
2671 gt_needs="$gt_needs "
2672 # Check that the precious variables saved in the cache have kept the same
2673 # value.
2674 ac_cache_corrupted=false
2675 for ac_var in $ac_precious_vars; do
2676   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2677   eval ac_new_set=\$ac_env_${ac_var}_set
2678   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2679   eval ac_new_val=\$ac_env_${ac_var}_value
2680   case $ac_old_set,$ac_new_set in
2681     set,)
2682       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2683 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2684       ac_cache_corrupted=: ;;
2685     ,set)
2686       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2687 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2688       ac_cache_corrupted=: ;;
2689     ,);;
2690     *)
2691       if test "x$ac_old_val" != "x$ac_new_val"; then
2692         # differences in whitespace do not lead to failure.
2693         ac_old_val_w=`echo x $ac_old_val`
2694         ac_new_val_w=`echo x $ac_new_val`
2695         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2696           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2697 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2698           ac_cache_corrupted=:
2699         else
2700           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2701 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2702           eval $ac_var=\$ac_old_val
2703         fi
2704         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2705 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2706         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2707 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2708       fi;;
2709   esac
2710   # Pass precious variables to config.status.
2711   if test "$ac_new_set" = set; then
2712     case $ac_new_val in
2713     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2714     *) ac_arg=$ac_var=$ac_new_val ;;
2715     esac
2716     case " $ac_configure_args " in
2717       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2718       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2719     esac
2720   fi
2721 done
2722 if $ac_cache_corrupted; then
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2726 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2727   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2728 fi
2729 ## -------------------- ##
2730 ## Main body of script. ##
2731 ## -------------------- ##
2732
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
2739
2740
2741 ac_aux_dir=
2742 for ac_dir in config "$srcdir"/config; do
2743   if test -f "$ac_dir/install-sh"; then
2744     ac_aux_dir=$ac_dir
2745     ac_install_sh="$ac_aux_dir/install-sh -c"
2746     break
2747   elif test -f "$ac_dir/install.sh"; then
2748     ac_aux_dir=$ac_dir
2749     ac_install_sh="$ac_aux_dir/install.sh -c"
2750     break
2751   elif test -f "$ac_dir/shtool"; then
2752     ac_aux_dir=$ac_dir
2753     ac_install_sh="$ac_aux_dir/shtool install -c"
2754     break
2755   fi
2756 done
2757 if test -z "$ac_aux_dir"; then
2758   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2759 fi
2760
2761 # These three variables are undocumented and unsupported,
2762 # and are intended to be withdrawn in a future Autoconf release.
2763 # They can cause serious problems if a builder's source tree is in a directory
2764 # whose full name contains unusual characters.
2765 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2766 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2767 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2768
2769
2770 ac_config_headers="$ac_config_headers lib/config.h"
2771
2772
2773 MCONFIG=./MCONFIG
2774
2775 BINARY_TYPE=bin
2776 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2777         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2778 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2779         | tr \" " " | awk '{print $1}'`
2780 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2781 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2782 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2783
2784 if expr $YEAR ">" 1900 > /dev/null ; then
2785         E2FSPROGS_YEAR=$YEAR
2786 elif expr $YEAR ">" 90 >/dev/null ; then
2787         E2FSPROGS_YEAR=19$YEAR
2788 else
2789         E2FSPROGS_YEAR=20$YEAR
2790 fi
2791
2792 case $MONTH in
2793 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2794 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2795 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2796 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2797 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2798 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2799 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2800 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2801 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2802 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2803 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2804 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2805 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2806 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2807 esac
2808
2809 base_ver=`echo $E2FSPROGS_VERSION | \
2810                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2811
2812 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2813
2814 case $E2FSPROGS_VERSION in
2815 *-WIP|pre-*)
2816         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2817         ;;
2818 *)
2819         E2FSPROGS_PKGVER="$base_ver"
2820         ;;
2821 esac
2822
2823 unset DATE MONTH YEAR base_ver pre_vers date_spec
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2825 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2827 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2828
2829
2830
2831
2832
2833
2834 WITH_DIET_LIBC=
2835
2836 # Check whether --with-diet-libc was given.
2837 if test "${with_diet_libc+set}" = set; then :
2838   withval=$with_diet_libc; CC="diet cc -nostdinc"
2839 WITH_DIET_LIBC=yes
2840 if test -z "$LIBS"
2841 then
2842         LIBS="-lcompat"
2843 else
2844         LIBS="$LIBS -lcompat"
2845 fi
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2847 $as_echo "CC=$CC" >&6; }
2848 fi
2849 # Make sure we can run config.sub.
2850 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2851   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2852
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2854 $as_echo_n "checking build system type... " >&6; }
2855 if ${ac_cv_build+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   ac_build_alias=$build_alias
2859 test "x$ac_build_alias" = x &&
2860   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2861 test "x$ac_build_alias" = x &&
2862   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2863 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2864   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2865
2866 fi
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2868 $as_echo "$ac_cv_build" >&6; }
2869 case $ac_cv_build in
2870 *-*-*) ;;
2871 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2872 esac
2873 build=$ac_cv_build
2874 ac_save_IFS=$IFS; IFS='-'
2875 set x $ac_cv_build
2876 shift
2877 build_cpu=$1
2878 build_vendor=$2
2879 shift; shift
2880 # Remember, the first character of IFS is used to create $*,
2881 # except with old shells:
2882 build_os=$*
2883 IFS=$ac_save_IFS
2884 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2885
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2888 $as_echo_n "checking host system type... " >&6; }
2889 if ${ac_cv_host+:} false; then :
2890   $as_echo_n "(cached) " >&6
2891 else
2892   if test "x$host_alias" = x; then
2893   ac_cv_host=$ac_cv_build
2894 else
2895   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2896     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2897 fi
2898
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2901 $as_echo "$ac_cv_host" >&6; }
2902 case $ac_cv_host in
2903 *-*-*) ;;
2904 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2905 esac
2906 host=$ac_cv_host
2907 ac_save_IFS=$IFS; IFS='-'
2908 set x $ac_cv_host
2909 shift
2910 host_cpu=$1
2911 host_vendor=$2
2912 shift; shift
2913 # Remember, the first character of IFS is used to create $*,
2914 # except with old shells:
2915 host_os=$*
2916 IFS=$ac_save_IFS
2917 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2918
2919
2920 DLOPEN_LIB=''
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932   $as_echo_n "(cached) " >&6
2933 else
2934   if test -n "$CC"; then
2935   ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940   IFS=$as_save_IFS
2941   test -z "$as_dir" && as_dir=.
2942     for ac_exec_ext in '' $ac_executable_extensions; do
2943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946     break 2
2947   fi
2948 done
2949   done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$ac_cv_prog_CC"; then
2966   ac_ct_CC=$CC
2967   # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$ac_ct_CC"; then
2975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982     for ac_exec_ext in '' $ac_executable_extensions; do
2983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984     ac_cv_prog_ac_ct_CC="gcc"
2985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989   done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003   if test "x$ac_ct_CC" = x; then
3004     CC=""
3005   else
3006     case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012     CC=$ac_ct_CC
3013   fi
3014 else
3015   CC="$ac_cv_prog_CC"
3016 fi
3017
3018 if test -z "$CC"; then
3019           if test -n "$ac_tool_prefix"; then
3020     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025   $as_echo_n "(cached) " >&6
3026 else
3027   if test -n "$CC"; then
3028   ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033   IFS=$as_save_IFS
3034   test -z "$as_dir" && as_dir=.
3035     for ac_exec_ext in '' $ac_executable_extensions; do
3036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037     ac_cv_prog_CC="${ac_tool_prefix}cc"
3038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039     break 2
3040   fi
3041 done
3042   done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057   fi
3058 fi
3059 if test -z "$CC"; then
3060   # Extract the first word of "cc", so it can be a program name with args.
3061 set dummy cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065   $as_echo_n "(cached) " >&6
3066 else
3067   if test -n "$CC"; then
3068   ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070   ac_prog_rejected=no
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079        ac_prog_rejected=yes
3080        continue
3081      fi
3082     ac_cv_prog_CC="cc"
3083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087   done
3088 IFS=$as_save_IFS
3089
3090 if test $ac_prog_rejected = yes; then
3091   # We found a bogon in the path, so make sure we never use it.
3092   set dummy $ac_cv_prog_CC
3093   shift
3094   if test $# != 0; then
3095     # We chose a different compiler from the bogus one.
3096     # However, it has the same basename, so the bogon will be chosen
3097     # first if we set CC to just the basename; use the full file name.
3098     shift
3099     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100   fi
3101 fi
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 if test -z "$CC"; then
3116   if test -n "$ac_tool_prefix"; then
3117   for ac_prog in cl.exe
3118   do
3119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124   $as_echo_n "(cached) " >&6
3125 else
3126   if test -n "$CC"; then
3127   ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134     for ac_exec_ext in '' $ac_executable_extensions; do
3135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138     break 2
3139   fi
3140 done
3141   done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156     test -n "$CC" && break
3157   done
3158 fi
3159 if test -z "$CC"; then
3160   ac_ct_CC=$CC
3161   for ac_prog in cl.exe
3162 do
3163   # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   if test -n "$ac_ct_CC"; then
3171   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178     for ac_exec_ext in '' $ac_executable_extensions; do
3179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180     ac_cv_prog_ac_ct_CC="$ac_prog"
3181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185   done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200   test -n "$ac_ct_CC" && break
3201 done
3202
3203   if test "x$ac_ct_CC" = x; then
3204     CC=""
3205   else
3206     case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212     CC=$ac_ct_CC
3213   fi
3214 fi
3215
3216 fi
3217
3218
3219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details" "$LINENO" 5; }
3223
3224 # Provide some information about the compiler.
3225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3226 set X $ac_compile
3227 ac_compiler=$2
3228 for ac_option in --version -v -V -qversion; do
3229   { { ac_try="$ac_compiler $ac_option >&5"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3237   ac_status=$?
3238   if test -s conftest.err; then
3239     sed '10a\
3240 ... rest of stderr output deleted ...
3241          10q' conftest.err >conftest.er1
3242     cat conftest.er1 >&5
3243   fi
3244   rm -f conftest.er1 conftest.err
3245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246   test $ac_status = 0; }
3247 done
3248
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h.  */
3251
3252 int
3253 main ()
3254 {
3255
3256   ;
3257   return 0;
3258 }
3259 _ACEOF
3260 ac_clean_files_save=$ac_clean_files
3261 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3262 # Try to create an executable without -o first, disregard a.out.
3263 # It will help us diagnose broken compilers, and finding out an intuition
3264 # of exeext.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3268
3269 # The possible output files:
3270 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3271
3272 ac_rmfiles=
3273 for ac_file in $ac_files
3274 do
3275   case $ac_file in
3276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278   esac
3279 done
3280 rm -f $ac_rmfiles
3281
3282 if { { ac_try="$ac_link_default"
3283 case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289   (eval "$ac_link_default") 2>&5
3290   ac_status=$?
3291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292   test $ac_status = 0; }; then :
3293   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3296 # so that the user can short-circuit this test for compilers unknown to
3297 # Autoconf.
3298 for ac_file in $ac_files ''
3299 do
3300   test -f "$ac_file" || continue
3301   case $ac_file in
3302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3303         ;;
3304     [ab].out )
3305         # We found the default executable, but exeext='' is most
3306         # certainly right.
3307         break;;
3308     *.* )
3309         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3310         then :; else
3311            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312         fi
3313         # We set ac_cv_exeext here because the later test for it is not
3314         # safe: cross compilers may not add the suffix if given an `-o'
3315         # argument, so we may need to know it at that point already.
3316         # Even if this section looks crufty: it has the advantage of
3317         # actually working.
3318         break;;
3319     * )
3320         break;;
3321   esac
3322 done
3323 test "$ac_cv_exeext" = no && ac_cv_exeext=
3324
3325 else
3326   ac_file=''
3327 fi
3328 if test -z "$ac_file"; then :
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error 77 "C compiler cannot create executables
3337 See \`config.log' for more details" "$LINENO" 5; }
3338 else
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340 $as_echo "yes" >&6; }
3341 fi
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3343 $as_echo_n "checking for C compiler default output file name... " >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345 $as_echo "$ac_file" >&6; }
3346 ac_exeext=$ac_cv_exeext
3347
3348 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349 ac_clean_files=$ac_clean_files_save
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3351 $as_echo_n "checking for suffix of executables... " >&6; }
3352 if { { ac_try="$ac_link"
3353 case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359   (eval "$ac_link") 2>&5
3360   ac_status=$?
3361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362   test $ac_status = 0; }; then :
3363   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3365 # work properly (i.e., refer to `conftest.exe'), while it won't with
3366 # `rm'.
3367 for ac_file in conftest.exe conftest conftest.*; do
3368   test -f "$ac_file" || continue
3369   case $ac_file in
3370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372           break;;
3373     * ) break;;
3374   esac
3375 done
3376 else
3377   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details" "$LINENO" 5; }
3381 fi
3382 rm -f conftest conftest$ac_cv_exeext
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3384 $as_echo "$ac_cv_exeext" >&6; }
3385
3386 rm -f conftest.$ac_ext
3387 EXEEXT=$ac_cv_exeext
3388 ac_exeext=$EXEEXT
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h.  */
3391 #include <stdio.h>
3392 int
3393 main ()
3394 {
3395 FILE *f = fopen ("conftest.out", "w");
3396  return ferror (f) || fclose (f) != 0;
3397
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 ac_clean_files="$ac_clean_files conftest.out"
3403 # Check that the compiler produces executables we can run.  If not, either
3404 # the compiler is broken, or we cross compile.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406 $as_echo_n "checking whether we are cross compiling... " >&6; }
3407 if test "$cross_compiling" != yes; then
3408   { { ac_try="$ac_link"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415   (eval "$ac_link") 2>&5
3416   ac_status=$?
3417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418   test $ac_status = 0; }
3419   if { ac_try='./conftest$ac_cv_exeext'
3420   { { case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426   (eval "$ac_try") 2>&5
3427   ac_status=$?
3428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429   test $ac_status = 0; }; }; then
3430     cross_compiling=no
3431   else
3432     if test "$cross_compiling" = maybe; then
3433         cross_compiling=yes
3434     else
3435         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot run C compiled programs.
3438 If you meant to cross compile, use \`--host'.
3439 See \`config.log' for more details" "$LINENO" 5; }
3440     fi
3441   fi
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3444 $as_echo "$cross_compiling" >&6; }
3445
3446 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3447 ac_clean_files=$ac_clean_files_save
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3449 $as_echo_n "checking for suffix of object files... " >&6; }
3450 if ${ac_cv_objext+:} false; then :
3451   $as_echo_n "(cached) " >&6
3452 else
3453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h.  */
3455
3456 int
3457 main ()
3458 {
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.o conftest.obj
3465 if { { ac_try="$ac_compile"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472   (eval "$ac_compile") 2>&5
3473   ac_status=$?
3474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475   test $ac_status = 0; }; then :
3476   for ac_file in conftest.o conftest.obj conftest.*; do
3477   test -f "$ac_file" || continue;
3478   case $ac_file in
3479     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481        break;;
3482   esac
3483 done
3484 else
3485   $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot compute suffix of object files: cannot compile
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 fi
3493 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3496 $as_echo "$ac_cv_objext" >&6; }
3497 OBJEXT=$ac_cv_objext
3498 ac_objext=$OBJEXT
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3500 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3501 if ${ac_cv_c_compiler_gnu+:} false; then :
3502   $as_echo_n "(cached) " >&6
3503 else
3504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506
3507 int
3508 main ()
3509 {
3510 #ifndef __GNUC__
3511        choke me
3512 #endif
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519   ac_compiler_gnu=yes
3520 else
3521   ac_compiler_gnu=no
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3528 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3529 if test $ac_compiler_gnu = yes; then
3530   GCC=yes
3531 else
3532   GCC=
3533 fi
3534 ac_test_CFLAGS=${CFLAGS+set}
3535 ac_save_CFLAGS=$CFLAGS
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3537 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3538 if ${ac_cv_prog_cc_g+:} false; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   ac_save_c_werror_flag=$ac_c_werror_flag
3542    ac_c_werror_flag=yes
3543    ac_cv_prog_cc_g=no
3544    CFLAGS="-g"
3545    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h.  */
3547
3548 int
3549 main ()
3550 {
3551
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557   ac_cv_prog_cc_g=yes
3558 else
3559   CFLAGS=""
3560       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h.  */
3562
3563 int
3564 main ()
3565 {
3566
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572
3573 else
3574   ac_c_werror_flag=$ac_save_c_werror_flag
3575          CFLAGS="-g"
3576          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578
3579 int
3580 main ()
3581 {
3582
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588   ac_cv_prog_cc_g=yes
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595    ac_c_werror_flag=$ac_save_c_werror_flag
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3598 $as_echo "$ac_cv_prog_cc_g" >&6; }
3599 if test "$ac_test_CFLAGS" = set; then
3600   CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602   if test "$GCC" = yes; then
3603     CFLAGS="-g -O2"
3604   else
3605     CFLAGS="-g"
3606   fi
3607 else
3608   if test "$GCC" = yes; then
3609     CFLAGS="-O2"
3610   else
3611     CFLAGS=
3612   fi
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3615 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3616 if ${ac_cv_prog_cc_c89+:} false; then :
3617   $as_echo_n "(cached) " >&6
3618 else
3619   ac_cv_prog_cc_c89=no
3620 ac_save_CC=$CC
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h.  */
3623 #include <stdarg.h>
3624 #include <stdio.h>
3625 struct stat;
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3630      char **p;
3631      int i;
3632 {
3633   return p[i];
3634 }
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3636 {
3637   char *s;
3638   va_list v;
3639   va_start (v,p);
3640   s = g (p, va_arg (v,int));
3641   va_end (v);
3642   return s;
3643 }
3644
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3646    function prototypes and stuff, but not '\xHH' hex character constants.
3647    These don't provoke an error unfortunately, instead are silently treated
3648    as 'x'.  The following induces an error, until -std is added to get
3649    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3650    array size at least.  It's necessary to write '\x00'==0 to get something
3651    that's true only with -std.  */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655    inside strings and character constants.  */
3656 #define FOO(x) 'x'
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3665 int
3666 main ()
3667 {
3668 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675 do
3676   CC="$ac_save_CC $ac_arg"
3677   if ac_fn_c_try_compile "$LINENO"; then :
3678   ac_cv_prog_cc_c89=$ac_arg
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext
3681   test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689   x)
3690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3692   xno)
3693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3695   *)
3696     CC="$CC $ac_cv_prog_cc_c89"
3697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701
3702 fi
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3713 if ${ac_cv_lib_dl_dlopen+:} false; then :
3714   $as_echo_n "(cached) " >&6
3715 else
3716   ac_check_lib_save_LIBS=$LIBS
3717 LIBS="-ldl  $LIBS"
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h.  */
3720
3721 /* Override any GCC internal prototype to avoid an error.
3722    Use char because int might match the return type of a GCC
3723    builtin and then its argument prototype would still apply.  */
3724 #ifdef __cplusplus
3725 extern "C"
3726 #endif
3727 char dlopen ();
3728 int
3729 main ()
3730 {
3731 return dlopen ();
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 if ac_fn_c_try_link "$LINENO"; then :
3737   ac_cv_lib_dl_dlopen=yes
3738 else
3739   ac_cv_lib_dl_dlopen=no
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext \
3742     conftest$ac_exeext conftest.$ac_ext
3743 LIBS=$ac_check_lib_save_LIBS
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3747 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3748   DLOPEN_LIB=-ldl
3749 fi
3750
3751
3752
3753 # Check whether --with-cc was given.
3754 if test "${with_cc+set}" = set; then :
3755   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3756 fi
3757
3758
3759 # Check whether --with-ccopts was given.
3760 if test "${with_ccopts+set}" = set; then :
3761   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3762 fi
3763
3764
3765 # Check whether --with-ldopts was given.
3766 if test "${with_ldopts+set}" = set; then :
3767   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3768 fi
3769
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 if test -n "$ac_tool_prefix"; then
3776   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_CC+:} false; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   if test -n "$CC"; then
3784   ac_cv_prog_CC="$CC" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789   IFS=$as_save_IFS
3790   test -z "$as_dir" && as_dir=.
3791     for ac_exec_ext in '' $ac_executable_extensions; do
3792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795     break 2
3796   fi
3797 done
3798   done
3799 IFS=$as_save_IFS
3800
3801 fi
3802 fi
3803 CC=$ac_cv_prog_CC
3804 if test -n "$CC"; then
3805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806 $as_echo "$CC" >&6; }
3807 else
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 fi
3811
3812
3813 fi
3814 if test -z "$ac_cv_prog_CC"; then
3815   ac_ct_CC=$CC
3816   # Extract the first word of "gcc", so it can be a program name with args.
3817 set dummy gcc; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3821   $as_echo_n "(cached) " >&6
3822 else
3823   if test -n "$ac_ct_CC"; then
3824   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829   IFS=$as_save_IFS
3830   test -z "$as_dir" && as_dir=.
3831     for ac_exec_ext in '' $ac_executable_extensions; do
3832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833     ac_cv_prog_ac_ct_CC="gcc"
3834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835     break 2
3836   fi
3837 done
3838   done
3839 IFS=$as_save_IFS
3840
3841 fi
3842 fi
3843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3844 if test -n "$ac_ct_CC"; then
3845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3846 $as_echo "$ac_ct_CC" >&6; }
3847 else
3848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3850 fi
3851
3852   if test "x$ac_ct_CC" = x; then
3853     CC=""
3854   else
3855     case $cross_compiling:$ac_tool_warned in
3856 yes:)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859 ac_tool_warned=yes ;;
3860 esac
3861     CC=$ac_ct_CC
3862   fi
3863 else
3864   CC="$ac_cv_prog_CC"
3865 fi
3866
3867 if test -z "$CC"; then
3868           if test -n "$ac_tool_prefix"; then
3869     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3870 set dummy ${ac_tool_prefix}cc; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if ${ac_cv_prog_CC+:} false; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   if test -n "$CC"; then
3877   ac_cv_prog_CC="$CC" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882   IFS=$as_save_IFS
3883   test -z "$as_dir" && as_dir=.
3884     for ac_exec_ext in '' $ac_executable_extensions; do
3885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886     ac_cv_prog_CC="${ac_tool_prefix}cc"
3887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888     break 2
3889   fi
3890 done
3891   done
3892 IFS=$as_save_IFS
3893
3894 fi
3895 fi
3896 CC=$ac_cv_prog_CC
3897 if test -n "$CC"; then
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3900 else
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 fi
3904
3905
3906   fi
3907 fi
3908 if test -z "$CC"; then
3909   # Extract the first word of "cc", so it can be a program name with args.
3910 set dummy cc; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_CC+:} false; then :
3914   $as_echo_n "(cached) " >&6
3915 else
3916   if test -n "$CC"; then
3917   ac_cv_prog_CC="$CC" # Let the user override the test.
3918 else
3919   ac_prog_rejected=no
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925     for ac_exec_ext in '' $ac_executable_extensions; do
3926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3928        ac_prog_rejected=yes
3929        continue
3930      fi
3931     ac_cv_prog_CC="cc"
3932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933     break 2
3934   fi
3935 done
3936   done
3937 IFS=$as_save_IFS
3938
3939 if test $ac_prog_rejected = yes; then
3940   # We found a bogon in the path, so make sure we never use it.
3941   set dummy $ac_cv_prog_CC
3942   shift
3943   if test $# != 0; then
3944     # We chose a different compiler from the bogus one.
3945     # However, it has the same basename, so the bogon will be chosen
3946     # first if we set CC to just the basename; use the full file name.
3947     shift
3948     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3949   fi
3950 fi
3951 fi
3952 fi
3953 CC=$ac_cv_prog_CC
3954 if test -n "$CC"; then
3955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956 $as_echo "$CC" >&6; }
3957 else
3958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 fi
3961
3962
3963 fi
3964 if test -z "$CC"; then
3965   if test -n "$ac_tool_prefix"; then
3966   for ac_prog in cl.exe
3967   do
3968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if ${ac_cv_prog_CC+:} false; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975   if test -n "$CC"; then
3976   ac_cv_prog_CC="$CC" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983     for ac_exec_ext in '' $ac_executable_extensions; do
3984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990   done
3991 IFS=$as_save_IFS
3992
3993 fi
3994 fi
3995 CC=$ac_cv_prog_CC
3996 if test -n "$CC"; then
3997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998 $as_echo "$CC" >&6; }
3999 else
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4002 fi
4003
4004
4005     test -n "$CC" && break
4006   done
4007 fi
4008 if test -z "$CC"; then
4009   ac_ct_CC=$CC
4010   for ac_prog in cl.exe
4011 do
4012   # Extract the first word of "$ac_prog", so it can be a program name with args.
4013 set dummy $ac_prog; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4017   $as_echo_n "(cached) " >&6
4018 else
4019   if test -n "$ac_ct_CC"; then
4020   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025   IFS=$as_save_IFS
4026   test -z "$as_dir" && as_dir=.
4027     for ac_exec_ext in '' $ac_executable_extensions; do
4028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029     ac_cv_prog_ac_ct_CC="$ac_prog"
4030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031     break 2
4032   fi
4033 done
4034   done
4035 IFS=$as_save_IFS
4036
4037 fi
4038 fi
4039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040 if test -n "$ac_ct_CC"; then
4041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042 $as_echo "$ac_ct_CC" >&6; }
4043 else
4044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 fi
4047
4048
4049   test -n "$ac_ct_CC" && break
4050 done
4051
4052   if test "x$ac_ct_CC" = x; then
4053     CC=""
4054   else
4055     case $cross_compiling:$ac_tool_warned in
4056 yes:)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4060 esac
4061     CC=$ac_ct_CC
4062   fi
4063 fi
4064
4065 fi
4066
4067
4068 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error $? "no acceptable C compiler found in \$PATH
4071 See \`config.log' for more details" "$LINENO" 5; }
4072
4073 # Provide some information about the compiler.
4074 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4075 set X $ac_compile
4076 ac_compiler=$2
4077 for ac_option in --version -v -V -qversion; do
4078   { { ac_try="$ac_compiler $ac_option >&5"
4079 case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4086   ac_status=$?
4087   if test -s conftest.err; then
4088     sed '10a\
4089 ... rest of stderr output deleted ...
4090          10q' conftest.err >conftest.er1
4091     cat conftest.er1 >&5
4092   fi
4093   rm -f conftest.er1 conftest.err
4094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095   test $ac_status = 0; }
4096 done
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4099 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4100 if ${ac_cv_c_compiler_gnu+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105
4106 int
4107 main ()
4108 {
4109 #ifndef __GNUC__
4110        choke me
4111 #endif
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118   ac_compiler_gnu=yes
4119 else
4120   ac_compiler_gnu=no
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4124
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4127 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4128 if test $ac_compiler_gnu = yes; then
4129   GCC=yes
4130 else
4131   GCC=
4132 fi
4133 ac_test_CFLAGS=${CFLAGS+set}
4134 ac_save_CFLAGS=$CFLAGS
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4136 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4137 if ${ac_cv_prog_cc_g+:} false; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   ac_save_c_werror_flag=$ac_c_werror_flag
4141    ac_c_werror_flag=yes
4142    ac_cv_prog_cc_g=no
4143    CFLAGS="-g"
4144    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h.  */
4146
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156   ac_cv_prog_cc_g=yes
4157 else
4158   CFLAGS=""
4159       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h.  */
4161
4162 int
4163 main ()
4164 {
4165
4166   ;
4167   return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171
4172 else
4173   ac_c_werror_flag=$ac_save_c_werror_flag
4174          CFLAGS="-g"
4175          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h.  */
4177
4178 int
4179 main ()
4180 {
4181
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187   ac_cv_prog_cc_g=yes
4188 fi
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190 fi
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194    ac_c_werror_flag=$ac_save_c_werror_flag
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4197 $as_echo "$ac_cv_prog_cc_g" >&6; }
4198 if test "$ac_test_CFLAGS" = set; then
4199   CFLAGS=$ac_save_CFLAGS
4200 elif test $ac_cv_prog_cc_g = yes; then
4201   if test "$GCC" = yes; then
4202     CFLAGS="-g -O2"
4203   else
4204     CFLAGS="-g"
4205   fi
4206 else
4207   if test "$GCC" = yes; then
4208     CFLAGS="-O2"
4209   else
4210     CFLAGS=
4211   fi
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4214 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4215 if ${ac_cv_prog_cc_c89+:} false; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   ac_cv_prog_cc_c89=no
4219 ac_save_CC=$CC
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h.  */
4222 #include <stdarg.h>
4223 #include <stdio.h>
4224 struct stat;
4225 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4226 struct buf { int x; };
4227 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4228 static char *e (p, i)
4229      char **p;
4230      int i;
4231 {
4232   return p[i];
4233 }
4234 static char *f (char * (*g) (char **, int), char **p, ...)
4235 {
4236   char *s;
4237   va_list v;
4238   va_start (v,p);
4239   s = g (p, va_arg (v,int));
4240   va_end (v);
4241   return s;
4242 }
4243
4244 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4245    function prototypes and stuff, but not '\xHH' hex character constants.
4246    These don't provoke an error unfortunately, instead are silently treated
4247    as 'x'.  The following induces an error, until -std is added to get
4248    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4249    array size at least.  It's necessary to write '\x00'==0 to get something
4250    that's true only with -std.  */
4251 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4252
4253 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4254    inside strings and character constants.  */
4255 #define FOO(x) 'x'
4256 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4257
4258 int test (int i, double x);
4259 struct s1 {int (*f) (int a);};
4260 struct s2 {int (*f) (double a);};
4261 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4262 int argc;
4263 char **argv;
4264 int
4265 main ()
4266 {
4267 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4273         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4274 do
4275   CC="$ac_save_CC $ac_arg"
4276   if ac_fn_c_try_compile "$LINENO"; then :
4277   ac_cv_prog_cc_c89=$ac_arg
4278 fi
4279 rm -f core conftest.err conftest.$ac_objext
4280   test "x$ac_cv_prog_cc_c89" != "xno" && break
4281 done
4282 rm -f conftest.$ac_ext
4283 CC=$ac_save_CC
4284
4285 fi
4286 # AC_CACHE_VAL
4287 case "x$ac_cv_prog_cc_c89" in
4288   x)
4289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4290 $as_echo "none needed" >&6; } ;;
4291   xno)
4292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4293 $as_echo "unsupported" >&6; } ;;
4294   *)
4295     CC="$CC $ac_cv_prog_cc_c89"
4296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4297 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4298 esac
4299 if test "x$ac_cv_prog_cc_c89" != xno; then :
4300
4301 fi
4302
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308
4309 if test "$GCC" = yes; then
4310    RDYNAMIC="-rdynamic"
4311
4312 fi
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4319 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4320 # On Suns, sometimes $CPP names a directory.
4321 if test -n "$CPP" && test -d "$CPP"; then
4322   CPP=
4323 fi
4324 if test -z "$CPP"; then
4325   if ${ac_cv_prog_CPP+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328       # Double quotes because CPP needs to be expanded
4329     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4330     do
4331       ac_preproc_ok=false
4332 for ac_c_preproc_warn_flag in '' yes
4333 do
4334   # Use a header file that comes with gcc, so configuring glibc
4335   # with a fresh cross-compiler works.
4336   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337   # <limits.h> exists even on freestanding compilers.
4338   # On the NeXT, cc -E runs the code through the compiler's parser,
4339   # not just through cpp. "Syntax error" is here to catch this case.
4340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342 #ifdef __STDC__
4343 # include <limits.h>
4344 #else
4345 # include <assert.h>
4346 #endif
4347                      Syntax error
4348 _ACEOF
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4350
4351 else
4352   # Broken: fails on valid input.
4353 continue
4354 fi
4355 rm -f conftest.err conftest.i conftest.$ac_ext
4356
4357   # OK, works on sane cases.  Now check whether nonexistent headers
4358   # can be detected and how.
4359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h.  */
4361 #include <ac_nonexistent.h>
4362 _ACEOF
4363 if ac_fn_c_try_cpp "$LINENO"; then :
4364   # Broken: success on invalid input.
4365 continue
4366 else
4367   # Passes both tests.
4368 ac_preproc_ok=:
4369 break
4370 fi
4371 rm -f conftest.err conftest.i conftest.$ac_ext
4372
4373 done
4374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4375 rm -f conftest.i conftest.err conftest.$ac_ext
4376 if $ac_preproc_ok; then :
4377   break
4378 fi
4379
4380     done
4381     ac_cv_prog_CPP=$CPP
4382
4383 fi
4384   CPP=$ac_cv_prog_CPP
4385 else
4386   ac_cv_prog_CPP=$CPP
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4389 $as_echo "$CPP" >&6; }
4390 ac_preproc_ok=false
4391 for ac_c_preproc_warn_flag in '' yes
4392 do
4393   # Use a header file that comes with gcc, so configuring glibc
4394   # with a fresh cross-compiler works.
4395   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396   # <limits.h> exists even on freestanding compilers.
4397   # On the NeXT, cc -E runs the code through the compiler's parser,
4398   # not just through cpp. "Syntax error" is here to catch this case.
4399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h.  */
4401 #ifdef __STDC__
4402 # include <limits.h>
4403 #else
4404 # include <assert.h>
4405 #endif
4406                      Syntax error
4407 _ACEOF
4408 if ac_fn_c_try_cpp "$LINENO"; then :
4409
4410 else
4411   # Broken: fails on valid input.
4412 continue
4413 fi
4414 rm -f conftest.err conftest.i conftest.$ac_ext
4415
4416   # OK, works on sane cases.  Now check whether nonexistent headers
4417   # can be detected and how.
4418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h.  */
4420 #include <ac_nonexistent.h>
4421 _ACEOF
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4423   # Broken: success on invalid input.
4424 continue
4425 else
4426   # Passes both tests.
4427 ac_preproc_ok=:
4428 break
4429 fi
4430 rm -f conftest.err conftest.i conftest.$ac_ext
4431
4432 done
4433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4434 rm -f conftest.i conftest.err conftest.$ac_ext
4435 if $ac_preproc_ok; then :
4436
4437 else
4438   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4440 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4441 See \`config.log' for more details" "$LINENO" 5; }
4442 fi
4443
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4451 $as_echo_n "checking for additional special compiler flags... " >&6; }
4452 if test "$GCC" = yes
4453 then
4454     case "$host_cpu" in
4455         alpha)          addcflags="-mieee" ;;
4456     esac
4457 fi
4458 if test "x$addcflags" != x
4459 then
4460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4461 $as_echo "$addcflags" >&6; }
4462     CFLAGS="$addcflags $CFLAGS"
4463 else
4464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4465 $as_echo "(none)" >&6; }
4466 fi
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4469 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4470 if ${ac_cv_path_GREP+:} false; then :
4471   $as_echo_n "(cached) " >&6
4472 else
4473   if test -z "$GREP"; then
4474   ac_path_GREP_found=false
4475   # Loop through the user's path and test for each of PROGNAME-LIST
4476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481     for ac_prog in grep ggrep; do
4482     for ac_exec_ext in '' $ac_executable_extensions; do
4483       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4484       as_fn_executable_p "$ac_path_GREP" || continue
4485 # Check for GNU ac_path_GREP and select it if it is found.
4486   # Check for GNU $ac_path_GREP
4487 case `"$ac_path_GREP" --version 2>&1` in
4488 *GNU*)
4489   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4490 *)
4491   ac_count=0
4492   $as_echo_n 0123456789 >"conftest.in"
4493   while :
4494   do
4495     cat "conftest.in" "conftest.in" >"conftest.tmp"
4496     mv "conftest.tmp" "conftest.in"
4497     cp "conftest.in" "conftest.nl"
4498     $as_echo 'GREP' >> "conftest.nl"
4499     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4500     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4501     as_fn_arith $ac_count + 1 && ac_count=$as_val
4502     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4503       # Best one so far, save it but keep looking for a better one
4504       ac_cv_path_GREP="$ac_path_GREP"
4505       ac_path_GREP_max=$ac_count
4506     fi
4507     # 10*(2^10) chars as input seems more than enough
4508     test $ac_count -gt 10 && break
4509   done
4510   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4511 esac
4512
4513       $ac_path_GREP_found && break 3
4514     done
4515   done
4516   done
4517 IFS=$as_save_IFS
4518   if test -z "$ac_cv_path_GREP"; then
4519     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4520   fi
4521 else
4522   ac_cv_path_GREP=$GREP
4523 fi
4524
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4527 $as_echo "$ac_cv_path_GREP" >&6; }
4528  GREP="$ac_cv_path_GREP"
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4532 $as_echo_n "checking for egrep... " >&6; }
4533 if ${ac_cv_path_EGREP+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4537    then ac_cv_path_EGREP="$GREP -E"
4538    else
4539      if test -z "$EGREP"; then
4540   ac_path_EGREP_found=false
4541   # Loop through the user's path and test for each of PROGNAME-LIST
4542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4544 do
4545   IFS=$as_save_IFS
4546   test -z "$as_dir" && as_dir=.
4547     for ac_prog in egrep; do
4548     for ac_exec_ext in '' $ac_executable_extensions; do
4549       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4550       as_fn_executable_p "$ac_path_EGREP" || continue
4551 # Check for GNU ac_path_EGREP and select it if it is found.
4552   # Check for GNU $ac_path_EGREP
4553 case `"$ac_path_EGREP" --version 2>&1` in
4554 *GNU*)
4555   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4556 *)
4557   ac_count=0
4558   $as_echo_n 0123456789 >"conftest.in"
4559   while :
4560   do
4561     cat "conftest.in" "conftest.in" >"conftest.tmp"
4562     mv "conftest.tmp" "conftest.in"
4563     cp "conftest.in" "conftest.nl"
4564     $as_echo 'EGREP' >> "conftest.nl"
4565     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4566     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4567     as_fn_arith $ac_count + 1 && ac_count=$as_val
4568     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4569       # Best one so far, save it but keep looking for a better one
4570       ac_cv_path_EGREP="$ac_path_EGREP"
4571       ac_path_EGREP_max=$ac_count
4572     fi
4573     # 10*(2^10) chars as input seems more than enough
4574     test $ac_count -gt 10 && break
4575   done
4576   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4577 esac
4578
4579       $ac_path_EGREP_found && break 3
4580     done
4581   done
4582   done
4583 IFS=$as_save_IFS
4584   if test -z "$ac_cv_path_EGREP"; then
4585     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4586   fi
4587 else
4588   ac_cv_path_EGREP=$EGREP
4589 fi
4590
4591    fi
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4594 $as_echo "$ac_cv_path_EGREP" >&6; }
4595  EGREP="$ac_cv_path_EGREP"
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4599 $as_echo_n "checking for ANSI C header files... " >&6; }
4600 if ${ac_cv_header_stdc+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h.  */
4605 #include <stdlib.h>
4606 #include <stdarg.h>
4607 #include <string.h>
4608 #include <float.h>
4609
4610 int
4611 main ()
4612 {
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619   ac_cv_header_stdc=yes
4620 else
4621   ac_cv_header_stdc=no
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624
4625 if test $ac_cv_header_stdc = yes; then
4626   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629 #include <string.h>
4630
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633   $EGREP "memchr" >/dev/null 2>&1; then :
4634
4635 else
4636   ac_cv_header_stdc=no
4637 fi
4638 rm -f conftest*
4639
4640 fi
4641
4642 if test $ac_cv_header_stdc = yes; then
4643   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h.  */
4646 #include <stdlib.h>
4647
4648 _ACEOF
4649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4650   $EGREP "free" >/dev/null 2>&1; then :
4651
4652 else
4653   ac_cv_header_stdc=no
4654 fi
4655 rm -f conftest*
4656
4657 fi
4658
4659 if test $ac_cv_header_stdc = yes; then
4660   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4661   if test "$cross_compiling" = yes; then :
4662   :
4663 else
4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666 #include <ctype.h>
4667 #include <stdlib.h>
4668 #if ((' ' & 0x0FF) == 0x020)
4669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4671 #else
4672 # define ISLOWER(c) \
4673                    (('a' <= (c) && (c) <= 'i') \
4674                      || ('j' <= (c) && (c) <= 'r') \
4675                      || ('s' <= (c) && (c) <= 'z'))
4676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4677 #endif
4678
4679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4680 int
4681 main ()
4682 {
4683   int i;
4684   for (i = 0; i < 256; i++)
4685     if (XOR (islower (i), ISLOWER (i))
4686         || toupper (i) != TOUPPER (i))
4687       return 2;
4688   return 0;
4689 }
4690 _ACEOF
4691 if ac_fn_c_try_run "$LINENO"; then :
4692
4693 else
4694   ac_cv_header_stdc=no
4695 fi
4696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4697   conftest.$ac_objext conftest.beam conftest.$ac_ext
4698 fi
4699
4700 fi
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4703 $as_echo "$ac_cv_header_stdc" >&6; }
4704 if test $ac_cv_header_stdc = yes; then
4705
4706 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4707
4708 fi
4709
4710 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4711 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4712                   inttypes.h stdint.h unistd.h
4713 do :
4714   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4716 "
4717 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4718   cat >>confdefs.h <<_ACEOF
4719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4720 _ACEOF
4721
4722 fi
4723
4724 done
4725
4726
4727
4728   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4729 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4730   MINIX=yes
4731 else
4732   MINIX=
4733 fi
4734
4735
4736   if test "$MINIX" = yes; then
4737
4738 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4739
4740
4741 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4742
4743
4744 $as_echo "#define _MINIX 1" >>confdefs.h
4745
4746   fi
4747
4748
4749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4750 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4751 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756
4757 #         define __EXTENSIONS__ 1
4758           $ac_includes_default
4759 int
4760 main ()
4761 {
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768   ac_cv_safe_to_define___extensions__=yes
4769 else
4770   ac_cv_safe_to_define___extensions__=no
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4775 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4776   test $ac_cv_safe_to_define___extensions__ = yes &&
4777     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4778
4779   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4780
4781   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4782
4783   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4784
4785   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4786
4787
4788 LIB_EXT=.a
4789 STATIC_LIB_EXT=.a
4790 PROFILED_LIB_EXT=.a
4791
4792 # Check whether --with-root-prefix was given.
4793 if test "${with_root_prefix+set}" = set; then :
4794   withval=$with_root_prefix; root_prefix=$withval
4795 else
4796   root_prefix=NONE
4797 fi
4798 # Check whether --enable-maintainer-mode was given.
4799 if test "${enable_maintainer_mode+set}" = set; then :
4800   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4801 then
4802         MAINTAINER_CMT=#
4803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4804 $as_echo "Disabling maintainer mode" >&6; }
4805 else
4806         MAINTAINER_CMT=
4807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4808 $as_echo "Enabling maintainer mode" >&6; }
4809 fi
4810
4811 else
4812   MAINTAINER_CMT=#
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4814 $as_echo "Disabling maintainer mode by default" >&6; }
4815
4816 fi
4817
4818
4819 # Check whether --enable-symlink-install was given.
4820 if test "${enable_symlink_install+set}" = set; then :
4821   enableval=$enable_symlink_install; if test "$enableval" = "no"
4822 then
4823         LINK_INSTALL_FLAGS=-f
4824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4825 $as_echo "Disabling symlinks for install" >&6; }
4826 else
4827         LINK_INSTALL_FLAGS=-sf
4828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4829 $as_echo "Enabling symlinks for install" >&6; }
4830 fi
4831
4832 else
4833   LINK_INSTALL_FLAGS=-f
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4835 $as_echo "Disabling symlinks for install by default" >&6; }
4836
4837 fi
4838
4839
4840 relative_symlink_defined=
4841 # Check whether --enable-relative-symlinks was given.
4842 if test "${enable_relative_symlinks+set}" = set; then :
4843   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4844 then
4845         SYMLINK_RELATIVE=
4846         relative_symlink_defined=yes
4847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4848 $as_echo "Disabling relative symlinks for install" >&6; }
4849 else
4850         SYMLINK_RELATIVE=--relative
4851         relative_symlink_defined=yes
4852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4853 $as_echo "Enabling relative symlinks for install" >&6; }
4854 fi
4855 fi
4856
4857 # Check whether --enable-symlink-relative-symlinks was given.
4858 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4859   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4860 then
4861         SYMLINK_RELATIVE=yes
4862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4863 $as_echo "Disabling relative symlinks for install" >&6; }
4864 else
4865         SYMLINK_RELATIVE=--relative
4866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4867 $as_echo "Enabling relative symlinks for install" >&6; }
4868 fi
4869
4870 else
4871   if test -z "$relative_symlink_defined"
4872 then
4873         SYMLINK_RELATIVE=
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4875 $as_echo "Disabling relative symlinks for install by default" >&6; }
4876 fi
4877
4878 fi
4879
4880
4881 # Check whether --enable-symlink-build was given.
4882 if test "${enable_symlink_build+set}" = set; then :
4883   enableval=$enable_symlink_build; if test "$enableval" = "no"
4884 then
4885         LINK_BUILD_FLAGS=
4886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4887 $as_echo "Disabling symlinks for build" >&6; }
4888 else
4889         LINK_BUILD_FLAGS=-s
4890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4891 $as_echo "Enabling symlinks for build" >&6; }
4892 fi
4893
4894 else
4895   LINK_BUILD_FLAGS=
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4897 $as_echo "Disabling symlinks for build by default" >&6; }
4898
4899 fi
4900
4901
4902 # Check whether --enable-verbose-makecmds was given.
4903 if test "${enable_verbose_makecmds+set}" = set; then :
4904   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4905 then
4906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4907 $as_echo "Disabling verbose make commands" >&6; }
4908         E=@echo
4909         ES=echo
4910         Q=@
4911 else
4912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4913 $as_echo "Enabling verbose make commands" >&6; }
4914         E=@\\#
4915         ES=\\#
4916         Q=
4917 fi
4918
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4921 $as_echo "Disabling verbose make commands" >&6; }
4922 E=@echo
4923 ES=echo
4924 Q=@
4925
4926 fi
4927
4928
4929
4930
4931 E2_PKG_CONFIG_STATIC=--static
4932 LDFLAG_DYNAMIC=
4933 PRIVATE_LIBS_CMT=
4934 # Check whether --enable-elf-shlibs was given.
4935 if test "${enable_elf_shlibs+set}" = set; then :
4936   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4937 then
4938         ELF_CMT=#
4939         MAKEFILE_ELF=/dev/null
4940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4941 $as_echo "Disabling ELF shared libraries" >&6; }
4942 else
4943         E2_PKG_CONFIG_STATIC=
4944         ELF_CMT=
4945         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4946         case "$host_os" in
4947         solaris2.*)
4948                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4949         ;;
4950         esac
4951         BINARY_TYPE=elfbin
4952         LIB_EXT=.so
4953         PRIVATE_LIBS_CMT=#
4954         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4956 $as_echo "Enabling ELF shared libraries" >&6; }
4957 fi
4958
4959 else
4960   MAKEFILE_ELF=/dev/null
4961 ELF_CMT=#
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4963 $as_echo "Disabling ELF shared libraries by default" >&6; }
4964
4965 fi
4966
4967
4968
4969 # Check whether --enable-bsd-shlibs was given.
4970 if test "${enable_bsd_shlibs+set}" = set; then :
4971   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4972 then
4973         BSDLIB_CMT=#
4974         MAKEFILE_BSDLIB=/dev/null
4975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4976 $as_echo "Disabling BSD shared libraries" >&6; }
4977 else
4978         E2_PKG_CONFIG_STATIC=
4979         BSDLIB_CMT=
4980         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4981         LIB_EXT=.so
4982         case "$host_os" in
4983         darwin*)
4984                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4985                 LIB_EXT=.dylib
4986         ;;
4987         esac
4988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4989 $as_echo "Enabling BSD shared libraries" >&6; }
4990 fi
4991
4992 else
4993   MAKEFILE_BSDLIB=/dev/null
4994 BSDLIB_CMT=#
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4996 $as_echo "Disabling BSD shared libraries by default" >&6; }
4997
4998 fi
4999
5000
5001
5002 # Check whether --enable-profile was given.
5003 if test "${enable_profile+set}" = set; then :
5004   enableval=$enable_profile; if test "$enableval" = "no"
5005 then
5006         PROFILE_CMT=#
5007         MAKEFILE_PROFILE=/dev/null
5008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5009 $as_echo "Disabling profiling libraries" >&6; }
5010 else
5011         PROFILE_CMT=
5012         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5013         PROFILED_LIB_EXT=_p.a
5014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5015 $as_echo "Building profiling libraries" >&6; }
5016 fi
5017
5018 else
5019   PROFILE_CMT=#
5020 MAKEFILE_PROFILE=/dev/null
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5022 $as_echo "Disabling profiling libraries by default" >&6; }
5023
5024 fi
5025
5026
5027
5028 # Check whether --enable-gcov was given.
5029 if test "${enable_gcov+set}" = set; then :
5030   enableval=$enable_gcov; if test "$enableval" = "yes"
5031 then
5032         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5033         LDFLAGS="-fprofile-arcs -ftest-coverage"
5034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5035 $as_echo "Enabling gcov support" >&6; }
5036 fi
5037
5038 fi
5039
5040 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5041 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5042 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5043 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5044 # Check whether --enable-hardening was given.
5045 if test "${enable_hardening+set}" = set; then :
5046   enableval=$enable_hardening; if test "$enableval" = "yes"
5047 then
5048         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5049         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5050         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5051         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5052         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5053         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5054         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5055         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5057 $as_echo "Enabling hardening support" >&6; }
5058 fi
5059
5060 fi
5061
5062
5063
5064
5065
5066
5067 # Check whether --enable-jbd-debug was given.
5068 if test "${enable_jbd_debug+set}" = set; then :
5069   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5070 then
5071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5072 $as_echo "Disabling journal debugging" >&6; }
5073 else
5074
5075 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5076
5077         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5078 $as_echo "Enabling journal debugging" >&6; }
5079 fi
5080
5081 else
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5083 $as_echo "Disabling journal debugging by default" >&6; }
5084
5085 fi
5086
5087 # Check whether --enable-blkid-debug was given.
5088 if test "${enable_blkid_debug+set}" = set; then :
5089   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5090 then
5091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5092 $as_echo "Disabling blkid debugging" >&6; }
5093 else
5094
5095 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5096
5097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5098 $as_echo "Enabling blkid debugging" >&6; }
5099 fi
5100
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5103 $as_echo "Disabling blkid debugging by default" >&6; }
5104
5105 fi
5106
5107 # Check whether --enable-testio-debug was given.
5108 if test "${enable_testio_debug+set}" = set; then :
5109   enableval=$enable_testio_debug;
5110 if test "$enableval" = "no"
5111 then
5112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5113 $as_echo "Disabling testio debugging" >&6; }
5114         TEST_IO_CMT="#"
5115 else
5116         TEST_IO_CMT=
5117         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5118
5119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5120 $as_echo "Enabling testio debugging" >&6; }
5121 fi
5122
5123 else
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5125 $as_echo "Enabling testio debugging by default" >&6; }
5126 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5127
5128 TEST_IO_CMT=
5129
5130 fi
5131
5132
5133 # Check whether --enable-developer-features was given.
5134 if test "${enable_developer_features+set}" = set; then :
5135   enableval=$enable_developer_features;
5136 if test "$enableval" = "yes"
5137 then
5138         DEV_FEATURES_CMT=
5139         $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5140
5141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5142 $as_echo "Enabling ext4 developer features" >&6; }
5143 else
5144         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5145 $as_echo "Disabling ext4 developer features" >&6; }
5146         DEV_FEATURES_CMT="#"
5147 fi
5148
5149 else
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5151 $as_echo "Disabling ext4 developer features by default" >&6; }
5152 DEV_FEATURES_CMT=
5153
5154 fi
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5165         if test -n "$ac_tool_prefix"; then
5166   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5167 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5171   $as_echo_n "(cached) " >&6
5172 else
5173   case $PKG_CONFIG in
5174   [\\/]* | ?:[\\/]*)
5175   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5176   ;;
5177   *)
5178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183     for ac_exec_ext in '' $ac_executable_extensions; do
5184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190   done
5191 IFS=$as_save_IFS
5192
5193   ;;
5194 esac
5195 fi
5196 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5197 if test -n "$PKG_CONFIG"; then
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5199 $as_echo "$PKG_CONFIG" >&6; }
5200 else
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206 fi
5207 if test -z "$ac_cv_path_PKG_CONFIG"; then
5208   ac_pt_PKG_CONFIG=$PKG_CONFIG
5209   # Extract the first word of "pkg-config", so it can be a program name with args.
5210 set dummy pkg-config; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5214   $as_echo_n "(cached) " >&6
5215 else
5216   case $ac_pt_PKG_CONFIG in
5217   [\\/]* | ?:[\\/]*)
5218   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5219   ;;
5220   *)
5221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226     for ac_exec_ext in '' $ac_executable_extensions; do
5227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233   done
5234 IFS=$as_save_IFS
5235
5236   ;;
5237 esac
5238 fi
5239 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5240 if test -n "$ac_pt_PKG_CONFIG"; then
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5242 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5243 else
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5246 fi
5247
5248   if test "x$ac_pt_PKG_CONFIG" = x; then
5249     PKG_CONFIG=""
5250   else
5251     case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257     PKG_CONFIG=$ac_pt_PKG_CONFIG
5258   fi
5259 else
5260   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5261 fi
5262
5263 fi
5264 if test -n "$PKG_CONFIG"; then
5265         _pkg_min_version=0.9.0
5266         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5267 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5268         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5269                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270 $as_echo "yes" >&6; }
5271         else
5272                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274                 PKG_CONFIG=""
5275         fi
5276 fi
5277 LIBUUID=
5278 DEPLIBUUID=
5279 STATIC_LIBUUID=
5280 DEPSTATIC_LIBUUID=
5281 PROFILED_LIBUUID=
5282 DEPPROFILED_LIBUUID=
5283 UUID_CMT=
5284 # Check whether --enable-libuuid was given.
5285 if test "${enable_libuuid+set}" = set; then :
5286   enableval=$enable_libuuid; if test "$enableval" = "no"
5287 then
5288         if test -z "$PKG_CONFIG"; then
5289                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5290         fi
5291
5292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5293 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5294 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   ac_check_lib_save_LIBS=$LIBS
5298 LIBS="-luuid  $LIBS"
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301
5302 /* Override any GCC internal prototype to avoid an error.
5303    Use char because int might match the return type of a GCC
5304    builtin and then its argument prototype would still apply.  */
5305 #ifdef __cplusplus
5306 extern "C"
5307 #endif
5308 char uuid_generate ();
5309 int
5310 main ()
5311 {
5312 return uuid_generate ();
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_c_try_link "$LINENO"; then :
5318   ac_cv_lib_uuid_uuid_generate=yes
5319 else
5320   ac_cv_lib_uuid_uuid_generate=no
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext \
5323     conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5327 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5328 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5329   LIBUUID=`$PKG_CONFIG --libs uuid`;
5330                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5331 else
5332   as_fn_error $? "external uuid library not found" "$LINENO" 5
5333 fi
5334
5335         PROFILED_LIBUUID=$LIBUUID
5336         UUID_CMT=#
5337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5338 $as_echo "Disabling private uuid library" >&6; }
5339 else
5340         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5341         DEPLIBUUID=$LIBUUID
5342         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5343         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5344         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5345         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5347 $as_echo "Enabling private uuid library" >&6; }
5348 fi
5349
5350 else
5351   if test -n "$PKG_CONFIG"; then
5352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5353 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5354 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   ac_check_lib_save_LIBS=$LIBS
5358 LIBS="-luuid  $LIBS"
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h.  */
5361
5362 /* Override any GCC internal prototype to avoid an error.
5363    Use char because int might match the return type of a GCC
5364    builtin and then its argument prototype would still apply.  */
5365 #ifdef __cplusplus
5366 extern "C"
5367 #endif
5368 char uuid_generate ();
5369 int
5370 main ()
5371 {
5372 return uuid_generate ();
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_link "$LINENO"; then :
5378   ac_cv_lib_uuid_uuid_generate=yes
5379 else
5380   ac_cv_lib_uuid_uuid_generate=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext \
5383     conftest$ac_exeext conftest.$ac_ext
5384 LIBS=$ac_check_lib_save_LIBS
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5387 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5388 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5389   LIBUUID=`$PKG_CONFIG --libs uuid`;
5390                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5391 fi
5392
5393 fi
5394 if test -n "$LIBUUID"; then
5395         PROFILED_LIBUUID=$LIBUUID
5396         UUID_CMT=#
5397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5398 $as_echo "Using system uuid by default" >&6; }
5399 else
5400         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5401         DEPLIBUUID=$LIBUUID
5402         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5403         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5404         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5405         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5407 $as_echo "Enabling private uuid library by default" >&6; }
5408 fi
5409
5410 fi
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5427         if test -n "$ac_tool_prefix"; then
5428   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5429 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   case $PKG_CONFIG in
5436   [\\/]* | ?:[\\/]*)
5437   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5438   ;;
5439   *)
5440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445     for ac_exec_ext in '' $ac_executable_extensions; do
5446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452   done
5453 IFS=$as_save_IFS
5454
5455   ;;
5456 esac
5457 fi
5458 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5459 if test -n "$PKG_CONFIG"; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5461 $as_echo "$PKG_CONFIG" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466
5467
5468 fi
5469 if test -z "$ac_cv_path_PKG_CONFIG"; then
5470   ac_pt_PKG_CONFIG=$PKG_CONFIG
5471   # Extract the first word of "pkg-config", so it can be a program name with args.
5472 set dummy pkg-config; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   case $ac_pt_PKG_CONFIG in
5479   [\\/]* | ?:[\\/]*)
5480   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5481   ;;
5482   *)
5483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495   done
5496 IFS=$as_save_IFS
5497
5498   ;;
5499 esac
5500 fi
5501 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5502 if test -n "$ac_pt_PKG_CONFIG"; then
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5504 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5505 else
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510   if test "x$ac_pt_PKG_CONFIG" = x; then
5511     PKG_CONFIG=""
5512   else
5513     case $cross_compiling:$ac_tool_warned in
5514 yes:)
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517 ac_tool_warned=yes ;;
5518 esac
5519     PKG_CONFIG=$ac_pt_PKG_CONFIG
5520   fi
5521 else
5522   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5523 fi
5524
5525 fi
5526 if test -n "$PKG_CONFIG"; then
5527         _pkg_min_version=0.9.0
5528         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5529 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5530         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5531                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5532 $as_echo "yes" >&6; }
5533         else
5534                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5536                 PKG_CONFIG=""
5537         fi
5538 fi
5539 LIBBLKID=
5540 DEPLIBBLKID=
5541 STATIC_LIBBLKID=
5542 DEPSTATIC_LIBBLKID=
5543 PROFILED_LIBBLKID=
5544 DEPPROFILED_LIBBLKID=
5545 BLKID_CMT=
5546
5547 # Check whether --enable-libblkid was given.
5548 if test "${enable_libblkid+set}" = set; then :
5549   enableval=$enable_libblkid; if test "$enableval" = "no"
5550 then
5551         if test -z "$PKG_CONFIG"; then
5552                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5553         fi
5554
5555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5556 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5557 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lblkid -luuid $LIBS"
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h.  */
5564
5565 /* Override any GCC internal prototype to avoid an error.
5566    Use char because int might match the return type of a GCC
5567    builtin and then its argument prototype would still apply.  */
5568 #ifdef __cplusplus
5569 extern "C"
5570 #endif
5571 char blkid_get_cache ();
5572 int
5573 main ()
5574 {
5575 return blkid_get_cache ();
5576   ;
5577   return 0;
5578 }
5579 _ACEOF
5580 if ac_fn_c_try_link "$LINENO"; then :
5581   ac_cv_lib_blkid_blkid_get_cache=yes
5582 else
5583   ac_cv_lib_blkid_blkid_get_cache=no
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext \
5586     conftest$ac_exeext conftest.$ac_ext
5587 LIBS=$ac_check_lib_save_LIBS
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5590 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5591 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5592   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5593                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5594 else
5595   as_fn_error $? "external blkid library not found" "$LINENO" 5
5596 fi
5597
5598         BLKID_CMT=#
5599         PROFILED_LIBBLKID=$LIBBLKID
5600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5601 $as_echo "Disabling private blkid library" >&6; }
5602 else
5603         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5604         DEPLIBBLKID=$LIBBLKID
5605         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5606         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5607         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5608         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5609         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5610
5611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5612 $as_echo "Enabling private blkid library" >&6; }
5613 fi
5614
5615 else
5616   if test -n "$PKG_CONFIG"; then
5617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5618 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5619 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   ac_check_lib_save_LIBS=$LIBS
5623 LIBS="-lblkid  $LIBS"
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h.  */
5626
5627 /* Override any GCC internal prototype to avoid an error.
5628    Use char because int might match the return type of a GCC
5629    builtin and then its argument prototype would still apply.  */
5630 #ifdef __cplusplus
5631 extern "C"
5632 #endif
5633 char blkid_get_cache ();
5634 int
5635 main ()
5636 {
5637 return blkid_get_cache ();
5638   ;
5639   return 0;
5640 }
5641 _ACEOF
5642 if ac_fn_c_try_link "$LINENO"; then :
5643   ac_cv_lib_blkid_blkid_get_cache=yes
5644 else
5645   ac_cv_lib_blkid_blkid_get_cache=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext \
5648     conftest$ac_exeext conftest.$ac_ext
5649 LIBS=$ac_check_lib_save_LIBS
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5652 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5653 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5654   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5655                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5656 fi
5657
5658 fi
5659 if test -n "$LIBBLKID"; then
5660         BLKID_CMT=#
5661         PROFILED_LIBBLKID=$LIBBLKID
5662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5663 $as_echo "Using system blkid library by default" >&6; }
5664 else
5665         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5666         DEPLIBBLKID=$LIBBLKID
5667         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5668         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5669         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5670         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5671         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5672
5673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5674 $as_echo "Enabling private blkid library by default" >&6; }
5675 fi
5676
5677 fi
5678
5679
5680
5681
5682
5683
5684
5685
5686 ALL_CMT=
5687 SUBSET_CMT=
5688 # Check whether --enable-subset was given.
5689 if test "${enable_subset+set}" = set; then :
5690   enableval=$enable_subset; if test "$enableval" = "no"
5691 then
5692         SUBSET_CMT=#
5693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5694 $as_echo "Disabling subset-only build" >&6; }
5695 else
5696         ALL_CMT=#
5697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5698 $as_echo "Enabling subset-only-build" >&6; }
5699 fi
5700
5701 fi
5702
5703
5704
5705
5706 # Check whether --enable-backtrace was given.
5707 if test "${enable_backtrace+set}" = set; then :
5708   enableval=$enable_backtrace; if test "$enableval" = "no"
5709 then
5710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5711 $as_echo "Disabling use of backtrace" >&6; }
5712         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5713
5714 else
5715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5716 $as_echo "Enabling use of backtrace" >&6; }
5717 fi
5718
5719 else
5720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5721 $as_echo "Enabling use of backtrace by default" >&6; }
5722
5723 fi
5724
5725 # Check whether --enable-debugfs was given.
5726 if test "${enable_debugfs+set}" = set; then :
5727   enableval=$enable_debugfs; if test "$enableval" = "no"
5728 then
5729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5730 $as_echo "Disabling debugfs support" >&6; }
5731         DEBUGFS_CMT="#"
5732 else
5733         DEBUGFS_CMT=
5734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5735 $as_echo "Enabling debugfs support" >&6; }
5736 fi
5737
5738 else
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5740 $as_echo "Enabling debugfs support by default" >&6; }
5741 DEBUGFS_CMT=
5742
5743 fi
5744
5745
5746 # Check whether --enable-imager was given.
5747 if test "${enable_imager+set}" = set; then :
5748   enableval=$enable_imager; if test "$enableval" = "no"
5749 then
5750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5751 $as_echo "Disabling e2image support" >&6; }
5752         IMAGER_CMT="#"
5753 else
5754         IMAGER_CMT=
5755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5756 $as_echo "Enabling e2image support" >&6; }
5757 fi
5758
5759 else
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5761 $as_echo "Enabling e2image support by default" >&6; }
5762 IMAGER_CMT=
5763
5764 fi
5765
5766
5767 # Check whether --enable-resizer was given.
5768 if test "${enable_resizer+set}" = set; then :
5769   enableval=$enable_resizer; if test "$enableval" = "no"
5770 then
5771         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5772 $as_echo "Disabling e2resize support" >&6; }
5773         RESIZER_CMT="#"
5774 else
5775         RESIZER_CMT=
5776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5777 $as_echo "Enabling e2resize support" >&6; }
5778 fi
5779
5780 else
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5782 $as_echo "Enabling e2resize support by default" >&6; }
5783 RESIZER_CMT=
5784
5785 fi
5786
5787
5788 # Check whether --enable-defrag was given.
5789 if test "${enable_defrag+set}" = set; then :
5790   enableval=$enable_defrag; if test "$enableval" = "no"
5791 then
5792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5793 $as_echo "Disabling e4defrag support" >&6; }
5794         DEFRAG_CMT="#"
5795 else
5796         DEFRAG_CMT=
5797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5798 $as_echo "Enabling e4defrag support" >&6; }
5799 fi
5800
5801 else
5802   if test -z "$WITH_DIET_LIBC"
5803 then
5804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5805 $as_echo "Enabling e4defrag support by default" >&6; }
5806         DEFRAG_CMT=
5807 else
5808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5809 $as_echo "Disabling e4defrag support by default" >&6; }
5810         DEFRAG_CMT="#"
5811 fi
5812
5813 fi
5814
5815
5816 # Check whether --enable-fsck was given.
5817 if test "${enable_fsck+set}" = set; then :
5818   enableval=$enable_fsck; if test "$enableval" = "no"
5819 then
5820         FSCK_PROG='' FSCK_MAN=''
5821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5822 $as_echo "Not building fsck wrapper" >&6; }
5823 else
5824         FSCK_PROG=fsck FSCK_MAN=fsck.8
5825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5826 $as_echo "Building fsck wrapper" >&6; }
5827 fi
5828
5829 else
5830   case "$host_os" in
5831   gnu*)
5832     FSCK_PROG='' FSCK_MAN=''
5833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5834 $as_echo "Not building fsck wrapper by default" >&6; }
5835     ;;
5836   *)
5837     FSCK_PROG=fsck FSCK_MAN=fsck.8
5838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5839 $as_echo "Building fsck wrapper by default" >&6; }
5840 esac
5841
5842 fi
5843
5844
5845
5846 # Check whether --enable-e2initrd-helper was given.
5847 if test "${enable_e2initrd_helper+set}" = set; then :
5848   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5849 then
5850         E2INITRD_PROG='' E2INITRD_MAN=''
5851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5852 $as_echo "Not building e2initrd helper" >&6; }
5853 else
5854         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5856 $as_echo "Building e2initrd helper" >&6; }
5857 fi
5858
5859 else
5860   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5862 $as_echo "Building e2initrd helper by default" >&6; }
5863
5864 fi
5865
5866
5867
5868 # Check whether --enable-tls was given.
5869 if test "${enable_tls+set}" = set; then :
5870   enableval=$enable_tls; if test "$enableval" = "no"
5871 then
5872         try_tls=""
5873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5874 $as_echo "Disabling thread local support" >&6; }
5875 else
5876         try_tls="yes"
5877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5878 $as_echo "Enabling thread local support" >&6; }
5879 fi
5880
5881 else
5882   if test -n "$WITH_DIET_LIBC"
5883 then
5884         try_tls=""
5885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5886 $as_echo "Diet libc does not support thread local support" >&6; }
5887 else
5888         try_tls="yes"
5889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5890 $as_echo "Try using thread local support by default" >&6; }
5891 fi
5892
5893 fi
5894
5895 if test "$try_tls" = "yes"
5896 then
5897
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5899 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5900   if ${ac_cv_tls+:} false; then :
5901   $as_echo_n "(cached) " >&6
5902 else
5903
5904     ax_tls_keywords="__thread __declspec(thread) none"
5905     for ax_tls_keyword in $ax_tls_keywords; do
5906        case $ax_tls_keyword in
5907           none) ac_cv_tls=none ; break ;;
5908           *)
5909              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h.  */
5911 #include <stdlib.h>
5912                  static void
5913                  foo(void) {
5914                  static  $ax_tls_keyword  int bar;
5915                  exit(1);
5916                  }
5917 int
5918 main ()
5919 {
5920
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_c_try_compile "$LINENO"; then :
5926   ac_cv_tls=$ax_tls_keyword ; break
5927 else
5928   ac_cv_tls=none
5929
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932           esac
5933     done
5934
5935 fi
5936
5937
5938   if test "$ac_cv_tls" != "none"; then
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define TLS $ac_cv_tls
5942 _ACEOF
5943
5944   fi
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5946 $as_echo "$ac_cv_tls" >&6; }
5947
5948 fi
5949
5950 # Check whether --with-pthread was given.
5951 if test "${with_pthread+set}" = set; then :
5952   withval=$with_pthread; if test "$withval" = "no"
5953 then
5954         try_pthread=""
5955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
5956 $as_echo "Disabling pthread support" >&6; }
5957 else
5958         try_pthread="yes"
5959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
5960 $as_echo "Testing for pthread support" >&6; }
5961 fi
5962
5963 else
5964   try_pthread="yes"
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
5966 $as_echo "Try testing for pthread support by default" >&6; }
5967
5968 fi
5969
5970 if test "$try_pthread" = "yes"
5971 then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5973 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5974 if ${ac_cv_path_SED+:} false; then :
5975   $as_echo_n "(cached) " >&6
5976 else
5977             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5978      for ac_i in 1 2 3 4 5 6 7; do
5979        ac_script="$ac_script$as_nl$ac_script"
5980      done
5981      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5982      { ac_script=; unset ac_script;}
5983      if test -z "$SED"; then
5984   ac_path_SED_found=false
5985   # Loop through the user's path and test for each of PROGNAME-LIST
5986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991     for ac_prog in sed gsed; do
5992     for ac_exec_ext in '' $ac_executable_extensions; do
5993       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5994       as_fn_executable_p "$ac_path_SED" || continue
5995 # Check for GNU ac_path_SED and select it if it is found.
5996   # Check for GNU $ac_path_SED
5997 case `"$ac_path_SED" --version 2>&1` in
5998 *GNU*)
5999   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6000 *)
6001   ac_count=0
6002   $as_echo_n 0123456789 >"conftest.in"
6003   while :
6004   do
6005     cat "conftest.in" "conftest.in" >"conftest.tmp"
6006     mv "conftest.tmp" "conftest.in"
6007     cp "conftest.in" "conftest.nl"
6008     $as_echo '' >> "conftest.nl"
6009     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011     as_fn_arith $ac_count + 1 && ac_count=$as_val
6012     if test $ac_count -gt ${ac_path_SED_max-0}; then
6013       # Best one so far, save it but keep looking for a better one
6014       ac_cv_path_SED="$ac_path_SED"
6015       ac_path_SED_max=$ac_count
6016     fi
6017     # 10*(2^10) chars as input seems more than enough
6018     test $ac_count -gt 10 && break
6019   done
6020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6021 esac
6022
6023       $ac_path_SED_found && break 3
6024     done
6025   done
6026   done
6027 IFS=$as_save_IFS
6028   if test -z "$ac_cv_path_SED"; then
6029     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6030   fi
6031 else
6032   ac_cv_path_SED=$SED
6033 fi
6034
6035 fi
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6037 $as_echo "$ac_cv_path_SED" >&6; }
6038  SED="$ac_cv_path_SED"
6039   rm -f conftest.sed
6040
6041
6042
6043
6044
6045 ac_ext=c
6046 ac_cpp='$CPP $CPPFLAGS'
6047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6050
6051 ax_pthread_ok=no
6052
6053 # We used to check for pthread.h first, but this fails if pthread.h
6054 # requires special compiler flags (e.g. on Tru64 or Sequent).
6055 # It gets checked for in the link test anyway.
6056
6057 # First of all, check if the user has set any of the PTHREAD_LIBS,
6058 # etcetera environment variables, and if threads linking works using
6059 # them:
6060 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6061         ax_pthread_save_CC="$CC"
6062         ax_pthread_save_CFLAGS="$CFLAGS"
6063         ax_pthread_save_LIBS="$LIBS"
6064         if test "x$PTHREAD_CC" != "x"; then :
6065   CC="$PTHREAD_CC"
6066 fi
6067         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6068         LIBS="$PTHREAD_LIBS $LIBS"
6069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6070 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6071         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h.  */
6073
6074 /* Override any GCC internal prototype to avoid an error.
6075    Use char because int might match the return type of a GCC
6076    builtin and then its argument prototype would still apply.  */
6077 #ifdef __cplusplus
6078 extern "C"
6079 #endif
6080 char pthread_join ();
6081 int
6082 main ()
6083 {
6084 return pthread_join ();
6085   ;
6086   return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_link "$LINENO"; then :
6090   ax_pthread_ok=yes
6091 fi
6092 rm -f core conftest.err conftest.$ac_objext \
6093     conftest$ac_exeext conftest.$ac_ext
6094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6095 $as_echo "$ax_pthread_ok" >&6; }
6096         if test "x$ax_pthread_ok" = "xno"; then
6097                 PTHREAD_LIBS=""
6098                 PTHREAD_CFLAGS=""
6099         fi
6100         CC="$ax_pthread_save_CC"
6101         CFLAGS="$ax_pthread_save_CFLAGS"
6102         LIBS="$ax_pthread_save_LIBS"
6103 fi
6104
6105 # We must check for the threads library under a number of different
6106 # names; the ordering is very important because some systems
6107 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6108 # libraries is broken (non-POSIX).
6109
6110 # Create a list of thread flags to try.  Items starting with a "-" are
6111 # C compiler flags, and other items are library names, except for "none"
6112 # which indicates that we try without any flags at all, and "pthread-config"
6113 # which is a program returning the flags for the Pth emulation library.
6114
6115 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6116
6117 # The ordering *is* (sometimes) important.  Some notes on the
6118 # individual items follow:
6119
6120 # pthreads: AIX (must check this before -lpthread)
6121 # none: in case threads are in libc; should be tried before -Kthread and
6122 #       other compiler flags to prevent continual compiler warnings
6123 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6124 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6125 #           (Note: HP C rejects this with "bad form for `-t' option")
6126 # -pthreads: Solaris/gcc (Note: HP C also rejects)
6127 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6128 #      doesn't hurt to check since this sometimes defines pthreads and
6129 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
6130 #      is present but should not be used directly; and before -mthreads,
6131 #      because the compiler interprets this as "-mt" + "-hreads")
6132 # -mthreads: Mingw32/gcc, Lynx/gcc
6133 # pthread: Linux, etcetera
6134 # --thread-safe: KAI C++
6135 # pthread-config: use pthread-config program (for GNU Pth library)
6136
6137 case $host_os in
6138
6139         freebsd*)
6140
6141         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6142         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6143
6144         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6145         ;;
6146
6147         hpux*)
6148
6149         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6150         # multi-threading and also sets -lpthread."
6151
6152         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6153         ;;
6154
6155         openedition*)
6156
6157         # IBM z/OS requires a feature-test macro to be defined in order to
6158         # enable POSIX threads at all, so give the user a hint if this is
6159         # not set. (We don't define these ourselves, as they can affect
6160         # other portions of the system API in unpredictable ways.)
6161
6162         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h.  */
6164
6165 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6166              AX_PTHREAD_ZOS_MISSING
6167 #            endif
6168
6169 _ACEOF
6170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6171   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6172   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6173 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
6174 fi
6175 rm -f conftest*
6176
6177         ;;
6178
6179         solaris*)
6180
6181         # On Solaris (at least, for some versions), libc contains stubbed
6182         # (non-functional) versions of the pthreads routines, so link-based
6183         # tests will erroneously succeed. (N.B.: The stubs are missing
6184         # pthread_cleanup_push, or rather a function called by this macro,
6185         # so we could check for that, but who knows whether they'll stub
6186         # that too in a future libc.)  So we'll check first for the
6187         # standard Solaris way of linking pthreads (-mt -lpthread).
6188
6189         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6190         ;;
6191 esac
6192
6193 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
6194
6195 if test "x$GCC" = "xyes"; then :
6196   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
6197 fi
6198
6199 # The presence of a feature test macro requesting re-entrant function
6200 # definitions is, on some systems, a strong hint that pthreads support is
6201 # correctly enabled
6202
6203 case $host_os in
6204         darwin* | hpux* | linux* | osf* | solaris*)
6205         ax_pthread_check_macro="_REENTRANT"
6206         ;;
6207
6208         aix*)
6209         ax_pthread_check_macro="_THREAD_SAFE"
6210         ;;
6211
6212         *)
6213         ax_pthread_check_macro="--"
6214         ;;
6215 esac
6216 if test "x$ax_pthread_check_macro" = "x--"; then :
6217   ax_pthread_check_cond=0
6218 else
6219   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
6220 fi
6221
6222 # Are we compiling with Clang?
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6225 $as_echo_n "checking whether $CC is Clang... " >&6; }
6226 if ${ax_cv_PTHREAD_CLANG+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   ax_cv_PTHREAD_CLANG=no
6230      # Note that Autoconf sets GCC=yes for Clang as well as GCC
6231      if test "x$GCC" = "xyes"; then
6232         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h.  */
6234 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6235 #            if defined(__clang__) && defined(__llvm__)
6236              AX_PTHREAD_CC_IS_CLANG
6237 #            endif
6238
6239 _ACEOF
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6242   ax_cv_PTHREAD_CLANG=yes
6243 fi
6244 rm -f conftest*
6245
6246      fi
6247
6248 fi
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6250 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6251 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6252
6253 ax_pthread_clang_warning=no
6254
6255 # Clang needs special handling, because older versions handle the -pthread
6256 # option in a rather... idiosyncratic way
6257
6258 if test "x$ax_pthread_clang" = "xyes"; then
6259
6260         # Clang takes -pthread; it has never supported any other flag
6261
6262         # (Note 1: This will need to be revisited if a system that Clang
6263         # supports has POSIX threads in a separate library.  This tends not
6264         # to be the way of modern systems, but it's conceivable.)
6265
6266         # (Note 2: On some systems, notably Darwin, -pthread is not needed
6267         # to get POSIX threads support; the API is always present and
6268         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
6269         # -pthread does define _REENTRANT, and while the Darwin headers
6270         # ignore this macro, third-party headers might not.)
6271
6272         PTHREAD_CFLAGS="-pthread"
6273         PTHREAD_LIBS=
6274
6275         ax_pthread_ok=yes
6276
6277         # However, older versions of Clang make a point of warning the user
6278         # that, in an invocation where only linking and no compilation is
6279         # taking place, the -pthread option has no effect ("argument unused
6280         # during compilation").  They expect -pthread to be passed in only
6281         # when source code is being compiled.
6282         #
6283         # Problem is, this is at odds with the way Automake and most other
6284         # C build frameworks function, which is that the same flags used in
6285         # compilation (CFLAGS) are also used in linking.  Many systems
6286         # supported by AX_PTHREAD require exactly this for POSIX threads
6287         # support, and in fact it is often not straightforward to specify a
6288         # flag that is used only in the compilation phase and not in
6289         # linking.  Such a scenario is extremely rare in practice.
6290         #
6291         # Even though use of the -pthread flag in linking would only print
6292         # a warning, this can be a nuisance for well-run software projects
6293         # that build with -Werror.  So if the active version of Clang has
6294         # this misfeature, we search for an option to squash it.
6295
6296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6297 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6298 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6299   $as_echo_n "(cached) " >&6
6300 else
6301   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6302              # Create an alternate version of $ac_link that compiles and
6303              # links in two steps (.c -> .o, .o -> exe) instead of one
6304              # (.c -> exe), because the warning occurs only in the second
6305              # step
6306              ax_pthread_save_ac_link="$ac_link"
6307              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6308              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6309              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6310              ax_pthread_save_CFLAGS="$CFLAGS"
6311              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6312                 if test "x$ax_pthread_try" = "xunknown"; then :
6313   break
6314 fi
6315                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6316                 ac_link="$ax_pthread_save_ac_link"
6317                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h.  */
6319 int main(void){return 0;}
6320 _ACEOF
6321 if ac_fn_c_try_link "$LINENO"; then :
6322   ac_link="$ax_pthread_2step_ac_link"
6323                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h.  */
6325 int main(void){return 0;}
6326 _ACEOF
6327 if ac_fn_c_try_link "$LINENO"; then :
6328   break
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext \
6331     conftest$ac_exeext conftest.$ac_ext
6332
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext \
6335     conftest$ac_exeext conftest.$ac_ext
6336              done
6337              ac_link="$ax_pthread_save_ac_link"
6338              CFLAGS="$ax_pthread_save_CFLAGS"
6339              if test "x$ax_pthread_try" = "x"; then :
6340   ax_pthread_try=no
6341 fi
6342              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6343
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6346 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6347
6348         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6349                 no | unknown) ;;
6350                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6351         esac
6352
6353 fi # $ax_pthread_clang = yes
6354
6355 if test "x$ax_pthread_ok" = "xno"; then
6356 for ax_pthread_try_flag in $ax_pthread_flags; do
6357
6358         case $ax_pthread_try_flag in
6359                 none)
6360                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6361 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
6362                 ;;
6363
6364                 -mt,pthread)
6365                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6366 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6367                 PTHREAD_CFLAGS="-mt"
6368                 PTHREAD_LIBS="-lpthread"
6369                 ;;
6370
6371                 -*)
6372                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6373 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6374                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6375                 ;;
6376
6377                 pthread-config)
6378                 # Extract the first word of "pthread-config", so it can be a program name with args.
6379 set dummy pthread-config; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ax_pthread_config+:} false; then :
6383   $as_echo_n "(cached) " >&6
6384 else
6385   if test -n "$ax_pthread_config"; then
6386   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391   IFS=$as_save_IFS
6392   test -z "$as_dir" && as_dir=.
6393     for ac_exec_ext in '' $ac_executable_extensions; do
6394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395     ac_cv_prog_ax_pthread_config="yes"
6396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397     break 2
6398   fi
6399 done
6400   done
6401 IFS=$as_save_IFS
6402
6403   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6404 fi
6405 fi
6406 ax_pthread_config=$ac_cv_prog_ax_pthread_config
6407 if test -n "$ax_pthread_config"; then
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6409 $as_echo "$ax_pthread_config" >&6; }
6410 else
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415
6416                 if test "x$ax_pthread_config" = "xno"; then :
6417   continue
6418 fi
6419                 PTHREAD_CFLAGS="`pthread-config --cflags`"
6420                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6421                 ;;
6422
6423                 *)
6424                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6425 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6426                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6427                 ;;
6428         esac
6429
6430         ax_pthread_save_CFLAGS="$CFLAGS"
6431         ax_pthread_save_LIBS="$LIBS"
6432         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6433         LIBS="$PTHREAD_LIBS $LIBS"
6434
6435         # Check for various functions.  We must include pthread.h,
6436         # since some functions may be macros.  (On the Sequent, we
6437         # need a special flag -Kthread to make this header compile.)
6438         # We check for pthread_join because it is in -lpthread on IRIX
6439         # while pthread_create is in libc.  We check for pthread_attr_init
6440         # due to DEC craziness with -lpthreads.  We check for
6441         # pthread_cleanup_push because it is one of the few pthread
6442         # functions on Solaris that doesn't have a non-functional libc stub.
6443         # We try pthread_create on general principles.
6444
6445         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h.  */
6447 #include <pthread.h>
6448 #                       if $ax_pthread_check_cond
6449 #                        error "$ax_pthread_check_macro must be defined"
6450 #                       endif
6451                         static void routine(void *a) { a = 0; }
6452                         static void *start_routine(void *a) { return a; }
6453 int
6454 main ()
6455 {
6456 pthread_t th; pthread_attr_t attr;
6457                         pthread_create(&th, 0, start_routine, 0);
6458                         pthread_join(th, 0);
6459                         pthread_attr_init(&attr);
6460                         pthread_cleanup_push(routine, 0);
6461                         pthread_cleanup_pop(0) /* ; */
6462   ;
6463   return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_c_try_link "$LINENO"; then :
6467   ax_pthread_ok=yes
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext \
6470     conftest$ac_exeext conftest.$ac_ext
6471
6472         CFLAGS="$ax_pthread_save_CFLAGS"
6473         LIBS="$ax_pthread_save_LIBS"
6474
6475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6476 $as_echo "$ax_pthread_ok" >&6; }
6477         if test "x$ax_pthread_ok" = "xyes"; then :
6478   break
6479 fi
6480
6481         PTHREAD_LIBS=""
6482         PTHREAD_CFLAGS=""
6483 done
6484 fi
6485
6486 # Various other checks:
6487 if test "x$ax_pthread_ok" = "xyes"; then
6488         ax_pthread_save_CFLAGS="$CFLAGS"
6489         ax_pthread_save_LIBS="$LIBS"
6490         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6491         LIBS="$PTHREAD_LIBS $LIBS"
6492
6493         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6495 $as_echo_n "checking for joinable pthread attribute... " >&6; }
6496 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6497   $as_echo_n "(cached) " >&6
6498 else
6499   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6500              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6501                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h.  */
6503 #include <pthread.h>
6504 int
6505 main ()
6506 {
6507 int attr = $ax_pthread_attr; return attr /* ; */
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 if ac_fn_c_try_link "$LINENO"; then :
6513   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext \
6516     conftest$ac_exeext conftest.$ac_ext
6517              done
6518
6519 fi
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6521 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6522         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6523                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6524                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6525
6526 cat >>confdefs.h <<_ACEOF
6527 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6528 _ACEOF
6529
6530                ax_pthread_joinable_attr_defined=yes
6531
6532 fi
6533
6534         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6535 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6536 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   ax_cv_PTHREAD_SPECIAL_FLAGS=no
6540              case $host_os in
6541              solaris*)
6542              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6543              ;;
6544              esac
6545
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6548 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6549         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6550                test "x$ax_pthread_special_flags_added" != "xyes"; then :
6551   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6552                ax_pthread_special_flags_added=yes
6553 fi
6554
6555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6556 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6557 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h.  */
6562 #include <pthread.h>
6563 int
6564 main ()
6565 {
6566 int i = PTHREAD_PRIO_INHERIT;
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 if ac_fn_c_try_link "$LINENO"; then :
6572   ax_cv_PTHREAD_PRIO_INHERIT=yes
6573 else
6574   ax_cv_PTHREAD_PRIO_INHERIT=no
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext \
6577     conftest$ac_exeext conftest.$ac_ext
6578
6579 fi
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6581 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6582         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6583                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6584
6585 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6586
6587                ax_pthread_prio_inherit_defined=yes
6588
6589 fi
6590
6591         CFLAGS="$ax_pthread_save_CFLAGS"
6592         LIBS="$ax_pthread_save_LIBS"
6593
6594         # More AIX lossage: compile with *_r variant
6595         if test "x$GCC" != "xyes"; then
6596             case $host_os in
6597                 aix*)
6598                 case "x/$CC" in #(
6599   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6600     #handle absolute path differently from PATH based program lookup
6601                      case "x$CC" in #(
6602   x/*) :
6603     if as_fn_executable_p ${CC}_r; then :
6604   PTHREAD_CC="${CC}_r"
6605 fi ;; #(
6606   *) :
6607     for ac_prog in ${CC}_r
6608 do
6609   # Extract the first word of "$ac_prog", so it can be a program name with args.
6610 set dummy $ac_prog; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$PTHREAD_CC"; then
6617   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626     ac_cv_prog_PTHREAD_CC="$ac_prog"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6637 if test -n "$PTHREAD_CC"; then
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6639 $as_echo "$PTHREAD_CC" >&6; }
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645
6646   test -n "$PTHREAD_CC" && break
6647 done
6648 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6649  ;;
6650 esac ;; #(
6651   *) :
6652      ;;
6653 esac
6654                 ;;
6655             esac
6656         fi
6657 fi
6658
6659 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6660
6661
6662
6663
6664
6665 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6666 if test "x$ax_pthread_ok" = "xyes"; then
6667
6668 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6669
6670         :
6671 else
6672         ax_pthread_ok=no
6673
6674 fi
6675 ac_ext=c
6676 ac_cpp='$CPP $CPPFLAGS'
6677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6680
6681
6682 else
6683 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6684
6685 fi
6686
6687 # Check whether --enable-uuidd was given.
6688 if test "${enable_uuidd+set}" = set; then :
6689   enableval=$enable_uuidd; if test "$enableval" = "no"
6690 then
6691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6692 $as_echo "Not building uuidd" >&6; }
6693         UUIDD_CMT="#"
6694 else
6695         $as_echo "#define USE_UUIDD 1" >>confdefs.h
6696
6697         UUIDD_CMT=""
6698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6699 $as_echo "Building uuidd" >&6; }
6700 fi
6701
6702 else
6703   $as_echo "#define USE_UUIDD 1" >>confdefs.h
6704
6705 if test -z "$UUID_CMT"
6706 then
6707         UUIDD_CMT=""
6708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6709 $as_echo "Building uuidd by default" >&6; }
6710 else
6711         UUIDD_CMT="#"
6712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6713 $as_echo "Disabling uuidd by default" >&6; }
6714 fi
6715
6716 fi
6717
6718
6719
6720 # Check whether --enable-mmp was given.
6721 if test "${enable_mmp+set}" = set; then :
6722   enableval=$enable_mmp; if test "$enableval" = "no"
6723 then
6724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6725 $as_echo "Disabling mmp support" >&6; }
6726 else
6727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6728 $as_echo "Enabling mmp support" >&6; }
6729         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6730
6731 fi
6732
6733 else
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6735 $as_echo "Enabling mmp support by default" >&6; }
6736 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6737
6738
6739 fi
6740
6741
6742 # Check whether --enable-tdb was given.
6743 if test "${enable_tdb+set}" = set; then :
6744   enableval=$enable_tdb; if test "$enableval" = "no"
6745 then
6746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6747 $as_echo "Disabling tdb support" >&6; }
6748         TDB_CMT="#"
6749         TDB_MAN_COMMENT='.\"'
6750 else
6751         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6752 $as_echo "Enabling tdb support" >&6; }
6753         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6754
6755         TDB_CMT=""
6756         TDB_MAN_COMMENT=""
6757 fi
6758
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6761 $as_echo "Enabling mmp support by default" >&6; }
6762 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6763
6764 TDB_CMT=""
6765 TDB_MAN_COMMENT=""
6766
6767 fi
6768
6769
6770
6771
6772 # Check whether --enable-bmap-stats was given.
6773 if test "${enable_bmap_stats+set}" = set; then :
6774   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6775 then
6776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6777 $as_echo "Disabling bitmap statistics support" >&6; }
6778 else
6779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6780 $as_echo "Enabling bitmap statistics support" >&6; }
6781         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6782
6783 fi
6784
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6787 $as_echo "Enabling bitmap statistics support by default" >&6; }
6788 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6789
6790
6791 fi
6792
6793
6794 # Check whether --enable-bmap-stats-ops was given.
6795 if test "${enable_bmap_stats_ops+set}" = set; then :
6796   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6797 then
6798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6799 $as_echo "Disabling additional bitmap statistics" >&6; }
6800 else
6801                 if test "x${enable_bmap_stats}" = "xno"; then :
6802   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6804 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6805 See \`config.log' for more details" "$LINENO" 5; }
6806 fi
6807
6808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6809 $as_echo "Enabling additional bitmap statistics" >&6; }
6810         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6811
6812 fi
6813
6814 else
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6816 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6817
6818 fi
6819
6820 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6821
6822 GETTEXT_PACKAGE=e2fsprogs
6823 PACKAGE=e2fsprogs
6824 VERSION="$E2FSPROGS_VERSION"
6825 VERSION=0.14.1
6826
6827 cat >>confdefs.h <<_ACEOF
6828 #define PACKAGE "$PACKAGE"
6829 _ACEOF
6830
6831
6832 cat >>confdefs.h <<_ACEOF
6833 #define VERSION "$VERSION"
6834 _ACEOF
6835
6836
6837
6838
6839
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6842 set x ${MAKE-make}
6843 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6844 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6845   $as_echo_n "(cached) " >&6
6846 else
6847   cat >conftest.make <<\_ACEOF
6848 SHELL = /bin/sh
6849 all:
6850         @echo '@@@%%%=$(MAKE)=@@@%%%'
6851 _ACEOF
6852 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6854   *@@@%%%=?*=@@@%%%*)
6855     eval ac_cv_prog_make_${ac_make}_set=yes;;
6856   *)
6857     eval ac_cv_prog_make_${ac_make}_set=no;;
6858 esac
6859 rm -f conftest.make
6860 fi
6861 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6863 $as_echo "yes" >&6; }
6864   SET_MAKE=
6865 else
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868   SET_MAKE="MAKE=${MAKE-make}"
6869 fi
6870
6871 # Find a good install program.  We prefer a C program (faster),
6872 # so one script is as good as another.  But avoid the broken or
6873 # incompatible versions:
6874 # SysV /etc/install, /usr/sbin/install
6875 # SunOS /usr/etc/install
6876 # IRIX /sbin/install
6877 # AIX /bin/install
6878 # AmigaOS /C/install, which installs bootblocks on floppy discs
6879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6882 # OS/2's system install, which has a completely different semantic
6883 # ./install, which can be erroneously created by make from ./install.sh.
6884 # Reject install programs that cannot install multiple files.
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6886 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6887 if test -z "$INSTALL"; then
6888 if ${ac_cv_path_install+:} false; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894   IFS=$as_save_IFS
6895   test -z "$as_dir" && as_dir=.
6896     # Account for people who put trailing slashes in PATH elements.
6897 case $as_dir/ in #((
6898   ./ | .// | /[cC]/* | \
6899   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6900   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6901   /usr/ucb/* ) ;;
6902   *)
6903     # OSF1 and SCO ODT 3.0 have their own names for install.
6904     # Don't use installbsd from OSF since it installs stuff as root
6905     # by default.
6906     for ac_prog in ginstall scoinst install; do
6907       for ac_exec_ext in '' $ac_executable_extensions; do
6908         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6909           if test $ac_prog = install &&
6910             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6911             # AIX install.  It has an incompatible calling convention.
6912             :
6913           elif test $ac_prog = install &&
6914             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6915             # program-specific install script used by HP pwplus--don't use.
6916             :
6917           else
6918             rm -rf conftest.one conftest.two conftest.dir
6919             echo one > conftest.one
6920             echo two > conftest.two
6921             mkdir conftest.dir
6922             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6923               test -s conftest.one && test -s conftest.two &&
6924               test -s conftest.dir/conftest.one &&
6925               test -s conftest.dir/conftest.two
6926             then
6927               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6928               break 3
6929             fi
6930           fi
6931         fi
6932       done
6933     done
6934     ;;
6935 esac
6936
6937   done
6938 IFS=$as_save_IFS
6939
6940 rm -rf conftest.one conftest.two conftest.dir
6941
6942 fi
6943   if test "${ac_cv_path_install+set}" = set; then
6944     INSTALL=$ac_cv_path_install
6945   else
6946     # As a last resort, use the slow shell script.  Don't cache a
6947     # value for INSTALL within a source directory, because that will
6948     # break other packages using the cache if that directory is
6949     # removed, or if the value is a relative name.
6950     INSTALL=$ac_install_sh
6951   fi
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6954 $as_echo "$INSTALL" >&6; }
6955
6956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6957 # It thinks the first close brace ends the variable substitution.
6958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6959
6960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6961
6962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6965 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6966 if test -z "$MKDIR_P"; then
6967   if ${ac_cv_path_mkdir+:} false; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975     for ac_prog in mkdir gmkdir; do
6976          for ac_exec_ext in '' $ac_executable_extensions; do
6977            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6978            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6979              'mkdir (GNU coreutils) '* | \
6980              'mkdir (coreutils) '* | \
6981              'mkdir (fileutils) '4.1*)
6982                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6983                break 3;;
6984            esac
6985          done
6986        done
6987   done
6988 IFS=$as_save_IFS
6989
6990 fi
6991
6992   test -d ./--version && rmdir ./--version
6993   if test "${ac_cv_path_mkdir+set}" = set; then
6994     MKDIR_P="$ac_cv_path_mkdir -p"
6995   else
6996     # As a last resort, use the slow shell script.  Don't cache a
6997     # value for MKDIR_P within a source directory, because that will
6998     # break other packages using the cache if that directory is
6999     # removed, or if the value is a relative name.
7000     MKDIR_P="$ac_install_sh -d"
7001   fi
7002 fi
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7004 $as_echo "$MKDIR_P" >&6; }
7005
7006
7007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7008 $as_echo_n "checking whether NLS is requested... " >&6; }
7009     # Check whether --enable-nls was given.
7010 if test "${enable_nls+set}" = set; then :
7011   enableval=$enable_nls; USE_NLS=$enableval
7012 else
7013   USE_NLS=yes
7014 fi
7015
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7017 $as_echo "$USE_NLS" >&6; }
7018
7019
7020
7021
7022       GETTEXT_MACRO_VERSION=0.20
7023
7024
7025
7026
7027 # Prepare PATH_SEPARATOR.
7028 # The user is always right.
7029 if test "${PATH_SEPARATOR+set}" != set; then
7030   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7031   # contains only /bin. Note that ksh looks also at the FPATH variable,
7032   # so we have to set that as well for the test.
7033   PATH_SEPARATOR=:
7034   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7035     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7036            || PATH_SEPARATOR=';'
7037        }
7038 fi
7039
7040 # Find out how to test for executable files. Don't use a zero-byte file,
7041 # as systems may use methods other than mode bits to determine executability.
7042 cat >conf$$.file <<_ASEOF
7043 #! /bin/sh
7044 exit 0
7045 _ASEOF
7046 chmod +x conf$$.file
7047 if test -x conf$$.file >/dev/null 2>&1; then
7048   ac_executable_p="test -x"
7049 else
7050   ac_executable_p="test -f"
7051 fi
7052 rm -f conf$$.file
7053
7054 # Extract the first word of "msgfmt", so it can be a program name with args.
7055 set dummy msgfmt; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_path_MSGFMT+:} false; then :
7059   $as_echo_n "(cached) " >&6
7060 else
7061   case "$MSGFMT" in
7062   [\\/]* | ?:[\\/]*)
7063     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7064     ;;
7065   *)
7066     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7067     for ac_dir in $PATH; do
7068       IFS="$ac_save_IFS"
7069       test -z "$ac_dir" && ac_dir=.
7070       for ac_exec_ext in '' $ac_executable_extensions; do
7071         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7072           echo "$as_me: trying $ac_dir/$ac_word..." >&5
7073           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7074      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7075             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7076             break 2
7077           fi
7078         fi
7079       done
7080     done
7081     IFS="$ac_save_IFS"
7082   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7083     ;;
7084 esac
7085 fi
7086 MSGFMT="$ac_cv_path_MSGFMT"
7087 if test "$MSGFMT" != ":"; then
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7089 $as_echo "$MSGFMT" >&6; }
7090 else
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095   # Extract the first word of "gmsgfmt", so it can be a program name with args.
7096 set dummy gmsgfmt; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_path_GMSGFMT+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   case $GMSGFMT in
7103   [\\/]* | ?:[\\/]*)
7104   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7105   ;;
7106   *)
7107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110   IFS=$as_save_IFS
7111   test -z "$as_dir" && as_dir=.
7112     for ac_exec_ext in '' $ac_executable_extensions; do
7113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116     break 2
7117   fi
7118 done
7119   done
7120 IFS=$as_save_IFS
7121
7122   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7123   ;;
7124 esac
7125 fi
7126 GMSGFMT=$ac_cv_path_GMSGFMT
7127 if test -n "$GMSGFMT"; then
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7129 $as_echo "$GMSGFMT" >&6; }
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135
7136
7137     case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7138     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7139     *) GMSGFMT_015=$GMSGFMT ;;
7140   esac
7141
7142
7143
7144 # Prepare PATH_SEPARATOR.
7145 # The user is always right.
7146 if test "${PATH_SEPARATOR+set}" != set; then
7147   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7148   # contains only /bin. Note that ksh looks also at the FPATH variable,
7149   # so we have to set that as well for the test.
7150   PATH_SEPARATOR=:
7151   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7152     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7153            || PATH_SEPARATOR=';'
7154        }
7155 fi
7156
7157 # Find out how to test for executable files. Don't use a zero-byte file,
7158 # as systems may use methods other than mode bits to determine executability.
7159 cat >conf$$.file <<_ASEOF
7160 #! /bin/sh
7161 exit 0
7162 _ASEOF
7163 chmod +x conf$$.file
7164 if test -x conf$$.file >/dev/null 2>&1; then
7165   ac_executable_p="test -x"
7166 else
7167   ac_executable_p="test -f"
7168 fi
7169 rm -f conf$$.file
7170
7171 # Extract the first word of "xgettext", so it can be a program name with args.
7172 set dummy xgettext; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_path_XGETTEXT+:} false; then :
7176   $as_echo_n "(cached) " >&6
7177 else
7178   case "$XGETTEXT" in
7179   [\\/]* | ?:[\\/]*)
7180     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7181     ;;
7182   *)
7183     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7184     for ac_dir in $PATH; do
7185       IFS="$ac_save_IFS"
7186       test -z "$ac_dir" && ac_dir=.
7187       for ac_exec_ext in '' $ac_executable_extensions; do
7188         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7189           echo "$as_me: trying $ac_dir/$ac_word..." >&5
7190           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7191      (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
7192             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7193             break 2
7194           fi
7195         fi
7196       done
7197     done
7198     IFS="$ac_save_IFS"
7199   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7200     ;;
7201 esac
7202 fi
7203 XGETTEXT="$ac_cv_path_XGETTEXT"
7204 if test "$XGETTEXT" != ":"; then
7205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7206 $as_echo "$XGETTEXT" >&6; }
7207 else
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7210 fi
7211
7212     rm -f messages.po
7213
7214     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7215     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7216     *) XGETTEXT_015=$XGETTEXT ;;
7217   esac
7218
7219
7220
7221 # Prepare PATH_SEPARATOR.
7222 # The user is always right.
7223 if test "${PATH_SEPARATOR+set}" != set; then
7224   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7225   # contains only /bin. Note that ksh looks also at the FPATH variable,
7226   # so we have to set that as well for the test.
7227   PATH_SEPARATOR=:
7228   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7229     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7230            || PATH_SEPARATOR=';'
7231        }
7232 fi
7233
7234 # Find out how to test for executable files. Don't use a zero-byte file,
7235 # as systems may use methods other than mode bits to determine executability.
7236 cat >conf$$.file <<_ASEOF
7237 #! /bin/sh
7238 exit 0
7239 _ASEOF
7240 chmod +x conf$$.file
7241 if test -x conf$$.file >/dev/null 2>&1; then
7242   ac_executable_p="test -x"
7243 else
7244   ac_executable_p="test -f"
7245 fi
7246 rm -f conf$$.file
7247
7248 # Extract the first word of "msgmerge", so it can be a program name with args.
7249 set dummy msgmerge; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_path_MSGMERGE+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   case "$MSGMERGE" in
7256   [\\/]* | ?:[\\/]*)
7257     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7258     ;;
7259   *)
7260     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7261     for ac_dir in $PATH; do
7262       IFS="$ac_save_IFS"
7263       test -z "$ac_dir" && ac_dir=.
7264       for ac_exec_ext in '' $ac_executable_extensions; do
7265         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7266           echo "$as_me: trying $ac_dir/$ac_word..." >&5
7267           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7268             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7269             break 2
7270           fi
7271         fi
7272       done
7273     done
7274     IFS="$ac_save_IFS"
7275   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7276     ;;
7277 esac
7278 fi
7279 MSGMERGE="$ac_cv_path_MSGMERGE"
7280 if test "$MSGMERGE" != ":"; then
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7282 $as_echo "$MSGMERGE" >&6; }
7283 else
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288
7289     if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7290     MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7291   else
7292         if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7293       MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7294     else
7295                         MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7296     fi
7297   fi
7298
7299
7300     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7301
7302
7303   ac_config_commands="$ac_config_commands po-directories"
7304
7305
7306
7307       if test "X$prefix" = "XNONE"; then
7308     acl_final_prefix="$ac_default_prefix"
7309   else
7310     acl_final_prefix="$prefix"
7311   fi
7312   if test "X$exec_prefix" = "XNONE"; then
7313     acl_final_exec_prefix='${prefix}'
7314   else
7315     acl_final_exec_prefix="$exec_prefix"
7316   fi
7317   acl_save_prefix="$prefix"
7318   prefix="$acl_final_prefix"
7319   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7320   prefix="$acl_save_prefix"
7321
7322
7323
7324 # Check whether --with-gnu-ld was given.
7325 if test "${with_gnu_ld+set}" = set; then :
7326   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7327 else
7328   with_gnu_ld=no
7329 fi
7330
7331 # Prepare PATH_SEPARATOR.
7332 # The user is always right.
7333 if test "${PATH_SEPARATOR+set}" != set; then
7334   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7335   # contains only /bin. Note that ksh looks also at the FPATH variable,
7336   # so we have to set that as well for the test.
7337   PATH_SEPARATOR=:
7338   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7339     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7340            || PATH_SEPARATOR=';'
7341        }
7342 fi
7343
7344 if test -n "$LD"; then
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7346 $as_echo_n "checking for ld... " >&6; }
7347 elif test "$GCC" = yes; then
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7349 $as_echo_n "checking for ld used by $CC... " >&6; }
7350 elif test "$with_gnu_ld" = yes; then
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7352 $as_echo_n "checking for GNU ld... " >&6; }
7353 else
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7355 $as_echo_n "checking for non-GNU ld... " >&6; }
7356 fi
7357 if test -n "$LD"; then
7358   # Let the user override the test with a path.
7359   :
7360 else
7361   if ${acl_cv_path_LD+:} false; then :
7362   $as_echo_n "(cached) " >&6
7363 else
7364
7365     acl_cv_path_LD= # Final result of this test
7366     ac_prog=ld # Program to search in $PATH
7367     if test "$GCC" = yes; then
7368       # Check if gcc -print-prog-name=ld gives a path.
7369       case $host in
7370         *-*-mingw*)
7371           # gcc leaves a trailing carriage return which upsets mingw
7372           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7373         *)
7374           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7375       esac
7376       case $acl_output in
7377         # Accept absolute paths.
7378         [\\/]* | ?:[\\/]*)
7379           re_direlt='/[^/][^/]*/\.\./'
7380           # Canonicalize the pathname of ld
7381           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7382           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7383             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7384           done
7385           # Got the pathname. No search in PATH is needed.
7386           acl_cv_path_LD="$acl_output"
7387           ac_prog=
7388           ;;
7389         "")
7390           # If it fails, then pretend we aren't using GCC.
7391           ;;
7392         *)
7393           # If it is relative, then search for the first ld in PATH.
7394           with_gnu_ld=unknown
7395           ;;
7396       esac
7397     fi
7398     if test -n "$ac_prog"; then
7399       # Search for $ac_prog in $PATH.
7400       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7401       for ac_dir in $PATH; do
7402         IFS="$acl_save_ifs"
7403         test -z "$ac_dir" && ac_dir=.
7404         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7405           acl_cv_path_LD="$ac_dir/$ac_prog"
7406           # Check to see if the program is GNU ld.  I'd rather use --version,
7407           # but apparently some variants of GNU ld only accept -v.
7408           # Break only if it was the GNU/non-GNU ld that we prefer.
7409           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7410             *GNU* | *'with BFD'*)
7411               test "$with_gnu_ld" != no && break
7412               ;;
7413             *)
7414               test "$with_gnu_ld" != yes && break
7415               ;;
7416           esac
7417         fi
7418       done
7419       IFS="$acl_save_ifs"
7420     fi
7421     case $host in
7422       *-*-aix*)
7423         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h.  */
7425 #if defined __powerpc64__ || defined _ARCH_PPC64
7426                 int ok;
7427                #else
7428                 error fail
7429                #endif
7430
7431 _ACEOF
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433   # The compiler produces 64-bit code. Add option '-b64' so that the
7434            # linker groks 64-bit object files.
7435            case "$acl_cv_path_LD " in
7436              *" -b64 "*) ;;
7437              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
7438            esac
7439
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442         ;;
7443       sparc64-*-netbsd*)
7444         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h.  */
7446 #if defined __sparcv9 || defined __arch64__
7447                 int ok;
7448                #else
7449                 error fail
7450                #endif
7451
7452 _ACEOF
7453 if ac_fn_c_try_compile "$LINENO"; then :
7454
7455 else
7456   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7457            # so that the linker groks 32-bit object files.
7458            case "$acl_cv_path_LD " in
7459              *" -m elf32_sparc "*) ;;
7460              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7461            esac
7462
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465         ;;
7466     esac
7467
7468 fi
7469
7470   LD="$acl_cv_path_LD"
7471 fi
7472 if test -n "$LD"; then
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7474 $as_echo "$LD" >&6; }
7475 else
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7481 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7482 if ${acl_cv_prog_gnu_ld+:} false; then :
7483   $as_echo_n "(cached) " >&6
7484 else
7485   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7486 case `$LD -v 2>&1 </dev/null` in
7487 *GNU* | *'with BFD'*)
7488   acl_cv_prog_gnu_ld=yes
7489   ;;
7490 *)
7491   acl_cv_prog_gnu_ld=no
7492   ;;
7493 esac
7494 fi
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7496 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7497 with_gnu_ld=$acl_cv_prog_gnu_ld
7498
7499
7500
7501
7502                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7503 $as_echo_n "checking for shared library run path origin... " >&6; }
7504 if ${acl_cv_rpath+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507
7508     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7509     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7510     . ./conftest.sh
7511     rm -f ./conftest.sh
7512     acl_cv_rpath=done
7513
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7516 $as_echo "$acl_cv_rpath" >&6; }
7517   wl="$acl_cv_wl"
7518   acl_libext="$acl_cv_libext"
7519   acl_shlibext="$acl_cv_shlibext"
7520   acl_libname_spec="$acl_cv_libname_spec"
7521   acl_library_names_spec="$acl_cv_library_names_spec"
7522   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7523   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7524   acl_hardcode_direct="$acl_cv_hardcode_direct"
7525   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7526     # Check whether --enable-rpath was given.
7527 if test "${enable_rpath+set}" = set; then :
7528   enableval=$enable_rpath; :
7529 else
7530   enable_rpath=yes
7531 fi
7532
7533
7534
7535
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7537 $as_echo_n "checking 32-bit host C ABI... " >&6; }
7538 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$gl_cv_host_cpu_c_abi"; then
7542        case "$gl_cv_host_cpu_c_abi" in
7543          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7544            gl_cv_host_cpu_c_abi_32bit=yes ;;
7545          x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7546            gl_cv_host_cpu_c_abi_32bit=no ;;
7547          *)
7548            gl_cv_host_cpu_c_abi_32bit=unknown ;;
7549        esac
7550      else
7551        case "$host_cpu" in
7552
7553          # CPUs that only support a 32-bit ABI.
7554          arc \
7555          | bfin \
7556          | cris* \
7557          | csky \
7558          | epiphany \
7559          | ft32 \
7560          | h8300 \
7561          | m68k \
7562          | microblaze | microblazeel \
7563          | nds32 | nds32le | nds32be \
7564          | nios2 | nios2eb | nios2el \
7565          | or1k* \
7566          | or32 \
7567          | sh | sh1234 | sh1234elb \
7568          | tic6x \
7569          | xtensa* )
7570            gl_cv_host_cpu_c_abi_32bit=yes
7571            ;;
7572
7573          # CPUs that only support a 64-bit ABI.
7574          alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7575          | mmix )
7576            gl_cv_host_cpu_c_abi_32bit=no
7577            ;;
7578
7579          i[34567]86 )
7580            gl_cv_host_cpu_c_abi_32bit=yes
7581            ;;
7582
7583          x86_64 )
7584            # On x86_64 systems, the C compiler may be generating code in one of
7585            # these ABIs:
7586            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7587            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7588            #   with native Windows (mingw, MSVC).
7589            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7590            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7591            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h.  */
7593 #if (defined __x86_64__ || defined __amd64__ \
7594                        || defined _M_X64 || defined _M_AMD64) \
7595                       && !(defined __ILP32__ || defined _ILP32)
7596                    int ok;
7597                   #else
7598                    error fail
7599                   #endif
7600
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603   gl_cv_host_cpu_c_abi_32bit=no
7604 else
7605   gl_cv_host_cpu_c_abi_32bit=yes
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608            ;;
7609
7610          arm* | aarch64 )
7611            # Assume arm with EABI.
7612            # On arm64 systems, the C compiler may be generating code in one of
7613            # these ABIs:
7614            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7615            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7616            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7617            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h.  */
7619 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
7620                    int ok;
7621                   #else
7622                    error fail
7623                   #endif
7624
7625 _ACEOF
7626 if ac_fn_c_try_compile "$LINENO"; then :
7627   gl_cv_host_cpu_c_abi_32bit=no
7628 else
7629   gl_cv_host_cpu_c_abi_32bit=yes
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632            ;;
7633
7634          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7635            # On hppa, the C compiler may be generating 32-bit code or 64-bit
7636            # code. In the latter case, it defines _LP64 and __LP64__.
7637            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h.  */
7639 #ifdef __LP64__
7640                    int ok;
7641                   #else
7642                    error fail
7643                   #endif
7644
7645 _ACEOF
7646 if ac_fn_c_try_compile "$LINENO"; then :
7647   gl_cv_host_cpu_c_abi_32bit=no
7648 else
7649   gl_cv_host_cpu_c_abi_32bit=yes
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652            ;;
7653
7654          ia64* )
7655            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7656            # 32-bit code. In the latter case, it defines _ILP32.
7657            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h.  */
7659 #ifdef _ILP32
7660                    int ok;
7661                   #else
7662                    error fail
7663                   #endif
7664
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667   gl_cv_host_cpu_c_abi_32bit=yes
7668 else
7669   gl_cv_host_cpu_c_abi_32bit=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672            ;;
7673
7674          mips* )
7675            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7676            # at 32.
7677            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h.  */
7679 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7680                    int ok;
7681                   #else
7682                    error fail
7683                   #endif
7684
7685 _ACEOF
7686 if ac_fn_c_try_compile "$LINENO"; then :
7687   gl_cv_host_cpu_c_abi_32bit=no
7688 else
7689   gl_cv_host_cpu_c_abi_32bit=yes
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692            ;;
7693
7694          powerpc* )
7695            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7696            # No need to distinguish them here; the caller may distinguish
7697            # them based on the OS.
7698            # On powerpc64 systems, the C compiler may still be generating
7699            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7700            # be generating 64-bit code.
7701            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h.  */
7703 #if defined __powerpc64__ || defined _ARCH_PPC64
7704                    int ok;
7705                   #else
7706                    error fail
7707                   #endif
7708
7709 _ACEOF
7710 if ac_fn_c_try_compile "$LINENO"; then :
7711   gl_cv_host_cpu_c_abi_32bit=no
7712 else
7713   gl_cv_host_cpu_c_abi_32bit=yes
7714 fi
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716            ;;
7717
7718          rs6000 )
7719            gl_cv_host_cpu_c_abi_32bit=yes
7720            ;;
7721
7722          riscv32 | riscv64 )
7723            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7724            # Size of 'long' and 'void *':
7725            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h.  */
7727 #if defined __LP64__
7728                     int ok;
7729                   #else
7730                     error fail
7731                   #endif
7732
7733 _ACEOF
7734 if ac_fn_c_try_compile "$LINENO"; then :
7735   gl_cv_host_cpu_c_abi_32bit=no
7736 else
7737   gl_cv_host_cpu_c_abi_32bit=yes
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740            ;;
7741
7742          s390* )
7743            # On s390x, the C compiler may be generating 64-bit (= s390x) code
7744            # or 31-bit (= s390) code.
7745            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h.  */
7747 #if defined __LP64__ || defined __s390x__
7748                     int ok;
7749                   #else
7750                     error fail
7751                   #endif
7752
7753 _ACEOF
7754 if ac_fn_c_try_compile "$LINENO"; then :
7755   gl_cv_host_cpu_c_abi_32bit=no
7756 else
7757   gl_cv_host_cpu_c_abi_32bit=yes
7758 fi
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760            ;;
7761
7762          sparc | sparc64 )
7763            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7764            # C compiler still generates 32-bit code.
7765            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h.  */
7767 #if defined __sparcv9 || defined __arch64__
7768                    int ok;
7769                   #else
7770                    error fail
7771                   #endif
7772
7773 _ACEOF
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775   gl_cv_host_cpu_c_abi_32bit=no
7776 else
7777   gl_cv_host_cpu_c_abi_32bit=yes
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780            ;;
7781
7782          *)
7783            gl_cv_host_cpu_c_abi_32bit=unknown
7784            ;;
7785        esac
7786      fi
7787
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7790 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7791
7792   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7793
7794
7795
7796
7797
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7799 $as_echo_n "checking for ELF binary format... " >&6; }
7800 if ${gl_cv_elf+:} false; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805 #ifdef __ELF__
7806         Extensible Linking Format
7807         #endif
7808
7809 _ACEOF
7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7812   gl_cv_elf=yes
7813 else
7814   gl_cv_elf=no
7815 fi
7816 rm -f conftest*
7817
7818
7819 fi
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7821 $as_echo "$gl_cv_elf" >&6; }
7822   if test $gl_cv_elf; then
7823     # Extract the ELF class of a file (5th byte) in decimal.
7824     # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7825     if od -A x < /dev/null >/dev/null 2>/dev/null; then
7826       # Use POSIX od.
7827       func_elfclass ()
7828       {
7829         od -A n -t d1 -j 4 -N 1
7830       }
7831     else
7832       # Use BSD hexdump.
7833       func_elfclass ()
7834       {
7835         dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7836         echo
7837       }
7838     fi
7839     case $HOST_CPU_C_ABI_32BIT in
7840       yes)
7841         # 32-bit ABI.
7842         acl_is_expected_elfclass ()
7843         {
7844           test "`func_elfclass | sed -e 's/[    ]//g'`" = 1
7845         }
7846         ;;
7847       no)
7848         # 64-bit ABI.
7849         acl_is_expected_elfclass ()
7850         {
7851           test "`func_elfclass | sed -e 's/[    ]//g'`" = 2
7852         }
7853         ;;
7854       *)
7855         # Unknown.
7856         acl_is_expected_elfclass ()
7857         {
7858           :
7859         }
7860         ;;
7861     esac
7862   else
7863     acl_is_expected_elfclass ()
7864     {
7865       :
7866     }
7867   fi
7868
7869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7870 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
7871 if ${acl_cv_libdirstems+:} false; then :
7872   $as_echo_n "(cached) " >&6
7873 else
7874             acl_libdirstem=lib
7875      acl_libdirstem2=
7876      acl_libdirstem3=
7877      case "$host_os" in
7878        solaris*)
7879                                                       if test $HOST_CPU_C_ABI_32BIT = no; then
7880            acl_libdirstem2=lib/64
7881            case "$host_cpu" in
7882              sparc*)        acl_libdirstem3=lib/sparcv9 ;;
7883              i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7884            esac
7885          fi
7886          ;;
7887        *)
7888                                                                                  searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7889                      | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7890          if test $HOST_CPU_C_ABI_32BIT != no; then
7891            # 32-bit or unknown ABI.
7892            if test -d /usr/lib32; then
7893              acl_libdirstem2=lib32
7894            fi
7895          fi
7896          if test $HOST_CPU_C_ABI_32BIT != yes; then
7897            # 64-bit or unknown ABI.
7898            if test -d /usr/lib64; then
7899              acl_libdirstem3=lib64
7900            fi
7901          fi
7902          if test -n "$searchpath"; then
7903            acl_save_IFS="${IFS=         }"; IFS=":"
7904            for searchdir in $searchpath; do
7905              if test -d "$searchdir"; then
7906                case "$searchdir" in
7907                  */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7908                  */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7909                  */../ | */.. )
7910                    # Better ignore directories of this form. They are misleading.
7911                    ;;
7912                  *) searchdir=`cd "$searchdir" && pwd`
7913                     case "$searchdir" in
7914                       */lib32 ) acl_libdirstem2=lib32 ;;
7915                       */lib64 ) acl_libdirstem3=lib64 ;;
7916                     esac ;;
7917                esac
7918              fi
7919            done
7920            IFS="$acl_save_IFS"
7921            if test $HOST_CPU_C_ABI_32BIT = yes; then
7922              # 32-bit ABI.
7923              acl_libdirstem3=
7924            fi
7925            if test $HOST_CPU_C_ABI_32BIT = no; then
7926              # 64-bit ABI.
7927              acl_libdirstem2=
7928            fi
7929          fi
7930          ;;
7931      esac
7932      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7933      test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7934      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7935
7936 fi
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7938 $as_echo "$acl_cv_libdirstems" >&6; }
7939       acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7940   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7941   acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953     use_additional=yes
7954
7955   acl_save_prefix="$prefix"
7956   prefix="$acl_final_prefix"
7957   acl_save_exec_prefix="$exec_prefix"
7958   exec_prefix="$acl_final_exec_prefix"
7959
7960     eval additional_includedir=\"$includedir\"
7961     eval additional_libdir=\"$libdir\"
7962     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7963     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7964
7965   exec_prefix="$acl_save_exec_prefix"
7966   prefix="$acl_save_prefix"
7967
7968
7969 # Check whether --with-libiconv-prefix was given.
7970 if test "${with_libiconv_prefix+set}" = set; then :
7971   withval=$with_libiconv_prefix;
7972     if test "X$withval" = "Xno"; then
7973       use_additional=no
7974     else
7975       if test "X$withval" = "X"; then
7976
7977   acl_save_prefix="$prefix"
7978   prefix="$acl_final_prefix"
7979   acl_save_exec_prefix="$exec_prefix"
7980   exec_prefix="$acl_final_exec_prefix"
7981
7982           eval additional_includedir=\"$includedir\"
7983           eval additional_libdir=\"$libdir\"
7984           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7985           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7986
7987   exec_prefix="$acl_save_exec_prefix"
7988   prefix="$acl_save_prefix"
7989
7990       else
7991         additional_includedir="$withval/include"
7992         additional_libdir="$withval/$acl_libdirstem"
7993         additional_libdir2="$withval/$acl_libdirstem2"
7994         additional_libdir3="$withval/$acl_libdirstem3"
7995       fi
7996     fi
7997
7998 fi
7999
8000   if test "X$additional_libdir2" = "X$additional_libdir"; then
8001     additional_libdir2=
8002   fi
8003   if test "X$additional_libdir3" = "X$additional_libdir"; then
8004     additional_libdir3=
8005   fi
8006       LIBICONV=
8007   LTLIBICONV=
8008   INCICONV=
8009   LIBICONV_PREFIX=
8010       HAVE_LIBICONV=
8011   rpathdirs=
8012   ltrpathdirs=
8013   names_already_handled=
8014   names_next_round='iconv '
8015   while test -n "$names_next_round"; do
8016     names_this_round="$names_next_round"
8017     names_next_round=
8018     for name in $names_this_round; do
8019       already_handled=
8020       for n in $names_already_handled; do
8021         if test "$n" = "$name"; then
8022           already_handled=yes
8023           break
8024         fi
8025       done
8026       if test -z "$already_handled"; then
8027         names_already_handled="$names_already_handled $name"
8028                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8029         eval value=\"\$HAVE_LIB$uppername\"
8030         if test -n "$value"; then
8031           if test "$value" = yes; then
8032             eval value=\"\$LIB$uppername\"
8033             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8034             eval value=\"\$LTLIB$uppername\"
8035             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8036           else
8037                                     :
8038           fi
8039         else
8040                               found_dir=
8041           found_la=
8042           found_so=
8043           found_a=
8044           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8045           if test -n "$acl_shlibext"; then
8046             shrext=".$acl_shlibext"             # typically: shrext=.so
8047           else
8048             shrext=
8049           fi
8050           if test $use_additional = yes; then
8051             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8052               if test "X$found_dir" = "X"; then
8053                 eval dir=\$$additional_libdir_variable
8054                 if test -n "$dir"; then
8055                                                       if test -n "$acl_shlibext"; then
8056                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8057                       found_dir="$dir"
8058                       found_so="$dir/$libname$shrext"
8059                     else
8060                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8061                         ver=`(cd "$dir" && \
8062                               for f in "$libname$shrext".*; do echo "$f"; done \
8063                               | sed -e "s,^$libname$shrext\\\\.,," \
8064                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8065                               | sed 1q ) 2>/dev/null`
8066                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8067                           found_dir="$dir"
8068                           found_so="$dir/$libname$shrext.$ver"
8069                         fi
8070                       else
8071                         eval library_names=\"$acl_library_names_spec\"
8072                         for f in $library_names; do
8073                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8074                             found_dir="$dir"
8075                             found_so="$dir/$f"
8076                             break
8077                           fi
8078                         done
8079                       fi
8080                     fi
8081                   fi
8082                                     if test "X$found_dir" = "X"; then
8083                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8084                       found_dir="$dir"
8085                       found_a="$dir/$libname.$acl_libext"
8086                     fi
8087                   fi
8088                   if test "X$found_dir" != "X"; then
8089                     if test -f "$dir/$libname.la"; then
8090                       found_la="$dir/$libname.la"
8091                     fi
8092                   fi
8093                 fi
8094               fi
8095             done
8096           fi
8097           if test "X$found_dir" = "X"; then
8098             for x in $LDFLAGS $LTLIBICONV; do
8099
8100   acl_save_prefix="$prefix"
8101   prefix="$acl_final_prefix"
8102   acl_save_exec_prefix="$exec_prefix"
8103   exec_prefix="$acl_final_exec_prefix"
8104   eval x=\"$x\"
8105   exec_prefix="$acl_save_exec_prefix"
8106   prefix="$acl_save_prefix"
8107
8108               case "$x" in
8109                 -L*)
8110                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8111                                     if test -n "$acl_shlibext"; then
8112                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8113                       found_dir="$dir"
8114                       found_so="$dir/$libname$shrext"
8115                     else
8116                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8117                         ver=`(cd "$dir" && \
8118                               for f in "$libname$shrext".*; do echo "$f"; done \
8119                               | sed -e "s,^$libname$shrext\\\\.,," \
8120                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8121                               | sed 1q ) 2>/dev/null`
8122                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8123                           found_dir="$dir"
8124                           found_so="$dir/$libname$shrext.$ver"
8125                         fi
8126                       else
8127                         eval library_names=\"$acl_library_names_spec\"
8128                         for f in $library_names; do
8129                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8130                             found_dir="$dir"
8131                             found_so="$dir/$f"
8132                             break
8133                           fi
8134                         done
8135                       fi
8136                     fi
8137                   fi
8138                                     if test "X$found_dir" = "X"; then
8139                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8140                       found_dir="$dir"
8141                       found_a="$dir/$libname.$acl_libext"
8142                     fi
8143                   fi
8144                   if test "X$found_dir" != "X"; then
8145                     if test -f "$dir/$libname.la"; then
8146                       found_la="$dir/$libname.la"
8147                     fi
8148                   fi
8149                   ;;
8150               esac
8151               if test "X$found_dir" != "X"; then
8152                 break
8153               fi
8154             done
8155           fi
8156           if test "X$found_dir" != "X"; then
8157                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8158             if test "X$found_so" != "X"; then
8159                                                         if test "$enable_rpath" = no \
8160                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8161                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8162                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
8163                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8164               else
8165                                                                                 haveit=
8166                 for x in $ltrpathdirs; do
8167                   if test "X$x" = "X$found_dir"; then
8168                     haveit=yes
8169                     break
8170                   fi
8171                 done
8172                 if test -z "$haveit"; then
8173                   ltrpathdirs="$ltrpathdirs $found_dir"
8174                 fi
8175                                 if test "$acl_hardcode_direct" = yes; then
8176                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8177                 else
8178                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8179                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8180                                                             haveit=
8181                     for x in $rpathdirs; do
8182                       if test "X$x" = "X$found_dir"; then
8183                         haveit=yes
8184                         break
8185                       fi
8186                     done
8187                     if test -z "$haveit"; then
8188                       rpathdirs="$rpathdirs $found_dir"
8189                     fi
8190                   else
8191                                                                                 haveit=
8192                     for x in $LDFLAGS $LIBICONV; do
8193
8194   acl_save_prefix="$prefix"
8195   prefix="$acl_final_prefix"
8196   acl_save_exec_prefix="$exec_prefix"
8197   exec_prefix="$acl_final_exec_prefix"
8198   eval x=\"$x\"
8199   exec_prefix="$acl_save_exec_prefix"
8200   prefix="$acl_save_prefix"
8201
8202                       if test "X$x" = "X-L$found_dir"; then
8203                         haveit=yes
8204                         break
8205                       fi
8206                     done
8207                     if test -z "$haveit"; then
8208                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8209                     fi
8210                     if test "$acl_hardcode_minus_L" != no; then
8211                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8212                     else
8213                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8214                     fi
8215                   fi
8216                 fi
8217               fi
8218             else
8219               if test "X$found_a" != "X"; then
8220                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8221               else
8222                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8223               fi
8224             fi
8225                         additional_includedir=
8226             case "$found_dir" in
8227               */$acl_libdirstem | */$acl_libdirstem/)
8228                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8229                 if test "$name" = 'iconv'; then
8230                   LIBICONV_PREFIX="$basedir"
8231                 fi
8232                 additional_includedir="$basedir/include"
8233                 ;;
8234               */$acl_libdirstem2 | */$acl_libdirstem2/)
8235                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8236                 if test "$name" = 'iconv'; then
8237                   LIBICONV_PREFIX="$basedir"
8238                 fi
8239                 additional_includedir="$basedir/include"
8240                 ;;
8241               */$acl_libdirstem3 | */$acl_libdirstem3/)
8242                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8243                 if test "$name" = 'iconv'; then
8244                   LIBICONV_PREFIX="$basedir"
8245                 fi
8246                 additional_includedir="$basedir/include"
8247                 ;;
8248             esac
8249             if test "X$additional_includedir" != "X"; then
8250                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8251                 haveit=
8252                 if test "X$additional_includedir" = "X/usr/local/include"; then
8253                   if test -n "$GCC"; then
8254                     case $host_os in
8255                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8256                     esac
8257                   fi
8258                 fi
8259                 if test -z "$haveit"; then
8260                   for x in $CPPFLAGS $INCICONV; do
8261
8262   acl_save_prefix="$prefix"
8263   prefix="$acl_final_prefix"
8264   acl_save_exec_prefix="$exec_prefix"
8265   exec_prefix="$acl_final_exec_prefix"
8266   eval x=\"$x\"
8267   exec_prefix="$acl_save_exec_prefix"
8268   prefix="$acl_save_prefix"
8269
8270                     if test "X$x" = "X-I$additional_includedir"; then
8271                       haveit=yes
8272                       break
8273                     fi
8274                   done
8275                   if test -z "$haveit"; then
8276                     if test -d "$additional_includedir"; then
8277                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8278                     fi
8279                   fi
8280                 fi
8281               fi
8282             fi
8283                         if test -n "$found_la"; then
8284                                                         save_libdir="$libdir"
8285               case "$found_la" in
8286                 */* | *\\*) . "$found_la" ;;
8287                 *) . "./$found_la" ;;
8288               esac
8289               libdir="$save_libdir"
8290                             for dep in $dependency_libs; do
8291                 case "$dep" in
8292                   -L*)
8293                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8294                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8295                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8296                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
8297                       haveit=
8298                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8299                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8300                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
8301                         if test -n "$GCC"; then
8302                           case $host_os in
8303                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8304                           esac
8305                         fi
8306                       fi
8307                       if test -z "$haveit"; then
8308                         haveit=
8309                         for x in $LDFLAGS $LIBICONV; do
8310
8311   acl_save_prefix="$prefix"
8312   prefix="$acl_final_prefix"
8313   acl_save_exec_prefix="$exec_prefix"
8314   exec_prefix="$acl_final_exec_prefix"
8315   eval x=\"$x\"
8316   exec_prefix="$acl_save_exec_prefix"
8317   prefix="$acl_save_prefix"
8318
8319                           if test "X$x" = "X-L$dependency_libdir"; then
8320                             haveit=yes
8321                             break
8322                           fi
8323                         done
8324                         if test -z "$haveit"; then
8325                           if test -d "$dependency_libdir"; then
8326                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
8327                           fi
8328                         fi
8329                         haveit=
8330                         for x in $LDFLAGS $LTLIBICONV; do
8331
8332   acl_save_prefix="$prefix"
8333   prefix="$acl_final_prefix"
8334   acl_save_exec_prefix="$exec_prefix"
8335   exec_prefix="$acl_final_exec_prefix"
8336   eval x=\"$x\"
8337   exec_prefix="$acl_save_exec_prefix"
8338   prefix="$acl_save_prefix"
8339
8340                           if test "X$x" = "X-L$dependency_libdir"; then
8341                             haveit=yes
8342                             break
8343                           fi
8344                         done
8345                         if test -z "$haveit"; then
8346                           if test -d "$dependency_libdir"; then
8347                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
8348                           fi
8349                         fi
8350                       fi
8351                     fi
8352                     ;;
8353                   -R*)
8354                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8355                     if test "$enable_rpath" != no; then
8356                                                                   haveit=
8357                       for x in $rpathdirs; do
8358                         if test "X$x" = "X$dir"; then
8359                           haveit=yes
8360                           break
8361                         fi
8362                       done
8363                       if test -z "$haveit"; then
8364                         rpathdirs="$rpathdirs $dir"
8365                       fi
8366                                                                   haveit=
8367                       for x in $ltrpathdirs; do
8368                         if test "X$x" = "X$dir"; then
8369                           haveit=yes
8370                           break
8371                         fi
8372                       done
8373                       if test -z "$haveit"; then
8374                         ltrpathdirs="$ltrpathdirs $dir"
8375                       fi
8376                     fi
8377                     ;;
8378                   -l*)
8379                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8380                     ;;
8381                   *.la)
8382                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8383                     ;;
8384                   *)
8385                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8386                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8387                     ;;
8388                 esac
8389               done
8390             fi
8391           else
8392                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8393             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8394           fi
8395         fi
8396       fi
8397     done
8398   done
8399   if test "X$rpathdirs" != "X"; then
8400     if test -n "$acl_hardcode_libdir_separator"; then
8401                         alldirs=
8402       for found_dir in $rpathdirs; do
8403         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8404       done
8405             acl_save_libdir="$libdir"
8406       libdir="$alldirs"
8407       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8408       libdir="$acl_save_libdir"
8409       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8410     else
8411             for found_dir in $rpathdirs; do
8412         acl_save_libdir="$libdir"
8413         libdir="$found_dir"
8414         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8415         libdir="$acl_save_libdir"
8416         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8417       done
8418     fi
8419   fi
8420   if test "X$ltrpathdirs" != "X"; then
8421             for found_dir in $ltrpathdirs; do
8422       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8423     done
8424   fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8455 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8456 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8457   $as_echo_n "(cached) " >&6
8458 else
8459   gt_save_LIBS="$LIBS"
8460      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8461      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h.  */
8463 #include <CoreFoundation/CFPreferences.h>
8464 int
8465 main ()
8466 {
8467 CFPreferencesCopyAppValue(NULL, NULL)
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 if ac_fn_c_try_link "$LINENO"; then :
8473   gt_cv_func_CFPreferencesCopyAppValue=yes
8474 else
8475   gt_cv_func_CFPreferencesCopyAppValue=no
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext \
8478     conftest$ac_exeext conftest.$ac_ext
8479      LIBS="$gt_save_LIBS"
8480 fi
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8482 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8483   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8484
8485 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8486
8487   fi
8488                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8489 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8490 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
8491   $as_echo_n "(cached) " >&6
8492 else
8493   gt_save_LIBS="$LIBS"
8494      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8495      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h.  */
8497 #include <CoreFoundation/CFLocale.h>
8498 int
8499 main ()
8500 {
8501 CFLocaleCopyPreferredLanguages();
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 if ac_fn_c_try_link "$LINENO"; then :
8507   gt_cv_func_CFLocaleCopyPreferredLanguages=yes
8508 else
8509   gt_cv_func_CFLocaleCopyPreferredLanguages=no
8510 fi
8511 rm -f core conftest.err conftest.$ac_objext \
8512     conftest$ac_exeext conftest.$ac_ext
8513      LIBS="$gt_save_LIBS"
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8516 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8517   if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8518
8519 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
8520
8521   fi
8522   INTL_MACOSX_LIBS=
8523   if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8524      || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8525     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8526   fi
8527
8528
8529
8530
8531
8532
8533   LIBINTL=
8534   LTLIBINTL=
8535   POSUB=
8536
8537     case " $gt_needs " in
8538     *" need-formatstring-macros "*) gt_api_version=3 ;;
8539     *" need-ngettext "*) gt_api_version=2 ;;
8540     *) gt_api_version=1 ;;
8541   esac
8542   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8543   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8544
8545     if test "$USE_NLS" = "yes"; then
8546     gt_use_preinstalled_gnugettext=no
8547
8548
8549         if test $gt_api_version -ge 3; then
8550           gt_revision_test_code='
8551 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8552 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8553 #endif
8554 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8555 '
8556         else
8557           gt_revision_test_code=
8558         fi
8559         if test $gt_api_version -ge 2; then
8560           gt_expression_test_code=' + * ngettext ("", "", 0)'
8561         else
8562           gt_expression_test_code=
8563         fi
8564
8565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8566 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8567 if eval \${$gt_func_gnugettext_libc+:} false; then :
8568   $as_echo_n "(cached) " >&6
8569 else
8570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h.  */
8572
8573 #include <libintl.h>
8574 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8575 extern int _nl_msg_cat_cntr;
8576 extern int *_nl_domain_bindings;
8577 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8578 #else
8579 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8580 #endif
8581 $gt_revision_test_code
8582
8583 int
8584 main ()
8585 {
8586
8587 bindtextdomain ("", "");
8588 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8589
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 if ac_fn_c_try_link "$LINENO"; then :
8595   eval "$gt_func_gnugettext_libc=yes"
8596 else
8597   eval "$gt_func_gnugettext_libc=no"
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext \
8600     conftest$ac_exeext conftest.$ac_ext
8601 fi
8602 eval ac_res=\$$gt_func_gnugettext_libc
8603                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8604 $as_echo "$ac_res" >&6; }
8605
8606         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8607
8608
8609
8610
8611
8612           am_save_CPPFLAGS="$CPPFLAGS"
8613
8614   for element in $INCICONV; do
8615     haveit=
8616     for x in $CPPFLAGS; do
8617
8618   acl_save_prefix="$prefix"
8619   prefix="$acl_final_prefix"
8620   acl_save_exec_prefix="$exec_prefix"
8621   exec_prefix="$acl_final_exec_prefix"
8622   eval x=\"$x\"
8623   exec_prefix="$acl_save_exec_prefix"
8624   prefix="$acl_save_prefix"
8625
8626       if test "X$x" = "X$element"; then
8627         haveit=yes
8628         break
8629       fi
8630     done
8631     if test -z "$haveit"; then
8632       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8633     fi
8634   done
8635
8636
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8638 $as_echo_n "checking for iconv... " >&6; }
8639 if ${am_cv_func_iconv+:} false; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642
8643     am_cv_func_iconv="no, consider installing GNU libiconv"
8644     am_cv_lib_iconv=no
8645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h.  */
8647
8648 #include <stdlib.h>
8649 #include <iconv.h>
8650
8651 int
8652 main ()
8653 {
8654 iconv_t cd = iconv_open("","");
8655            iconv(cd,NULL,NULL,NULL,NULL);
8656            iconv_close(cd);
8657   ;
8658   return 0;
8659 }
8660 _ACEOF
8661 if ac_fn_c_try_link "$LINENO"; then :
8662   am_cv_func_iconv=yes
8663 fi
8664 rm -f core conftest.err conftest.$ac_objext \
8665     conftest$ac_exeext conftest.$ac_ext
8666     if test "$am_cv_func_iconv" != yes; then
8667       am_save_LIBS="$LIBS"
8668       LIBS="$LIBS $LIBICONV"
8669       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h.  */
8671
8672 #include <stdlib.h>
8673 #include <iconv.h>
8674
8675 int
8676 main ()
8677 {
8678 iconv_t cd = iconv_open("","");
8679              iconv(cd,NULL,NULL,NULL,NULL);
8680              iconv_close(cd);
8681   ;
8682   return 0;
8683 }
8684 _ACEOF
8685 if ac_fn_c_try_link "$LINENO"; then :
8686   am_cv_lib_iconv=yes
8687         am_cv_func_iconv=yes
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext \
8690     conftest$ac_exeext conftest.$ac_ext
8691       LIBS="$am_save_LIBS"
8692     fi
8693
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8696 $as_echo "$am_cv_func_iconv" >&6; }
8697   if test "$am_cv_func_iconv" = yes; then
8698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8699 $as_echo_n "checking for working iconv... " >&6; }
8700 if ${am_cv_func_iconv_works+:} false; then :
8701   $as_echo_n "(cached) " >&6
8702 else
8703
8704                   am_save_LIBS="$LIBS"
8705       if test $am_cv_lib_iconv = yes; then
8706         LIBS="$LIBS $LIBICONV"
8707       fi
8708       am_cv_func_iconv_works=no
8709       for ac_iconv_const in '' 'const'; do
8710         if test "$cross_compiling" = yes; then :
8711   case "$host_os" in
8712              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8713              *)            am_cv_func_iconv_works="guessing yes" ;;
8714            esac
8715 else
8716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h.  */
8718
8719 #include <iconv.h>
8720 #include <string.h>
8721
8722 #ifndef ICONV_CONST
8723 # define ICONV_CONST $ac_iconv_const
8724 #endif
8725
8726 int
8727 main ()
8728 {
8729 int result = 0;
8730   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8731      returns.  */
8732   {
8733     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8734     if (cd_utf8_to_88591 != (iconv_t)(-1))
8735       {
8736         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8737         char buf[10];
8738         ICONV_CONST char *inptr = input;
8739         size_t inbytesleft = strlen (input);
8740         char *outptr = buf;
8741         size_t outbytesleft = sizeof (buf);
8742         size_t res = iconv (cd_utf8_to_88591,
8743                             &inptr, &inbytesleft,
8744                             &outptr, &outbytesleft);
8745         if (res == 0)
8746           result |= 1;
8747         iconv_close (cd_utf8_to_88591);
8748       }
8749   }
8750   /* Test against Solaris 10 bug: Failures are not distinguishable from
8751      successful returns.  */
8752   {
8753     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8754     if (cd_ascii_to_88591 != (iconv_t)(-1))
8755       {
8756         static ICONV_CONST char input[] = "\263";
8757         char buf[10];
8758         ICONV_CONST char *inptr = input;
8759         size_t inbytesleft = strlen (input);
8760         char *outptr = buf;
8761         size_t outbytesleft = sizeof (buf);
8762         size_t res = iconv (cd_ascii_to_88591,
8763                             &inptr, &inbytesleft,
8764                             &outptr, &outbytesleft);
8765         if (res == 0)
8766           result |= 2;
8767         iconv_close (cd_ascii_to_88591);
8768       }
8769   }
8770   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
8771   {
8772     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8773     if (cd_88591_to_utf8 != (iconv_t)(-1))
8774       {
8775         static ICONV_CONST char input[] = "\304";
8776         static char buf[2] = { (char)0xDE, (char)0xAD };
8777         ICONV_CONST char *inptr = input;
8778         size_t inbytesleft = 1;
8779         char *outptr = buf;
8780         size_t outbytesleft = 1;
8781         size_t res = iconv (cd_88591_to_utf8,
8782                             &inptr, &inbytesleft,
8783                             &outptr, &outbytesleft);
8784         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8785           result |= 4;
8786         iconv_close (cd_88591_to_utf8);
8787       }
8788   }
8789 #if 0 /* This bug could be worked around by the caller.  */
8790   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
8791   {
8792     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8793     if (cd_88591_to_utf8 != (iconv_t)(-1))
8794       {
8795         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8796         char buf[50];
8797         ICONV_CONST char *inptr = input;
8798         size_t inbytesleft = strlen (input);
8799         char *outptr = buf;
8800         size_t outbytesleft = sizeof (buf);
8801         size_t res = iconv (cd_88591_to_utf8,
8802                             &inptr, &inbytesleft,
8803                             &outptr, &outbytesleft);
8804         if ((int)res > 0)
8805           result |= 8;
8806         iconv_close (cd_88591_to_utf8);
8807       }
8808   }
8809 #endif
8810   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8811      provided.  */
8812   {
8813     /* Try standardized names.  */
8814     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8815     /* Try IRIX, OSF/1 names.  */
8816     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8817     /* Try AIX names.  */
8818     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8819     /* Try HP-UX names.  */
8820     iconv_t cd4 = iconv_open ("utf8", "eucJP");
8821     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8822         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8823       result |= 16;
8824     if (cd1 != (iconv_t)(-1))
8825       iconv_close (cd1);
8826     if (cd2 != (iconv_t)(-1))
8827       iconv_close (cd2);
8828     if (cd3 != (iconv_t)(-1))
8829       iconv_close (cd3);
8830     if (cd4 != (iconv_t)(-1))
8831       iconv_close (cd4);
8832   }
8833   return result;
8834
8835   ;
8836   return 0;
8837 }
8838 _ACEOF
8839 if ac_fn_c_try_run "$LINENO"; then :
8840   am_cv_func_iconv_works=yes
8841 fi
8842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8843   conftest.$ac_objext conftest.beam conftest.$ac_ext
8844 fi
8845
8846         test "$am_cv_func_iconv_works" = no || break
8847       done
8848       LIBS="$am_save_LIBS"
8849
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8852 $as_echo "$am_cv_func_iconv_works" >&6; }
8853     case "$am_cv_func_iconv_works" in
8854       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8855       *)   am_func_iconv=yes ;;
8856     esac
8857   else
8858     am_func_iconv=no am_cv_lib_iconv=no
8859   fi
8860   if test "$am_func_iconv" = yes; then
8861
8862 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8863
8864   fi
8865   if test "$am_cv_lib_iconv" = yes; then
8866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8867 $as_echo_n "checking how to link with libiconv... " >&6; }
8868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8869 $as_echo "$LIBICONV" >&6; }
8870   else
8871             CPPFLAGS="$am_save_CPPFLAGS"
8872     LIBICONV=
8873     LTLIBICONV=
8874   fi
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885     use_additional=yes
8886
8887   acl_save_prefix="$prefix"
8888   prefix="$acl_final_prefix"
8889   acl_save_exec_prefix="$exec_prefix"
8890   exec_prefix="$acl_final_exec_prefix"
8891
8892     eval additional_includedir=\"$includedir\"
8893     eval additional_libdir=\"$libdir\"
8894     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8895     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8896
8897   exec_prefix="$acl_save_exec_prefix"
8898   prefix="$acl_save_prefix"
8899
8900
8901 # Check whether --with-libintl-prefix was given.
8902 if test "${with_libintl_prefix+set}" = set; then :
8903   withval=$with_libintl_prefix;
8904     if test "X$withval" = "Xno"; then
8905       use_additional=no
8906     else
8907       if test "X$withval" = "X"; then
8908
8909   acl_save_prefix="$prefix"
8910   prefix="$acl_final_prefix"
8911   acl_save_exec_prefix="$exec_prefix"
8912   exec_prefix="$acl_final_exec_prefix"
8913
8914           eval additional_includedir=\"$includedir\"
8915           eval additional_libdir=\"$libdir\"
8916           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8917           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8918
8919   exec_prefix="$acl_save_exec_prefix"
8920   prefix="$acl_save_prefix"
8921
8922       else
8923         additional_includedir="$withval/include"
8924         additional_libdir="$withval/$acl_libdirstem"
8925         additional_libdir2="$withval/$acl_libdirstem2"
8926         additional_libdir3="$withval/$acl_libdirstem3"
8927       fi
8928     fi
8929
8930 fi
8931
8932   if test "X$additional_libdir2" = "X$additional_libdir"; then
8933     additional_libdir2=
8934   fi
8935   if test "X$additional_libdir3" = "X$additional_libdir"; then
8936     additional_libdir3=
8937   fi
8938       LIBINTL=
8939   LTLIBINTL=
8940   INCINTL=
8941   LIBINTL_PREFIX=
8942       HAVE_LIBINTL=
8943   rpathdirs=
8944   ltrpathdirs=
8945   names_already_handled=
8946   names_next_round='intl '
8947   while test -n "$names_next_round"; do
8948     names_this_round="$names_next_round"
8949     names_next_round=
8950     for name in $names_this_round; do
8951       already_handled=
8952       for n in $names_already_handled; do
8953         if test "$n" = "$name"; then
8954           already_handled=yes
8955           break
8956         fi
8957       done
8958       if test -z "$already_handled"; then
8959         names_already_handled="$names_already_handled $name"
8960                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8961         eval value=\"\$HAVE_LIB$uppername\"
8962         if test -n "$value"; then
8963           if test "$value" = yes; then
8964             eval value=\"\$LIB$uppername\"
8965             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8966             eval value=\"\$LTLIB$uppername\"
8967             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8968           else
8969                                     :
8970           fi
8971         else
8972                               found_dir=
8973           found_la=
8974           found_so=
8975           found_a=
8976           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8977           if test -n "$acl_shlibext"; then
8978             shrext=".$acl_shlibext"             # typically: shrext=.so
8979           else
8980             shrext=
8981           fi
8982           if test $use_additional = yes; then
8983             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8984               if test "X$found_dir" = "X"; then
8985                 eval dir=\$$additional_libdir_variable
8986                 if test -n "$dir"; then
8987                                                       if test -n "$acl_shlibext"; then
8988                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8989                       found_dir="$dir"
8990                       found_so="$dir/$libname$shrext"
8991                     else
8992                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8993                         ver=`(cd "$dir" && \
8994                               for f in "$libname$shrext".*; do echo "$f"; done \
8995                               | sed -e "s,^$libname$shrext\\\\.,," \
8996                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8997                               | sed 1q ) 2>/dev/null`
8998                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8999                           found_dir="$dir"
9000                           found_so="$dir/$libname$shrext.$ver"
9001                         fi
9002                       else
9003                         eval library_names=\"$acl_library_names_spec\"
9004                         for f in $library_names; do
9005                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9006                             found_dir="$dir"
9007                             found_so="$dir/$f"
9008                             break
9009                           fi
9010                         done
9011                       fi
9012                     fi
9013                   fi
9014                                     if test "X$found_dir" = "X"; then
9015                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9016                       found_dir="$dir"
9017                       found_a="$dir/$libname.$acl_libext"
9018                     fi
9019                   fi
9020                   if test "X$found_dir" != "X"; then
9021                     if test -f "$dir/$libname.la"; then
9022                       found_la="$dir/$libname.la"
9023                     fi
9024                   fi
9025                 fi
9026               fi
9027             done
9028           fi
9029           if test "X$found_dir" = "X"; then
9030             for x in $LDFLAGS $LTLIBINTL; do
9031
9032   acl_save_prefix="$prefix"
9033   prefix="$acl_final_prefix"
9034   acl_save_exec_prefix="$exec_prefix"
9035   exec_prefix="$acl_final_exec_prefix"
9036   eval x=\"$x\"
9037   exec_prefix="$acl_save_exec_prefix"
9038   prefix="$acl_save_prefix"
9039
9040               case "$x" in
9041                 -L*)
9042                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9043                                     if test -n "$acl_shlibext"; then
9044                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9045                       found_dir="$dir"
9046                       found_so="$dir/$libname$shrext"
9047                     else
9048                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9049                         ver=`(cd "$dir" && \
9050                               for f in "$libname$shrext".*; do echo "$f"; done \
9051                               | sed -e "s,^$libname$shrext\\\\.,," \
9052                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9053                               | sed 1q ) 2>/dev/null`
9054                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9055                           found_dir="$dir"
9056                           found_so="$dir/$libname$shrext.$ver"
9057                         fi
9058                       else
9059                         eval library_names=\"$acl_library_names_spec\"
9060                         for f in $library_names; do
9061                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9062                             found_dir="$dir"
9063                             found_so="$dir/$f"
9064                             break
9065                           fi
9066                         done
9067                       fi
9068                     fi
9069                   fi
9070                                     if test "X$found_dir" = "X"; then
9071                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9072                       found_dir="$dir"
9073                       found_a="$dir/$libname.$acl_libext"
9074                     fi
9075                   fi
9076                   if test "X$found_dir" != "X"; then
9077                     if test -f "$dir/$libname.la"; then
9078                       found_la="$dir/$libname.la"
9079                     fi
9080                   fi
9081                   ;;
9082               esac
9083               if test "X$found_dir" != "X"; then
9084                 break
9085               fi
9086             done
9087           fi
9088           if test "X$found_dir" != "X"; then
9089                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9090             if test "X$found_so" != "X"; then
9091                                                         if test "$enable_rpath" = no \
9092                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9093                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9094                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9095                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9096               else
9097                                                                                 haveit=
9098                 for x in $ltrpathdirs; do
9099                   if test "X$x" = "X$found_dir"; then
9100                     haveit=yes
9101                     break
9102                   fi
9103                 done
9104                 if test -z "$haveit"; then
9105                   ltrpathdirs="$ltrpathdirs $found_dir"
9106                 fi
9107                                 if test "$acl_hardcode_direct" = yes; then
9108                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9109                 else
9110                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9111                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9112                                                             haveit=
9113                     for x in $rpathdirs; do
9114                       if test "X$x" = "X$found_dir"; then
9115                         haveit=yes
9116                         break
9117                       fi
9118                     done
9119                     if test -z "$haveit"; then
9120                       rpathdirs="$rpathdirs $found_dir"
9121                     fi
9122                   else
9123                                                                                 haveit=
9124                     for x in $LDFLAGS $LIBINTL; do
9125
9126   acl_save_prefix="$prefix"
9127   prefix="$acl_final_prefix"
9128   acl_save_exec_prefix="$exec_prefix"
9129   exec_prefix="$acl_final_exec_prefix"
9130   eval x=\"$x\"
9131   exec_prefix="$acl_save_exec_prefix"
9132   prefix="$acl_save_prefix"
9133
9134                       if test "X$x" = "X-L$found_dir"; then
9135                         haveit=yes
9136                         break
9137                       fi
9138                     done
9139                     if test -z "$haveit"; then
9140                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9141                     fi
9142                     if test "$acl_hardcode_minus_L" != no; then
9143                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9144                     else
9145                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9146                     fi
9147                   fi
9148                 fi
9149               fi
9150             else
9151               if test "X$found_a" != "X"; then
9152                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9153               else
9154                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9155               fi
9156             fi
9157                         additional_includedir=
9158             case "$found_dir" in
9159               */$acl_libdirstem | */$acl_libdirstem/)
9160                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9161                 if test "$name" = 'intl'; then
9162                   LIBINTL_PREFIX="$basedir"
9163                 fi
9164                 additional_includedir="$basedir/include"
9165                 ;;
9166               */$acl_libdirstem2 | */$acl_libdirstem2/)
9167                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9168                 if test "$name" = 'intl'; then
9169                   LIBINTL_PREFIX="$basedir"
9170                 fi
9171                 additional_includedir="$basedir/include"
9172                 ;;
9173               */$acl_libdirstem3 | */$acl_libdirstem3/)
9174                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9175                 if test "$name" = 'intl'; then
9176                   LIBINTL_PREFIX="$basedir"
9177                 fi
9178                 additional_includedir="$basedir/include"
9179                 ;;
9180             esac
9181             if test "X$additional_includedir" != "X"; then
9182                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9183                 haveit=
9184                 if test "X$additional_includedir" = "X/usr/local/include"; then
9185                   if test -n "$GCC"; then
9186                     case $host_os in
9187                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9188                     esac
9189                   fi
9190                 fi
9191                 if test -z "$haveit"; then
9192                   for x in $CPPFLAGS $INCINTL; do
9193
9194   acl_save_prefix="$prefix"
9195   prefix="$acl_final_prefix"
9196   acl_save_exec_prefix="$exec_prefix"
9197   exec_prefix="$acl_final_exec_prefix"
9198   eval x=\"$x\"
9199   exec_prefix="$acl_save_exec_prefix"
9200   prefix="$acl_save_prefix"
9201
9202                     if test "X$x" = "X-I$additional_includedir"; then
9203                       haveit=yes
9204                       break
9205                     fi
9206                   done
9207                   if test -z "$haveit"; then
9208                     if test -d "$additional_includedir"; then
9209                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9210                     fi
9211                   fi
9212                 fi
9213               fi
9214             fi
9215                         if test -n "$found_la"; then
9216                                                         save_libdir="$libdir"
9217               case "$found_la" in
9218                 */* | *\\*) . "$found_la" ;;
9219                 *) . "./$found_la" ;;
9220               esac
9221               libdir="$save_libdir"
9222                             for dep in $dependency_libs; do
9223                 case "$dep" in
9224                   -L*)
9225                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9226                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9227                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9228                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9229                       haveit=
9230                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9231                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9232                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9233                         if test -n "$GCC"; then
9234                           case $host_os in
9235                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9236                           esac
9237                         fi
9238                       fi
9239                       if test -z "$haveit"; then
9240                         haveit=
9241                         for x in $LDFLAGS $LIBINTL; do
9242
9243   acl_save_prefix="$prefix"
9244   prefix="$acl_final_prefix"
9245   acl_save_exec_prefix="$exec_prefix"
9246   exec_prefix="$acl_final_exec_prefix"
9247   eval x=\"$x\"
9248   exec_prefix="$acl_save_exec_prefix"
9249   prefix="$acl_save_prefix"
9250
9251                           if test "X$x" = "X-L$dependency_libdir"; then
9252                             haveit=yes
9253                             break
9254                           fi
9255                         done
9256                         if test -z "$haveit"; then
9257                           if test -d "$dependency_libdir"; then
9258                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
9259                           fi
9260                         fi
9261                         haveit=
9262                         for x in $LDFLAGS $LTLIBINTL; do
9263
9264   acl_save_prefix="$prefix"
9265   prefix="$acl_final_prefix"
9266   acl_save_exec_prefix="$exec_prefix"
9267   exec_prefix="$acl_final_exec_prefix"
9268   eval x=\"$x\"
9269   exec_prefix="$acl_save_exec_prefix"
9270   prefix="$acl_save_prefix"
9271
9272                           if test "X$x" = "X-L$dependency_libdir"; then
9273                             haveit=yes
9274                             break
9275                           fi
9276                         done
9277                         if test -z "$haveit"; then
9278                           if test -d "$dependency_libdir"; then
9279                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
9280                           fi
9281                         fi
9282                       fi
9283                     fi
9284                     ;;
9285                   -R*)
9286                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9287                     if test "$enable_rpath" != no; then
9288                                                                   haveit=
9289                       for x in $rpathdirs; do
9290                         if test "X$x" = "X$dir"; then
9291                           haveit=yes
9292                           break
9293                         fi
9294                       done
9295                       if test -z "$haveit"; then
9296                         rpathdirs="$rpathdirs $dir"
9297                       fi
9298                                                                   haveit=
9299                       for x in $ltrpathdirs; do
9300                         if test "X$x" = "X$dir"; then
9301                           haveit=yes
9302                           break
9303                         fi
9304                       done
9305                       if test -z "$haveit"; then
9306                         ltrpathdirs="$ltrpathdirs $dir"
9307                       fi
9308                     fi
9309                     ;;
9310                   -l*)
9311                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9312                     ;;
9313                   *.la)
9314                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9315                     ;;
9316                   *)
9317                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9318                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9319                     ;;
9320                 esac
9321               done
9322             fi
9323           else
9324                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9325             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9326           fi
9327         fi
9328       fi
9329     done
9330   done
9331   if test "X$rpathdirs" != "X"; then
9332     if test -n "$acl_hardcode_libdir_separator"; then
9333                         alldirs=
9334       for found_dir in $rpathdirs; do
9335         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9336       done
9337             acl_save_libdir="$libdir"
9338       libdir="$alldirs"
9339       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9340       libdir="$acl_save_libdir"
9341       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9342     else
9343             for found_dir in $rpathdirs; do
9344         acl_save_libdir="$libdir"
9345         libdir="$found_dir"
9346         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9347         libdir="$acl_save_libdir"
9348         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9349       done
9350     fi
9351   fi
9352   if test "X$ltrpathdirs" != "X"; then
9353             for found_dir in $ltrpathdirs; do
9354       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9355     done
9356   fi
9357
9358
9359
9360
9361
9362           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9363 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9364 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9365   $as_echo_n "(cached) " >&6
9366 else
9367   gt_save_CPPFLAGS="$CPPFLAGS"
9368             CPPFLAGS="$CPPFLAGS $INCINTL"
9369             gt_save_LIBS="$LIBS"
9370             LIBS="$LIBS $LIBINTL"
9371                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h.  */
9373
9374 #include <libintl.h>
9375 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9376 extern int _nl_msg_cat_cntr;
9377 extern
9378 #ifdef __cplusplus
9379 "C"
9380 #endif
9381 const char *_nl_expand_alias (const char *);
9382 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9383 #else
9384 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9385 #endif
9386 $gt_revision_test_code
9387
9388 int
9389 main ()
9390 {
9391
9392 bindtextdomain ("", "");
9393 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9394
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 if ac_fn_c_try_link "$LINENO"; then :
9400   eval "$gt_func_gnugettext_libintl=yes"
9401 else
9402   eval "$gt_func_gnugettext_libintl=no"
9403 fi
9404 rm -f core conftest.err conftest.$ac_objext \
9405     conftest$ac_exeext conftest.$ac_ext
9406                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9407               LIBS="$LIBS $LIBICONV"
9408               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h.  */
9410
9411 #include <libintl.h>
9412 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9413 extern int _nl_msg_cat_cntr;
9414 extern
9415 #ifdef __cplusplus
9416 "C"
9417 #endif
9418 const char *_nl_expand_alias (const char *);
9419 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9420 #else
9421 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9422 #endif
9423 $gt_revision_test_code
9424
9425 int
9426 main ()
9427 {
9428
9429 bindtextdomain ("", "");
9430 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9431
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 if ac_fn_c_try_link "$LINENO"; then :
9437   LIBINTL="$LIBINTL $LIBICONV"
9438                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9439                  eval "$gt_func_gnugettext_libintl=yes"
9440
9441 fi
9442 rm -f core conftest.err conftest.$ac_objext \
9443     conftest$ac_exeext conftest.$ac_ext
9444             fi
9445             CPPFLAGS="$gt_save_CPPFLAGS"
9446             LIBS="$gt_save_LIBS"
9447 fi
9448 eval ac_res=\$$gt_func_gnugettext_libintl
9449                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9450 $as_echo "$ac_res" >&6; }
9451         fi
9452
9453                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9454            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9455                 && test "$PACKAGE" != gettext-runtime \
9456                 && test "$PACKAGE" != gettext-tools; }; then
9457           gt_use_preinstalled_gnugettext=yes
9458         else
9459                     LIBINTL=
9460           LTLIBINTL=
9461           INCINTL=
9462         fi
9463
9464
9465
9466     if test -n "$INTL_MACOSX_LIBS"; then
9467       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9468          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9469                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9470         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9471       fi
9472     fi
9473
9474     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9475        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9476
9477 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9478
9479     else
9480       USE_NLS=no
9481     fi
9482   fi
9483
9484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9485 $as_echo_n "checking whether to use NLS... " >&6; }
9486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9487 $as_echo "$USE_NLS" >&6; }
9488   if test "$USE_NLS" = "yes"; then
9489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9490 $as_echo_n "checking where the gettext function comes from... " >&6; }
9491     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9492       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9493         gt_source="external libintl"
9494       else
9495         gt_source="libc"
9496       fi
9497     else
9498       gt_source="included intl directory"
9499     fi
9500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9501 $as_echo "$gt_source" >&6; }
9502   fi
9503
9504   if test "$USE_NLS" = "yes"; then
9505
9506     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9507       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9509 $as_echo_n "checking how to link with libintl... " >&6; }
9510         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9511 $as_echo "$LIBINTL" >&6; }
9512
9513   for element in $INCINTL; do
9514     haveit=
9515     for x in $CPPFLAGS; do
9516
9517   acl_save_prefix="$prefix"
9518   prefix="$acl_final_prefix"
9519   acl_save_exec_prefix="$exec_prefix"
9520   exec_prefix="$acl_final_exec_prefix"
9521   eval x=\"$x\"
9522   exec_prefix="$acl_save_exec_prefix"
9523   prefix="$acl_save_prefix"
9524
9525       if test "X$x" = "X$element"; then
9526         haveit=yes
9527         break
9528       fi
9529     done
9530     if test -z "$haveit"; then
9531       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9532     fi
9533   done
9534
9535       fi
9536
9537
9538 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9539
9540
9541 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9542
9543     fi
9544
9545         POSUB=po
9546   fi
9547
9548
9549
9550     INTLLIBS="$LIBINTL"
9551
9552
9553
9554
9555
9556
9557
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9559 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9560 set x ${MAKE-make}
9561 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9562 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9563   $as_echo_n "(cached) " >&6
9564 else
9565   cat >conftest.make <<\_ACEOF
9566 SHELL = /bin/sh
9567 all:
9568         @echo '@@@%%%=$(MAKE)=@@@%%%'
9569 _ACEOF
9570 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9571 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9572   *@@@%%%=?*=@@@%%%*)
9573     eval ac_cv_prog_make_${ac_make}_set=yes;;
9574   *)
9575     eval ac_cv_prog_make_${ac_make}_set=no;;
9576 esac
9577 rm -f conftest.make
9578 fi
9579 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9581 $as_echo "yes" >&6; }
9582   SET_MAKE=
9583 else
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586   SET_MAKE="MAKE=${MAKE-make}"
9587 fi
9588
9589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9590 $as_echo_n "checking for GNU make... " >&6; }
9591 if ${_cv_gnu_make_command+:} false; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   _cv_gnu_make_command='' ;
9595                 if test -n "$FORCE_NATIVE_MAKE" ; then
9596                    MAKES="make"
9597                 else
9598                    MAKES="make gmake gnumake"
9599                 fi
9600                 for a in "$MAKE" $MAKES ; do
9601                         if test -z "$a" ; then continue ; fi ;
9602                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9603                                 _cv_gnu_make_command=$a ;
9604                                 break;
9605                         fi
9606                 done ;
9607
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9610 $as_echo "$_cv_gnu_make_command" >&6; } ;
9611         if test  "x$_cv_gnu_make_command" != "x"  ; then
9612                 ifGNUmake='' ;
9613                 ifNotGNUmake='#' ;
9614         else
9615                 ifGNUmake='#' ;
9616                 ifNotGNUmake='' ;
9617                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9618 $as_echo "\"Not found\"" >&6; };
9619         fi
9620
9621
9622
9623 # Extract the first word of "ln", so it can be a program name with args.
9624 set dummy ln; ac_word=$2
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if ${ac_cv_path_LN+:} false; then :
9628   $as_echo_n "(cached) " >&6
9629 else
9630   case $LN in
9631   [\\/]* | ?:[\\/]*)
9632   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9633   ;;
9634   *)
9635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9637 do
9638   IFS=$as_save_IFS
9639   test -z "$as_dir" && as_dir=.
9640     for ac_exec_ext in '' $ac_executable_extensions; do
9641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9642     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9644     break 2
9645   fi
9646 done
9647   done
9648 IFS=$as_save_IFS
9649
9650   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9651   ;;
9652 esac
9653 fi
9654 LN=$ac_cv_path_LN
9655 if test -n "$LN"; then
9656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9657 $as_echo "$LN" >&6; }
9658 else
9659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9661 fi
9662
9663
9664
9665 mkdir_p=$MKDIR_P
9666
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9668 $as_echo_n "checking whether ln -s works... " >&6; }
9669 LN_S=$as_ln_s
9670 if test "$LN_S" = "ln -s"; then
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9672 $as_echo "yes" >&6; }
9673 else
9674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9675 $as_echo "no, using $LN_S" >&6; }
9676 fi
9677
9678 # Extract the first word of "mv", so it can be a program name with args.
9679 set dummy mv; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if ${ac_cv_path_MV+:} false; then :
9683   $as_echo_n "(cached) " >&6
9684 else
9685   case $MV in
9686   [\\/]* | ?:[\\/]*)
9687   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9688   ;;
9689   *)
9690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 for as_dir in $PATH
9692 do
9693   IFS=$as_save_IFS
9694   test -z "$as_dir" && as_dir=.
9695     for ac_exec_ext in '' $ac_executable_extensions; do
9696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9697     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9699     break 2
9700   fi
9701 done
9702   done
9703 IFS=$as_save_IFS
9704
9705   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9706   ;;
9707 esac
9708 fi
9709 MV=$ac_cv_path_MV
9710 if test -n "$MV"; then
9711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9712 $as_echo "$MV" >&6; }
9713 else
9714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9716 fi
9717
9718
9719 # Extract the first word of "cp", so it can be a program name with args.
9720 set dummy cp; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_path_CP+:} false; then :
9724   $as_echo_n "(cached) " >&6
9725 else
9726   case $CP in
9727   [\\/]* | ?:[\\/]*)
9728   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9729   ;;
9730   *)
9731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9733 do
9734   IFS=$as_save_IFS
9735   test -z "$as_dir" && as_dir=.
9736     for ac_exec_ext in '' $ac_executable_extensions; do
9737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740     break 2
9741   fi
9742 done
9743   done
9744 IFS=$as_save_IFS
9745
9746   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9747   ;;
9748 esac
9749 fi
9750 CP=$ac_cv_path_CP
9751 if test -n "$CP"; then
9752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9753 $as_echo "$CP" >&6; }
9754 else
9755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9757 fi
9758
9759
9760 # Extract the first word of "rm", so it can be a program name with args.
9761 set dummy rm; ac_word=$2
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9763 $as_echo_n "checking for $ac_word... " >&6; }
9764 if ${ac_cv_path_RM+:} false; then :
9765   $as_echo_n "(cached) " >&6
9766 else
9767   case $RM in
9768   [\\/]* | ?:[\\/]*)
9769   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9770   ;;
9771   *)
9772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775   IFS=$as_save_IFS
9776   test -z "$as_dir" && as_dir=.
9777     for ac_exec_ext in '' $ac_executable_extensions; do
9778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9779     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781     break 2
9782   fi
9783 done
9784   done
9785 IFS=$as_save_IFS
9786
9787   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9788   ;;
9789 esac
9790 fi
9791 RM=$ac_cv_path_RM
9792 if test -n "$RM"; then
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9794 $as_echo "$RM" >&6; }
9795 else
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9798 fi
9799
9800
9801 # Extract the first word of "chmod", so it can be a program name with args.
9802 set dummy chmod; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if ${ac_cv_path_CHMOD+:} false; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   case $CHMOD in
9809   [\\/]* | ?:[\\/]*)
9810   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9811   ;;
9812   *)
9813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816   IFS=$as_save_IFS
9817   test -z "$as_dir" && as_dir=.
9818     for ac_exec_ext in '' $ac_executable_extensions; do
9819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9820     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822     break 2
9823   fi
9824 done
9825   done
9826 IFS=$as_save_IFS
9827
9828   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9829   ;;
9830 esac
9831 fi
9832 CHMOD=$ac_cv_path_CHMOD
9833 if test -n "$CHMOD"; then
9834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9835 $as_echo "$CHMOD" >&6; }
9836 else
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9839 fi
9840
9841
9842 for ac_prog in gawk mawk nawk awk
9843 do
9844   # Extract the first word of "$ac_prog", so it can be a program name with args.
9845 set dummy $ac_prog; ac_word=$2
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847 $as_echo_n "checking for $ac_word... " >&6; }
9848 if ${ac_cv_prog_AWK+:} false; then :
9849   $as_echo_n "(cached) " >&6
9850 else
9851   if test -n "$AWK"; then
9852   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9853 else
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $PATH
9856 do
9857   IFS=$as_save_IFS
9858   test -z "$as_dir" && as_dir=.
9859     for ac_exec_ext in '' $ac_executable_extensions; do
9860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861     ac_cv_prog_AWK="$ac_prog"
9862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863     break 2
9864   fi
9865 done
9866   done
9867 IFS=$as_save_IFS
9868
9869 fi
9870 fi
9871 AWK=$ac_cv_prog_AWK
9872 if test -n "$AWK"; then
9873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9874 $as_echo "$AWK" >&6; }
9875 else
9876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9878 fi
9879
9880
9881   test -n "$AWK" && break
9882 done
9883
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9885 $as_echo_n "checking for egrep... " >&6; }
9886 if ${ac_cv_path_EGREP+:} false; then :
9887   $as_echo_n "(cached) " >&6
9888 else
9889   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9890    then ac_cv_path_EGREP="$GREP -E"
9891    else
9892      if test -z "$EGREP"; then
9893   ac_path_EGREP_found=false
9894   # Loop through the user's path and test for each of PROGNAME-LIST
9895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9897 do
9898   IFS=$as_save_IFS
9899   test -z "$as_dir" && as_dir=.
9900     for ac_prog in egrep; do
9901     for ac_exec_ext in '' $ac_executable_extensions; do
9902       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9903       as_fn_executable_p "$ac_path_EGREP" || continue
9904 # Check for GNU ac_path_EGREP and select it if it is found.
9905   # Check for GNU $ac_path_EGREP
9906 case `"$ac_path_EGREP" --version 2>&1` in
9907 *GNU*)
9908   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9909 *)
9910   ac_count=0
9911   $as_echo_n 0123456789 >"conftest.in"
9912   while :
9913   do
9914     cat "conftest.in" "conftest.in" >"conftest.tmp"
9915     mv "conftest.tmp" "conftest.in"
9916     cp "conftest.in" "conftest.nl"
9917     $as_echo 'EGREP' >> "conftest.nl"
9918     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9919     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9920     as_fn_arith $ac_count + 1 && ac_count=$as_val
9921     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9922       # Best one so far, save it but keep looking for a better one
9923       ac_cv_path_EGREP="$ac_path_EGREP"
9924       ac_path_EGREP_max=$ac_count
9925     fi
9926     # 10*(2^10) chars as input seems more than enough
9927     test $ac_count -gt 10 && break
9928   done
9929   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9930 esac
9931
9932       $ac_path_EGREP_found && break 3
9933     done
9934   done
9935   done
9936 IFS=$as_save_IFS
9937   if test -z "$ac_cv_path_EGREP"; then
9938     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9939   fi
9940 else
9941   ac_cv_path_EGREP=$EGREP
9942 fi
9943
9944    fi
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9947 $as_echo "$ac_cv_path_EGREP" >&6; }
9948  EGREP="$ac_cv_path_EGREP"
9949
9950
9951 # Extract the first word of "sed", so it can be a program name with args.
9952 set dummy sed; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_path_SED+:} false; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   case $SED in
9959   [\\/]* | ?:[\\/]*)
9960   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9961   ;;
9962   *)
9963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 for as_dir in $PATH
9965 do
9966   IFS=$as_save_IFS
9967   test -z "$as_dir" && as_dir=.
9968     for ac_exec_ext in '' $ac_executable_extensions; do
9969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972     break 2
9973   fi
9974 done
9975   done
9976 IFS=$as_save_IFS
9977
9978   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9979   ;;
9980 esac
9981 fi
9982 SED=$ac_cv_path_SED
9983 if test -n "$SED"; then
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9985 $as_echo "$SED" >&6; }
9986 else
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9989 fi
9990
9991
9992 # Extract the first word of "perl", so it can be a program name with args.
9993 set dummy perl; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if ${ac_cv_path_PERL+:} false; then :
9997   $as_echo_n "(cached) " >&6
9998 else
9999   case $PERL in
10000   [\\/]* | ?:[\\/]*)
10001   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10002   ;;
10003   *)
10004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10006 do
10007   IFS=$as_save_IFS
10008   test -z "$as_dir" && as_dir=.
10009     for ac_exec_ext in '' $ac_executable_extensions; do
10010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013     break 2
10014   fi
10015 done
10016   done
10017 IFS=$as_save_IFS
10018
10019   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10020   ;;
10021 esac
10022 fi
10023 PERL=$ac_cv_path_PERL
10024 if test -n "$PERL"; then
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10026 $as_echo "$PERL" >&6; }
10027 else
10028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10030 fi
10031
10032
10033 # Extract the first word of "ldconfig", so it can be a program name with args.
10034 set dummy ldconfig; ac_word=$2
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036 $as_echo_n "checking for $ac_word... " >&6; }
10037 if ${ac_cv_path_LDCONFIG+:} false; then :
10038   $as_echo_n "(cached) " >&6
10039 else
10040   case $LDCONFIG in
10041   [\\/]* | ?:[\\/]*)
10042   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10043   ;;
10044   *)
10045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10047 do
10048   IFS=$as_save_IFS
10049   test -z "$as_dir" && as_dir=.
10050     for ac_exec_ext in '' $ac_executable_extensions; do
10051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10052     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10054     break 2
10055   fi
10056 done
10057   done
10058 IFS=$as_save_IFS
10059
10060   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10061   ;;
10062 esac
10063 fi
10064 LDCONFIG=$ac_cv_path_LDCONFIG
10065 if test -n "$LDCONFIG"; then
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10067 $as_echo "$LDCONFIG" >&6; }
10068 else
10069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10071 fi
10072
10073
10074 if test -n "$ac_tool_prefix"; then
10075   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10076 set dummy ${ac_tool_prefix}ar; ac_word=$2
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10078 $as_echo_n "checking for $ac_word... " >&6; }
10079 if ${ac_cv_prog_AR+:} false; then :
10080   $as_echo_n "(cached) " >&6
10081 else
10082   if test -n "$AR"; then
10083   ac_cv_prog_AR="$AR" # Let the user override the test.
10084 else
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10087 do
10088   IFS=$as_save_IFS
10089   test -z "$as_dir" && as_dir=.
10090     for ac_exec_ext in '' $ac_executable_extensions; do
10091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092     ac_cv_prog_AR="${ac_tool_prefix}ar"
10093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10094     break 2
10095   fi
10096 done
10097   done
10098 IFS=$as_save_IFS
10099
10100 fi
10101 fi
10102 AR=$ac_cv_prog_AR
10103 if test -n "$AR"; then
10104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10105 $as_echo "$AR" >&6; }
10106 else
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10109 fi
10110
10111
10112 fi
10113 if test -z "$ac_cv_prog_AR"; then
10114   ac_ct_AR=$AR
10115   # Extract the first word of "ar", so it can be a program name with args.
10116 set dummy ar; ac_word=$2
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118 $as_echo_n "checking for $ac_word... " >&6; }
10119 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122   if test -n "$ac_ct_AR"; then
10123   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10124 else
10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10127 do
10128   IFS=$as_save_IFS
10129   test -z "$as_dir" && as_dir=.
10130     for ac_exec_ext in '' $ac_executable_extensions; do
10131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10132     ac_cv_prog_ac_ct_AR="ar"
10133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134     break 2
10135   fi
10136 done
10137   done
10138 IFS=$as_save_IFS
10139
10140 fi
10141 fi
10142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10143 if test -n "$ac_ct_AR"; then
10144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10145 $as_echo "$ac_ct_AR" >&6; }
10146 else
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148 $as_echo "no" >&6; }
10149 fi
10150
10151   if test "x$ac_ct_AR" = x; then
10152     AR="ar"
10153   else
10154     case $cross_compiling:$ac_tool_warned in
10155 yes:)
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10158 ac_tool_warned=yes ;;
10159 esac
10160     AR=$ac_ct_AR
10161   fi
10162 else
10163   AR="$ac_cv_prog_AR"
10164 fi
10165
10166 if test -n "$ac_tool_prefix"; then
10167   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if ${ac_cv_prog_RANLIB+:} false; then :
10172   $as_echo_n "(cached) " >&6
10173 else
10174   if test -n "$RANLIB"; then
10175   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10176 else
10177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in $PATH
10179 do
10180   IFS=$as_save_IFS
10181   test -z "$as_dir" && as_dir=.
10182     for ac_exec_ext in '' $ac_executable_extensions; do
10183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10184     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186     break 2
10187   fi
10188 done
10189   done
10190 IFS=$as_save_IFS
10191
10192 fi
10193 fi
10194 RANLIB=$ac_cv_prog_RANLIB
10195 if test -n "$RANLIB"; then
10196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10197 $as_echo "$RANLIB" >&6; }
10198 else
10199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200 $as_echo "no" >&6; }
10201 fi
10202
10203
10204 fi
10205 if test -z "$ac_cv_prog_RANLIB"; then
10206   ac_ct_RANLIB=$RANLIB
10207   # Extract the first word of "ranlib", so it can be a program name with args.
10208 set dummy ranlib; ac_word=$2
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210 $as_echo_n "checking for $ac_word... " >&6; }
10211 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10212   $as_echo_n "(cached) " >&6
10213 else
10214   if test -n "$ac_ct_RANLIB"; then
10215   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10216 else
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10219 do
10220   IFS=$as_save_IFS
10221   test -z "$as_dir" && as_dir=.
10222     for ac_exec_ext in '' $ac_executable_extensions; do
10223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224     ac_cv_prog_ac_ct_RANLIB="ranlib"
10225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226     break 2
10227   fi
10228 done
10229   done
10230 IFS=$as_save_IFS
10231
10232 fi
10233 fi
10234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10235 if test -n "$ac_ct_RANLIB"; then
10236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10237 $as_echo "$ac_ct_RANLIB" >&6; }
10238 else
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10241 fi
10242
10243   if test "x$ac_ct_RANLIB" = x; then
10244     RANLIB=":"
10245   else
10246     case $cross_compiling:$ac_tool_warned in
10247 yes:)
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10250 ac_tool_warned=yes ;;
10251 esac
10252     RANLIB=$ac_ct_RANLIB
10253   fi
10254 else
10255   RANLIB="$ac_cv_prog_RANLIB"
10256 fi
10257
10258 if test -n "$ac_tool_prefix"; then
10259   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10260 set dummy ${ac_tool_prefix}strip; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if ${ac_cv_prog_STRIP+:} false; then :
10264   $as_echo_n "(cached) " >&6
10265 else
10266   if test -n "$STRIP"; then
10267   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10268 else
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10271 do
10272   IFS=$as_save_IFS
10273   test -z "$as_dir" && as_dir=.
10274     for ac_exec_ext in '' $ac_executable_extensions; do
10275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10276     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278     break 2
10279   fi
10280 done
10281   done
10282 IFS=$as_save_IFS
10283
10284 fi
10285 fi
10286 STRIP=$ac_cv_prog_STRIP
10287 if test -n "$STRIP"; then
10288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10289 $as_echo "$STRIP" >&6; }
10290 else
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10293 fi
10294
10295
10296 fi
10297 if test -z "$ac_cv_prog_STRIP"; then
10298   ac_ct_STRIP=$STRIP
10299   # Extract the first word of "strip", so it can be a program name with args.
10300 set dummy strip; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10304   $as_echo_n "(cached) " >&6
10305 else
10306   if test -n "$ac_ct_STRIP"; then
10307   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10308 else
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10311 do
10312   IFS=$as_save_IFS
10313   test -z "$as_dir" && as_dir=.
10314     for ac_exec_ext in '' $ac_executable_extensions; do
10315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316     ac_cv_prog_ac_ct_STRIP="strip"
10317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318     break 2
10319   fi
10320 done
10321   done
10322 IFS=$as_save_IFS
10323
10324 fi
10325 fi
10326 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10327 if test -n "$ac_ct_STRIP"; then
10328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10329 $as_echo "$ac_ct_STRIP" >&6; }
10330 else
10331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10333 fi
10334
10335   if test "x$ac_ct_STRIP" = x; then
10336     STRIP=":"
10337   else
10338     case $cross_compiling:$ac_tool_warned in
10339 yes:)
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10342 ac_tool_warned=yes ;;
10343 esac
10344     STRIP=$ac_ct_STRIP
10345   fi
10346 else
10347   STRIP="$ac_cv_prog_STRIP"
10348 fi
10349
10350 # Extract the first word of "makeinfo", so it can be a program name with args.
10351 set dummy makeinfo; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_prog_MAKEINFO+:} false; then :
10355   $as_echo_n "(cached) " >&6
10356 else
10357   if test -n "$MAKEINFO"; then
10358   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10359 else
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10362 do
10363   IFS=$as_save_IFS
10364   test -z "$as_dir" && as_dir=.
10365     for ac_exec_ext in '' $ac_executable_extensions; do
10366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367     ac_cv_prog_MAKEINFO="makeinfo"
10368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369     break 2
10370   fi
10371 done
10372   done
10373 IFS=$as_save_IFS
10374
10375 fi
10376 fi
10377 MAKEINFO=$ac_cv_prog_MAKEINFO
10378 if test -n "$MAKEINFO"; then
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10380 $as_echo "$MAKEINFO" >&6; }
10381 else
10382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 fi
10385
10386
10387 if test "_$MAKEINFO" = "_"; then
10388     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
10389 else
10390     case "$MAKEINFO" in
10391       */missing.*)
10392         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10393 *** Makeinfo is missing. Info documentation will not be built." >&5
10394 $as_echo "$as_me: WARNING:
10395 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10396         ;;
10397       *)
10398         ;;
10399     esac
10400 fi
10401
10402
10403 # See if we need a separate native compiler.
10404 if test $cross_compiling = no; then
10405   BUILD_CC="$CC"
10406
10407 else
10408   for ac_prog in gcc cc
10409 do
10410   # Extract the first word of "$ac_prog", so it can be a program name with args.
10411 set dummy $ac_prog; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if ${ac_cv_prog_BUILD_CC+:} false; then :
10415   $as_echo_n "(cached) " >&6
10416 else
10417   if test -n "$BUILD_CC"; then
10418   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10419 else
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10422 do
10423   IFS=$as_save_IFS
10424   test -z "$as_dir" && as_dir=.
10425     for ac_exec_ext in '' $ac_executable_extensions; do
10426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10427     ac_cv_prog_BUILD_CC="$ac_prog"
10428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429     break 2
10430   fi
10431 done
10432   done
10433 IFS=$as_save_IFS
10434
10435 fi
10436 fi
10437 BUILD_CC=$ac_cv_prog_BUILD_CC
10438 if test -n "$BUILD_CC"; then
10439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10440 $as_echo "$BUILD_CC" >&6; }
10441 else
10442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10444 fi
10445
10446
10447   test -n "$BUILD_CC" && break
10448 done
10449
10450 fi
10451 for ac_header in        dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         attr/xattr.h    linux/falloc.h  linux/fd.h      linux/fsmap.h   linux/major.h   linux/loop.h    linux/types.h   net/if_dl.h     netinet/in.h    sys/acl.h       sys/disklabel.h         sys/disk.h      sys/file.h      sys/ioctl.h     sys/key.h       sys/mkdev.h     sys/mman.h      sys/mount.h     sys/prctl.h     sys/resource.h  sys/select.h    sys/socket.h    sys/sockio.h    sys/stat.h      sys/syscall.h   sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h      sys/xattr.h
10452 do :
10453   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10454 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10456   cat >>confdefs.h <<_ACEOF
10457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10458 _ACEOF
10459
10460 fi
10461
10462 done
10463
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
10465 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
10466 DD=
10467 for i in dd gdd ; do
10468         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
10469                 DD=$i
10470                 break
10471         fi
10472 done
10473 if test -n "$DD" ; then
10474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
10475 $as_echo "$DD" >&6; }
10476 else
10477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
10478 $as_echo "not found, using dd" >&6; }
10479         DD=dd
10480         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
10481 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
10482 fi
10483
10484
10485 for ac_header in net/if.h
10486 do :
10487   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10488 #if HAVE_SYS_TYPES_H
10489 #include <sys/types.h>
10490 #endif
10491 #if HAVE_SYS_SOCKET
10492 #include <sys/socket.h>
10493 #endif
10494
10495 "
10496 if test "x$ac_cv_header_net_if_h" = xyes; then :
10497   cat >>confdefs.h <<_ACEOF
10498 #define HAVE_NET_IF_H 1
10499 _ACEOF
10500
10501 fi
10502
10503 done
10504
10505 for ac_func in vprintf
10506 do :
10507   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10508 if test "x$ac_cv_func_vprintf" = xyes; then :
10509   cat >>confdefs.h <<_ACEOF
10510 #define HAVE_VPRINTF 1
10511 _ACEOF
10512
10513 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10514 if test "x$ac_cv_func__doprnt" = xyes; then :
10515
10516 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10517
10518 fi
10519
10520 fi
10521 done
10522
10523
10524 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10525 "
10526 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10527
10528 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10529
10530 fi
10531
10532 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10533 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10534
10535 cat >>confdefs.h <<_ACEOF
10536 #define HAVE_STRUCT_STAT_ST_ATIM 1
10537 _ACEOF
10538
10539
10540 fi
10541
10542 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10543 "
10544 if test "x$ac_cv_type_ssize_t" = xyes; then :
10545
10546 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10547
10548 fi
10549
10550 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10551 "
10552 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10553
10554 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10555
10556 fi
10557
10558 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10559                  #define _LARGEFILE64_SOURCE
10560                  #include <unistd.h>
10561 "
10562 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10563
10564 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10565
10566 fi
10567
10568 # The cast to long int works around a bug in the HP C Compiler
10569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10571 # This bug is HP SR number 8606223364.
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10573 $as_echo_n "checking size of short... " >&6; }
10574 if ${ac_cv_sizeof_short+:} false; then :
10575   $as_echo_n "(cached) " >&6
10576 else
10577   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10578
10579 else
10580   if test "$ac_cv_type_short" = yes; then
10581      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10583 as_fn_error 77 "cannot compute sizeof (short)
10584 See \`config.log' for more details" "$LINENO" 5; }
10585    else
10586      ac_cv_sizeof_short=0
10587    fi
10588 fi
10589
10590 fi
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10592 $as_echo "$ac_cv_sizeof_short" >&6; }
10593
10594
10595
10596 cat >>confdefs.h <<_ACEOF
10597 #define SIZEOF_SHORT $ac_cv_sizeof_short
10598 _ACEOF
10599
10600
10601 # The cast to long int works around a bug in the HP C Compiler
10602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10604 # This bug is HP SR number 8606223364.
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10606 $as_echo_n "checking size of int... " >&6; }
10607 if ${ac_cv_sizeof_int+:} false; then :
10608   $as_echo_n "(cached) " >&6
10609 else
10610   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10611
10612 else
10613   if test "$ac_cv_type_int" = yes; then
10614      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10616 as_fn_error 77 "cannot compute sizeof (int)
10617 See \`config.log' for more details" "$LINENO" 5; }
10618    else
10619      ac_cv_sizeof_int=0
10620    fi
10621 fi
10622
10623 fi
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10625 $as_echo "$ac_cv_sizeof_int" >&6; }
10626
10627
10628
10629 cat >>confdefs.h <<_ACEOF
10630 #define SIZEOF_INT $ac_cv_sizeof_int
10631 _ACEOF
10632
10633
10634 # The cast to long int works around a bug in the HP C Compiler
10635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10637 # This bug is HP SR number 8606223364.
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10639 $as_echo_n "checking size of long... " >&6; }
10640 if ${ac_cv_sizeof_long+:} false; then :
10641   $as_echo_n "(cached) " >&6
10642 else
10643   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10644
10645 else
10646   if test "$ac_cv_type_long" = yes; then
10647      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10649 as_fn_error 77 "cannot compute sizeof (long)
10650 See \`config.log' for more details" "$LINENO" 5; }
10651    else
10652      ac_cv_sizeof_long=0
10653    fi
10654 fi
10655
10656 fi
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10658 $as_echo "$ac_cv_sizeof_long" >&6; }
10659
10660
10661
10662 cat >>confdefs.h <<_ACEOF
10663 #define SIZEOF_LONG $ac_cv_sizeof_long
10664 _ACEOF
10665
10666
10667 # The cast to long int works around a bug in the HP C Compiler
10668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10670 # This bug is HP SR number 8606223364.
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10672 $as_echo_n "checking size of long long... " >&6; }
10673 if ${ac_cv_sizeof_long_long+:} false; then :
10674   $as_echo_n "(cached) " >&6
10675 else
10676   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10677
10678 else
10679   if test "$ac_cv_type_long_long" = yes; then
10680      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10682 as_fn_error 77 "cannot compute sizeof (long long)
10683 See \`config.log' for more details" "$LINENO" 5; }
10684    else
10685      ac_cv_sizeof_long_long=0
10686    fi
10687 fi
10688
10689 fi
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10691 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10692
10693
10694
10695 cat >>confdefs.h <<_ACEOF
10696 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10697 _ACEOF
10698
10699
10700 # The cast to long int works around a bug in the HP C Compiler
10701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10703 # This bug is HP SR number 8606223364.
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10705 $as_echo_n "checking size of off_t... " >&6; }
10706 if ${ac_cv_sizeof_off_t+:} false; then :
10707   $as_echo_n "(cached) " >&6
10708 else
10709   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10710
10711 else
10712   if test "$ac_cv_type_off_t" = yes; then
10713      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10715 as_fn_error 77 "cannot compute sizeof (off_t)
10716 See \`config.log' for more details" "$LINENO" 5; }
10717    else
10718      ac_cv_sizeof_off_t=0
10719    fi
10720 fi
10721
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10724 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10725
10726
10727
10728 cat >>confdefs.h <<_ACEOF
10729 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10730 _ACEOF
10731
10732
10733 # The cast to long int works around a bug in the HP C Compiler
10734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10736 # This bug is HP SR number 8606223364.
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10738 $as_echo_n "checking size of time_t... " >&6; }
10739 if ${ac_cv_sizeof_time_t+:} false; then :
10740   $as_echo_n "(cached) " >&6
10741 else
10742   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
10743
10744 else
10745   if test "$ac_cv_type_time_t" = yes; then
10746      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10748 as_fn_error 77 "cannot compute sizeof (time_t)
10749 See \`config.log' for more details" "$LINENO" 5; }
10750    else
10751      ac_cv_sizeof_time_t=0
10752    fi
10753 fi
10754
10755 fi
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10757 $as_echo "$ac_cv_sizeof_time_t" >&6; }
10758
10759
10760
10761 cat >>confdefs.h <<_ACEOF
10762 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10763 _ACEOF
10764
10765
10766 SIZEOF_SHORT=$ac_cv_sizeof_short
10767 SIZEOF_INT=$ac_cv_sizeof_int
10768 SIZEOF_LONG=$ac_cv_sizeof_long
10769 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10770 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10771 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
10772
10773
10774
10775
10776
10777
10778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10779 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10780 if ${ac_cv_c_bigendian+:} false; then :
10781   $as_echo_n "(cached) " >&6
10782 else
10783   ac_cv_c_bigendian=unknown
10784     # See if we're dealing with a universal compiler.
10785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h.  */
10787 #ifndef __APPLE_CC__
10788                not a universal capable compiler
10789              #endif
10790              typedef int dummy;
10791
10792 _ACEOF
10793 if ac_fn_c_try_compile "$LINENO"; then :
10794
10795         # Check for potential -arch flags.  It is not universal unless
10796         # there are at least two -arch flags with different values.
10797         ac_arch=
10798         ac_prev=
10799         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10800          if test -n "$ac_prev"; then
10801            case $ac_word in
10802              i?86 | x86_64 | ppc | ppc64)
10803                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10804                  ac_arch=$ac_word
10805                else
10806                  ac_cv_c_bigendian=universal
10807                  break
10808                fi
10809                ;;
10810            esac
10811            ac_prev=
10812          elif test "x$ac_word" = "x-arch"; then
10813            ac_prev=arch
10814          fi
10815        done
10816 fi
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818     if test $ac_cv_c_bigendian = unknown; then
10819       # See if sys/param.h defines the BYTE_ORDER macro.
10820       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h.  */
10822 #include <sys/types.h>
10823              #include <sys/param.h>
10824
10825 int
10826 main ()
10827 {
10828 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10829                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10830                      && LITTLE_ENDIAN)
10831               bogus endian macros
10832              #endif
10833
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_c_try_compile "$LINENO"; then :
10839   # It does; now see whether it defined to BIG_ENDIAN or not.
10840          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h.  */
10842 #include <sys/types.h>
10843                 #include <sys/param.h>
10844
10845 int
10846 main ()
10847 {
10848 #if BYTE_ORDER != BIG_ENDIAN
10849                  not big endian
10850                 #endif
10851
10852   ;
10853   return 0;
10854 }
10855 _ACEOF
10856 if ac_fn_c_try_compile "$LINENO"; then :
10857   ac_cv_c_bigendian=yes
10858 else
10859   ac_cv_c_bigendian=no
10860 fi
10861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10862 fi
10863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10864     fi
10865     if test $ac_cv_c_bigendian = unknown; then
10866       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h.  */
10869 #include <limits.h>
10870
10871 int
10872 main ()
10873 {
10874 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10875               bogus endian macros
10876              #endif
10877
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 if ac_fn_c_try_compile "$LINENO"; then :
10883   # It does; now see whether it defined to _BIG_ENDIAN or not.
10884          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h.  */
10886 #include <limits.h>
10887
10888 int
10889 main ()
10890 {
10891 #ifndef _BIG_ENDIAN
10892                  not big endian
10893                 #endif
10894
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 if ac_fn_c_try_compile "$LINENO"; then :
10900   ac_cv_c_bigendian=yes
10901 else
10902   ac_cv_c_bigendian=no
10903 fi
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10907     fi
10908     if test $ac_cv_c_bigendian = unknown; then
10909       # Compile a test program.
10910       if test "$cross_compiling" = yes; then :
10911   # Try to guess by grepping values from an object file.
10912          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h.  */
10914 short int ascii_mm[] =
10915                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10916                 short int ascii_ii[] =
10917                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10918                 int use_ascii (int i) {
10919                   return ascii_mm[i] + ascii_ii[i];
10920                 }
10921                 short int ebcdic_ii[] =
10922                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10923                 short int ebcdic_mm[] =
10924                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10925                 int use_ebcdic (int i) {
10926                   return ebcdic_mm[i] + ebcdic_ii[i];
10927                 }
10928                 extern int foo;
10929
10930 int
10931 main ()
10932 {
10933 return use_ascii (foo) == use_ebcdic (foo);
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 if ac_fn_c_try_compile "$LINENO"; then :
10939   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10940               ac_cv_c_bigendian=yes
10941             fi
10942             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10943               if test "$ac_cv_c_bigendian" = unknown; then
10944                 ac_cv_c_bigendian=no
10945               else
10946                 # finding both strings is unlikely to happen, but who knows?
10947                 ac_cv_c_bigendian=unknown
10948               fi
10949             fi
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952 else
10953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h.  */
10955 $ac_includes_default
10956 int
10957 main ()
10958 {
10959
10960              /* Are we little or big endian?  From Harbison&Steele.  */
10961              union
10962              {
10963                long int l;
10964                char c[sizeof (long int)];
10965              } u;
10966              u.l = 1;
10967              return u.c[sizeof (long int) - 1] == 1;
10968
10969   ;
10970   return 0;
10971 }
10972 _ACEOF
10973 if ac_fn_c_try_run "$LINENO"; then :
10974   ac_cv_c_bigendian=no
10975 else
10976   ac_cv_c_bigendian=yes
10977 fi
10978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10979   conftest.$ac_objext conftest.beam conftest.$ac_ext
10980 fi
10981
10982     fi
10983 fi
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10985 $as_echo "$ac_cv_c_bigendian" >&6; }
10986  case $ac_cv_c_bigendian in #(
10987    yes)
10988      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10989 ;; #(
10990    no)
10991       ;; #(
10992    universal)
10993
10994 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10995
10996      ;; #(
10997    *)
10998      as_fn_error $? "unknown endianness
10999  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11000  esac
11001
11002 if test $cross_compiling = no; then
11003   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11004 else
11005   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11006 fi
11007 ASM_TYPES_HEADER=./asm_types.h
11008
11009 echo "/* These defines are needed for the public ext2fs.h header file */" \
11010      > public_config.h
11011 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
11012   uniq tmp_config.$$ >> public_config.h
11013 else
11014   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11015 fi
11016 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11017   uniq tmp_config.$$ >> public_config.h
11018 else
11019   echo "#undef WORDS_BIGENDIAN" >> public_config.h
11020 fi
11021 rm -f tmp_config.$$
11022 PUBLIC_CONFIG_HEADER=./public_config.h
11023
11024 for ac_header in inttypes.h
11025 do :
11026   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11027 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11028   cat >>confdefs.h <<_ACEOF
11029 #define HAVE_INTTYPES_H 1
11030 _ACEOF
11031
11032 fi
11033
11034 done
11035
11036 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11037 if test "x$ac_cv_type_intptr_t" = xyes; then :
11038
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_INTPTR_T 1
11041 _ACEOF
11042
11043
11044 fi
11045
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11047 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11048 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11049   $as_echo_n "(cached) " >&6
11050 else
11051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h.  */
11053 #include <sys/stat.h>
11054 int
11055 main ()
11056 {
11057 struct stat stat; stat.st_flags = 0;
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 if ac_fn_c_try_compile "$LINENO"; then :
11063   e2fsprogs_cv_struct_st_flags=yes
11064 else
11065   e2fsprogs_cv_struct_st_flags=no
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 fi
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11071 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11072 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11074 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11075   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h.  */
11080 #include <sys/stat.h>
11081 int
11082 main ()
11083 {
11084 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090   e2fsprogs_cv_struct_st_flags_immut=yes
11091 else
11092   e2fsprogs_cv_struct_st_flags_immut=no
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 fi
11096
11097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11098 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11099   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11100
11101 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11102
11103   fi
11104 fi
11105 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11106          #include <sys/socket.h>
11107 "
11108 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11109
11110 cat >>confdefs.h <<_ACEOF
11111 #define HAVE_SA_LEN 1
11112 _ACEOF
11113
11114 fi
11115
11116 if test -n "$BLKID_CMT"; then
11117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
11118 $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
11119 if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
11120   $as_echo_n "(cached) " >&6
11121 else
11122   ac_check_lib_save_LIBS=$LIBS
11123 LIBS="-lblkid  $LIBS"
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h.  */
11126
11127 /* Override any GCC internal prototype to avoid an error.
11128    Use char because int might match the return type of a GCC
11129    builtin and then its argument prototype would still apply.  */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char blkid_probe_get_topology ();
11134 int
11135 main ()
11136 {
11137 return blkid_probe_get_topology ();
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 if ac_fn_c_try_link "$LINENO"; then :
11143   ac_cv_lib_blkid_blkid_probe_get_topology=yes
11144 else
11145   ac_cv_lib_blkid_blkid_probe_get_topology=no
11146 fi
11147 rm -f core conftest.err conftest.$ac_objext \
11148     conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11150 fi
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
11152 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
11153 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
11154
11155 $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
11156
11157 fi
11158
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
11160 $as_echo_n "checking for blkid_topology_get_dax in -lblkid... " >&6; }
11161 if ${ac_cv_lib_blkid_blkid_topology_get_dax+:} false; then :
11162   $as_echo_n "(cached) " >&6
11163 else
11164   ac_check_lib_save_LIBS=$LIBS
11165 LIBS="-lblkid  $LIBS"
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h.  */
11168
11169 /* Override any GCC internal prototype to avoid an error.
11170    Use char because int might match the return type of a GCC
11171    builtin and then its argument prototype would still apply.  */
11172 #ifdef __cplusplus
11173 extern "C"
11174 #endif
11175 char blkid_topology_get_dax ();
11176 int
11177 main ()
11178 {
11179 return blkid_topology_get_dax ();
11180   ;
11181   return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185   ac_cv_lib_blkid_blkid_topology_get_dax=yes
11186 else
11187   ac_cv_lib_blkid_blkid_topology_get_dax=no
11188 fi
11189 rm -f core conftest.err conftest.$ac_objext \
11190     conftest$ac_exeext conftest.$ac_ext
11191 LIBS=$ac_check_lib_save_LIBS
11192 fi
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
11194 $as_echo "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
11195 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes; then :
11196
11197 $as_echo "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
11198
11199 fi
11200
11201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
11202 $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
11203 if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
11204   $as_echo_n "(cached) " >&6
11205 else
11206   ac_check_lib_save_LIBS=$LIBS
11207 LIBS="-lblkid  $LIBS"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h.  */
11210
11211 /* Override any GCC internal prototype to avoid an error.
11212    Use char because int might match the return type of a GCC
11213    builtin and then its argument prototype would still apply.  */
11214 #ifdef __cplusplus
11215 extern "C"
11216 #endif
11217 char blkid_probe_enable_partitions ();
11218 int
11219 main ()
11220 {
11221 return blkid_probe_enable_partitions ();
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 if ac_fn_c_try_link "$LINENO"; then :
11227   ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
11228 else
11229   ac_cv_lib_blkid_blkid_probe_enable_partitions=no
11230 fi
11231 rm -f core conftest.err conftest.$ac_objext \
11232     conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11234 fi
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
11236 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
11237 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
11238
11239 $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
11240
11241 fi
11242
11243 fi
11244 if test -n "$DLOPEN_LIB" ; then
11245    ac_cv_func_dlopen=yes
11246 fi
11247 for ac_func in          __secure_getenv         add_key         backtrace       chflags         dlopen  fadvise64       fallocate       fallocate64     fchown  fcntl   fdatasync       fstat64         fsync   ftruncate64     futimes         getcwd  getdtablesize   gethostname     getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         keyctl  llistxattr      llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   pread   pwrite  pread64         pwrite64        secure_getenv   setmntent       setresgid       setresuid       snprintf        srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   utimes  valloc
11248 do :
11249   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11251 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11252   cat >>confdefs.h <<_ACEOF
11253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11254 _ACEOF
11255
11256 fi
11257 done
11258
11259 SOCKET_LIB=''
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11261 $as_echo_n "checking for socket in -lsocket... " >&6; }
11262 if ${ac_cv_lib_socket_socket+:} false; then :
11263   $as_echo_n "(cached) " >&6
11264 else
11265   ac_check_lib_save_LIBS=$LIBS
11266 LIBS="-lsocket  $LIBS"
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h.  */
11269
11270 /* Override any GCC internal prototype to avoid an error.
11271    Use char because int might match the return type of a GCC
11272    builtin and then its argument prototype would still apply.  */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 char socket ();
11277 int
11278 main ()
11279 {
11280 return socket ();
11281   ;
11282   return 0;
11283 }
11284 _ACEOF
11285 if ac_fn_c_try_link "$LINENO"; then :
11286   ac_cv_lib_socket_socket=yes
11287 else
11288   ac_cv_lib_socket_socket=no
11289 fi
11290 rm -f core conftest.err conftest.$ac_objext \
11291     conftest$ac_exeext conftest.$ac_ext
11292 LIBS=$ac_check_lib_save_LIBS
11293 fi
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11295 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11296 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11297   SOCKET_LIB=-lsocket
11298 fi
11299
11300
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
11302 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
11303 if ${ac_cv_lib_magic_magic_file+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-lmagic  $LIBS"
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h.  */
11310
11311 /* Override any GCC internal prototype to avoid an error.
11312    Use char because int might match the return type of a GCC
11313    builtin and then its argument prototype would still apply.  */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char magic_file ();
11318 int
11319 main ()
11320 {
11321 return magic_file ();
11322   ;
11323   return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327   ac_cv_lib_magic_magic_file=yes
11328 else
11329   ac_cv_lib_magic_magic_file=no
11330 fi
11331 rm -f core conftest.err conftest.$ac_objext \
11332     conftest$ac_exeext conftest.$ac_ext
11333 LIBS=$ac_check_lib_save_LIBS
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
11336 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
11337 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
11338   MAGIC_LIB=-lmagic
11339 for ac_header in magic.h
11340 do :
11341   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
11342 if test "x$ac_cv_header_magic_h" = xyes; then :
11343   cat >>confdefs.h <<_ACEOF
11344 #define HAVE_MAGIC_H 1
11345 _ACEOF
11346
11347 fi
11348
11349 done
11350
11351 fi
11352
11353 if test "$ac_cv_func_dlopen" = yes ; then
11354    MAGIC_LIB=$DLOPEN_LIB
11355 fi
11356
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11358 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11359 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11360   $as_echo_n "(cached) " >&6
11361 else
11362   ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-lrt  $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h.  */
11366
11367 /* Override any GCC internal prototype to avoid an error.
11368    Use char because int might match the return type of a GCC
11369    builtin and then its argument prototype would still apply.  */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char clock_gettime ();
11374 int
11375 main ()
11376 {
11377 return clock_gettime ();
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383   ac_cv_lib_rt_clock_gettime=yes
11384 else
11385   ac_cv_lib_rt_clock_gettime=no
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388     conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11392 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11393 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11394   CLOCK_GETTIME_LIB=-lrt
11395 fi
11396
11397
11398 FUSE_CMT=
11399 FUSE_LIB=
11400 # Check whether --enable-fuse2fs was given.
11401 if test "${enable_fuse2fs+set}" = set; then :
11402   enableval=$enable_fuse2fs; if test "$enableval" = "no"
11403 then
11404         FUSE_CMT="#"
11405         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
11406 $as_echo "Disabling fuse2fs" >&6; }
11407 else
11408         for ac_header in pthread.h fuse.h
11409 do :
11410   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
11412 #define FUSE_USE_VERSION 29
11413 "
11414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11415   cat >>confdefs.h <<_ACEOF
11416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 _ACEOF
11418
11419 else
11420   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11422 as_fn_error $? "Cannot find fuse2fs headers.
11423 See \`config.log' for more details" "$LINENO" 5; }
11424 fi
11425
11426 done
11427
11428
11429         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h.  */
11431 #define FUSE_USE_VERSION 29
11432 #ifdef __linux__
11433 #include <linux/fs.h>
11434 #include <linux/falloc.h>
11435 #include <linux/xattr.h>
11436 #endif
11437
11438 int
11439 main ()
11440 {
11441
11442   ;
11443   return 0;
11444 }
11445 _ACEOF
11446 if ac_fn_c_try_cpp "$LINENO"; then :
11447
11448 else
11449   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11451 as_fn_error $? "Cannot find fuse2fs Linux headers.
11452 See \`config.log' for more details" "$LINENO" 5; }
11453 fi
11454 rm -f conftest.err conftest.i conftest.$ac_ext
11455
11456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11457 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11458 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11459   $as_echo_n "(cached) " >&6
11460 else
11461   ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-losxfuse  $LIBS"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h.  */
11465
11466 /* Override any GCC internal prototype to avoid an error.
11467    Use char because int might match the return type of a GCC
11468    builtin and then its argument prototype would still apply.  */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 char fuse_main ();
11473 int
11474 main ()
11475 {
11476 return fuse_main ();
11477   ;
11478   return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_link "$LINENO"; then :
11482   ac_cv_lib_osxfuse_fuse_main=yes
11483 else
11484   ac_cv_lib_osxfuse_fuse_main=no
11485 fi
11486 rm -f core conftest.err conftest.$ac_objext \
11487     conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11491 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11492 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11493   FUSE_LIB=-losxfuse
11494 else
11495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11496 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11497 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11498   $as_echo_n "(cached) " >&6
11499 else
11500   ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-lfuse  $LIBS"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h.  */
11504
11505 /* Override any GCC internal prototype to avoid an error.
11506    Use char because int might match the return type of a GCC
11507    builtin and then its argument prototype would still apply.  */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 char fuse_main ();
11512 int
11513 main ()
11514 {
11515 return fuse_main ();
11516   ;
11517   return 0;
11518 }
11519 _ACEOF
11520 if ac_fn_c_try_link "$LINENO"; then :
11521   ac_cv_lib_fuse_fuse_main=yes
11522 else
11523   ac_cv_lib_fuse_fuse_main=no
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext \
11526     conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11530 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11531 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11532   FUSE_LIB=-lfuse
11533 else
11534   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11536 as_fn_error $? "Cannot find fuse library.
11537 See \`config.log' for more details" "$LINENO" 5; }
11538 fi
11539
11540 fi
11541
11542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
11543 $as_echo "Enabling fuse2fs" >&6; }
11544 fi
11545
11546 else
11547   for ac_header in pthread.h fuse.h
11548 do :
11549   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11550 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
11551 #define FUSE_USE_VERSION 29
11552 #ifdef __linux__
11553 # include <linux/fs.h>
11554 # include <linux/falloc.h>
11555 # include <linux/xattr.h>
11556 #endif
11557 "
11558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11559   cat >>confdefs.h <<_ACEOF
11560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11561 _ACEOF
11562
11563 else
11564   FUSE_CMT="#"
11565 fi
11566
11567 done
11568
11569 if test -z "$FUSE_CMT"
11570 then
11571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11572 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11573 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11574   $as_echo_n "(cached) " >&6
11575 else
11576   ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-losxfuse  $LIBS"
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h.  */
11580
11581 /* Override any GCC internal prototype to avoid an error.
11582    Use char because int might match the return type of a GCC
11583    builtin and then its argument prototype would still apply.  */
11584 #ifdef __cplusplus
11585 extern "C"
11586 #endif
11587 char fuse_main ();
11588 int
11589 main ()
11590 {
11591 return fuse_main ();
11592   ;
11593   return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_link "$LINENO"; then :
11597   ac_cv_lib_osxfuse_fuse_main=yes
11598 else
11599   ac_cv_lib_osxfuse_fuse_main=no
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext \
11602     conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11604 fi
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11606 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11607 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11608   FUSE_LIB=-losxfuse
11609 else
11610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11611 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11612 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11613   $as_echo_n "(cached) " >&6
11614 else
11615   ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-lfuse  $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h.  */
11619
11620 /* Override any GCC internal prototype to avoid an error.
11621    Use char because int might match the return type of a GCC
11622    builtin and then its argument prototype would still apply.  */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char fuse_main ();
11627 int
11628 main ()
11629 {
11630 return fuse_main ();
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11636   ac_cv_lib_fuse_fuse_main=yes
11637 else
11638   ac_cv_lib_fuse_fuse_main=no
11639 fi
11640 rm -f core conftest.err conftest.$ac_objext \
11641     conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11643 fi
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11645 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11646 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11647   FUSE_LIB=-lfuse
11648 else
11649   FUSE_CMT="#"
11650 fi
11651
11652 fi
11653
11654 fi
11655 if test -z "$FUSE_CMT"
11656 then
11657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
11658 $as_echo "Enabling fuse2fs by default." >&6; }
11659 fi
11660
11661 fi
11662
11663
11664
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11666 $as_echo_n "checking for optreset... " >&6; }
11667 if ${ac_cv_have_optreset+:} false; then :
11668   $as_echo_n "(cached) " >&6
11669 else
11670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h.  */
11672 #include <unistd.h>
11673
11674 _ACEOF
11675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11676   $EGREP "optreset" >/dev/null 2>&1; then :
11677   ac_cv_have_optreset=yes
11678 else
11679   ac_cv_have_optreset=no
11680 fi
11681 rm -f conftest*
11682
11683 fi
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11685 $as_echo "$ac_cv_have_optreset" >&6; }
11686 if test $ac_cv_have_optreset = yes; then
11687
11688 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11689
11690 fi
11691
11692 SEM_INIT_LIB=''
11693 echo GL_THREADS_API: ${gl_threads_api}
11694 if test "${gl_threads_api}" != none
11695 then
11696   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11697 if test "x$ac_cv_func_sem_init" = xyes; then :
11698
11699 else
11700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11701 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11702 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11703   $as_echo_n "(cached) " >&6
11704 else
11705   ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-lpthread  $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h.  */
11709
11710 /* Override any GCC internal prototype to avoid an error.
11711    Use char because int might match the return type of a GCC
11712    builtin and then its argument prototype would still apply.  */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char sem_init ();
11717 int
11718 main ()
11719 {
11720 return sem_init ();
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726   ac_cv_lib_pthread_sem_init=yes
11727 else
11728   ac_cv_lib_pthread_sem_init=no
11729 fi
11730 rm -f core conftest.err conftest.$ac_objext \
11731     conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11735 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11736 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11737   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11738
11739         SEM_INIT_LIB=-lpthread
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11742 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11743 if ${ac_cv_lib_rt_sem_init+:} false; then :
11744   $as_echo_n "(cached) " >&6
11745 else
11746   ac_check_lib_save_LIBS=$LIBS
11747 LIBS="-lrt  $LIBS"
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h.  */
11750
11751 /* Override any GCC internal prototype to avoid an error.
11752    Use char because int might match the return type of a GCC
11753    builtin and then its argument prototype would still apply.  */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 char sem_init ();
11758 int
11759 main ()
11760 {
11761 return sem_init ();
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 if ac_fn_c_try_link "$LINENO"; then :
11767   ac_cv_lib_rt_sem_init=yes
11768 else
11769   ac_cv_lib_rt_sem_init=no
11770 fi
11771 rm -f core conftest.err conftest.$ac_objext \
11772     conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11774 fi
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11776 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11777 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11778   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11779
11780         SEM_INIT_LIB=-lrt
11781 else
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11783 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11784 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-lposix4  $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h.  */
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793    Use char because int might match the return type of a GCC
11794    builtin and then its argument prototype would still apply.  */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 char sem_init ();
11799 int
11800 main ()
11801 {
11802 return sem_init ();
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 if ac_fn_c_try_link "$LINENO"; then :
11808   ac_cv_lib_posix4_sem_init=yes
11809 else
11810   ac_cv_lib_posix4_sem_init=no
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext \
11813     conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11817 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11818 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11819   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11820
11821         SEM_INIT_LIB=-lposix4
11822 fi
11823
11824 fi
11825
11826 fi
11827
11828 fi
11829 fi
11830
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11832 $as_echo_n "checking for unified diff option... " >&6; }
11833 if diff -u $0 $0 > /dev/null 2>&1 ; then
11834    UNI_DIFF_OPTS=-u
11835 else
11836    UNI_DIFF_OPTS=-c
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11839 $as_echo "$UNI_DIFF_OPTS" >&6; }
11840
11841 case "$host_os" in
11842 linux*)
11843
11844 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11845
11846         ;;
11847 esac
11848
11849     $as_echo_n "checking for mount 'nosuid' option... "
11850     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h.  */
11852 #include <sys/mount.h>
11853 int
11854 main ()
11855 {
11856 void *temp = (void *)(MS_NOSUID); (void) temp;
11857   ;
11858   return 0;
11859 }
11860 _ACEOF
11861 if ac_fn_c_try_compile "$LINENO"; then :
11862
11863 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11864
11865          ac_cv_mount_nosuid=yes
11866          $as_echo "yes"
11867 else
11868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h.  */
11870 #include <sys/mount.h>
11871 int
11872 main ()
11873 {
11874 void *temp = (void *)(MNT_NOSUID); (void) temp;
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 if ac_fn_c_try_compile "$LINENO"; then :
11880
11881 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11882
11883              ac_cv_mount_nosuid=yes
11884              $as_echo "yes"
11885 else
11886   ac_cv_mount_nosuid=no
11887              $as_echo "no"
11888
11889 fi
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891
11892 fi
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894
11895
11896     $as_echo_n "checking for mount 'nodev' option... "
11897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h.  */
11899 #include <sys/mount.h>
11900 int
11901 main ()
11902 {
11903 void *temp = (void *)(MS_NODEV); (void) temp;
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 if ac_fn_c_try_compile "$LINENO"; then :
11909
11910 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11911
11912          ac_cv_mount_nodev=yes
11913          $as_echo "yes"
11914 else
11915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h.  */
11917 #include <sys/mount.h>
11918 int
11919 main ()
11920 {
11921 void *temp = (void *)(MNT_NODEV); (void) temp;
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 if ac_fn_c_try_compile "$LINENO"; then :
11927
11928 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11929
11930              ac_cv_mount_nodev=yes
11931              $as_echo "yes"
11932 else
11933   ac_cv_mount_nodev=no
11934              $as_echo "no"
11935
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941
11942 # Check whether --enable-lto was given.
11943 if test "${enable_lto+set}" = set; then :
11944   enableval=$enable_lto;
11945 else
11946   enable_lto=no
11947 fi
11948
11949 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
11950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
11951 $as_echo_n "checking if C compiler supports LTO... " >&6; }
11952         OLD_CFLAGS="$CFLAGS"
11953         OLD_LDFLAGS="$LDFLAGS"
11954         LTO_FLAGS="-g -flto -ffat-lto-objects"
11955         CFLAGS="$CFLAGS $LTO_FLAGS"
11956         LDFLAGS="$LDFLAGS $LTO_FLAGS"
11957         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h.  */
11959
11960 int
11961 main ()
11962 {
11963
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 if ac_fn_c_try_link "$LINENO"; then :
11969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970 $as_echo "yes" >&6; }
11971                 lto_cflags=$LTO_FLAGS
11972                 lto_ldflags=$LTO_FLAGS
11973                 # Extract the first word of "gcc-ar", so it can be a program name with args.
11974 set dummy gcc-ar; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if ${ac_cv_path_gcc_ar+:} false; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980   case $gcc_ar in
11981   [\\/]* | ?:[\\/]*)
11982   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
11983   ;;
11984   *)
11985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $PATH
11987 do
11988   IFS=$as_save_IFS
11989   test -z "$as_dir" && as_dir=.
11990     for ac_exec_ext in '' $ac_executable_extensions; do
11991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992     ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
11993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994     break 2
11995   fi
11996 done
11997   done
11998 IFS=$as_save_IFS
11999
12000   ;;
12001 esac
12002 fi
12003 gcc_ar=$ac_cv_path_gcc_ar
12004 if test -n "$gcc_ar"; then
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
12006 $as_echo "$gcc_ar" >&6; }
12007 else
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 fi
12011
12012
12013                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
12014 set dummy gcc-ranlib; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_path_gcc_ranlib+:} false; then :
12018   $as_echo_n "(cached) " >&6
12019 else
12020   case $gcc_ranlib in
12021   [\\/]* | ?:[\\/]*)
12022   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
12023   ;;
12024   *)
12025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12027 do
12028   IFS=$as_save_IFS
12029   test -z "$as_dir" && as_dir=.
12030     for ac_exec_ext in '' $ac_executable_extensions; do
12031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032     ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
12033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12034     break 2
12035   fi
12036 done
12037   done
12038 IFS=$as_save_IFS
12039
12040   ;;
12041 esac
12042 fi
12043 gcc_ranlib=$ac_cv_path_gcc_ranlib
12044 if test -n "$gcc_ranlib"; then
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
12046 $as_echo "$gcc_ranlib" >&6; }
12047 else
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12050 fi
12051
12052
12053 else
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext \
12058     conftest$ac_exeext conftest.$ac_ext
12059         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
12060                 have_lto=yes
12061                 AR="${gcc_ar}"
12062                 RANLIB="${gcc_ranlib}"
12063         fi
12064         CFLAGS="${OLD_CFLAGS}"
12065         LDFLAGS="${OLD_LDFLAGS}"
12066
12067
12068
12069 fi
12070 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
12071         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
12072 fi
12073 # Check whether --enable-ubsan was given.
12074 if test "${enable_ubsan+set}" = set; then :
12075   enableval=$enable_ubsan;
12076 else
12077   enable_ubsan=no
12078 fi
12079
12080 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
12081         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
12082 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
12083         OLD_CFLAGS="$CFLAGS"
12084         OLD_LDFLAGS="$LDFLAGS"
12085         UBSAN_FLAGS="-fsanitize=undefined"
12086         CFLAGS="$CFLAGS $UBSAN_FLAGS"
12087         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
12088         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h.  */
12090
12091 int
12092 main ()
12093 {
12094
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 if ac_fn_c_try_link "$LINENO"; then :
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12101 $as_echo "yes" >&6; }
12102                 ubsan_cflags=$UBSAN_FLAGS
12103                 ubsan_ldflags=$UBSAN_FLAGS
12104                 have_ubsan=yes
12105 else
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 fi
12109 rm -f core conftest.err conftest.$ac_objext \
12110     conftest$ac_exeext conftest.$ac_ext
12111         CFLAGS="${OLD_CFLAGS}"
12112         LDFLAGS="${OLD_LDFLAGS}"
12113
12114
12115
12116 fi
12117 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
12118         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
12119 fi
12120 # Check whether --enable-addrsan was given.
12121 if test "${enable_addrsan+set}" = set; then :
12122   enableval=$enable_addrsan;
12123 else
12124   enable_addrsan=no
12125 fi
12126
12127 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
12128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
12129 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
12130         OLD_CFLAGS="$CFLAGS"
12131         OLD_LDFLAGS="$LDFLAGS"
12132         ADDRSAN_FLAGS="-fsanitize=address"
12133         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
12134         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
12135         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h.  */
12137
12138 int
12139 main ()
12140 {
12141
12142   ;
12143   return 0;
12144 }
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12148 $as_echo "yes" >&6; }
12149                 addrsan_cflags=$ADDRSAN_FLAGS
12150                 addrsan_ldflags=$ADDRSAN_FLAGS
12151                 have_addrsan=yes
12152 else
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext \
12157     conftest$ac_exeext conftest.$ac_ext
12158         CFLAGS="${OLD_CFLAGS}"
12159         LDFLAGS="${OLD_LDFLAGS}"
12160
12161
12162
12163 fi
12164 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
12165         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
12166 fi
12167 # Check whether --enable-threadsan was given.
12168 if test "${enable_threadsan+set}" = set; then :
12169   enableval=$enable_threadsan;
12170 else
12171   enable_threadsan=no
12172 fi
12173
12174 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
12175         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
12176 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
12177         OLD_CFLAGS="$CFLAGS"
12178         OLD_LDFLAGS="$LDFLAGS"
12179         THREADSAN_FLAGS="-fsanitize=thread"
12180         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
12181         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
12182         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h.  */
12184
12185 int
12186 main ()
12187 {
12188
12189   ;
12190   return 0;
12191 }
12192 _ACEOF
12193 if ac_fn_c_try_link "$LINENO"; then :
12194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12195 $as_echo "yes" >&6; }
12196                 threadsan_cflags=$THREADSAN_FLAGS
12197                 threadsan_ldflags=$THREADSAN_FLAGS
12198                 have_threadsan=yes
12199 else
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext \
12204     conftest$ac_exeext conftest.$ac_ext
12205         CFLAGS="${OLD_CFLAGS}"
12206         LDFLAGS="${OLD_LDFLAGS}"
12207
12208
12209
12210 fi
12211 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
12212         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
12213 fi
12214 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
12215         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
12216 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
12217 fi
12218 LINUX_CMT="#"
12219 CYGWIN_CMT="#"
12220 UNIX_CMT=
12221 case "$host_os" in
12222 linux*)
12223         LINUX_CMT=
12224         ;;
12225 cygwin)
12226         CYGWIN_CMT=
12227         UNIX_CMT="#"
12228         ;;
12229 esac
12230
12231
12232
12233 E2SCRUB_CMT="$LINUX_CMT"
12234
12235 case "$host_os" in
12236 linux* | gnu* | k*bsd*-gnu)
12237         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
12238                 root_prefix="";
12239                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
12240 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
12241         fi
12242         ;;
12243 esac
12244 case "$host_os" in
12245 linux* | gnu* | k*bsd*-gnu)
12246         if test "$prefix" = NONE ; then
12247                 prefix="/usr";
12248                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
12249 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
12250                 if test "$mandir" = '${prefix}/man' ; then
12251                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
12252 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
12253                         mandir=/usr/share/man
12254                 fi
12255         fi
12256 ;;
12257 esac
12258 if test "$root_prefix" = NONE ; then
12259         if test "$prefix" = NONE ; then
12260                 root_prefix="$ac_default_prefix"
12261         else
12262                 root_prefix="$prefix"
12263         fi
12264         root_bindir=$bindir
12265         root_sbindir=$sbindir
12266         root_libdir=$libdir
12267         root_sysconfdir=$sysconfdir
12268 else
12269         root_bindir='${root_prefix}/bin'
12270         root_sbindir='${root_prefix}/sbin'
12271         root_libdir='${root_prefix}/lib'
12272         root_sysconfdir='${root_prefix}/etc'
12273 fi
12274 if test "$bindir" != '${exec_prefix}/bin'; then
12275     root_bindir=$bindir
12276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
12277 $as_echo "Setting root_bindir to $root_bindir" >&6; }
12278 fi
12279 if test "$sbindir" != '${exec_prefix}/sbin'; then
12280     root_sbindir=$sbindir
12281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
12282 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
12283 fi
12284 if test "$libdir" != '${exec_prefix}/lib'; then
12285     root_libdir=$libdir
12286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
12287 $as_echo "Setting root_libdir to $root_libdir" >&6; }
12288 fi
12289 if test "$sysconfdir" != '${prefix}/etc'; then
12290     root_sysconfdir=$sysconfdir
12291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
12292 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
12293 fi
12294
12295
12296
12297
12298
12299
12300 # Check whether --with-multiarch was given.
12301 if test "${with_multiarch+set}" = set; then :
12302   withval=$with_multiarch; if test "$withval" = "lib64"; then
12303     libdir=/usr/lib64
12304     root_libdir=/lib64
12305 else
12306     libdir=$libdir/$withval
12307     root_libdir=$root_libdir/$withval
12308 fi
12309
12310 fi
12311
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
12313 $as_echo_n "checking whether we can link with -static... " >&6; }
12314 if ${ac_cv_e2fsprogs_use_static+:} false; then :
12315   $as_echo_n "(cached) " >&6
12316 else
12317   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h.  */
12320 #include <stdio.h>
12321 int
12322 main ()
12323 {
12324 fflush(stdout);
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"; then :
12330   ac_cv_e2fsprogs_use_static=yes
12331 else
12332   ac_cv_e2fsprogs_use_static=no
12333 fi
12334 rm -f core conftest.err conftest.$ac_objext \
12335     conftest$ac_exeext conftest.$ac_ext
12336 LDFLAGS=$SAVE_LDFLAGS
12337 fi
12338
12339 case "$host_os" in
12340 solaris2.*)
12341         ac_cv_e2fsprogs_use_static=no
12342 ;;
12343 esac
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
12345 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
12346 if test $ac_cv_e2fsprogs_use_static = yes; then
12347         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
12348 fi
12349
12350 case "$host_os" in
12351 darwin*)
12352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
12353 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
12354
12355 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
12356
12357         ;;
12358 esac
12359 if test "$cross_compiling" = yes ; then
12360   DO_TEST_SUITE=
12361 else
12362   DO_TEST_SUITE=check
12363 fi
12364
12365 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
12366 if test -n "$CPPFLAGS" ; then
12367         INCLUDES="$INCLUDES $CPPFLAGS"
12368 fi
12369 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
12370         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
12371 fi
12372 if test -n "$WITH_DIET_LIBC" ; then
12373         INCLUDES="$INCLUDES -D_REENTRANT"
12374 fi
12375
12376 if test $cross_compiling = no; then
12377    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
12378    BUILD_LDFLAGS="$LDFLAGS"
12379 fi
12380
12381
12382 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
12383 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
12384 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
12385
12386
12387
12388
12389
12390 # Check whether --with-udev_rules_dir was given.
12391 if test "${with_udev_rules_dir+set}" = set; then :
12392   withval=$with_udev_rules_dir;
12393 else
12394   with_udev_rules_dir=yes
12395 fi
12396
12397 if test "x${with_udev_rules_dir}" != "xno"; then :
12398
12399         if test "x${with_udev_rules_dir}" = "xyes"; then :
12400
12401
12402 pkg_failed=no
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
12404 $as_echo_n "checking for udev... " >&6; }
12405
12406 if test -n "$udev_CFLAGS"; then
12407     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
12408  elif test -n "$PKG_CONFIG"; then
12409     if test -n "$PKG_CONFIG" && \
12410     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12411   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12412   ac_status=$?
12413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414   test $ac_status = 0; }; then
12415   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
12416                       test "x$?" != "x0" && pkg_failed=yes
12417 else
12418   pkg_failed=yes
12419 fi
12420  else
12421     pkg_failed=untried
12422 fi
12423 if test -n "$udev_LIBS"; then
12424     pkg_cv_udev_LIBS="$udev_LIBS"
12425  elif test -n "$PKG_CONFIG"; then
12426     if test -n "$PKG_CONFIG" && \
12427     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12428   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12429   ac_status=$?
12430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12431   test $ac_status = 0; }; then
12432   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
12433                       test "x$?" != "x0" && pkg_failed=yes
12434 else
12435   pkg_failed=yes
12436 fi
12437  else
12438     pkg_failed=untried
12439 fi
12440
12441
12442
12443 if test $pkg_failed = yes; then
12444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12446
12447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12448         _pkg_short_errors_supported=yes
12449 else
12450         _pkg_short_errors_supported=no
12451 fi
12452         if test $_pkg_short_errors_supported = yes; then
12453                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
12454         else
12455                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
12456         fi
12457         # Put the nasty error message in config.log where it belongs
12458         echo "$udev_PKG_ERRORS" >&5
12459
12460
12461                         with_udev_rules_dir=""
12462
12463 elif test $pkg_failed = untried; then
12464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12466
12467                         with_udev_rules_dir=""
12468
12469 else
12470         udev_CFLAGS=$pkg_cv_udev_CFLAGS
12471         udev_LIBS=$pkg_cv_udev_LIBS
12472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12473 $as_echo "yes" >&6; }
12474
12475                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
12476
12477 fi
12478
12479 fi
12480         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
12481 $as_echo_n "checking for udev rules dir... " >&6; }
12482         pkg_udev_rules_dir="${with_udev_rules_dir}"
12483         if test -n "${pkg_udev_rules_dir}"; then :
12484
12485                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
12486 $as_echo "${pkg_udev_rules_dir}" >&6; }
12487                 have_udev="yes"
12488
12489 else
12490
12491                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12493                 have_udev="no"
12494
12495 fi
12496
12497 else
12498
12499         have_udev="disabled"
12500
12501 fi
12502
12503
12504
12505
12506 # Check whether --with-crond_dir was given.
12507 if test "${with_crond_dir+set}" = set; then :
12508   withval=$with_crond_dir;
12509 else
12510   with_crond_dir=yes
12511 fi
12512
12513 if test "x${with_crond_dir}" != "xno"; then :
12514
12515         if test "x${with_crond_dir}" = "xyes"; then :
12516
12517                 if test -d "/etc/cron.d"; then :
12518   with_crond_dir="/etc/cron.d"
12519 else
12520   have_crond="no"; with_crond_dir=""
12521 fi
12522
12523 fi
12524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
12525 $as_echo_n "checking for system crontab dir... " >&6; }
12526         crond_dir="${with_crond_dir}"
12527         if test -n "${crond_dir}"; then :
12528
12529                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
12530 $as_echo "${crond_dir}" >&6; }
12531                 have_crond="yes"
12532
12533 else
12534
12535                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537                 have_crond="no"
12538
12539 fi
12540
12541 else
12542
12543         have_crond="disabled"
12544
12545 fi
12546
12547
12548
12549
12550 # Check whether --with-systemd_unit_dir was given.
12551 if test "${with_systemd_unit_dir+set}" = set; then :
12552   withval=$with_systemd_unit_dir;
12553 else
12554   with_systemd_unit_dir=yes
12555 fi
12556
12557 if test "x${with_systemd_unit_dir}" != "xno"; then :
12558
12559         if test "x${with_systemd_unit_dir}" = "xyes"; then :
12560
12561
12562 pkg_failed=no
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
12564 $as_echo_n "checking for systemd... " >&6; }
12565
12566 if test -n "$systemd_CFLAGS"; then
12567     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
12568  elif test -n "$PKG_CONFIG"; then
12569     if test -n "$PKG_CONFIG" && \
12570     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12571   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12572   ac_status=$?
12573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12574   test $ac_status = 0; }; then
12575   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
12576                       test "x$?" != "x0" && pkg_failed=yes
12577 else
12578   pkg_failed=yes
12579 fi
12580  else
12581     pkg_failed=untried
12582 fi
12583 if test -n "$systemd_LIBS"; then
12584     pkg_cv_systemd_LIBS="$systemd_LIBS"
12585  elif test -n "$PKG_CONFIG"; then
12586     if test -n "$PKG_CONFIG" && \
12587     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12588   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12589   ac_status=$?
12590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12591   test $ac_status = 0; }; then
12592   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
12593                       test "x$?" != "x0" && pkg_failed=yes
12594 else
12595   pkg_failed=yes
12596 fi
12597  else
12598     pkg_failed=untried
12599 fi
12600
12601
12602
12603 if test $pkg_failed = yes; then
12604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606
12607 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12608         _pkg_short_errors_supported=yes
12609 else
12610         _pkg_short_errors_supported=no
12611 fi
12612         if test $_pkg_short_errors_supported = yes; then
12613                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
12614         else
12615                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
12616         fi
12617         # Put the nasty error message in config.log where it belongs
12618         echo "$systemd_PKG_ERRORS" >&5
12619
12620
12621                         with_systemd_unit_dir=""
12622
12623 elif test $pkg_failed = untried; then
12624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626
12627                         with_systemd_unit_dir=""
12628
12629 else
12630         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
12631         systemd_LIBS=$pkg_cv_systemd_LIBS
12632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12634
12635                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
12636
12637 fi
12638
12639
12640 fi
12641         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
12642 $as_echo_n "checking for systemd system unit dir... " >&6; }
12643         systemd_system_unit_dir="${with_systemd_unit_dir}"
12644         if test -n "${systemd_system_unit_dir}"; then :
12645
12646                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
12647 $as_echo "${systemd_system_unit_dir}" >&6; }
12648                 have_systemd="yes"
12649
12650 else
12651
12652                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12654                 have_systemd="no"
12655
12656 fi
12657
12658 else
12659
12660         have_systemd="disabled"
12661
12662 fi
12663
12664
12665
12666 test -d lib || mkdir lib
12667 test -d include || mkdir include
12668 test -d include/linux || mkdir include/linux
12669 test -d include/asm || mkdir include/asm
12670 if test -z "$UUID_CMT" ; then
12671         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
12672                 lib/uuid/uuid_types.h"
12673 fi
12674 if test -z "$BLKID_CMT" ; then
12675         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
12676                 lib/blkid/blkid_types.h"
12677 fi
12678 for i in MCONFIG Makefile \
12679         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
12680         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
12681         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
12682         $uuid_out_list $blkid_out_list lib/support/Makefile \
12683         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
12684         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
12685         debugfs/Makefile tests/Makefile tests/progs/Makefile \
12686         resize/Makefile doc/Makefile po/Makefile.in scrub/Makefile; do
12687         if test -d `dirname ${srcdir}/$i` ; then
12688                 outlist="$outlist $i"
12689         fi
12690 done
12691 ac_config_files="$ac_config_files $outlist"
12692
12693 cat >confcache <<\_ACEOF
12694 # This file is a shell script that caches the results of configure
12695 # tests run on this system so they can be shared between configure
12696 # scripts and configure runs, see configure's option --config-cache.
12697 # It is not useful on other systems.  If it contains results you don't
12698 # want to keep, you may remove or edit it.
12699 #
12700 # config.status only pays attention to the cache file if you give it
12701 # the --recheck option to rerun configure.
12702 #
12703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12705 # following values.
12706
12707 _ACEOF
12708
12709 # The following way of writing the cache mishandles newlines in values,
12710 # but we know of no workaround that is simple, portable, and efficient.
12711 # So, we kill variables containing newlines.
12712 # Ultrix sh set writes to stderr and can't be redirected directly,
12713 # and sets the high bit in the cache file unless we assign to the vars.
12714 (
12715   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12716     eval ac_val=\$$ac_var
12717     case $ac_val in #(
12718     *${as_nl}*)
12719       case $ac_var in #(
12720       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12721 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12722       esac
12723       case $ac_var in #(
12724       _ | IFS | as_nl) ;; #(
12725       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12726       *) { eval $ac_var=; unset $ac_var;} ;;
12727       esac ;;
12728     esac
12729   done
12730
12731   (set) 2>&1 |
12732     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12733     *${as_nl}ac_space=\ *)
12734       # `set' does not quote correctly, so add quotes: double-quote
12735       # substitution turns \\\\ into \\, and sed turns \\ into \.
12736       sed -n \
12737         "s/'/'\\\\''/g;
12738           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12739       ;; #(
12740     *)
12741       # `set' quotes correctly as required by POSIX, so do not add quotes.
12742       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12743       ;;
12744     esac |
12745     sort
12746 ) |
12747   sed '
12748      /^ac_cv_env_/b end
12749      t clear
12750      :clear
12751      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12752      t end
12753      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12754      :end' >>confcache
12755 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12756   if test -w "$cache_file"; then
12757     if test "x$cache_file" != "x/dev/null"; then
12758       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12759 $as_echo "$as_me: updating cache $cache_file" >&6;}
12760       if test ! -f "$cache_file" || test -h "$cache_file"; then
12761         cat confcache >"$cache_file"
12762       else
12763         case $cache_file in #(
12764         */* | ?:*)
12765           mv -f confcache "$cache_file"$$ &&
12766           mv -f "$cache_file"$$ "$cache_file" ;; #(
12767         *)
12768           mv -f confcache "$cache_file" ;;
12769         esac
12770       fi
12771     fi
12772   else
12773     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12774 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12775   fi
12776 fi
12777 rm -f confcache
12778
12779 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12780 # Let make expand exec_prefix.
12781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12782
12783 DEFS=-DHAVE_CONFIG_H
12784
12785 ac_libobjs=
12786 ac_ltlibobjs=
12787 U=
12788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12789   # 1. Remove the extension, and $U if already installed.
12790   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12791   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12792   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12793   #    will be set to the directory where LIBOBJS objects are built.
12794   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12795   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12796 done
12797 LIBOBJS=$ac_libobjs
12798
12799 LTLIBOBJS=$ac_ltlibobjs
12800
12801
12802
12803
12804 : "${CONFIG_STATUS=./config.status}"
12805 ac_write_fail=0
12806 ac_clean_files_save=$ac_clean_files
12807 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12809 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12810 as_write_fail=0
12811 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12812 #! $SHELL
12813 # Generated by $as_me.
12814 # Run this file to recreate the current configuration.
12815 # Compiler output produced by configure, useful for debugging
12816 # configure, is in config.log if it exists.
12817
12818 debug=false
12819 ac_cs_recheck=false
12820 ac_cs_silent=false
12821
12822 SHELL=\${CONFIG_SHELL-$SHELL}
12823 export SHELL
12824 _ASEOF
12825 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12826 ## -------------------- ##
12827 ## M4sh Initialization. ##
12828 ## -------------------- ##
12829
12830 # Be more Bourne compatible
12831 DUALCASE=1; export DUALCASE # for MKS sh
12832 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12833   emulate sh
12834   NULLCMD=:
12835   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12836   # is contrary to our usage.  Disable this feature.
12837   alias -g '${1+"$@"}'='"$@"'
12838   setopt NO_GLOB_SUBST
12839 else
12840   case `(set -o) 2>/dev/null` in #(
12841   *posix*) :
12842     set -o posix ;; #(
12843   *) :
12844      ;;
12845 esac
12846 fi
12847
12848
12849 as_nl='
12850 '
12851 export as_nl
12852 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12853 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12855 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12856 # Prefer a ksh shell builtin over an external printf program on Solaris,
12857 # but without wasting forks for bash or zsh.
12858 if test -z "$BASH_VERSION$ZSH_VERSION" \
12859     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12860   as_echo='print -r --'
12861   as_echo_n='print -rn --'
12862 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12863   as_echo='printf %s\n'
12864   as_echo_n='printf %s'
12865 else
12866   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12867     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12868     as_echo_n='/usr/ucb/echo -n'
12869   else
12870     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12871     as_echo_n_body='eval
12872       arg=$1;
12873       case $arg in #(
12874       *"$as_nl"*)
12875         expr "X$arg" : "X\\(.*\\)$as_nl";
12876         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12877       esac;
12878       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12879     '
12880     export as_echo_n_body
12881     as_echo_n='sh -c $as_echo_n_body as_echo'
12882   fi
12883   export as_echo_body
12884   as_echo='sh -c $as_echo_body as_echo'
12885 fi
12886
12887 # The user is always right.
12888 if test "${PATH_SEPARATOR+set}" != set; then
12889   PATH_SEPARATOR=:
12890   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12891     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12892       PATH_SEPARATOR=';'
12893   }
12894 fi
12895
12896
12897 # IFS
12898 # We need space, tab and new line, in precisely that order.  Quoting is
12899 # there to prevent editors from complaining about space-tab.
12900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12901 # splitting by setting IFS to empty value.)
12902 IFS=" ""        $as_nl"
12903
12904 # Find who we are.  Look in the path if we contain no directory separator.
12905 as_myself=
12906 case $0 in #((
12907   *[\\/]* ) as_myself=$0 ;;
12908   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12910 do
12911   IFS=$as_save_IFS
12912   test -z "$as_dir" && as_dir=.
12913     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12914   done
12915 IFS=$as_save_IFS
12916
12917      ;;
12918 esac
12919 # We did not find ourselves, most probably we were run as `sh COMMAND'
12920 # in which case we are not to be found in the path.
12921 if test "x$as_myself" = x; then
12922   as_myself=$0
12923 fi
12924 if test ! -f "$as_myself"; then
12925   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12926   exit 1
12927 fi
12928
12929 # Unset variables that we do not need and which cause bugs (e.g. in
12930 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12931 # suppresses any "Segmentation fault" message there.  '((' could
12932 # trigger a bug in pdksh 5.2.14.
12933 for as_var in BASH_ENV ENV MAIL MAILPATH
12934 do eval test x\${$as_var+set} = xset \
12935   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12936 done
12937 PS1='$ '
12938 PS2='> '
12939 PS4='+ '
12940
12941 # NLS nuisances.
12942 LC_ALL=C
12943 export LC_ALL
12944 LANGUAGE=C
12945 export LANGUAGE
12946
12947 # CDPATH.
12948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12949
12950
12951 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12952 # ----------------------------------------
12953 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12954 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12955 # script with STATUS, using 1 if that was 0.
12956 as_fn_error ()
12957 {
12958   as_status=$1; test $as_status -eq 0 && as_status=1
12959   if test "$4"; then
12960     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12961     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12962   fi
12963   $as_echo "$as_me: error: $2" >&2
12964   as_fn_exit $as_status
12965 } # as_fn_error
12966
12967
12968 # as_fn_set_status STATUS
12969 # -----------------------
12970 # Set $? to STATUS, without forking.
12971 as_fn_set_status ()
12972 {
12973   return $1
12974 } # as_fn_set_status
12975
12976 # as_fn_exit STATUS
12977 # -----------------
12978 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12979 as_fn_exit ()
12980 {
12981   set +e
12982   as_fn_set_status $1
12983   exit $1
12984 } # as_fn_exit
12985
12986 # as_fn_unset VAR
12987 # ---------------
12988 # Portably unset VAR.
12989 as_fn_unset ()
12990 {
12991   { eval $1=; unset $1;}
12992 }
12993 as_unset=as_fn_unset
12994 # as_fn_append VAR VALUE
12995 # ----------------------
12996 # Append the text in VALUE to the end of the definition contained in VAR. Take
12997 # advantage of any shell optimizations that allow amortized linear growth over
12998 # repeated appends, instead of the typical quadratic growth present in naive
12999 # implementations.
13000 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13001   eval 'as_fn_append ()
13002   {
13003     eval $1+=\$2
13004   }'
13005 else
13006   as_fn_append ()
13007   {
13008     eval $1=\$$1\$2
13009   }
13010 fi # as_fn_append
13011
13012 # as_fn_arith ARG...
13013 # ------------------
13014 # Perform arithmetic evaluation on the ARGs, and store the result in the
13015 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13016 # must be portable across $(()) and expr.
13017 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13018   eval 'as_fn_arith ()
13019   {
13020     as_val=$(( $* ))
13021   }'
13022 else
13023   as_fn_arith ()
13024   {
13025     as_val=`expr "$@" || test $? -eq 1`
13026   }
13027 fi # as_fn_arith
13028
13029
13030 if expr a : '\(a\)' >/dev/null 2>&1 &&
13031    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13032   as_expr=expr
13033 else
13034   as_expr=false
13035 fi
13036
13037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13038   as_basename=basename
13039 else
13040   as_basename=false
13041 fi
13042
13043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13044   as_dirname=dirname
13045 else
13046   as_dirname=false
13047 fi
13048
13049 as_me=`$as_basename -- "$0" ||
13050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13051          X"$0" : 'X\(//\)$' \| \
13052          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13053 $as_echo X/"$0" |
13054     sed '/^.*\/\([^/][^/]*\)\/*$/{
13055             s//\1/
13056             q
13057           }
13058           /^X\/\(\/\/\)$/{
13059             s//\1/
13060             q
13061           }
13062           /^X\/\(\/\).*/{
13063             s//\1/
13064             q
13065           }
13066           s/.*/./; q'`
13067
13068 # Avoid depending upon Character Ranges.
13069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13072 as_cr_digits='0123456789'
13073 as_cr_alnum=$as_cr_Letters$as_cr_digits
13074
13075 ECHO_C= ECHO_N= ECHO_T=
13076 case `echo -n x` in #(((((
13077 -n*)
13078   case `echo 'xy\c'` in
13079   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13080   xy)  ECHO_C='\c';;
13081   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13082        ECHO_T=' ';;
13083   esac;;
13084 *)
13085   ECHO_N='-n';;
13086 esac
13087
13088 rm -f conf$$ conf$$.exe conf$$.file
13089 if test -d conf$$.dir; then
13090   rm -f conf$$.dir/conf$$.file
13091 else
13092   rm -f conf$$.dir
13093   mkdir conf$$.dir 2>/dev/null
13094 fi
13095 if (echo >conf$$.file) 2>/dev/null; then
13096   if ln -s conf$$.file conf$$ 2>/dev/null; then
13097     as_ln_s='ln -s'
13098     # ... but there are two gotchas:
13099     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13100     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13101     # In both cases, we have to default to `cp -pR'.
13102     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13103       as_ln_s='cp -pR'
13104   elif ln conf$$.file conf$$ 2>/dev/null; then
13105     as_ln_s=ln
13106   else
13107     as_ln_s='cp -pR'
13108   fi
13109 else
13110   as_ln_s='cp -pR'
13111 fi
13112 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13113 rmdir conf$$.dir 2>/dev/null
13114
13115
13116 # as_fn_mkdir_p
13117 # -------------
13118 # Create "$as_dir" as a directory, including parents if necessary.
13119 as_fn_mkdir_p ()
13120 {
13121
13122   case $as_dir in #(
13123   -*) as_dir=./$as_dir;;
13124   esac
13125   test -d "$as_dir" || eval $as_mkdir_p || {
13126     as_dirs=
13127     while :; do
13128       case $as_dir in #(
13129       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13130       *) as_qdir=$as_dir;;
13131       esac
13132       as_dirs="'$as_qdir' $as_dirs"
13133       as_dir=`$as_dirname -- "$as_dir" ||
13134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13135          X"$as_dir" : 'X\(//\)[^/]' \| \
13136          X"$as_dir" : 'X\(//\)$' \| \
13137          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13138 $as_echo X"$as_dir" |
13139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13140             s//\1/
13141             q
13142           }
13143           /^X\(\/\/\)[^/].*/{
13144             s//\1/
13145             q
13146           }
13147           /^X\(\/\/\)$/{
13148             s//\1/
13149             q
13150           }
13151           /^X\(\/\).*/{
13152             s//\1/
13153             q
13154           }
13155           s/.*/./; q'`
13156       test -d "$as_dir" && break
13157     done
13158     test -z "$as_dirs" || eval "mkdir $as_dirs"
13159   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13160
13161
13162 } # as_fn_mkdir_p
13163 if mkdir -p . 2>/dev/null; then
13164   as_mkdir_p='mkdir -p "$as_dir"'
13165 else
13166   test -d ./-p && rmdir ./-p
13167   as_mkdir_p=false
13168 fi
13169
13170
13171 # as_fn_executable_p FILE
13172 # -----------------------
13173 # Test if FILE is an executable regular file.
13174 as_fn_executable_p ()
13175 {
13176   test -f "$1" && test -x "$1"
13177 } # as_fn_executable_p
13178 as_test_x='test -x'
13179 as_executable_p=as_fn_executable_p
13180
13181 # Sed expression to map a string onto a valid CPP name.
13182 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13183
13184 # Sed expression to map a string onto a valid variable name.
13185 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13186
13187
13188 exec 6>&1
13189 ## ----------------------------------- ##
13190 ## Main body of $CONFIG_STATUS script. ##
13191 ## ----------------------------------- ##
13192 _ASEOF
13193 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13194
13195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13196 # Save the log message, to keep $0 and so on meaningful, and to
13197 # report actual input values of CONFIG_FILES etc. instead of their
13198 # values after options handling.
13199 ac_log="
13200 This file was extended by $as_me, which was
13201 generated by GNU Autoconf 2.69.  Invocation command line was
13202
13203   CONFIG_FILES    = $CONFIG_FILES
13204   CONFIG_HEADERS  = $CONFIG_HEADERS
13205   CONFIG_LINKS    = $CONFIG_LINKS
13206   CONFIG_COMMANDS = $CONFIG_COMMANDS
13207   $ $0 $@
13208
13209 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13210 "
13211
13212 _ACEOF
13213
13214 case $ac_config_files in *"
13215 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13216 esac
13217
13218 case $ac_config_headers in *"
13219 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13220 esac
13221
13222
13223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13224 # Files that config.status was made for.
13225 config_files="$ac_config_files"
13226 config_headers="$ac_config_headers"
13227 config_commands="$ac_config_commands"
13228
13229 _ACEOF
13230
13231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232 ac_cs_usage="\
13233 \`$as_me' instantiates files and other configuration actions
13234 from templates according to the current configuration.  Unless the files
13235 and actions are specified as TAGs, all are instantiated by default.
13236
13237 Usage: $0 [OPTION]... [TAG]...
13238
13239   -h, --help       print this help, then exit
13240   -V, --version    print version number and configuration settings, then exit
13241       --config     print configuration, then exit
13242   -q, --quiet, --silent
13243                    do not print progress messages
13244   -d, --debug      don't remove temporary files
13245       --recheck    update $as_me by reconfiguring in the same conditions
13246       --file=FILE[:TEMPLATE]
13247                    instantiate the configuration file FILE
13248       --header=FILE[:TEMPLATE]
13249                    instantiate the configuration header FILE
13250
13251 Configuration files:
13252 $config_files
13253
13254 Configuration headers:
13255 $config_headers
13256
13257 Configuration commands:
13258 $config_commands
13259
13260 Report bugs to the package provider."
13261
13262 _ACEOF
13263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13264 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13265 ac_cs_version="\\
13266 config.status
13267 configured by $0, generated by GNU Autoconf 2.69,
13268   with options \\"\$ac_cs_config\\"
13269
13270 Copyright (C) 2012 Free Software Foundation, Inc.
13271 This config.status script is free software; the Free Software Foundation
13272 gives unlimited permission to copy, distribute and modify it."
13273
13274 ac_pwd='$ac_pwd'
13275 srcdir='$srcdir'
13276 INSTALL='$INSTALL'
13277 MKDIR_P='$MKDIR_P'
13278 AWK='$AWK'
13279 test -n "\$AWK" || AWK=awk
13280 _ACEOF
13281
13282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283 # The default lists apply if the user does not specify any file.
13284 ac_need_defaults=:
13285 while test $# != 0
13286 do
13287   case $1 in
13288   --*=?*)
13289     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13290     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13291     ac_shift=:
13292     ;;
13293   --*=)
13294     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13295     ac_optarg=
13296     ac_shift=:
13297     ;;
13298   *)
13299     ac_option=$1
13300     ac_optarg=$2
13301     ac_shift=shift
13302     ;;
13303   esac
13304
13305   case $ac_option in
13306   # Handling of the options.
13307   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13308     ac_cs_recheck=: ;;
13309   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13310     $as_echo "$ac_cs_version"; exit ;;
13311   --config | --confi | --conf | --con | --co | --c )
13312     $as_echo "$ac_cs_config"; exit ;;
13313   --debug | --debu | --deb | --de | --d | -d )
13314     debug=: ;;
13315   --file | --fil | --fi | --f )
13316     $ac_shift
13317     case $ac_optarg in
13318     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13319     '') as_fn_error $? "missing file argument" ;;
13320     esac
13321     as_fn_append CONFIG_FILES " '$ac_optarg'"
13322     ac_need_defaults=false;;
13323   --header | --heade | --head | --hea )
13324     $ac_shift
13325     case $ac_optarg in
13326     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13327     esac
13328     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13329     ac_need_defaults=false;;
13330   --he | --h)
13331     # Conflict between --help and --header
13332     as_fn_error $? "ambiguous option: \`$1'
13333 Try \`$0 --help' for more information.";;
13334   --help | --hel | -h )
13335     $as_echo "$ac_cs_usage"; exit ;;
13336   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13337   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13338     ac_cs_silent=: ;;
13339
13340   # This is an error.
13341   -*) as_fn_error $? "unrecognized option: \`$1'
13342 Try \`$0 --help' for more information." ;;
13343
13344   *) as_fn_append ac_config_targets " $1"
13345      ac_need_defaults=false ;;
13346
13347   esac
13348   shift
13349 done
13350
13351 ac_configure_extra_args=
13352
13353 if $ac_cs_silent; then
13354   exec 6>/dev/null
13355   ac_configure_extra_args="$ac_configure_extra_args --silent"
13356 fi
13357
13358 _ACEOF
13359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13360 if \$ac_cs_recheck; then
13361   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13362   shift
13363   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13364   CONFIG_SHELL='$SHELL'
13365   export CONFIG_SHELL
13366   exec "\$@"
13367 fi
13368
13369 _ACEOF
13370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13371 exec 5>>config.log
13372 {
13373   echo
13374   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13375 ## Running $as_me. ##
13376 _ASBOX
13377   $as_echo "$ac_log"
13378 } >&5
13379
13380 _ACEOF
13381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13382 #
13383 # INIT-COMMANDS
13384 #
13385 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13386     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
13387     OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
13388     # Capture the value of LINGUAS because we need it to compute CATALOGS.
13389     LINGUAS="${LINGUAS-%UNSET%}"
13390
13391
13392 _ACEOF
13393
13394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13395
13396 # Handling of arguments.
13397 for ac_config_target in $ac_config_targets
13398 do
13399   case $ac_config_target in
13400     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
13401     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13402     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
13403
13404   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13405   esac
13406 done
13407
13408
13409 # If the user did not use the arguments to specify the items to instantiate,
13410 # then the envvar interface is used.  Set only those that are not.
13411 # We use the long form for the default assignment because of an extremely
13412 # bizarre bug on SunOS 4.1.3.
13413 if $ac_need_defaults; then
13414   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13415   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13416   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13417 fi
13418
13419 # Have a temporary directory for convenience.  Make it in the build tree
13420 # simply because there is no reason against having it here, and in addition,
13421 # creating and moving files from /tmp can sometimes cause problems.
13422 # Hook for its removal unless debugging.
13423 # Note that there is a small window in which the directory will not be cleaned:
13424 # after its creation but before its name has been assigned to `$tmp'.
13425 $debug ||
13426 {
13427   tmp= ac_tmp=
13428   trap 'exit_status=$?
13429   : "${ac_tmp:=$tmp}"
13430   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13431 ' 0
13432   trap 'as_fn_exit 1' 1 2 13 15
13433 }
13434 # Create a (secure) tmp directory for tmp files.
13435
13436 {
13437   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13438   test -d "$tmp"
13439 }  ||
13440 {
13441   tmp=./conf$$-$RANDOM
13442   (umask 077 && mkdir "$tmp")
13443 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13444 ac_tmp=$tmp
13445
13446 # Set up the scripts for CONFIG_FILES section.
13447 # No need to generate them if there are no CONFIG_FILES.
13448 # This happens for instance with `./config.status config.h'.
13449 if test -n "$CONFIG_FILES"; then
13450
13451 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13452   ac_cs_awk_getline=:
13453   ac_cs_awk_pipe_init=
13454   ac_cs_awk_read_file='
13455       while ((getline aline < (F[key])) > 0)
13456         print(aline)
13457       close(F[key])'
13458   ac_cs_awk_pipe_fini=
13459 else
13460   ac_cs_awk_getline=false
13461   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13462   ac_cs_awk_read_file='
13463       print "|#_!!_#|"
13464       print "cat " F[key] " &&"
13465       '$ac_cs_awk_pipe_init
13466   # The final `:' finishes the AND list.
13467   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13468 fi
13469 ac_cr=`echo X | tr X '\015'`
13470 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13471 # But we know of no other shell where ac_cr would be empty at this
13472 # point, so we can use a bashism as a fallback.
13473 if test "x$ac_cr" = x; then
13474   eval ac_cr=\$\'\\r\'
13475 fi
13476 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13477 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13478   ac_cs_awk_cr='\\r'
13479 else
13480   ac_cs_awk_cr=$ac_cr
13481 fi
13482
13483 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13484 _ACEOF
13485
13486 # Create commands to substitute file output variables.
13487 {
13488   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13489   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
13490   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13491   echo "_ACAWK" &&
13492   echo "_ACEOF"
13493 } >conf$$files.sh &&
13494 . ./conf$$files.sh ||
13495   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13496 rm -f conf$$files.sh
13497
13498 {
13499   echo "cat >conf$$subs.awk <<_ACEOF" &&
13500   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13501   echo "_ACEOF"
13502 } >conf$$subs.sh ||
13503   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13504 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13505 ac_delim='%!_!# '
13506 for ac_last_try in false false false false false :; do
13507   . ./conf$$subs.sh ||
13508     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13509
13510   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13511   if test $ac_delim_n = $ac_delim_num; then
13512     break
13513   elif $ac_last_try; then
13514     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13515   else
13516     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13517   fi
13518 done
13519 rm -f conf$$subs.sh
13520
13521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13522 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13523 _ACEOF
13524 sed -n '
13525 h
13526 s/^/S["/; s/!.*/"]=/
13527 p
13528 g
13529 s/^[^!]*!//
13530 :repl
13531 t repl
13532 s/'"$ac_delim"'$//
13533 t delim
13534 :nl
13535 h
13536 s/\(.\{148\}\)..*/\1/
13537 t more1
13538 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13539 p
13540 n
13541 b repl
13542 :more1
13543 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13544 p
13545 g
13546 s/.\{148\}//
13547 t nl
13548 :delim
13549 h
13550 s/\(.\{148\}\)..*/\1/
13551 t more2
13552 s/["\\]/\\&/g; s/^/"/; s/$/"/
13553 p
13554 b
13555 :more2
13556 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13557 p
13558 g
13559 s/.\{148\}//
13560 t delim
13561 ' <conf$$subs.awk | sed '
13562 /^[^""]/{
13563   N
13564   s/\n//
13565 }
13566 ' >>$CONFIG_STATUS || ac_write_fail=1
13567 rm -f conf$$subs.awk
13568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13569 _ACAWK
13570 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13571   for (key in S) S_is_set[key] = 1
13572   FS = "\a"
13573   \$ac_cs_awk_pipe_init
13574 }
13575 {
13576   line = $ 0
13577   nfields = split(line, field, "@")
13578   substed = 0
13579   len = length(field[1])
13580   for (i = 2; i < nfields; i++) {
13581     key = field[i]
13582     keylen = length(key)
13583     if (S_is_set[key]) {
13584       value = S[key]
13585       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13586       len += length(value) + length(field[++i])
13587       substed = 1
13588     } else
13589       len += 1 + keylen
13590   }
13591   if (nfields == 3 && !substed) {
13592     key = field[2]
13593     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
13594       \$ac_cs_awk_read_file
13595       next
13596     }
13597   }
13598   print line
13599 }
13600 \$ac_cs_awk_pipe_fini
13601 _ACAWK
13602 _ACEOF
13603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13604 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13605   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13606 else
13607   cat
13608 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13609   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13610 _ACEOF
13611
13612 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13613 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13614 # trailing colons and then remove the whole line if VPATH becomes empty
13615 # (actually we leave an empty line to preserve line numbers).
13616 if test "x$srcdir" = x.; then
13617   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13618 h
13619 s///
13620 s/^/:/
13621 s/[      ]*$/:/
13622 s/:\$(srcdir):/:/g
13623 s/:\${srcdir}:/:/g
13624 s/:@srcdir@:/:/g
13625 s/^:*//
13626 s/:*$//
13627 x
13628 s/\(=[   ]*\).*/\1/
13629 G
13630 s/\n//
13631 s/^[^=]*=[       ]*$//
13632 }'
13633 fi
13634
13635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13636 fi # test -n "$CONFIG_FILES"
13637
13638 # Set up the scripts for CONFIG_HEADERS section.
13639 # No need to generate them if there are no CONFIG_HEADERS.
13640 # This happens for instance with `./config.status Makefile'.
13641 if test -n "$CONFIG_HEADERS"; then
13642 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13643 BEGIN {
13644 _ACEOF
13645
13646 # Transform confdefs.h into an awk script `defines.awk', embedded as
13647 # here-document in config.status, that substitutes the proper values into
13648 # config.h.in to produce config.h.
13649
13650 # Create a delimiter string that does not exist in confdefs.h, to ease
13651 # handling of long lines.
13652 ac_delim='%!_!# '
13653 for ac_last_try in false false :; do
13654   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13655   if test -z "$ac_tt"; then
13656     break
13657   elif $ac_last_try; then
13658     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13659   else
13660     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13661   fi
13662 done
13663
13664 # For the awk script, D is an array of macro values keyed by name,
13665 # likewise P contains macro parameters if any.  Preserve backslash
13666 # newline sequences.
13667
13668 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13669 sed -n '
13670 s/.\{148\}/&'"$ac_delim"'/g
13671 t rset
13672 :rset
13673 s/^[     ]*#[    ]*define[       ][      ]*/ /
13674 t def
13675 d
13676 :def
13677 s/\\$//
13678 t bsnl
13679 s/["\\]/\\&/g
13680 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13681 D["\1"]=" \3"/p
13682 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13683 d
13684 :bsnl
13685 s/["\\]/\\&/g
13686 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13687 D["\1"]=" \3\\\\\\n"\\/p
13688 t cont
13689 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13690 t cont
13691 d
13692 :cont
13693 n
13694 s/.\{148\}/&'"$ac_delim"'/g
13695 t clear
13696 :clear
13697 s/\\$//
13698 t bsnlc
13699 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13700 d
13701 :bsnlc
13702 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13703 b cont
13704 ' <confdefs.h | sed '
13705 s/'"$ac_delim"'/"\\\
13706 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13707
13708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13709   for (key in D) D_is_set[key] = 1
13710   FS = "\a"
13711 }
13712 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13713   line = \$ 0
13714   split(line, arg, " ")
13715   if (arg[1] == "#") {
13716     defundef = arg[2]
13717     mac1 = arg[3]
13718   } else {
13719     defundef = substr(arg[1], 2)
13720     mac1 = arg[2]
13721   }
13722   split(mac1, mac2, "(") #)
13723   macro = mac2[1]
13724   prefix = substr(line, 1, index(line, defundef) - 1)
13725   if (D_is_set[macro]) {
13726     # Preserve the white space surrounding the "#".
13727     print prefix "define", macro P[macro] D[macro]
13728     next
13729   } else {
13730     # Replace #undef with comments.  This is necessary, for example,
13731     # in the case of _POSIX_SOURCE, which is predefined and required
13732     # on some systems where configure will not decide to define it.
13733     if (defundef == "undef") {
13734       print "/*", prefix defundef, macro, "*/"
13735       next
13736     }
13737   }
13738 }
13739 { print }
13740 _ACAWK
13741 _ACEOF
13742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13743   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13744 fi # test -n "$CONFIG_HEADERS"
13745
13746
13747 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13748 shift
13749 for ac_tag
13750 do
13751   case $ac_tag in
13752   :[FHLC]) ac_mode=$ac_tag; continue;;
13753   esac
13754   case $ac_mode$ac_tag in
13755   :[FHL]*:*);;
13756   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13757   :[FH]-) ac_tag=-:-;;
13758   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13759   esac
13760   ac_save_IFS=$IFS
13761   IFS=:
13762   set x $ac_tag
13763   IFS=$ac_save_IFS
13764   shift
13765   ac_file=$1
13766   shift
13767
13768   case $ac_mode in
13769   :L) ac_source=$1;;
13770   :[FH])
13771     ac_file_inputs=
13772     for ac_f
13773     do
13774       case $ac_f in
13775       -) ac_f="$ac_tmp/stdin";;
13776       *) # Look for the file first in the build tree, then in the source tree
13777          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13778          # because $ac_f cannot contain `:'.
13779          test -f "$ac_f" ||
13780            case $ac_f in
13781            [\\/$]*) false;;
13782            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13783            esac ||
13784            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13785       esac
13786       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13787       as_fn_append ac_file_inputs " '$ac_f'"
13788     done
13789
13790     # Let's still pretend it is `configure' which instantiates (i.e., don't
13791     # use $as_me), people would be surprised to read:
13792     #    /* config.h.  Generated by config.status.  */
13793     configure_input='Generated from '`
13794           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13795         `' by configure.'
13796     if test x"$ac_file" != x-; then
13797       configure_input="$ac_file.  $configure_input"
13798       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13799 $as_echo "$as_me: creating $ac_file" >&6;}
13800     fi
13801     # Neutralize special characters interpreted by sed in replacement strings.
13802     case $configure_input in #(
13803     *\&* | *\|* | *\\* )
13804        ac_sed_conf_input=`$as_echo "$configure_input" |
13805        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13806     *) ac_sed_conf_input=$configure_input;;
13807     esac
13808
13809     case $ac_tag in
13810     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13811       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13812     esac
13813     ;;
13814   esac
13815
13816   ac_dir=`$as_dirname -- "$ac_file" ||
13817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13818          X"$ac_file" : 'X\(//\)[^/]' \| \
13819          X"$ac_file" : 'X\(//\)$' \| \
13820          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13821 $as_echo X"$ac_file" |
13822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13823             s//\1/
13824             q
13825           }
13826           /^X\(\/\/\)[^/].*/{
13827             s//\1/
13828             q
13829           }
13830           /^X\(\/\/\)$/{
13831             s//\1/
13832             q
13833           }
13834           /^X\(\/\).*/{
13835             s//\1/
13836             q
13837           }
13838           s/.*/./; q'`
13839   as_dir="$ac_dir"; as_fn_mkdir_p
13840   ac_builddir=.
13841
13842 case "$ac_dir" in
13843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13844 *)
13845   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13846   # A ".." for each directory in $ac_dir_suffix.
13847   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13848   case $ac_top_builddir_sub in
13849   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13850   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13851   esac ;;
13852 esac
13853 ac_abs_top_builddir=$ac_pwd
13854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13855 # for backward compatibility:
13856 ac_top_builddir=$ac_top_build_prefix
13857
13858 case $srcdir in
13859   .)  # We are building in place.
13860     ac_srcdir=.
13861     ac_top_srcdir=$ac_top_builddir_sub
13862     ac_abs_top_srcdir=$ac_pwd ;;
13863   [\\/]* | ?:[\\/]* )  # Absolute name.
13864     ac_srcdir=$srcdir$ac_dir_suffix;
13865     ac_top_srcdir=$srcdir
13866     ac_abs_top_srcdir=$srcdir ;;
13867   *) # Relative name.
13868     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13869     ac_top_srcdir=$ac_top_build_prefix$srcdir
13870     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13871 esac
13872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13873
13874
13875   case $ac_mode in
13876   :F)
13877   #
13878   # CONFIG_FILE
13879   #
13880
13881   case $INSTALL in
13882   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13883   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13884   esac
13885   ac_MKDIR_P=$MKDIR_P
13886   case $MKDIR_P in
13887   [\\/$]* | ?:[\\/]* ) ;;
13888   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13889   esac
13890 _ACEOF
13891
13892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13893 # If the template does not know about datarootdir, expand it.
13894 # FIXME: This hack should be removed a few years after 2.60.
13895 ac_datarootdir_hack=; ac_datarootdir_seen=
13896 ac_sed_dataroot='
13897 /datarootdir/ {
13898   p
13899   q
13900 }
13901 /@datadir@/p
13902 /@docdir@/p
13903 /@infodir@/p
13904 /@localedir@/p
13905 /@mandir@/p'
13906 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13907 *datarootdir*) ac_datarootdir_seen=yes;;
13908 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13909   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13910 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13911 _ACEOF
13912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13913   ac_datarootdir_hack='
13914   s&@datadir@&$datadir&g
13915   s&@docdir@&$docdir&g
13916   s&@infodir@&$infodir&g
13917   s&@localedir@&$localedir&g
13918   s&@mandir@&$mandir&g
13919   s&\\\${datarootdir}&$datarootdir&g' ;;
13920 esac
13921 _ACEOF
13922
13923 # Neutralize VPATH when `$srcdir' = `.'.
13924 # Shell code in configure.ac might set extrasub.
13925 # FIXME: do we really want to maintain this feature?
13926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13927 ac_sed_extra="$ac_vpsub
13928 $extrasub
13929 _ACEOF
13930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13931 :t
13932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13933 s|@configure_input@|$ac_sed_conf_input|;t t
13934 s&@top_builddir@&$ac_top_builddir_sub&;t t
13935 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13936 s&@srcdir@&$ac_srcdir&;t t
13937 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13938 s&@top_srcdir@&$ac_top_srcdir&;t t
13939 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13940 s&@builddir@&$ac_builddir&;t t
13941 s&@abs_builddir@&$ac_abs_builddir&;t t
13942 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13943 s&@INSTALL@&$ac_INSTALL&;t t
13944 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13945 $ac_datarootdir_hack
13946 "
13947 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13948 if $ac_cs_awk_getline; then
13949   $AWK -f "$ac_tmp/subs.awk"
13950 else
13951   $AWK -f "$ac_tmp/subs.awk" | $SHELL
13952 fi \
13953   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13954
13955 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13956   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13957   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13958       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13959   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13960 which seems to be undefined.  Please make sure it is defined" >&5
13961 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13962 which seems to be undefined.  Please make sure it is defined" >&2;}
13963
13964   rm -f "$ac_tmp/stdin"
13965   case $ac_file in
13966   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13967   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13968   esac \
13969   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13970  ;;
13971   :H)
13972   #
13973   # CONFIG_HEADER
13974   #
13975   if test x"$ac_file" != x-; then
13976     {
13977       $as_echo "/* $configure_input  */" \
13978       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13979     } >"$ac_tmp/config.h" \
13980       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13981     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13982       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13983 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13984     else
13985       rm -f "$ac_file"
13986       mv "$ac_tmp/config.h" "$ac_file" \
13987         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13988     fi
13989   else
13990     $as_echo "/* $configure_input  */" \
13991       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13992       || as_fn_error $? "could not create -" "$LINENO" 5
13993   fi
13994  ;;
13995
13996   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13997 $as_echo "$as_me: executing $ac_file commands" >&6;}
13998  ;;
13999   esac
14000
14001
14002   case $ac_file$ac_mode in
14003     "po-directories":C)
14004     for ac_file in $CONFIG_FILES; do
14005       # Support "outfile[:infile[:infile...]]"
14006       case "$ac_file" in
14007         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14008       esac
14009       # PO directories have a Makefile.in generated from Makefile.in.in.
14010       case "$ac_file" in */Makefile.in)
14011         # Adjust a relative srcdir.
14012         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14013         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14014         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14015         # In autoconf-2.13 it is called $ac_given_srcdir.
14016         # In autoconf-2.50 it is called $srcdir.
14017         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14018         case "$ac_given_srcdir" in
14019           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14020           /*) top_srcdir="$ac_given_srcdir" ;;
14021           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14022         esac
14023         # Treat a directory as a PO directory if and only if it has a
14024         # POTFILES.in file. This allows packages to have multiple PO
14025         # directories under different names or in different locations.
14026         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14027           rm -f "$ac_dir/POTFILES"
14028           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14029           gt_tab=`printf '\t'`
14030           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"
14031           POMAKEFILEDEPS="POTFILES.in"
14032           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14033           # on $ac_dir but don't depend on user-specified configuration
14034           # parameters.
14035           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14036             # The LINGUAS file contains the set of available languages.
14037             if test -n "$OBSOLETE_ALL_LINGUAS"; then
14038               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14039             fi
14040             ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14041             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14042           else
14043             # The set of available languages was given in configure.in.
14044             ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
14045           fi
14046           # Compute POFILES
14047           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14048           # Compute UPDATEPOFILES
14049           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14050           # Compute DUMMYPOFILES
14051           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14052           # Compute GMOFILES
14053           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14054           case "$ac_given_srcdir" in
14055             .) srcdirpre= ;;
14056             *) srcdirpre='$(srcdir)/' ;;
14057           esac
14058           POFILES=
14059           UPDATEPOFILES=
14060           DUMMYPOFILES=
14061           GMOFILES=
14062           for lang in $ALL_LINGUAS; do
14063             POFILES="$POFILES $srcdirpre$lang.po"
14064             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14065             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14066             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14067           done
14068           # CATALOGS depends on both $ac_dir and the user's LINGUAS
14069           # environment variable.
14070           INST_LINGUAS=
14071           if test -n "$ALL_LINGUAS"; then
14072             for presentlang in $ALL_LINGUAS; do
14073               useit=no
14074               if test "%UNSET%" != "$LINGUAS"; then
14075                 desiredlanguages="$LINGUAS"
14076               else
14077                 desiredlanguages="$ALL_LINGUAS"
14078               fi
14079               for desiredlang in $desiredlanguages; do
14080                 # Use the presentlang catalog if desiredlang is
14081                 #   a. equal to presentlang, or
14082                 #   b. a variant of presentlang (because in this case,
14083                 #      presentlang can be used as a fallback for messages
14084                 #      which are not translated in the desiredlang catalog).
14085                 case "$desiredlang" in
14086                   "$presentlang"*) useit=yes;;
14087                 esac
14088               done
14089               if test $useit = yes; then
14090                 INST_LINGUAS="$INST_LINGUAS $presentlang"
14091               fi
14092             done
14093           fi
14094           CATALOGS=
14095           if test -n "$INST_LINGUAS"; then
14096             for lang in $INST_LINGUAS; do
14097               CATALOGS="$CATALOGS $lang.gmo"
14098             done
14099           fi
14100           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14101           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"
14102           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14103             if test -f "$f"; then
14104               case "$f" in
14105                 *.orig | *.bak | *~) ;;
14106                 *) cat "$f" >> "$ac_dir/Makefile" ;;
14107               esac
14108             fi
14109           done
14110         fi
14111         ;;
14112       esac
14113     done ;;
14114
14115   esac
14116 done # for ac_tag
14117
14118
14119 as_fn_exit 0
14120 _ACEOF
14121 ac_clean_files=$ac_clean_files_save
14122
14123 test $ac_write_fail = 0 ||
14124   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14125
14126
14127 # configure is writing to config.log, and then calls config.status.
14128 # config.status does its own redirection, appending to config.log.
14129 # Unfortunately, on DOS this fails, as config.log is still kept open
14130 # by configure, so config.status won't be able to write to it; its
14131 # output is simply discarded.  So we exec the FD to /dev/null,
14132 # effectively closing config.log, so it can be properly (re)opened and
14133 # appended to by config.status.  When coming back to configure, we
14134 # need to make the FD available again.
14135 if test "$no_create" != yes; then
14136   ac_cs_success=:
14137   ac_config_status_args=
14138   test "$silent" = yes &&
14139     ac_config_status_args="$ac_config_status_args --quiet"
14140   exec 5>/dev/null
14141   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14142   exec 5>>config.log
14143   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14144   # would make configure fail if this is the last instruction.
14145   $ac_cs_success || as_fn_exit 1
14146 fi
14147 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14148   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14149 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14150 fi
14151
14152 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi