Whamcloud - gitweb
LU-9501 mke2fs: avoid inode number error with large FS
[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 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 BUILD_LDFLAGS
626 BUILD_CFLAGS
627 INCLUDES
628 DO_TEST_SUITE
629 ET_DIR
630 SS_DIR
631 LDFLAG_STATIC
632 root_sysconfdir
633 root_libdir
634 root_sbindir
635 root_bindir
636 root_prefix
637 UNIX_CMT
638 CYGWIN_CMT
639 LINUX_CMT
640 UNI_DIFF_OPTS
641 SEM_INIT_LIB
642 SQLITE3_LIB
643 SOCKET_LIB
644 SIZEOF_OFF_T
645 SIZEOF_LONG_LONG
646 SIZEOF_LONG
647 SIZEOF_INT
648 SIZEOF_SHORT
649 BUILD_CC
650 MAKEINFO
651 STRIP
652 AR
653 LDCONFIG
654 PERL
655 SED
656 AWK
657 CHMOD
658 RM
659 CP
660 MV
661 LN_S
662 LN
663 ifNotGNUmake
664 ifGNUmake
665 BINARY_TYPE
666 POSUB
667 LTLIBINTL
668 LIBINTL
669 INTLLIBS
670 INTL_LIBTOOL_SUFFIX_PREFIX
671 INTLOBJS
672 GENCAT
673 INSTOBJEXT
674 DATADIRNAME
675 CATOBJEXT
676 USE_INCLUDED_LIBINTL
677 BUILD_INCLUDED_LIBINTL
678 INTLBISON
679 LTLIBICONV
680 LIBICONV
681 HAVE_WPRINTF
682 HAVE_SNPRINTF
683 HAVE_ASPRINTF
684 HAVE_POSIX_PRINTF
685 GLIBC21
686 ALLOCA
687 EGREP
688 GREP
689 RANLIB
690 MSGMERGE
691 XGETTEXT
692 GMSGFMT
693 MSGFMT
694 USE_NLS
695 MKINSTALLDIRS
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 SET_MAKE
700 VERSION
701 PACKAGE
702 GETTEXT_PACKAGE
703 UUIDD_CMT
704 E2INITRD_MAN
705 E2INITRD_PROG
706 FSCK_MAN
707 FSCK_PROG
708 DEFRAG_CMT
709 RESIZER_CMT
710 IMAGER_CMT
711 E2SCAN_MAN
712 E2SCAN_CMT
713 DEBUGFS_CMT
714 QUOTA_CMT
715 DEPPROFILED_LIBQUOTA
716 PROFILED_LIBQUOTA
717 DEPSTATIC_LIBQUOTA
718 STATIC_LIBQUOTA
719 DEPLIBQUOTA
720 LIBQUOTA
721 QUOTA_MAN_COMMENT
722 BLKID_CMT
723 DEPPROFILED_LIBBLKID
724 PROFILED_LIBBLKID
725 DEPSTATIC_LIBBLKID
726 STATIC_LIBBLKID
727 DEPLIBBLKID
728 LIBBLKID
729 UUID_CMT
730 DEPPROFILED_LIBUUID
731 PROFILED_LIBUUID
732 DEPSTATIC_LIBUUID
733 STATIC_LIBUUID
734 DEPLIBUUID
735 LIBUUID
736 PKG_CONFIG
737 TEST_IO_CMT
738 PRIVATE_LIBS_CMT
739 LDFLAG_DYNAMIC
740 PROFILED_LIB_EXT
741 STATIC_LIB_EXT
742 LIB_EXT
743 PROFILE_CMT
744 BSDLIB_CMT
745 ELF_CMT
746 HTREE_CMT
747 Q
748 ES
749 E
750 LINK_BUILD_FLAGS
751 SYMLINK_RELATIVE
752 LINK_INSTALL_FLAGS
753 MAINTAINER_CMT
754 CPP
755 RDYNAMIC
756 DLOPEN_LIB
757 OBJEXT
758 EXEEXT
759 ac_ct_CC
760 CPPFLAGS
761 LDFLAGS
762 CFLAGS
763 CC
764 host_os
765 host_vendor
766 host_cpu
767 host
768 build_os
769 build_vendor
770 build_cpu
771 build
772 E2FSPROGS_PKGVER
773 E2FSPROGS_VERSION
774 E2FSPROGS_DAY
775 E2FSPROGS_MONTH
776 E2FSPROGS_YEAR
777 target_alias
778 host_alias
779 build_alias
780 LIBS
781 ECHO_T
782 ECHO_N
783 ECHO_C
784 DEFS
785 mandir
786 localedir
787 libdir
788 psdir
789 pdfdir
790 dvidir
791 htmldir
792 infodir
793 docdir
794 oldincludedir
795 includedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL'
815 ac_subst_files='MCONFIG
816 MAKEFILE_ELF
817 MAKEFILE_BSDLIB
818 MAKEFILE_PROFILE
819 MAKEFILE_LIBRARY
820 ASM_TYPES_HEADER
821 PUBLIC_CONFIG_HEADER'
822 ac_user_opts='
823 enable_option_checking
824 with_diet_libc
825 with_cc
826 with_ccopts
827 with_ldopts
828 with_root_prefix
829 enable_maintainer_mode
830 enable_symlink_install
831 enable_relative_symlinks
832 enable_symlink_relative_symlinks
833 enable_symlink_build
834 enable_verbose_makecmds
835 enable_compression
836 enable_htree
837 enable_elf_shlibs
838 enable_bsd_shlibs
839 enable_profile
840 enable_gcov
841 enable_jbd_debug
842 enable_blkid_debug
843 enable_testio_debug
844 enable_libuuid
845 enable_libblkid
846 enable_quota
847 enable_backtrace
848 enable_debugfs
849 enable_e2scan
850 enable_imager
851 enable_resizer
852 enable_defrag
853 enable_fsck
854 enable_e2initrd_helper
855 enable_tls
856 enable_uuidd
857 enable_nls
858 with_gnu_ld
859 enable_rpath
860 with_libiconv_prefix
861 with_included_gettext
862 with_libintl_prefix
863 with_sqlite3
864 with_multiarch
865 '
866       ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 CPP
875 PKG_CONFIG'
876
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 ac_unrecognized_opts=
882 ac_unrecognized_sep=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
899
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
925
926 ac_prev=
927 ac_dashdash=
928 for ac_option
929 do
930   # If the previous option needs an argument, assign it.
931   if test -n "$ac_prev"; then
932     eval $ac_prev=\$ac_option
933     ac_prev=
934     continue
935   fi
936
937   case $ac_option in
938   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939   *=)   ac_optarg= ;;
940   *)    ac_optarg=yes ;;
941   esac
942
943   # Accept the important Cygnus configure options, so we can diagnose typos.
944
945   case $ac_dashdash$ac_option in
946   --)
947     ac_dashdash=yes ;;
948
949   -bindir | --bindir | --bindi | --bind | --bin | --bi)
950     ac_prev=bindir ;;
951   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952     bindir=$ac_optarg ;;
953
954   -build | --build | --buil | --bui | --bu)
955     ac_prev=build_alias ;;
956   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957     build_alias=$ac_optarg ;;
958
959   -cache-file | --cache-file | --cache-fil | --cache-fi \
960   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961     ac_prev=cache_file ;;
962   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964     cache_file=$ac_optarg ;;
965
966   --config-cache | -C)
967     cache_file=config.cache ;;
968
969   -datadir | --datadir | --datadi | --datad)
970     ac_prev=datadir ;;
971   -datadir=* | --datadir=* | --datadi=* | --datad=*)
972     datadir=$ac_optarg ;;
973
974   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975   | --dataroo | --dataro | --datar)
976     ac_prev=datarootdir ;;
977   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979     datarootdir=$ac_optarg ;;
980
981   -disable-* | --disable-*)
982     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983     # Reject names that are not valid shell variable names.
984     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985       as_fn_error $? "invalid feature name: $ac_useropt"
986     ac_useropt_orig=$ac_useropt
987     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988     case $ac_user_opts in
989       *"
990 "enable_$ac_useropt"
991 "*) ;;
992       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993          ac_unrecognized_sep=', ';;
994     esac
995     eval enable_$ac_useropt=no ;;
996
997   -docdir | --docdir | --docdi | --doc | --do)
998     ac_prev=docdir ;;
999   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000     docdir=$ac_optarg ;;
1001
1002   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003     ac_prev=dvidir ;;
1004   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005     dvidir=$ac_optarg ;;
1006
1007   -enable-* | --enable-*)
1008     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009     # Reject names that are not valid shell variable names.
1010     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011       as_fn_error $? "invalid feature name: $ac_useropt"
1012     ac_useropt_orig=$ac_useropt
1013     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014     case $ac_user_opts in
1015       *"
1016 "enable_$ac_useropt"
1017 "*) ;;
1018       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019          ac_unrecognized_sep=', ';;
1020     esac
1021     eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025   | --exec | --exe | --ex)
1026     ac_prev=exec_prefix ;;
1027   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029   | --exec=* | --exe=* | --ex=*)
1030     exec_prefix=$ac_optarg ;;
1031
1032   -gas | --gas | --ga | --g)
1033     # Obsolete; use --with-gas.
1034     with_gas=yes ;;
1035
1036   -help | --help | --hel | --he | -h)
1037     ac_init_help=long ;;
1038   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039     ac_init_help=recursive ;;
1040   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041     ac_init_help=short ;;
1042
1043   -host | --host | --hos | --ho)
1044     ac_prev=host_alias ;;
1045   -host=* | --host=* | --hos=* | --ho=*)
1046     host_alias=$ac_optarg ;;
1047
1048   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049     ac_prev=htmldir ;;
1050   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051   | --ht=*)
1052     htmldir=$ac_optarg ;;
1053
1054   -includedir | --includedir | --includedi | --included | --include \
1055   | --includ | --inclu | --incl | --inc)
1056     ac_prev=includedir ;;
1057   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058   | --includ=* | --inclu=* | --incl=* | --inc=*)
1059     includedir=$ac_optarg ;;
1060
1061   -infodir | --infodir | --infodi | --infod | --info | --inf)
1062     ac_prev=infodir ;;
1063   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064     infodir=$ac_optarg ;;
1065
1066   -libdir | --libdir | --libdi | --libd)
1067     ac_prev=libdir ;;
1068   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069     libdir=$ac_optarg ;;
1070
1071   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072   | --libexe | --libex | --libe)
1073     ac_prev=libexecdir ;;
1074   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075   | --libexe=* | --libex=* | --libe=*)
1076     libexecdir=$ac_optarg ;;
1077
1078   -localedir | --localedir | --localedi | --localed | --locale)
1079     ac_prev=localedir ;;
1080   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081     localedir=$ac_optarg ;;
1082
1083   -localstatedir | --localstatedir | --localstatedi | --localstated \
1084   | --localstate | --localstat | --localsta | --localst | --locals)
1085     ac_prev=localstatedir ;;
1086   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088     localstatedir=$ac_optarg ;;
1089
1090   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091     ac_prev=mandir ;;
1092   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093     mandir=$ac_optarg ;;
1094
1095   -nfp | --nfp | --nf)
1096     # Obsolete; use --without-fp.
1097     with_fp=no ;;
1098
1099   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100   | --no-cr | --no-c | -n)
1101     no_create=yes ;;
1102
1103   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105     no_recursion=yes ;;
1106
1107   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109   | --oldin | --oldi | --old | --ol | --o)
1110     ac_prev=oldincludedir ;;
1111   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114     oldincludedir=$ac_optarg ;;
1115
1116   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117     ac_prev=prefix ;;
1118   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119     prefix=$ac_optarg ;;
1120
1121   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122   | --program-pre | --program-pr | --program-p)
1123     ac_prev=program_prefix ;;
1124   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126     program_prefix=$ac_optarg ;;
1127
1128   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129   | --program-suf | --program-su | --program-s)
1130     ac_prev=program_suffix ;;
1131   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133     program_suffix=$ac_optarg ;;
1134
1135   -program-transform-name | --program-transform-name \
1136   | --program-transform-nam | --program-transform-na \
1137   | --program-transform-n | --program-transform- \
1138   | --program-transform | --program-transfor \
1139   | --program-transfo | --program-transf \
1140   | --program-trans | --program-tran \
1141   | --progr-tra | --program-tr | --program-t)
1142     ac_prev=program_transform_name ;;
1143   -program-transform-name=* | --program-transform-name=* \
1144   | --program-transform-nam=* | --program-transform-na=* \
1145   | --program-transform-n=* | --program-transform-=* \
1146   | --program-transform=* | --program-transfor=* \
1147   | --program-transfo=* | --program-transf=* \
1148   | --program-trans=* | --program-tran=* \
1149   | --progr-tra=* | --program-tr=* | --program-t=*)
1150     program_transform_name=$ac_optarg ;;
1151
1152   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153     ac_prev=pdfdir ;;
1154   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155     pdfdir=$ac_optarg ;;
1156
1157   -psdir | --psdir | --psdi | --psd | --ps)
1158     ac_prev=psdir ;;
1159   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160     psdir=$ac_optarg ;;
1161
1162   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163   | -silent | --silent | --silen | --sile | --sil)
1164     silent=yes ;;
1165
1166   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167     ac_prev=sbindir ;;
1168   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169   | --sbi=* | --sb=*)
1170     sbindir=$ac_optarg ;;
1171
1172   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174   | --sharedst | --shareds | --shared | --share | --shar \
1175   | --sha | --sh)
1176     ac_prev=sharedstatedir ;;
1177   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180   | --sha=* | --sh=*)
1181     sharedstatedir=$ac_optarg ;;
1182
1183   -site | --site | --sit)
1184     ac_prev=site ;;
1185   -site=* | --site=* | --sit=*)
1186     site=$ac_optarg ;;
1187
1188   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189     ac_prev=srcdir ;;
1190   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191     srcdir=$ac_optarg ;;
1192
1193   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194   | --syscon | --sysco | --sysc | --sys | --sy)
1195     ac_prev=sysconfdir ;;
1196   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198     sysconfdir=$ac_optarg ;;
1199
1200   -target | --target | --targe | --targ | --tar | --ta | --t)
1201     ac_prev=target_alias ;;
1202   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203     target_alias=$ac_optarg ;;
1204
1205   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206     verbose=yes ;;
1207
1208   -version | --version | --versio | --versi | --vers | -V)
1209     ac_init_version=: ;;
1210
1211   -with-* | --with-*)
1212     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215       as_fn_error $? "invalid package name: $ac_useropt"
1216     ac_useropt_orig=$ac_useropt
1217     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218     case $ac_user_opts in
1219       *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223          ac_unrecognized_sep=', ';;
1224     esac
1225     eval with_$ac_useropt=\$ac_optarg ;;
1226
1227   -without-* | --without-*)
1228     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231       as_fn_error $? "invalid package name: $ac_useropt"
1232     ac_useropt_orig=$ac_useropt
1233     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234     case $ac_user_opts in
1235       *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239          ac_unrecognized_sep=', ';;
1240     esac
1241     eval with_$ac_useropt=no ;;
1242
1243   --x)
1244     # Obsolete; use --with-x.
1245     with_x=yes ;;
1246
1247   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248   | --x-incl | --x-inc | --x-in | --x-i)
1249     ac_prev=x_includes ;;
1250   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252     x_includes=$ac_optarg ;;
1253
1254   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256     ac_prev=x_libraries ;;
1257   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259     x_libraries=$ac_optarg ;;
1260
1261   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1263     ;;
1264
1265   *=*)
1266     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267     # Reject names that are not valid shell variable names.
1268     case $ac_envvar in #(
1269       '' | [0-9]* | *[!_$as_cr_alnum]* )
1270       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271     esac
1272     eval $ac_envvar=\$ac_optarg
1273     export $ac_envvar ;;
1274
1275   *)
1276     # FIXME: should be removed in autoconf 3.0.
1277     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281     ;;
1282
1283   esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288   as_fn_error $? "missing argument to $ac_option"
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292   case $enable_option_checking in
1293     no) ;;
1294     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296   esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301                 datadir sysconfdir sharedstatedir localstatedir includedir \
1302                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303                 libdir localedir mandir
1304 do
1305   eval ac_val=\$$ac_var
1306   # Remove trailing slashes.
1307   case $ac_val in
1308     */ )
1309       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310       eval $ac_var=\$ac_val;;
1311   esac
1312   # Be sure to have absolute directory names.
1313   case $ac_val in
1314     [\\/$]* | ?:[\\/]* )  continue;;
1315     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316   esac
1317   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1319
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329   if test "x$build_alias" = x; then
1330     cross_compiling=maybe
1331   elif test "x$build_alias" != "x$host_alias"; then
1332     cross_compiling=yes
1333   fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345   as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347   as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352   ac_srcdir_defaulted=yes
1353   # Try the directory containing this script, then the parent directory.
1354   ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356          X"$as_myself" : 'X\(//\)[^/]' \| \
1357          X"$as_myself" : 'X\(//\)$' \| \
1358          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)[^/].*/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\).*/{
1373             s//\1/
1374             q
1375           }
1376           s/.*/./; q'`
1377   srcdir=$ac_confdir
1378   if test ! -r "$srcdir/$ac_unique_file"; then
1379     srcdir=..
1380   fi
1381 else
1382   ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391         pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394   srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_env_${ac_var}_value=\$${ac_var}
1405   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413   # Omit some internal or obsolete options to make the list less imposing.
1414   # This message is too long to be a string in the A/UX 3.1 sh.
1415   cat <<_ACEOF
1416 \`configure' configures this package to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426   -h, --help              display this help and exit
1427       --help=short        display options specific to this package
1428       --help=recursive    display the short help of all the included packages
1429   -V, --version           display version information and exit
1430   -q, --quiet, --silent   do not print \`checking ...' messages
1431       --cache-file=FILE   cache test results in FILE [disabled]
1432   -C, --config-cache      alias for \`--cache-file=config.cache'
1433   -n, --no-create         do not create output files
1434       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437   --prefix=PREFIX         install architecture-independent files in PREFIX
1438                           [$ac_default_prefix]
1439   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                           [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450   --bindir=DIR            user executables [EPREFIX/bin]
1451   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1452   --libexecdir=DIR        program executables [EPREFIX/libexec]
1453   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1454   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1455   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1456   --libdir=DIR            object code libraries [EPREFIX/lib]
1457   --includedir=DIR        C header files [PREFIX/include]
1458   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461   --infodir=DIR           info documentation [DATAROOTDIR/info]
1462   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463   --mandir=DIR            man documentation [DATAROOTDIR/man]
1464   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1465   --htmldir=DIR           html documentation [DOCDIR]
1466   --dvidir=DIR            dvi documentation [DOCDIR]
1467   --pdfdir=DIR            pdf documentation [DOCDIR]
1468   --psdir=DIR             ps documentation [DOCDIR]
1469 _ACEOF
1470
1471   cat <<\_ACEOF
1472
1473 System types:
1474   --build=BUILD     configure for building on BUILD [guessed]
1475   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-option-checking  ignore unrecognized --enable/--with options
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --enable-maintainer-mode enable makefile rules useful for maintainers
1488   --enable-symlink-install use symlinks when installing instead of hard links
1489   --enable-relative-symlinks use relative symlinks when installing
1490
1491   --enable-symlink-build  use symlinks while building instead of hard links
1492   --enable-verbose-makecmds enable verbose make command output
1493   --enable-compression    enable EXPERIMENTAL compression support
1494   --enable-htree          enable EXPERIMENTAL htree directory support
1495   --enable-elf-shlibs     select ELF shared libraries
1496   --enable-bsd-shlibs     select BSD shared libraries
1497   --enable-profile        build profiling libraries
1498   --enable-gcov           build for coverage testing using gcov
1499   --enable-jbd-debug      enable journal debugging
1500   --enable-blkid-debug    enable blkid debugging
1501   --disable-testio-debug  disable the use of the test I/O manager for debugging
1502   --disable-libuuid       do not build private uuid library
1503   --disable-libblkid      do not build private blkid library
1504   --disable-quota         disable quota support
1505   --disable-backtrace     disable use backtrace
1506   --disable-debugfs       disable support of debugfs program
1507   --disable-e2scan        disable support of e2scan program
1508   --disable-imager        disable support of e2image program
1509   --disable-resizer       disable support of e2resize program
1510   --disable-defrag        disable support of e4defrag program
1511   --enable-fsck           build fsck wrapper program
1512   --enable-e2initrd-helper build e2initrd-helper program
1513   --disable-tls           disable use of thread local support
1514   --disable-uuidd         disable building the uuid daemon
1515   --disable-nls           do not use Native Language Support
1516   --disable-rpath         do not hardcode runtime library paths
1517
1518 Optional Packages:
1519   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521   --with-diet-libc        use diet libc
1522   --with-cc               no longer supported, use CC= instead
1523   --with-ccopts           no longer supported, use CFLAGS= instead
1524   --with-ldopts           no longer supported, use LDFLAGS= instead
1525   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1526   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1527   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1528   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1529   --with-included-gettext use the GNU gettext library included here
1530   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1531   --without-libintl-prefix     don't search for libintl in includedir and libdir
1532   --with-sqlite3=DIR      location of sqlite3 library (default /usr/lib)
1533   --with-multiarch=ARCH specify the multiarch triplet
1534
1535 Some influential environment variables:
1536   CC          C compiler command
1537   CFLAGS      C compiler flags
1538   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1539               nonstandard directory <lib dir>
1540   LIBS        libraries to pass to the linker, e.g. -l<library>
1541   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542               you have headers in a nonstandard directory <include dir>
1543   CPP         C preprocessor
1544   PKG_CONFIG  path to pkg-config utility
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to the package provider.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555   # If there are subdirs, report their specific --help.
1556   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557     test -d "$ac_dir" ||
1558       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559       continue
1560     ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566   # A ".." for each directory in $ac_dir_suffix.
1567   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568   case $ac_top_builddir_sub in
1569   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571   esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579   .)  # We are building in place.
1580     ac_srcdir=.
1581     ac_top_srcdir=$ac_top_builddir_sub
1582     ac_abs_top_srcdir=$ac_pwd ;;
1583   [\\/]* | ?:[\\/]* )  # Absolute name.
1584     ac_srcdir=$srcdir$ac_dir_suffix;
1585     ac_top_srcdir=$srcdir
1586     ac_abs_top_srcdir=$srcdir ;;
1587   *) # Relative name.
1588     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589     ac_top_srcdir=$ac_top_build_prefix$srcdir
1590     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594     cd "$ac_dir" || { ac_status=$?; continue; }
1595     # Check for guested configure.
1596     if test -f "$ac_srcdir/configure.gnu"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599     elif test -f "$ac_srcdir/configure"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure" --help=recursive
1602     else
1603       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604     fi || ac_status=$?
1605     cd "$ac_pwd" || { ac_status=$?; break; }
1606   done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611   cat <<\_ACEOF
1612 configure
1613 generated by GNU Autoconf 2.69
1614
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619   exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   rm -f conftest.$ac_objext
1633   if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_compile") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && {
1649          test -z "$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        } && test -s conftest.$ac_objext; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657         ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_link ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   rm -f conftest.$ac_objext conftest$ac_exeext
1671   if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_link") 2>conftest.err
1679   ac_status=$?
1680   if test -s conftest.err; then
1681     grep -v '^ *+' conftest.err >conftest.er1
1682     cat conftest.er1 >&5
1683     mv -f conftest.er1 conftest.err
1684   fi
1685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686   test $ac_status = 0; } && {
1687          test -z "$ac_c_werror_flag" ||
1688          test ! -s conftest.err
1689        } && test -s conftest$ac_exeext && {
1690          test "$cross_compiling" = yes ||
1691          test -x conftest$ac_exeext
1692        }; then :
1693   ac_retval=0
1694 else
1695   $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698         ac_retval=1
1699 fi
1700   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702   # interfere with the next link command; also delete a directory that is
1703   # left behind by Apple's compiler.  We do this before executing the actions.
1704   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706   as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_link
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } > conftest.i && {
1732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        }; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740     ac_retval=1
1741 fi
1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743   as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1751 ac_fn_c_try_run ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_link") 2>&5
1762   ac_status=$?
1763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765   { { case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_try") 2>&5
1772   ac_status=$?
1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774   test $ac_status = 0; }; }; then :
1775   ac_retval=0
1776 else
1777   $as_echo "$as_me: program exited with status $ac_status" >&5
1778        $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781        ac_retval=$ac_status
1782 fi
1783   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785   as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_run
1788
1789 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1790 # -------------------------------------------
1791 # Tests whether TYPE exists after having included INCLUDES, setting cache
1792 # variable VAR accordingly.
1793 ac_fn_c_check_type ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799   $as_echo_n "(cached) " >&6
1800 else
1801   eval "$3=no"
1802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h.  */
1804 $4
1805 int
1806 main ()
1807 {
1808 if (sizeof ($2))
1809          return 0;
1810   ;
1811   return 0;
1812 }
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h.  */
1817 $4
1818 int
1819 main ()
1820 {
1821 if (sizeof (($2)))
1822             return 0;
1823   ;
1824   return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828
1829 else
1830   eval "$3=yes"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 fi
1836 eval ac_res=\$$3
1837                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_type
1842
1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists and can be compiled using the include files in
1846 # INCLUDES, setting the cache variable VAR accordingly.
1847 ac_fn_c_check_header_compile ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853   $as_echo_n "(cached) " >&6
1854 else
1855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h.  */
1857 $4
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861   eval "$3=yes"
1862 else
1863   eval "$3=no"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_compile
1873
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883   $as_echo_n "(cached) " >&6
1884 else
1885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h.  */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1889 #define $2 innocuous_$2
1890
1891 /* System header to define __stub macros and hopefully few prototypes,
1892     which can conflict with char $2 (); below.
1893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894     <limits.h> exists even on freestanding compilers.  */
1895
1896 #ifdef __STDC__
1897 # include <limits.h>
1898 #else
1899 # include <assert.h>
1900 #endif
1901
1902 #undef $2
1903
1904 /* Override any GCC internal prototype to avoid an error.
1905    Use char because int might match the return type of a GCC
1906    builtin and then its argument prototype would still apply.  */
1907 #ifdef __cplusplus
1908 extern "C"
1909 #endif
1910 char $2 ();
1911 /* The GNU C library defines this for functions which it implements
1912     to always fail with ENOSYS.  Some functions are actually named
1913     something starting with __ and the normal name is an alias.  */
1914 #if defined __stub_$2 || defined __stub___$2
1915 choke me
1916 #endif
1917
1918 int
1919 main ()
1920 {
1921 return $2 ();
1922   ;
1923   return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_link "$LINENO"; then :
1927   eval "$3=yes"
1928 else
1929   eval "$3=no"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext \
1932     conftest$ac_exeext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939 } # ac_fn_c_check_func
1940
1941 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1942 # -------------------------------------------------------
1943 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1944 # the include files in INCLUDES and setting the cache variable VAR
1945 # accordingly.
1946 ac_fn_c_check_header_mongrel ()
1947 {
1948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949   if eval \${$3+:} false; then :
1950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953   $as_echo_n "(cached) " >&6
1954 fi
1955 eval ac_res=\$$3
1956                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 else
1959   # Is the header compilable?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1961 $as_echo_n "checking $2 usability... " >&6; }
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   ac_header_compiler=yes
1969 else
1970   ac_header_compiler=no
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1974 $as_echo "$ac_header_compiler" >&6; }
1975
1976 # Is the header present?
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1978 $as_echo_n "checking $2 presence... " >&6; }
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h.  */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_cpp "$LINENO"; then :
1984   ac_header_preproc=yes
1985 else
1986   ac_header_preproc=no
1987 fi
1988 rm -f conftest.err conftest.i conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1990 $as_echo "$ac_header_preproc" >&6; }
1991
1992 # So?  What about this header?
1993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1994   yes:no: )
1995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1996 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999     ;;
2000   no:yes:* )
2001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2002 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2004 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2006 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2008 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011     ;;
2012 esac
2013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016   $as_echo_n "(cached) " >&6
2017 else
2018   eval "$3=\$ac_header_compiler"
2019 fi
2020 eval ac_res=\$$3
2021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 fi
2024   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026 } # ac_fn_c_check_header_mongrel
2027
2028 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029 # --------------------------------------------
2030 # Tries to find the compile-time value of EXPR in a program that includes
2031 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2032 # computed
2033 ac_fn_c_compute_int ()
2034 {
2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036   if test "$cross_compiling" = yes; then
2037     # Depending upon the size, compute the lo and hi bounds.
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 int
2042 main ()
2043 {
2044 static int test_array [1 - 2 * !(($2) >= 0)];
2045 test_array [0] = 0;
2046 return test_array [0];
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053   ac_lo=0 ac_mid=0
2054   while :; do
2055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h.  */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062 test_array [0] = 0;
2063 return test_array [0];
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070   ac_hi=$ac_mid; break
2071 else
2072   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2073                         if test $ac_lo -le $ac_mid; then
2074                           ac_lo= ac_hi=
2075                           break
2076                         fi
2077                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080   done
2081 else
2082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) < 0)];
2089 test_array [0] = 0;
2090 return test_array [0];
2091
2092   ;
2093   return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097   ac_hi=-1 ac_mid=-1
2098   while :; do
2099     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h.  */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106 test_array [0] = 0;
2107 return test_array [0];
2108
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114   ac_lo=$ac_mid; break
2115 else
2116   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117                         if test $ac_mid -le $ac_hi; then
2118                           ac_lo= ac_hi=
2119                           break
2120                         fi
2121                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124   done
2125 else
2126   ac_lo= ac_hi=
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 # Binary search between lo and hi bounds.
2132 while test "x$ac_lo" != "x$ac_hi"; do
2133   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h.  */
2136 $4
2137 int
2138 main ()
2139 {
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0;
2142 return test_array [0];
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149   ac_hi=$ac_mid
2150 else
2151   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 done
2155 case $ac_lo in #((
2156 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157 '') ac_retval=1 ;;
2158 esac
2159   else
2160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h.  */
2162 $4
2163 static long int longval () { return $2; }
2164 static unsigned long int ulongval () { return $2; }
2165 #include <stdio.h>
2166 #include <stdlib.h>
2167 int
2168 main ()
2169 {
2170
2171   FILE *f = fopen ("conftest.val", "w");
2172   if (! f)
2173     return 1;
2174   if (($2) < 0)
2175     {
2176       long int i = longval ();
2177       if (i != ($2))
2178         return 1;
2179       fprintf (f, "%ld", i);
2180     }
2181   else
2182     {
2183       unsigned long int i = ulongval ();
2184       if (i != ($2))
2185         return 1;
2186       fprintf (f, "%lu", i);
2187     }
2188   /* Do not output a trailing newline, as this causes \r\n confusion
2189      on some platforms.  */
2190   return ferror (f) || fclose (f) != 0;
2191
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 if ac_fn_c_try_run "$LINENO"; then :
2197   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198 else
2199   ac_retval=1
2200 fi
2201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202   conftest.$ac_objext conftest.beam conftest.$ac_ext
2203 rm -f conftest.val
2204
2205   fi
2206   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207   as_fn_set_status $ac_retval
2208
2209 } # ac_fn_c_compute_int
2210
2211 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2212 # ----------------------------------------------------
2213 # Tries to find if the field MEMBER exists in type AGGR, after including
2214 # INCLUDES, setting cache variable VAR accordingly.
2215 ac_fn_c_check_member ()
2216 {
2217   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2219 $as_echo_n "checking for $2.$3... " >&6; }
2220 if eval \${$4+:} false; then :
2221   $as_echo_n "(cached) " >&6
2222 else
2223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h.  */
2225 $5
2226 int
2227 main ()
2228 {
2229 static $2 ac_aggr;
2230 if (ac_aggr.$3)
2231 return 0;
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237   eval "$4=yes"
2238 else
2239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h.  */
2241 $5
2242 int
2243 main ()
2244 {
2245 static $2 ac_aggr;
2246 if (sizeof ac_aggr.$3)
2247 return 0;
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253   eval "$4=yes"
2254 else
2255   eval "$4=no"
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 eval ac_res=\$$4
2262                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266 } # ac_fn_c_check_member
2267
2268 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2269 # ---------------------------------------------
2270 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2271 # accordingly.
2272 ac_fn_c_check_decl ()
2273 {
2274   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275   as_decl_name=`echo $2|sed 's/ *(.*//'`
2276   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2278 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2279 if eval \${$3+:} false; then :
2280   $as_echo_n "(cached) " >&6
2281 else
2282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $4
2285 int
2286 main ()
2287 {
2288 #ifndef $as_decl_name
2289 #ifdef __cplusplus
2290   (void) $as_decl_use;
2291 #else
2292   (void) $as_decl_name;
2293 #endif
2294 #endif
2295
2296   ;
2297   return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301   eval "$3=yes"
2302 else
2303   eval "$3=no"
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 eval ac_res=\$$3
2308                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311
2312 } # ac_fn_c_check_decl
2313 cat >config.log <<_ACEOF
2314 This file contains any messages produced by compilers while
2315 running configure, to aid debugging if configure makes a mistake.
2316
2317 It was created by $as_me, which was
2318 generated by GNU Autoconf 2.69.  Invocation command line was
2319
2320   $ $0 $@
2321
2322 _ACEOF
2323 exec 5>>config.log
2324 {
2325 cat <<_ASUNAME
2326 ## --------- ##
2327 ## Platform. ##
2328 ## --------- ##
2329
2330 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2331 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2332 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2333 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2334 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2335
2336 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2337 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2338
2339 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2340 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2341 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2342 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2343 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2344 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2345 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2346
2347 _ASUNAME
2348
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352   IFS=$as_save_IFS
2353   test -z "$as_dir" && as_dir=.
2354     $as_echo "PATH: $as_dir"
2355   done
2356 IFS=$as_save_IFS
2357
2358 } >&5
2359
2360 cat >&5 <<_ACEOF
2361
2362
2363 ## ----------- ##
2364 ## Core tests. ##
2365 ## ----------- ##
2366
2367 _ACEOF
2368
2369
2370 # Keep a trace of the command line.
2371 # Strip out --no-create and --no-recursion so they do not pile up.
2372 # Strip out --silent because we don't want to record it for future runs.
2373 # Also quote any args containing shell meta-characters.
2374 # Make two passes to allow for proper duplicate-argument suppression.
2375 ac_configure_args=
2376 ac_configure_args0=
2377 ac_configure_args1=
2378 ac_must_keep_next=false
2379 for ac_pass in 1 2
2380 do
2381   for ac_arg
2382   do
2383     case $ac_arg in
2384     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386     | -silent | --silent | --silen | --sile | --sil)
2387       continue ;;
2388     *\'*)
2389       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2390     esac
2391     case $ac_pass in
2392     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2393     2)
2394       as_fn_append ac_configure_args1 " '$ac_arg'"
2395       if test $ac_must_keep_next = true; then
2396         ac_must_keep_next=false # Got value, back to normal.
2397       else
2398         case $ac_arg in
2399           *=* | --config-cache | -C | -disable-* | --disable-* \
2400           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402           | -with-* | --with-* | -without-* | --without-* | --x)
2403             case "$ac_configure_args0 " in
2404               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2405             esac
2406             ;;
2407           -* ) ac_must_keep_next=true ;;
2408         esac
2409       fi
2410       as_fn_append ac_configure_args " '$ac_arg'"
2411       ;;
2412     esac
2413   done
2414 done
2415 { ac_configure_args0=; unset ac_configure_args0;}
2416 { ac_configure_args1=; unset ac_configure_args1;}
2417
2418 # When interrupted or exit'd, cleanup temporary files, and complete
2419 # config.log.  We remove comments because anyway the quotes in there
2420 # would cause problems or look ugly.
2421 # WARNING: Use '\'' to represent an apostrophe within the trap.
2422 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423 trap 'exit_status=$?
2424   # Save into config.log some information that might help in debugging.
2425   {
2426     echo
2427
2428     $as_echo "## ---------------- ##
2429 ## Cache variables. ##
2430 ## ---------------- ##"
2431     echo
2432     # The following way of writing the cache mishandles newlines in values,
2433 (
2434   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435     eval ac_val=\$$ac_var
2436     case $ac_val in #(
2437     *${as_nl}*)
2438       case $ac_var in #(
2439       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441       esac
2442       case $ac_var in #(
2443       _ | IFS | as_nl) ;; #(
2444       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445       *) { eval $ac_var=; unset $ac_var;} ;;
2446       esac ;;
2447     esac
2448   done
2449   (set) 2>&1 |
2450     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451     *${as_nl}ac_space=\ *)
2452       sed -n \
2453         "s/'\''/'\''\\\\'\'''\''/g;
2454           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455       ;; #(
2456     *)
2457       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2458       ;;
2459     esac |
2460     sort
2461 )
2462     echo
2463
2464     $as_echo "## ----------------- ##
2465 ## Output variables. ##
2466 ## ----------------- ##"
2467     echo
2468     for ac_var in $ac_subst_vars
2469     do
2470       eval ac_val=\$$ac_var
2471       case $ac_val in
2472       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473       esac
2474       $as_echo "$ac_var='\''$ac_val'\''"
2475     done | sort
2476     echo
2477
2478     if test -n "$ac_subst_files"; then
2479       $as_echo "## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##"
2482       echo
2483       for ac_var in $ac_subst_files
2484       do
2485         eval ac_val=\$$ac_var
2486         case $ac_val in
2487         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488         esac
2489         $as_echo "$ac_var='\''$ac_val'\''"
2490       done | sort
2491       echo
2492     fi
2493
2494     if test -s confdefs.h; then
2495       $as_echo "## ----------- ##
2496 ## confdefs.h. ##
2497 ## ----------- ##"
2498       echo
2499       cat confdefs.h
2500       echo
2501     fi
2502     test "$ac_signal" != 0 &&
2503       $as_echo "$as_me: caught signal $ac_signal"
2504     $as_echo "$as_me: exit $exit_status"
2505   } >&5
2506   rm -f core *.core core.conftest.* &&
2507     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2508     exit $exit_status
2509 ' 0
2510 for ac_signal in 1 2 13 15; do
2511   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512 done
2513 ac_signal=0
2514
2515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2516 rm -f -r conftest* confdefs.h
2517
2518 $as_echo "/* confdefs.h */" > confdefs.h
2519
2520 # Predefined preprocessor variables.
2521
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_NAME "$PACKAGE_NAME"
2524 _ACEOF
2525
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2528 _ACEOF
2529
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2532 _ACEOF
2533
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_STRING "$PACKAGE_STRING"
2536 _ACEOF
2537
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2540 _ACEOF
2541
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_URL "$PACKAGE_URL"
2544 _ACEOF
2545
2546
2547 # Let the site file select an alternate cache file if it wants to.
2548 # Prefer an explicitly selected file to automatically selected ones.
2549 ac_site_file1=NONE
2550 ac_site_file2=NONE
2551 if test -n "$CONFIG_SITE"; then
2552   # We do not want a PATH search for config.site.
2553   case $CONFIG_SITE in #((
2554     -*)  ac_site_file1=./$CONFIG_SITE;;
2555     */*) ac_site_file1=$CONFIG_SITE;;
2556     *)   ac_site_file1=./$CONFIG_SITE;;
2557   esac
2558 elif test "x$prefix" != xNONE; then
2559   ac_site_file1=$prefix/share/config.site
2560   ac_site_file2=$prefix/etc/config.site
2561 else
2562   ac_site_file1=$ac_default_prefix/share/config.site
2563   ac_site_file2=$ac_default_prefix/etc/config.site
2564 fi
2565 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2566 do
2567   test "x$ac_site_file" = xNONE && continue
2568   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2569     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571     sed 's/^/| /' "$ac_site_file" >&5
2572     . "$ac_site_file" \
2573       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 as_fn_error $? "failed to load site script $ac_site_file
2576 See \`config.log' for more details" "$LINENO" 5; }
2577   fi
2578 done
2579
2580 if test -r "$cache_file"; then
2581   # Some versions of bash will fail to source /dev/null (special files
2582   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2583   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2584     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2585 $as_echo "$as_me: loading cache $cache_file" >&6;}
2586     case $cache_file in
2587       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2588       *)                      . "./$cache_file";;
2589     esac
2590   fi
2591 else
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2593 $as_echo "$as_me: creating cache $cache_file" >&6;}
2594   >$cache_file
2595 fi
2596
2597 as_fn_append ac_header_list " stdlib.h"
2598 as_fn_append ac_header_list " unistd.h"
2599 as_fn_append ac_header_list " sys/param.h"
2600 # Check that the precious variables saved in the cache have kept the same
2601 # value.
2602 ac_cache_corrupted=false
2603 for ac_var in $ac_precious_vars; do
2604   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605   eval ac_new_set=\$ac_env_${ac_var}_set
2606   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607   eval ac_new_val=\$ac_env_${ac_var}_value
2608   case $ac_old_set,$ac_new_set in
2609     set,)
2610       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612       ac_cache_corrupted=: ;;
2613     ,set)
2614       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616       ac_cache_corrupted=: ;;
2617     ,);;
2618     *)
2619       if test "x$ac_old_val" != "x$ac_new_val"; then
2620         # differences in whitespace do not lead to failure.
2621         ac_old_val_w=`echo x $ac_old_val`
2622         ac_new_val_w=`echo x $ac_new_val`
2623         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626           ac_cache_corrupted=:
2627         else
2628           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630           eval $ac_var=\$ac_old_val
2631         fi
2632         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2633 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2634         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2635 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2636       fi;;
2637   esac
2638   # Pass precious variables to config.status.
2639   if test "$ac_new_set" = set; then
2640     case $ac_new_val in
2641     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642     *) ac_arg=$ac_var=$ac_new_val ;;
2643     esac
2644     case " $ac_configure_args " in
2645       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2646       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647     esac
2648   fi
2649 done
2650 if $ac_cache_corrupted; then
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2656 fi
2657 ## -------------------- ##
2658 ## Main body of script. ##
2659 ## -------------------- ##
2660
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666
2667
2668
2669 ac_aux_dir=
2670 for ac_dir in config "$srcdir"/config; do
2671   if test -f "$ac_dir/install-sh"; then
2672     ac_aux_dir=$ac_dir
2673     ac_install_sh="$ac_aux_dir/install-sh -c"
2674     break
2675   elif test -f "$ac_dir/install.sh"; then
2676     ac_aux_dir=$ac_dir
2677     ac_install_sh="$ac_aux_dir/install.sh -c"
2678     break
2679   elif test -f "$ac_dir/shtool"; then
2680     ac_aux_dir=$ac_dir
2681     ac_install_sh="$ac_aux_dir/shtool install -c"
2682     break
2683   fi
2684 done
2685 if test -z "$ac_aux_dir"; then
2686   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2687 fi
2688
2689 # These three variables are undocumented and unsupported,
2690 # and are intended to be withdrawn in a future Autoconf release.
2691 # They can cause serious problems if a builder's source tree is in a directory
2692 # whose full name contains unusual characters.
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2695 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2696
2697
2698 ac_config_headers="$ac_config_headers lib/config.h"
2699
2700
2701 MCONFIG=./MCONFIG
2702
2703 BINARY_TYPE=bin
2704 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2705         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2706 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2707         | tr \" " "`
2708 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2709 MONTH=`echo $DATE | awk -F- '{print $2}'`
2710 YEAR=`echo $DATE | awk -F- '{print $3}'`
2711
2712 if expr $YEAR ">" 1900 > /dev/null ; then
2713         E2FSPROGS_YEAR=$YEAR
2714 elif expr $YEAR ">" 90 >/dev/null ; then
2715         E2FSPROGS_YEAR=19$YEAR
2716 else
2717         E2FSPROGS_YEAR=20$YEAR
2718 fi
2719
2720 case $MONTH in
2721 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2722 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2723 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2724 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2725 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2726 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2727 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2728 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2729 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2730 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2731 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2732 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2733 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2734 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2735 esac
2736
2737 base_ver=`echo $E2FSPROGS_VERSION | \
2738                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2739
2740 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2741
2742 case $E2FSPROGS_VERSION in
2743 *-WIP|pre-*)
2744         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2745         ;;
2746 *)
2747         E2FSPROGS_PKGVER="$base_ver"
2748         ;;
2749 esac
2750
2751 unset DATE MONTH YEAR base_ver pre_vers date_spec
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2753 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2755 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2756
2757
2758
2759
2760
2761 WITH_DIET_LIBC=
2762
2763 # Check whether --with-diet-libc was given.
2764 if test "${with_diet_libc+set}" = set; then :
2765   withval=$with_diet_libc; CC="diet cc -nostdinc"
2766 WITH_DIET_LIBC=yes
2767 if test -z "$LIBS"
2768 then
2769         LIBS="-lcompat"
2770 else
2771         LIBS="$LIBS -lcompat"
2772 fi
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2774 $as_echo "CC=$CC" >&6; }
2775 fi
2776 # Make sure we can run config.sub.
2777 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2778   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2779
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2781 $as_echo_n "checking build system type... " >&6; }
2782 if ${ac_cv_build+:} false; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   ac_build_alias=$build_alias
2786 test "x$ac_build_alias" = x &&
2787   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2788 test "x$ac_build_alias" = x &&
2789   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2790 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2791   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2792
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2795 $as_echo "$ac_cv_build" >&6; }
2796 case $ac_cv_build in
2797 *-*-*) ;;
2798 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2799 esac
2800 build=$ac_cv_build
2801 ac_save_IFS=$IFS; IFS='-'
2802 set x $ac_cv_build
2803 shift
2804 build_cpu=$1
2805 build_vendor=$2
2806 shift; shift
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2809 build_os=$*
2810 IFS=$ac_save_IFS
2811 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812
2813
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2815 $as_echo_n "checking host system type... " >&6; }
2816 if ${ac_cv_host+:} false; then :
2817   $as_echo_n "(cached) " >&6
2818 else
2819   if test "x$host_alias" = x; then
2820   ac_cv_host=$ac_cv_build
2821 else
2822   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2824 fi
2825
2826 fi
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2828 $as_echo "$ac_cv_host" >&6; }
2829 case $ac_cv_host in
2830 *-*-*) ;;
2831 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2832 esac
2833 host=$ac_cv_host
2834 ac_save_IFS=$IFS; IFS='-'
2835 set x $ac_cv_host
2836 shift
2837 host_cpu=$1
2838 host_vendor=$2
2839 shift; shift
2840 # Remember, the first character of IFS is used to create $*,
2841 # except with old shells:
2842 host_os=$*
2843 IFS=$ac_save_IFS
2844 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2845
2846
2847 DLOPEN_LIB=''
2848 ac_ext=c
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853 if test -n "$ac_tool_prefix"; then
2854   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_CC+:} false; then :
2859   $as_echo_n "(cached) " >&6
2860 else
2861   if test -n "$CC"; then
2862   ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869     for ac_exec_ext in '' $ac_executable_extensions; do
2870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873     break 2
2874   fi
2875 done
2876   done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 CC=$ac_cv_prog_CC
2882 if test -n "$CC"; then
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884 $as_echo "$CC" >&6; }
2885 else
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 fi
2889
2890
2891 fi
2892 if test -z "$ac_cv_prog_CC"; then
2893   ac_ct_CC=$CC
2894   # Extract the first word of "gcc", so it can be a program name with args.
2895 set dummy gcc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2899   $as_echo_n "(cached) " >&6
2900 else
2901   if test -n "$ac_ct_CC"; then
2902   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907   IFS=$as_save_IFS
2908   test -z "$as_dir" && as_dir=.
2909     for ac_exec_ext in '' $ac_executable_extensions; do
2910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911     ac_cv_prog_ac_ct_CC="gcc"
2912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913     break 2
2914   fi
2915 done
2916   done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2922 if test -n "$ac_ct_CC"; then
2923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2924 $as_echo "$ac_ct_CC" >&6; }
2925 else
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930   if test "x$ac_ct_CC" = x; then
2931     CC=""
2932   else
2933     case $cross_compiling:$ac_tool_warned in
2934 yes:)
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937 ac_tool_warned=yes ;;
2938 esac
2939     CC=$ac_ct_CC
2940   fi
2941 else
2942   CC="$ac_cv_prog_CC"
2943 fi
2944
2945 if test -z "$CC"; then
2946           if test -n "$ac_tool_prefix"; then
2947     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}cc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_CC+:} false; then :
2952   $as_echo_n "(cached) " >&6
2953 else
2954   if test -n "$CC"; then
2955   ac_cv_prog_CC="$CC" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962     for ac_exec_ext in '' $ac_executable_extensions; do
2963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964     ac_cv_prog_CC="${ac_tool_prefix}cc"
2965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966     break 2
2967   fi
2968 done
2969   done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 CC=$ac_cv_prog_CC
2975 if test -n "$CC"; then
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977 $as_echo "$CC" >&6; }
2978 else
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983
2984   fi
2985 fi
2986 if test -z "$CC"; then
2987   # Extract the first word of "cc", so it can be a program name with args.
2988 set dummy cc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_CC+:} false; then :
2992   $as_echo_n "(cached) " >&6
2993 else
2994   if test -n "$CC"; then
2995   ac_cv_prog_CC="$CC" # Let the user override the test.
2996 else
2997   ac_prog_rejected=no
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001   IFS=$as_save_IFS
3002   test -z "$as_dir" && as_dir=.
3003     for ac_exec_ext in '' $ac_executable_extensions; do
3004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3006        ac_prog_rejected=yes
3007        continue
3008      fi
3009     ac_cv_prog_CC="cc"
3010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011     break 2
3012   fi
3013 done
3014   done
3015 IFS=$as_save_IFS
3016
3017 if test $ac_prog_rejected = yes; then
3018   # We found a bogon in the path, so make sure we never use it.
3019   set dummy $ac_cv_prog_CC
3020   shift
3021   if test $# != 0; then
3022     # We chose a different compiler from the bogus one.
3023     # However, it has the same basename, so the bogon will be chosen
3024     # first if we set CC to just the basename; use the full file name.
3025     shift
3026     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3027   fi
3028 fi
3029 fi
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3035 else
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 if test -z "$CC"; then
3043   if test -n "$ac_tool_prefix"; then
3044   for ac_prog in cl.exe
3045   do
3046     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_CC+:} false; then :
3051   $as_echo_n "(cached) " >&6
3052 else
3053   if test -n "$CC"; then
3054   ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059   IFS=$as_save_IFS
3060   test -z "$as_dir" && as_dir=.
3061     for ac_exec_ext in '' $ac_executable_extensions; do
3062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065     break 2
3066   fi
3067 done
3068   done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3077 else
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082
3083     test -n "$CC" && break
3084   done
3085 fi
3086 if test -z "$CC"; then
3087   ac_ct_CC=$CC
3088   for ac_prog in cl.exe
3089 do
3090   # Extract the first word of "$ac_prog", so it can be a program name with args.
3091 set dummy $ac_prog; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3095   $as_echo_n "(cached) " >&6
3096 else
3097   if test -n "$ac_ct_CC"; then
3098   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103   IFS=$as_save_IFS
3104   test -z "$as_dir" && as_dir=.
3105     for ac_exec_ext in '' $ac_executable_extensions; do
3106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107     ac_cv_prog_ac_ct_CC="$ac_prog"
3108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109     break 2
3110   fi
3111 done
3112   done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3118 if test -n "$ac_ct_CC"; then
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3120 $as_echo "$ac_ct_CC" >&6; }
3121 else
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127   test -n "$ac_ct_CC" && break
3128 done
3129
3130   if test "x$ac_ct_CC" = x; then
3131     CC=""
3132   else
3133     case $cross_compiling:$ac_tool_warned in
3134 yes:)
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3138 esac
3139     CC=$ac_ct_CC
3140   fi
3141 fi
3142
3143 fi
3144
3145
3146 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "no acceptable C compiler found in \$PATH
3149 See \`config.log' for more details" "$LINENO" 5; }
3150
3151 # Provide some information about the compiler.
3152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3153 set X $ac_compile
3154 ac_compiler=$2
3155 for ac_option in --version -v -V -qversion; do
3156   { { ac_try="$ac_compiler $ac_option >&5"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3164   ac_status=$?
3165   if test -s conftest.err; then
3166     sed '10a\
3167 ... rest of stderr output deleted ...
3168          10q' conftest.err >conftest.er1
3169     cat conftest.er1 >&5
3170   fi
3171   rm -f conftest.er1 conftest.err
3172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173   test $ac_status = 0; }
3174 done
3175
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h.  */
3178
3179 int
3180 main ()
3181 {
3182
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 ac_clean_files_save=$ac_clean_files
3188 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3189 # Try to create an executable without -o first, disregard a.out.
3190 # It will help us diagnose broken compilers, and finding out an intuition
3191 # of exeext.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3193 $as_echo_n "checking whether the C compiler works... " >&6; }
3194 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3195
3196 # The possible output files:
3197 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3198
3199 ac_rmfiles=
3200 for ac_file in $ac_files
3201 do
3202   case $ac_file in
3203     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3204     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3205   esac
3206 done
3207 rm -f $ac_rmfiles
3208
3209 if { { ac_try="$ac_link_default"
3210 case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216   (eval "$ac_link_default") 2>&5
3217   ac_status=$?
3218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219   test $ac_status = 0; }; then :
3220   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3221 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3222 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3223 # so that the user can short-circuit this test for compilers unknown to
3224 # Autoconf.
3225 for ac_file in $ac_files ''
3226 do
3227   test -f "$ac_file" || continue
3228   case $ac_file in
3229     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3230         ;;
3231     [ab].out )
3232         # We found the default executable, but exeext='' is most
3233         # certainly right.
3234         break;;
3235     *.* )
3236         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3237         then :; else
3238            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239         fi
3240         # We set ac_cv_exeext here because the later test for it is not
3241         # safe: cross compilers may not add the suffix if given an `-o'
3242         # argument, so we may need to know it at that point already.
3243         # Even if this section looks crufty: it has the advantage of
3244         # actually working.
3245         break;;
3246     * )
3247         break;;
3248   esac
3249 done
3250 test "$ac_cv_exeext" = no && ac_cv_exeext=
3251
3252 else
3253   ac_file=''
3254 fi
3255 if test -z "$ac_file"; then :
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error 77 "C compiler cannot create executables
3264 See \`config.log' for more details" "$LINENO" 5; }
3265 else
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3270 $as_echo_n "checking for C compiler default output file name... " >&6; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3272 $as_echo "$ac_file" >&6; }
3273 ac_exeext=$ac_cv_exeext
3274
3275 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3276 ac_clean_files=$ac_clean_files_save
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3278 $as_echo_n "checking for suffix of executables... " >&6; }
3279 if { { ac_try="$ac_link"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286   (eval "$ac_link") 2>&5
3287   ac_status=$?
3288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289   test $ac_status = 0; }; then :
3290   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3291 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3292 # work properly (i.e., refer to `conftest.exe'), while it won't with
3293 # `rm'.
3294 for ac_file in conftest.exe conftest conftest.*; do
3295   test -f "$ac_file" || continue
3296   case $ac_file in
3297     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3299           break;;
3300     * ) break;;
3301   esac
3302 done
3303 else
3304   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3307 See \`config.log' for more details" "$LINENO" 5; }
3308 fi
3309 rm -f conftest conftest$ac_cv_exeext
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3311 $as_echo "$ac_cv_exeext" >&6; }
3312
3313 rm -f conftest.$ac_ext
3314 EXEEXT=$ac_cv_exeext
3315 ac_exeext=$EXEEXT
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h.  */
3318 #include <stdio.h>
3319 int
3320 main ()
3321 {
3322 FILE *f = fopen ("conftest.out", "w");
3323  return ferror (f) || fclose (f) != 0;
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 ac_clean_files="$ac_clean_files conftest.out"
3330 # Check that the compiler produces executables we can run.  If not, either
3331 # the compiler is broken, or we cross compile.
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3333 $as_echo_n "checking whether we are cross compiling... " >&6; }
3334 if test "$cross_compiling" != yes; then
3335   { { ac_try="$ac_link"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342   (eval "$ac_link") 2>&5
3343   ac_status=$?
3344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345   test $ac_status = 0; }
3346   if { ac_try='./conftest$ac_cv_exeext'
3347   { { case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353   (eval "$ac_try") 2>&5
3354   ac_status=$?
3355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356   test $ac_status = 0; }; }; then
3357     cross_compiling=no
3358   else
3359     if test "$cross_compiling" = maybe; then
3360         cross_compiling=yes
3361     else
3362         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "cannot run C compiled programs.
3365 If you meant to cross compile, use \`--host'.
3366 See \`config.log' for more details" "$LINENO" 5; }
3367     fi
3368   fi
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3371 $as_echo "$cross_compiling" >&6; }
3372
3373 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3374 ac_clean_files=$ac_clean_files_save
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3376 $as_echo_n "checking for suffix of object files... " >&6; }
3377 if ${ac_cv_objext+:} false; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h.  */
3382
3383 int
3384 main ()
3385 {
3386
3387   ;
3388   return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.o conftest.obj
3392 if { { ac_try="$ac_compile"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399   (eval "$ac_compile") 2>&5
3400   ac_status=$?
3401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402   test $ac_status = 0; }; then :
3403   for ac_file in conftest.o conftest.obj conftest.*; do
3404   test -f "$ac_file" || continue;
3405   case $ac_file in
3406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3407     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3408        break;;
3409   esac
3410 done
3411 else
3412   $as_echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3414
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "cannot compute suffix of object files: cannot compile
3418 See \`config.log' for more details" "$LINENO" 5; }
3419 fi
3420 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3423 $as_echo "$ac_cv_objext" >&6; }
3424 OBJEXT=$ac_cv_objext
3425 ac_objext=$OBJEXT
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3427 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3428 if ${ac_cv_c_compiler_gnu+:} false; then :
3429   $as_echo_n "(cached) " >&6
3430 else
3431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437 #ifndef __GNUC__
3438        choke me
3439 #endif
3440
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446   ac_compiler_gnu=yes
3447 else
3448   ac_compiler_gnu=no
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3452
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3455 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3456 if test $ac_compiler_gnu = yes; then
3457   GCC=yes
3458 else
3459   GCC=
3460 fi
3461 ac_test_CFLAGS=${CFLAGS+set}
3462 ac_save_CFLAGS=$CFLAGS
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3464 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3465 if ${ac_cv_prog_cc_g+:} false; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468   ac_save_c_werror_flag=$ac_c_werror_flag
3469    ac_c_werror_flag=yes
3470    ac_cv_prog_cc_g=no
3471    CFLAGS="-g"
3472    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484   ac_cv_prog_cc_g=yes
3485 else
3486   CFLAGS=""
3487       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h.  */
3489
3490 int
3491 main ()
3492 {
3493
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499
3500 else
3501   ac_c_werror_flag=$ac_save_c_werror_flag
3502          CFLAGS="-g"
3503          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h.  */
3505
3506 int
3507 main ()
3508 {
3509
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515   ac_cv_prog_cc_g=yes
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 fi
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522    ac_c_werror_flag=$ac_save_c_werror_flag
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3525 $as_echo "$ac_cv_prog_cc_g" >&6; }
3526 if test "$ac_test_CFLAGS" = set; then
3527   CFLAGS=$ac_save_CFLAGS
3528 elif test $ac_cv_prog_cc_g = yes; then
3529   if test "$GCC" = yes; then
3530     CFLAGS="-g -O2"
3531   else
3532     CFLAGS="-g"
3533   fi
3534 else
3535   if test "$GCC" = yes; then
3536     CFLAGS="-O2"
3537   else
3538     CFLAGS=
3539   fi
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3542 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3543 if ${ac_cv_prog_cc_c89+:} false; then :
3544   $as_echo_n "(cached) " >&6
3545 else
3546   ac_cv_prog_cc_c89=no
3547 ac_save_CC=$CC
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h.  */
3550 #include <stdarg.h>
3551 #include <stdio.h>
3552 struct stat;
3553 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3554 struct buf { int x; };
3555 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3556 static char *e (p, i)
3557      char **p;
3558      int i;
3559 {
3560   return p[i];
3561 }
3562 static char *f (char * (*g) (char **, int), char **p, ...)
3563 {
3564   char *s;
3565   va_list v;
3566   va_start (v,p);
3567   s = g (p, va_arg (v,int));
3568   va_end (v);
3569   return s;
3570 }
3571
3572 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3573    function prototypes and stuff, but not '\xHH' hex character constants.
3574    These don't provoke an error unfortunately, instead are silently treated
3575    as 'x'.  The following induces an error, until -std is added to get
3576    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3577    array size at least.  It's necessary to write '\x00'==0 to get something
3578    that's true only with -std.  */
3579 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3580
3581 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3582    inside strings and character constants.  */
3583 #define FOO(x) 'x'
3584 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3585
3586 int test (int i, double x);
3587 struct s1 {int (*f) (int a);};
3588 struct s2 {int (*f) (double a);};
3589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3590 int argc;
3591 char **argv;
3592 int
3593 main ()
3594 {
3595 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3601         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3602 do
3603   CC="$ac_save_CC $ac_arg"
3604   if ac_fn_c_try_compile "$LINENO"; then :
3605   ac_cv_prog_cc_c89=$ac_arg
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext
3608   test "x$ac_cv_prog_cc_c89" != "xno" && break
3609 done
3610 rm -f conftest.$ac_ext
3611 CC=$ac_save_CC
3612
3613 fi
3614 # AC_CACHE_VAL
3615 case "x$ac_cv_prog_cc_c89" in
3616   x)
3617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3618 $as_echo "none needed" >&6; } ;;
3619   xno)
3620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3621 $as_echo "unsupported" >&6; } ;;
3622   *)
3623     CC="$CC $ac_cv_prog_cc_c89"
3624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3625 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3626 esac
3627 if test "x$ac_cv_prog_cc_c89" != xno; then :
3628
3629 fi
3630
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
3637
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3639 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3640 if ${ac_cv_lib_dl_dlopen+:} false; then :
3641   $as_echo_n "(cached) " >&6
3642 else
3643   ac_check_lib_save_LIBS=$LIBS
3644 LIBS="-ldl  $LIBS"
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h.  */
3647
3648 /* Override any GCC internal prototype to avoid an error.
3649    Use char because int might match the return type of a GCC
3650    builtin and then its argument prototype would still apply.  */
3651 #ifdef __cplusplus
3652 extern "C"
3653 #endif
3654 char dlopen ();
3655 int
3656 main ()
3657 {
3658 return dlopen ();
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 if ac_fn_c_try_link "$LINENO"; then :
3664   ac_cv_lib_dl_dlopen=yes
3665 else
3666   ac_cv_lib_dl_dlopen=no
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext \
3669     conftest$ac_exeext conftest.$ac_ext
3670 LIBS=$ac_check_lib_save_LIBS
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3673 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3674 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3675   DLOPEN_LIB=-ldl
3676
3677 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3678
3679 fi
3680
3681
3682
3683 # Check whether --with-cc was given.
3684 if test "${with_cc+set}" = set; then :
3685   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3686 fi
3687
3688
3689 # Check whether --with-ccopts was given.
3690 if test "${with_ccopts+set}" = set; then :
3691   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3692 fi
3693
3694
3695 # Check whether --with-ldopts was given.
3696 if test "${with_ldopts+set}" = set; then :
3697   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3698 fi
3699
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 if test -n "$ac_tool_prefix"; then
3706   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3707 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_CC+:} false; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   if test -n "$CC"; then
3714   ac_cv_prog_CC="$CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721     for ac_exec_ext in '' $ac_executable_extensions; do
3722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728   done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3741
3742
3743 fi
3744 if test -z "$ac_cv_prog_CC"; then
3745   ac_ct_CC=$CC
3746   # Extract the first word of "gcc", so it can be a program name with args.
3747 set dummy gcc; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3751   $as_echo_n "(cached) " >&6
3752 else
3753   if test -n "$ac_ct_CC"; then
3754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759   IFS=$as_save_IFS
3760   test -z "$as_dir" && as_dir=.
3761     for ac_exec_ext in '' $ac_executable_extensions; do
3762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763     ac_cv_prog_ac_ct_CC="gcc"
3764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765     break 2
3766   fi
3767 done
3768   done
3769 IFS=$as_save_IFS
3770
3771 fi
3772 fi
3773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774 if test -n "$ac_ct_CC"; then
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776 $as_echo "$ac_ct_CC" >&6; }
3777 else
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 fi
3781
3782   if test "x$ac_ct_CC" = x; then
3783     CC=""
3784   else
3785     case $cross_compiling:$ac_tool_warned in
3786 yes:)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3790 esac
3791     CC=$ac_ct_CC
3792   fi
3793 else
3794   CC="$ac_cv_prog_CC"
3795 fi
3796
3797 if test -z "$CC"; then
3798           if test -n "$ac_tool_prefix"; then
3799     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3800 set dummy ${ac_tool_prefix}cc; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_CC+:} false; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   if test -n "$CC"; then
3807   ac_cv_prog_CC="$CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814     for ac_exec_ext in '' $ac_executable_extensions; do
3815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_prog_CC="${ac_tool_prefix}cc"
3817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821   done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 CC=$ac_cv_prog_CC
3827 if test -n "$CC"; then
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829 $as_echo "$CC" >&6; }
3830 else
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835
3836   fi
3837 fi
3838 if test -z "$CC"; then
3839   # Extract the first word of "cc", so it can be a program name with args.
3840 set dummy cc; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_CC+:} false; then :
3844   $as_echo_n "(cached) " >&6
3845 else
3846   if test -n "$CC"; then
3847   ac_cv_prog_CC="$CC" # Let the user override the test.
3848 else
3849   ac_prog_rejected=no
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853   IFS=$as_save_IFS
3854   test -z "$as_dir" && as_dir=.
3855     for ac_exec_ext in '' $ac_executable_extensions; do
3856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3858        ac_prog_rejected=yes
3859        continue
3860      fi
3861     ac_cv_prog_CC="cc"
3862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863     break 2
3864   fi
3865 done
3866   done
3867 IFS=$as_save_IFS
3868
3869 if test $ac_prog_rejected = yes; then
3870   # We found a bogon in the path, so make sure we never use it.
3871   set dummy $ac_cv_prog_CC
3872   shift
3873   if test $# != 0; then
3874     # We chose a different compiler from the bogus one.
3875     # However, it has the same basename, so the bogon will be chosen
3876     # first if we set CC to just the basename; use the full file name.
3877     shift
3878     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3879   fi
3880 fi
3881 fi
3882 fi
3883 CC=$ac_cv_prog_CC
3884 if test -n "$CC"; then
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3886 $as_echo "$CC" >&6; }
3887 else
3888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3890 fi
3891
3892
3893 fi
3894 if test -z "$CC"; then
3895   if test -n "$ac_tool_prefix"; then
3896   for ac_prog in cl.exe
3897   do
3898     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if ${ac_cv_prog_CC+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   if test -n "$CC"; then
3906   ac_cv_prog_CC="$CC" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913     for ac_exec_ext in '' $ac_executable_extensions; do
3914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920   done
3921 IFS=$as_save_IFS
3922
3923 fi
3924 fi
3925 CC=$ac_cv_prog_CC
3926 if test -n "$CC"; then
3927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3928 $as_echo "$CC" >&6; }
3929 else
3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 fi
3933
3934
3935     test -n "$CC" && break
3936   done
3937 fi
3938 if test -z "$CC"; then
3939   ac_ct_CC=$CC
3940   for ac_prog in cl.exe
3941 do
3942   # Extract the first word of "$ac_prog", so it can be a program name with args.
3943 set dummy $ac_prog; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   if test -n "$ac_ct_CC"; then
3950   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955   IFS=$as_save_IFS
3956   test -z "$as_dir" && as_dir=.
3957     for ac_exec_ext in '' $ac_executable_extensions; do
3958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959     ac_cv_prog_ac_ct_CC="$ac_prog"
3960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961     break 2
3962   fi
3963 done
3964   done
3965 IFS=$as_save_IFS
3966
3967 fi
3968 fi
3969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3970 if test -n "$ac_ct_CC"; then
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3972 $as_echo "$ac_ct_CC" >&6; }
3973 else
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 fi
3977
3978
3979   test -n "$ac_ct_CC" && break
3980 done
3981
3982   if test "x$ac_ct_CC" = x; then
3983     CC=""
3984   else
3985     case $cross_compiling:$ac_tool_warned in
3986 yes:)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3990 esac
3991     CC=$ac_ct_CC
3992   fi
3993 fi
3994
3995 fi
3996
3997
3998 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "no acceptable C compiler found in \$PATH
4001 See \`config.log' for more details" "$LINENO" 5; }
4002
4003 # Provide some information about the compiler.
4004 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4005 set X $ac_compile
4006 ac_compiler=$2
4007 for ac_option in --version -v -V -qversion; do
4008   { { ac_try="$ac_compiler $ac_option >&5"
4009 case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4016   ac_status=$?
4017   if test -s conftest.err; then
4018     sed '10a\
4019 ... rest of stderr output deleted ...
4020          10q' conftest.err >conftest.er1
4021     cat conftest.er1 >&5
4022   fi
4023   rm -f conftest.er1 conftest.err
4024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025   test $ac_status = 0; }
4026 done
4027
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4029 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4030 if ${ac_cv_c_compiler_gnu+:} false; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h.  */
4035
4036 int
4037 main ()
4038 {
4039 #ifndef __GNUC__
4040        choke me
4041 #endif
4042
4043   ;
4044   return 0;
4045 }
4046 _ACEOF
4047 if ac_fn_c_try_compile "$LINENO"; then :
4048   ac_compiler_gnu=yes
4049 else
4050   ac_compiler_gnu=no
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4054
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4058 if test $ac_compiler_gnu = yes; then
4059   GCC=yes
4060 else
4061   GCC=
4062 fi
4063 ac_test_CFLAGS=${CFLAGS+set}
4064 ac_save_CFLAGS=$CFLAGS
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4067 if ${ac_cv_prog_cc_g+:} false; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   ac_save_c_werror_flag=$ac_c_werror_flag
4071    ac_c_werror_flag=yes
4072    ac_cv_prog_cc_g=no
4073    CFLAGS="-g"
4074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076
4077 int
4078 main ()
4079 {
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086   ac_cv_prog_cc_g=yes
4087 else
4088   CFLAGS=""
4089       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091
4092 int
4093 main ()
4094 {
4095
4096   ;
4097   return 0;
4098 }
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101
4102 else
4103   ac_c_werror_flag=$ac_save_c_werror_flag
4104          CFLAGS="-g"
4105          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h.  */
4107
4108 int
4109 main ()
4110 {
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117   ac_cv_prog_cc_g=yes
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124    ac_c_werror_flag=$ac_save_c_werror_flag
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127 $as_echo "$ac_cv_prog_cc_g" >&6; }
4128 if test "$ac_test_CFLAGS" = set; then
4129   CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131   if test "$GCC" = yes; then
4132     CFLAGS="-g -O2"
4133   else
4134     CFLAGS="-g"
4135   fi
4136 else
4137   if test "$GCC" = yes; then
4138     CFLAGS="-O2"
4139   else
4140     CFLAGS=
4141   fi
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145 if ${ac_cv_prog_cc_c89+:} false; then :
4146   $as_echo_n "(cached) " >&6
4147 else
4148   ac_cv_prog_cc_c89=no
4149 ac_save_CC=$CC
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h.  */
4152 #include <stdarg.h>
4153 #include <stdio.h>
4154 struct stat;
4155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4156 struct buf { int x; };
4157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4158 static char *e (p, i)
4159      char **p;
4160      int i;
4161 {
4162   return p[i];
4163 }
4164 static char *f (char * (*g) (char **, int), char **p, ...)
4165 {
4166   char *s;
4167   va_list v;
4168   va_start (v,p);
4169   s = g (p, va_arg (v,int));
4170   va_end (v);
4171   return s;
4172 }
4173
4174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4175    function prototypes and stuff, but not '\xHH' hex character constants.
4176    These don't provoke an error unfortunately, instead are silently treated
4177    as 'x'.  The following induces an error, until -std is added to get
4178    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4179    array size at least.  It's necessary to write '\x00'==0 to get something
4180    that's true only with -std.  */
4181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4182
4183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4184    inside strings and character constants.  */
4185 #define FOO(x) 'x'
4186 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4187
4188 int test (int i, double x);
4189 struct s1 {int (*f) (int a);};
4190 struct s2 {int (*f) (double a);};
4191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4192 int argc;
4193 char **argv;
4194 int
4195 main ()
4196 {
4197 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4203         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4204 do
4205   CC="$ac_save_CC $ac_arg"
4206   if ac_fn_c_try_compile "$LINENO"; then :
4207   ac_cv_prog_cc_c89=$ac_arg
4208 fi
4209 rm -f core conftest.err conftest.$ac_objext
4210   test "x$ac_cv_prog_cc_c89" != "xno" && break
4211 done
4212 rm -f conftest.$ac_ext
4213 CC=$ac_save_CC
4214
4215 fi
4216 # AC_CACHE_VAL
4217 case "x$ac_cv_prog_cc_c89" in
4218   x)
4219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4220 $as_echo "none needed" >&6; } ;;
4221   xno)
4222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4223 $as_echo "unsupported" >&6; } ;;
4224   *)
4225     CC="$CC $ac_cv_prog_cc_c89"
4226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4227 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4228 esac
4229 if test "x$ac_cv_prog_cc_c89" != xno; then :
4230
4231 fi
4232
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
4239 if test "$GCC" = yes; then
4240    RDYNAMIC="-rdynamic"
4241
4242 fi
4243 ac_ext=c
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4249 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4250 # On Suns, sometimes $CPP names a directory.
4251 if test -n "$CPP" && test -d "$CPP"; then
4252   CPP=
4253 fi
4254 if test -z "$CPP"; then
4255   if ${ac_cv_prog_CPP+:} false; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258       # Double quotes because CPP needs to be expanded
4259     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4260     do
4261       ac_preproc_ok=false
4262 for ac_c_preproc_warn_flag in '' yes
4263 do
4264   # Use a header file that comes with gcc, so configuring glibc
4265   # with a fresh cross-compiler works.
4266   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4267   # <limits.h> exists even on freestanding compilers.
4268   # On the NeXT, cc -E runs the code through the compiler's parser,
4269   # not just through cpp. "Syntax error" is here to catch this case.
4270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h.  */
4272 #ifdef __STDC__
4273 # include <limits.h>
4274 #else
4275 # include <assert.h>
4276 #endif
4277                      Syntax error
4278 _ACEOF
4279 if ac_fn_c_try_cpp "$LINENO"; then :
4280
4281 else
4282   # Broken: fails on valid input.
4283 continue
4284 fi
4285 rm -f conftest.err conftest.i conftest.$ac_ext
4286
4287   # OK, works on sane cases.  Now check whether nonexistent headers
4288   # can be detected and how.
4289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h.  */
4291 #include <ac_nonexistent.h>
4292 _ACEOF
4293 if ac_fn_c_try_cpp "$LINENO"; then :
4294   # Broken: success on invalid input.
4295 continue
4296 else
4297   # Passes both tests.
4298 ac_preproc_ok=:
4299 break
4300 fi
4301 rm -f conftest.err conftest.i conftest.$ac_ext
4302
4303 done
4304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 rm -f conftest.i conftest.err conftest.$ac_ext
4306 if $ac_preproc_ok; then :
4307   break
4308 fi
4309
4310     done
4311     ac_cv_prog_CPP=$CPP
4312
4313 fi
4314   CPP=$ac_cv_prog_CPP
4315 else
4316   ac_cv_prog_CPP=$CPP
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4319 $as_echo "$CPP" >&6; }
4320 ac_preproc_ok=false
4321 for ac_c_preproc_warn_flag in '' yes
4322 do
4323   # Use a header file that comes with gcc, so configuring glibc
4324   # with a fresh cross-compiler works.
4325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326   # <limits.h> exists even on freestanding compilers.
4327   # On the NeXT, cc -E runs the code through the compiler's parser,
4328   # not just through cpp. "Syntax error" is here to catch this case.
4329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h.  */
4331 #ifdef __STDC__
4332 # include <limits.h>
4333 #else
4334 # include <assert.h>
4335 #endif
4336                      Syntax error
4337 _ACEOF
4338 if ac_fn_c_try_cpp "$LINENO"; then :
4339
4340 else
4341   # Broken: fails on valid input.
4342 continue
4343 fi
4344 rm -f conftest.err conftest.i conftest.$ac_ext
4345
4346   # OK, works on sane cases.  Now check whether nonexistent headers
4347   # can be detected and how.
4348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350 #include <ac_nonexistent.h>
4351 _ACEOF
4352 if ac_fn_c_try_cpp "$LINENO"; then :
4353   # Broken: success on invalid input.
4354 continue
4355 else
4356   # Passes both tests.
4357 ac_preproc_ok=:
4358 break
4359 fi
4360 rm -f conftest.err conftest.i conftest.$ac_ext
4361
4362 done
4363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 rm -f conftest.i conftest.err conftest.$ac_ext
4365 if $ac_preproc_ok; then :
4366
4367 else
4368   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4371 See \`config.log' for more details" "$LINENO" 5; }
4372 fi
4373
4374 ac_ext=c
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4381 $as_echo_n "checking for additional special compiler flags... " >&6; }
4382 if test "$GCC" = yes
4383 then
4384     case "$host_cpu" in
4385         alpha)          addcflags="-mieee" ;;
4386     esac
4387 fi
4388 if test "x$addcflags" != x
4389 then
4390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4391 $as_echo "$addcflags" >&6; }
4392     CFLAGS="$addcflags $CFLAGS"
4393 else
4394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4395 $as_echo "(none)" >&6; }
4396 fi
4397 LIB_EXT=.a
4398 STATIC_LIB_EXT=.a
4399 PROFILED_LIB_EXT=.a
4400
4401 # Check whether --with-root-prefix was given.
4402 if test "${with_root_prefix+set}" = set; then :
4403   withval=$with_root_prefix; root_prefix=$withval
4404 else
4405   root_prefix=NONE
4406 fi
4407 # Check whether --enable-maintainer-mode was given.
4408 if test "${enable_maintainer_mode+set}" = set; then :
4409   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4410 then
4411         MAINTAINER_CMT=#
4412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4413 $as_echo "Disabling maintainer mode" >&6; }
4414 else
4415         MAINTAINER_CMT=
4416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4417 $as_echo "Enabling maintainer mode" >&6; }
4418 fi
4419
4420 else
4421   MAINTAINER_CMT=#
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4423 $as_echo "Disabling maintainer mode by default" >&6; }
4424
4425 fi
4426
4427
4428 # Check whether --enable-symlink-install was given.
4429 if test "${enable_symlink_install+set}" = set; then :
4430   enableval=$enable_symlink_install; if test "$enableval" = "no"
4431 then
4432         LINK_INSTALL_FLAGS=-f
4433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4434 $as_echo "Disabling symlinks for install" >&6; }
4435 else
4436         LINK_INSTALL_FLAGS=-sf
4437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4438 $as_echo "Enabling symlinks for install" >&6; }
4439 fi
4440
4441 else
4442   LINK_INSTALL_FLAGS=-f
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4444 $as_echo "Disabling symlinks for install by default" >&6; }
4445
4446 fi
4447
4448
4449 relative_symlink_defined=
4450 # Check whether --enable-relative-symlinks was given.
4451 if test "${enable_relative_symlinks+set}" = set; then :
4452   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4453 then
4454         SYMLINK_RELATIVE=
4455         relative_symlink_defined=yes
4456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4457 $as_echo "Disabling relative symlinks for install" >&6; }
4458 else
4459         SYMLINK_RELATIVE=--relative
4460         relative_symlink_defined=yes
4461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4462 $as_echo "Enabling relative symlinks for install" >&6; }
4463 fi
4464 fi
4465
4466 # Check whether --enable-symlink-relative-symlinks was given.
4467 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4468   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4469 then
4470         SYMLINK_RELATIVE=yes
4471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4472 $as_echo "Disabling relative symlinks for install" >&6; }
4473 else
4474         SYMLINK_RELATIVE=--relative
4475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4476 $as_echo "Enabling relative symlinks for install" >&6; }
4477 fi
4478
4479 else
4480   if test -z "$relative_symlink_defined"
4481 then
4482         SYMLINK_RELATIVE=
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4484 $as_echo "Disabling relative symlinks for install by default" >&6; }
4485 fi
4486
4487 fi
4488
4489
4490 # Check whether --enable-symlink-build was given.
4491 if test "${enable_symlink_build+set}" = set; then :
4492   enableval=$enable_symlink_build; if test "$enableval" = "no"
4493 then
4494         LINK_BUILD_FLAGS=
4495         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4496 $as_echo "Disabling symlinks for build" >&6; }
4497 else
4498         LINK_BUILD_FLAGS=-s
4499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4500 $as_echo "Enabling symlinks for build" >&6; }
4501 fi
4502
4503 else
4504   LINK_BUILD_FLAGS=
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4506 $as_echo "Disabling symlinks for build by default" >&6; }
4507
4508 fi
4509
4510
4511 # Check whether --enable-verbose-makecmds was given.
4512 if test "${enable_verbose_makecmds+set}" = set; then :
4513   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4514 then
4515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4516 $as_echo "Disabling verbose make commands" >&6; }
4517         E=@echo
4518         ES=echo
4519         Q=@
4520 else
4521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4522 $as_echo "Enabling verbose make commands" >&6; }
4523         E=@\\#
4524         ES=\\#
4525         Q=
4526 fi
4527
4528 else
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4530 $as_echo "Disabling verbose make commands" >&6; }
4531 E=@echo
4532 ES=echo
4533 Q=@
4534
4535 fi
4536
4537
4538
4539
4540 # Check whether --enable-compression was given.
4541 if test "${enable_compression+set}" = set; then :
4542   enableval=$enable_compression; if test "$enableval" = "no"
4543 then
4544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4545 $as_echo "Disabling compression support" >&6; }
4546 else
4547
4548 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4549
4550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4551 $as_echo "Enabling compression support" >&6; }
4552         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4553 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4554 fi
4555
4556 else
4557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4558 $as_echo "Disabling compression support by default" >&6; }
4559
4560 fi
4561
4562
4563 # Check whether --enable-htree was given.
4564 if test "${enable_htree+set}" = set; then :
4565   enableval=$enable_htree; if test "$enableval" = "no"
4566 then
4567         HTREE_CMT=#
4568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4569 $as_echo "Disabling htree directory support" >&6; }
4570 else
4571         HTREE_CMT=
4572         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4573
4574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4575 $as_echo "Enabling htree directory support" >&6; }
4576 fi
4577
4578 else
4579   HTREE_CMT=
4580 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4583 $as_echo "Enabling htree directory support by default" >&6; }
4584
4585 fi
4586
4587
4588 E2_PKG_CONFIG_STATIC=--static
4589 LDFLAG_DYNAMIC=
4590 PRIVATE_LIBS_CMT=
4591 # Check whether --enable-elf-shlibs was given.
4592 if test "${enable_elf_shlibs+set}" = set; then :
4593   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4594 then
4595         ELF_CMT=#
4596         MAKEFILE_ELF=/dev/null
4597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4598 $as_echo "Disabling ELF shared libraries" >&6; }
4599 else
4600         E2_PKG_CONFIG_STATIC=
4601         ELF_CMT=
4602         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4603         case "$host_os" in
4604         solaris2.*)
4605                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4606         ;;
4607         esac
4608         BINARY_TYPE=elfbin
4609         LIB_EXT=.so
4610         PRIVATE_LIBS_CMT=#
4611         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4613 $as_echo "Enabling ELF shared libraries" >&6; }
4614 fi
4615
4616 else
4617   MAKEFILE_ELF=/dev/null
4618 ELF_CMT=#
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4620 $as_echo "Disabling ELF shared libraries by default" >&6; }
4621
4622 fi
4623
4624
4625
4626 # Check whether --enable-bsd-shlibs was given.
4627 if test "${enable_bsd_shlibs+set}" = set; then :
4628   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4629 then
4630         BSDLIB_CMT=#
4631         MAKEFILE_BSDLIB=/dev/null
4632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4633 $as_echo "Disabling BSD shared libraries" >&6; }
4634 else
4635         E2_PKG_CONFIG_STATIC=
4636         BSDLIB_CMT=
4637         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4638         LIB_EXT=.so
4639         case "$host_os" in
4640         darwin*)
4641                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4642                 LIB_EXT=.dylib
4643         ;;
4644         esac
4645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4646 $as_echo "Enabling BSD shared libraries" >&6; }
4647 fi
4648
4649 else
4650   MAKEFILE_BSDLIB=/dev/null
4651 BSDLIB_CMT=#
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4653 $as_echo "Disabling BSD shared libraries by default" >&6; }
4654
4655 fi
4656
4657
4658
4659 # Check whether --enable-profile was given.
4660 if test "${enable_profile+set}" = set; then :
4661   enableval=$enable_profile; if test "$enableval" = "no"
4662 then
4663         PROFILE_CMT=#
4664         MAKEFILE_PROFILE=/dev/null
4665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4666 $as_echo "Disabling profiling libraries" >&6; }
4667 else
4668         PROFILE_CMT=
4669         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4670         PROFILED_LIB_EXT=_p.a
4671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4672 $as_echo "Building profiling libraries" >&6; }
4673 fi
4674
4675 else
4676   PROFILE_CMT=#
4677 MAKEFILE_PROFILE=/dev/null
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4679 $as_echo "Disabling profiling libraries by default" >&6; }
4680
4681 fi
4682
4683
4684
4685 # Check whether --enable-gcov was given.
4686 if test "${enable_gcov+set}" = set; then :
4687   enableval=$enable_gcov; if test "$enableval" = "yes"
4688 then
4689         CFLAGS="-g -fprofile-arcs -ftest-coverage"
4690         LDFLAGS="-fprofile-arcs -ftest-coverage"
4691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4692 $as_echo "Enabling gcov support" >&6; }
4693 fi
4694
4695 fi
4696
4697
4698
4699
4700
4701
4702
4703 # Check whether --enable-jbd-debug was given.
4704 if test "${enable_jbd_debug+set}" = set; then :
4705   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4706 then
4707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4708 $as_echo "Disabling journal debugging" >&6; }
4709 else
4710
4711 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4712
4713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4714 $as_echo "Enabling journal debugging" >&6; }
4715 fi
4716
4717 else
4718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4719 $as_echo "Disabling journal debugging by default" >&6; }
4720
4721 fi
4722
4723 # Check whether --enable-blkid-debug was given.
4724 if test "${enable_blkid_debug+set}" = set; then :
4725   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4726 then
4727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4728 $as_echo "Disabling blkid debugging" >&6; }
4729 else
4730
4731 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4732
4733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4734 $as_echo "Enabling blkid debugging" >&6; }
4735 fi
4736
4737 else
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4739 $as_echo "Disabling blkid debugging by default" >&6; }
4740
4741 fi
4742
4743 # Check whether --enable-testio-debug was given.
4744 if test "${enable_testio_debug+set}" = set; then :
4745   enableval=$enable_testio_debug;
4746 if test "$enableval" = "no"
4747 then
4748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4749 $as_echo "Disabling testio debugging" >&6; }
4750         TEST_IO_CMT="#"
4751 else
4752         TEST_IO_CMT=
4753         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4754
4755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4756 $as_echo "Enabling testio debugging" >&6; }
4757 fi
4758
4759 else
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4761 $as_echo "Enabling testio debugging by default" >&6; }
4762 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4763
4764 TEST_IO_CMT=
4765
4766 fi
4767
4768
4769
4770
4771 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4772         if test -n "$ac_tool_prefix"; then
4773   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4774 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4778   $as_echo_n "(cached) " >&6
4779 else
4780   case $PKG_CONFIG in
4781   [\\/]* | ?:[\\/]*)
4782   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4783   ;;
4784   *)
4785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790     for ac_exec_ext in '' $ac_executable_extensions; do
4791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797   done
4798 IFS=$as_save_IFS
4799
4800   ;;
4801 esac
4802 fi
4803 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4804 if test -n "$PKG_CONFIG"; then
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4806 $as_echo "$PKG_CONFIG" >&6; }
4807 else
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812
4813 fi
4814 if test -z "$ac_cv_path_PKG_CONFIG"; then
4815   ac_pt_PKG_CONFIG=$PKG_CONFIG
4816   # Extract the first word of "pkg-config", so it can be a program name with args.
4817 set dummy pkg-config; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   case $ac_pt_PKG_CONFIG in
4824   [\\/]* | ?:[\\/]*)
4825   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4826   ;;
4827   *)
4828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840   done
4841 IFS=$as_save_IFS
4842
4843   ;;
4844 esac
4845 fi
4846 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4847 if test -n "$ac_pt_PKG_CONFIG"; then
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4849 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4850 else
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 fi
4854
4855   if test "x$ac_pt_PKG_CONFIG" = x; then
4856     PKG_CONFIG=""
4857   else
4858     case $cross_compiling:$ac_tool_warned in
4859 yes:)
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4862 ac_tool_warned=yes ;;
4863 esac
4864     PKG_CONFIG=$ac_pt_PKG_CONFIG
4865   fi
4866 else
4867   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4868 fi
4869
4870 fi
4871 if test -n "$PKG_CONFIG"; then
4872         _pkg_min_version=0.9.0
4873         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4874 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4875         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4876                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4877 $as_echo "yes" >&6; }
4878         else
4879                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4881                 PKG_CONFIG=""
4882         fi
4883
4884 fi
4885 LIBUUID=
4886 DEPLIBUUID=
4887 STATIC_LIBUUID=
4888 DEPSTATIC_LIBUUID=
4889 PROFILED_LIBUUID=
4890 DEPPROFILED_LIBUUID=
4891 UUID_CMT=
4892 # Check whether --enable-libuuid was given.
4893 if test "${enable_libuuid+set}" = set; then :
4894   enableval=$enable_libuuid; if test "$enableval" = "no"
4895 then
4896         if test -z "$PKG_CONFIG"; then
4897                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4898         fi
4899
4900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4901 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4902 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   ac_check_lib_save_LIBS=$LIBS
4906 LIBS="-luuid  $LIBS"
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h.  */
4909
4910 /* Override any GCC internal prototype to avoid an error.
4911    Use char because int might match the return type of a GCC
4912    builtin and then its argument prototype would still apply.  */
4913 #ifdef __cplusplus
4914 extern "C"
4915 #endif
4916 char uuid_generate ();
4917 int
4918 main ()
4919 {
4920 return uuid_generate ();
4921   ;
4922   return 0;
4923 }
4924 _ACEOF
4925 if ac_fn_c_try_link "$LINENO"; then :
4926   ac_cv_lib_uuid_uuid_generate=yes
4927 else
4928   ac_cv_lib_uuid_uuid_generate=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext \
4931     conftest$ac_exeext conftest.$ac_ext
4932 LIBS=$ac_check_lib_save_LIBS
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4935 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4936 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4937   LIBUUID=`$PKG_CONFIG --libs uuid`;
4938                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4939 else
4940   as_fn_error $? "external uuid library not found" "$LINENO" 5
4941 fi
4942
4943         PROFILED_LIBUUID=$LIBUUID
4944         UUID_CMT=#
4945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4946 $as_echo "Disabling private uuid library" >&6; }
4947 else
4948         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4949         DEPLIBUUID=$LIBUUID
4950         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4951         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4952         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4953         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4955 $as_echo "Enabling private uuid library" >&6; }
4956 fi
4957
4958 else
4959   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4960 DEPLIBUUID=$LIBUUID
4961 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4962 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4963 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4964 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4966 $as_echo "Enabling private uuid library by default" >&6; }
4967
4968 fi
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4980         if test -n "$ac_tool_prefix"; then
4981   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   case $PKG_CONFIG in
4989   [\\/]* | ?:[\\/]*)
4990   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4991   ;;
4992   *)
4993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996   IFS=$as_save_IFS
4997   test -z "$as_dir" && as_dir=.
4998     for ac_exec_ext in '' $ac_executable_extensions; do
4999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002     break 2
5003   fi
5004 done
5005   done
5006 IFS=$as_save_IFS
5007
5008   ;;
5009 esac
5010 fi
5011 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5012 if test -n "$PKG_CONFIG"; then
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5014 $as_echo "$PKG_CONFIG" >&6; }
5015 else
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5018 fi
5019
5020
5021 fi
5022 if test -z "$ac_cv_path_PKG_CONFIG"; then
5023   ac_pt_PKG_CONFIG=$PKG_CONFIG
5024   # Extract the first word of "pkg-config", so it can be a program name with args.
5025 set dummy pkg-config; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   case $ac_pt_PKG_CONFIG in
5032   [\\/]* | ?:[\\/]*)
5033   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5034   ;;
5035   *)
5036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039   IFS=$as_save_IFS
5040   test -z "$as_dir" && as_dir=.
5041     for ac_exec_ext in '' $ac_executable_extensions; do
5042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048   done
5049 IFS=$as_save_IFS
5050
5051   ;;
5052 esac
5053 fi
5054 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5055 if test -n "$ac_pt_PKG_CONFIG"; then
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5057 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5058 else
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062
5063   if test "x$ac_pt_PKG_CONFIG" = x; then
5064     PKG_CONFIG=""
5065   else
5066     case $cross_compiling:$ac_tool_warned in
5067 yes:)
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070 ac_tool_warned=yes ;;
5071 esac
5072     PKG_CONFIG=$ac_pt_PKG_CONFIG
5073   fi
5074 else
5075   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5076 fi
5077
5078 fi
5079 if test -n "$PKG_CONFIG"; then
5080         _pkg_min_version=0.9.0
5081         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5082 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5083         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5084                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5085 $as_echo "yes" >&6; }
5086         else
5087                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089                 PKG_CONFIG=""
5090         fi
5091
5092 fi
5093 LIBBLKID=
5094 DEPLIBBLKID=
5095 STATIC_LIBBLKID=
5096 DEPSTATIC_LIBBLKID=
5097 PROFILED_LIBBLKID=
5098 DEPPROFILED_LIBBLKID=
5099 BLKID_CMT=
5100
5101 # Check whether --enable-libblkid was given.
5102 if test "${enable_libblkid+set}" = set; then :
5103   enableval=$enable_libblkid; if test "$enableval" = "no"
5104 then
5105         if test -z "$PKG_CONFIG"; then
5106                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5107         fi
5108
5109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5110 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5111 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   ac_check_lib_save_LIBS=$LIBS
5115 LIBS="-lblkid -luuid $LIBS"
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h.  */
5118
5119 /* Override any GCC internal prototype to avoid an error.
5120    Use char because int might match the return type of a GCC
5121    builtin and then its argument prototype would still apply.  */
5122 #ifdef __cplusplus
5123 extern "C"
5124 #endif
5125 char blkid_get_cache ();
5126 int
5127 main ()
5128 {
5129 return blkid_get_cache ();
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_link "$LINENO"; then :
5135   ac_cv_lib_blkid_blkid_get_cache=yes
5136 else
5137   ac_cv_lib_blkid_blkid_get_cache=no
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext \
5140     conftest$ac_exeext conftest.$ac_ext
5141 LIBS=$ac_check_lib_save_LIBS
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5144 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5145 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5146   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5147                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5148 else
5149   as_fn_error $? "external blkid library not found" "$LINENO" 5
5150 fi
5151
5152         BLKID_CMT=#
5153         PROFILED_LIBBLKID=$LIBBLKID
5154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5155 $as_echo "Disabling private blkid library" >&6; }
5156 else
5157         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5158         DEPLIBBLKID=$LIBBLKID
5159         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5160         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5161         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5162         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5163         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5164
5165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5166 $as_echo "Enabling private blkid library" >&6; }
5167 fi
5168
5169 else
5170   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5171 DEPLIBBLKID=$LIBBLKID
5172 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5173 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5174 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5175 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5176 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5179 $as_echo "Enabling private blkid library by default" >&6; }
5180
5181 fi
5182
5183
5184
5185
5186
5187
5188
5189
5190 QUOTA_MAN_COMMENT='.\"'
5191 QUOTA_CMT=
5192
5193
5194
5195 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5196         if test -n "$ac_tool_prefix"; then
5197   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5198 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5202   $as_echo_n "(cached) " >&6
5203 else
5204   case $PKG_CONFIG in
5205   [\\/]* | ?:[\\/]*)
5206   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5207   ;;
5208   *)
5209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214     for ac_exec_ext in '' $ac_executable_extensions; do
5215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221   done
5222 IFS=$as_save_IFS
5223
5224   ;;
5225 esac
5226 fi
5227 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5228 if test -n "$PKG_CONFIG"; then
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5230 $as_echo "$PKG_CONFIG" >&6; }
5231 else
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237 fi
5238 if test -z "$ac_cv_path_PKG_CONFIG"; then
5239   ac_pt_PKG_CONFIG=$PKG_CONFIG
5240   # Extract the first word of "pkg-config", so it can be a program name with args.
5241 set dummy pkg-config; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5245   $as_echo_n "(cached) " >&6
5246 else
5247   case $ac_pt_PKG_CONFIG in
5248   [\\/]* | ?:[\\/]*)
5249   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5250   ;;
5251   *)
5252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257     for ac_exec_ext in '' $ac_executable_extensions; do
5258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264   done
5265 IFS=$as_save_IFS
5266
5267   ;;
5268 esac
5269 fi
5270 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5271 if test -n "$ac_pt_PKG_CONFIG"; then
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5273 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5274 else
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279   if test "x$ac_pt_PKG_CONFIG" = x; then
5280     PKG_CONFIG=""
5281   else
5282     case $cross_compiling:$ac_tool_warned in
5283 yes:)
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286 ac_tool_warned=yes ;;
5287 esac
5288     PKG_CONFIG=$ac_pt_PKG_CONFIG
5289   fi
5290 else
5291   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5292 fi
5293
5294 fi
5295 if test -n "$PKG_CONFIG"; then
5296         _pkg_min_version=0.9.0
5297         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5298 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5299         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5300                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5301 $as_echo "yes" >&6; }
5302         else
5303                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305                 PKG_CONFIG=""
5306         fi
5307
5308 fi
5309
5310 # Check whether --enable-quota was given.
5311 if test "${enable_quota+set}" = set; then :
5312   enableval=$enable_quota; if test "$enableval" = "no"
5313 then
5314         QUOTA_CMT=#
5315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5316 $as_echo "Disabling quota support" >&6; }
5317         QUOTA_CMT="#"
5318 else
5319         QUOTA_CMT=
5320         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5321
5322         QUOTA_CMT=
5323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5324 $as_echo "Enabling quota support" >&6; }
5325         QUOTA_MAN_COMMENT=""
5326
5327 fi
5328
5329 else
5330   $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5331
5332 QUOTA_CMT=
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support by default" >&5
5334 $as_echo "Enabling quota support by default" >&6; }
5335
5336 fi
5337
5338 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5339 DEPLIBQUOTA=$LIBQUOTA
5340 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5341 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5342 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5343 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5344
5345
5346
5347
5348
5349
5350
5351
5352 # Check whether --enable-backtrace was given.
5353 if test "${enable_backtrace+set}" = set; then :
5354   enableval=$enable_backtrace; if test "$enableval" = "no"
5355 then
5356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5357 $as_echo "Disabling use of backtrace" >&6; }
5358         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5359
5360 else
5361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5362 $as_echo "Enabling use of backtrace" >&6; }
5363 fi
5364
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5367 $as_echo "Enabling use of backtrace by default" >&6; }
5368
5369 fi
5370
5371 # Check whether --enable-debugfs was given.
5372 if test "${enable_debugfs+set}" = set; then :
5373   enableval=$enable_debugfs; if test "$enableval" = "no"
5374 then
5375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5376 $as_echo "Disabling debugfs support" >&6; }
5377         DEBUGFS_CMT="#"
5378 else
5379         DEBUGFS_CMT=
5380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5381 $as_echo "Enabling debugfs support" >&6; }
5382 fi
5383
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5386 $as_echo "Enabling debugfs support by default" >&6; }
5387 DEBUGFS_CMT=
5388
5389 fi
5390
5391
5392 # Check whether --enable-e2scan was given.
5393 if test "${enable_e2scan+set}" = set; then :
5394   enableval=$enable_e2scan; if test "$enableval" = "no"
5395 then
5396         echo "Disabling e2scan support"
5397         E2SCAN_CMT="#"
5398         E2SCAN_MAN='.\"'
5399 else
5400         E2SCAN_CMT=
5401         E2SCAN_MAN=
5402         echo "Enabling e2scan support"
5403 fi
5404
5405 else
5406   echo "Enabling e2scan support by default"
5407 E2SCAN_CMT=
5408 E2SCAN_MAN=
5409
5410 fi
5411
5412
5413
5414 # Check whether --enable-imager was given.
5415 if test "${enable_imager+set}" = set; then :
5416   enableval=$enable_imager; if test "$enableval" = "no"
5417 then
5418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5419 $as_echo "Disabling e2image support" >&6; }
5420         IMAGER_CMT="#"
5421 else
5422         IMAGER_CMT=
5423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5424 $as_echo "Enabling e2image support" >&6; }
5425 fi
5426
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5429 $as_echo "Enabling e2image support by default" >&6; }
5430 IMAGER_CMT=
5431
5432 fi
5433
5434
5435 # Check whether --enable-resizer was given.
5436 if test "${enable_resizer+set}" = set; then :
5437   enableval=$enable_resizer; if test "$enableval" = "no"
5438 then
5439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5440 $as_echo "Disabling e2resize support" >&6; }
5441         RESIZER_CMT="#"
5442 else
5443         RESIZER_CMT=
5444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5445 $as_echo "Enabling e2resize support" >&6; }
5446 fi
5447
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5450 $as_echo "Enabling e2resize support by default" >&6; }
5451 RESIZER_CMT=
5452
5453 fi
5454
5455
5456 # Check whether --enable-defrag was given.
5457 if test "${enable_defrag+set}" = set; then :
5458   enableval=$enable_defrag; if test "$enableval" = "no"
5459 then
5460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5461 $as_echo "Disabling e4defrag support" >&6; }
5462         DEFRAG_CMT="#"
5463 else
5464         DEFRAG_CMT=
5465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5466 $as_echo "Enabling e4defrag support" >&6; }
5467 fi
5468
5469 else
5470   if test -z "$WITH_DIET_LIBC"
5471 then
5472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5473 $as_echo "Enabling e4defrag support by default" >&6; }
5474         DEFRAG_CMT=
5475 else
5476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5477 $as_echo "Disabling e4defrag support by default" >&6; }
5478         DEFRAG_CMT="#"
5479 fi
5480
5481 fi
5482
5483
5484 # Check whether --enable-fsck was given.
5485 if test "${enable_fsck+set}" = set; then :
5486   enableval=$enable_fsck; if test "$enableval" = "no"
5487 then
5488         FSCK_PROG='' FSCK_MAN=''
5489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5490 $as_echo "Not building fsck wrapper" >&6; }
5491 else
5492         FSCK_PROG=fsck FSCK_MAN=fsck.8
5493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5494 $as_echo "Building fsck wrapper" >&6; }
5495 fi
5496
5497 else
5498   case "$host_os" in
5499   gnu*)
5500     FSCK_PROG='' FSCK_MAN=''
5501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5502 $as_echo "Not building fsck wrapper by default" >&6; }
5503     ;;
5504   *)
5505     FSCK_PROG=fsck FSCK_MAN=fsck.8
5506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5507 $as_echo "Building fsck wrapper by default" >&6; }
5508 esac
5509
5510 fi
5511
5512
5513
5514 # Check whether --enable-e2initrd-helper was given.
5515 if test "${enable_e2initrd_helper+set}" = set; then :
5516   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5517 then
5518         E2INITRD_PROG='' E2INITRD_MAN=''
5519         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5520 $as_echo "Not building e2initrd helper" >&6; }
5521 else
5522         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5524 $as_echo "Building e2initrd helper" >&6; }
5525 fi
5526
5527 else
5528   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5530 $as_echo "Building e2initrd helper by default" >&6; }
5531
5532 fi
5533
5534
5535
5536 # Check whether --enable-tls was given.
5537 if test "${enable_tls+set}" = set; then :
5538   enableval=$enable_tls; if test "$enableval" = "no"
5539 then
5540         try_tls=""
5541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5542 $as_echo "Disabling thread local support" >&6; }
5543 else
5544         try_tls="yes"
5545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5546 $as_echo "Enabling thread local support" >&6; }
5547 fi
5548
5549 else
5550   if test -n "$WITH_DIET_LIBC"
5551 then
5552         try_tls=""
5553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5554 $as_echo "Diet libc does not support thread local support" >&6; }
5555 else
5556         try_tls="yes"
5557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5558 $as_echo "Try using thread local support by default" >&6; }
5559 fi
5560
5561 fi
5562
5563 if test "$try_tls" = "yes"
5564 then
5565
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5567 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5568   if ${ac_cv_tls+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571
5572     ax_tls_keywords="__thread __declspec(thread) none"
5573     for ax_tls_keyword in $ax_tls_keywords; do
5574        case $ax_tls_keyword in
5575           none) ac_cv_tls=none ; break ;;
5576           *)
5577              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h.  */
5579 #include <stdlib.h>
5580                  static void
5581                  foo(void) {
5582                  static  $ax_tls_keyword  int bar;
5583                  exit(1);
5584                  }
5585 int
5586 main ()
5587 {
5588
5589   ;
5590   return 0;
5591 }
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594   ac_cv_tls=$ax_tls_keyword ; break
5595 else
5596   ac_cv_tls=none
5597
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600           esac
5601     done
5602
5603 fi
5604
5605
5606   if test "$ac_cv_tls" != "none"; then
5607
5608 cat >>confdefs.h <<_ACEOF
5609 #define TLS $ac_cv_tls
5610 _ACEOF
5611
5612   fi
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5614 $as_echo "$ac_cv_tls" >&6; }
5615
5616 fi
5617
5618 # Check whether --enable-uuidd was given.
5619 if test "${enable_uuidd+set}" = set; then :
5620   enableval=$enable_uuidd; if test "$enableval" = "no"
5621 then
5622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5623 $as_echo "Not building uuidd" >&6; }
5624         UUIDD_CMT="#"
5625 else
5626         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5627
5628         UUIDD_CMT=""
5629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5630 $as_echo "Building uuidd" >&6; }
5631 fi
5632
5633 else
5634   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5635
5636 if test -z "$UUID_CMT"
5637 then
5638         UUIDD_CMT=""
5639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5640 $as_echo "Building uuidd by default" >&6; }
5641 else
5642         UUIDD_CMT="#"
5643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5644 $as_echo "Disabling uuidd by default" >&6; }
5645 fi
5646
5647 fi
5648
5649
5650 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5651
5652 GETTEXT_PACKAGE=e2fsprogs
5653 PACKAGE=e2fsprogs
5654 VERSION="$E2FSPROGS_VERSION"
5655 VERSION=0.14.1
5656
5657 cat >>confdefs.h <<_ACEOF
5658 #define PACKAGE "$PACKAGE"
5659 _ACEOF
5660
5661
5662 cat >>confdefs.h <<_ACEOF
5663 #define VERSION "$VERSION"
5664 _ACEOF
5665
5666
5667
5668
5669
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5671 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5672 set x ${MAKE-make}
5673 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5674 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677   cat >conftest.make <<\_ACEOF
5678 SHELL = /bin/sh
5679 all:
5680         @echo '@@@%%%=$(MAKE)=@@@%%%'
5681 _ACEOF
5682 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5683 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5684   *@@@%%%=?*=@@@%%%*)
5685     eval ac_cv_prog_make_${ac_make}_set=yes;;
5686   *)
5687     eval ac_cv_prog_make_${ac_make}_set=no;;
5688 esac
5689 rm -f conftest.make
5690 fi
5691 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; }
5694   SET_MAKE=
5695 else
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698   SET_MAKE="MAKE=${MAKE-make}"
5699 fi
5700
5701 # Find a good install program.  We prefer a C program (faster),
5702 # so one script is as good as another.  But avoid the broken or
5703 # incompatible versions:
5704 # SysV /etc/install, /usr/sbin/install
5705 # SunOS /usr/etc/install
5706 # IRIX /sbin/install
5707 # AIX /bin/install
5708 # AmigaOS /C/install, which installs bootblocks on floppy discs
5709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5712 # OS/2's system install, which has a completely different semantic
5713 # ./install, which can be erroneously created by make from ./install.sh.
5714 # Reject install programs that cannot install multiple files.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5716 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5717 if test -z "$INSTALL"; then
5718 if ${ac_cv_path_install+:} false; then :
5719   $as_echo_n "(cached) " >&6
5720 else
5721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726     # Account for people who put trailing slashes in PATH elements.
5727 case $as_dir/ in #((
5728   ./ | .// | /[cC]/* | \
5729   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5730   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5731   /usr/ucb/* ) ;;
5732   *)
5733     # OSF1 and SCO ODT 3.0 have their own names for install.
5734     # Don't use installbsd from OSF since it installs stuff as root
5735     # by default.
5736     for ac_prog in ginstall scoinst install; do
5737       for ac_exec_ext in '' $ac_executable_extensions; do
5738         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5739           if test $ac_prog = install &&
5740             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5741             # AIX install.  It has an incompatible calling convention.
5742             :
5743           elif test $ac_prog = install &&
5744             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5745             # program-specific install script used by HP pwplus--don't use.
5746             :
5747           else
5748             rm -rf conftest.one conftest.two conftest.dir
5749             echo one > conftest.one
5750             echo two > conftest.two
5751             mkdir conftest.dir
5752             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5753               test -s conftest.one && test -s conftest.two &&
5754               test -s conftest.dir/conftest.one &&
5755               test -s conftest.dir/conftest.two
5756             then
5757               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5758               break 3
5759             fi
5760           fi
5761         fi
5762       done
5763     done
5764     ;;
5765 esac
5766
5767   done
5768 IFS=$as_save_IFS
5769
5770 rm -rf conftest.one conftest.two conftest.dir
5771
5772 fi
5773   if test "${ac_cv_path_install+set}" = set; then
5774     INSTALL=$ac_cv_path_install
5775   else
5776     # As a last resort, use the slow shell script.  Don't cache a
5777     # value for INSTALL within a source directory, because that will
5778     # break other packages using the cache if that directory is
5779     # removed, or if the value is a relative name.
5780     INSTALL=$ac_install_sh
5781   fi
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5784 $as_echo "$INSTALL" >&6; }
5785
5786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5787 # It thinks the first close brace ends the variable substitution.
5788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5789
5790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5791
5792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5793
5794
5795         MKINSTALLDIRS=
5796   if test -n "$ac_aux_dir"; then
5797     case "$ac_aux_dir" in
5798       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5799       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5800     esac
5801   fi
5802   if test -z "$MKINSTALLDIRS"; then
5803     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5804   fi
5805
5806
5807
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5809 $as_echo_n "checking whether NLS is requested... " >&6; }
5810     # Check whether --enable-nls was given.
5811 if test "${enable_nls+set}" = set; then :
5812   enableval=$enable_nls; USE_NLS=$enableval
5813 else
5814   USE_NLS=yes
5815 fi
5816
5817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5818 $as_echo "$USE_NLS" >&6; }
5819
5820
5821
5822
5823
5824
5825 # Prepare PATH_SEPARATOR.
5826 # The user is always right.
5827 if test "${PATH_SEPARATOR+set}" != set; then
5828   echo "#! /bin/sh" >conf$$.sh
5829   echo  "exit 0"   >>conf$$.sh
5830   chmod +x conf$$.sh
5831   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5832     PATH_SEPARATOR=';'
5833   else
5834     PATH_SEPARATOR=:
5835   fi
5836   rm -f conf$$.sh
5837 fi
5838
5839 # Find out how to test for executable files. Don't use a zero-byte file,
5840 # as systems may use methods other than mode bits to determine executability.
5841 cat >conf$$.file <<_ASEOF
5842 #! /bin/sh
5843 exit 0
5844 _ASEOF
5845 chmod +x conf$$.file
5846 if test -x conf$$.file >/dev/null 2>&1; then
5847   ac_executable_p="test -x"
5848 else
5849   ac_executable_p="test -f"
5850 fi
5851 rm -f conf$$.file
5852
5853 # Extract the first word of "msgfmt", so it can be a program name with args.
5854 set dummy msgfmt; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_path_MSGFMT+:} false; then :
5858   $as_echo_n "(cached) " >&6
5859 else
5860   case "$MSGFMT" in
5861   [\\/]* | ?:[\\/]*)
5862     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5863     ;;
5864   *)
5865     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5866     for ac_dir in $PATH; do
5867       IFS="$ac_save_IFS"
5868       test -z "$ac_dir" && ac_dir=.
5869       for ac_exec_ext in '' $ac_executable_extensions; do
5870         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5871           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5872      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5873             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5874             break 2
5875           fi
5876         fi
5877       done
5878     done
5879     IFS="$ac_save_IFS"
5880   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5881     ;;
5882 esac
5883 fi
5884 MSGFMT="$ac_cv_path_MSGFMT"
5885 if test "$MSGFMT" != ":"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5887 $as_echo "$MSGFMT" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5894 set dummy gmsgfmt; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_path_GMSGFMT+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   case $GMSGFMT in
5901   [\\/]* | ?:[\\/]*)
5902   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5903   ;;
5904   *)
5905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908   IFS=$as_save_IFS
5909   test -z "$as_dir" && as_dir=.
5910     for ac_exec_ext in '' $ac_executable_extensions; do
5911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917   done
5918 IFS=$as_save_IFS
5919
5920   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5921   ;;
5922 esac
5923 fi
5924 GMSGFMT=$ac_cv_path_GMSGFMT
5925 if test -n "$GMSGFMT"; then
5926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5927 $as_echo "$GMSGFMT" >&6; }
5928 else
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933
5934
5935
5936 # Prepare PATH_SEPARATOR.
5937 # The user is always right.
5938 if test "${PATH_SEPARATOR+set}" != set; then
5939   echo "#! /bin/sh" >conf$$.sh
5940   echo  "exit 0"   >>conf$$.sh
5941   chmod +x conf$$.sh
5942   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5943     PATH_SEPARATOR=';'
5944   else
5945     PATH_SEPARATOR=:
5946   fi
5947   rm -f conf$$.sh
5948 fi
5949
5950 # Find out how to test for executable files. Don't use a zero-byte file,
5951 # as systems may use methods other than mode bits to determine executability.
5952 cat >conf$$.file <<_ASEOF
5953 #! /bin/sh
5954 exit 0
5955 _ASEOF
5956 chmod +x conf$$.file
5957 if test -x conf$$.file >/dev/null 2>&1; then
5958   ac_executable_p="test -x"
5959 else
5960   ac_executable_p="test -f"
5961 fi
5962 rm -f conf$$.file
5963
5964 # Extract the first word of "xgettext", so it can be a program name with args.
5965 set dummy xgettext; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_path_XGETTEXT+:} false; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   case "$XGETTEXT" in
5972   [\\/]* | ?:[\\/]*)
5973     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5974     ;;
5975   *)
5976     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5977     for ac_dir in $PATH; do
5978       IFS="$ac_save_IFS"
5979       test -z "$ac_dir" && ac_dir=.
5980       for ac_exec_ext in '' $ac_executable_extensions; do
5981         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5982           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5983      (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
5984             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5985             break 2
5986           fi
5987         fi
5988       done
5989     done
5990     IFS="$ac_save_IFS"
5991   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5992     ;;
5993 esac
5994 fi
5995 XGETTEXT="$ac_cv_path_XGETTEXT"
5996 if test "$XGETTEXT" != ":"; then
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5998 $as_echo "$XGETTEXT" >&6; }
5999 else
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003
6004     rm -f messages.po
6005
6006
6007 # Prepare PATH_SEPARATOR.
6008 # The user is always right.
6009 if test "${PATH_SEPARATOR+set}" != set; then
6010   echo "#! /bin/sh" >conf$$.sh
6011   echo  "exit 0"   >>conf$$.sh
6012   chmod +x conf$$.sh
6013   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6014     PATH_SEPARATOR=';'
6015   else
6016     PATH_SEPARATOR=:
6017   fi
6018   rm -f conf$$.sh
6019 fi
6020
6021 # Find out how to test for executable files. Don't use a zero-byte file,
6022 # as systems may use methods other than mode bits to determine executability.
6023 cat >conf$$.file <<_ASEOF
6024 #! /bin/sh
6025 exit 0
6026 _ASEOF
6027 chmod +x conf$$.file
6028 if test -x conf$$.file >/dev/null 2>&1; then
6029   ac_executable_p="test -x"
6030 else
6031   ac_executable_p="test -f"
6032 fi
6033 rm -f conf$$.file
6034
6035 # Extract the first word of "msgmerge", so it can be a program name with args.
6036 set dummy msgmerge; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_path_MSGMERGE+:} false; then :
6040   $as_echo_n "(cached) " >&6
6041 else
6042   case "$MSGMERGE" in
6043   [\\/]* | ?:[\\/]*)
6044     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6045     ;;
6046   *)
6047     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6048     for ac_dir in $PATH; do
6049       IFS="$ac_save_IFS"
6050       test -z "$ac_dir" && ac_dir=.
6051       for ac_exec_ext in '' $ac_executable_extensions; do
6052         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6053           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6054             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6055             break 2
6056           fi
6057         fi
6058       done
6059     done
6060     IFS="$ac_save_IFS"
6061   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6062     ;;
6063 esac
6064 fi
6065 MSGMERGE="$ac_cv_path_MSGMERGE"
6066 if test "$MSGMERGE" != ":"; then
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6068 $as_echo "$MSGMERGE" >&6; }
6069 else
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074
6075       if test "$GMSGFMT" != ":"; then
6076             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6077        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6078       : ;
6079     else
6080       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6082 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6083       GMSGFMT=":"
6084     fi
6085   fi
6086
6087       if test "$XGETTEXT" != ":"; then
6088             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6089        (if $XGETTEXT --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
6090       : ;
6091     else
6092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6093 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6094       XGETTEXT=":"
6095     fi
6096         rm -f messages.po
6097   fi
6098
6099   ac_config_commands="$ac_config_commands default-1"
6100
6101
6102 if test -n "$ac_tool_prefix"; then
6103   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_RANLIB+:} false; then :
6108   $as_echo_n "(cached) " >&6
6109 else
6110   if test -n "$RANLIB"; then
6111   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118     for ac_exec_ext in '' $ac_executable_extensions; do
6119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125   done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 RANLIB=$ac_cv_prog_RANLIB
6131 if test -n "$RANLIB"; then
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6133 $as_echo "$RANLIB" >&6; }
6134 else
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138
6139
6140 fi
6141 if test -z "$ac_cv_prog_RANLIB"; then
6142   ac_ct_RANLIB=$RANLIB
6143   # Extract the first word of "ranlib", so it can be a program name with args.
6144 set dummy ranlib; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   if test -n "$ac_ct_RANLIB"; then
6151   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156   IFS=$as_save_IFS
6157   test -z "$as_dir" && as_dir=.
6158     for ac_exec_ext in '' $ac_executable_extensions; do
6159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160     ac_cv_prog_ac_ct_RANLIB="ranlib"
6161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162     break 2
6163   fi
6164 done
6165   done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6171 if test -n "$ac_ct_RANLIB"; then
6172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6173 $as_echo "$ac_ct_RANLIB" >&6; }
6174 else
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179   if test "x$ac_ct_RANLIB" = x; then
6180     RANLIB=":"
6181   else
6182     case $cross_compiling:$ac_tool_warned in
6183 yes:)
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188     RANLIB=$ac_ct_RANLIB
6189   fi
6190 else
6191   RANLIB="$ac_cv_prog_RANLIB"
6192 fi
6193
6194
6195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6196 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6197 if ${ac_cv_lib_cposix_strerror+:} false; then :
6198   $as_echo_n "(cached) " >&6
6199 else
6200   ac_check_lib_save_LIBS=$LIBS
6201 LIBS="-lcposix  $LIBS"
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h.  */
6204
6205 /* Override any GCC internal prototype to avoid an error.
6206    Use char because int might match the return type of a GCC
6207    builtin and then its argument prototype would still apply.  */
6208 #ifdef __cplusplus
6209 extern "C"
6210 #endif
6211 char strerror ();
6212 int
6213 main ()
6214 {
6215 return strerror ();
6216   ;
6217   return 0;
6218 }
6219 _ACEOF
6220 if ac_fn_c_try_link "$LINENO"; then :
6221   ac_cv_lib_cposix_strerror=yes
6222 else
6223   ac_cv_lib_cposix_strerror=no
6224 fi
6225 rm -f core conftest.err conftest.$ac_objext \
6226     conftest$ac_exeext conftest.$ac_ext
6227 LIBS=$ac_check_lib_save_LIBS
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6230 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6231 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6232   LIBS="$LIBS -lcposix"
6233 fi
6234
6235
6236
6237
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6239 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6240 if ${ac_cv_path_GREP+:} false; then :
6241   $as_echo_n "(cached) " >&6
6242 else
6243   if test -z "$GREP"; then
6244   ac_path_GREP_found=false
6245   # Loop through the user's path and test for each of PROGNAME-LIST
6246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251     for ac_prog in grep ggrep; do
6252     for ac_exec_ext in '' $ac_executable_extensions; do
6253       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6254       as_fn_executable_p "$ac_path_GREP" || continue
6255 # Check for GNU ac_path_GREP and select it if it is found.
6256   # Check for GNU $ac_path_GREP
6257 case `"$ac_path_GREP" --version 2>&1` in
6258 *GNU*)
6259   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6260 *)
6261   ac_count=0
6262   $as_echo_n 0123456789 >"conftest.in"
6263   while :
6264   do
6265     cat "conftest.in" "conftest.in" >"conftest.tmp"
6266     mv "conftest.tmp" "conftest.in"
6267     cp "conftest.in" "conftest.nl"
6268     $as_echo 'GREP' >> "conftest.nl"
6269     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6270     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6271     as_fn_arith $ac_count + 1 && ac_count=$as_val
6272     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6273       # Best one so far, save it but keep looking for a better one
6274       ac_cv_path_GREP="$ac_path_GREP"
6275       ac_path_GREP_max=$ac_count
6276     fi
6277     # 10*(2^10) chars as input seems more than enough
6278     test $ac_count -gt 10 && break
6279   done
6280   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6281 esac
6282
6283       $ac_path_GREP_found && break 3
6284     done
6285   done
6286   done
6287 IFS=$as_save_IFS
6288   if test -z "$ac_cv_path_GREP"; then
6289     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6290   fi
6291 else
6292   ac_cv_path_GREP=$GREP
6293 fi
6294
6295 fi
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6297 $as_echo "$ac_cv_path_GREP" >&6; }
6298  GREP="$ac_cv_path_GREP"
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6302 $as_echo_n "checking for egrep... " >&6; }
6303 if ${ac_cv_path_EGREP+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6307    then ac_cv_path_EGREP="$GREP -E"
6308    else
6309      if test -z "$EGREP"; then
6310   ac_path_EGREP_found=false
6311   # Loop through the user's path and test for each of PROGNAME-LIST
6312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317     for ac_prog in egrep; do
6318     for ac_exec_ext in '' $ac_executable_extensions; do
6319       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6320       as_fn_executable_p "$ac_path_EGREP" || continue
6321 # Check for GNU ac_path_EGREP and select it if it is found.
6322   # Check for GNU $ac_path_EGREP
6323 case `"$ac_path_EGREP" --version 2>&1` in
6324 *GNU*)
6325   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6326 *)
6327   ac_count=0
6328   $as_echo_n 0123456789 >"conftest.in"
6329   while :
6330   do
6331     cat "conftest.in" "conftest.in" >"conftest.tmp"
6332     mv "conftest.tmp" "conftest.in"
6333     cp "conftest.in" "conftest.nl"
6334     $as_echo 'EGREP' >> "conftest.nl"
6335     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6336     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6337     as_fn_arith $ac_count + 1 && ac_count=$as_val
6338     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6339       # Best one so far, save it but keep looking for a better one
6340       ac_cv_path_EGREP="$ac_path_EGREP"
6341       ac_path_EGREP_max=$ac_count
6342     fi
6343     # 10*(2^10) chars as input seems more than enough
6344     test $ac_count -gt 10 && break
6345   done
6346   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6347 esac
6348
6349       $ac_path_EGREP_found && break 3
6350     done
6351   done
6352   done
6353 IFS=$as_save_IFS
6354   if test -z "$ac_cv_path_EGREP"; then
6355     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6356   fi
6357 else
6358   ac_cv_path_EGREP=$EGREP
6359 fi
6360
6361    fi
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6364 $as_echo "$ac_cv_path_EGREP" >&6; }
6365  EGREP="$ac_cv_path_EGREP"
6366
6367
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6369 $as_echo_n "checking for ANSI C header files... " >&6; }
6370 if ${ac_cv_header_stdc+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h.  */
6375 #include <stdlib.h>
6376 #include <stdarg.h>
6377 #include <string.h>
6378 #include <float.h>
6379
6380 int
6381 main ()
6382 {
6383
6384   ;
6385   return 0;
6386 }
6387 _ACEOF
6388 if ac_fn_c_try_compile "$LINENO"; then :
6389   ac_cv_header_stdc=yes
6390 else
6391   ac_cv_header_stdc=no
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394
6395 if test $ac_cv_header_stdc = yes; then
6396   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h.  */
6399 #include <string.h>
6400
6401 _ACEOF
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403   $EGREP "memchr" >/dev/null 2>&1; then :
6404
6405 else
6406   ac_cv_header_stdc=no
6407 fi
6408 rm -f conftest*
6409
6410 fi
6411
6412 if test $ac_cv_header_stdc = yes; then
6413   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h.  */
6416 #include <stdlib.h>
6417
6418 _ACEOF
6419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6420   $EGREP "free" >/dev/null 2>&1; then :
6421
6422 else
6423   ac_cv_header_stdc=no
6424 fi
6425 rm -f conftest*
6426
6427 fi
6428
6429 if test $ac_cv_header_stdc = yes; then
6430   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6431   if test "$cross_compiling" = yes; then :
6432   :
6433 else
6434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h.  */
6436 #include <ctype.h>
6437 #include <stdlib.h>
6438 #if ((' ' & 0x0FF) == 0x020)
6439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6441 #else
6442 # define ISLOWER(c) \
6443                    (('a' <= (c) && (c) <= 'i') \
6444                      || ('j' <= (c) && (c) <= 'r') \
6445                      || ('s' <= (c) && (c) <= 'z'))
6446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6447 #endif
6448
6449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6450 int
6451 main ()
6452 {
6453   int i;
6454   for (i = 0; i < 256; i++)
6455     if (XOR (islower (i), ISLOWER (i))
6456         || toupper (i) != TOUPPER (i))
6457       return 2;
6458   return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_c_try_run "$LINENO"; then :
6462
6463 else
6464   ac_cv_header_stdc=no
6465 fi
6466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6467   conftest.$ac_objext conftest.beam conftest.$ac_ext
6468 fi
6469
6470 fi
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6473 $as_echo "$ac_cv_header_stdc" >&6; }
6474 if test $ac_cv_header_stdc = yes; then
6475
6476 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6477
6478 fi
6479
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6481 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6482 if ${ac_cv_c_const+:} false; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h.  */
6487
6488 int
6489 main ()
6490 {
6491
6492 #ifndef __cplusplus
6493   /* Ultrix mips cc rejects this sort of thing.  */
6494   typedef int charset[2];
6495   const charset cs = { 0, 0 };
6496   /* SunOS 4.1.1 cc rejects this.  */
6497   char const *const *pcpcc;
6498   char **ppc;
6499   /* NEC SVR4.0.2 mips cc rejects this.  */
6500   struct point {int x, y;};
6501   static struct point const zero = {0,0};
6502   /* AIX XL C 1.02.0.0 rejects this.
6503      It does not let you subtract one const X* pointer from another in
6504      an arm of an if-expression whose if-part is not a constant
6505      expression */
6506   const char *g = "string";
6507   pcpcc = &g + (g ? g-g : 0);
6508   /* HPUX 7.0 cc rejects these. */
6509   ++pcpcc;
6510   ppc = (char**) pcpcc;
6511   pcpcc = (char const *const *) ppc;
6512   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6513     char tx;
6514     char *t = &tx;
6515     char const *s = 0 ? (char *) 0 : (char const *) 0;
6516
6517     *t++ = 0;
6518     if (s) return 0;
6519   }
6520   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6521     int x[] = {25, 17};
6522     const int *foo = &x[0];
6523     ++foo;
6524   }
6525   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6526     typedef const int *iptr;
6527     iptr p = 0;
6528     ++p;
6529   }
6530   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6531        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6532     struct s { int j; const int *ap[3]; } bx;
6533     struct s *b = &bx; b->j = 5;
6534   }
6535   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6536     const int foo = 10;
6537     if (!foo) return 0;
6538   }
6539   return !cs[0] && !zero.x;
6540 #endif
6541
6542   ;
6543   return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547   ac_cv_c_const=yes
6548 else
6549   ac_cv_c_const=no
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6554 $as_echo "$ac_cv_c_const" >&6; }
6555 if test $ac_cv_c_const = no; then
6556
6557 $as_echo "#define const /**/" >>confdefs.h
6558
6559 fi
6560
6561
6562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6563 $as_echo_n "checking for signed... " >&6; }
6564 if ${bh_cv_c_signed+:} false; then :
6565   $as_echo_n "(cached) " >&6
6566 else
6567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h.  */
6569
6570 int
6571 main ()
6572 {
6573 signed char x;
6574   ;
6575   return 0;
6576 }
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"; then :
6579   bh_cv_c_signed=yes
6580 else
6581   bh_cv_c_signed=no
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6586 $as_echo "$bh_cv_c_signed" >&6; }
6587   if test $bh_cv_c_signed = no; then
6588
6589 $as_echo "#define signed /**/" >>confdefs.h
6590
6591   fi
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6594 $as_echo_n "checking for inline... " >&6; }
6595 if ${ac_cv_c_inline+:} false; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598   ac_cv_c_inline=no
6599 for ac_kw in inline __inline__ __inline; do
6600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h.  */
6602 #ifndef __cplusplus
6603 typedef int foo_t;
6604 static $ac_kw foo_t static_foo () {return 0; }
6605 $ac_kw foo_t foo () {return 0; }
6606 #endif
6607
6608 _ACEOF
6609 if ac_fn_c_try_compile "$LINENO"; then :
6610   ac_cv_c_inline=$ac_kw
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613   test "$ac_cv_c_inline" != no && break
6614 done
6615
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6618 $as_echo "$ac_cv_c_inline" >&6; }
6619
6620 case $ac_cv_c_inline in
6621   inline | yes) ;;
6622   *)
6623     case $ac_cv_c_inline in
6624       no) ac_val=;;
6625       *) ac_val=$ac_cv_c_inline;;
6626     esac
6627     cat >>confdefs.h <<_ACEOF
6628 #ifndef __cplusplus
6629 #define inline $ac_val
6630 #endif
6631 _ACEOF
6632     ;;
6633 esac
6634
6635 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6636 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6637                   inttypes.h stdint.h unistd.h
6638 do :
6639   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6640 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6641 "
6642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6643   cat >>confdefs.h <<_ACEOF
6644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6645 _ACEOF
6646
6647 fi
6648
6649 done
6650
6651
6652 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6653 if test "x$ac_cv_type_off_t" = xyes; then :
6654
6655 else
6656
6657 cat >>confdefs.h <<_ACEOF
6658 #define off_t long int
6659 _ACEOF
6660
6661 fi
6662
6663 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6664 if test "x$ac_cv_type_size_t" = xyes; then :
6665
6666 else
6667
6668 cat >>confdefs.h <<_ACEOF
6669 #define size_t unsigned int
6670 _ACEOF
6671
6672 fi
6673
6674
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6676 $as_echo_n "checking for long long... " >&6; }
6677 if ${ac_cv_type_long_long+:} false; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h.  */
6682 long long ll = 1LL; int i = 63;
6683 int
6684 main ()
6685 {
6686 long long llmax = (long long) -1;
6687      return ll << i | ll >> i | llmax / ll | llmax % ll;
6688   ;
6689   return 0;
6690 }
6691 _ACEOF
6692 if ac_fn_c_try_link "$LINENO"; then :
6693   ac_cv_type_long_long=yes
6694 else
6695   ac_cv_type_long_long=no
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext \
6698     conftest$ac_exeext conftest.$ac_ext
6699 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6701 $as_echo "$ac_cv_type_long_long" >&6; }
6702   if test $ac_cv_type_long_long = yes; then
6703
6704 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6705
6706   fi
6707
6708
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6710 $as_echo_n "checking for long double... " >&6; }
6711 if ${gt_cv_c_long_double+:} false; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   if test "$GCC" = yes; then
6715        gt_cv_c_long_double=yes
6716      else
6717        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h.  */
6719
6720          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6721          long double foo = 0.0;
6722          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6723          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6724
6725 int
6726 main ()
6727 {
6728
6729   ;
6730   return 0;
6731 }
6732 _ACEOF
6733 if ac_fn_c_try_compile "$LINENO"; then :
6734   gt_cv_c_long_double=yes
6735 else
6736   gt_cv_c_long_double=no
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739      fi
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6742 $as_echo "$gt_cv_c_long_double" >&6; }
6743   if test $gt_cv_c_long_double = yes; then
6744
6745 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6746
6747   fi
6748
6749
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6751 $as_echo_n "checking for wchar_t... " >&6; }
6752 if ${gt_cv_c_wchar_t+:} false; then :
6753   $as_echo_n "(cached) " >&6
6754 else
6755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h.  */
6757 #include <stddef.h>
6758        wchar_t foo = (wchar_t)'\0';
6759 int
6760 main ()
6761 {
6762
6763   ;
6764   return 0;
6765 }
6766 _ACEOF
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768   gt_cv_c_wchar_t=yes
6769 else
6770   gt_cv_c_wchar_t=no
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 fi
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6775 $as_echo "$gt_cv_c_wchar_t" >&6; }
6776   if test $gt_cv_c_wchar_t = yes; then
6777
6778 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6779
6780   fi
6781
6782
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6784 $as_echo_n "checking for wint_t... " >&6; }
6785 if ${gt_cv_c_wint_t+:} false; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h.  */
6790 #include <wchar.h>
6791        wint_t foo = (wchar_t)'\0';
6792 int
6793 main ()
6794 {
6795
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801   gt_cv_c_wint_t=yes
6802 else
6803   gt_cv_c_wint_t=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6808 $as_echo "$gt_cv_c_wint_t" >&6; }
6809   if test $gt_cv_c_wint_t = yes; then
6810
6811 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6812
6813   fi
6814
6815
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6817 $as_echo_n "checking for inttypes.h... " >&6; }
6818 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h.  */
6823 #include <sys/types.h>
6824 #include <inttypes.h>
6825 int
6826 main ()
6827 {
6828 uintmax_t i = (uintmax_t) -1;
6829   ;
6830   return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834   jm_ac_cv_header_inttypes_h=yes
6835 else
6836   jm_ac_cv_header_inttypes_h=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6841 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6842   if test $jm_ac_cv_header_inttypes_h = yes; then
6843
6844 cat >>confdefs.h <<_ACEOF
6845 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6846 _ACEOF
6847
6848   fi
6849
6850
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6852 $as_echo_n "checking for stdint.h... " >&6; }
6853 if ${jm_ac_cv_header_stdint_h+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h.  */
6858 #include <sys/types.h>
6859 #include <stdint.h>
6860 int
6861 main ()
6862 {
6863 uintmax_t i = (uintmax_t) -1;
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 if ac_fn_c_try_compile "$LINENO"; then :
6869   jm_ac_cv_header_stdint_h=yes
6870 else
6871   jm_ac_cv_header_stdint_h=no
6872 fi
6873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 fi
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6876 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6877   if test $jm_ac_cv_header_stdint_h = yes; then
6878
6879 cat >>confdefs.h <<_ACEOF
6880 #define HAVE_STDINT_H_WITH_UINTMAX 1
6881 _ACEOF
6882
6883   fi
6884
6885
6886
6887
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6889 $as_echo_n "checking for intmax_t... " >&6; }
6890 if ${gt_cv_c_intmax_t+:} false; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h.  */
6895
6896 #include <stddef.h>
6897 #include <stdlib.h>
6898 #if HAVE_STDINT_H_WITH_UINTMAX
6899 #include <stdint.h>
6900 #endif
6901 #if HAVE_INTTYPES_H_WITH_UINTMAX
6902 #include <inttypes.h>
6903 #endif
6904
6905 int
6906 main ()
6907 {
6908 intmax_t x = -1;
6909   ;
6910   return 0;
6911 }
6912 _ACEOF
6913 if ac_fn_c_try_compile "$LINENO"; then :
6914   gt_cv_c_intmax_t=yes
6915 else
6916   gt_cv_c_intmax_t=no
6917 fi
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 fi
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6921 $as_echo "$gt_cv_c_intmax_t" >&6; }
6922   if test $gt_cv_c_intmax_t = yes; then
6923
6924 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6925
6926   fi
6927
6928
6929
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6931 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6932 if ${gt_cv_func_printf_posix+:} false; then :
6933   $as_echo_n "(cached) " >&6
6934 else
6935
6936       if test "$cross_compiling" = yes; then :
6937
6938         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h.  */
6940
6941 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6942   notposix
6943 #endif
6944
6945 _ACEOF
6946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6947   $EGREP "notposix" >/dev/null 2>&1; then :
6948   gt_cv_func_printf_posix="guessing no"
6949 else
6950   gt_cv_func_printf_posix="guessing yes"
6951 fi
6952 rm -f conftest*
6953
6954
6955 else
6956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h.  */
6958
6959 #include <stdio.h>
6960 #include <string.h>
6961 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6962    dollar expansion (possibly an autoconf bug).  */
6963 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6964 static char buf[100];
6965 int main ()
6966 {
6967   sprintf (buf, format, 33, 55);
6968   return (strcmp (buf, "55 33") != 0);
6969 }
6970 _ACEOF
6971 if ac_fn_c_try_run "$LINENO"; then :
6972   gt_cv_func_printf_posix=yes
6973 else
6974   gt_cv_func_printf_posix=no
6975 fi
6976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6977   conftest.$ac_objext conftest.beam conftest.$ac_ext
6978 fi
6979
6980
6981 fi
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6983 $as_echo "$gt_cv_func_printf_posix" >&6; }
6984   case $gt_cv_func_printf_posix in
6985     *yes)
6986
6987 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6988
6989       ;;
6990   esac
6991
6992 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6993 # for constant arguments.  Useless!
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6995 $as_echo_n "checking for working alloca.h... " >&6; }
6996 if ${ac_cv_working_alloca_h+:} false; then :
6997   $as_echo_n "(cached) " >&6
6998 else
6999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h.  */
7001 #include <alloca.h>
7002 int
7003 main ()
7004 {
7005 char *p = (char *) alloca (2 * sizeof (int));
7006                           if (p) return 0;
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 if ac_fn_c_try_link "$LINENO"; then :
7012   ac_cv_working_alloca_h=yes
7013 else
7014   ac_cv_working_alloca_h=no
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext \
7017     conftest$ac_exeext conftest.$ac_ext
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7020 $as_echo "$ac_cv_working_alloca_h" >&6; }
7021 if test $ac_cv_working_alloca_h = yes; then
7022
7023 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7024
7025 fi
7026
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7028 $as_echo_n "checking for alloca... " >&6; }
7029 if ${ac_cv_func_alloca_works+:} false; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h.  */
7034 #ifdef __GNUC__
7035 # define alloca __builtin_alloca
7036 #else
7037 # ifdef _MSC_VER
7038 #  include <malloc.h>
7039 #  define alloca _alloca
7040 # else
7041 #  ifdef HAVE_ALLOCA_H
7042 #   include <alloca.h>
7043 #  else
7044 #   ifdef _AIX
7045  #pragma alloca
7046 #   else
7047 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7048 void *alloca (size_t);
7049 #    endif
7050 #   endif
7051 #  endif
7052 # endif
7053 #endif
7054
7055 int
7056 main ()
7057 {
7058 char *p = (char *) alloca (1);
7059                                     if (p) return 0;
7060   ;
7061   return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_link "$LINENO"; then :
7065   ac_cv_func_alloca_works=yes
7066 else
7067   ac_cv_func_alloca_works=no
7068 fi
7069 rm -f core conftest.err conftest.$ac_objext \
7070     conftest$ac_exeext conftest.$ac_ext
7071 fi
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7073 $as_echo "$ac_cv_func_alloca_works" >&6; }
7074
7075 if test $ac_cv_func_alloca_works = yes; then
7076
7077 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7078
7079 else
7080   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7081 # that cause trouble.  Some versions do not even contain alloca or
7082 # contain a buggy version.  If you still want to use their alloca,
7083 # use ar to extract alloca.o from them instead of compiling alloca.c.
7084
7085 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7086
7087 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7088
7089
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7091 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7092 if ${ac_cv_os_cray+:} false; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h.  */
7097 #if defined CRAY && ! defined CRAY2
7098 webecray
7099 #else
7100 wenotbecray
7101 #endif
7102
7103 _ACEOF
7104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7105   $EGREP "webecray" >/dev/null 2>&1; then :
7106   ac_cv_os_cray=yes
7107 else
7108   ac_cv_os_cray=no
7109 fi
7110 rm -f conftest*
7111
7112 fi
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7114 $as_echo "$ac_cv_os_cray" >&6; }
7115 if test $ac_cv_os_cray = yes; then
7116   for ac_func in _getb67 GETB67 getb67; do
7117     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7118 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7119 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7120
7121 cat >>confdefs.h <<_ACEOF
7122 #define CRAY_STACKSEG_END $ac_func
7123 _ACEOF
7124
7125     break
7126 fi
7127
7128   done
7129 fi
7130
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7132 $as_echo_n "checking stack direction for C alloca... " >&6; }
7133 if ${ac_cv_c_stack_direction+:} false; then :
7134   $as_echo_n "(cached) " >&6
7135 else
7136   if test "$cross_compiling" = yes; then :
7137   ac_cv_c_stack_direction=0
7138 else
7139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h.  */
7141 $ac_includes_default
7142 int
7143 find_stack_direction (int *addr, int depth)
7144 {
7145   int dir, dummy = 0;
7146   if (! addr)
7147     addr = &dummy;
7148   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7149   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7150   return dir + dummy;
7151 }
7152
7153 int
7154 main (int argc, char **argv)
7155 {
7156   return find_stack_direction (0, argc + !argv + 20) < 0;
7157 }
7158 _ACEOF
7159 if ac_fn_c_try_run "$LINENO"; then :
7160   ac_cv_c_stack_direction=1
7161 else
7162   ac_cv_c_stack_direction=-1
7163 fi
7164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7165   conftest.$ac_objext conftest.beam conftest.$ac_ext
7166 fi
7167
7168 fi
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7170 $as_echo "$ac_cv_c_stack_direction" >&6; }
7171 cat >>confdefs.h <<_ACEOF
7172 #define STACK_DIRECTION $ac_cv_c_stack_direction
7173 _ACEOF
7174
7175
7176 fi
7177
7178
7179
7180
7181   for ac_header in $ac_header_list
7182 do :
7183   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7184 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7185 "
7186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7187   cat >>confdefs.h <<_ACEOF
7188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7189 _ACEOF
7190
7191 fi
7192
7193 done
7194
7195
7196
7197
7198
7199
7200
7201
7202 for ac_func in getpagesize
7203 do :
7204   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7205 if test "x$ac_cv_func_getpagesize" = xyes; then :
7206   cat >>confdefs.h <<_ACEOF
7207 #define HAVE_GETPAGESIZE 1
7208 _ACEOF
7209
7210 fi
7211 done
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7214 $as_echo_n "checking for working mmap... " >&6; }
7215 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7216   $as_echo_n "(cached) " >&6
7217 else
7218   if test "$cross_compiling" = yes; then :
7219   ac_cv_func_mmap_fixed_mapped=no
7220 else
7221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h.  */
7223 $ac_includes_default
7224 /* malloc might have been renamed as rpl_malloc. */
7225 #undef malloc
7226
7227 /* Thanks to Mike Haertel and Jim Avera for this test.
7228    Here is a matrix of mmap possibilities:
7229         mmap private not fixed
7230         mmap private fixed at somewhere currently unmapped
7231         mmap private fixed at somewhere already mapped
7232         mmap shared not fixed
7233         mmap shared fixed at somewhere currently unmapped
7234         mmap shared fixed at somewhere already mapped
7235    For private mappings, we should verify that changes cannot be read()
7236    back from the file, nor mmap's back from the file at a different
7237    address.  (There have been systems where private was not correctly
7238    implemented like the infamous i386 svr4.0, and systems where the
7239    VM page cache was not coherent with the file system buffer cache
7240    like early versions of FreeBSD and possibly contemporary NetBSD.)
7241    For shared mappings, we should conversely verify that changes get
7242    propagated back to all the places they're supposed to be.
7243
7244    Grep wants private fixed already mapped.
7245    The main things grep needs to know about mmap are:
7246    * does it exist and is it safe to write into the mmap'd area
7247    * how to use it (BSD variants)  */
7248
7249 #include <fcntl.h>
7250 #include <sys/mman.h>
7251
7252 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7253 char *malloc ();
7254 #endif
7255
7256 /* This mess was copied from the GNU getpagesize.h.  */
7257 #ifndef HAVE_GETPAGESIZE
7258 # ifdef _SC_PAGESIZE
7259 #  define getpagesize() sysconf(_SC_PAGESIZE)
7260 # else /* no _SC_PAGESIZE */
7261 #  ifdef HAVE_SYS_PARAM_H
7262 #   include <sys/param.h>
7263 #   ifdef EXEC_PAGESIZE
7264 #    define getpagesize() EXEC_PAGESIZE
7265 #   else /* no EXEC_PAGESIZE */
7266 #    ifdef NBPG
7267 #     define getpagesize() NBPG * CLSIZE
7268 #     ifndef CLSIZE
7269 #      define CLSIZE 1
7270 #     endif /* no CLSIZE */
7271 #    else /* no NBPG */
7272 #     ifdef NBPC
7273 #      define getpagesize() NBPC
7274 #     else /* no NBPC */
7275 #      ifdef PAGESIZE
7276 #       define getpagesize() PAGESIZE
7277 #      endif /* PAGESIZE */
7278 #     endif /* no NBPC */
7279 #    endif /* no NBPG */
7280 #   endif /* no EXEC_PAGESIZE */
7281 #  else /* no HAVE_SYS_PARAM_H */
7282 #   define getpagesize() 8192   /* punt totally */
7283 #  endif /* no HAVE_SYS_PARAM_H */
7284 # endif /* no _SC_PAGESIZE */
7285
7286 #endif /* no HAVE_GETPAGESIZE */
7287
7288 int
7289 main ()
7290 {
7291   char *data, *data2, *data3;
7292   const char *cdata2;
7293   int i, pagesize;
7294   int fd, fd2;
7295
7296   pagesize = getpagesize ();
7297
7298   /* First, make a file with some known garbage in it. */
7299   data = (char *) malloc (pagesize);
7300   if (!data)
7301     return 1;
7302   for (i = 0; i < pagesize; ++i)
7303     *(data + i) = rand ();
7304   umask (0);
7305   fd = creat ("conftest.mmap", 0600);
7306   if (fd < 0)
7307     return 2;
7308   if (write (fd, data, pagesize) != pagesize)
7309     return 3;
7310   close (fd);
7311
7312   /* Next, check that the tail of a page is zero-filled.  File must have
7313      non-zero length, otherwise we risk SIGBUS for entire page.  */
7314   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7315   if (fd2 < 0)
7316     return 4;
7317   cdata2 = "";
7318   if (write (fd2, cdata2, 1) != 1)
7319     return 5;
7320   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7321   if (data2 == MAP_FAILED)
7322     return 6;
7323   for (i = 0; i < pagesize; ++i)
7324     if (*(data2 + i))
7325       return 7;
7326   close (fd2);
7327   if (munmap (data2, pagesize))
7328     return 8;
7329
7330   /* Next, try to mmap the file at a fixed address which already has
7331      something else allocated at it.  If we can, also make sure that
7332      we see the same garbage.  */
7333   fd = open ("conftest.mmap", O_RDWR);
7334   if (fd < 0)
7335     return 9;
7336   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7337                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7338     return 10;
7339   for (i = 0; i < pagesize; ++i)
7340     if (*(data + i) != *(data2 + i))
7341       return 11;
7342
7343   /* Finally, make sure that changes to the mapped area do not
7344      percolate back to the file as seen by read().  (This is a bug on
7345      some variants of i386 svr4.0.)  */
7346   for (i = 0; i < pagesize; ++i)
7347     *(data2 + i) = *(data2 + i) + 1;
7348   data3 = (char *) malloc (pagesize);
7349   if (!data3)
7350     return 12;
7351   if (read (fd, data3, pagesize) != pagesize)
7352     return 13;
7353   for (i = 0; i < pagesize; ++i)
7354     if (*(data + i) != *(data3 + i))
7355       return 14;
7356   close (fd);
7357   return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_c_try_run "$LINENO"; then :
7361   ac_cv_func_mmap_fixed_mapped=yes
7362 else
7363   ac_cv_func_mmap_fixed_mapped=no
7364 fi
7365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7366   conftest.$ac_objext conftest.beam conftest.$ac_ext
7367 fi
7368
7369 fi
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7371 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7372 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7373
7374 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7375
7376 fi
7377 rm -f conftest.mmap conftest.txt
7378
7379
7380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7381 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7382 if ${ac_cv_gnu_library_2_1+:} false; then :
7383   $as_echo_n "(cached) " >&6
7384 else
7385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h.  */
7387
7388 #include <features.h>
7389 #ifdef __GNU_LIBRARY__
7390  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7391   Lucky GNU user
7392  #endif
7393 #endif
7394
7395 _ACEOF
7396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7397   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7398   ac_cv_gnu_library_2_1=yes
7399 else
7400   ac_cv_gnu_library_2_1=no
7401 fi
7402 rm -f conftest*
7403
7404
7405
7406 fi
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7408 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7409
7410     GLIBC21="$ac_cv_gnu_library_2_1"
7411
7412
7413
7414
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7416 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7417 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420
7421       if test "$cross_compiling" = yes; then :
7422
7423           # Guess based on the CPU.
7424           case "$host_cpu" in
7425             alpha* | i3456786 | m68k | s390*)
7426               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7427             *)
7428               gt_cv_int_divbyzero_sigfpe="guessing no";;
7429           esac
7430
7431 else
7432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h.  */
7434
7435 #include <stdlib.h>
7436 #include <signal.h>
7437
7438 static void
7439 #ifdef __cplusplus
7440 sigfpe_handler (int sig)
7441 #else
7442 sigfpe_handler (sig) int sig;
7443 #endif
7444 {
7445   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7446   exit (sig != SIGFPE);
7447 }
7448
7449 int x = 1;
7450 int y = 0;
7451 int z;
7452 int nan;
7453
7454 int main ()
7455 {
7456   signal (SIGFPE, sigfpe_handler);
7457 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7458 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7459   signal (SIGTRAP, sigfpe_handler);
7460 #endif
7461 /* Linux/SPARC yields signal SIGILL.  */
7462 #if defined (__sparc__) && defined (__linux__)
7463   signal (SIGILL, sigfpe_handler);
7464 #endif
7465
7466   z = x / y;
7467   nan = y / y;
7468   exit (1);
7469 }
7470
7471 _ACEOF
7472 if ac_fn_c_try_run "$LINENO"; then :
7473   gt_cv_int_divbyzero_sigfpe=yes
7474 else
7475   gt_cv_int_divbyzero_sigfpe=no
7476 fi
7477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7478   conftest.$ac_objext conftest.beam conftest.$ac_ext
7479 fi
7480
7481
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7484 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7485   case "$gt_cv_int_divbyzero_sigfpe" in
7486     *yes) value=1;;
7487     *) value=0;;
7488   esac
7489
7490 cat >>confdefs.h <<_ACEOF
7491 #define INTDIV0_RAISES_SIGFPE $value
7492 _ACEOF
7493
7494
7495
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7497 $as_echo_n "checking for unsigned long long... " >&6; }
7498 if ${ac_cv_type_unsigned_long_long+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h.  */
7503 unsigned long long ull = 1ULL; int i = 63;
7504 int
7505 main ()
7506 {
7507 unsigned long long ullmax = (unsigned long long) -1;
7508      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7509   ;
7510   return 0;
7511 }
7512 _ACEOF
7513 if ac_fn_c_try_link "$LINENO"; then :
7514   ac_cv_type_unsigned_long_long=yes
7515 else
7516   ac_cv_type_unsigned_long_long=no
7517 fi
7518 rm -f core conftest.err conftest.$ac_objext \
7519     conftest$ac_exeext conftest.$ac_ext
7520 fi
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7522 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7523   if test $ac_cv_type_unsigned_long_long = yes; then
7524
7525 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7526
7527   fi
7528
7529
7530
7531
7532   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7533
7534     test $ac_cv_type_unsigned_long_long = yes \
7535       && ac_type='unsigned long long' \
7536       || ac_type='unsigned long'
7537
7538 cat >>confdefs.h <<_ACEOF
7539 #define uintmax_t $ac_type
7540 _ACEOF
7541
7542   else
7543
7544 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7545
7546   fi
7547
7548
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7550 $as_echo_n "checking for inttypes.h... " >&6; }
7551 if ${gt_cv_header_inttypes_h+:} false; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554
7555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h.  */
7557 #include <sys/types.h>
7558 #include <inttypes.h>
7559 int
7560 main ()
7561 {
7562
7563   ;
7564   return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_compile "$LINENO"; then :
7568   gt_cv_header_inttypes_h=yes
7569 else
7570   gt_cv_header_inttypes_h=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7576 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7577   if test $gt_cv_header_inttypes_h = yes; then
7578
7579 cat >>confdefs.h <<_ACEOF
7580 #define HAVE_INTTYPES_H 1
7581 _ACEOF
7582
7583   fi
7584
7585
7586
7587   if test $gt_cv_header_inttypes_h = yes; then
7588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7589 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7590 if ${gt_cv_inttypes_pri_broken+:} false; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593
7594         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h.  */
7596 #include <inttypes.h>
7597 #ifdef PRId32
7598 char *p = PRId32;
7599 #endif
7600
7601 int
7602 main ()
7603 {
7604
7605   ;
7606   return 0;
7607 }
7608 _ACEOF
7609 if ac_fn_c_try_compile "$LINENO"; then :
7610   gt_cv_inttypes_pri_broken=no
7611 else
7612   gt_cv_inttypes_pri_broken=yes
7613 fi
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615
7616 fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7618 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7619   fi
7620   if test "$gt_cv_inttypes_pri_broken" = yes; then
7621
7622 cat >>confdefs.h <<_ACEOF
7623 #define PRI_MACROS_BROKEN 1
7624 _ACEOF
7625
7626   fi
7627
7628
7629   for ac_header in stdint.h
7630 do :
7631   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7632 if test "x$ac_cv_header_stdint_h" = xyes; then :
7633   cat >>confdefs.h <<_ACEOF
7634 #define HAVE_STDINT_H 1
7635 _ACEOF
7636
7637 fi
7638
7639 done
7640
7641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7642 $as_echo_n "checking for SIZE_MAX... " >&6; }
7643   result=
7644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h.  */
7646
7647 #include <limits.h>
7648 #if HAVE_STDINT_H
7649 #include <stdint.h>
7650 #endif
7651 #ifdef SIZE_MAX
7652 Found it
7653 #endif
7654
7655 _ACEOF
7656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7657   $EGREP "Found it" >/dev/null 2>&1; then :
7658   result=yes
7659 fi
7660 rm -f conftest*
7661
7662   if test -z "$result"; then
7663                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7664
7665 else
7666   result=?
7667 fi
7668
7669
7670     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7671
7672 else
7673   result=?
7674 fi
7675
7676
7677     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7678
7679 else
7680   result=?
7681 fi
7682
7683
7684     if test "$fits_in_uint" = 1; then
7685                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h.  */
7687 #include <stddef.h>
7688         extern size_t foo;
7689         extern unsigned long foo;
7690
7691 int
7692 main ()
7693 {
7694
7695   ;
7696   return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700   fits_in_uint=0
7701 fi
7702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703     fi
7704     if test -z "$result"; then
7705       if test "$fits_in_uint" = 1; then
7706         result="$res_hi$res_lo"U
7707       else
7708         result="$res_hi$res_lo"UL
7709       fi
7710     else
7711             result='~(size_t)0'
7712     fi
7713   fi
7714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7715 $as_echo "$result" >&6; }
7716   if test "$result" != yes; then
7717
7718 cat >>confdefs.h <<_ACEOF
7719 #define SIZE_MAX $result
7720 _ACEOF
7721
7722   fi
7723
7724
7725
7726   for ac_header in stdint.h
7727 do :
7728   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7729 if test "x$ac_cv_header_stdint_h" = xyes; then :
7730   cat >>confdefs.h <<_ACEOF
7731 #define HAVE_STDINT_H 1
7732 _ACEOF
7733
7734 fi
7735
7736 done
7737
7738
7739
7740       if test "X$prefix" = "XNONE"; then
7741     acl_final_prefix="$ac_default_prefix"
7742   else
7743     acl_final_prefix="$prefix"
7744   fi
7745   if test "X$exec_prefix" = "XNONE"; then
7746     acl_final_exec_prefix='${prefix}'
7747   else
7748     acl_final_exec_prefix="$exec_prefix"
7749   fi
7750   acl_save_prefix="$prefix"
7751   prefix="$acl_final_prefix"
7752   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7753   prefix="$acl_save_prefix"
7754
7755
7756 # Check whether --with-gnu-ld was given.
7757 if test "${with_gnu_ld+set}" = set; then :
7758   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7759 else
7760   with_gnu_ld=no
7761 fi
7762
7763 # Prepare PATH_SEPARATOR.
7764 # The user is always right.
7765 if test "${PATH_SEPARATOR+set}" != set; then
7766   echo "#! /bin/sh" >conf$$.sh
7767   echo  "exit 0"   >>conf$$.sh
7768   chmod +x conf$$.sh
7769   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7770     PATH_SEPARATOR=';'
7771   else
7772     PATH_SEPARATOR=:
7773   fi
7774   rm -f conf$$.sh
7775 fi
7776 ac_prog=ld
7777 if test "$GCC" = yes; then
7778   # Check if gcc -print-prog-name=ld gives a path.
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7780 $as_echo_n "checking for ld used by GCC... " >&6; }
7781   case $host in
7782   *-*-mingw*)
7783     # gcc leaves a trailing carriage return which upsets mingw
7784     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7785   *)
7786     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7787   esac
7788   case $ac_prog in
7789     # Accept absolute paths.
7790     [\\/]* | [A-Za-z]:[\\/]*)
7791       re_direlt='/[^/][^/]*/\.\./'
7792       # Canonicalize the path of ld
7793       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7794       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7795         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7796       done
7797       test -z "$LD" && LD="$ac_prog"
7798       ;;
7799   "")
7800     # If it fails, then pretend we aren't using GCC.
7801     ac_prog=ld
7802     ;;
7803   *)
7804     # If it is relative, then search for the first ld in PATH.
7805     with_gnu_ld=unknown
7806     ;;
7807   esac
7808 elif test "$with_gnu_ld" = yes; then
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7810 $as_echo_n "checking for GNU ld... " >&6; }
7811 else
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7813 $as_echo_n "checking for non-GNU ld... " >&6; }
7814 fi
7815 if ${acl_cv_path_LD+:} false; then :
7816   $as_echo_n "(cached) " >&6
7817 else
7818   if test -z "$LD"; then
7819   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7820   for ac_dir in $PATH; do
7821     test -z "$ac_dir" && ac_dir=.
7822     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7823       acl_cv_path_LD="$ac_dir/$ac_prog"
7824       # Check to see if the program is GNU ld.  I'd rather use --version,
7825       # but apparently some GNU ld's only accept -v.
7826       # Break only if it was the GNU/non-GNU ld that we prefer.
7827       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7828       *GNU* | *'with BFD'*)
7829         test "$with_gnu_ld" != no && break ;;
7830       *)
7831         test "$with_gnu_ld" != yes && break ;;
7832       esac
7833     fi
7834   done
7835   IFS="$ac_save_ifs"
7836 else
7837   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7838 fi
7839 fi
7840
7841 LD="$acl_cv_path_LD"
7842 if test -n "$LD"; then
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7844 $as_echo "$LD" >&6; }
7845 else
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 fi
7849 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7851 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7852 if ${acl_cv_prog_gnu_ld+:} false; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7856 case `$LD -v 2>&1 </dev/null` in
7857 *GNU* | *'with BFD'*)
7858   acl_cv_prog_gnu_ld=yes ;;
7859 *)
7860   acl_cv_prog_gnu_ld=no ;;
7861 esac
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7864 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7865 with_gnu_ld=$acl_cv_prog_gnu_ld
7866
7867
7868
7869                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7870 $as_echo_n "checking for shared library run path origin... " >&6; }
7871 if ${acl_cv_rpath+:} false; then :
7872   $as_echo_n "(cached) " >&6
7873 else
7874
7875     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7876     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7877     . ./conftest.sh
7878     rm -f ./conftest.sh
7879     acl_cv_rpath=done
7880
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7883 $as_echo "$acl_cv_rpath" >&6; }
7884   wl="$acl_cv_wl"
7885   libext="$acl_cv_libext"
7886   shlibext="$acl_cv_shlibext"
7887   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7888   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7889   hardcode_direct="$acl_cv_hardcode_direct"
7890   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7891     # Check whether --enable-rpath was given.
7892 if test "${enable_rpath+set}" = set; then :
7893   enableval=$enable_rpath; :
7894 else
7895   enable_rpath=yes
7896 fi
7897
7898
7899
7900
7901
7902
7903
7904
7905     use_additional=yes
7906
7907   acl_save_prefix="$prefix"
7908   prefix="$acl_final_prefix"
7909   acl_save_exec_prefix="$exec_prefix"
7910   exec_prefix="$acl_final_exec_prefix"
7911
7912     eval additional_includedir=\"$includedir\"
7913     eval additional_libdir=\"$libdir\"
7914
7915   exec_prefix="$acl_save_exec_prefix"
7916   prefix="$acl_save_prefix"
7917
7918
7919 # Check whether --with-libiconv-prefix was given.
7920 if test "${with_libiconv_prefix+set}" = set; then :
7921   withval=$with_libiconv_prefix;
7922     if test "X$withval" = "Xno"; then
7923       use_additional=no
7924     else
7925       if test "X$withval" = "X"; then
7926
7927   acl_save_prefix="$prefix"
7928   prefix="$acl_final_prefix"
7929   acl_save_exec_prefix="$exec_prefix"
7930   exec_prefix="$acl_final_exec_prefix"
7931
7932           eval additional_includedir=\"$includedir\"
7933           eval additional_libdir=\"$libdir\"
7934
7935   exec_prefix="$acl_save_exec_prefix"
7936   prefix="$acl_save_prefix"
7937
7938       else
7939         additional_includedir="$withval/include"
7940         additional_libdir="$withval/lib"
7941       fi
7942     fi
7943
7944 fi
7945
7946       LIBICONV=
7947   LTLIBICONV=
7948   INCICONV=
7949   rpathdirs=
7950   ltrpathdirs=
7951   names_already_handled=
7952   names_next_round='iconv '
7953   while test -n "$names_next_round"; do
7954     names_this_round="$names_next_round"
7955     names_next_round=
7956     for name in $names_this_round; do
7957       already_handled=
7958       for n in $names_already_handled; do
7959         if test "$n" = "$name"; then
7960           already_handled=yes
7961           break
7962         fi
7963       done
7964       if test -z "$already_handled"; then
7965         names_already_handled="$names_already_handled $name"
7966                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7967         eval value=\"\$HAVE_LIB$uppername\"
7968         if test -n "$value"; then
7969           if test "$value" = yes; then
7970             eval value=\"\$LIB$uppername\"
7971             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7972             eval value=\"\$LTLIB$uppername\"
7973             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7974           else
7975                                     :
7976           fi
7977         else
7978                               found_dir=
7979           found_la=
7980           found_so=
7981           found_a=
7982           if test $use_additional = yes; then
7983             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7984               found_dir="$additional_libdir"
7985               found_so="$additional_libdir/lib$name.$shlibext"
7986               if test -f "$additional_libdir/lib$name.la"; then
7987                 found_la="$additional_libdir/lib$name.la"
7988               fi
7989             else
7990               if test -f "$additional_libdir/lib$name.$libext"; then
7991                 found_dir="$additional_libdir"
7992                 found_a="$additional_libdir/lib$name.$libext"
7993                 if test -f "$additional_libdir/lib$name.la"; then
7994                   found_la="$additional_libdir/lib$name.la"
7995                 fi
7996               fi
7997             fi
7998           fi
7999           if test "X$found_dir" = "X"; then
8000             for x in $LDFLAGS $LTLIBICONV; do
8001
8002   acl_save_prefix="$prefix"
8003   prefix="$acl_final_prefix"
8004   acl_save_exec_prefix="$exec_prefix"
8005   exec_prefix="$acl_final_exec_prefix"
8006   eval x=\"$x\"
8007   exec_prefix="$acl_save_exec_prefix"
8008   prefix="$acl_save_prefix"
8009
8010               case "$x" in
8011                 -L*)
8012                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8013                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8014                     found_dir="$dir"
8015                     found_so="$dir/lib$name.$shlibext"
8016                     if test -f "$dir/lib$name.la"; then
8017                       found_la="$dir/lib$name.la"
8018                     fi
8019                   else
8020                     if test -f "$dir/lib$name.$libext"; then
8021                       found_dir="$dir"
8022                       found_a="$dir/lib$name.$libext"
8023                       if test -f "$dir/lib$name.la"; then
8024                         found_la="$dir/lib$name.la"
8025                       fi
8026                     fi
8027                   fi
8028                   ;;
8029               esac
8030               if test "X$found_dir" != "X"; then
8031                 break
8032               fi
8033             done
8034           fi
8035           if test "X$found_dir" != "X"; then
8036                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8037             if test "X$found_so" != "X"; then
8038                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8039                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8040               else
8041                                                                                 haveit=
8042                 for x in $ltrpathdirs; do
8043                   if test "X$x" = "X$found_dir"; then
8044                     haveit=yes
8045                     break
8046                   fi
8047                 done
8048                 if test -z "$haveit"; then
8049                   ltrpathdirs="$ltrpathdirs $found_dir"
8050                 fi
8051                                 if test "$hardcode_direct" = yes; then
8052                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8053                 else
8054                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8055                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8056                                                             haveit=
8057                     for x in $rpathdirs; do
8058                       if test "X$x" = "X$found_dir"; then
8059                         haveit=yes
8060                         break
8061                       fi
8062                     done
8063                     if test -z "$haveit"; then
8064                       rpathdirs="$rpathdirs $found_dir"
8065                     fi
8066                   else
8067                                                                                 haveit=
8068                     for x in $LDFLAGS $LIBICONV; do
8069
8070   acl_save_prefix="$prefix"
8071   prefix="$acl_final_prefix"
8072   acl_save_exec_prefix="$exec_prefix"
8073   exec_prefix="$acl_final_exec_prefix"
8074   eval x=\"$x\"
8075   exec_prefix="$acl_save_exec_prefix"
8076   prefix="$acl_save_prefix"
8077
8078                       if test "X$x" = "X-L$found_dir"; then
8079                         haveit=yes
8080                         break
8081                       fi
8082                     done
8083                     if test -z "$haveit"; then
8084                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8085                     fi
8086                     if test "$hardcode_minus_L" != no; then
8087                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8088                     else
8089                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8090                     fi
8091                   fi
8092                 fi
8093               fi
8094             else
8095               if test "X$found_a" != "X"; then
8096                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8097               else
8098                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8099               fi
8100             fi
8101                         additional_includedir=
8102             case "$found_dir" in
8103               */lib | */lib/)
8104                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8105                 additional_includedir="$basedir/include"
8106                 ;;
8107             esac
8108             if test "X$additional_includedir" != "X"; then
8109                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8110                 haveit=
8111                 if test "X$additional_includedir" = "X/usr/local/include"; then
8112                   if test -n "$GCC"; then
8113                     case $host_os in
8114                       linux*) haveit=yes;;
8115                     esac
8116                   fi
8117                 fi
8118                 if test -z "$haveit"; then
8119                   for x in $CPPFLAGS $INCICONV; do
8120
8121   acl_save_prefix="$prefix"
8122   prefix="$acl_final_prefix"
8123   acl_save_exec_prefix="$exec_prefix"
8124   exec_prefix="$acl_final_exec_prefix"
8125   eval x=\"$x\"
8126   exec_prefix="$acl_save_exec_prefix"
8127   prefix="$acl_save_prefix"
8128
8129                     if test "X$x" = "X-I$additional_includedir"; then
8130                       haveit=yes
8131                       break
8132                     fi
8133                   done
8134                   if test -z "$haveit"; then
8135                     if test -d "$additional_includedir"; then
8136                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8137                     fi
8138                   fi
8139                 fi
8140               fi
8141             fi
8142                         if test -n "$found_la"; then
8143                                                         save_libdir="$libdir"
8144               case "$found_la" in
8145                 */* | *\\*) . "$found_la" ;;
8146                 *) . "./$found_la" ;;
8147               esac
8148               libdir="$save_libdir"
8149                             for dep in $dependency_libs; do
8150                 case "$dep" in
8151                   -L*)
8152                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8153                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8154                       haveit=
8155                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8156                         if test -n "$GCC"; then
8157                           case $host_os in
8158                             linux*) haveit=yes;;
8159                           esac
8160                         fi
8161                       fi
8162                       if test -z "$haveit"; then
8163                         haveit=
8164                         for x in $LDFLAGS $LIBICONV; do
8165
8166   acl_save_prefix="$prefix"
8167   prefix="$acl_final_prefix"
8168   acl_save_exec_prefix="$exec_prefix"
8169   exec_prefix="$acl_final_exec_prefix"
8170   eval x=\"$x\"
8171   exec_prefix="$acl_save_exec_prefix"
8172   prefix="$acl_save_prefix"
8173
8174                           if test "X$x" = "X-L$additional_libdir"; then
8175                             haveit=yes
8176                             break
8177                           fi
8178                         done
8179                         if test -z "$haveit"; then
8180                           if test -d "$additional_libdir"; then
8181                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8182                           fi
8183                         fi
8184                         haveit=
8185                         for x in $LDFLAGS $LTLIBICONV; do
8186
8187   acl_save_prefix="$prefix"
8188   prefix="$acl_final_prefix"
8189   acl_save_exec_prefix="$exec_prefix"
8190   exec_prefix="$acl_final_exec_prefix"
8191   eval x=\"$x\"
8192   exec_prefix="$acl_save_exec_prefix"
8193   prefix="$acl_save_prefix"
8194
8195                           if test "X$x" = "X-L$additional_libdir"; then
8196                             haveit=yes
8197                             break
8198                           fi
8199                         done
8200                         if test -z "$haveit"; then
8201                           if test -d "$additional_libdir"; then
8202                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8203                           fi
8204                         fi
8205                       fi
8206                     fi
8207                     ;;
8208                   -R*)
8209                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8210                     if test "$enable_rpath" != no; then
8211                                                                   haveit=
8212                       for x in $rpathdirs; do
8213                         if test "X$x" = "X$dir"; then
8214                           haveit=yes
8215                           break
8216                         fi
8217                       done
8218                       if test -z "$haveit"; then
8219                         rpathdirs="$rpathdirs $dir"
8220                       fi
8221                                                                   haveit=
8222                       for x in $ltrpathdirs; do
8223                         if test "X$x" = "X$dir"; then
8224                           haveit=yes
8225                           break
8226                         fi
8227                       done
8228                       if test -z "$haveit"; then
8229                         ltrpathdirs="$ltrpathdirs $dir"
8230                       fi
8231                     fi
8232                     ;;
8233                   -l*)
8234                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8235                     ;;
8236                   *.la)
8237                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8238                     ;;
8239                   *)
8240                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8241                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8242                     ;;
8243                 esac
8244               done
8245             fi
8246           else
8247                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8248             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8249           fi
8250         fi
8251       fi
8252     done
8253   done
8254   if test "X$rpathdirs" != "X"; then
8255     if test -n "$hardcode_libdir_separator"; then
8256                         alldirs=
8257       for found_dir in $rpathdirs; do
8258         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8259       done
8260             acl_save_libdir="$libdir"
8261       libdir="$alldirs"
8262       eval flag=\"$hardcode_libdir_flag_spec\"
8263       libdir="$acl_save_libdir"
8264       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8265     else
8266             for found_dir in $rpathdirs; do
8267         acl_save_libdir="$libdir"
8268         libdir="$found_dir"
8269         eval flag=\"$hardcode_libdir_flag_spec\"
8270         libdir="$acl_save_libdir"
8271         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8272       done
8273     fi
8274   fi
8275   if test "X$ltrpathdirs" != "X"; then
8276             for found_dir in $ltrpathdirs; do
8277       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8278     done
8279   fi
8280
8281
8282
8283
8284
8285
8286
8287
8288   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8289 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8290
8291 else
8292
8293 $as_echo "#define ptrdiff_t long" >>confdefs.h
8294
8295
8296 fi
8297
8298   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8299 stdlib.h string.h unistd.h sys/param.h
8300 do :
8301   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8302 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8303 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8304   cat >>confdefs.h <<_ACEOF
8305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306 _ACEOF
8307
8308 fi
8309
8310 done
8311
8312   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8313 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8314 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8315 __fsetlocking
8316 do :
8317   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8318 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8319 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8320   cat >>confdefs.h <<_ACEOF
8321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8322 _ACEOF
8323
8324 fi
8325 done
8326
8327
8328
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8330 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8331 if ${ac_cv_have_decl__snprintf+:} false; then :
8332   $as_echo_n "(cached) " >&6
8333 else
8334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h.  */
8336 #include <stdio.h>
8337 int
8338 main ()
8339 {
8340
8341 #ifndef _snprintf
8342   char *p = (char *) _snprintf;
8343 #endif
8344
8345   ;
8346   return 0;
8347 }
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"; then :
8350   ac_cv_have_decl__snprintf=yes
8351 else
8352   ac_cv_have_decl__snprintf=no
8353 fi
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8357 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8358   if test $ac_cv_have_decl__snprintf = yes; then
8359     gt_value=1
8360   else
8361     gt_value=0
8362   fi
8363
8364 cat >>confdefs.h <<_ACEOF
8365 #define HAVE_DECL__SNPRINTF $gt_value
8366 _ACEOF
8367
8368
8369
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8371 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8372 if ${ac_cv_have_decl__snwprintf+:} false; then :
8373   $as_echo_n "(cached) " >&6
8374 else
8375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h.  */
8377 #include <stdio.h>
8378 int
8379 main ()
8380 {
8381
8382 #ifndef _snwprintf
8383   char *p = (char *) _snwprintf;
8384 #endif
8385
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 if ac_fn_c_try_compile "$LINENO"; then :
8391   ac_cv_have_decl__snwprintf=yes
8392 else
8393   ac_cv_have_decl__snwprintf=no
8394 fi
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8398 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8399   if test $ac_cv_have_decl__snwprintf = yes; then
8400     gt_value=1
8401   else
8402     gt_value=0
8403   fi
8404
8405 cat >>confdefs.h <<_ACEOF
8406 #define HAVE_DECL__SNWPRINTF $gt_value
8407 _ACEOF
8408
8409
8410
8411
8412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8413 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8414 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8415   $as_echo_n "(cached) " >&6
8416 else
8417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h.  */
8419 #include <stdio.h>
8420 int
8421 main ()
8422 {
8423
8424 #ifndef feof_unlocked
8425   char *p = (char *) feof_unlocked;
8426 #endif
8427
8428   ;
8429   return 0;
8430 }
8431 _ACEOF
8432 if ac_fn_c_try_compile "$LINENO"; then :
8433   ac_cv_have_decl_feof_unlocked=yes
8434 else
8435   ac_cv_have_decl_feof_unlocked=no
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8440 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8441   if test $ac_cv_have_decl_feof_unlocked = yes; then
8442     gt_value=1
8443   else
8444     gt_value=0
8445   fi
8446
8447 cat >>confdefs.h <<_ACEOF
8448 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8449 _ACEOF
8450
8451
8452
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8454 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8455 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h.  */
8460 #include <stdio.h>
8461 int
8462 main ()
8463 {
8464
8465 #ifndef fgets_unlocked
8466   char *p = (char *) fgets_unlocked;
8467 #endif
8468
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474   ac_cv_have_decl_fgets_unlocked=yes
8475 else
8476   ac_cv_have_decl_fgets_unlocked=no
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 fi
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8481 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8482   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8483     gt_value=1
8484   else
8485     gt_value=0
8486   fi
8487
8488 cat >>confdefs.h <<_ACEOF
8489 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8490 _ACEOF
8491
8492
8493
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8495 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8496 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h.  */
8501 #include <stdio.h>
8502 int
8503 main ()
8504 {
8505
8506 #ifndef getc_unlocked
8507   char *p = (char *) getc_unlocked;
8508 #endif
8509
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"; then :
8515   ac_cv_have_decl_getc_unlocked=yes
8516 else
8517   ac_cv_have_decl_getc_unlocked=no
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 fi
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8522 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8523   if test $ac_cv_have_decl_getc_unlocked = yes; then
8524     gt_value=1
8525   else
8526     gt_value=0
8527   fi
8528
8529 cat >>confdefs.h <<_ACEOF
8530 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8531 _ACEOF
8532
8533
8534
8535   case $gt_cv_func_printf_posix in
8536     *yes) HAVE_POSIX_PRINTF=1 ;;
8537     *) HAVE_POSIX_PRINTF=0 ;;
8538   esac
8539
8540   if test "$ac_cv_func_asprintf" = yes; then
8541     HAVE_ASPRINTF=1
8542   else
8543     HAVE_ASPRINTF=0
8544   fi
8545
8546   if test "$ac_cv_func_snprintf" = yes; then
8547     HAVE_SNPRINTF=1
8548   else
8549     HAVE_SNPRINTF=0
8550   fi
8551
8552   if test "$ac_cv_func_wprintf" = yes; then
8553     HAVE_WPRINTF=1
8554   else
8555     HAVE_WPRINTF=0
8556   fi
8557
8558
8559
8560
8561
8562
8563
8564           am_save_CPPFLAGS="$CPPFLAGS"
8565
8566   for element in $INCICONV; do
8567     haveit=
8568     for x in $CPPFLAGS; do
8569
8570   acl_save_prefix="$prefix"
8571   prefix="$acl_final_prefix"
8572   acl_save_exec_prefix="$exec_prefix"
8573   exec_prefix="$acl_final_exec_prefix"
8574   eval x=\"$x\"
8575   exec_prefix="$acl_save_exec_prefix"
8576   prefix="$acl_save_prefix"
8577
8578       if test "X$x" = "X$element"; then
8579         haveit=yes
8580         break
8581       fi
8582     done
8583     if test -z "$haveit"; then
8584       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8585     fi
8586   done
8587
8588
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8590 $as_echo_n "checking for iconv... " >&6; }
8591 if ${am_cv_func_iconv+:} false; then :
8592   $as_echo_n "(cached) " >&6
8593 else
8594
8595     am_cv_func_iconv="no, consider installing GNU libiconv"
8596     am_cv_lib_iconv=no
8597     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h.  */
8599 #include <stdlib.h>
8600 #include <iconv.h>
8601 int
8602 main ()
8603 {
8604 iconv_t cd = iconv_open("","");
8605        iconv(cd,NULL,NULL,NULL,NULL);
8606        iconv_close(cd);
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 if ac_fn_c_try_link "$LINENO"; then :
8612   am_cv_func_iconv=yes
8613 fi
8614 rm -f core conftest.err conftest.$ac_objext \
8615     conftest$ac_exeext conftest.$ac_ext
8616     if test "$am_cv_func_iconv" != yes; then
8617       am_save_LIBS="$LIBS"
8618       LIBS="$LIBS $LIBICONV"
8619       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h.  */
8621 #include <stdlib.h>
8622 #include <iconv.h>
8623 int
8624 main ()
8625 {
8626 iconv_t cd = iconv_open("","");
8627          iconv(cd,NULL,NULL,NULL,NULL);
8628          iconv_close(cd);
8629   ;
8630   return 0;
8631 }
8632 _ACEOF
8633 if ac_fn_c_try_link "$LINENO"; then :
8634   am_cv_lib_iconv=yes
8635         am_cv_func_iconv=yes
8636 fi
8637 rm -f core conftest.err conftest.$ac_objext \
8638     conftest$ac_exeext conftest.$ac_ext
8639       LIBS="$am_save_LIBS"
8640     fi
8641
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8644 $as_echo "$am_cv_func_iconv" >&6; }
8645   if test "$am_cv_func_iconv" = yes; then
8646
8647 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8648
8649   fi
8650   if test "$am_cv_lib_iconv" = yes; then
8651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8652 $as_echo_n "checking how to link with libiconv... " >&6; }
8653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8654 $as_echo "$LIBICONV" >&6; }
8655   else
8656             CPPFLAGS="$am_save_CPPFLAGS"
8657     LIBICONV=
8658     LTLIBICONV=
8659   fi
8660
8661
8662
8663   if test "$am_cv_func_iconv" = yes; then
8664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8665 $as_echo_n "checking for iconv declaration... " >&6; }
8666     if ${am_cv_proto_iconv+:} false; then :
8667   $as_echo_n "(cached) " >&6
8668 else
8669
8670       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h.  */
8672
8673 #include <stdlib.h>
8674 #include <iconv.h>
8675 extern
8676 #ifdef __cplusplus
8677 "C"
8678 #endif
8679 #if defined(__STDC__) || defined(__cplusplus)
8680 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8681 #else
8682 size_t iconv();
8683 #endif
8684
8685 int
8686 main ()
8687 {
8688
8689   ;
8690   return 0;
8691 }
8692 _ACEOF
8693 if ac_fn_c_try_compile "$LINENO"; then :
8694   am_cv_proto_iconv_arg1=""
8695 else
8696   am_cv_proto_iconv_arg1="const"
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8700 fi
8701
8702     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8704          }$am_cv_proto_iconv" >&5
8705 $as_echo "${ac_t:-
8706          }$am_cv_proto_iconv" >&6; }
8707
8708 cat >>confdefs.h <<_ACEOF
8709 #define ICONV_CONST $am_cv_proto_iconv_arg1
8710 _ACEOF
8711
8712   fi
8713
8714
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8716 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8717 if ${am_cv_langinfo_codeset+:} false; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h.  */
8722 #include <langinfo.h>
8723 int
8724 main ()
8725 {
8726 char* cs = nl_langinfo(CODESET);
8727   ;
8728   return 0;
8729 }
8730 _ACEOF
8731 if ac_fn_c_try_link "$LINENO"; then :
8732   am_cv_langinfo_codeset=yes
8733 else
8734   am_cv_langinfo_codeset=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext \
8737     conftest$ac_exeext conftest.$ac_ext
8738
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8741 $as_echo "$am_cv_langinfo_codeset" >&6; }
8742   if test $am_cv_langinfo_codeset = yes; then
8743
8744 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8745
8746   fi
8747
8748   if test $ac_cv_header_locale_h = yes; then
8749
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8751 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8752 if ${am_cv_val_LC_MESSAGES+:} false; then :
8753   $as_echo_n "(cached) " >&6
8754 else
8755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h.  */
8757 #include <locale.h>
8758 int
8759 main ()
8760 {
8761 return LC_MESSAGES
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"; then :
8767   am_cv_val_LC_MESSAGES=yes
8768 else
8769   am_cv_val_LC_MESSAGES=no
8770 fi
8771 rm -f core conftest.err conftest.$ac_objext \
8772     conftest$ac_exeext conftest.$ac_ext
8773 fi
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8775 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8776   if test $am_cv_val_LC_MESSAGES = yes; then
8777
8778 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8779
8780   fi
8781
8782   fi
8783
8784                       for ac_prog in bison
8785 do
8786   # Extract the first word of "$ac_prog", so it can be a program name with args.
8787 set dummy $ac_prog; ac_word=$2
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 $as_echo_n "checking for $ac_word... " >&6; }
8790 if ${ac_cv_prog_INTLBISON+:} false; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   if test -n "$INTLBISON"; then
8794   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8798 do
8799   IFS=$as_save_IFS
8800   test -z "$as_dir" && as_dir=.
8801     for ac_exec_ext in '' $ac_executable_extensions; do
8802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803     ac_cv_prog_INTLBISON="$ac_prog"
8804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805     break 2
8806   fi
8807 done
8808   done
8809 IFS=$as_save_IFS
8810
8811 fi
8812 fi
8813 INTLBISON=$ac_cv_prog_INTLBISON
8814 if test -n "$INTLBISON"; then
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8816 $as_echo "$INTLBISON" >&6; }
8817 else
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8820 fi
8821
8822
8823   test -n "$INTLBISON" && break
8824 done
8825
8826   if test -z "$INTLBISON"; then
8827     ac_verc_fail=yes
8828   else
8829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8830 $as_echo_n "checking version of bison... " >&6; }
8831     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8832     case $ac_prog_version in
8833       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8834       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8835          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8836       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8837     esac
8838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8839 $as_echo "$ac_prog_version" >&6; }
8840   fi
8841   if test $ac_verc_fail = yes; then
8842     INTLBISON=:
8843   fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8861 $as_echo_n "checking whether NLS is requested... " >&6; }
8862     # Check whether --enable-nls was given.
8863 if test "${enable_nls+set}" = set; then :
8864   enableval=$enable_nls; USE_NLS=$enableval
8865 else
8866   USE_NLS=yes
8867 fi
8868
8869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8870 $as_echo "$USE_NLS" >&6; }
8871
8872
8873
8874
8875     BUILD_INCLUDED_LIBINTL=no
8876     USE_INCLUDED_LIBINTL=no
8877
8878   LIBINTL=
8879   LTLIBINTL=
8880   POSUB=
8881
8882     if test "$USE_NLS" = "yes"; then
8883     gt_use_preinstalled_gnugettext=no
8884
8885       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8886 $as_echo_n "checking whether included gettext is requested... " >&6; }
8887
8888 # Check whether --with-included-gettext was given.
8889 if test "${with_included_gettext+set}" = set; then :
8890   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8891 else
8892   nls_cv_force_use_gnu_gettext=no
8893 fi
8894
8895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8896 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8897
8898       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8899       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8900
8901
8902
8903
8904
8905
8906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8907 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8908 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8909   $as_echo_n "(cached) " >&6
8910 else
8911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h.  */
8913 #include <libintl.h>
8914 extern int _nl_msg_cat_cntr;
8915 extern int *_nl_domain_bindings;
8916 int
8917 main ()
8918 {
8919 bindtextdomain ("", "");
8920 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 if ac_fn_c_try_link "$LINENO"; then :
8926   gt_cv_func_gnugettext1_libc=yes
8927 else
8928   gt_cv_func_gnugettext1_libc=no
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext \
8931     conftest$ac_exeext conftest.$ac_ext
8932 fi
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8934 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8935
8936         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8937
8938
8939
8940     use_additional=yes
8941
8942   acl_save_prefix="$prefix"
8943   prefix="$acl_final_prefix"
8944   acl_save_exec_prefix="$exec_prefix"
8945   exec_prefix="$acl_final_exec_prefix"
8946
8947     eval additional_includedir=\"$includedir\"
8948     eval additional_libdir=\"$libdir\"
8949
8950   exec_prefix="$acl_save_exec_prefix"
8951   prefix="$acl_save_prefix"
8952
8953
8954 # Check whether --with-libintl-prefix was given.
8955 if test "${with_libintl_prefix+set}" = set; then :
8956   withval=$with_libintl_prefix;
8957     if test "X$withval" = "Xno"; then
8958       use_additional=no
8959     else
8960       if test "X$withval" = "X"; then
8961
8962   acl_save_prefix="$prefix"
8963   prefix="$acl_final_prefix"
8964   acl_save_exec_prefix="$exec_prefix"
8965   exec_prefix="$acl_final_exec_prefix"
8966
8967           eval additional_includedir=\"$includedir\"
8968           eval additional_libdir=\"$libdir\"
8969
8970   exec_prefix="$acl_save_exec_prefix"
8971   prefix="$acl_save_prefix"
8972
8973       else
8974         additional_includedir="$withval/include"
8975         additional_libdir="$withval/lib"
8976       fi
8977     fi
8978
8979 fi
8980
8981       LIBINTL=
8982   LTLIBINTL=
8983   INCINTL=
8984   rpathdirs=
8985   ltrpathdirs=
8986   names_already_handled=
8987   names_next_round='intl '
8988   while test -n "$names_next_round"; do
8989     names_this_round="$names_next_round"
8990     names_next_round=
8991     for name in $names_this_round; do
8992       already_handled=
8993       for n in $names_already_handled; do
8994         if test "$n" = "$name"; then
8995           already_handled=yes
8996           break
8997         fi
8998       done
8999       if test -z "$already_handled"; then
9000         names_already_handled="$names_already_handled $name"
9001                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9002         eval value=\"\$HAVE_LIB$uppername\"
9003         if test -n "$value"; then
9004           if test "$value" = yes; then
9005             eval value=\"\$LIB$uppername\"
9006             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9007             eval value=\"\$LTLIB$uppername\"
9008             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9009           else
9010                                     :
9011           fi
9012         else
9013                               found_dir=
9014           found_la=
9015           found_so=
9016           found_a=
9017           if test $use_additional = yes; then
9018             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9019               found_dir="$additional_libdir"
9020               found_so="$additional_libdir/lib$name.$shlibext"
9021               if test -f "$additional_libdir/lib$name.la"; then
9022                 found_la="$additional_libdir/lib$name.la"
9023               fi
9024             else
9025               if test -f "$additional_libdir/lib$name.$libext"; then
9026                 found_dir="$additional_libdir"
9027                 found_a="$additional_libdir/lib$name.$libext"
9028                 if test -f "$additional_libdir/lib$name.la"; then
9029                   found_la="$additional_libdir/lib$name.la"
9030                 fi
9031               fi
9032             fi
9033           fi
9034           if test "X$found_dir" = "X"; then
9035             for x in $LDFLAGS $LTLIBINTL; do
9036
9037   acl_save_prefix="$prefix"
9038   prefix="$acl_final_prefix"
9039   acl_save_exec_prefix="$exec_prefix"
9040   exec_prefix="$acl_final_exec_prefix"
9041   eval x=\"$x\"
9042   exec_prefix="$acl_save_exec_prefix"
9043   prefix="$acl_save_prefix"
9044
9045               case "$x" in
9046                 -L*)
9047                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9048                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9049                     found_dir="$dir"
9050                     found_so="$dir/lib$name.$shlibext"
9051                     if test -f "$dir/lib$name.la"; then
9052                       found_la="$dir/lib$name.la"
9053                     fi
9054                   else
9055                     if test -f "$dir/lib$name.$libext"; then
9056                       found_dir="$dir"
9057                       found_a="$dir/lib$name.$libext"
9058                       if test -f "$dir/lib$name.la"; then
9059                         found_la="$dir/lib$name.la"
9060                       fi
9061                     fi
9062                   fi
9063                   ;;
9064               esac
9065               if test "X$found_dir" != "X"; then
9066                 break
9067               fi
9068             done
9069           fi
9070           if test "X$found_dir" != "X"; then
9071                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9072             if test "X$found_so" != "X"; then
9073                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9074                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9075               else
9076                                                                                 haveit=
9077                 for x in $ltrpathdirs; do
9078                   if test "X$x" = "X$found_dir"; then
9079                     haveit=yes
9080                     break
9081                   fi
9082                 done
9083                 if test -z "$haveit"; then
9084                   ltrpathdirs="$ltrpathdirs $found_dir"
9085                 fi
9086                                 if test "$hardcode_direct" = yes; then
9087                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9088                 else
9089                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9090                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9091                                                             haveit=
9092                     for x in $rpathdirs; do
9093                       if test "X$x" = "X$found_dir"; then
9094                         haveit=yes
9095                         break
9096                       fi
9097                     done
9098                     if test -z "$haveit"; then
9099                       rpathdirs="$rpathdirs $found_dir"
9100                     fi
9101                   else
9102                                                                                 haveit=
9103                     for x in $LDFLAGS $LIBINTL; do
9104
9105   acl_save_prefix="$prefix"
9106   prefix="$acl_final_prefix"
9107   acl_save_exec_prefix="$exec_prefix"
9108   exec_prefix="$acl_final_exec_prefix"
9109   eval x=\"$x\"
9110   exec_prefix="$acl_save_exec_prefix"
9111   prefix="$acl_save_prefix"
9112
9113                       if test "X$x" = "X-L$found_dir"; then
9114                         haveit=yes
9115                         break
9116                       fi
9117                     done
9118                     if test -z "$haveit"; then
9119                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9120                     fi
9121                     if test "$hardcode_minus_L" != no; then
9122                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9123                     else
9124                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9125                     fi
9126                   fi
9127                 fi
9128               fi
9129             else
9130               if test "X$found_a" != "X"; then
9131                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9132               else
9133                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9134               fi
9135             fi
9136                         additional_includedir=
9137             case "$found_dir" in
9138               */lib | */lib/)
9139                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9140                 additional_includedir="$basedir/include"
9141                 ;;
9142             esac
9143             if test "X$additional_includedir" != "X"; then
9144                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9145                 haveit=
9146                 if test "X$additional_includedir" = "X/usr/local/include"; then
9147                   if test -n "$GCC"; then
9148                     case $host_os in
9149                       linux*) haveit=yes;;
9150                     esac
9151                   fi
9152                 fi
9153                 if test -z "$haveit"; then
9154                   for x in $CPPFLAGS $INCINTL; do
9155
9156   acl_save_prefix="$prefix"
9157   prefix="$acl_final_prefix"
9158   acl_save_exec_prefix="$exec_prefix"
9159   exec_prefix="$acl_final_exec_prefix"
9160   eval x=\"$x\"
9161   exec_prefix="$acl_save_exec_prefix"
9162   prefix="$acl_save_prefix"
9163
9164                     if test "X$x" = "X-I$additional_includedir"; then
9165                       haveit=yes
9166                       break
9167                     fi
9168                   done
9169                   if test -z "$haveit"; then
9170                     if test -d "$additional_includedir"; then
9171                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9172                     fi
9173                   fi
9174                 fi
9175               fi
9176             fi
9177                         if test -n "$found_la"; then
9178                                                         save_libdir="$libdir"
9179               case "$found_la" in
9180                 */* | *\\*) . "$found_la" ;;
9181                 *) . "./$found_la" ;;
9182               esac
9183               libdir="$save_libdir"
9184                             for dep in $dependency_libs; do
9185                 case "$dep" in
9186                   -L*)
9187                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9188                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9189                       haveit=
9190                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9191                         if test -n "$GCC"; then
9192                           case $host_os in
9193                             linux*) haveit=yes;;
9194                           esac
9195                         fi
9196                       fi
9197                       if test -z "$haveit"; then
9198                         haveit=
9199                         for x in $LDFLAGS $LIBINTL; do
9200
9201   acl_save_prefix="$prefix"
9202   prefix="$acl_final_prefix"
9203   acl_save_exec_prefix="$exec_prefix"
9204   exec_prefix="$acl_final_exec_prefix"
9205   eval x=\"$x\"
9206   exec_prefix="$acl_save_exec_prefix"
9207   prefix="$acl_save_prefix"
9208
9209                           if test "X$x" = "X-L$additional_libdir"; then
9210                             haveit=yes
9211                             break
9212                           fi
9213                         done
9214                         if test -z "$haveit"; then
9215                           if test -d "$additional_libdir"; then
9216                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9217                           fi
9218                         fi
9219                         haveit=
9220                         for x in $LDFLAGS $LTLIBINTL; do
9221
9222   acl_save_prefix="$prefix"
9223   prefix="$acl_final_prefix"
9224   acl_save_exec_prefix="$exec_prefix"
9225   exec_prefix="$acl_final_exec_prefix"
9226   eval x=\"$x\"
9227   exec_prefix="$acl_save_exec_prefix"
9228   prefix="$acl_save_prefix"
9229
9230                           if test "X$x" = "X-L$additional_libdir"; then
9231                             haveit=yes
9232                             break
9233                           fi
9234                         done
9235                         if test -z "$haveit"; then
9236                           if test -d "$additional_libdir"; then
9237                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9238                           fi
9239                         fi
9240                       fi
9241                     fi
9242                     ;;
9243                   -R*)
9244                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9245                     if test "$enable_rpath" != no; then
9246                                                                   haveit=
9247                       for x in $rpathdirs; do
9248                         if test "X$x" = "X$dir"; then
9249                           haveit=yes
9250                           break
9251                         fi
9252                       done
9253                       if test -z "$haveit"; then
9254                         rpathdirs="$rpathdirs $dir"
9255                       fi
9256                                                                   haveit=
9257                       for x in $ltrpathdirs; do
9258                         if test "X$x" = "X$dir"; then
9259                           haveit=yes
9260                           break
9261                         fi
9262                       done
9263                       if test -z "$haveit"; then
9264                         ltrpathdirs="$ltrpathdirs $dir"
9265                       fi
9266                     fi
9267                     ;;
9268                   -l*)
9269                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9270                     ;;
9271                   *.la)
9272                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9273                     ;;
9274                   *)
9275                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9276                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9277                     ;;
9278                 esac
9279               done
9280             fi
9281           else
9282                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9283             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9284           fi
9285         fi
9286       fi
9287     done
9288   done
9289   if test "X$rpathdirs" != "X"; then
9290     if test -n "$hardcode_libdir_separator"; then
9291                         alldirs=
9292       for found_dir in $rpathdirs; do
9293         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9294       done
9295             acl_save_libdir="$libdir"
9296       libdir="$alldirs"
9297       eval flag=\"$hardcode_libdir_flag_spec\"
9298       libdir="$acl_save_libdir"
9299       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9300     else
9301             for found_dir in $rpathdirs; do
9302         acl_save_libdir="$libdir"
9303         libdir="$found_dir"
9304         eval flag=\"$hardcode_libdir_flag_spec\"
9305         libdir="$acl_save_libdir"
9306         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9307       done
9308     fi
9309   fi
9310   if test "X$ltrpathdirs" != "X"; then
9311             for found_dir in $ltrpathdirs; do
9312       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9313     done
9314   fi
9315
9316           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9317 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9318 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9319   $as_echo_n "(cached) " >&6
9320 else
9321   gt_save_CPPFLAGS="$CPPFLAGS"
9322             CPPFLAGS="$CPPFLAGS $INCINTL"
9323             gt_save_LIBS="$LIBS"
9324             LIBS="$LIBS $LIBINTL"
9325                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h.  */
9327 #include <libintl.h>
9328 extern int _nl_msg_cat_cntr;
9329 extern
9330 #ifdef __cplusplus
9331 "C"
9332 #endif
9333 const char *_nl_expand_alias ();
9334 int
9335 main ()
9336 {
9337 bindtextdomain ("", "");
9338 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 if ac_fn_c_try_link "$LINENO"; then :
9344   gt_cv_func_gnugettext1_libintl=yes
9345 else
9346   gt_cv_func_gnugettext1_libintl=no
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext \
9349     conftest$ac_exeext conftest.$ac_ext
9350                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9351               LIBS="$LIBS $LIBICONV"
9352               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h.  */
9354 #include <libintl.h>
9355 extern int _nl_msg_cat_cntr;
9356 extern
9357 #ifdef __cplusplus
9358 "C"
9359 #endif
9360 const char *_nl_expand_alias ();
9361 int
9362 main ()
9363 {
9364 bindtextdomain ("", "");
9365 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371   LIBINTL="$LIBINTL $LIBICONV"
9372                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9373                 gt_cv_func_gnugettext1_libintl=yes
9374
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext \
9377     conftest$ac_exeext conftest.$ac_ext
9378             fi
9379             CPPFLAGS="$gt_save_CPPFLAGS"
9380             LIBS="$gt_save_LIBS"
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9383 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9384         fi
9385
9386                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9387            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9388                 && test "$PACKAGE" != gettext-runtime \
9389                 && test "$PACKAGE" != gettext-tools; }; then
9390           gt_use_preinstalled_gnugettext=yes
9391         else
9392                     LIBINTL=
9393           LTLIBINTL=
9394           INCINTL=
9395         fi
9396
9397
9398         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9399                               nls_cv_use_gnu_gettext=yes
9400         fi
9401       fi
9402
9403       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9404                 BUILD_INCLUDED_LIBINTL=yes
9405         USE_INCLUDED_LIBINTL=yes
9406         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9407         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9408         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9409       fi
9410
9411       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9412          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9413                 CATOBJEXT=.gmo
9414       fi
9415
9416
9417     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9418        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9419
9420 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9421
9422     else
9423       USE_NLS=no
9424     fi
9425   fi
9426
9427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9428 $as_echo_n "checking whether to use NLS... " >&6; }
9429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9430 $as_echo "$USE_NLS" >&6; }
9431   if test "$USE_NLS" = "yes"; then
9432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9433 $as_echo_n "checking where the gettext function comes from... " >&6; }
9434     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9435       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9436         gt_source="external libintl"
9437       else
9438         gt_source="libc"
9439       fi
9440     else
9441       gt_source="included intl directory"
9442     fi
9443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9444 $as_echo "$gt_source" >&6; }
9445   fi
9446
9447   if test "$USE_NLS" = "yes"; then
9448
9449     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9450       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9452 $as_echo_n "checking how to link with libintl... " >&6; }
9453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9454 $as_echo "$LIBINTL" >&6; }
9455
9456   for element in $INCINTL; do
9457     haveit=
9458     for x in $CPPFLAGS; do
9459
9460   acl_save_prefix="$prefix"
9461   prefix="$acl_final_prefix"
9462   acl_save_exec_prefix="$exec_prefix"
9463   exec_prefix="$acl_final_exec_prefix"
9464   eval x=\"$x\"
9465   exec_prefix="$acl_save_exec_prefix"
9466   prefix="$acl_save_prefix"
9467
9468       if test "X$x" = "X$element"; then
9469         haveit=yes
9470         break
9471       fi
9472     done
9473     if test -z "$haveit"; then
9474       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9475     fi
9476   done
9477
9478       fi
9479
9480
9481 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9482
9483
9484 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9485
9486     fi
9487
9488         POSUB=po
9489   fi
9490
9491
9492             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9493       BUILD_INCLUDED_LIBINTL=yes
9494     fi
9495
9496
9497
9498
9499
9500         nls_cv_header_intl=
9501     nls_cv_header_libgt=
9502
9503         DATADIRNAME=share
9504
9505
9506         INSTOBJEXT=.mo
9507
9508
9509         GENCAT=gencat
9510
9511
9512         if test "$USE_INCLUDED_LIBINTL" = yes; then
9513       INTLOBJS="\$(GETTOBJS)"
9514     fi
9515
9516
9517         INTL_LIBTOOL_SUFFIX_PREFIX=
9518
9519
9520
9521     INTLLIBS="$LIBINTL"
9522
9523
9524
9525
9526
9527
9528
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9530 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9531 set x ${MAKE-make}
9532 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9533 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9534   $as_echo_n "(cached) " >&6
9535 else
9536   cat >conftest.make <<\_ACEOF
9537 SHELL = /bin/sh
9538 all:
9539         @echo '@@@%%%=$(MAKE)=@@@%%%'
9540 _ACEOF
9541 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9542 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9543   *@@@%%%=?*=@@@%%%*)
9544     eval ac_cv_prog_make_${ac_make}_set=yes;;
9545   *)
9546     eval ac_cv_prog_make_${ac_make}_set=no;;
9547 esac
9548 rm -f conftest.make
9549 fi
9550 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9552 $as_echo "yes" >&6; }
9553   SET_MAKE=
9554 else
9555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9557   SET_MAKE="MAKE=${MAKE-make}"
9558 fi
9559
9560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9561 $as_echo_n "checking for GNU make... " >&6; }
9562 if ${_cv_gnu_make_command+:} false; then :
9563   $as_echo_n "(cached) " >&6
9564 else
9565   _cv_gnu_make_command='' ;
9566                 for a in "$MAKE" make gmake gnumake ; do
9567                         if test -z "$a" ; then continue ; fi ;
9568                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9569                                 _cv_gnu_make_command=$a ;
9570                                 break;
9571                         fi
9572                 done ;
9573
9574 fi
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9576 $as_echo "$_cv_gnu_make_command" >&6; } ;
9577         if test  "x$_cv_gnu_make_command" != "x"  ; then
9578                 ifGNUmake='' ;
9579                 ifNotGNUmake='#' ;
9580         else
9581                 ifGNUmake='#' ;
9582                 ifNotGNUmake='' ;
9583                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9584 $as_echo "\"Not found\"" >&6; };
9585         fi
9586
9587
9588
9589 # Extract the first word of "ln", so it can be a program name with args.
9590 set dummy ln; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if ${ac_cv_path_LN+:} false; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   case $LN in
9597   [\\/]* | ?:[\\/]*)
9598   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9599   ;;
9600   *)
9601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9603 do
9604   IFS=$as_save_IFS
9605   test -z "$as_dir" && as_dir=.
9606     for ac_exec_ext in '' $ac_executable_extensions; do
9607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9608     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610     break 2
9611   fi
9612 done
9613   done
9614 IFS=$as_save_IFS
9615
9616   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9617   ;;
9618 esac
9619 fi
9620 LN=$ac_cv_path_LN
9621 if test -n "$LN"; then
9622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9623 $as_echo "$LN" >&6; }
9624 else
9625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9627 fi
9628
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9631 $as_echo_n "checking whether ln -s works... " >&6; }
9632 LN_S=$as_ln_s
9633 if test "$LN_S" = "ln -s"; then
9634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9635 $as_echo "yes" >&6; }
9636 else
9637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9638 $as_echo "no, using $LN_S" >&6; }
9639 fi
9640
9641 # Extract the first word of "mv", so it can be a program name with args.
9642 set dummy mv; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if ${ac_cv_path_MV+:} false; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   case $MV in
9649   [\\/]* | ?:[\\/]*)
9650   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9651   ;;
9652   *)
9653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9655 do
9656   IFS=$as_save_IFS
9657   test -z "$as_dir" && as_dir=.
9658     for ac_exec_ext in '' $ac_executable_extensions; do
9659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662     break 2
9663   fi
9664 done
9665   done
9666 IFS=$as_save_IFS
9667
9668   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9669   ;;
9670 esac
9671 fi
9672 MV=$ac_cv_path_MV
9673 if test -n "$MV"; then
9674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9675 $as_echo "$MV" >&6; }
9676 else
9677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678 $as_echo "no" >&6; }
9679 fi
9680
9681
9682 # Extract the first word of "cp", so it can be a program name with args.
9683 set dummy cp; ac_word=$2
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9685 $as_echo_n "checking for $ac_word... " >&6; }
9686 if ${ac_cv_path_CP+:} false; then :
9687   $as_echo_n "(cached) " >&6
9688 else
9689   case $CP in
9690   [\\/]* | ?:[\\/]*)
9691   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9692   ;;
9693   *)
9694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 for as_dir in $PATH
9696 do
9697   IFS=$as_save_IFS
9698   test -z "$as_dir" && as_dir=.
9699     for ac_exec_ext in '' $ac_executable_extensions; do
9700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703     break 2
9704   fi
9705 done
9706   done
9707 IFS=$as_save_IFS
9708
9709   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9710   ;;
9711 esac
9712 fi
9713 CP=$ac_cv_path_CP
9714 if test -n "$CP"; then
9715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9716 $as_echo "$CP" >&6; }
9717 else
9718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9720 fi
9721
9722
9723 # Extract the first word of "rm", so it can be a program name with args.
9724 set dummy rm; ac_word=$2
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726 $as_echo_n "checking for $ac_word... " >&6; }
9727 if ${ac_cv_path_RM+:} false; then :
9728   $as_echo_n "(cached) " >&6
9729 else
9730   case $RM in
9731   [\\/]* | ?:[\\/]*)
9732   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9733   ;;
9734   *)
9735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736 for as_dir in $PATH
9737 do
9738   IFS=$as_save_IFS
9739   test -z "$as_dir" && as_dir=.
9740     for ac_exec_ext in '' $ac_executable_extensions; do
9741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9742     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9744     break 2
9745   fi
9746 done
9747   done
9748 IFS=$as_save_IFS
9749
9750   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9751   ;;
9752 esac
9753 fi
9754 RM=$ac_cv_path_RM
9755 if test -n "$RM"; then
9756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9757 $as_echo "$RM" >&6; }
9758 else
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9761 fi
9762
9763
9764 # Extract the first word of "chmod", so it can be a program name with args.
9765 set dummy chmod; ac_word=$2
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767 $as_echo_n "checking for $ac_word... " >&6; }
9768 if ${ac_cv_path_CHMOD+:} false; then :
9769   $as_echo_n "(cached) " >&6
9770 else
9771   case $CHMOD in
9772   [\\/]* | ?:[\\/]*)
9773   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9774   ;;
9775   *)
9776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777 for as_dir in $PATH
9778 do
9779   IFS=$as_save_IFS
9780   test -z "$as_dir" && as_dir=.
9781     for ac_exec_ext in '' $ac_executable_extensions; do
9782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9785     break 2
9786   fi
9787 done
9788   done
9789 IFS=$as_save_IFS
9790
9791   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9792   ;;
9793 esac
9794 fi
9795 CHMOD=$ac_cv_path_CHMOD
9796 if test -n "$CHMOD"; then
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9798 $as_echo "$CHMOD" >&6; }
9799 else
9800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; }
9802 fi
9803
9804
9805 for ac_prog in gawk mawk nawk awk
9806 do
9807   # Extract the first word of "$ac_prog", so it can be a program name with args.
9808 set dummy $ac_prog; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if ${ac_cv_prog_AWK+:} false; then :
9812   $as_echo_n "(cached) " >&6
9813 else
9814   if test -n "$AWK"; then
9815   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9816 else
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9819 do
9820   IFS=$as_save_IFS
9821   test -z "$as_dir" && as_dir=.
9822     for ac_exec_ext in '' $ac_executable_extensions; do
9823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824     ac_cv_prog_AWK="$ac_prog"
9825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826     break 2
9827   fi
9828 done
9829   done
9830 IFS=$as_save_IFS
9831
9832 fi
9833 fi
9834 AWK=$ac_cv_prog_AWK
9835 if test -n "$AWK"; then
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9837 $as_echo "$AWK" >&6; }
9838 else
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9841 fi
9842
9843
9844   test -n "$AWK" && break
9845 done
9846
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9848 $as_echo_n "checking for egrep... " >&6; }
9849 if ${ac_cv_path_EGREP+:} false; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9853    then ac_cv_path_EGREP="$GREP -E"
9854    else
9855      if test -z "$EGREP"; then
9856   ac_path_EGREP_found=false
9857   # Loop through the user's path and test for each of PROGNAME-LIST
9858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9860 do
9861   IFS=$as_save_IFS
9862   test -z "$as_dir" && as_dir=.
9863     for ac_prog in egrep; do
9864     for ac_exec_ext in '' $ac_executable_extensions; do
9865       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9866       as_fn_executable_p "$ac_path_EGREP" || continue
9867 # Check for GNU ac_path_EGREP and select it if it is found.
9868   # Check for GNU $ac_path_EGREP
9869 case `"$ac_path_EGREP" --version 2>&1` in
9870 *GNU*)
9871   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9872 *)
9873   ac_count=0
9874   $as_echo_n 0123456789 >"conftest.in"
9875   while :
9876   do
9877     cat "conftest.in" "conftest.in" >"conftest.tmp"
9878     mv "conftest.tmp" "conftest.in"
9879     cp "conftest.in" "conftest.nl"
9880     $as_echo 'EGREP' >> "conftest.nl"
9881     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9882     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9883     as_fn_arith $ac_count + 1 && ac_count=$as_val
9884     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9885       # Best one so far, save it but keep looking for a better one
9886       ac_cv_path_EGREP="$ac_path_EGREP"
9887       ac_path_EGREP_max=$ac_count
9888     fi
9889     # 10*(2^10) chars as input seems more than enough
9890     test $ac_count -gt 10 && break
9891   done
9892   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9893 esac
9894
9895       $ac_path_EGREP_found && break 3
9896     done
9897   done
9898   done
9899 IFS=$as_save_IFS
9900   if test -z "$ac_cv_path_EGREP"; then
9901     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9902   fi
9903 else
9904   ac_cv_path_EGREP=$EGREP
9905 fi
9906
9907    fi
9908 fi
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9910 $as_echo "$ac_cv_path_EGREP" >&6; }
9911  EGREP="$ac_cv_path_EGREP"
9912
9913
9914 # Extract the first word of "sed", so it can be a program name with args.
9915 set dummy sed; ac_word=$2
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9917 $as_echo_n "checking for $ac_word... " >&6; }
9918 if ${ac_cv_path_SED+:} false; then :
9919   $as_echo_n "(cached) " >&6
9920 else
9921   case $SED in
9922   [\\/]* | ?:[\\/]*)
9923   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9924   ;;
9925   *)
9926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 for as_dir in $PATH
9928 do
9929   IFS=$as_save_IFS
9930   test -z "$as_dir" && as_dir=.
9931     for ac_exec_ext in '' $ac_executable_extensions; do
9932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935     break 2
9936   fi
9937 done
9938   done
9939 IFS=$as_save_IFS
9940
9941   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9942   ;;
9943 esac
9944 fi
9945 SED=$ac_cv_path_SED
9946 if test -n "$SED"; then
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9948 $as_echo "$SED" >&6; }
9949 else
9950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9952 fi
9953
9954
9955 # Extract the first word of "perl", so it can be a program name with args.
9956 set dummy perl; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if ${ac_cv_path_PERL+:} false; then :
9960   $as_echo_n "(cached) " >&6
9961 else
9962   case $PERL in
9963   [\\/]* | ?:[\\/]*)
9964   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9965   ;;
9966   *)
9967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9969 do
9970   IFS=$as_save_IFS
9971   test -z "$as_dir" && as_dir=.
9972     for ac_exec_ext in '' $ac_executable_extensions; do
9973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976     break 2
9977   fi
9978 done
9979   done
9980 IFS=$as_save_IFS
9981
9982   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9983   ;;
9984 esac
9985 fi
9986 PERL=$ac_cv_path_PERL
9987 if test -n "$PERL"; then
9988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9989 $as_echo "$PERL" >&6; }
9990 else
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9993 fi
9994
9995
9996 # Extract the first word of "ldconfig", so it can be a program name with args.
9997 set dummy ldconfig; ac_word=$2
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999 $as_echo_n "checking for $ac_word... " >&6; }
10000 if ${ac_cv_path_LDCONFIG+:} false; then :
10001   $as_echo_n "(cached) " >&6
10002 else
10003   case $LDCONFIG in
10004   [\\/]* | ?:[\\/]*)
10005   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10006   ;;
10007   *)
10008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10010 do
10011   IFS=$as_save_IFS
10012   test -z "$as_dir" && as_dir=.
10013     for ac_exec_ext in '' $ac_executable_extensions; do
10014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10015     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017     break 2
10018   fi
10019 done
10020   done
10021 IFS=$as_save_IFS
10022
10023   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10024   ;;
10025 esac
10026 fi
10027 LDCONFIG=$ac_cv_path_LDCONFIG
10028 if test -n "$LDCONFIG"; then
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10030 $as_echo "$LDCONFIG" >&6; }
10031 else
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10034 fi
10035
10036
10037 if test -n "$ac_tool_prefix"; then
10038   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10039 set dummy ${ac_tool_prefix}ar; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if ${ac_cv_prog_AR+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   if test -n "$AR"; then
10046   ac_cv_prog_AR="$AR" # Let the user override the test.
10047 else
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10050 do
10051   IFS=$as_save_IFS
10052   test -z "$as_dir" && as_dir=.
10053     for ac_exec_ext in '' $ac_executable_extensions; do
10054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10055     ac_cv_prog_AR="${ac_tool_prefix}ar"
10056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057     break 2
10058   fi
10059 done
10060   done
10061 IFS=$as_save_IFS
10062
10063 fi
10064 fi
10065 AR=$ac_cv_prog_AR
10066 if test -n "$AR"; then
10067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10068 $as_echo "$AR" >&6; }
10069 else
10070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10072 fi
10073
10074
10075 fi
10076 if test -z "$ac_cv_prog_AR"; then
10077   ac_ct_AR=$AR
10078   # Extract the first word of "ar", so it can be a program name with args.
10079 set dummy ar; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   if test -n "$ac_ct_AR"; then
10086   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10087 else
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10090 do
10091   IFS=$as_save_IFS
10092   test -z "$as_dir" && as_dir=.
10093     for ac_exec_ext in '' $ac_executable_extensions; do
10094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095     ac_cv_prog_ac_ct_AR="ar"
10096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097     break 2
10098   fi
10099 done
10100   done
10101 IFS=$as_save_IFS
10102
10103 fi
10104 fi
10105 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10106 if test -n "$ac_ct_AR"; then
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10108 $as_echo "$ac_ct_AR" >&6; }
10109 else
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112 fi
10113
10114   if test "x$ac_ct_AR" = x; then
10115     AR="ar"
10116   else
10117     case $cross_compiling:$ac_tool_warned in
10118 yes:)
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121 ac_tool_warned=yes ;;
10122 esac
10123     AR=$ac_ct_AR
10124   fi
10125 else
10126   AR="$ac_cv_prog_AR"
10127 fi
10128
10129 if test -n "$ac_tool_prefix"; then
10130   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133 $as_echo_n "checking for $ac_word... " >&6; }
10134 if ${ac_cv_prog_RANLIB+:} false; then :
10135   $as_echo_n "(cached) " >&6
10136 else
10137   if test -n "$RANLIB"; then
10138   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10139 else
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH
10142 do
10143   IFS=$as_save_IFS
10144   test -z "$as_dir" && as_dir=.
10145     for ac_exec_ext in '' $ac_executable_extensions; do
10146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10147     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10149     break 2
10150   fi
10151 done
10152   done
10153 IFS=$as_save_IFS
10154
10155 fi
10156 fi
10157 RANLIB=$ac_cv_prog_RANLIB
10158 if test -n "$RANLIB"; then
10159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10160 $as_echo "$RANLIB" >&6; }
10161 else
10162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }
10164 fi
10165
10166
10167 fi
10168 if test -z "$ac_cv_prog_RANLIB"; then
10169   ac_ct_RANLIB=$RANLIB
10170   # Extract the first word of "ranlib", so it can be a program name with args.
10171 set dummy ranlib; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10175   $as_echo_n "(cached) " >&6
10176 else
10177   if test -n "$ac_ct_RANLIB"; then
10178   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10179 else
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183   IFS=$as_save_IFS
10184   test -z "$as_dir" && as_dir=.
10185     for ac_exec_ext in '' $ac_executable_extensions; do
10186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10187     ac_cv_prog_ac_ct_RANLIB="ranlib"
10188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189     break 2
10190   fi
10191 done
10192   done
10193 IFS=$as_save_IFS
10194
10195 fi
10196 fi
10197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10198 if test -n "$ac_ct_RANLIB"; then
10199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10200 $as_echo "$ac_ct_RANLIB" >&6; }
10201 else
10202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10204 fi
10205
10206   if test "x$ac_ct_RANLIB" = x; then
10207     RANLIB=":"
10208   else
10209     case $cross_compiling:$ac_tool_warned in
10210 yes:)
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10213 ac_tool_warned=yes ;;
10214 esac
10215     RANLIB=$ac_ct_RANLIB
10216   fi
10217 else
10218   RANLIB="$ac_cv_prog_RANLIB"
10219 fi
10220
10221 if test -n "$ac_tool_prefix"; then
10222   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10223 set dummy ${ac_tool_prefix}strip; ac_word=$2
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10225 $as_echo_n "checking for $ac_word... " >&6; }
10226 if ${ac_cv_prog_STRIP+:} false; then :
10227   $as_echo_n "(cached) " >&6
10228 else
10229   if test -n "$STRIP"; then
10230   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10231 else
10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233 for as_dir in $PATH
10234 do
10235   IFS=$as_save_IFS
10236   test -z "$as_dir" && as_dir=.
10237     for ac_exec_ext in '' $ac_executable_extensions; do
10238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10239     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241     break 2
10242   fi
10243 done
10244   done
10245 IFS=$as_save_IFS
10246
10247 fi
10248 fi
10249 STRIP=$ac_cv_prog_STRIP
10250 if test -n "$STRIP"; then
10251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10252 $as_echo "$STRIP" >&6; }
10253 else
10254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255 $as_echo "no" >&6; }
10256 fi
10257
10258
10259 fi
10260 if test -z "$ac_cv_prog_STRIP"; then
10261   ac_ct_STRIP=$STRIP
10262   # Extract the first word of "strip", so it can be a program name with args.
10263 set dummy strip; ac_word=$2
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265 $as_echo_n "checking for $ac_word... " >&6; }
10266 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10267   $as_echo_n "(cached) " >&6
10268 else
10269   if test -n "$ac_ct_STRIP"; then
10270   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10271 else
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10274 do
10275   IFS=$as_save_IFS
10276   test -z "$as_dir" && as_dir=.
10277     for ac_exec_ext in '' $ac_executable_extensions; do
10278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10279     ac_cv_prog_ac_ct_STRIP="strip"
10280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281     break 2
10282   fi
10283 done
10284   done
10285 IFS=$as_save_IFS
10286
10287 fi
10288 fi
10289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10290 if test -n "$ac_ct_STRIP"; then
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10292 $as_echo "$ac_ct_STRIP" >&6; }
10293 else
10294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10296 fi
10297
10298   if test "x$ac_ct_STRIP" = x; then
10299     STRIP=":"
10300   else
10301     case $cross_compiling:$ac_tool_warned in
10302 yes:)
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10305 ac_tool_warned=yes ;;
10306 esac
10307     STRIP=$ac_ct_STRIP
10308   fi
10309 else
10310   STRIP="$ac_cv_prog_STRIP"
10311 fi
10312
10313 # Extract the first word of "makeinfo", so it can be a program name with args.
10314 set dummy makeinfo; ac_word=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if ${ac_cv_prog_MAKEINFO+:} false; then :
10318   $as_echo_n "(cached) " >&6
10319 else
10320   if test -n "$MAKEINFO"; then
10321   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10322 else
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10325 do
10326   IFS=$as_save_IFS
10327   test -z "$as_dir" && as_dir=.
10328     for ac_exec_ext in '' $ac_executable_extensions; do
10329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10330     ac_cv_prog_MAKEINFO="makeinfo"
10331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332     break 2
10333   fi
10334 done
10335   done
10336 IFS=$as_save_IFS
10337
10338 fi
10339 fi
10340 MAKEINFO=$ac_cv_prog_MAKEINFO
10341 if test -n "$MAKEINFO"; then
10342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10343 $as_echo "$MAKEINFO" >&6; }
10344 else
10345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10347 fi
10348
10349
10350 if test "_$MAKEINFO" = "_"; then
10351     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10352 else
10353     case "$MAKEINFO" in
10354       */missing.*)
10355         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10356 *** Makeinfo is missing. Info documentation will not be built." >&5
10357 $as_echo "$as_me: WARNING:
10358 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10359         ;;
10360       *)
10361         ;;
10362     esac
10363 fi
10364
10365
10366 # See if we need a separate native compiler.
10367 if test $cross_compiling = no; then
10368   BUILD_CC="$CC"
10369
10370 else
10371   for ac_prog in gcc cc
10372 do
10373   # Extract the first word of "$ac_prog", so it can be a program name with args.
10374 set dummy $ac_prog; ac_word=$2
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10376 $as_echo_n "checking for $ac_word... " >&6; }
10377 if ${ac_cv_prog_BUILD_CC+:} false; then :
10378   $as_echo_n "(cached) " >&6
10379 else
10380   if test -n "$BUILD_CC"; then
10381   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10382 else
10383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384 for as_dir in $PATH
10385 do
10386   IFS=$as_save_IFS
10387   test -z "$as_dir" && as_dir=.
10388     for ac_exec_ext in '' $ac_executable_extensions; do
10389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10390     ac_cv_prog_BUILD_CC="$ac_prog"
10391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10392     break 2
10393   fi
10394 done
10395   done
10396 IFS=$as_save_IFS
10397
10398 fi
10399 fi
10400 BUILD_CC=$ac_cv_prog_BUILD_CC
10401 if test -n "$BUILD_CC"; then
10402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10403 $as_echo "$BUILD_CC" >&6; }
10404 else
10405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10407 fi
10408
10409
10410   test -n "$BUILD_CC" && break
10411 done
10412
10413 fi
10414 for ac_header in        attr/xattr.h    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         linux/falloc.h  linux/fd.h      linux/major.h   linux/loop.h    net/if_dl.h     netinet/in.h    sys/disklabel.h         sys/disk.h      sys/file.h      sys/ioctl.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
10415 do :
10416   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10417 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10418 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10419   cat >>confdefs.h <<_ACEOF
10420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10421 _ACEOF
10422
10423 fi
10424
10425 done
10426
10427 for ac_header in net/if.h
10428 do :
10429   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10430 #if HAVE_SYS_TYPES_H
10431 #include <sys/types.h>
10432 #endif
10433 #if HAVE_SYS_SOCKET
10434 #include <sys/socket.h>
10435 #endif
10436
10437 "
10438 if test "x$ac_cv_header_net_if_h" = xyes; then :
10439   cat >>confdefs.h <<_ACEOF
10440 #define HAVE_NET_IF_H 1
10441 _ACEOF
10442
10443 fi
10444
10445 done
10446
10447 if test x"$E2SCAN_CMT" == x; then
10448 for ac_header in sqlite3.h
10449 do :
10450   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
10451 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
10452   cat >>confdefs.h <<_ACEOF
10453 #define HAVE_SQLITE3_H 1
10454 _ACEOF
10455
10456 fi
10457
10458 done
10459
10460 fi
10461 for ac_func in vprintf
10462 do :
10463   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10464 if test "x$ac_cv_func_vprintf" = xyes; then :
10465   cat >>confdefs.h <<_ACEOF
10466 #define HAVE_VPRINTF 1
10467 _ACEOF
10468
10469 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10470 if test "x$ac_cv_func__doprnt" = xyes; then :
10471
10472 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10473
10474 fi
10475
10476 fi
10477 done
10478
10479
10480 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10481 "
10482 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10483
10484 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10485
10486 fi
10487
10488 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10489 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10490
10491 cat >>confdefs.h <<_ACEOF
10492 #define HAVE_STRUCT_STAT_ST_ATIM 1
10493 _ACEOF
10494
10495
10496 fi
10497
10498 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10499 "
10500 if test "x$ac_cv_type_ssize_t" = xyes; then :
10501
10502 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10503
10504 fi
10505
10506 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10507 "
10508 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10509
10510 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10511
10512 fi
10513
10514 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10515                  #define _LARGEFILE64_SOURCE
10516                  #include <unistd.h>
10517 "
10518 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10519
10520 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10521
10522 fi
10523
10524 # The cast to long int works around a bug in the HP C Compiler
10525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10527 # This bug is HP SR number 8606223364.
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10529 $as_echo_n "checking size of short... " >&6; }
10530 if ${ac_cv_sizeof_short+:} false; then :
10531   $as_echo_n "(cached) " >&6
10532 else
10533   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10534
10535 else
10536   if test "$ac_cv_type_short" = yes; then
10537      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10539 as_fn_error 77 "cannot compute sizeof (short)
10540 See \`config.log' for more details" "$LINENO" 5; }
10541    else
10542      ac_cv_sizeof_short=0
10543    fi
10544 fi
10545
10546 fi
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10548 $as_echo "$ac_cv_sizeof_short" >&6; }
10549
10550
10551
10552 cat >>confdefs.h <<_ACEOF
10553 #define SIZEOF_SHORT $ac_cv_sizeof_short
10554 _ACEOF
10555
10556
10557 # The cast to long int works around a bug in the HP C Compiler
10558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10560 # This bug is HP SR number 8606223364.
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10562 $as_echo_n "checking size of int... " >&6; }
10563 if ${ac_cv_sizeof_int+:} false; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10567
10568 else
10569   if test "$ac_cv_type_int" = yes; then
10570      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10572 as_fn_error 77 "cannot compute sizeof (int)
10573 See \`config.log' for more details" "$LINENO" 5; }
10574    else
10575      ac_cv_sizeof_int=0
10576    fi
10577 fi
10578
10579 fi
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10581 $as_echo "$ac_cv_sizeof_int" >&6; }
10582
10583
10584
10585 cat >>confdefs.h <<_ACEOF
10586 #define SIZEOF_INT $ac_cv_sizeof_int
10587 _ACEOF
10588
10589
10590 # The cast to long int works around a bug in the HP C Compiler
10591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10593 # This bug is HP SR number 8606223364.
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10595 $as_echo_n "checking size of long... " >&6; }
10596 if ${ac_cv_sizeof_long+:} false; then :
10597   $as_echo_n "(cached) " >&6
10598 else
10599   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10600
10601 else
10602   if test "$ac_cv_type_long" = yes; then
10603      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10605 as_fn_error 77 "cannot compute sizeof (long)
10606 See \`config.log' for more details" "$LINENO" 5; }
10607    else
10608      ac_cv_sizeof_long=0
10609    fi
10610 fi
10611
10612 fi
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10614 $as_echo "$ac_cv_sizeof_long" >&6; }
10615
10616
10617
10618 cat >>confdefs.h <<_ACEOF
10619 #define SIZEOF_LONG $ac_cv_sizeof_long
10620 _ACEOF
10621
10622
10623 # The cast to long int works around a bug in the HP C Compiler
10624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10626 # This bug is HP SR number 8606223364.
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10628 $as_echo_n "checking size of long long... " >&6; }
10629 if ${ac_cv_sizeof_long_long+:} false; then :
10630   $as_echo_n "(cached) " >&6
10631 else
10632   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10633
10634 else
10635   if test "$ac_cv_type_long_long" = yes; then
10636      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10638 as_fn_error 77 "cannot compute sizeof (long long)
10639 See \`config.log' for more details" "$LINENO" 5; }
10640    else
10641      ac_cv_sizeof_long_long=0
10642    fi
10643 fi
10644
10645 fi
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10647 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10648
10649
10650
10651 cat >>confdefs.h <<_ACEOF
10652 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10653 _ACEOF
10654
10655
10656 # The cast to long int works around a bug in the HP C Compiler
10657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10659 # This bug is HP SR number 8606223364.
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10661 $as_echo_n "checking size of off_t... " >&6; }
10662 if ${ac_cv_sizeof_off_t+:} false; then :
10663   $as_echo_n "(cached) " >&6
10664 else
10665   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10666
10667 else
10668   if test "$ac_cv_type_off_t" = yes; then
10669      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10671 as_fn_error 77 "cannot compute sizeof (off_t)
10672 See \`config.log' for more details" "$LINENO" 5; }
10673    else
10674      ac_cv_sizeof_off_t=0
10675    fi
10676 fi
10677
10678 fi
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10680 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10681
10682
10683
10684 cat >>confdefs.h <<_ACEOF
10685 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10686 _ACEOF
10687
10688
10689 SIZEOF_SHORT=$ac_cv_sizeof_short
10690 SIZEOF_INT=$ac_cv_sizeof_int
10691 SIZEOF_LONG=$ac_cv_sizeof_long
10692 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10693 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10694
10695
10696
10697
10698
10699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10700 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10701 if ${ac_cv_c_bigendian+:} false; then :
10702   $as_echo_n "(cached) " >&6
10703 else
10704   ac_cv_c_bigendian=unknown
10705     # See if we're dealing with a universal compiler.
10706     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h.  */
10708 #ifndef __APPLE_CC__
10709                not a universal capable compiler
10710              #endif
10711              typedef int dummy;
10712
10713 _ACEOF
10714 if ac_fn_c_try_compile "$LINENO"; then :
10715
10716         # Check for potential -arch flags.  It is not universal unless
10717         # there are at least two -arch flags with different values.
10718         ac_arch=
10719         ac_prev=
10720         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10721          if test -n "$ac_prev"; then
10722            case $ac_word in
10723              i?86 | x86_64 | ppc | ppc64)
10724                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10725                  ac_arch=$ac_word
10726                else
10727                  ac_cv_c_bigendian=universal
10728                  break
10729                fi
10730                ;;
10731            esac
10732            ac_prev=
10733          elif test "x$ac_word" = "x-arch"; then
10734            ac_prev=arch
10735          fi
10736        done
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739     if test $ac_cv_c_bigendian = unknown; then
10740       # See if sys/param.h defines the BYTE_ORDER macro.
10741       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h.  */
10743 #include <sys/types.h>
10744              #include <sys/param.h>
10745
10746 int
10747 main ()
10748 {
10749 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10750                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10751                      && LITTLE_ENDIAN)
10752               bogus endian macros
10753              #endif
10754
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 if ac_fn_c_try_compile "$LINENO"; then :
10760   # It does; now see whether it defined to BIG_ENDIAN or not.
10761          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h.  */
10763 #include <sys/types.h>
10764                 #include <sys/param.h>
10765
10766 int
10767 main ()
10768 {
10769 #if BYTE_ORDER != BIG_ENDIAN
10770                  not big endian
10771                 #endif
10772
10773   ;
10774   return 0;
10775 }
10776 _ACEOF
10777 if ac_fn_c_try_compile "$LINENO"; then :
10778   ac_cv_c_bigendian=yes
10779 else
10780   ac_cv_c_bigendian=no
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783 fi
10784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10785     fi
10786     if test $ac_cv_c_bigendian = unknown; then
10787       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10788       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h.  */
10790 #include <limits.h>
10791
10792 int
10793 main ()
10794 {
10795 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10796               bogus endian macros
10797              #endif
10798
10799   ;
10800   return 0;
10801 }
10802 _ACEOF
10803 if ac_fn_c_try_compile "$LINENO"; then :
10804   # It does; now see whether it defined to _BIG_ENDIAN or not.
10805          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h.  */
10807 #include <limits.h>
10808
10809 int
10810 main ()
10811 {
10812 #ifndef _BIG_ENDIAN
10813                  not big endian
10814                 #endif
10815
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 if ac_fn_c_try_compile "$LINENO"; then :
10821   ac_cv_c_bigendian=yes
10822 else
10823   ac_cv_c_bigendian=no
10824 fi
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826 fi
10827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828     fi
10829     if test $ac_cv_c_bigendian = unknown; then
10830       # Compile a test program.
10831       if test "$cross_compiling" = yes; then :
10832   # Try to guess by grepping values from an object file.
10833          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h.  */
10835 short int ascii_mm[] =
10836                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10837                 short int ascii_ii[] =
10838                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10839                 int use_ascii (int i) {
10840                   return ascii_mm[i] + ascii_ii[i];
10841                 }
10842                 short int ebcdic_ii[] =
10843                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10844                 short int ebcdic_mm[] =
10845                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10846                 int use_ebcdic (int i) {
10847                   return ebcdic_mm[i] + ebcdic_ii[i];
10848                 }
10849                 extern int foo;
10850
10851 int
10852 main ()
10853 {
10854 return use_ascii (foo) == use_ebcdic (foo);
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 if ac_fn_c_try_compile "$LINENO"; then :
10860   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10861               ac_cv_c_bigendian=yes
10862             fi
10863             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10864               if test "$ac_cv_c_bigendian" = unknown; then
10865                 ac_cv_c_bigendian=no
10866               else
10867                 # finding both strings is unlikely to happen, but who knows?
10868                 ac_cv_c_bigendian=unknown
10869               fi
10870             fi
10871 fi
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 else
10874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h.  */
10876 $ac_includes_default
10877 int
10878 main ()
10879 {
10880
10881              /* Are we little or big endian?  From Harbison&Steele.  */
10882              union
10883              {
10884                long int l;
10885                char c[sizeof (long int)];
10886              } u;
10887              u.l = 1;
10888              return u.c[sizeof (long int) - 1] == 1;
10889
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_run "$LINENO"; then :
10895   ac_cv_c_bigendian=no
10896 else
10897   ac_cv_c_bigendian=yes
10898 fi
10899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10900   conftest.$ac_objext conftest.beam conftest.$ac_ext
10901 fi
10902
10903     fi
10904 fi
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10906 $as_echo "$ac_cv_c_bigendian" >&6; }
10907  case $ac_cv_c_bigendian in #(
10908    yes)
10909      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10910 ;; #(
10911    no)
10912       ;; #(
10913    universal)
10914
10915 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10916
10917      ;; #(
10918    *)
10919      as_fn_error $? "unknown endianness
10920  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10921  esac
10922
10923 if test $cross_compiling = no; then
10924   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10925 else
10926   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10927 fi
10928 ASM_TYPES_HEADER=./asm_types.h
10929
10930 echo "/* These defines are needed for the public ext2fs.h header file */" \
10931      > public_config.h
10932 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10933   uniq tmp_config.$$ >> public_config.h
10934 else
10935   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10936 fi
10937 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10938   uniq tmp_config.$$ >> public_config.h
10939 else
10940   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10941 fi
10942 rm -f tmp_config.$$
10943 PUBLIC_CONFIG_HEADER=./public_config.h
10944
10945 for ac_header in inttypes.h
10946 do :
10947   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10948 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10949   cat >>confdefs.h <<_ACEOF
10950 #define HAVE_INTTYPES_H 1
10951 _ACEOF
10952
10953 fi
10954
10955 done
10956
10957 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10958 if test "x$ac_cv_type_intptr_t" = xyes; then :
10959
10960 cat >>confdefs.h <<_ACEOF
10961 #define HAVE_INTPTR_T 1
10962 _ACEOF
10963
10964
10965 fi
10966
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10968 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10969 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10970   $as_echo_n "(cached) " >&6
10971 else
10972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h.  */
10974 #include <sys/stat.h>
10975 int
10976 main ()
10977 {
10978 struct stat stat; stat.st_flags = 0;
10979   ;
10980   return 0;
10981 }
10982 _ACEOF
10983 if ac_fn_c_try_compile "$LINENO"; then :
10984   e2fsprogs_cv_struct_st_flags=yes
10985 else
10986   e2fsprogs_cv_struct_st_flags=no
10987 fi
10988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989 fi
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10992 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10993 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10995 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10996   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10997   $as_echo_n "(cached) " >&6
10998 else
10999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h.  */
11001 #include <sys/stat.h>
11002 int
11003 main ()
11004 {
11005 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11006   ;
11007   return 0;
11008 }
11009 _ACEOF
11010 if ac_fn_c_try_compile "$LINENO"; then :
11011   e2fsprogs_cv_struct_st_flags_immut=yes
11012 else
11013   e2fsprogs_cv_struct_st_flags_immut=no
11014 fi
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 fi
11017
11018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11019 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11020   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11021
11022 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11023
11024   fi
11025 fi
11026 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11027          #include <sys/socket.h>
11028 "
11029 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11030
11031 cat >>confdefs.h <<_ACEOF
11032 #define HAVE_SA_LEN 1
11033 _ACEOF
11034
11035 fi
11036
11037 if test -n "$BLKID_CMT"; then
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11039 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11040 if ${ac_cv_search_blkid_probe_all+:} false; then :
11041   $as_echo_n "(cached) " >&6
11042 else
11043   ac_func_search_save_LIBS=$LIBS
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h.  */
11046
11047 /* Override any GCC internal prototype to avoid an error.
11048    Use char because int might match the return type of a GCC
11049    builtin and then its argument prototype would still apply.  */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 char blkid_probe_all ();
11054 int
11055 main ()
11056 {
11057 return blkid_probe_all ();
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 for ac_lib in '' blkid; do
11063   if test -z "$ac_lib"; then
11064     ac_res="none required"
11065   else
11066     ac_res=-l$ac_lib
11067     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11068   fi
11069   if ac_fn_c_try_link "$LINENO"; then :
11070   ac_cv_search_blkid_probe_all=$ac_res
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext \
11073     conftest$ac_exeext
11074   if ${ac_cv_search_blkid_probe_all+:} false; then :
11075   break
11076 fi
11077 done
11078 if ${ac_cv_search_blkid_probe_all+:} false; then :
11079
11080 else
11081   ac_cv_search_blkid_probe_all=no
11082 fi
11083 rm conftest.$ac_ext
11084 LIBS=$ac_func_search_save_LIBS
11085 fi
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11087 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11088 ac_res=$ac_cv_search_blkid_probe_all
11089 if test "$ac_res" != no; then :
11090   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11091
11092 fi
11093
11094 fi
11095 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        blkid_probe_enable_partitions   chflags         fadvise64       fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     futimes         getcwd  getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         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
11096 do :
11097   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11099 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11100   cat >>confdefs.h <<_ACEOF
11101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11102 _ACEOF
11103
11104 fi
11105 done
11106
11107 SOCKET_LIB=''
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11109 $as_echo_n "checking for socket in -lsocket... " >&6; }
11110 if ${ac_cv_lib_socket_socket+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   ac_check_lib_save_LIBS=$LIBS
11114 LIBS="-lsocket  $LIBS"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h.  */
11117
11118 /* Override any GCC internal prototype to avoid an error.
11119    Use char because int might match the return type of a GCC
11120    builtin and then its argument prototype would still apply.  */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char socket ();
11125 int
11126 main ()
11127 {
11128 return socket ();
11129   ;
11130   return 0;
11131 }
11132 _ACEOF
11133 if ac_fn_c_try_link "$LINENO"; then :
11134   ac_cv_lib_socket_socket=yes
11135 else
11136   ac_cv_lib_socket_socket=no
11137 fi
11138 rm -f core conftest.err conftest.$ac_objext \
11139     conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11141 fi
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11143 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11144 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11145   SOCKET_LIB=-lsocket
11146 fi
11147
11148
11149
11150 # Check whether --with-sqlite3 was given.
11151 if test "${with_sqlite3+set}" = set; then :
11152   withval=$with_sqlite3; SQLITE3_LIBS="-L$with_sqlite3"
11153 fi
11154
11155
11156 if test x"$E2SCAN_CMT" == x; then
11157
11158 CFLAGS_OLD=$CFLAGS
11159 SQLITE3_LIB=''
11160 CFLAGS="$CFLAGS_OLD $SQLITE3_LIBS -static -pthread"
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
11162 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
11163 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
11164   $as_echo_n "(cached) " >&6
11165 else
11166   ac_check_lib_save_LIBS=$LIBS
11167 LIBS="-lsqlite3  $LIBS"
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h.  */
11170
11171 /* Override any GCC internal prototype to avoid an error.
11172    Use char because int might match the return type of a GCC
11173    builtin and then its argument prototype would still apply.  */
11174 #ifdef __cplusplus
11175 extern "C"
11176 #endif
11177 char sqlite3_open ();
11178 int
11179 main ()
11180 {
11181 return sqlite3_open ();
11182   ;
11183   return 0;
11184 }
11185 _ACEOF
11186 if ac_fn_c_try_link "$LINENO"; then :
11187   ac_cv_lib_sqlite3_sqlite3_open=yes
11188 else
11189   ac_cv_lib_sqlite3_sqlite3_open=no
11190 fi
11191 rm -f core conftest.err conftest.$ac_objext \
11192     conftest$ac_exeext conftest.$ac_ext
11193 LIBS=$ac_check_lib_save_LIBS
11194 fi
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
11196 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
11197 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
11198
11199         SQLITE3_LIB="$SQLITE3_LIBS -static -pthread -lsqlite3"
11200
11201 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
11202
11203
11204 fi
11205
11206
11207 if test x"$SQLITE3_LIB" == x; then
11208         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no static sqlite3 - looking for dynamic one" >&5
11209 $as_echo "$as_me: WARNING: no static sqlite3 - looking for dynamic one" >&2;}
11210         CFLAGS="$CFLAGS_OLD $SQLITE3_LIBS -pthread"
11211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
11212 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
11213 if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then :
11214   $as_echo_n "(cached) " >&6
11215 else
11216   ac_check_lib_save_LIBS=$LIBS
11217 LIBS="-lsqlite3  $LIBS"
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h.  */
11220
11221 /* Override any GCC internal prototype to avoid an error.
11222    Use char because int might match the return type of a GCC
11223    builtin and then its argument prototype would still apply.  */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char sqlite3_close ();
11228 int
11229 main ()
11230 {
11231 return sqlite3_close ();
11232   ;
11233   return 0;
11234 }
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237   ac_cv_lib_sqlite3_sqlite3_close=yes
11238 else
11239   ac_cv_lib_sqlite3_sqlite3_close=no
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext \
11242     conftest$ac_exeext conftest.$ac_ext
11243 LIBS=$ac_check_lib_save_LIBS
11244 fi
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
11246 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
11247 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then :
11248
11249                 SQLITE3_LIB="$SQLITE3_LIBS -pthread -lsqlite3"
11250
11251 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
11252
11253
11254 fi
11255
11256 fi
11257
11258
11259 CFLAGS=$CFLAGS_OLD
11260
11261 if test x"$SQLITE3_LIB" == x; then
11262         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no sqlite3 - e2scan will not support database based scanning" >&5
11263 $as_echo "$as_me: WARNING: no sqlite3 - e2scan will not support database based scanning" >&2;}
11264 fi
11265
11266 fi
11267
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11269 $as_echo_n "checking for optreset... " >&6; }
11270 if ${ac_cv_have_optreset+:} false; then :
11271   $as_echo_n "(cached) " >&6
11272 else
11273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h.  */
11275 #include <unistd.h>
11276
11277 _ACEOF
11278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11279   $EGREP "optreset" >/dev/null 2>&1; then :
11280   ac_cv_have_optreset=yes
11281 else
11282   ac_cv_have_optreset=no
11283 fi
11284 rm -f conftest*
11285
11286 fi
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11288 $as_echo "$ac_cv_have_optreset" >&6; }
11289 if test $ac_cv_have_optreset = yes; then
11290
11291 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11292
11293 fi
11294
11295 SEM_INIT_LIB=''
11296 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11297 if test "x$ac_cv_func_sem_init" = xyes; then :
11298
11299 else
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11301 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11302 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   ac_check_lib_save_LIBS=$LIBS
11306 LIBS="-lpthread  $LIBS"
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h.  */
11309
11310 /* Override any GCC internal prototype to avoid an error.
11311    Use char because int might match the return type of a GCC
11312    builtin and then its argument prototype would still apply.  */
11313 #ifdef __cplusplus
11314 extern "C"
11315 #endif
11316 char sem_init ();
11317 int
11318 main ()
11319 {
11320 return sem_init ();
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326   ac_cv_lib_pthread_sem_init=yes
11327 else
11328   ac_cv_lib_pthread_sem_init=no
11329 fi
11330 rm -f core conftest.err conftest.$ac_objext \
11331     conftest$ac_exeext conftest.$ac_ext
11332 LIBS=$ac_check_lib_save_LIBS
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11335 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11336 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11337   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11338
11339         SEM_INIT_LIB=-lpthread
11340 else
11341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11342 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11343 if ${ac_cv_lib_rt_sem_init+:} false; then :
11344   $as_echo_n "(cached) " >&6
11345 else
11346   ac_check_lib_save_LIBS=$LIBS
11347 LIBS="-lrt  $LIBS"
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h.  */
11350
11351 /* Override any GCC internal prototype to avoid an error.
11352    Use char because int might match the return type of a GCC
11353    builtin and then its argument prototype would still apply.  */
11354 #ifdef __cplusplus
11355 extern "C"
11356 #endif
11357 char sem_init ();
11358 int
11359 main ()
11360 {
11361 return sem_init ();
11362   ;
11363   return 0;
11364 }
11365 _ACEOF
11366 if ac_fn_c_try_link "$LINENO"; then :
11367   ac_cv_lib_rt_sem_init=yes
11368 else
11369   ac_cv_lib_rt_sem_init=no
11370 fi
11371 rm -f core conftest.err conftest.$ac_objext \
11372     conftest$ac_exeext conftest.$ac_ext
11373 LIBS=$ac_check_lib_save_LIBS
11374 fi
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11376 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11377 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11378   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11379
11380         SEM_INIT_LIB=-lrt
11381 else
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11383 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11384 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11385   $as_echo_n "(cached) " >&6
11386 else
11387   ac_check_lib_save_LIBS=$LIBS
11388 LIBS="-lposix4  $LIBS"
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h.  */
11391
11392 /* Override any GCC internal prototype to avoid an error.
11393    Use char because int might match the return type of a GCC
11394    builtin and then its argument prototype would still apply.  */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char sem_init ();
11399 int
11400 main ()
11401 {
11402 return sem_init ();
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408   ac_cv_lib_posix4_sem_init=yes
11409 else
11410   ac_cv_lib_posix4_sem_init=no
11411 fi
11412 rm -f core conftest.err conftest.$ac_objext \
11413     conftest$ac_exeext conftest.$ac_ext
11414 LIBS=$ac_check_lib_save_LIBS
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11417 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11418 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11419   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11420
11421         SEM_INIT_LIB=-lposix4
11422 fi
11423
11424 fi
11425
11426 fi
11427
11428 fi
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11431 $as_echo_n "checking for unified diff option... " >&6; }
11432 if diff -u $0 $0 > /dev/null 2>&1 ; then
11433    UNI_DIFF_OPTS=-u
11434 else
11435    UNI_DIFF_OPTS=-c
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11438 $as_echo "$UNI_DIFF_OPTS" >&6; }
11439
11440 case "$host_os" in
11441 linux*)
11442
11443 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11444
11445         ;;
11446 esac
11447 LINUX_CMT="#"
11448 CYGWIN_CMT="#"
11449 UNIX_CMT=
11450 case "$host_os" in
11451 linux*)
11452         LINUX_CMT=
11453         ;;
11454 cygwin)
11455         CYGWIN_CMT=
11456         UNIX_CMT="#"
11457         ;;
11458 esac
11459
11460
11461
11462 case "$host_os" in
11463 linux* | gnu* | k*bsd*-gnu)
11464         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11465                 root_prefix="";
11466                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11467 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11468         fi
11469         ;;
11470 esac
11471 case "$host_os" in
11472 linux* | gnu* | k*bsd*-gnu)
11473         if test "$prefix" = NONE ; then
11474                 prefix="/usr";
11475                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11476 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11477                 if test "$mandir" = '${prefix}/man' ; then
11478                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11479 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11480                         mandir=/usr/share/man
11481                 fi
11482         fi
11483 ;;
11484 esac
11485 if test "$root_prefix" = NONE ; then
11486         if test "$prefix" = NONE ; then
11487                 root_prefix="$ac_default_prefix"
11488         else
11489                 root_prefix="$prefix"
11490         fi
11491         root_bindir=$bindir
11492         root_sbindir=$sbindir
11493         root_libdir=$libdir
11494         root_sysconfdir=$sysconfdir
11495 else
11496         root_bindir='${root_prefix}/bin'
11497         root_sbindir='${root_prefix}/sbin'
11498         root_libdir='${root_prefix}/lib'
11499         root_sysconfdir='${root_prefix}/etc'
11500 fi
11501 if test "$bindir" != '${exec_prefix}/bin'; then
11502     root_bindir=$bindir
11503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11504 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11505 fi
11506 if test "$sbindir" != '${exec_prefix}/sbin'; then
11507     root_sbindir=$sbindir
11508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11509 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11510 fi
11511 if test "$libdir" != '${exec_prefix}/lib'; then
11512     root_libdir=$libdir
11513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11514 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11515 fi
11516 if test "$sysconfdir" != '${prefix}/etc'; then
11517     root_sysconfdir=$sysconfdir
11518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11519 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11520 fi
11521
11522
11523
11524
11525
11526
11527 # Check whether --with-multiarch was given.
11528 if test "${with_multiarch+set}" = set; then :
11529   withval=$with_multiarch; if test "$withval" = "lib64"; then
11530     libdir=/usr/lib64
11531     root_libdir=/lib64
11532 else
11533     libdir=$libdir/$withval
11534     root_libdir=$root_libdir/$withval
11535 fi
11536
11537 fi
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11539 $as_echo_n "checking whether we can link with -static... " >&6; }
11540 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11541   $as_echo_n "(cached) " >&6
11542 else
11543   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h.  */
11546 #include <stdio.h>
11547 int
11548 main ()
11549 {
11550 fflush(stdout);
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556   ac_cv_e2fsprogs_use_static=yes
11557 else
11558   ac_cv_e2fsprogs_use_static=no
11559 fi
11560 rm -f core conftest.err conftest.$ac_objext \
11561     conftest$ac_exeext conftest.$ac_ext
11562 LDFLAGS=$SAVE_LDFLAGS
11563 fi
11564
11565 case "$host_os" in
11566 solaris2.*)
11567         ac_cv_e2fsprogs_use_static=no
11568 ;;
11569 esac
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11571 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11572 LDFLAG_STATIC=
11573 if test $ac_cv_e2fsprogs_use_static = yes; then
11574         LDFLAG_STATIC=-static
11575 fi
11576
11577 case "$host_os" in
11578 darwin*)
11579         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11580 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11581
11582 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11583
11584         ;;
11585 esac
11586 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11587 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11588
11589
11590 if test "$cross_compiling" = yes ; then
11591   DO_TEST_SUITE=
11592 else
11593   DO_TEST_SUITE=check
11594 fi
11595
11596 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11597 if test -n "$CPPFLAGS" ; then
11598         INCLUDES="$INCLUDES $CPPFLAGS"
11599 fi
11600 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11601         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11602 fi
11603 if test -n "$WITH_DIET_LIBC" ; then
11604         INCLUDES="$INCLUDES -D_REENTRANT"
11605 fi
11606
11607
11608         MKINSTALLDIRS=
11609   if test -n "$ac_aux_dir"; then
11610     case "$ac_aux_dir" in
11611       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11612       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11613     esac
11614   fi
11615   if test -z "$MKINSTALLDIRS"; then
11616     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11617   fi
11618
11619
11620 if test $cross_compiling = no; then
11621    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11622    BUILD_LDFLAGS="$LDFLAGS"
11623 fi
11624
11625
11626 test -d lib || mkdir lib
11627 test -d include || mkdir include
11628 test -d include/linux || mkdir include/linux
11629 test -d include/asm || mkdir include/asm
11630 for i in MCONFIG Makefile e2fsprogs.spec \
11631         e2fsprogs-RHEL-6.spec \
11632         e2fsprogs-SUSE_LINUX-11.spec \
11633         e2fsprogs-RHEL-7.spec \
11634         e2fsprogs-SUSE_LINUX-12.spec \
11635         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11636         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11637         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11638         lib/uuid/Makefile lib/uuid/uuid_types.h \
11639         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11640         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11641         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11642         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11643         debugfs/Makefile e2scan/Makefile tests/Makefile tests/progs/Makefile \
11644         resize/Makefile doc/Makefile intl/Makefile \
11645         intl/libgnuintl.h po/Makefile.in ; do
11646         if test -d `dirname ${srcdir}/$i` ; then
11647                 outlist="$outlist $i"
11648         fi
11649 done
11650 ac_config_files="$ac_config_files $outlist"
11651
11652 cat >confcache <<\_ACEOF
11653 # This file is a shell script that caches the results of configure
11654 # tests run on this system so they can be shared between configure
11655 # scripts and configure runs, see configure's option --config-cache.
11656 # It is not useful on other systems.  If it contains results you don't
11657 # want to keep, you may remove or edit it.
11658 #
11659 # config.status only pays attention to the cache file if you give it
11660 # the --recheck option to rerun configure.
11661 #
11662 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11664 # following values.
11665
11666 _ACEOF
11667
11668 # The following way of writing the cache mishandles newlines in values,
11669 # but we know of no workaround that is simple, portable, and efficient.
11670 # So, we kill variables containing newlines.
11671 # Ultrix sh set writes to stderr and can't be redirected directly,
11672 # and sets the high bit in the cache file unless we assign to the vars.
11673 (
11674   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11675     eval ac_val=\$$ac_var
11676     case $ac_val in #(
11677     *${as_nl}*)
11678       case $ac_var in #(
11679       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11680 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11681       esac
11682       case $ac_var in #(
11683       _ | IFS | as_nl) ;; #(
11684       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11685       *) { eval $ac_var=; unset $ac_var;} ;;
11686       esac ;;
11687     esac
11688   done
11689
11690   (set) 2>&1 |
11691     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11692     *${as_nl}ac_space=\ *)
11693       # `set' does not quote correctly, so add quotes: double-quote
11694       # substitution turns \\\\ into \\, and sed turns \\ into \.
11695       sed -n \
11696         "s/'/'\\\\''/g;
11697           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11698       ;; #(
11699     *)
11700       # `set' quotes correctly as required by POSIX, so do not add quotes.
11701       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11702       ;;
11703     esac |
11704     sort
11705 ) |
11706   sed '
11707      /^ac_cv_env_/b end
11708      t clear
11709      :clear
11710      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11711      t end
11712      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11713      :end' >>confcache
11714 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11715   if test -w "$cache_file"; then
11716     if test "x$cache_file" != "x/dev/null"; then
11717       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11718 $as_echo "$as_me: updating cache $cache_file" >&6;}
11719       if test ! -f "$cache_file" || test -h "$cache_file"; then
11720         cat confcache >"$cache_file"
11721       else
11722         case $cache_file in #(
11723         */* | ?:*)
11724           mv -f confcache "$cache_file"$$ &&
11725           mv -f "$cache_file"$$ "$cache_file" ;; #(
11726         *)
11727           mv -f confcache "$cache_file" ;;
11728         esac
11729       fi
11730     fi
11731   else
11732     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11733 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11734   fi
11735 fi
11736 rm -f confcache
11737
11738 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11739 # Let make expand exec_prefix.
11740 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11741
11742 DEFS=-DHAVE_CONFIG_H
11743
11744 ac_libobjs=
11745 ac_ltlibobjs=
11746 U=
11747 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11748   # 1. Remove the extension, and $U if already installed.
11749   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11750   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11751   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11752   #    will be set to the directory where LIBOBJS objects are built.
11753   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11754   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11755 done
11756 LIBOBJS=$ac_libobjs
11757
11758 LTLIBOBJS=$ac_ltlibobjs
11759
11760
11761
11762
11763 : "${CONFIG_STATUS=./config.status}"
11764 ac_write_fail=0
11765 ac_clean_files_save=$ac_clean_files
11766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11768 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11769 as_write_fail=0
11770 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11771 #! $SHELL
11772 # Generated by $as_me.
11773 # Run this file to recreate the current configuration.
11774 # Compiler output produced by configure, useful for debugging
11775 # configure, is in config.log if it exists.
11776
11777 debug=false
11778 ac_cs_recheck=false
11779 ac_cs_silent=false
11780
11781 SHELL=\${CONFIG_SHELL-$SHELL}
11782 export SHELL
11783 _ASEOF
11784 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11785 ## -------------------- ##
11786 ## M4sh Initialization. ##
11787 ## -------------------- ##
11788
11789 # Be more Bourne compatible
11790 DUALCASE=1; export DUALCASE # for MKS sh
11791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11792   emulate sh
11793   NULLCMD=:
11794   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11795   # is contrary to our usage.  Disable this feature.
11796   alias -g '${1+"$@"}'='"$@"'
11797   setopt NO_GLOB_SUBST
11798 else
11799   case `(set -o) 2>/dev/null` in #(
11800   *posix*) :
11801     set -o posix ;; #(
11802   *) :
11803      ;;
11804 esac
11805 fi
11806
11807
11808 as_nl='
11809 '
11810 export as_nl
11811 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11812 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11813 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11815 # Prefer a ksh shell builtin over an external printf program on Solaris,
11816 # but without wasting forks for bash or zsh.
11817 if test -z "$BASH_VERSION$ZSH_VERSION" \
11818     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11819   as_echo='print -r --'
11820   as_echo_n='print -rn --'
11821 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11822   as_echo='printf %s\n'
11823   as_echo_n='printf %s'
11824 else
11825   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11826     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11827     as_echo_n='/usr/ucb/echo -n'
11828   else
11829     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11830     as_echo_n_body='eval
11831       arg=$1;
11832       case $arg in #(
11833       *"$as_nl"*)
11834         expr "X$arg" : "X\\(.*\\)$as_nl";
11835         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11836       esac;
11837       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11838     '
11839     export as_echo_n_body
11840     as_echo_n='sh -c $as_echo_n_body as_echo'
11841   fi
11842   export as_echo_body
11843   as_echo='sh -c $as_echo_body as_echo'
11844 fi
11845
11846 # The user is always right.
11847 if test "${PATH_SEPARATOR+set}" != set; then
11848   PATH_SEPARATOR=:
11849   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11850     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11851       PATH_SEPARATOR=';'
11852   }
11853 fi
11854
11855
11856 # IFS
11857 # We need space, tab and new line, in precisely that order.  Quoting is
11858 # there to prevent editors from complaining about space-tab.
11859 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11860 # splitting by setting IFS to empty value.)
11861 IFS=" ""        $as_nl"
11862
11863 # Find who we are.  Look in the path if we contain no directory separator.
11864 as_myself=
11865 case $0 in #((
11866   *[\\/]* ) as_myself=$0 ;;
11867   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11869 do
11870   IFS=$as_save_IFS
11871   test -z "$as_dir" && as_dir=.
11872     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11873   done
11874 IFS=$as_save_IFS
11875
11876      ;;
11877 esac
11878 # We did not find ourselves, most probably we were run as `sh COMMAND'
11879 # in which case we are not to be found in the path.
11880 if test "x$as_myself" = x; then
11881   as_myself=$0
11882 fi
11883 if test ! -f "$as_myself"; then
11884   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11885   exit 1
11886 fi
11887
11888 # Unset variables that we do not need and which cause bugs (e.g. in
11889 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11890 # suppresses any "Segmentation fault" message there.  '((' could
11891 # trigger a bug in pdksh 5.2.14.
11892 for as_var in BASH_ENV ENV MAIL MAILPATH
11893 do eval test x\${$as_var+set} = xset \
11894   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11895 done
11896 PS1='$ '
11897 PS2='> '
11898 PS4='+ '
11899
11900 # NLS nuisances.
11901 LC_ALL=C
11902 export LC_ALL
11903 LANGUAGE=C
11904 export LANGUAGE
11905
11906 # CDPATH.
11907 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11908
11909
11910 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11911 # ----------------------------------------
11912 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11913 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11914 # script with STATUS, using 1 if that was 0.
11915 as_fn_error ()
11916 {
11917   as_status=$1; test $as_status -eq 0 && as_status=1
11918   if test "$4"; then
11919     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11920     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11921   fi
11922   $as_echo "$as_me: error: $2" >&2
11923   as_fn_exit $as_status
11924 } # as_fn_error
11925
11926
11927 # as_fn_set_status STATUS
11928 # -----------------------
11929 # Set $? to STATUS, without forking.
11930 as_fn_set_status ()
11931 {
11932   return $1
11933 } # as_fn_set_status
11934
11935 # as_fn_exit STATUS
11936 # -----------------
11937 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11938 as_fn_exit ()
11939 {
11940   set +e
11941   as_fn_set_status $1
11942   exit $1
11943 } # as_fn_exit
11944
11945 # as_fn_unset VAR
11946 # ---------------
11947 # Portably unset VAR.
11948 as_fn_unset ()
11949 {
11950   { eval $1=; unset $1;}
11951 }
11952 as_unset=as_fn_unset
11953 # as_fn_append VAR VALUE
11954 # ----------------------
11955 # Append the text in VALUE to the end of the definition contained in VAR. Take
11956 # advantage of any shell optimizations that allow amortized linear growth over
11957 # repeated appends, instead of the typical quadratic growth present in naive
11958 # implementations.
11959 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11960   eval 'as_fn_append ()
11961   {
11962     eval $1+=\$2
11963   }'
11964 else
11965   as_fn_append ()
11966   {
11967     eval $1=\$$1\$2
11968   }
11969 fi # as_fn_append
11970
11971 # as_fn_arith ARG...
11972 # ------------------
11973 # Perform arithmetic evaluation on the ARGs, and store the result in the
11974 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11975 # must be portable across $(()) and expr.
11976 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11977   eval 'as_fn_arith ()
11978   {
11979     as_val=$(( $* ))
11980   }'
11981 else
11982   as_fn_arith ()
11983   {
11984     as_val=`expr "$@" || test $? -eq 1`
11985   }
11986 fi # as_fn_arith
11987
11988
11989 if expr a : '\(a\)' >/dev/null 2>&1 &&
11990    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11991   as_expr=expr
11992 else
11993   as_expr=false
11994 fi
11995
11996 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11997   as_basename=basename
11998 else
11999   as_basename=false
12000 fi
12001
12002 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12003   as_dirname=dirname
12004 else
12005   as_dirname=false
12006 fi
12007
12008 as_me=`$as_basename -- "$0" ||
12009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12010          X"$0" : 'X\(//\)$' \| \
12011          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12012 $as_echo X/"$0" |
12013     sed '/^.*\/\([^/][^/]*\)\/*$/{
12014             s//\1/
12015             q
12016           }
12017           /^X\/\(\/\/\)$/{
12018             s//\1/
12019             q
12020           }
12021           /^X\/\(\/\).*/{
12022             s//\1/
12023             q
12024           }
12025           s/.*/./; q'`
12026
12027 # Avoid depending upon Character Ranges.
12028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12031 as_cr_digits='0123456789'
12032 as_cr_alnum=$as_cr_Letters$as_cr_digits
12033
12034 ECHO_C= ECHO_N= ECHO_T=
12035 case `echo -n x` in #(((((
12036 -n*)
12037   case `echo 'xy\c'` in
12038   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12039   xy)  ECHO_C='\c';;
12040   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12041        ECHO_T=' ';;
12042   esac;;
12043 *)
12044   ECHO_N='-n';;
12045 esac
12046
12047 rm -f conf$$ conf$$.exe conf$$.file
12048 if test -d conf$$.dir; then
12049   rm -f conf$$.dir/conf$$.file
12050 else
12051   rm -f conf$$.dir
12052   mkdir conf$$.dir 2>/dev/null
12053 fi
12054 if (echo >conf$$.file) 2>/dev/null; then
12055   if ln -s conf$$.file conf$$ 2>/dev/null; then
12056     as_ln_s='ln -s'
12057     # ... but there are two gotchas:
12058     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12059     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12060     # In both cases, we have to default to `cp -pR'.
12061     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12062       as_ln_s='cp -pR'
12063   elif ln conf$$.file conf$$ 2>/dev/null; then
12064     as_ln_s=ln
12065   else
12066     as_ln_s='cp -pR'
12067   fi
12068 else
12069   as_ln_s='cp -pR'
12070 fi
12071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12072 rmdir conf$$.dir 2>/dev/null
12073
12074
12075 # as_fn_mkdir_p
12076 # -------------
12077 # Create "$as_dir" as a directory, including parents if necessary.
12078 as_fn_mkdir_p ()
12079 {
12080
12081   case $as_dir in #(
12082   -*) as_dir=./$as_dir;;
12083   esac
12084   test -d "$as_dir" || eval $as_mkdir_p || {
12085     as_dirs=
12086     while :; do
12087       case $as_dir in #(
12088       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12089       *) as_qdir=$as_dir;;
12090       esac
12091       as_dirs="'$as_qdir' $as_dirs"
12092       as_dir=`$as_dirname -- "$as_dir" ||
12093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12094          X"$as_dir" : 'X\(//\)[^/]' \| \
12095          X"$as_dir" : 'X\(//\)$' \| \
12096          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12097 $as_echo X"$as_dir" |
12098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12099             s//\1/
12100             q
12101           }
12102           /^X\(\/\/\)[^/].*/{
12103             s//\1/
12104             q
12105           }
12106           /^X\(\/\/\)$/{
12107             s//\1/
12108             q
12109           }
12110           /^X\(\/\).*/{
12111             s//\1/
12112             q
12113           }
12114           s/.*/./; q'`
12115       test -d "$as_dir" && break
12116     done
12117     test -z "$as_dirs" || eval "mkdir $as_dirs"
12118   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12119
12120
12121 } # as_fn_mkdir_p
12122 if mkdir -p . 2>/dev/null; then
12123   as_mkdir_p='mkdir -p "$as_dir"'
12124 else
12125   test -d ./-p && rmdir ./-p
12126   as_mkdir_p=false
12127 fi
12128
12129
12130 # as_fn_executable_p FILE
12131 # -----------------------
12132 # Test if FILE is an executable regular file.
12133 as_fn_executable_p ()
12134 {
12135   test -f "$1" && test -x "$1"
12136 } # as_fn_executable_p
12137 as_test_x='test -x'
12138 as_executable_p=as_fn_executable_p
12139
12140 # Sed expression to map a string onto a valid CPP name.
12141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12142
12143 # Sed expression to map a string onto a valid variable name.
12144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12145
12146
12147 exec 6>&1
12148 ## ----------------------------------- ##
12149 ## Main body of $CONFIG_STATUS script. ##
12150 ## ----------------------------------- ##
12151 _ASEOF
12152 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12153
12154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12155 # Save the log message, to keep $0 and so on meaningful, and to
12156 # report actual input values of CONFIG_FILES etc. instead of their
12157 # values after options handling.
12158 ac_log="
12159 This file was extended by $as_me, which was
12160 generated by GNU Autoconf 2.69.  Invocation command line was
12161
12162   CONFIG_FILES    = $CONFIG_FILES
12163   CONFIG_HEADERS  = $CONFIG_HEADERS
12164   CONFIG_LINKS    = $CONFIG_LINKS
12165   CONFIG_COMMANDS = $CONFIG_COMMANDS
12166   $ $0 $@
12167
12168 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12169 "
12170
12171 _ACEOF
12172
12173 case $ac_config_files in *"
12174 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12175 esac
12176
12177 case $ac_config_headers in *"
12178 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12179 esac
12180
12181
12182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12183 # Files that config.status was made for.
12184 config_files="$ac_config_files"
12185 config_headers="$ac_config_headers"
12186 config_commands="$ac_config_commands"
12187
12188 _ACEOF
12189
12190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12191 ac_cs_usage="\
12192 \`$as_me' instantiates files and other configuration actions
12193 from templates according to the current configuration.  Unless the files
12194 and actions are specified as TAGs, all are instantiated by default.
12195
12196 Usage: $0 [OPTION]... [TAG]...
12197
12198   -h, --help       print this help, then exit
12199   -V, --version    print version number and configuration settings, then exit
12200       --config     print configuration, then exit
12201   -q, --quiet, --silent
12202                    do not print progress messages
12203   -d, --debug      don't remove temporary files
12204       --recheck    update $as_me by reconfiguring in the same conditions
12205       --file=FILE[:TEMPLATE]
12206                    instantiate the configuration file FILE
12207       --header=FILE[:TEMPLATE]
12208                    instantiate the configuration header FILE
12209
12210 Configuration files:
12211 $config_files
12212
12213 Configuration headers:
12214 $config_headers
12215
12216 Configuration commands:
12217 $config_commands
12218
12219 Report bugs to the package provider."
12220
12221 _ACEOF
12222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12223 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12224 ac_cs_version="\\
12225 config.status
12226 configured by $0, generated by GNU Autoconf 2.69,
12227   with options \\"\$ac_cs_config\\"
12228
12229 Copyright (C) 2012 Free Software Foundation, Inc.
12230 This config.status script is free software; the Free Software Foundation
12231 gives unlimited permission to copy, distribute and modify it."
12232
12233 ac_pwd='$ac_pwd'
12234 srcdir='$srcdir'
12235 INSTALL='$INSTALL'
12236 AWK='$AWK'
12237 test -n "\$AWK" || AWK=awk
12238 _ACEOF
12239
12240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12241 # The default lists apply if the user does not specify any file.
12242 ac_need_defaults=:
12243 while test $# != 0
12244 do
12245   case $1 in
12246   --*=?*)
12247     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12248     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12249     ac_shift=:
12250     ;;
12251   --*=)
12252     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12253     ac_optarg=
12254     ac_shift=:
12255     ;;
12256   *)
12257     ac_option=$1
12258     ac_optarg=$2
12259     ac_shift=shift
12260     ;;
12261   esac
12262
12263   case $ac_option in
12264   # Handling of the options.
12265   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12266     ac_cs_recheck=: ;;
12267   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12268     $as_echo "$ac_cs_version"; exit ;;
12269   --config | --confi | --conf | --con | --co | --c )
12270     $as_echo "$ac_cs_config"; exit ;;
12271   --debug | --debu | --deb | --de | --d | -d )
12272     debug=: ;;
12273   --file | --fil | --fi | --f )
12274     $ac_shift
12275     case $ac_optarg in
12276     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12277     '') as_fn_error $? "missing file argument" ;;
12278     esac
12279     as_fn_append CONFIG_FILES " '$ac_optarg'"
12280     ac_need_defaults=false;;
12281   --header | --heade | --head | --hea )
12282     $ac_shift
12283     case $ac_optarg in
12284     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12285     esac
12286     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12287     ac_need_defaults=false;;
12288   --he | --h)
12289     # Conflict between --help and --header
12290     as_fn_error $? "ambiguous option: \`$1'
12291 Try \`$0 --help' for more information.";;
12292   --help | --hel | -h )
12293     $as_echo "$ac_cs_usage"; exit ;;
12294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12295   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12296     ac_cs_silent=: ;;
12297
12298   # This is an error.
12299   -*) as_fn_error $? "unrecognized option: \`$1'
12300 Try \`$0 --help' for more information." ;;
12301
12302   *) as_fn_append ac_config_targets " $1"
12303      ac_need_defaults=false ;;
12304
12305   esac
12306   shift
12307 done
12308
12309 ac_configure_extra_args=
12310
12311 if $ac_cs_silent; then
12312   exec 6>/dev/null
12313   ac_configure_extra_args="$ac_configure_extra_args --silent"
12314 fi
12315
12316 _ACEOF
12317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318 if \$ac_cs_recheck; then
12319   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12320   shift
12321   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12322   CONFIG_SHELL='$SHELL'
12323   export CONFIG_SHELL
12324   exec "\$@"
12325 fi
12326
12327 _ACEOF
12328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12329 exec 5>>config.log
12330 {
12331   echo
12332   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12333 ## Running $as_me. ##
12334 _ASBOX
12335   $as_echo "$ac_log"
12336 } >&5
12337
12338 _ACEOF
12339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12340 #
12341 # INIT-COMMANDS
12342 #
12343 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12344     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12345     # from automake.
12346     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12347     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12348     LINGUAS="${LINGUAS-%UNSET%}"
12349
12350
12351 _ACEOF
12352
12353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12354
12355 # Handling of arguments.
12356 for ac_config_target in $ac_config_targets
12357 do
12358   case $ac_config_target in
12359     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12360     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12361     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12362
12363   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12364   esac
12365 done
12366
12367
12368 # If the user did not use the arguments to specify the items to instantiate,
12369 # then the envvar interface is used.  Set only those that are not.
12370 # We use the long form for the default assignment because of an extremely
12371 # bizarre bug on SunOS 4.1.3.
12372 if $ac_need_defaults; then
12373   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12374   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12375   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12376 fi
12377
12378 # Have a temporary directory for convenience.  Make it in the build tree
12379 # simply because there is no reason against having it here, and in addition,
12380 # creating and moving files from /tmp can sometimes cause problems.
12381 # Hook for its removal unless debugging.
12382 # Note that there is a small window in which the directory will not be cleaned:
12383 # after its creation but before its name has been assigned to `$tmp'.
12384 $debug ||
12385 {
12386   tmp= ac_tmp=
12387   trap 'exit_status=$?
12388   : "${ac_tmp:=$tmp}"
12389   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12390 ' 0
12391   trap 'as_fn_exit 1' 1 2 13 15
12392 }
12393 # Create a (secure) tmp directory for tmp files.
12394
12395 {
12396   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12397   test -d "$tmp"
12398 }  ||
12399 {
12400   tmp=./conf$$-$RANDOM
12401   (umask 077 && mkdir "$tmp")
12402 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12403 ac_tmp=$tmp
12404
12405 # Set up the scripts for CONFIG_FILES section.
12406 # No need to generate them if there are no CONFIG_FILES.
12407 # This happens for instance with `./config.status config.h'.
12408 if test -n "$CONFIG_FILES"; then
12409
12410 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12411   ac_cs_awk_getline=:
12412   ac_cs_awk_pipe_init=
12413   ac_cs_awk_read_file='
12414       while ((getline aline < (F[key])) > 0)
12415         print(aline)
12416       close(F[key])'
12417   ac_cs_awk_pipe_fini=
12418 else
12419   ac_cs_awk_getline=false
12420   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12421   ac_cs_awk_read_file='
12422       print "|#_!!_#|"
12423       print "cat " F[key] " &&"
12424       '$ac_cs_awk_pipe_init
12425   # The final `:' finishes the AND list.
12426   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12427 fi
12428 ac_cr=`echo X | tr X '\015'`
12429 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12430 # But we know of no other shell where ac_cr would be empty at this
12431 # point, so we can use a bashism as a fallback.
12432 if test "x$ac_cr" = x; then
12433   eval ac_cr=\$\'\\r\'
12434 fi
12435 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12436 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12437   ac_cs_awk_cr='\\r'
12438 else
12439   ac_cs_awk_cr=$ac_cr
12440 fi
12441
12442 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12443 _ACEOF
12444
12445 # Create commands to substitute file output variables.
12446 {
12447   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12448   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12449   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12450   echo "_ACAWK" &&
12451   echo "_ACEOF"
12452 } >conf$$files.sh &&
12453 . ./conf$$files.sh ||
12454   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12455 rm -f conf$$files.sh
12456
12457 {
12458   echo "cat >conf$$subs.awk <<_ACEOF" &&
12459   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12460   echo "_ACEOF"
12461 } >conf$$subs.sh ||
12462   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12464 ac_delim='%!_!# '
12465 for ac_last_try in false false false false false :; do
12466   . ./conf$$subs.sh ||
12467     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12468
12469   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12470   if test $ac_delim_n = $ac_delim_num; then
12471     break
12472   elif $ac_last_try; then
12473     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12474   else
12475     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12476   fi
12477 done
12478 rm -f conf$$subs.sh
12479
12480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12481 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12482 _ACEOF
12483 sed -n '
12484 h
12485 s/^/S["/; s/!.*/"]=/
12486 p
12487 g
12488 s/^[^!]*!//
12489 :repl
12490 t repl
12491 s/'"$ac_delim"'$//
12492 t delim
12493 :nl
12494 h
12495 s/\(.\{148\}\)..*/\1/
12496 t more1
12497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12498 p
12499 n
12500 b repl
12501 :more1
12502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12503 p
12504 g
12505 s/.\{148\}//
12506 t nl
12507 :delim
12508 h
12509 s/\(.\{148\}\)..*/\1/
12510 t more2
12511 s/["\\]/\\&/g; s/^/"/; s/$/"/
12512 p
12513 b
12514 :more2
12515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12516 p
12517 g
12518 s/.\{148\}//
12519 t delim
12520 ' <conf$$subs.awk | sed '
12521 /^[^""]/{
12522   N
12523   s/\n//
12524 }
12525 ' >>$CONFIG_STATUS || ac_write_fail=1
12526 rm -f conf$$subs.awk
12527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12528 _ACAWK
12529 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12530   for (key in S) S_is_set[key] = 1
12531   FS = "\a"
12532   \$ac_cs_awk_pipe_init
12533 }
12534 {
12535   line = $ 0
12536   nfields = split(line, field, "@")
12537   substed = 0
12538   len = length(field[1])
12539   for (i = 2; i < nfields; i++) {
12540     key = field[i]
12541     keylen = length(key)
12542     if (S_is_set[key]) {
12543       value = S[key]
12544       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12545       len += length(value) + length(field[++i])
12546       substed = 1
12547     } else
12548       len += 1 + keylen
12549   }
12550   if (nfields == 3 && !substed) {
12551     key = field[2]
12552     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12553       \$ac_cs_awk_read_file
12554       next
12555     }
12556   }
12557   print line
12558 }
12559 \$ac_cs_awk_pipe_fini
12560 _ACAWK
12561 _ACEOF
12562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12563 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12564   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12565 else
12566   cat
12567 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12568   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12569 _ACEOF
12570
12571 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12572 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12573 # trailing colons and then remove the whole line if VPATH becomes empty
12574 # (actually we leave an empty line to preserve line numbers).
12575 if test "x$srcdir" = x.; then
12576   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12577 h
12578 s///
12579 s/^/:/
12580 s/[      ]*$/:/
12581 s/:\$(srcdir):/:/g
12582 s/:\${srcdir}:/:/g
12583 s/:@srcdir@:/:/g
12584 s/^:*//
12585 s/:*$//
12586 x
12587 s/\(=[   ]*\).*/\1/
12588 G
12589 s/\n//
12590 s/^[^=]*=[       ]*$//
12591 }'
12592 fi
12593
12594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12595 fi # test -n "$CONFIG_FILES"
12596
12597 # Set up the scripts for CONFIG_HEADERS section.
12598 # No need to generate them if there are no CONFIG_HEADERS.
12599 # This happens for instance with `./config.status Makefile'.
12600 if test -n "$CONFIG_HEADERS"; then
12601 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12602 BEGIN {
12603 _ACEOF
12604
12605 # Transform confdefs.h into an awk script `defines.awk', embedded as
12606 # here-document in config.status, that substitutes the proper values into
12607 # config.h.in to produce config.h.
12608
12609 # Create a delimiter string that does not exist in confdefs.h, to ease
12610 # handling of long lines.
12611 ac_delim='%!_!# '
12612 for ac_last_try in false false :; do
12613   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12614   if test -z "$ac_tt"; then
12615     break
12616   elif $ac_last_try; then
12617     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12618   else
12619     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12620   fi
12621 done
12622
12623 # For the awk script, D is an array of macro values keyed by name,
12624 # likewise P contains macro parameters if any.  Preserve backslash
12625 # newline sequences.
12626
12627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12628 sed -n '
12629 s/.\{148\}/&'"$ac_delim"'/g
12630 t rset
12631 :rset
12632 s/^[     ]*#[    ]*define[       ][      ]*/ /
12633 t def
12634 d
12635 :def
12636 s/\\$//
12637 t bsnl
12638 s/["\\]/\\&/g
12639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12640 D["\1"]=" \3"/p
12641 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12642 d
12643 :bsnl
12644 s/["\\]/\\&/g
12645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12646 D["\1"]=" \3\\\\\\n"\\/p
12647 t cont
12648 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12649 t cont
12650 d
12651 :cont
12652 n
12653 s/.\{148\}/&'"$ac_delim"'/g
12654 t clear
12655 :clear
12656 s/\\$//
12657 t bsnlc
12658 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12659 d
12660 :bsnlc
12661 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12662 b cont
12663 ' <confdefs.h | sed '
12664 s/'"$ac_delim"'/"\\\
12665 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12666
12667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12668   for (key in D) D_is_set[key] = 1
12669   FS = "\a"
12670 }
12671 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12672   line = \$ 0
12673   split(line, arg, " ")
12674   if (arg[1] == "#") {
12675     defundef = arg[2]
12676     mac1 = arg[3]
12677   } else {
12678     defundef = substr(arg[1], 2)
12679     mac1 = arg[2]
12680   }
12681   split(mac1, mac2, "(") #)
12682   macro = mac2[1]
12683   prefix = substr(line, 1, index(line, defundef) - 1)
12684   if (D_is_set[macro]) {
12685     # Preserve the white space surrounding the "#".
12686     print prefix "define", macro P[macro] D[macro]
12687     next
12688   } else {
12689     # Replace #undef with comments.  This is necessary, for example,
12690     # in the case of _POSIX_SOURCE, which is predefined and required
12691     # on some systems where configure will not decide to define it.
12692     if (defundef == "undef") {
12693       print "/*", prefix defundef, macro, "*/"
12694       next
12695     }
12696   }
12697 }
12698 { print }
12699 _ACAWK
12700 _ACEOF
12701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12702   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12703 fi # test -n "$CONFIG_HEADERS"
12704
12705
12706 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12707 shift
12708 for ac_tag
12709 do
12710   case $ac_tag in
12711   :[FHLC]) ac_mode=$ac_tag; continue;;
12712   esac
12713   case $ac_mode$ac_tag in
12714   :[FHL]*:*);;
12715   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12716   :[FH]-) ac_tag=-:-;;
12717   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12718   esac
12719   ac_save_IFS=$IFS
12720   IFS=:
12721   set x $ac_tag
12722   IFS=$ac_save_IFS
12723   shift
12724   ac_file=$1
12725   shift
12726
12727   case $ac_mode in
12728   :L) ac_source=$1;;
12729   :[FH])
12730     ac_file_inputs=
12731     for ac_f
12732     do
12733       case $ac_f in
12734       -) ac_f="$ac_tmp/stdin";;
12735       *) # Look for the file first in the build tree, then in the source tree
12736          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12737          # because $ac_f cannot contain `:'.
12738          test -f "$ac_f" ||
12739            case $ac_f in
12740            [\\/$]*) false;;
12741            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12742            esac ||
12743            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12744       esac
12745       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12746       as_fn_append ac_file_inputs " '$ac_f'"
12747     done
12748
12749     # Let's still pretend it is `configure' which instantiates (i.e., don't
12750     # use $as_me), people would be surprised to read:
12751     #    /* config.h.  Generated by config.status.  */
12752     configure_input='Generated from '`
12753           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12754         `' by configure.'
12755     if test x"$ac_file" != x-; then
12756       configure_input="$ac_file.  $configure_input"
12757       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12758 $as_echo "$as_me: creating $ac_file" >&6;}
12759     fi
12760     # Neutralize special characters interpreted by sed in replacement strings.
12761     case $configure_input in #(
12762     *\&* | *\|* | *\\* )
12763        ac_sed_conf_input=`$as_echo "$configure_input" |
12764        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12765     *) ac_sed_conf_input=$configure_input;;
12766     esac
12767
12768     case $ac_tag in
12769     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12770       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12771     esac
12772     ;;
12773   esac
12774
12775   ac_dir=`$as_dirname -- "$ac_file" ||
12776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12777          X"$ac_file" : 'X\(//\)[^/]' \| \
12778          X"$ac_file" : 'X\(//\)$' \| \
12779          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12780 $as_echo X"$ac_file" |
12781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12782             s//\1/
12783             q
12784           }
12785           /^X\(\/\/\)[^/].*/{
12786             s//\1/
12787             q
12788           }
12789           /^X\(\/\/\)$/{
12790             s//\1/
12791             q
12792           }
12793           /^X\(\/\).*/{
12794             s//\1/
12795             q
12796           }
12797           s/.*/./; q'`
12798   as_dir="$ac_dir"; as_fn_mkdir_p
12799   ac_builddir=.
12800
12801 case "$ac_dir" in
12802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12803 *)
12804   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12805   # A ".." for each directory in $ac_dir_suffix.
12806   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12807   case $ac_top_builddir_sub in
12808   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12809   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12810   esac ;;
12811 esac
12812 ac_abs_top_builddir=$ac_pwd
12813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12814 # for backward compatibility:
12815 ac_top_builddir=$ac_top_build_prefix
12816
12817 case $srcdir in
12818   .)  # We are building in place.
12819     ac_srcdir=.
12820     ac_top_srcdir=$ac_top_builddir_sub
12821     ac_abs_top_srcdir=$ac_pwd ;;
12822   [\\/]* | ?:[\\/]* )  # Absolute name.
12823     ac_srcdir=$srcdir$ac_dir_suffix;
12824     ac_top_srcdir=$srcdir
12825     ac_abs_top_srcdir=$srcdir ;;
12826   *) # Relative name.
12827     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12828     ac_top_srcdir=$ac_top_build_prefix$srcdir
12829     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12830 esac
12831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12832
12833
12834   case $ac_mode in
12835   :F)
12836   #
12837   # CONFIG_FILE
12838   #
12839
12840   case $INSTALL in
12841   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12842   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12843   esac
12844 _ACEOF
12845
12846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12847 # If the template does not know about datarootdir, expand it.
12848 # FIXME: This hack should be removed a few years after 2.60.
12849 ac_datarootdir_hack=; ac_datarootdir_seen=
12850 ac_sed_dataroot='
12851 /datarootdir/ {
12852   p
12853   q
12854 }
12855 /@datadir@/p
12856 /@docdir@/p
12857 /@infodir@/p
12858 /@localedir@/p
12859 /@mandir@/p'
12860 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12861 *datarootdir*) ac_datarootdir_seen=yes;;
12862 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12864 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12865 _ACEOF
12866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12867   ac_datarootdir_hack='
12868   s&@datadir@&$datadir&g
12869   s&@docdir@&$docdir&g
12870   s&@infodir@&$infodir&g
12871   s&@localedir@&$localedir&g
12872   s&@mandir@&$mandir&g
12873   s&\\\${datarootdir}&$datarootdir&g' ;;
12874 esac
12875 _ACEOF
12876
12877 # Neutralize VPATH when `$srcdir' = `.'.
12878 # Shell code in configure.ac might set extrasub.
12879 # FIXME: do we really want to maintain this feature?
12880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12881 ac_sed_extra="$ac_vpsub
12882 $extrasub
12883 _ACEOF
12884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12885 :t
12886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12887 s|@configure_input@|$ac_sed_conf_input|;t t
12888 s&@top_builddir@&$ac_top_builddir_sub&;t t
12889 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12890 s&@srcdir@&$ac_srcdir&;t t
12891 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12892 s&@top_srcdir@&$ac_top_srcdir&;t t
12893 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12894 s&@builddir@&$ac_builddir&;t t
12895 s&@abs_builddir@&$ac_abs_builddir&;t t
12896 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12897 s&@INSTALL@&$ac_INSTALL&;t t
12898 $ac_datarootdir_hack
12899 "
12900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12901 if $ac_cs_awk_getline; then
12902   $AWK -f "$ac_tmp/subs.awk"
12903 else
12904   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12905 fi \
12906   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12907
12908 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12909   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12910   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12911       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12912   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12913 which seems to be undefined.  Please make sure it is defined" >&5
12914 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12915 which seems to be undefined.  Please make sure it is defined" >&2;}
12916
12917   rm -f "$ac_tmp/stdin"
12918   case $ac_file in
12919   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12920   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12921   esac \
12922   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12923  ;;
12924   :H)
12925   #
12926   # CONFIG_HEADER
12927   #
12928   if test x"$ac_file" != x-; then
12929     {
12930       $as_echo "/* $configure_input  */" \
12931       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12932     } >"$ac_tmp/config.h" \
12933       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12934     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12935       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12936 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12937     else
12938       rm -f "$ac_file"
12939       mv "$ac_tmp/config.h" "$ac_file" \
12940         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12941     fi
12942   else
12943     $as_echo "/* $configure_input  */" \
12944       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12945       || as_fn_error $? "could not create -" "$LINENO" 5
12946   fi
12947  ;;
12948
12949   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12950 $as_echo "$as_me: executing $ac_file commands" >&6;}
12951  ;;
12952   esac
12953
12954
12955   case $ac_file$ac_mode in
12956     "default-1":C)
12957     for ac_file in $CONFIG_FILES; do
12958       # Support "outfile[:infile[:infile...]]"
12959       case "$ac_file" in
12960         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12961       esac
12962       # PO directories have a Makefile.in generated from Makefile.in.in.
12963       case "$ac_file" in */Makefile.in)
12964         # Adjust a relative srcdir.
12965         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12966         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12967         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12968         # In autoconf-2.13 it is called $ac_given_srcdir.
12969         # In autoconf-2.50 it is called $srcdir.
12970         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12971         case "$ac_given_srcdir" in
12972           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12973           /*) top_srcdir="$ac_given_srcdir" ;;
12974           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12975         esac
12976         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12977           rm -f "$ac_dir/POTFILES"
12978           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12979           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12980           POMAKEFILEDEPS="POTFILES.in"
12981           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12982           # on $ac_dir but don't depend on user-specified configuration
12983           # parameters.
12984           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12985             # The LINGUAS file contains the set of available languages.
12986             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12987               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12988             fi
12989             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12990             # Hide the ALL_LINGUAS assigment from automake.
12991             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12992             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12993           else
12994             # The set of available languages was given in configure.in.
12995             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12996           fi
12997           # Compute POFILES
12998           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12999           # Compute UPDATEPOFILES
13000           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13001           # Compute DUMMYPOFILES
13002           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13003           # Compute GMOFILES
13004           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13005           case "$ac_given_srcdir" in
13006             .) srcdirpre= ;;
13007             *) srcdirpre='$(srcdir)/' ;;
13008           esac
13009           POFILES=
13010           UPDATEPOFILES=
13011           DUMMYPOFILES=
13012           GMOFILES=
13013           for lang in $ALL_LINGUAS; do
13014             POFILES="$POFILES $srcdirpre$lang.po"
13015             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13016             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13017             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13018           done
13019           # CATALOGS depends on both $ac_dir and the user's LINGUAS
13020           # environment variable.
13021           INST_LINGUAS=
13022           if test -n "$ALL_LINGUAS"; then
13023             for presentlang in $ALL_LINGUAS; do
13024               useit=no
13025               if test "%UNSET%" != "$LINGUAS"; then
13026                 desiredlanguages="$LINGUAS"
13027               else
13028                 desiredlanguages="$ALL_LINGUAS"
13029               fi
13030               for desiredlang in $desiredlanguages; do
13031                 # Use the presentlang catalog if desiredlang is
13032                 #   a. equal to presentlang, or
13033                 #   b. a variant of presentlang (because in this case,
13034                 #      presentlang can be used as a fallback for messages
13035                 #      which are not translated in the desiredlang catalog).
13036                 case "$desiredlang" in
13037                   "$presentlang"*) useit=yes;;
13038                 esac
13039               done
13040               if test $useit = yes; then
13041                 INST_LINGUAS="$INST_LINGUAS $presentlang"
13042               fi
13043             done
13044           fi
13045           CATALOGS=
13046           if test -n "$INST_LINGUAS"; then
13047             for lang in $INST_LINGUAS; do
13048               CATALOGS="$CATALOGS $lang.gmo"
13049             done
13050           fi
13051           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13052           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"
13053           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13054             if test -f "$f"; then
13055               case "$f" in
13056                 *.orig | *.bak | *~) ;;
13057                 *) cat "$f" >> "$ac_dir/Makefile" ;;
13058               esac
13059             fi
13060           done
13061         fi
13062         ;;
13063       esac
13064     done ;;
13065
13066   esac
13067 done # for ac_tag
13068
13069
13070 as_fn_exit 0
13071 _ACEOF
13072 ac_clean_files=$ac_clean_files_save
13073
13074 test $ac_write_fail = 0 ||
13075   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13076
13077
13078 # configure is writing to config.log, and then calls config.status.
13079 # config.status does its own redirection, appending to config.log.
13080 # Unfortunately, on DOS this fails, as config.log is still kept open
13081 # by configure, so config.status won't be able to write to it; its
13082 # output is simply discarded.  So we exec the FD to /dev/null,
13083 # effectively closing config.log, so it can be properly (re)opened and
13084 # appended to by config.status.  When coming back to configure, we
13085 # need to make the FD available again.
13086 if test "$no_create" != yes; then
13087   ac_cs_success=:
13088   ac_config_status_args=
13089   test "$silent" = yes &&
13090     ac_config_status_args="$ac_config_status_args --quiet"
13091   exec 5>/dev/null
13092   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13093   exec 5>>config.log
13094   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13095   # would make configure fail if this is the last instruction.
13096   $ac_cs_success || as_fn_exit 1
13097 fi
13098 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13099   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13100 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13101 fi
13102
13103 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi