Whamcloud - gitweb
Merge branch 'maint' into next
[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 SOCKET_LIB
643 SIZEOF_OFF_T
644 SIZEOF_LONG_LONG
645 SIZEOF_LONG
646 SIZEOF_INT
647 SIZEOF_SHORT
648 BUILD_CC
649 MAKEINFO
650 STRIP
651 AR
652 LDCONFIG
653 PERL
654 SED
655 AWK
656 CHMOD
657 RM
658 CP
659 MV
660 LN_S
661 LN
662 ifNotGNUmake
663 ifGNUmake
664 BINARY_TYPE
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 INTL_LIBTOOL_SUFFIX_PREFIX
670 INTLOBJS
671 GENCAT
672 INSTOBJEXT
673 DATADIRNAME
674 CATOBJEXT
675 USE_INCLUDED_LIBINTL
676 BUILD_INCLUDED_LIBINTL
677 INTLBISON
678 LTLIBICONV
679 LIBICONV
680 HAVE_WPRINTF
681 HAVE_SNPRINTF
682 HAVE_ASPRINTF
683 HAVE_POSIX_PRINTF
684 GLIBC21
685 ALLOCA
686 EGREP
687 GREP
688 RANLIB
689 MSGMERGE
690 XGETTEXT
691 GMSGFMT
692 MSGFMT
693 USE_NLS
694 MKINSTALLDIRS
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 SET_MAKE
699 VERSION
700 PACKAGE
701 GETTEXT_PACKAGE
702 UUIDD_CMT
703 E2INITRD_MAN
704 E2INITRD_PROG
705 FSCK_MAN
706 FSCK_PROG
707 DEFRAG_CMT
708 RESIZER_CMT
709 IMAGER_CMT
710 DEBUGFS_CMT
711 QUOTA_CMT
712 DEPPROFILED_LIBQUOTA
713 PROFILED_LIBQUOTA
714 DEPSTATIC_LIBQUOTA
715 STATIC_LIBQUOTA
716 DEPLIBQUOTA
717 LIBQUOTA
718 BLKID_CMT
719 DEPPROFILED_LIBBLKID
720 PROFILED_LIBBLKID
721 DEPSTATIC_LIBBLKID
722 STATIC_LIBBLKID
723 DEPLIBBLKID
724 LIBBLKID
725 UUID_CMT
726 DEPPROFILED_LIBUUID
727 PROFILED_LIBUUID
728 DEPSTATIC_LIBUUID
729 STATIC_LIBUUID
730 DEPLIBUUID
731 LIBUUID
732 PKG_CONFIG
733 TEST_IO_CMT
734 PRIVATE_LIBS_CMT
735 LDFLAG_DYNAMIC
736 PROFILED_LIB_EXT
737 STATIC_LIB_EXT
738 LIB_EXT
739 CHECKER_CMT
740 PROFILE_CMT
741 BSDLIB_CMT
742 ELF_CMT
743 HTREE_CMT
744 Q
745 ES
746 E
747 LINK_BUILD_FLAGS
748 SYMLINK_RELATIVE
749 LINK_INSTALL_FLAGS
750 MAINTAINER_CMT
751 CPP
752 RDYNAMIC
753 DLOPEN_LIB
754 OBJEXT
755 EXEEXT
756 ac_ct_CC
757 CPPFLAGS
758 LDFLAGS
759 CFLAGS
760 CC
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 E2FSPROGS_PKGVER
770 E2FSPROGS_VERSION
771 E2FSPROGS_DAY
772 E2FSPROGS_MONTH
773 E2FSPROGS_YEAR
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files='MCONFIG
813 MAKEFILE_ELF
814 MAKEFILE_BSDLIB
815 MAKEFILE_PROFILE
816 MAKEFILE_CHECKER
817 MAKEFILE_LIBRARY
818 ASM_TYPES_HEADER
819 PUBLIC_CONFIG_HEADER'
820 ac_user_opts='
821 enable_option_checking
822 with_diet_libc
823 with_cc
824 with_ccopts
825 with_ldopts
826 with_root_prefix
827 enable_maintainer_mode
828 enable_symlink_install
829 enable_relative_symlinks
830 enable_symlink_relative_symlinks
831 enable_symlink_build
832 enable_verbose_makecmds
833 enable_compression
834 enable_htree
835 enable_elf_shlibs
836 enable_bsd_shlibs
837 enable_profile
838 enable_checker
839 enable_jbd_debug
840 enable_blkid_debug
841 enable_testio_debug
842 enable_libuuid
843 enable_libblkid
844 enable_quota
845 enable_debugfs
846 enable_imager
847 enable_resizer
848 enable_defrag
849 enable_fsck
850 enable_e2initrd_helper
851 enable_tls
852 enable_uuidd
853 enable_mmp
854 enable_bmap_stats
855 enable_bmap_stats_ops
856 enable_nls
857 with_gnu_ld
858 enable_rpath
859 with_libiconv_prefix
860 with_included_gettext
861 with_libintl_prefix
862 with_multiarch
863 '
864       ac_precious_vars='build_alias
865 host_alias
866 target_alias
867 CC
868 CFLAGS
869 LDFLAGS
870 LIBS
871 CPPFLAGS
872 CPP
873 PKG_CONFIG'
874
875
876 # Initialize some variables set by options.
877 ac_init_help=
878 ac_init_version=false
879 ac_unrecognized_opts=
880 ac_unrecognized_sep=
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
883 cache_file=/dev/null
884 exec_prefix=NONE
885 no_create=
886 no_recursion=
887 prefix=NONE
888 program_prefix=NONE
889 program_suffix=NONE
890 program_transform_name=s,x,x,
891 silent=
892 site=
893 srcdir=
894 verbose=
895 x_includes=NONE
896 x_libraries=NONE
897
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
916 htmldir='${docdir}'
917 dvidir='${docdir}'
918 pdfdir='${docdir}'
919 psdir='${docdir}'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
923
924 ac_prev=
925 ac_dashdash=
926 for ac_option
927 do
928   # If the previous option needs an argument, assign it.
929   if test -n "$ac_prev"; then
930     eval $ac_prev=\$ac_option
931     ac_prev=
932     continue
933   fi
934
935   case $ac_option in
936   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937   *=)   ac_optarg= ;;
938   *)    ac_optarg=yes ;;
939   esac
940
941   # Accept the important Cygnus configure options, so we can diagnose typos.
942
943   case $ac_dashdash$ac_option in
944   --)
945     ac_dashdash=yes ;;
946
947   -bindir | --bindir | --bindi | --bind | --bin | --bi)
948     ac_prev=bindir ;;
949   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950     bindir=$ac_optarg ;;
951
952   -build | --build | --buil | --bui | --bu)
953     ac_prev=build_alias ;;
954   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955     build_alias=$ac_optarg ;;
956
957   -cache-file | --cache-file | --cache-fil | --cache-fi \
958   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959     ac_prev=cache_file ;;
960   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962     cache_file=$ac_optarg ;;
963
964   --config-cache | -C)
965     cache_file=config.cache ;;
966
967   -datadir | --datadir | --datadi | --datad)
968     ac_prev=datadir ;;
969   -datadir=* | --datadir=* | --datadi=* | --datad=*)
970     datadir=$ac_optarg ;;
971
972   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973   | --dataroo | --dataro | --datar)
974     ac_prev=datarootdir ;;
975   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977     datarootdir=$ac_optarg ;;
978
979   -disable-* | --disable-*)
980     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981     # Reject names that are not valid shell variable names.
982     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983       as_fn_error $? "invalid feature name: $ac_useropt"
984     ac_useropt_orig=$ac_useropt
985     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986     case $ac_user_opts in
987       *"
988 "enable_$ac_useropt"
989 "*) ;;
990       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991          ac_unrecognized_sep=', ';;
992     esac
993     eval enable_$ac_useropt=no ;;
994
995   -docdir | --docdir | --docdi | --doc | --do)
996     ac_prev=docdir ;;
997   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998     docdir=$ac_optarg ;;
999
1000   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001     ac_prev=dvidir ;;
1002   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003     dvidir=$ac_optarg ;;
1004
1005   -enable-* | --enable-*)
1006     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009       as_fn_error $? "invalid feature name: $ac_useropt"
1010     ac_useropt_orig=$ac_useropt
1011     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012     case $ac_user_opts in
1013       *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017          ac_unrecognized_sep=', ';;
1018     esac
1019     eval enable_$ac_useropt=\$ac_optarg ;;
1020
1021   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023   | --exec | --exe | --ex)
1024     ac_prev=exec_prefix ;;
1025   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027   | --exec=* | --exe=* | --ex=*)
1028     exec_prefix=$ac_optarg ;;
1029
1030   -gas | --gas | --ga | --g)
1031     # Obsolete; use --with-gas.
1032     with_gas=yes ;;
1033
1034   -help | --help | --hel | --he | -h)
1035     ac_init_help=long ;;
1036   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037     ac_init_help=recursive ;;
1038   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039     ac_init_help=short ;;
1040
1041   -host | --host | --hos | --ho)
1042     ac_prev=host_alias ;;
1043   -host=* | --host=* | --hos=* | --ho=*)
1044     host_alias=$ac_optarg ;;
1045
1046   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047     ac_prev=htmldir ;;
1048   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049   | --ht=*)
1050     htmldir=$ac_optarg ;;
1051
1052   -includedir | --includedir | --includedi | --included | --include \
1053   | --includ | --inclu | --incl | --inc)
1054     ac_prev=includedir ;;
1055   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056   | --includ=* | --inclu=* | --incl=* | --inc=*)
1057     includedir=$ac_optarg ;;
1058
1059   -infodir | --infodir | --infodi | --infod | --info | --inf)
1060     ac_prev=infodir ;;
1061   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062     infodir=$ac_optarg ;;
1063
1064   -libdir | --libdir | --libdi | --libd)
1065     ac_prev=libdir ;;
1066   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067     libdir=$ac_optarg ;;
1068
1069   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070   | --libexe | --libex | --libe)
1071     ac_prev=libexecdir ;;
1072   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073   | --libexe=* | --libex=* | --libe=*)
1074     libexecdir=$ac_optarg ;;
1075
1076   -localedir | --localedir | --localedi | --localed | --locale)
1077     ac_prev=localedir ;;
1078   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079     localedir=$ac_optarg ;;
1080
1081   -localstatedir | --localstatedir | --localstatedi | --localstated \
1082   | --localstate | --localstat | --localsta | --localst | --locals)
1083     ac_prev=localstatedir ;;
1084   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086     localstatedir=$ac_optarg ;;
1087
1088   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089     ac_prev=mandir ;;
1090   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091     mandir=$ac_optarg ;;
1092
1093   -nfp | --nfp | --nf)
1094     # Obsolete; use --without-fp.
1095     with_fp=no ;;
1096
1097   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098   | --no-cr | --no-c | -n)
1099     no_create=yes ;;
1100
1101   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103     no_recursion=yes ;;
1104
1105   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107   | --oldin | --oldi | --old | --ol | --o)
1108     ac_prev=oldincludedir ;;
1109   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112     oldincludedir=$ac_optarg ;;
1113
1114   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115     ac_prev=prefix ;;
1116   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117     prefix=$ac_optarg ;;
1118
1119   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120   | --program-pre | --program-pr | --program-p)
1121     ac_prev=program_prefix ;;
1122   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124     program_prefix=$ac_optarg ;;
1125
1126   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127   | --program-suf | --program-su | --program-s)
1128     ac_prev=program_suffix ;;
1129   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131     program_suffix=$ac_optarg ;;
1132
1133   -program-transform-name | --program-transform-name \
1134   | --program-transform-nam | --program-transform-na \
1135   | --program-transform-n | --program-transform- \
1136   | --program-transform | --program-transfor \
1137   | --program-transfo | --program-transf \
1138   | --program-trans | --program-tran \
1139   | --progr-tra | --program-tr | --program-t)
1140     ac_prev=program_transform_name ;;
1141   -program-transform-name=* | --program-transform-name=* \
1142   | --program-transform-nam=* | --program-transform-na=* \
1143   | --program-transform-n=* | --program-transform-=* \
1144   | --program-transform=* | --program-transfor=* \
1145   | --program-transfo=* | --program-transf=* \
1146   | --program-trans=* | --program-tran=* \
1147   | --progr-tra=* | --program-tr=* | --program-t=*)
1148     program_transform_name=$ac_optarg ;;
1149
1150   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151     ac_prev=pdfdir ;;
1152   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153     pdfdir=$ac_optarg ;;
1154
1155   -psdir | --psdir | --psdi | --psd | --ps)
1156     ac_prev=psdir ;;
1157   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158     psdir=$ac_optarg ;;
1159
1160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161   | -silent | --silent | --silen | --sile | --sil)
1162     silent=yes ;;
1163
1164   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165     ac_prev=sbindir ;;
1166   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167   | --sbi=* | --sb=*)
1168     sbindir=$ac_optarg ;;
1169
1170   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172   | --sharedst | --shareds | --shared | --share | --shar \
1173   | --sha | --sh)
1174     ac_prev=sharedstatedir ;;
1175   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178   | --sha=* | --sh=*)
1179     sharedstatedir=$ac_optarg ;;
1180
1181   -site | --site | --sit)
1182     ac_prev=site ;;
1183   -site=* | --site=* | --sit=*)
1184     site=$ac_optarg ;;
1185
1186   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187     ac_prev=srcdir ;;
1188   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189     srcdir=$ac_optarg ;;
1190
1191   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192   | --syscon | --sysco | --sysc | --sys | --sy)
1193     ac_prev=sysconfdir ;;
1194   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196     sysconfdir=$ac_optarg ;;
1197
1198   -target | --target | --targe | --targ | --tar | --ta | --t)
1199     ac_prev=target_alias ;;
1200   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201     target_alias=$ac_optarg ;;
1202
1203   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204     verbose=yes ;;
1205
1206   -version | --version | --versio | --versi | --vers | -V)
1207     ac_init_version=: ;;
1208
1209   -with-* | --with-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: $ac_useropt"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=\$ac_optarg ;;
1224
1225   -without-* | --without-*)
1226     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227     # Reject names that are not valid shell variable names.
1228     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229       as_fn_error $? "invalid package name: $ac_useropt"
1230     ac_useropt_orig=$ac_useropt
1231     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232     case $ac_user_opts in
1233       *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237          ac_unrecognized_sep=', ';;
1238     esac
1239     eval with_$ac_useropt=no ;;
1240
1241   --x)
1242     # Obsolete; use --with-x.
1243     with_x=yes ;;
1244
1245   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246   | --x-incl | --x-inc | --x-in | --x-i)
1247     ac_prev=x_includes ;;
1248   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250     x_includes=$ac_optarg ;;
1251
1252   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254     ac_prev=x_libraries ;;
1255   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257     x_libraries=$ac_optarg ;;
1258
1259   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1261     ;;
1262
1263   *=*)
1264     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265     # Reject names that are not valid shell variable names.
1266     case $ac_envvar in #(
1267       '' | [0-9]* | *[!_$as_cr_alnum]* )
1268       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269     esac
1270     eval $ac_envvar=\$ac_optarg
1271     export $ac_envvar ;;
1272
1273   *)
1274     # FIXME: should be removed in autoconf 3.0.
1275     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279     ;;
1280
1281   esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286   as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290   case $enable_option_checking in
1291     no) ;;
1292     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294   esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299                 datadir sysconfdir sharedstatedir localstatedir includedir \
1300                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301                 libdir localedir mandir
1302 do
1303   eval ac_val=\$$ac_var
1304   # Remove trailing slashes.
1305   case $ac_val in
1306     */ )
1307       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308       eval $ac_var=\$ac_val;;
1309   esac
1310   # Be sure to have absolute directory names.
1311   case $ac_val in
1312     [\\/$]* | ?:[\\/]* )  continue;;
1313     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314   esac
1315   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327   if test "x$build_alias" = x; then
1328     cross_compiling=maybe
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345   as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$as_myself" : 'X\(//\)[^/]' \| \
1355          X"$as_myself" : 'X\(//\)$' \| \
1356          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures this package to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking ...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR            user executables [EPREFIX/bin]
1449   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR        program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1454   --libdir=DIR            object code libraries [EPREFIX/lib]
1455   --includedir=DIR        C header files [PREFIX/include]
1456   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1457   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1458   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1459   --infodir=DIR           info documentation [DATAROOTDIR/info]
1460   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1461   --mandir=DIR            man documentation [DATAROOTDIR/man]
1462   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1463   --htmldir=DIR           html documentation [DOCDIR]
1464   --dvidir=DIR            dvi documentation [DOCDIR]
1465   --pdfdir=DIR            pdf documentation [DOCDIR]
1466   --psdir=DIR             ps documentation [DOCDIR]
1467 _ACEOF
1468
1469   cat <<\_ACEOF
1470
1471 System types:
1472   --build=BUILD     configure for building on BUILD [guessed]
1473   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478
1479   cat <<\_ACEOF
1480
1481 Optional Features:
1482   --disable-option-checking  ignore unrecognized --enable/--with options
1483   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1484   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1485   --enable-maintainer-mode enable makefile rules useful for maintainers
1486   --enable-symlink-install use symlinks when installing instead of hard links
1487   --enable-relative-symlinks use relative symlinks when installing
1488
1489   --enable-symlink-build  use symlinks while building instead of hard links
1490   --enable-verbose-makecmds enable verbose make command output
1491   --enable-compression    enable EXPERIMENTAL compression support
1492   --enable-htree          enable EXPERIMENTAL htree directory support
1493   --enable-elf-shlibs     select ELF shared libraries
1494   --enable-bsd-shlibs     select BSD shared libraries
1495   --enable-profile        build profiling libraries
1496   --enable-checker        build checker libraries
1497   --enable-jbd-debug      enable journal debugging
1498   --enable-blkid-debug    enable blkid debugging
1499   --disable-testio-debug  disable the use of the test I/O manager for debugging
1500   --disable-libuuid       do not build private uuid library
1501   --disable-libblkid      do not build private blkid library
1502   --enable-quota          enable quota support
1503   --disable-debugfs       disable support of debugfs program
1504   --disable-imager        disable support of e2image program
1505   --disable-resizer       disable support of e2resize program
1506   --disable-defrag        disable support of e4defrag program
1507   --enable-fsck           build fsck wrapper program
1508   --enable-e2initrd-helper build e2initrd-helper program
1509   --disable-tls           disable use of thread local support
1510   --disable-uuidd         disable building the uuid daemon
1511   --disable-mmp           disable support mmp, Multi Mount Protection
1512   --disable-bmap-stats    disable collection of bitmap stats.
1513   --enable-bmap-stats-ops enable collection of additional bitmap stats
1514   --disable-nls           do not use Native Language Support
1515   --disable-rpath         do not hardcode runtime library paths
1516
1517 Optional Packages:
1518   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520   --with-diet-libc        use diet libc
1521   --with-cc               no longer supported, use CC= instead
1522   --with-ccopts           no longer supported, use CFLAGS= instead
1523   --with-ldopts           no longer supported, use LDFLAGS= instead
1524   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1525   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1526   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1527   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1528   --with-included-gettext use the GNU gettext library included here
1529   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1530   --without-libintl-prefix     don't search for libintl in includedir and libdir
1531   --with-multiarch=ARCH specify the multiarch triplet
1532
1533 Some influential environment variables:
1534   CC          C compiler command
1535   CFLAGS      C compiler flags
1536   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1537               nonstandard directory <lib dir>
1538   LIBS        libraries to pass to the linker, e.g. -l<library>
1539   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540               you have headers in a nonstandard directory <include dir>
1541   CPP         C preprocessor
1542   PKG_CONFIG  path to pkg-config utility
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to the package provider.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553   # If there are subdirs, report their specific --help.
1554   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555     test -d "$ac_dir" ||
1556       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557       continue
1558     ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564   # A ".." for each directory in $ac_dir_suffix.
1565   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566   case $ac_top_builddir_sub in
1567   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569   esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577   .)  # We are building in place.
1578     ac_srcdir=.
1579     ac_top_srcdir=$ac_top_builddir_sub
1580     ac_abs_top_srcdir=$ac_pwd ;;
1581   [\\/]* | ?:[\\/]* )  # Absolute name.
1582     ac_srcdir=$srcdir$ac_dir_suffix;
1583     ac_top_srcdir=$srcdir
1584     ac_abs_top_srcdir=$srcdir ;;
1585   *) # Relative name.
1586     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587     ac_top_srcdir=$ac_top_build_prefix$srcdir
1588     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592     cd "$ac_dir" || { ac_status=$?; continue; }
1593     # Check for guested configure.
1594     if test -f "$ac_srcdir/configure.gnu"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597     elif test -f "$ac_srcdir/configure"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure" --help=recursive
1600     else
1601       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602     fi || ac_status=$?
1603     cd "$ac_pwd" || { ac_status=$?; break; }
1604   done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609   cat <<\_ACEOF
1610 configure
1611 generated by GNU Autoconf 2.69
1612
1613 Copyright (C) 2012 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617   exit
1618 fi
1619
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   rm -f conftest.$ac_objext
1631   if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_compile") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } && {
1647          test -z "$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        } && test -s conftest.$ac_objext; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655         ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_compile
1661
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_link ()
1666 {
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   rm -f conftest.$ac_objext conftest$ac_exeext
1669   if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672   *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676   (eval "$ac_link") 2>conftest.err
1677   ac_status=$?
1678   if test -s conftest.err; then
1679     grep -v '^ *+' conftest.err >conftest.er1
1680     cat conftest.er1 >&5
1681     mv -f conftest.er1 conftest.err
1682   fi
1683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684   test $ac_status = 0; } && {
1685          test -z "$ac_c_werror_flag" ||
1686          test ! -s conftest.err
1687        } && test -s conftest$ac_exeext && {
1688          test "$cross_compiling" = yes ||
1689          test -x conftest$ac_exeext
1690        }; then :
1691   ac_retval=0
1692 else
1693   $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696         ac_retval=1
1697 fi
1698   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700   # interfere with the next link command; also delete a directory that is
1701   # left behind by Apple's compiler.  We do this before executing the actions.
1702   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704   as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_link
1707
1708 # ac_fn_c_try_cpp LINENO
1709 # ----------------------
1710 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_cpp ()
1712 {
1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714   if { { ac_try="$ac_cpp conftest.$ac_ext"
1715 case "(($ac_try" in
1716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717   *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1722   ac_status=$?
1723   if test -s conftest.err; then
1724     grep -v '^ *+' conftest.err >conftest.er1
1725     cat conftest.er1 >&5
1726     mv -f conftest.er1 conftest.err
1727   fi
1728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729   test $ac_status = 0; } > conftest.i && {
1730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1731          test ! -s conftest.err
1732        }; then :
1733   ac_retval=0
1734 else
1735   $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738     ac_retval=1
1739 fi
1740   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741   as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_cpp
1744
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1749 ac_fn_c_try_run ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755   *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759   (eval "$ac_link") 2>&5
1760   ac_status=$?
1761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763   { { case "(($ac_try" in
1764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765   *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769   (eval "$ac_try") 2>&5
1770   ac_status=$?
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; }; }; then :
1773   ac_retval=0
1774 else
1775   $as_echo "$as_me: program exited with status $ac_status" >&5
1776        $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779        ac_retval=$ac_status
1780 fi
1781   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783   as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_run
1786
1787 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1788 # -------------------------------------------
1789 # Tests whether TYPE exists after having included INCLUDES, setting cache
1790 # variable VAR accordingly.
1791 ac_fn_c_check_type ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797   $as_echo_n "(cached) " >&6
1798 else
1799   eval "$3=no"
1800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h.  */
1802 $4
1803 int
1804 main ()
1805 {
1806 if (sizeof ($2))
1807          return 0;
1808   ;
1809   return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h.  */
1815 $4
1816 int
1817 main ()
1818 {
1819 if (sizeof (($2)))
1820             return 0;
1821   ;
1822   return 0;
1823 }
1824 _ACEOF
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826
1827 else
1828   eval "$3=yes"
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_type
1840
1841 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists and can be compiled using the include files in
1844 # INCLUDES, setting the cache variable VAR accordingly.
1845 ac_fn_c_check_header_compile ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851   $as_echo_n "(cached) " >&6
1852 else
1853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h.  */
1855 $4
1856 #include <$2>
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859   eval "$3=yes"
1860 else
1861   eval "$3=no"
1862 fi
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_header_compile
1871
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881   $as_echo_n "(cached) " >&6
1882 else
1883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890     which can conflict with char $2 (); below.
1891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892     <limits.h> exists even on freestanding compilers.  */
1893
1894 #ifdef __STDC__
1895 # include <limits.h>
1896 #else
1897 # include <assert.h>
1898 #endif
1899
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903    Use char because int might match the return type of a GCC
1904    builtin and then its argument prototype would still apply.  */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910     to always fail with ENOSYS.  Some functions are actually named
1911     something starting with __ and the normal name is an alias.  */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main ()
1918 {
1919 return $2 ();
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"; then :
1925   eval "$3=yes"
1926 else
1927   eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext \
1930     conftest$ac_exeext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_func
1938
1939 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942 # the include files in INCLUDES and setting the cache variable VAR
1943 # accordingly.
1944 ac_fn_c_check_header_mongrel ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   if eval \${$3+:} false; then :
1948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \${$3+:} false; then :
1951   $as_echo_n "(cached) " >&6
1952 fi
1953 eval ac_res=\$$3
1954                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 else
1957   # Is the header compilable?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959 $as_echo_n "checking $2 usability... " >&6; }
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h.  */
1962 $4
1963 #include <$2>
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966   ac_header_compiler=yes
1967 else
1968   ac_header_compiler=no
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972 $as_echo "$ac_header_compiler" >&6; }
1973
1974 # Is the header present?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976 $as_echo_n "checking $2 presence... " >&6; }
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h.  */
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_cpp "$LINENO"; then :
1982   ac_header_preproc=yes
1983 else
1984   ac_header_preproc=no
1985 fi
1986 rm -f conftest.err conftest.i conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988 $as_echo "$ac_header_preproc" >&6; }
1989
1990 # So?  What about this header?
1991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1992   yes:no: )
1993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997     ;;
1998   no:yes:* )
1999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2002 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2006 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009     ;;
2010 esac
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   eval "$3=\$ac_header_compiler"
2017 fi
2018 eval ac_res=\$$3
2019                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 fi
2022   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024 } # ac_fn_c_check_header_mongrel
2025
2026 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2027 # --------------------------------------------
2028 # Tries to find the compile-time value of EXPR in a program that includes
2029 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2030 # computed
2031 ac_fn_c_compute_int ()
2032 {
2033   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034   if test "$cross_compiling" = yes; then
2035     # Depending upon the size, compute the lo and hi bounds.
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h.  */
2038 $4
2039 int
2040 main ()
2041 {
2042 static int test_array [1 - 2 * !(($2) >= 0)];
2043 test_array [0] = 0;
2044 return test_array [0];
2045
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051   ac_lo=0 ac_mid=0
2052   while :; do
2053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h.  */
2055 $4
2056 int
2057 main ()
2058 {
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060 test_array [0] = 0;
2061 return test_array [0];
2062
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068   ac_hi=$ac_mid; break
2069 else
2070   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2071                         if test $ac_lo -le $ac_mid; then
2072                           ac_lo= ac_hi=
2073                           break
2074                         fi
2075                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078   done
2079 else
2080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h.  */
2082 $4
2083 int
2084 main ()
2085 {
2086 static int test_array [1 - 2 * !(($2) < 0)];
2087 test_array [0] = 0;
2088 return test_array [0];
2089
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095   ac_hi=-1 ac_mid=-1
2096   while :; do
2097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h.  */
2099 $4
2100 int
2101 main ()
2102 {
2103 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2104 test_array [0] = 0;
2105 return test_array [0];
2106
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112   ac_lo=$ac_mid; break
2113 else
2114   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2115                         if test $ac_mid -le $ac_hi; then
2116                           ac_lo= ac_hi=
2117                           break
2118                         fi
2119                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122   done
2123 else
2124   ac_lo= ac_hi=
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 # Binary search between lo and hi bounds.
2130 while test "x$ac_lo" != "x$ac_hi"; do
2131   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h.  */
2134 $4
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139 test_array [0] = 0;
2140 return test_array [0];
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147   ac_hi=$ac_mid
2148 else
2149   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 case $ac_lo in #((
2154 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2155 '') ac_retval=1 ;;
2156 esac
2157   else
2158     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h.  */
2160 $4
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2163 #include <stdio.h>
2164 #include <stdlib.h>
2165 int
2166 main ()
2167 {
2168
2169   FILE *f = fopen ("conftest.val", "w");
2170   if (! f)
2171     return 1;
2172   if (($2) < 0)
2173     {
2174       long int i = longval ();
2175       if (i != ($2))
2176         return 1;
2177       fprintf (f, "%ld", i);
2178     }
2179   else
2180     {
2181       unsigned long int i = ulongval ();
2182       if (i != ($2))
2183         return 1;
2184       fprintf (f, "%lu", i);
2185     }
2186   /* Do not output a trailing newline, as this causes \r\n confusion
2187      on some platforms.  */
2188   return ferror (f) || fclose (f) != 0;
2189
2190   ;
2191   return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_run "$LINENO"; then :
2195   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2196 else
2197   ac_retval=1
2198 fi
2199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2200   conftest.$ac_objext conftest.beam conftest.$ac_ext
2201 rm -f conftest.val
2202
2203   fi
2204   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205   as_fn_set_status $ac_retval
2206
2207 } # ac_fn_c_compute_int
2208
2209 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2210 # ----------------------------------------------------
2211 # Tries to find if the field MEMBER exists in type AGGR, after including
2212 # INCLUDES, setting cache variable VAR accordingly.
2213 ac_fn_c_check_member ()
2214 {
2215   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2217 $as_echo_n "checking for $2.$3... " >&6; }
2218 if eval \${$4+:} false; then :
2219   $as_echo_n "(cached) " >&6
2220 else
2221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $5
2224 int
2225 main ()
2226 {
2227 static $2 ac_aggr;
2228 if (ac_aggr.$3)
2229 return 0;
2230   ;
2231   return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235   eval "$4=yes"
2236 else
2237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 $5
2240 int
2241 main ()
2242 {
2243 static $2 ac_aggr;
2244 if (sizeof ac_aggr.$3)
2245 return 0;
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251   eval "$4=yes"
2252 else
2253   eval "$4=no"
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 fi
2259 eval ac_res=\$$4
2260                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263
2264 } # ac_fn_c_check_member
2265
2266 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2267 # ---------------------------------------------
2268 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2269 # accordingly.
2270 ac_fn_c_check_decl ()
2271 {
2272   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273   as_decl_name=`echo $2|sed 's/ *(.*//'`
2274   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2276 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2277 if eval \${$3+:} false; then :
2278   $as_echo_n "(cached) " >&6
2279 else
2280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 $4
2283 int
2284 main ()
2285 {
2286 #ifndef $as_decl_name
2287 #ifdef __cplusplus
2288   (void) $as_decl_use;
2289 #else
2290   (void) $as_decl_name;
2291 #endif
2292 #endif
2293
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299   eval "$3=yes"
2300 else
2301   eval "$3=no"
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 eval ac_res=\$$3
2306                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309
2310 } # ac_fn_c_check_decl
2311 cat >config.log <<_ACEOF
2312 This file contains any messages produced by compilers while
2313 running configure, to aid debugging if configure makes a mistake.
2314
2315 It was created by $as_me, which was
2316 generated by GNU Autoconf 2.69.  Invocation command line was
2317
2318   $ $0 $@
2319
2320 _ACEOF
2321 exec 5>>config.log
2322 {
2323 cat <<_ASUNAME
2324 ## --------- ##
2325 ## Platform. ##
2326 ## --------- ##
2327
2328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2333
2334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2336
2337 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2338 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2341 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2342 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2343 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2344
2345 _ASUNAME
2346
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352     $as_echo "PATH: $as_dir"
2353   done
2354 IFS=$as_save_IFS
2355
2356 } >&5
2357
2358 cat >&5 <<_ACEOF
2359
2360
2361 ## ----------- ##
2362 ## Core tests. ##
2363 ## ----------- ##
2364
2365 _ACEOF
2366
2367
2368 # Keep a trace of the command line.
2369 # Strip out --no-create and --no-recursion so they do not pile up.
2370 # Strip out --silent because we don't want to record it for future runs.
2371 # Also quote any args containing shell meta-characters.
2372 # Make two passes to allow for proper duplicate-argument suppression.
2373 ac_configure_args=
2374 ac_configure_args0=
2375 ac_configure_args1=
2376 ac_must_keep_next=false
2377 for ac_pass in 1 2
2378 do
2379   for ac_arg
2380   do
2381     case $ac_arg in
2382     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2383     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2384     | -silent | --silent | --silen | --sile | --sil)
2385       continue ;;
2386     *\'*)
2387       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2388     esac
2389     case $ac_pass in
2390     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2391     2)
2392       as_fn_append ac_configure_args1 " '$ac_arg'"
2393       if test $ac_must_keep_next = true; then
2394         ac_must_keep_next=false # Got value, back to normal.
2395       else
2396         case $ac_arg in
2397           *=* | --config-cache | -C | -disable-* | --disable-* \
2398           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2399           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2400           | -with-* | --with-* | -without-* | --without-* | --x)
2401             case "$ac_configure_args0 " in
2402               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2403             esac
2404             ;;
2405           -* ) ac_must_keep_next=true ;;
2406         esac
2407       fi
2408       as_fn_append ac_configure_args " '$ac_arg'"
2409       ;;
2410     esac
2411   done
2412 done
2413 { ac_configure_args0=; unset ac_configure_args0;}
2414 { ac_configure_args1=; unset ac_configure_args1;}
2415
2416 # When interrupted or exit'd, cleanup temporary files, and complete
2417 # config.log.  We remove comments because anyway the quotes in there
2418 # would cause problems or look ugly.
2419 # WARNING: Use '\'' to represent an apostrophe within the trap.
2420 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421 trap 'exit_status=$?
2422   # Save into config.log some information that might help in debugging.
2423   {
2424     echo
2425
2426     $as_echo "## ---------------- ##
2427 ## Cache variables. ##
2428 ## ---------------- ##"
2429     echo
2430     # The following way of writing the cache mishandles newlines in values,
2431 (
2432   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2433     eval ac_val=\$$ac_var
2434     case $ac_val in #(
2435     *${as_nl}*)
2436       case $ac_var in #(
2437       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2439       esac
2440       case $ac_var in #(
2441       _ | IFS | as_nl) ;; #(
2442       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2443       *) { eval $ac_var=; unset $ac_var;} ;;
2444       esac ;;
2445     esac
2446   done
2447   (set) 2>&1 |
2448     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2449     *${as_nl}ac_space=\ *)
2450       sed -n \
2451         "s/'\''/'\''\\\\'\'''\''/g;
2452           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2453       ;; #(
2454     *)
2455       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2456       ;;
2457     esac |
2458     sort
2459 )
2460     echo
2461
2462     $as_echo "## ----------------- ##
2463 ## Output variables. ##
2464 ## ----------------- ##"
2465     echo
2466     for ac_var in $ac_subst_vars
2467     do
2468       eval ac_val=\$$ac_var
2469       case $ac_val in
2470       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471       esac
2472       $as_echo "$ac_var='\''$ac_val'\''"
2473     done | sort
2474     echo
2475
2476     if test -n "$ac_subst_files"; then
2477       $as_echo "## ------------------- ##
2478 ## File substitutions. ##
2479 ## ------------------- ##"
2480       echo
2481       for ac_var in $ac_subst_files
2482       do
2483         eval ac_val=\$$ac_var
2484         case $ac_val in
2485         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486         esac
2487         $as_echo "$ac_var='\''$ac_val'\''"
2488       done | sort
2489       echo
2490     fi
2491
2492     if test -s confdefs.h; then
2493       $as_echo "## ----------- ##
2494 ## confdefs.h. ##
2495 ## ----------- ##"
2496       echo
2497       cat confdefs.h
2498       echo
2499     fi
2500     test "$ac_signal" != 0 &&
2501       $as_echo "$as_me: caught signal $ac_signal"
2502     $as_echo "$as_me: exit $exit_status"
2503   } >&5
2504   rm -f core *.core core.conftest.* &&
2505     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2506     exit $exit_status
2507 ' 0
2508 for ac_signal in 1 2 13 15; do
2509   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2510 done
2511 ac_signal=0
2512
2513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2514 rm -f -r conftest* confdefs.h
2515
2516 $as_echo "/* confdefs.h */" > confdefs.h
2517
2518 # Predefined preprocessor variables.
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_NAME "$PACKAGE_NAME"
2522 _ACEOF
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2526 _ACEOF
2527
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2530 _ACEOF
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_STRING "$PACKAGE_STRING"
2534 _ACEOF
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2538 _ACEOF
2539
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_URL "$PACKAGE_URL"
2542 _ACEOF
2543
2544
2545 # Let the site file select an alternate cache file if it wants to.
2546 # Prefer an explicitly selected file to automatically selected ones.
2547 ac_site_file1=NONE
2548 ac_site_file2=NONE
2549 if test -n "$CONFIG_SITE"; then
2550   # We do not want a PATH search for config.site.
2551   case $CONFIG_SITE in #((
2552     -*)  ac_site_file1=./$CONFIG_SITE;;
2553     */*) ac_site_file1=$CONFIG_SITE;;
2554     *)   ac_site_file1=./$CONFIG_SITE;;
2555   esac
2556 elif test "x$prefix" != xNONE; then
2557   ac_site_file1=$prefix/share/config.site
2558   ac_site_file2=$prefix/etc/config.site
2559 else
2560   ac_site_file1=$ac_default_prefix/share/config.site
2561   ac_site_file2=$ac_default_prefix/etc/config.site
2562 fi
2563 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2564 do
2565   test "x$ac_site_file" = xNONE && continue
2566   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2567     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2568 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2569     sed 's/^/| /' "$ac_site_file" >&5
2570     . "$ac_site_file" \
2571       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 as_fn_error $? "failed to load site script $ac_site_file
2574 See \`config.log' for more details" "$LINENO" 5; }
2575   fi
2576 done
2577
2578 if test -r "$cache_file"; then
2579   # Some versions of bash will fail to source /dev/null (special files
2580   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2581   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2582     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2583 $as_echo "$as_me: loading cache $cache_file" >&6;}
2584     case $cache_file in
2585       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2586       *)                      . "./$cache_file";;
2587     esac
2588   fi
2589 else
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2591 $as_echo "$as_me: creating cache $cache_file" >&6;}
2592   >$cache_file
2593 fi
2594
2595 as_fn_append ac_header_list " stdlib.h"
2596 as_fn_append ac_header_list " unistd.h"
2597 as_fn_append ac_header_list " sys/param.h"
2598 # Check that the precious variables saved in the cache have kept the same
2599 # value.
2600 ac_cache_corrupted=false
2601 for ac_var in $ac_precious_vars; do
2602   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2603   eval ac_new_set=\$ac_env_${ac_var}_set
2604   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2605   eval ac_new_val=\$ac_env_${ac_var}_value
2606   case $ac_old_set,$ac_new_set in
2607     set,)
2608       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2610       ac_cache_corrupted=: ;;
2611     ,set)
2612       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2613 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2614       ac_cache_corrupted=: ;;
2615     ,);;
2616     *)
2617       if test "x$ac_old_val" != "x$ac_new_val"; then
2618         # differences in whitespace do not lead to failure.
2619         ac_old_val_w=`echo x $ac_old_val`
2620         ac_new_val_w=`echo x $ac_new_val`
2621         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2622           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2623 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2624           ac_cache_corrupted=:
2625         else
2626           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2627 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2628           eval $ac_var=\$ac_old_val
2629         fi
2630         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2631 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2632         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2633 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2634       fi;;
2635   esac
2636   # Pass precious variables to config.status.
2637   if test "$ac_new_set" = set; then
2638     case $ac_new_val in
2639     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2640     *) ac_arg=$ac_var=$ac_new_val ;;
2641     esac
2642     case " $ac_configure_args " in
2643       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2644       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2645     esac
2646   fi
2647 done
2648 if $ac_cache_corrupted; then
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2652 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2653   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2654 fi
2655 ## -------------------- ##
2656 ## Main body of script. ##
2657 ## -------------------- ##
2658
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664
2665
2666
2667 ac_aux_dir=
2668 for ac_dir in config "$srcdir"/config; do
2669   if test -f "$ac_dir/install-sh"; then
2670     ac_aux_dir=$ac_dir
2671     ac_install_sh="$ac_aux_dir/install-sh -c"
2672     break
2673   elif test -f "$ac_dir/install.sh"; then
2674     ac_aux_dir=$ac_dir
2675     ac_install_sh="$ac_aux_dir/install.sh -c"
2676     break
2677   elif test -f "$ac_dir/shtool"; then
2678     ac_aux_dir=$ac_dir
2679     ac_install_sh="$ac_aux_dir/shtool install -c"
2680     break
2681   fi
2682 done
2683 if test -z "$ac_aux_dir"; then
2684   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2685 fi
2686
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2692 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2693 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2694
2695
2696 ac_config_headers="$ac_config_headers lib/config.h"
2697
2698
2699 MCONFIG=./MCONFIG
2700
2701 BINARY_TYPE=bin
2702 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2703         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2704 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2705         | tr \" " "`
2706 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2707 MONTH=`echo $DATE | awk -F- '{print $2}'`
2708 YEAR=`echo $DATE | awk -F- '{print $3}'`
2709
2710 if expr $YEAR ">" 1900 > /dev/null ; then
2711         E2FSPROGS_YEAR=$YEAR
2712 elif expr $YEAR ">" 90 >/dev/null ; then
2713         E2FSPROGS_YEAR=19$YEAR
2714 else
2715         E2FSPROGS_YEAR=20$YEAR
2716 fi
2717
2718 case $MONTH in
2719 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2720 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2721 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2722 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2723 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2724 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2725 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2726 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2727 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2728 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2729 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2730 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2731 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2732 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2733 esac
2734
2735 base_ver=`echo $E2FSPROGS_VERSION | \
2736                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2737
2738 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2739
2740 case $E2FSPROGS_VERSION in
2741 *-WIP|pre-*)
2742         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2743         ;;
2744 *)
2745         E2FSPROGS_PKGVER="$base_ver"
2746         ;;
2747 esac
2748
2749 unset DATE MONTH YEAR base_ver pre_vers date_spec
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2751 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2753 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2754
2755
2756
2757
2758
2759 # Make sure we can run config.sub.
2760 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2761   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2762
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2764 $as_echo_n "checking build system type... " >&6; }
2765 if ${ac_cv_build+:} false; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   ac_build_alias=$build_alias
2769 test "x$ac_build_alias" = x &&
2770   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2771 test "x$ac_build_alias" = x &&
2772   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2773 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2774   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2775
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2778 $as_echo "$ac_cv_build" >&6; }
2779 case $ac_cv_build in
2780 *-*-*) ;;
2781 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2782 esac
2783 build=$ac_cv_build
2784 ac_save_IFS=$IFS; IFS='-'
2785 set x $ac_cv_build
2786 shift
2787 build_cpu=$1
2788 build_vendor=$2
2789 shift; shift
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2792 build_os=$*
2793 IFS=$ac_save_IFS
2794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2795
2796
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2798 $as_echo_n "checking host system type... " >&6; }
2799 if ${ac_cv_host+:} false; then :
2800   $as_echo_n "(cached) " >&6
2801 else
2802   if test "x$host_alias" = x; then
2803   ac_cv_host=$ac_cv_build
2804 else
2805   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2806     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2807 fi
2808
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2811 $as_echo "$ac_cv_host" >&6; }
2812 case $ac_cv_host in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2815 esac
2816 host=$ac_cv_host
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_host
2819 shift
2820 host_cpu=$1
2821 host_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 host_os=$*
2826 IFS=$ac_save_IFS
2827 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2828
2829
2830 DLOPEN_LIB=''
2831 ac_ext=c
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842   $as_echo_n "(cached) " >&6
2843 else
2844   if test -n "$CC"; then
2845   ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852     for ac_exec_ext in '' $ac_executable_extensions; do
2853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859   done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 fi
2875 if test -z "$ac_cv_prog_CC"; then
2876   ac_ct_CC=$CC
2877   # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2882   $as_echo_n "(cached) " >&6
2883 else
2884   if test -n "$ac_ct_CC"; then
2885   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892     for ac_exec_ext in '' $ac_executable_extensions; do
2893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894     ac_cv_prog_ac_ct_CC="gcc"
2895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899   done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907 $as_echo "$ac_ct_CC" >&6; }
2908 else
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913   if test "x$ac_ct_CC" = x; then
2914     CC=""
2915   else
2916     case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2921 esac
2922     CC=$ac_ct_CC
2923   fi
2924 else
2925   CC="$ac_cv_prog_CC"
2926 fi
2927
2928 if test -z "$CC"; then
2929           if test -n "$ac_tool_prefix"; then
2930     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}cc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CC+:} false; then :
2935   $as_echo_n "(cached) " >&6
2936 else
2937   if test -n "$CC"; then
2938   ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945     for ac_exec_ext in '' $ac_executable_extensions; do
2946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947     ac_cv_prog_CC="${ac_tool_prefix}cc"
2948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952   done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966
2967   fi
2968 fi
2969 if test -z "$CC"; then
2970   # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975   $as_echo_n "(cached) " >&6
2976 else
2977   if test -n "$CC"; then
2978   ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980   ac_prog_rejected=no
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984   IFS=$as_save_IFS
2985   test -z "$as_dir" && as_dir=.
2986     for ac_exec_ext in '' $ac_executable_extensions; do
2987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989        ac_prog_rejected=yes
2990        continue
2991      fi
2992     ac_cv_prog_CC="cc"
2993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997   done
2998 IFS=$as_save_IFS
2999
3000 if test $ac_prog_rejected = yes; then
3001   # We found a bogon in the path, so make sure we never use it.
3002   set dummy $ac_cv_prog_CC
3003   shift
3004   if test $# != 0; then
3005     # We chose a different compiler from the bogus one.
3006     # However, it has the same basename, so the bogon will be chosen
3007     # first if we set CC to just the basename; use the full file name.
3008     shift
3009     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3010   fi
3011 fi
3012 fi
3013 fi
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 fi
3025 if test -z "$CC"; then
3026   if test -n "$ac_tool_prefix"; then
3027   for ac_prog in cl.exe
3028   do
3029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_CC+:} false; then :
3034   $as_echo_n "(cached) " >&6
3035 else
3036   if test -n "$CC"; then
3037   ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044     for ac_exec_ext in '' $ac_executable_extensions; do
3045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051   done
3052 IFS=$as_save_IFS
3053
3054 fi
3055 fi
3056 CC=$ac_cv_prog_CC
3057 if test -n "$CC"; then
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3060 else
3061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 fi
3064
3065
3066     test -n "$CC" && break
3067   done
3068 fi
3069 if test -z "$CC"; then
3070   ac_ct_CC=$CC
3071   for ac_prog in cl.exe
3072 do
3073   # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078   $as_echo_n "(cached) " >&6
3079 else
3080   if test -n "$ac_ct_CC"; then
3081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086   IFS=$as_save_IFS
3087   test -z "$as_dir" && as_dir=.
3088     for ac_exec_ext in '' $ac_executable_extensions; do
3089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090     ac_cv_prog_ac_ct_CC="$ac_prog"
3091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092     break 2
3093   fi
3094 done
3095   done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3104 else
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110   test -n "$ac_ct_CC" && break
3111 done
3112
3113   if test "x$ac_ct_CC" = x; then
3114     CC=""
3115   else
3116     case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3121 esac
3122     CC=$ac_ct_CC
3123   fi
3124 fi
3125
3126 fi
3127
3128
3129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error $? "no acceptable C compiler found in \$PATH
3132 See \`config.log' for more details" "$LINENO" 5; }
3133
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3136 set X $ac_compile
3137 ac_compiler=$2
3138 for ac_option in --version -v -V -qversion; do
3139   { { ac_try="$ac_compiler $ac_option >&5"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3147   ac_status=$?
3148   if test -s conftest.err; then
3149     sed '10a\
3150 ... rest of stderr output deleted ...
3151          10q' conftest.err >conftest.er1
3152     cat conftest.er1 >&5
3153   fi
3154   rm -f conftest.er1 conftest.err
3155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156   test $ac_status = 0; }
3157 done
3158
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h.  */
3161
3162 int
3163 main ()
3164 {
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 ac_clean_files_save=$ac_clean_files
3171 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3172 # Try to create an executable without -o first, disregard a.out.
3173 # It will help us diagnose broken compilers, and finding out an intuition
3174 # of exeext.
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3176 $as_echo_n "checking whether the C compiler works... " >&6; }
3177 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178
3179 # The possible output files:
3180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3181
3182 ac_rmfiles=
3183 for ac_file in $ac_files
3184 do
3185   case $ac_file in
3186     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3188   esac
3189 done
3190 rm -f $ac_rmfiles
3191
3192 if { { ac_try="$ac_link_default"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199   (eval "$ac_link_default") 2>&5
3200   ac_status=$?
3201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202   test $ac_status = 0; }; then :
3203   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3204 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3205 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3206 # so that the user can short-circuit this test for compilers unknown to
3207 # Autoconf.
3208 for ac_file in $ac_files ''
3209 do
3210   test -f "$ac_file" || continue
3211   case $ac_file in
3212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3213         ;;
3214     [ab].out )
3215         # We found the default executable, but exeext='' is most
3216         # certainly right.
3217         break;;
3218     *.* )
3219         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3220         then :; else
3221            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222         fi
3223         # We set ac_cv_exeext here because the later test for it is not
3224         # safe: cross compilers may not add the suffix if given an `-o'
3225         # argument, so we may need to know it at that point already.
3226         # Even if this section looks crufty: it has the advantage of
3227         # actually working.
3228         break;;
3229     * )
3230         break;;
3231   esac
3232 done
3233 test "$ac_cv_exeext" = no && ac_cv_exeext=
3234
3235 else
3236   ac_file=''
3237 fi
3238 if test -z "$ac_file"; then :
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error 77 "C compiler cannot create executables
3247 See \`config.log' for more details" "$LINENO" 5; }
3248 else
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3251 fi
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3253 $as_echo_n "checking for C compiler default output file name... " >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3255 $as_echo "$ac_file" >&6; }
3256 ac_exeext=$ac_cv_exeext
3257
3258 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3259 ac_clean_files=$ac_clean_files_save
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3261 $as_echo_n "checking for suffix of executables... " >&6; }
3262 if { { ac_try="$ac_link"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269   (eval "$ac_link") 2>&5
3270   ac_status=$?
3271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272   test $ac_status = 0; }; then :
3273   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3274 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3275 # work properly (i.e., refer to `conftest.exe'), while it won't with
3276 # `rm'.
3277 for ac_file in conftest.exe conftest conftest.*; do
3278   test -f "$ac_file" || continue
3279   case $ac_file in
3280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282           break;;
3283     * ) break;;
3284   esac
3285 done
3286 else
3287   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3290 See \`config.log' for more details" "$LINENO" 5; }
3291 fi
3292 rm -f conftest conftest$ac_cv_exeext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294 $as_echo "$ac_cv_exeext" >&6; }
3295
3296 rm -f conftest.$ac_ext
3297 EXEEXT=$ac_cv_exeext
3298 ac_exeext=$EXEEXT
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h.  */
3301 #include <stdio.h>
3302 int
3303 main ()
3304 {
3305 FILE *f = fopen ("conftest.out", "w");
3306  return ferror (f) || fclose (f) != 0;
3307
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 ac_clean_files="$ac_clean_files conftest.out"
3313 # Check that the compiler produces executables we can run.  If not, either
3314 # the compiler is broken, or we cross compile.
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3316 $as_echo_n "checking whether we are cross compiling... " >&6; }
3317 if test "$cross_compiling" != yes; then
3318   { { ac_try="$ac_link"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325   (eval "$ac_link") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328   test $ac_status = 0; }
3329   if { ac_try='./conftest$ac_cv_exeext'
3330   { { case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336   (eval "$ac_try") 2>&5
3337   ac_status=$?
3338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339   test $ac_status = 0; }; }; then
3340     cross_compiling=no
3341   else
3342     if test "$cross_compiling" = maybe; then
3343         cross_compiling=yes
3344     else
3345         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details" "$LINENO" 5; }
3350     fi
3351   fi
3352 fi
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3354 $as_echo "$cross_compiling" >&6; }
3355
3356 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3357 ac_clean_files=$ac_clean_files_save
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3359 $as_echo_n "checking for suffix of object files... " >&6; }
3360 if ${ac_cv_objext+:} false; then :
3361   $as_echo_n "(cached) " >&6
3362 else
3363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h.  */
3365
3366 int
3367 main ()
3368 {
3369
3370   ;
3371   return 0;
3372 }
3373 _ACEOF
3374 rm -f conftest.o conftest.obj
3375 if { { ac_try="$ac_compile"
3376 case "(($ac_try" in
3377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378   *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382   (eval "$ac_compile") 2>&5
3383   ac_status=$?
3384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385   test $ac_status = 0; }; then :
3386   for ac_file in conftest.o conftest.obj conftest.*; do
3387   test -f "$ac_file" || continue;
3388   case $ac_file in
3389     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3390     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3391        break;;
3392   esac
3393 done
3394 else
3395   $as_echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot compute suffix of object files: cannot compile
3401 See \`config.log' for more details" "$LINENO" 5; }
3402 fi
3403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3406 $as_echo "$ac_cv_objext" >&6; }
3407 OBJEXT=$ac_cv_objext
3408 ac_objext=$OBJEXT
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3411 if ${ac_cv_c_compiler_gnu+:} false; then :
3412   $as_echo_n "(cached) " >&6
3413 else
3414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416
3417 int
3418 main ()
3419 {
3420 #ifndef __GNUC__
3421        choke me
3422 #endif
3423
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429   ac_compiler_gnu=yes
3430 else
3431   ac_compiler_gnu=no
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3435
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3439 if test $ac_compiler_gnu = yes; then
3440   GCC=yes
3441 else
3442   GCC=
3443 fi
3444 ac_test_CFLAGS=${CFLAGS+set}
3445 ac_save_CFLAGS=$CFLAGS
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3448 if ${ac_cv_prog_cc_g+:} false; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   ac_save_c_werror_flag=$ac_c_werror_flag
3452    ac_c_werror_flag=yes
3453    ac_cv_prog_cc_g=no
3454    CFLAGS="-g"
3455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h.  */
3457
3458 int
3459 main ()
3460 {
3461
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467   ac_cv_prog_cc_g=yes
3468 else
3469   CFLAGS=""
3470       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482
3483 else
3484   ac_c_werror_flag=$ac_save_c_werror_flag
3485          CFLAGS="-g"
3486          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 if ac_fn_c_try_compile "$LINENO"; then :
3498   ac_cv_prog_cc_g=yes
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505    ac_c_werror_flag=$ac_save_c_werror_flag
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3508 $as_echo "$ac_cv_prog_cc_g" >&6; }
3509 if test "$ac_test_CFLAGS" = set; then
3510   CFLAGS=$ac_save_CFLAGS
3511 elif test $ac_cv_prog_cc_g = yes; then
3512   if test "$GCC" = yes; then
3513     CFLAGS="-g -O2"
3514   else
3515     CFLAGS="-g"
3516   fi
3517 else
3518   if test "$GCC" = yes; then
3519     CFLAGS="-O2"
3520   else
3521     CFLAGS=
3522   fi
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3525 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3526 if ${ac_cv_prog_cc_c89+:} false; then :
3527   $as_echo_n "(cached) " >&6
3528 else
3529   ac_cv_prog_cc_c89=no
3530 ac_save_CC=$CC
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h.  */
3533 #include <stdarg.h>
3534 #include <stdio.h>
3535 struct stat;
3536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3537 struct buf { int x; };
3538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539 static char *e (p, i)
3540      char **p;
3541      int i;
3542 {
3543   return p[i];
3544 }
3545 static char *f (char * (*g) (char **, int), char **p, ...)
3546 {
3547   char *s;
3548   va_list v;
3549   va_start (v,p);
3550   s = g (p, va_arg (v,int));
3551   va_end (v);
3552   return s;
3553 }
3554
3555 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3556    function prototypes and stuff, but not '\xHH' hex character constants.
3557    These don't provoke an error unfortunately, instead are silently treated
3558    as 'x'.  The following induces an error, until -std is added to get
3559    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3560    array size at least.  It's necessary to write '\x00'==0 to get something
3561    that's true only with -std.  */
3562 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3563
3564 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3565    inside strings and character constants.  */
3566 #define FOO(x) 'x'
3567 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3568
3569 int test (int i, double x);
3570 struct s1 {int (*f) (int a);};
3571 struct s2 {int (*f) (double a);};
3572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3573 int argc;
3574 char **argv;
3575 int
3576 main ()
3577 {
3578 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3579   ;
3580   return 0;
3581 }
3582 _ACEOF
3583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3584         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3585 do
3586   CC="$ac_save_CC $ac_arg"
3587   if ac_fn_c_try_compile "$LINENO"; then :
3588   ac_cv_prog_cc_c89=$ac_arg
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext
3591   test "x$ac_cv_prog_cc_c89" != "xno" && break
3592 done
3593 rm -f conftest.$ac_ext
3594 CC=$ac_save_CC
3595
3596 fi
3597 # AC_CACHE_VAL
3598 case "x$ac_cv_prog_cc_c89" in
3599   x)
3600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3601 $as_echo "none needed" >&6; } ;;
3602   xno)
3603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3604 $as_echo "unsupported" >&6; } ;;
3605   *)
3606     CC="$CC $ac_cv_prog_cc_c89"
3607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3608 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3609 esac
3610 if test "x$ac_cv_prog_cc_c89" != xno; then :
3611
3612 fi
3613
3614 ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
3620
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3622 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3623 if ${ac_cv_lib_dl_dlopen+:} false; then :
3624   $as_echo_n "(cached) " >&6
3625 else
3626   ac_check_lib_save_LIBS=$LIBS
3627 LIBS="-ldl  $LIBS"
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h.  */
3630
3631 /* Override any GCC internal prototype to avoid an error.
3632    Use char because int might match the return type of a GCC
3633    builtin and then its argument prototype would still apply.  */
3634 #ifdef __cplusplus
3635 extern "C"
3636 #endif
3637 char dlopen ();
3638 int
3639 main ()
3640 {
3641 return dlopen ();
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 if ac_fn_c_try_link "$LINENO"; then :
3647   ac_cv_lib_dl_dlopen=yes
3648 else
3649   ac_cv_lib_dl_dlopen=no
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext \
3652     conftest$ac_exeext conftest.$ac_ext
3653 LIBS=$ac_check_lib_save_LIBS
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3656 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3657 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3658   DLOPEN_LIB=-ldl
3659
3660 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3661
3662 fi
3663
3664
3665 WITH_DIET_LIBC=
3666
3667 # Check whether --with-diet-libc was given.
3668 if test "${with_diet_libc+set}" = set; then :
3669   withval=$with_diet_libc; CC="diet cc -nostdinc"
3670 WITH_DIET_LIBC=yes
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3672 $as_echo "CC=$CC" >&6; }
3673 fi
3674
3675 # Check whether --with-cc was given.
3676 if test "${with_cc+set}" = set; then :
3677   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3678 fi
3679
3680
3681 # Check whether --with-ccopts was given.
3682 if test "${with_ccopts+set}" = set; then :
3683   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3684 fi
3685
3686
3687 # Check whether --with-ldopts was given.
3688 if test "${with_ldopts+set}" = set; then :
3689   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3690 fi
3691
3692 ac_ext=c
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 if test -n "$ac_tool_prefix"; then
3698   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3699 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if ${ac_cv_prog_CC+:} false; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   if test -n "$CC"; then
3706   ac_cv_prog_CC="$CC" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711   IFS=$as_save_IFS
3712   test -z "$as_dir" && as_dir=.
3713     for ac_exec_ext in '' $ac_executable_extensions; do
3714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717     break 2
3718   fi
3719 done
3720   done
3721 IFS=$as_save_IFS
3722
3723 fi
3724 fi
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3729 else
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734
3735 fi
3736 if test -z "$ac_cv_prog_CC"; then
3737   ac_ct_CC=$CC
3738   # Extract the first word of "gcc", so it can be a program name with args.
3739 set dummy gcc; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3743   $as_echo_n "(cached) " >&6
3744 else
3745   if test -n "$ac_ct_CC"; then
3746   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751   IFS=$as_save_IFS
3752   test -z "$as_dir" && as_dir=.
3753     for ac_exec_ext in '' $ac_executable_extensions; do
3754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755     ac_cv_prog_ac_ct_CC="gcc"
3756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757     break 2
3758   fi
3759 done
3760   done
3761 IFS=$as_save_IFS
3762
3763 fi
3764 fi
3765 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3766 if test -n "$ac_ct_CC"; then
3767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3768 $as_echo "$ac_ct_CC" >&6; }
3769 else
3770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3772 fi
3773
3774   if test "x$ac_ct_CC" = x; then
3775     CC=""
3776   else
3777     case $cross_compiling:$ac_tool_warned in
3778 yes:)
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3782 esac
3783     CC=$ac_ct_CC
3784   fi
3785 else
3786   CC="$ac_cv_prog_CC"
3787 fi
3788
3789 if test -z "$CC"; then
3790           if test -n "$ac_tool_prefix"; then
3791     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3792 set dummy ${ac_tool_prefix}cc; ac_word=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if ${ac_cv_prog_CC+:} false; then :
3796   $as_echo_n "(cached) " >&6
3797 else
3798   if test -n "$CC"; then
3799   ac_cv_prog_CC="$CC" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804   IFS=$as_save_IFS
3805   test -z "$as_dir" && as_dir=.
3806     for ac_exec_ext in '' $ac_executable_extensions; do
3807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808     ac_cv_prog_CC="${ac_tool_prefix}cc"
3809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813   done
3814 IFS=$as_save_IFS
3815
3816 fi
3817 fi
3818 CC=$ac_cv_prog_CC
3819 if test -n "$CC"; then
3820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3821 $as_echo "$CC" >&6; }
3822 else
3823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3825 fi
3826
3827
3828   fi
3829 fi
3830 if test -z "$CC"; then
3831   # Extract the first word of "cc", so it can be a program name with args.
3832 set dummy cc; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_CC+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   if test -n "$CC"; then
3839   ac_cv_prog_CC="$CC" # Let the user override the test.
3840 else
3841   ac_prog_rejected=no
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847     for ac_exec_ext in '' $ac_executable_extensions; do
3848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3850        ac_prog_rejected=yes
3851        continue
3852      fi
3853     ac_cv_prog_CC="cc"
3854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858   done
3859 IFS=$as_save_IFS
3860
3861 if test $ac_prog_rejected = yes; then
3862   # We found a bogon in the path, so make sure we never use it.
3863   set dummy $ac_cv_prog_CC
3864   shift
3865   if test $# != 0; then
3866     # We chose a different compiler from the bogus one.
3867     # However, it has the same basename, so the bogon will be chosen
3868     # first if we set CC to just the basename; use the full file name.
3869     shift
3870     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3871   fi
3872 fi
3873 fi
3874 fi
3875 CC=$ac_cv_prog_CC
3876 if test -n "$CC"; then
3877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3879 else
3880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 fi
3883
3884
3885 fi
3886 if test -z "$CC"; then
3887   if test -n "$ac_tool_prefix"; then
3888   for ac_prog in cl.exe
3889   do
3890     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_prog_CC+:} false; then :
3895   $as_echo_n "(cached) " >&6
3896 else
3897   if test -n "$CC"; then
3898   ac_cv_prog_CC="$CC" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903   IFS=$as_save_IFS
3904   test -z "$as_dir" && as_dir=.
3905     for ac_exec_ext in '' $ac_executable_extensions; do
3906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909     break 2
3910   fi
3911 done
3912   done
3913 IFS=$as_save_IFS
3914
3915 fi
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3921 else
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 fi
3925
3926
3927     test -n "$CC" && break
3928   done
3929 fi
3930 if test -z "$CC"; then
3931   ac_ct_CC=$CC
3932   for ac_prog in cl.exe
3933 do
3934   # Extract the first word of "$ac_prog", so it can be a program name with args.
3935 set dummy $ac_prog; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941   if test -n "$ac_ct_CC"; then
3942   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947   IFS=$as_save_IFS
3948   test -z "$as_dir" && as_dir=.
3949     for ac_exec_ext in '' $ac_executable_extensions; do
3950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951     ac_cv_prog_ac_ct_CC="$ac_prog"
3952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953     break 2
3954   fi
3955 done
3956   done
3957 IFS=$as_save_IFS
3958
3959 fi
3960 fi
3961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3962 if test -n "$ac_ct_CC"; then
3963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3964 $as_echo "$ac_ct_CC" >&6; }
3965 else
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968 fi
3969
3970
3971   test -n "$ac_ct_CC" && break
3972 done
3973
3974   if test "x$ac_ct_CC" = x; then
3975     CC=""
3976   else
3977     case $cross_compiling:$ac_tool_warned in
3978 yes:)
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981 ac_tool_warned=yes ;;
3982 esac
3983     CC=$ac_ct_CC
3984   fi
3985 fi
3986
3987 fi
3988
3989
3990 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error $? "no acceptable C compiler found in \$PATH
3993 See \`config.log' for more details" "$LINENO" 5; }
3994
3995 # Provide some information about the compiler.
3996 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3997 set X $ac_compile
3998 ac_compiler=$2
3999 for ac_option in --version -v -V -qversion; do
4000   { { ac_try="$ac_compiler $ac_option >&5"
4001 case "(($ac_try" in
4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003   *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4008   ac_status=$?
4009   if test -s conftest.err; then
4010     sed '10a\
4011 ... rest of stderr output deleted ...
4012          10q' conftest.err >conftest.er1
4013     cat conftest.er1 >&5
4014   fi
4015   rm -f conftest.er1 conftest.err
4016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017   test $ac_status = 0; }
4018 done
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4021 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4022 if ${ac_cv_c_compiler_gnu+:} false; then :
4023   $as_echo_n "(cached) " >&6
4024 else
4025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h.  */
4027
4028 int
4029 main ()
4030 {
4031 #ifndef __GNUC__
4032        choke me
4033 #endif
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040   ac_compiler_gnu=yes
4041 else
4042   ac_compiler_gnu=no
4043 fi
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4046
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4049 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4050 if test $ac_compiler_gnu = yes; then
4051   GCC=yes
4052 else
4053   GCC=
4054 fi
4055 ac_test_CFLAGS=${CFLAGS+set}
4056 ac_save_CFLAGS=$CFLAGS
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4058 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4059 if ${ac_cv_prog_cc_g+:} false; then :
4060   $as_echo_n "(cached) " >&6
4061 else
4062   ac_save_c_werror_flag=$ac_c_werror_flag
4063    ac_c_werror_flag=yes
4064    ac_cv_prog_cc_g=no
4065    CFLAGS="-g"
4066    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h.  */
4068
4069 int
4070 main ()
4071 {
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078   ac_cv_prog_cc_g=yes
4079 else
4080   CFLAGS=""
4081       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h.  */
4083
4084 int
4085 main ()
4086 {
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 if ac_fn_c_try_compile "$LINENO"; then :
4093
4094 else
4095   ac_c_werror_flag=$ac_save_c_werror_flag
4096          CFLAGS="-g"
4097          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4099
4100 int
4101 main ()
4102 {
4103
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109   ac_cv_prog_cc_g=yes
4110 fi
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116    ac_c_werror_flag=$ac_save_c_werror_flag
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4119 $as_echo "$ac_cv_prog_cc_g" >&6; }
4120 if test "$ac_test_CFLAGS" = set; then
4121   CFLAGS=$ac_save_CFLAGS
4122 elif test $ac_cv_prog_cc_g = yes; then
4123   if test "$GCC" = yes; then
4124     CFLAGS="-g -O2"
4125   else
4126     CFLAGS="-g"
4127   fi
4128 else
4129   if test "$GCC" = yes; then
4130     CFLAGS="-O2"
4131   else
4132     CFLAGS=
4133   fi
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4136 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4137 if ${ac_cv_prog_cc_c89+:} false; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   ac_cv_prog_cc_c89=no
4141 ac_save_CC=$CC
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h.  */
4144 #include <stdarg.h>
4145 #include <stdio.h>
4146 struct stat;
4147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4148 struct buf { int x; };
4149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4150 static char *e (p, i)
4151      char **p;
4152      int i;
4153 {
4154   return p[i];
4155 }
4156 static char *f (char * (*g) (char **, int), char **p, ...)
4157 {
4158   char *s;
4159   va_list v;
4160   va_start (v,p);
4161   s = g (p, va_arg (v,int));
4162   va_end (v);
4163   return s;
4164 }
4165
4166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4167    function prototypes and stuff, but not '\xHH' hex character constants.
4168    These don't provoke an error unfortunately, instead are silently treated
4169    as 'x'.  The following induces an error, until -std is added to get
4170    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4171    array size at least.  It's necessary to write '\x00'==0 to get something
4172    that's true only with -std.  */
4173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4174
4175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4176    inside strings and character constants.  */
4177 #define FOO(x) 'x'
4178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4179
4180 int test (int i, double x);
4181 struct s1 {int (*f) (int a);};
4182 struct s2 {int (*f) (double a);};
4183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4184 int argc;
4185 char **argv;
4186 int
4187 main ()
4188 {
4189 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4190   ;
4191   return 0;
4192 }
4193 _ACEOF
4194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4195         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4196 do
4197   CC="$ac_save_CC $ac_arg"
4198   if ac_fn_c_try_compile "$LINENO"; then :
4199   ac_cv_prog_cc_c89=$ac_arg
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext
4202   test "x$ac_cv_prog_cc_c89" != "xno" && break
4203 done
4204 rm -f conftest.$ac_ext
4205 CC=$ac_save_CC
4206
4207 fi
4208 # AC_CACHE_VAL
4209 case "x$ac_cv_prog_cc_c89" in
4210   x)
4211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4212 $as_echo "none needed" >&6; } ;;
4213   xno)
4214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4215 $as_echo "unsupported" >&6; } ;;
4216   *)
4217     CC="$CC $ac_cv_prog_cc_c89"
4218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4219 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4220 esac
4221 if test "x$ac_cv_prog_cc_c89" != xno; then :
4222
4223 fi
4224
4225 ac_ext=c
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231 if test "$GCC" = yes; then
4232    RDYNAMIC="-rdynamic"
4233
4234 fi
4235 ac_ext=c
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4241 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4242 # On Suns, sometimes $CPP names a directory.
4243 if test -n "$CPP" && test -d "$CPP"; then
4244   CPP=
4245 fi
4246 if test -z "$CPP"; then
4247   if ${ac_cv_prog_CPP+:} false; then :
4248   $as_echo_n "(cached) " >&6
4249 else
4250       # Double quotes because CPP needs to be expanded
4251     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4252     do
4253       ac_preproc_ok=false
4254 for ac_c_preproc_warn_flag in '' yes
4255 do
4256   # Use a header file that comes with gcc, so configuring glibc
4257   # with a fresh cross-compiler works.
4258   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259   # <limits.h> exists even on freestanding compilers.
4260   # On the NeXT, cc -E runs the code through the compiler's parser,
4261   # not just through cpp. "Syntax error" is here to catch this case.
4262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h.  */
4264 #ifdef __STDC__
4265 # include <limits.h>
4266 #else
4267 # include <assert.h>
4268 #endif
4269                      Syntax error
4270 _ACEOF
4271 if ac_fn_c_try_cpp "$LINENO"; then :
4272
4273 else
4274   # Broken: fails on valid input.
4275 continue
4276 fi
4277 rm -f conftest.err conftest.i conftest.$ac_ext
4278
4279   # OK, works on sane cases.  Now check whether nonexistent headers
4280   # can be detected and how.
4281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h.  */
4283 #include <ac_nonexistent.h>
4284 _ACEOF
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286   # Broken: success on invalid input.
4287 continue
4288 else
4289   # Passes both tests.
4290 ac_preproc_ok=:
4291 break
4292 fi
4293 rm -f conftest.err conftest.i conftest.$ac_ext
4294
4295 done
4296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297 rm -f conftest.i conftest.err conftest.$ac_ext
4298 if $ac_preproc_ok; then :
4299   break
4300 fi
4301
4302     done
4303     ac_cv_prog_CPP=$CPP
4304
4305 fi
4306   CPP=$ac_cv_prog_CPP
4307 else
4308   ac_cv_prog_CPP=$CPP
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4311 $as_echo "$CPP" >&6; }
4312 ac_preproc_ok=false
4313 for ac_c_preproc_warn_flag in '' yes
4314 do
4315   # Use a header file that comes with gcc, so configuring glibc
4316   # with a fresh cross-compiler works.
4317   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318   # <limits.h> exists even on freestanding compilers.
4319   # On the NeXT, cc -E runs the code through the compiler's parser,
4320   # not just through cpp. "Syntax error" is here to catch this case.
4321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h.  */
4323 #ifdef __STDC__
4324 # include <limits.h>
4325 #else
4326 # include <assert.h>
4327 #endif
4328                      Syntax error
4329 _ACEOF
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4331
4332 else
4333   # Broken: fails on valid input.
4334 continue
4335 fi
4336 rm -f conftest.err conftest.i conftest.$ac_ext
4337
4338   # OK, works on sane cases.  Now check whether nonexistent headers
4339   # can be detected and how.
4340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342 #include <ac_nonexistent.h>
4343 _ACEOF
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4345   # Broken: success on invalid input.
4346 continue
4347 else
4348   # Passes both tests.
4349 ac_preproc_ok=:
4350 break
4351 fi
4352 rm -f conftest.err conftest.i conftest.$ac_ext
4353
4354 done
4355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356 rm -f conftest.i conftest.err conftest.$ac_ext
4357 if $ac_preproc_ok; then :
4358
4359 else
4360   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4363 See \`config.log' for more details" "$LINENO" 5; }
4364 fi
4365
4366 ac_ext=c
4367 ac_cpp='$CPP $CPPFLAGS'
4368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4373 $as_echo_n "checking for additional special compiler flags... " >&6; }
4374 if test "$GCC" = yes
4375 then
4376     case "$host_cpu" in
4377         alpha)          addcflags="-mieee" ;;
4378     esac
4379 fi
4380 if test "x$addcflags" != x
4381 then
4382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4383 $as_echo "$addcflags" >&6; }
4384     CFLAGS="$addcflags $CFLAGS"
4385 else
4386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4387 $as_echo "(none)" >&6; }
4388 fi
4389 LIB_EXT=.a
4390 STATIC_LIB_EXT=.a
4391 PROFILED_LIB_EXT=.a
4392
4393 # Check whether --with-root-prefix was given.
4394 if test "${with_root_prefix+set}" = set; then :
4395   withval=$with_root_prefix; root_prefix=$withval
4396 else
4397   root_prefix=NONE
4398 fi
4399 # Check whether --enable-maintainer-mode was given.
4400 if test "${enable_maintainer_mode+set}" = set; then :
4401   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4402 then
4403         MAINTAINER_CMT=#
4404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4405 $as_echo "Disabling maintainer mode" >&6; }
4406 else
4407         MAINTAINER_CMT=
4408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4409 $as_echo "Enabling maintainer mode" >&6; }
4410 fi
4411
4412 else
4413   MAINTAINER_CMT=#
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4415 $as_echo "Disabling maintainer mode by default" >&6; }
4416
4417 fi
4418
4419
4420 # Check whether --enable-symlink-install was given.
4421 if test "${enable_symlink_install+set}" = set; then :
4422   enableval=$enable_symlink_install; if test "$enableval" = "no"
4423 then
4424         LINK_INSTALL_FLAGS=-f
4425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4426 $as_echo "Disabling symlinks for install" >&6; }
4427 else
4428         LINK_INSTALL_FLAGS=-sf
4429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4430 $as_echo "Enabling symlinks for install" >&6; }
4431 fi
4432
4433 else
4434   LINK_INSTALL_FLAGS=-f
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4436 $as_echo "Disabling symlinks for install by default" >&6; }
4437
4438 fi
4439
4440
4441 relative_symlink_defined=
4442 # Check whether --enable-relative-symlinks was given.
4443 if test "${enable_relative_symlinks+set}" = set; then :
4444   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4445 then
4446         SYMLINK_RELATIVE=
4447         relative_symlink_defined=yes
4448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4449 $as_echo "Disabling relative symlinks for install" >&6; }
4450 else
4451         SYMLINK_RELATIVE=--relative
4452         relative_symlink_defined=yes
4453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4454 $as_echo "Enabling relative symlinks for install" >&6; }
4455 fi
4456 fi
4457
4458 # Check whether --enable-symlink-relative-symlinks was given.
4459 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4460   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4461 then
4462         SYMLINK_RELATIVE=yes
4463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4464 $as_echo "Disabling relative symlinks for install" >&6; }
4465 else
4466         SYMLINK_RELATIVE=--relative
4467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4468 $as_echo "Enabling relative symlinks for install" >&6; }
4469 fi
4470
4471 else
4472   if test -z "$relative_symlink_defined"
4473 then
4474         SYMLINK_RELATIVE=
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4476 $as_echo "Disabling relative symlinks for install by default" >&6; }
4477 fi
4478
4479 fi
4480
4481
4482 # Check whether --enable-symlink-build was given.
4483 if test "${enable_symlink_build+set}" = set; then :
4484   enableval=$enable_symlink_build; if test "$enableval" = "no"
4485 then
4486         LINK_BUILD_FLAGS=
4487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4488 $as_echo "Disabling symlinks for build" >&6; }
4489 else
4490         LINK_BUILD_FLAGS=-s
4491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4492 $as_echo "Enabling symlinks for build" >&6; }
4493 fi
4494
4495 else
4496   LINK_BUILD_FLAGS=
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4498 $as_echo "Disabling symlinks for build by default" >&6; }
4499
4500 fi
4501
4502
4503 # Check whether --enable-verbose-makecmds was given.
4504 if test "${enable_verbose_makecmds+set}" = set; then :
4505   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4506 then
4507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4508 $as_echo "Disabling verbose make commands" >&6; }
4509         E=@echo
4510         ES=echo
4511         Q=@
4512 else
4513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4514 $as_echo "Enabling verbose make commands" >&6; }
4515         E=@\\#
4516         ES=\\#
4517         Q=
4518 fi
4519
4520 else
4521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4522 $as_echo "Disabling verbose make commands" >&6; }
4523 E=@echo
4524 ES=echo
4525 Q=@
4526
4527 fi
4528
4529
4530
4531
4532 # Check whether --enable-compression was given.
4533 if test "${enable_compression+set}" = set; then :
4534   enableval=$enable_compression; if test "$enableval" = "no"
4535 then
4536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4537 $as_echo "Disabling compression support" >&6; }
4538 else
4539
4540 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4541
4542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4543 $as_echo "Enabling compression support" >&6; }
4544         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4545 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4546 fi
4547
4548 else
4549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4550 $as_echo "Disabling compression support by default" >&6; }
4551
4552 fi
4553
4554
4555 # Check whether --enable-htree was given.
4556 if test "${enable_htree+set}" = set; then :
4557   enableval=$enable_htree; if test "$enableval" = "no"
4558 then
4559         HTREE_CMT=#
4560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4561 $as_echo "Disabling htree directory support" >&6; }
4562 else
4563         HTREE_CMT=
4564         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4565
4566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4567 $as_echo "Enabling htree directory support" >&6; }
4568 fi
4569
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 by default" >&5
4575 $as_echo "Enabling htree directory support by default" >&6; }
4576
4577 fi
4578
4579
4580 E2_PKG_CONFIG_STATIC=--static
4581 LDFLAG_DYNAMIC=
4582 PRIVATE_LIBS_CMT=
4583 # Check whether --enable-elf-shlibs was given.
4584 if test "${enable_elf_shlibs+set}" = set; then :
4585   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4586 then
4587         ELF_CMT=#
4588         MAKEFILE_ELF=/dev/null
4589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4590 $as_echo "Disabling ELF shared libraries" >&6; }
4591 else
4592         E2_PKG_CONFIG_STATIC=
4593         ELF_CMT=
4594         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4595         case "$host_os" in
4596         solaris2.*)
4597                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4598         ;;
4599         esac
4600         BINARY_TYPE=elfbin
4601         LIB_EXT=.so
4602         PRIVATE_LIBS_CMT=#
4603         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4605 $as_echo "Enabling ELF shared libraries" >&6; }
4606 fi
4607
4608 else
4609   MAKEFILE_ELF=/dev/null
4610 ELF_CMT=#
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4612 $as_echo "Disabling ELF shared libraries by default" >&6; }
4613
4614 fi
4615
4616
4617
4618 # Check whether --enable-bsd-shlibs was given.
4619 if test "${enable_bsd_shlibs+set}" = set; then :
4620   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4621 then
4622         BSDLIB_CMT=#
4623         MAKEFILE_BSDLIB=/dev/null
4624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4625 $as_echo "Disabling BSD shared libraries" >&6; }
4626 else
4627         E2_PKG_CONFIG_STATIC=
4628         BSDLIB_CMT=
4629         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4630         LIB_EXT=.so
4631         case "$host_os" in
4632         darwin*)
4633                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4634                 LIB_EXT=.dylib
4635         ;;
4636         esac
4637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4638 $as_echo "Enabling BSD shared libraries" >&6; }
4639 fi
4640
4641 else
4642   MAKEFILE_BSDLIB=/dev/null
4643 BSDLIB_CMT=#
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4645 $as_echo "Disabling BSD shared libraries by default" >&6; }
4646
4647 fi
4648
4649
4650
4651 # Check whether --enable-profile was given.
4652 if test "${enable_profile+set}" = set; then :
4653   enableval=$enable_profile; if test "$enableval" = "no"
4654 then
4655         PROFILE_CMT=#
4656         MAKEFILE_PROFILE=/dev/null
4657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4658 $as_echo "Disabling profiling libraries" >&6; }
4659 else
4660         PROFILE_CMT=
4661         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4662         PROFILED_LIB_EXT=_p.a
4663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4664 $as_echo "Building profiling libraries" >&6; }
4665 fi
4666
4667 else
4668   PROFILE_CMT=#
4669 MAKEFILE_PROFILE=/dev/null
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4671 $as_echo "Disabling profiling libraries by default" >&6; }
4672
4673 fi
4674
4675
4676
4677 # Check whether --enable-checker was given.
4678 if test "${enable_checker+set}" = set; then :
4679   enableval=$enable_checker; if test "$enableval" = "no"
4680 then
4681         CHECKER_CMT=#
4682         MAKEFILE_CHECKER=/dev/null
4683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4684 $as_echo "Disabling checker libraries" >&6; }
4685 else
4686         CHECKER_CMT=
4687         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4689 $as_echo "Building checker libraries" >&6; }
4690 fi
4691
4692 else
4693   CHECKER_CMT=#
4694 MAKEFILE_CHECKER=/dev/null
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4696 $as_echo "Disabling checker libraries by default" >&6; }
4697
4698 fi
4699
4700
4701
4702
4703
4704
4705
4706
4707 # Check whether --enable-jbd-debug was given.
4708 if test "${enable_jbd_debug+set}" = set; then :
4709   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4710 then
4711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4712 $as_echo "Disabling journal debugging" >&6; }
4713 else
4714
4715 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4716
4717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4718 $as_echo "Enabling journal debugging" >&6; }
4719 fi
4720
4721 else
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4723 $as_echo "Disabling journal debugging by default" >&6; }
4724
4725 fi
4726
4727 # Check whether --enable-blkid-debug was given.
4728 if test "${enable_blkid_debug+set}" = set; then :
4729   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4730 then
4731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4732 $as_echo "Disabling blkid debugging" >&6; }
4733 else
4734
4735 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4736
4737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4738 $as_echo "Enabling blkid debugging" >&6; }
4739 fi
4740
4741 else
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4743 $as_echo "Disabling blkid debugging by default" >&6; }
4744
4745 fi
4746
4747 # Check whether --enable-testio-debug was given.
4748 if test "${enable_testio_debug+set}" = set; then :
4749   enableval=$enable_testio_debug;
4750 if test "$enableval" = "no"
4751 then
4752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4753 $as_echo "Disabling testio debugging" >&6; }
4754         TEST_IO_CMT="#"
4755 else
4756         TEST_IO_CMT=
4757         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4758
4759         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4760 $as_echo "Enabling testio debugging" >&6; }
4761 fi
4762
4763 else
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4765 $as_echo "Enabling testio debugging by default" >&6; }
4766 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4767
4768 TEST_IO_CMT=
4769
4770 fi
4771
4772
4773
4774
4775 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4776         if test -n "$ac_tool_prefix"; then
4777   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   case $PKG_CONFIG in
4785   [\\/]* | ?:[\\/]*)
4786   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4787   ;;
4788   *)
4789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794     for ac_exec_ext in '' $ac_executable_extensions; do
4795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801   done
4802 IFS=$as_save_IFS
4803
4804   ;;
4805 esac
4806 fi
4807 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4808 if test -n "$PKG_CONFIG"; then
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4810 $as_echo "$PKG_CONFIG" >&6; }
4811 else
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816
4817 fi
4818 if test -z "$ac_cv_path_PKG_CONFIG"; then
4819   ac_pt_PKG_CONFIG=$PKG_CONFIG
4820   # Extract the first word of "pkg-config", so it can be a program name with args.
4821 set dummy pkg-config; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   case $ac_pt_PKG_CONFIG in
4828   [\\/]* | ?:[\\/]*)
4829   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4830   ;;
4831   *)
4832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837     for ac_exec_ext in '' $ac_executable_extensions; do
4838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844   done
4845 IFS=$as_save_IFS
4846
4847   ;;
4848 esac
4849 fi
4850 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4851 if test -n "$ac_pt_PKG_CONFIG"; then
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4853 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4854 else
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4857 fi
4858
4859   if test "x$ac_pt_PKG_CONFIG" = x; then
4860     PKG_CONFIG=""
4861   else
4862     case $cross_compiling:$ac_tool_warned in
4863 yes:)
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4866 ac_tool_warned=yes ;;
4867 esac
4868     PKG_CONFIG=$ac_pt_PKG_CONFIG
4869   fi
4870 else
4871   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4872 fi
4873
4874 fi
4875 if test -n "$PKG_CONFIG"; then
4876         _pkg_min_version=0.9.0
4877         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4878 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4879         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4880                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4881 $as_echo "yes" >&6; }
4882         else
4883                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885                 PKG_CONFIG=""
4886         fi
4887
4888 fi
4889 LIBUUID=
4890 DEPLIBUUID=
4891 STATIC_LIBUUID=
4892 DEPSTATIC_LIBUUID=
4893 PROFILED_LIBUUID=
4894 DEPPROFILED_LIBUUID=
4895 UUID_CMT=
4896 # Check whether --enable-libuuid was given.
4897 if test "${enable_libuuid+set}" = set; then :
4898   enableval=$enable_libuuid; if test "$enableval" = "no"
4899 then
4900         if test -z "$PKG_CONFIG"; then
4901                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4902         fi
4903
4904         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4905 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4906 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   ac_check_lib_save_LIBS=$LIBS
4910 LIBS="-luuid $LIBUUID $LIBS"
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h.  */
4913
4914 /* Override any GCC internal prototype to avoid an error.
4915    Use char because int might match the return type of a GCC
4916    builtin and then its argument prototype would still apply.  */
4917 #ifdef __cplusplus
4918 extern "C"
4919 #endif
4920 char uuid_generate ();
4921 int
4922 main ()
4923 {
4924 return uuid_generate ();
4925   ;
4926   return 0;
4927 }
4928 _ACEOF
4929 if ac_fn_c_try_link "$LINENO"; then :
4930   ac_cv_lib_uuid_uuid_generate=yes
4931 else
4932   ac_cv_lib_uuid_uuid_generate=no
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext \
4935     conftest$ac_exeext conftest.$ac_ext
4936 LIBS=$ac_check_lib_save_LIBS
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4939 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4940 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4941   LIBUUID=`$PKG_CONFIG --libs uuid`;
4942                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4943 else
4944   as_fn_error $? "external uuid library not found" "$LINENO" 5
4945 fi
4946
4947         UUID_CMT=#
4948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4949 $as_echo "Disabling private uuid library" >&6; }
4950 else
4951         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4952         DEPLIBUUID=$LIBUUID
4953         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4954         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4955         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4956         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4958 $as_echo "Enabling private uuid library" >&6; }
4959 fi
4960
4961 else
4962   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4963 DEPLIBUUID=$LIBUUID
4964 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4965 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4966 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4967 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4969 $as_echo "Enabling private uuid library by default" >&6; }
4970
4971 fi
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4983         if test -n "$ac_tool_prefix"; then
4984   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4985 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   case $PKG_CONFIG in
4992   [\\/]* | ?:[\\/]*)
4993   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4994   ;;
4995   *)
4996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008   done
5009 IFS=$as_save_IFS
5010
5011   ;;
5012 esac
5013 fi
5014 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5015 if test -n "$PKG_CONFIG"; then
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5017 $as_echo "$PKG_CONFIG" >&6; }
5018 else
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 fi
5022
5023
5024 fi
5025 if test -z "$ac_cv_path_PKG_CONFIG"; then
5026   ac_pt_PKG_CONFIG=$PKG_CONFIG
5027   # Extract the first word of "pkg-config", so it can be a program name with args.
5028 set dummy pkg-config; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5032   $as_echo_n "(cached) " >&6
5033 else
5034   case $ac_pt_PKG_CONFIG in
5035   [\\/]* | ?:[\\/]*)
5036   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5037   ;;
5038   *)
5039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044     for ac_exec_ext in '' $ac_executable_extensions; do
5045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051   done
5052 IFS=$as_save_IFS
5053
5054   ;;
5055 esac
5056 fi
5057 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5058 if test -n "$ac_pt_PKG_CONFIG"; then
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5060 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5061 else
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066   if test "x$ac_pt_PKG_CONFIG" = x; then
5067     PKG_CONFIG=""
5068   else
5069     case $cross_compiling:$ac_tool_warned in
5070 yes:)
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5073 ac_tool_warned=yes ;;
5074 esac
5075     PKG_CONFIG=$ac_pt_PKG_CONFIG
5076   fi
5077 else
5078   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5079 fi
5080
5081 fi
5082 if test -n "$PKG_CONFIG"; then
5083         _pkg_min_version=0.9.0
5084         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5085 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5086         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5087                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5088 $as_echo "yes" >&6; }
5089         else
5090                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5092                 PKG_CONFIG=""
5093         fi
5094
5095 fi
5096 LIBBLKID=
5097 DEPLIBBLKID=
5098 STATIC_LIBBLKID=
5099 DEPSTATIC_LIBBLKID=
5100 PROFILED_LIBBLKID=
5101 DEPPROFILED_LIBBLKID=
5102 BLKID_CMT=
5103
5104 # Check whether --enable-libblkid was given.
5105 if test "${enable_libblkid+set}" = set; then :
5106   enableval=$enable_libblkid; if test "$enableval" = "no"
5107 then
5108         if test -z "$PKG_CONFIG"; then
5109                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5110         fi
5111
5112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5113 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5114 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5115   $as_echo_n "(cached) " >&6
5116 else
5117   ac_check_lib_save_LIBS=$LIBS
5118 LIBS="-lblkid $LIBBLKID $LIBS"
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h.  */
5121
5122 /* Override any GCC internal prototype to avoid an error.
5123    Use char because int might match the return type of a GCC
5124    builtin and then its argument prototype would still apply.  */
5125 #ifdef __cplusplus
5126 extern "C"
5127 #endif
5128 char blkid_get_cache ();
5129 int
5130 main ()
5131 {
5132 return blkid_get_cache ();
5133   ;
5134   return 0;
5135 }
5136 _ACEOF
5137 if ac_fn_c_try_link "$LINENO"; then :
5138   ac_cv_lib_blkid_blkid_get_cache=yes
5139 else
5140   ac_cv_lib_blkid_blkid_get_cache=no
5141 fi
5142 rm -f core conftest.err conftest.$ac_objext \
5143     conftest$ac_exeext conftest.$ac_ext
5144 LIBS=$ac_check_lib_save_LIBS
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5147 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5148 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5149   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5150                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5151 else
5152   as_fn_error $? "external blkid library not found" "$LINENO" 5
5153 fi
5154
5155         BLKID_CMT=#
5156         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5157 $as_echo "Disabling private blkid library" >&6; }
5158 else
5159         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5160         DEPLIBBLKID=$LIBBLKID
5161         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5162         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5163         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5164         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5165         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5166
5167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5168 $as_echo "Enabling private blkid library" >&6; }
5169 fi
5170
5171 else
5172   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5173 DEPLIBBLKID=$LIBBLKID
5174 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5175 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5176 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5177 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5178 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5181 $as_echo "Enabling private blkid library by default" >&6; }
5182
5183 fi
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5195         if test -n "$ac_tool_prefix"; then
5196   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5197 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   case $PKG_CONFIG in
5204   [\\/]* | ?:[\\/]*)
5205   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5206   ;;
5207   *)
5208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213     for ac_exec_ext in '' $ac_executable_extensions; do
5214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220   done
5221 IFS=$as_save_IFS
5222
5223   ;;
5224 esac
5225 fi
5226 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5227 if test -n "$PKG_CONFIG"; then
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5229 $as_echo "$PKG_CONFIG" >&6; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234
5235
5236 fi
5237 if test -z "$ac_cv_path_PKG_CONFIG"; then
5238   ac_pt_PKG_CONFIG=$PKG_CONFIG
5239   # Extract the first word of "pkg-config", so it can be a program name with args.
5240 set dummy pkg-config; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5244   $as_echo_n "(cached) " >&6
5245 else
5246   case $ac_pt_PKG_CONFIG in
5247   [\\/]* | ?:[\\/]*)
5248   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5249   ;;
5250   *)
5251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254   IFS=$as_save_IFS
5255   test -z "$as_dir" && as_dir=.
5256     for ac_exec_ext in '' $ac_executable_extensions; do
5257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260     break 2
5261   fi
5262 done
5263   done
5264 IFS=$as_save_IFS
5265
5266   ;;
5267 esac
5268 fi
5269 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5270 if test -n "$ac_pt_PKG_CONFIG"; then
5271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5272 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5273 else
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5276 fi
5277
5278   if test "x$ac_pt_PKG_CONFIG" = x; then
5279     PKG_CONFIG=""
5280   else
5281     case $cross_compiling:$ac_tool_warned in
5282 yes:)
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5285 ac_tool_warned=yes ;;
5286 esac
5287     PKG_CONFIG=$ac_pt_PKG_CONFIG
5288   fi
5289 else
5290   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5291 fi
5292
5293 fi
5294 if test -n "$PKG_CONFIG"; then
5295         _pkg_min_version=0.9.0
5296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5297 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5298         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5299                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300 $as_echo "yes" >&6; }
5301         else
5302                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5304                 PKG_CONFIG=""
5305         fi
5306
5307 fi
5308
5309 # Check whether --enable-quota was given.
5310 if test "${enable_quota+set}" = set; then :
5311   enableval=$enable_quota; if test "$enableval" = "no"
5312 then
5313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5314 $as_echo "Disabling quota support" >&6; }
5315 else
5316         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5317
5318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5319 $as_echo "Enabling quota support" >&6; }
5320 fi
5321
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5324 $as_echo "Disabling quota support by default" >&6; }
5325
5326 fi
5327
5328 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5329 DEPLIBQUOTA=$LIBQUOTA
5330 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5331 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5332 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5333 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5334
5335
5336
5337
5338
5339
5340
5341 # Check whether --enable-debugfs was given.
5342 if test "${enable_debugfs+set}" = set; then :
5343   enableval=$enable_debugfs; if test "$enableval" = "no"
5344 then
5345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5346 $as_echo "Disabling debugfs support" >&6; }
5347         DEBUGFS_CMT="#"
5348 else
5349         DEBUGFS_CMT=
5350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5351 $as_echo "Enabling debugfs support" >&6; }
5352 fi
5353
5354 else
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5356 $as_echo "Enabling debugfs support by default" >&6; }
5357 DEBUGFS_CMT=
5358
5359 fi
5360
5361
5362 # Check whether --enable-imager was given.
5363 if test "${enable_imager+set}" = set; then :
5364   enableval=$enable_imager; if test "$enableval" = "no"
5365 then
5366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5367 $as_echo "Disabling e2image support" >&6; }
5368         IMAGER_CMT="#"
5369 else
5370         IMAGER_CMT=
5371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5372 $as_echo "Enabling e2image support" >&6; }
5373 fi
5374
5375 else
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5377 $as_echo "Enabling e2image support by default" >&6; }
5378 IMAGER_CMT=
5379
5380 fi
5381
5382
5383 # Check whether --enable-resizer was given.
5384 if test "${enable_resizer+set}" = set; then :
5385   enableval=$enable_resizer; if test "$enableval" = "no"
5386 then
5387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5388 $as_echo "Disabling e2resize support" >&6; }
5389         RESIZER_CMT="#"
5390 else
5391         RESIZER_CMT=
5392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5393 $as_echo "Enabling e2resize support" >&6; }
5394 fi
5395
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5398 $as_echo "Enabling e2resize support by default" >&6; }
5399 RESIZER_CMT=
5400
5401 fi
5402
5403
5404 # Check whether --enable-defrag was given.
5405 if test "${enable_defrag+set}" = set; then :
5406   enableval=$enable_defrag; if test "$enableval" = "no"
5407 then
5408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5409 $as_echo "Disabling e4defrag support" >&6; }
5410         DEFRAG_CMT="#"
5411 else
5412         DEFRAG_CMT=
5413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5414 $as_echo "Enabling e4defrag support" >&6; }
5415 fi
5416
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5419 $as_echo "Enabling e4defrag support by default" >&6; }
5420 DEFRAG_CMT=
5421
5422 fi
5423
5424
5425 # Check whether --enable-fsck was given.
5426 if test "${enable_fsck+set}" = set; then :
5427   enableval=$enable_fsck; if test "$enableval" = "no"
5428 then
5429         FSCK_PROG='' FSCK_MAN=''
5430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5431 $as_echo "Not building fsck wrapper" >&6; }
5432 else
5433         FSCK_PROG=fsck FSCK_MAN=fsck.8
5434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5435 $as_echo "Building fsck wrapper" >&6; }
5436 fi
5437
5438 else
5439   case "$host_os" in
5440   gnu*)
5441     FSCK_PROG='' FSCK_MAN=''
5442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5443 $as_echo "Not building fsck wrapper by default" >&6; }
5444     ;;
5445   *)
5446     FSCK_PROG=fsck FSCK_MAN=fsck.8
5447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5448 $as_echo "Building fsck wrapper by default" >&6; }
5449 esac
5450
5451 fi
5452
5453
5454
5455 # Check whether --enable-e2initrd-helper was given.
5456 if test "${enable_e2initrd_helper+set}" = set; then :
5457   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5458 then
5459         E2INITRD_PROG='' E2INITRD_MAN=''
5460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5461 $as_echo "Not building e2initrd helper" >&6; }
5462 else
5463         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5465 $as_echo "Building e2initrd helper" >&6; }
5466 fi
5467
5468 else
5469   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5471 $as_echo "Building e2initrd helper by default" >&6; }
5472
5473 fi
5474
5475
5476
5477 # Check whether --enable-tls was given.
5478 if test "${enable_tls+set}" = set; then :
5479   enableval=$enable_tls; if test "$enableval" = "no"
5480 then
5481         try_tls=""
5482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5483 $as_echo "Disabling thread local support" >&6; }
5484 else
5485         try_tls="yes"
5486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5487 $as_echo "Enabling thread local support" >&6; }
5488 fi
5489
5490 else
5491   if test -n "$WITH_DIET_LIBC"
5492 then
5493         try_tls=""
5494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5495 $as_echo "Diet libc does not support thread local support" >&6; }
5496 else
5497         try_tls="yes"
5498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5499 $as_echo "Try using thread local support by default" >&6; }
5500 fi
5501
5502 fi
5503
5504 if test "$try_tls" = "yes"
5505 then
5506
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5508 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5509   if ${ac_cv_tls+:} false; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512
5513     ax_tls_keywords="__thread __declspec(thread) none"
5514     for ax_tls_keyword in $ax_tls_keywords; do
5515        case $ax_tls_keyword in
5516           none) ac_cv_tls=none ; break ;;
5517           *)
5518              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h.  */
5520 #include <stdlib.h>
5521                  static void
5522                  foo(void) {
5523                  static  $ax_tls_keyword  int bar;
5524                  exit(1);
5525                  }
5526 int
5527 main ()
5528 {
5529
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 if ac_fn_c_try_compile "$LINENO"; then :
5535   ac_cv_tls=$ax_tls_keyword ; break
5536 else
5537   ac_cv_tls=none
5538
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541           esac
5542     done
5543
5544 fi
5545
5546
5547   if test "$ac_cv_tls" != "none"; then
5548
5549 cat >>confdefs.h <<_ACEOF
5550 #define TLS $ac_cv_tls
5551 _ACEOF
5552
5553   fi
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5555 $as_echo "$ac_cv_tls" >&6; }
5556
5557 fi
5558
5559 # Check whether --enable-uuidd was given.
5560 if test "${enable_uuidd+set}" = set; then :
5561   enableval=$enable_uuidd; if test "$enableval" = "no"
5562 then
5563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5564 $as_echo "Not building uuidd" >&6; }
5565         UUIDD_CMT="#"
5566 else
5567         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5568
5569         UUIDD_CMT=""
5570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5571 $as_echo "Building uuidd" >&6; }
5572 fi
5573
5574 else
5575   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5576
5577 UUIDD_CMT=""
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5579 $as_echo "Building uuidd by default" >&6; }
5580
5581 fi
5582
5583
5584
5585 # Check whether --enable-mmp was given.
5586 if test "${enable_mmp+set}" = set; then :
5587   enableval=$enable_mmp; if test "$enableval" = "no"
5588 then
5589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5590 $as_echo "Disabling mmp support" >&6; }
5591 else
5592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5593 $as_echo "Enabling mmp support" >&6; }
5594         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5595
5596 fi
5597
5598 else
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5600 $as_echo "Enabling mmp support by default" >&6; }
5601 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5602
5603
5604 fi
5605
5606
5607 # Check whether --enable-bmap-stats was given.
5608 if test "${enable_bmap_stats+set}" = set; then :
5609   enableval=$enable_bmap_stats; if test "$enableval" = "no"
5610 then
5611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5612 $as_echo "Disabling bitmap statistics support" >&6; }
5613 else
5614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5615 $as_echo "Enabling bitmap statistics support" >&6; }
5616         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5617
5618 fi
5619
5620 else
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5622 $as_echo "Enabling bitmap statistics support by default" >&6; }
5623 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5624
5625
5626 fi
5627
5628
5629 # Check whether --enable-bmap-stats-ops was given.
5630 if test "${enable_bmap_stats_ops+set}" = set; then :
5631   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5632 then
5633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5634 $as_echo "Disabling additional bitmap statistics" >&6; }
5635 else
5636                 if test "x${enable_bmap_stats}" = "xno"; then :
5637   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5639 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5640 See \`config.log' for more details" "$LINENO" 5; }
5641 fi
5642
5643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5644 $as_echo "Enabling additional bitmap statistics" >&6; }
5645         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5646
5647 fi
5648
5649 else
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5651 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5652
5653 fi
5654
5655 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5656
5657 GETTEXT_PACKAGE=e2fsprogs
5658 PACKAGE=e2fsprogs
5659 VERSION="$E2FSPROGS_VERSION"
5660 VERSION=0.14.1
5661
5662 cat >>confdefs.h <<_ACEOF
5663 #define PACKAGE "$PACKAGE"
5664 _ACEOF
5665
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define VERSION "$VERSION"
5669 _ACEOF
5670
5671
5672
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5676 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5677 set x ${MAKE-make}
5678 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5679 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5680   $as_echo_n "(cached) " >&6
5681 else
5682   cat >conftest.make <<\_ACEOF
5683 SHELL = /bin/sh
5684 all:
5685         @echo '@@@%%%=$(MAKE)=@@@%%%'
5686 _ACEOF
5687 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5688 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5689   *@@@%%%=?*=@@@%%%*)
5690     eval ac_cv_prog_make_${ac_make}_set=yes;;
5691   *)
5692     eval ac_cv_prog_make_${ac_make}_set=no;;
5693 esac
5694 rm -f conftest.make
5695 fi
5696 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698 $as_echo "yes" >&6; }
5699   SET_MAKE=
5700 else
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703   SET_MAKE="MAKE=${MAKE-make}"
5704 fi
5705
5706 # Find a good install program.  We prefer a C program (faster),
5707 # so one script is as good as another.  But avoid the broken or
5708 # incompatible versions:
5709 # SysV /etc/install, /usr/sbin/install
5710 # SunOS /usr/etc/install
5711 # IRIX /sbin/install
5712 # AIX /bin/install
5713 # AmigaOS /C/install, which installs bootblocks on floppy discs
5714 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5715 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5716 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5717 # OS/2's system install, which has a completely different semantic
5718 # ./install, which can be erroneously created by make from ./install.sh.
5719 # Reject install programs that cannot install multiple files.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5721 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5722 if test -z "$INSTALL"; then
5723 if ${ac_cv_path_install+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     # Account for people who put trailing slashes in PATH elements.
5732 case $as_dir/ in #((
5733   ./ | .// | /[cC]/* | \
5734   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5735   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5736   /usr/ucb/* ) ;;
5737   *)
5738     # OSF1 and SCO ODT 3.0 have their own names for install.
5739     # Don't use installbsd from OSF since it installs stuff as root
5740     # by default.
5741     for ac_prog in ginstall scoinst install; do
5742       for ac_exec_ext in '' $ac_executable_extensions; do
5743         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5744           if test $ac_prog = install &&
5745             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5746             # AIX install.  It has an incompatible calling convention.
5747             :
5748           elif test $ac_prog = install &&
5749             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5750             # program-specific install script used by HP pwplus--don't use.
5751             :
5752           else
5753             rm -rf conftest.one conftest.two conftest.dir
5754             echo one > conftest.one
5755             echo two > conftest.two
5756             mkdir conftest.dir
5757             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5758               test -s conftest.one && test -s conftest.two &&
5759               test -s conftest.dir/conftest.one &&
5760               test -s conftest.dir/conftest.two
5761             then
5762               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5763               break 3
5764             fi
5765           fi
5766         fi
5767       done
5768     done
5769     ;;
5770 esac
5771
5772   done
5773 IFS=$as_save_IFS
5774
5775 rm -rf conftest.one conftest.two conftest.dir
5776
5777 fi
5778   if test "${ac_cv_path_install+set}" = set; then
5779     INSTALL=$ac_cv_path_install
5780   else
5781     # As a last resort, use the slow shell script.  Don't cache a
5782     # value for INSTALL within a source directory, because that will
5783     # break other packages using the cache if that directory is
5784     # removed, or if the value is a relative name.
5785     INSTALL=$ac_install_sh
5786   fi
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5789 $as_echo "$INSTALL" >&6; }
5790
5791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5792 # It thinks the first close brace ends the variable substitution.
5793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5794
5795 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5796
5797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5798
5799
5800         MKINSTALLDIRS=
5801   if test -n "$ac_aux_dir"; then
5802     case "$ac_aux_dir" in
5803       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5804       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5805     esac
5806   fi
5807   if test -z "$MKINSTALLDIRS"; then
5808     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5809   fi
5810
5811
5812
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5814 $as_echo_n "checking whether NLS is requested... " >&6; }
5815     # Check whether --enable-nls was given.
5816 if test "${enable_nls+set}" = set; then :
5817   enableval=$enable_nls; USE_NLS=$enableval
5818 else
5819   USE_NLS=yes
5820 fi
5821
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5823 $as_echo "$USE_NLS" >&6; }
5824
5825
5826
5827
5828
5829
5830 # Prepare PATH_SEPARATOR.
5831 # The user is always right.
5832 if test "${PATH_SEPARATOR+set}" != set; then
5833   echo "#! /bin/sh" >conf$$.sh
5834   echo  "exit 0"   >>conf$$.sh
5835   chmod +x conf$$.sh
5836   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5837     PATH_SEPARATOR=';'
5838   else
5839     PATH_SEPARATOR=:
5840   fi
5841   rm -f conf$$.sh
5842 fi
5843
5844 # Find out how to test for executable files. Don't use a zero-byte file,
5845 # as systems may use methods other than mode bits to determine executability.
5846 cat >conf$$.file <<_ASEOF
5847 #! /bin/sh
5848 exit 0
5849 _ASEOF
5850 chmod +x conf$$.file
5851 if test -x conf$$.file >/dev/null 2>&1; then
5852   ac_executable_p="test -x"
5853 else
5854   ac_executable_p="test -f"
5855 fi
5856 rm -f conf$$.file
5857
5858 # Extract the first word of "msgfmt", so it can be a program name with args.
5859 set dummy msgfmt; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_path_MSGFMT+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   case "$MSGFMT" in
5866   [\\/]* | ?:[\\/]*)
5867     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5868     ;;
5869   *)
5870     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5871     for ac_dir in $PATH; do
5872       IFS="$ac_save_IFS"
5873       test -z "$ac_dir" && ac_dir=.
5874       for ac_exec_ext in '' $ac_executable_extensions; do
5875         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5876           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5877      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5878             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5879             break 2
5880           fi
5881         fi
5882       done
5883     done
5884     IFS="$ac_save_IFS"
5885   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5886     ;;
5887 esac
5888 fi
5889 MSGFMT="$ac_cv_path_MSGFMT"
5890 if test "$MSGFMT" != ":"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5892 $as_echo "$MSGFMT" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5899 set dummy gmsgfmt; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if ${ac_cv_path_GMSGFMT+:} false; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   case $GMSGFMT in
5906   [\\/]* | ?:[\\/]*)
5907   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5908   ;;
5909   *)
5910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915     for ac_exec_ext in '' $ac_executable_extensions; do
5916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922   done
5923 IFS=$as_save_IFS
5924
5925   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5926   ;;
5927 esac
5928 fi
5929 GMSGFMT=$ac_cv_path_GMSGFMT
5930 if test -n "$GMSGFMT"; then
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5932 $as_echo "$GMSGFMT" >&6; }
5933 else
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939
5940
5941 # Prepare PATH_SEPARATOR.
5942 # The user is always right.
5943 if test "${PATH_SEPARATOR+set}" != set; then
5944   echo "#! /bin/sh" >conf$$.sh
5945   echo  "exit 0"   >>conf$$.sh
5946   chmod +x conf$$.sh
5947   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5948     PATH_SEPARATOR=';'
5949   else
5950     PATH_SEPARATOR=:
5951   fi
5952   rm -f conf$$.sh
5953 fi
5954
5955 # Find out how to test for executable files. Don't use a zero-byte file,
5956 # as systems may use methods other than mode bits to determine executability.
5957 cat >conf$$.file <<_ASEOF
5958 #! /bin/sh
5959 exit 0
5960 _ASEOF
5961 chmod +x conf$$.file
5962 if test -x conf$$.file >/dev/null 2>&1; then
5963   ac_executable_p="test -x"
5964 else
5965   ac_executable_p="test -f"
5966 fi
5967 rm -f conf$$.file
5968
5969 # Extract the first word of "xgettext", so it can be a program name with args.
5970 set dummy xgettext; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_path_XGETTEXT+:} false; then :
5974   $as_echo_n "(cached) " >&6
5975 else
5976   case "$XGETTEXT" in
5977   [\\/]* | ?:[\\/]*)
5978     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5979     ;;
5980   *)
5981     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5982     for ac_dir in $PATH; do
5983       IFS="$ac_save_IFS"
5984       test -z "$ac_dir" && ac_dir=.
5985       for ac_exec_ext in '' $ac_executable_extensions; do
5986         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5987           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5988      (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
5989             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5990             break 2
5991           fi
5992         fi
5993       done
5994     done
5995     IFS="$ac_save_IFS"
5996   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5997     ;;
5998 esac
5999 fi
6000 XGETTEXT="$ac_cv_path_XGETTEXT"
6001 if test "$XGETTEXT" != ":"; then
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6003 $as_echo "$XGETTEXT" >&6; }
6004 else
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009     rm -f messages.po
6010
6011
6012 # Prepare PATH_SEPARATOR.
6013 # The user is always right.
6014 if test "${PATH_SEPARATOR+set}" != set; then
6015   echo "#! /bin/sh" >conf$$.sh
6016   echo  "exit 0"   >>conf$$.sh
6017   chmod +x conf$$.sh
6018   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6019     PATH_SEPARATOR=';'
6020   else
6021     PATH_SEPARATOR=:
6022   fi
6023   rm -f conf$$.sh
6024 fi
6025
6026 # Find out how to test for executable files. Don't use a zero-byte file,
6027 # as systems may use methods other than mode bits to determine executability.
6028 cat >conf$$.file <<_ASEOF
6029 #! /bin/sh
6030 exit 0
6031 _ASEOF
6032 chmod +x conf$$.file
6033 if test -x conf$$.file >/dev/null 2>&1; then
6034   ac_executable_p="test -x"
6035 else
6036   ac_executable_p="test -f"
6037 fi
6038 rm -f conf$$.file
6039
6040 # Extract the first word of "msgmerge", so it can be a program name with args.
6041 set dummy msgmerge; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_path_MSGMERGE+:} false; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   case "$MSGMERGE" in
6048   [\\/]* | ?:[\\/]*)
6049     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6050     ;;
6051   *)
6052     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6053     for ac_dir in $PATH; do
6054       IFS="$ac_save_IFS"
6055       test -z "$ac_dir" && ac_dir=.
6056       for ac_exec_ext in '' $ac_executable_extensions; do
6057         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6058           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6059             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6060             break 2
6061           fi
6062         fi
6063       done
6064     done
6065     IFS="$ac_save_IFS"
6066   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6067     ;;
6068 esac
6069 fi
6070 MSGMERGE="$ac_cv_path_MSGMERGE"
6071 if test "$MSGMERGE" != ":"; then
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6073 $as_echo "$MSGMERGE" >&6; }
6074 else
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079
6080       if test "$GMSGFMT" != ":"; then
6081             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6082        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6083       : ;
6084     else
6085       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6087 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6088       GMSGFMT=":"
6089     fi
6090   fi
6091
6092       if test "$XGETTEXT" != ":"; then
6093             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6094        (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
6095       : ;
6096     else
6097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6098 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6099       XGETTEXT=":"
6100     fi
6101         rm -f messages.po
6102   fi
6103
6104   ac_config_commands="$ac_config_commands default-1"
6105
6106
6107 if test -n "$ac_tool_prefix"; then
6108   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_RANLIB+:} false; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   if test -n "$RANLIB"; then
6116   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130   done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 RANLIB=$ac_cv_prog_RANLIB
6136 if test -n "$RANLIB"; then
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6138 $as_echo "$RANLIB" >&6; }
6139 else
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144
6145 fi
6146 if test -z "$ac_cv_prog_RANLIB"; then
6147   ac_ct_RANLIB=$RANLIB
6148   # Extract the first word of "ranlib", so it can be a program name with args.
6149 set dummy ranlib; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6153   $as_echo_n "(cached) " >&6
6154 else
6155   if test -n "$ac_ct_RANLIB"; then
6156   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163     for ac_exec_ext in '' $ac_executable_extensions; do
6164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165     ac_cv_prog_ac_ct_RANLIB="ranlib"
6166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170   done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6176 if test -n "$ac_ct_RANLIB"; then
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6178 $as_echo "$ac_ct_RANLIB" >&6; }
6179 else
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184   if test "x$ac_ct_RANLIB" = x; then
6185     RANLIB=":"
6186   else
6187     case $cross_compiling:$ac_tool_warned in
6188 yes:)
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191 ac_tool_warned=yes ;;
6192 esac
6193     RANLIB=$ac_ct_RANLIB
6194   fi
6195 else
6196   RANLIB="$ac_cv_prog_RANLIB"
6197 fi
6198
6199
6200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6201 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6202 if ${ac_cv_lib_cposix_strerror+:} false; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   ac_check_lib_save_LIBS=$LIBS
6206 LIBS="-lcposix  $LIBS"
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h.  */
6209
6210 /* Override any GCC internal prototype to avoid an error.
6211    Use char because int might match the return type of a GCC
6212    builtin and then its argument prototype would still apply.  */
6213 #ifdef __cplusplus
6214 extern "C"
6215 #endif
6216 char strerror ();
6217 int
6218 main ()
6219 {
6220 return strerror ();
6221   ;
6222   return 0;
6223 }
6224 _ACEOF
6225 if ac_fn_c_try_link "$LINENO"; then :
6226   ac_cv_lib_cposix_strerror=yes
6227 else
6228   ac_cv_lib_cposix_strerror=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext \
6231     conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_check_lib_save_LIBS
6233 fi
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6235 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6236 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6237   LIBS="$LIBS -lcposix"
6238 fi
6239
6240
6241
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6245 if ${ac_cv_path_GREP+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if test -z "$GREP"; then
6249   ac_path_GREP_found=false
6250   # Loop through the user's path and test for each of PROGNAME-LIST
6251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256     for ac_prog in grep ggrep; do
6257     for ac_exec_ext in '' $ac_executable_extensions; do
6258       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6259       as_fn_executable_p "$ac_path_GREP" || continue
6260 # Check for GNU ac_path_GREP and select it if it is found.
6261   # Check for GNU $ac_path_GREP
6262 case `"$ac_path_GREP" --version 2>&1` in
6263 *GNU*)
6264   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6265 *)
6266   ac_count=0
6267   $as_echo_n 0123456789 >"conftest.in"
6268   while :
6269   do
6270     cat "conftest.in" "conftest.in" >"conftest.tmp"
6271     mv "conftest.tmp" "conftest.in"
6272     cp "conftest.in" "conftest.nl"
6273     $as_echo 'GREP' >> "conftest.nl"
6274     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6275     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6276     as_fn_arith $ac_count + 1 && ac_count=$as_val
6277     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6278       # Best one so far, save it but keep looking for a better one
6279       ac_cv_path_GREP="$ac_path_GREP"
6280       ac_path_GREP_max=$ac_count
6281     fi
6282     # 10*(2^10) chars as input seems more than enough
6283     test $ac_count -gt 10 && break
6284   done
6285   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6286 esac
6287
6288       $ac_path_GREP_found && break 3
6289     done
6290   done
6291   done
6292 IFS=$as_save_IFS
6293   if test -z "$ac_cv_path_GREP"; then
6294     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6295   fi
6296 else
6297   ac_cv_path_GREP=$GREP
6298 fi
6299
6300 fi
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6302 $as_echo "$ac_cv_path_GREP" >&6; }
6303  GREP="$ac_cv_path_GREP"
6304
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6307 $as_echo_n "checking for egrep... " >&6; }
6308 if ${ac_cv_path_EGREP+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6312    then ac_cv_path_EGREP="$GREP -E"
6313    else
6314      if test -z "$EGREP"; then
6315   ac_path_EGREP_found=false
6316   # Loop through the user's path and test for each of PROGNAME-LIST
6317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6319 do
6320   IFS=$as_save_IFS
6321   test -z "$as_dir" && as_dir=.
6322     for ac_prog in egrep; do
6323     for ac_exec_ext in '' $ac_executable_extensions; do
6324       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6325       as_fn_executable_p "$ac_path_EGREP" || continue
6326 # Check for GNU ac_path_EGREP and select it if it is found.
6327   # Check for GNU $ac_path_EGREP
6328 case `"$ac_path_EGREP" --version 2>&1` in
6329 *GNU*)
6330   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6331 *)
6332   ac_count=0
6333   $as_echo_n 0123456789 >"conftest.in"
6334   while :
6335   do
6336     cat "conftest.in" "conftest.in" >"conftest.tmp"
6337     mv "conftest.tmp" "conftest.in"
6338     cp "conftest.in" "conftest.nl"
6339     $as_echo 'EGREP' >> "conftest.nl"
6340     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6341     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6342     as_fn_arith $ac_count + 1 && ac_count=$as_val
6343     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6344       # Best one so far, save it but keep looking for a better one
6345       ac_cv_path_EGREP="$ac_path_EGREP"
6346       ac_path_EGREP_max=$ac_count
6347     fi
6348     # 10*(2^10) chars as input seems more than enough
6349     test $ac_count -gt 10 && break
6350   done
6351   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6352 esac
6353
6354       $ac_path_EGREP_found && break 3
6355     done
6356   done
6357   done
6358 IFS=$as_save_IFS
6359   if test -z "$ac_cv_path_EGREP"; then
6360     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6361   fi
6362 else
6363   ac_cv_path_EGREP=$EGREP
6364 fi
6365
6366    fi
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6369 $as_echo "$ac_cv_path_EGREP" >&6; }
6370  EGREP="$ac_cv_path_EGREP"
6371
6372
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6374 $as_echo_n "checking for ANSI C header files... " >&6; }
6375 if ${ac_cv_header_stdc+:} false; then :
6376   $as_echo_n "(cached) " >&6
6377 else
6378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h.  */
6380 #include <stdlib.h>
6381 #include <stdarg.h>
6382 #include <string.h>
6383 #include <float.h>
6384
6385 int
6386 main ()
6387 {
6388
6389   ;
6390   return 0;
6391 }
6392 _ACEOF
6393 if ac_fn_c_try_compile "$LINENO"; then :
6394   ac_cv_header_stdc=yes
6395 else
6396   ac_cv_header_stdc=no
6397 fi
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399
6400 if test $ac_cv_header_stdc = yes; then
6401   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h.  */
6404 #include <string.h>
6405
6406 _ACEOF
6407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6408   $EGREP "memchr" >/dev/null 2>&1; then :
6409
6410 else
6411   ac_cv_header_stdc=no
6412 fi
6413 rm -f conftest*
6414
6415 fi
6416
6417 if test $ac_cv_header_stdc = yes; then
6418   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h.  */
6421 #include <stdlib.h>
6422
6423 _ACEOF
6424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425   $EGREP "free" >/dev/null 2>&1; then :
6426
6427 else
6428   ac_cv_header_stdc=no
6429 fi
6430 rm -f conftest*
6431
6432 fi
6433
6434 if test $ac_cv_header_stdc = yes; then
6435   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6436   if test "$cross_compiling" = yes; then :
6437   :
6438 else
6439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441 #include <ctype.h>
6442 #include <stdlib.h>
6443 #if ((' ' & 0x0FF) == 0x020)
6444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6446 #else
6447 # define ISLOWER(c) \
6448                    (('a' <= (c) && (c) <= 'i') \
6449                      || ('j' <= (c) && (c) <= 'r') \
6450                      || ('s' <= (c) && (c) <= 'z'))
6451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6452 #endif
6453
6454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6455 int
6456 main ()
6457 {
6458   int i;
6459   for (i = 0; i < 256; i++)
6460     if (XOR (islower (i), ISLOWER (i))
6461         || toupper (i) != TOUPPER (i))
6462       return 2;
6463   return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_c_try_run "$LINENO"; then :
6467
6468 else
6469   ac_cv_header_stdc=no
6470 fi
6471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6472   conftest.$ac_objext conftest.beam conftest.$ac_ext
6473 fi
6474
6475 fi
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6478 $as_echo "$ac_cv_header_stdc" >&6; }
6479 if test $ac_cv_header_stdc = yes; then
6480
6481 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6482
6483 fi
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6486 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6487 if ${ac_cv_c_const+:} false; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h.  */
6492
6493 int
6494 main ()
6495 {
6496
6497 #ifndef __cplusplus
6498   /* Ultrix mips cc rejects this sort of thing.  */
6499   typedef int charset[2];
6500   const charset cs = { 0, 0 };
6501   /* SunOS 4.1.1 cc rejects this.  */
6502   char const *const *pcpcc;
6503   char **ppc;
6504   /* NEC SVR4.0.2 mips cc rejects this.  */
6505   struct point {int x, y;};
6506   static struct point const zero = {0,0};
6507   /* AIX XL C 1.02.0.0 rejects this.
6508      It does not let you subtract one const X* pointer from another in
6509      an arm of an if-expression whose if-part is not a constant
6510      expression */
6511   const char *g = "string";
6512   pcpcc = &g + (g ? g-g : 0);
6513   /* HPUX 7.0 cc rejects these. */
6514   ++pcpcc;
6515   ppc = (char**) pcpcc;
6516   pcpcc = (char const *const *) ppc;
6517   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6518     char tx;
6519     char *t = &tx;
6520     char const *s = 0 ? (char *) 0 : (char const *) 0;
6521
6522     *t++ = 0;
6523     if (s) return 0;
6524   }
6525   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6526     int x[] = {25, 17};
6527     const int *foo = &x[0];
6528     ++foo;
6529   }
6530   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6531     typedef const int *iptr;
6532     iptr p = 0;
6533     ++p;
6534   }
6535   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6536        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6537     struct s { int j; const int *ap[3]; } bx;
6538     struct s *b = &bx; b->j = 5;
6539   }
6540   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6541     const int foo = 10;
6542     if (!foo) return 0;
6543   }
6544   return !cs[0] && !zero.x;
6545 #endif
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552   ac_cv_c_const=yes
6553 else
6554   ac_cv_c_const=no
6555 fi
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6559 $as_echo "$ac_cv_c_const" >&6; }
6560 if test $ac_cv_c_const = no; then
6561
6562 $as_echo "#define const /**/" >>confdefs.h
6563
6564 fi
6565
6566
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6568 $as_echo_n "checking for signed... " >&6; }
6569 if ${bh_cv_c_signed+:} false; then :
6570   $as_echo_n "(cached) " >&6
6571 else
6572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h.  */
6574
6575 int
6576 main ()
6577 {
6578 signed char x;
6579   ;
6580   return 0;
6581 }
6582 _ACEOF
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584   bh_cv_c_signed=yes
6585 else
6586   bh_cv_c_signed=no
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 fi
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6591 $as_echo "$bh_cv_c_signed" >&6; }
6592   if test $bh_cv_c_signed = no; then
6593
6594 $as_echo "#define signed /**/" >>confdefs.h
6595
6596   fi
6597
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6599 $as_echo_n "checking for inline... " >&6; }
6600 if ${ac_cv_c_inline+:} false; then :
6601   $as_echo_n "(cached) " >&6
6602 else
6603   ac_cv_c_inline=no
6604 for ac_kw in inline __inline__ __inline; do
6605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h.  */
6607 #ifndef __cplusplus
6608 typedef int foo_t;
6609 static $ac_kw foo_t static_foo () {return 0; }
6610 $ac_kw foo_t foo () {return 0; }
6611 #endif
6612
6613 _ACEOF
6614 if ac_fn_c_try_compile "$LINENO"; then :
6615   ac_cv_c_inline=$ac_kw
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618   test "$ac_cv_c_inline" != no && break
6619 done
6620
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6623 $as_echo "$ac_cv_c_inline" >&6; }
6624
6625 case $ac_cv_c_inline in
6626   inline | yes) ;;
6627   *)
6628     case $ac_cv_c_inline in
6629       no) ac_val=;;
6630       *) ac_val=$ac_cv_c_inline;;
6631     esac
6632     cat >>confdefs.h <<_ACEOF
6633 #ifndef __cplusplus
6634 #define inline $ac_val
6635 #endif
6636 _ACEOF
6637     ;;
6638 esac
6639
6640 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6641 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6642                   inttypes.h stdint.h unistd.h
6643 do :
6644   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6646 "
6647 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6648   cat >>confdefs.h <<_ACEOF
6649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650 _ACEOF
6651
6652 fi
6653
6654 done
6655
6656
6657 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6658 if test "x$ac_cv_type_off_t" = xyes; then :
6659
6660 else
6661
6662 cat >>confdefs.h <<_ACEOF
6663 #define off_t long int
6664 _ACEOF
6665
6666 fi
6667
6668 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6669 if test "x$ac_cv_type_size_t" = xyes; then :
6670
6671 else
6672
6673 cat >>confdefs.h <<_ACEOF
6674 #define size_t unsigned int
6675 _ACEOF
6676
6677 fi
6678
6679
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6681 $as_echo_n "checking for long long... " >&6; }
6682 if ${ac_cv_type_long_long+:} false; then :
6683   $as_echo_n "(cached) " >&6
6684 else
6685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h.  */
6687 long long ll = 1LL; int i = 63;
6688 int
6689 main ()
6690 {
6691 long long llmax = (long long) -1;
6692      return ll << i | ll >> i | llmax / ll | llmax % ll;
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 if ac_fn_c_try_link "$LINENO"; then :
6698   ac_cv_type_long_long=yes
6699 else
6700   ac_cv_type_long_long=no
6701 fi
6702 rm -f core conftest.err conftest.$ac_objext \
6703     conftest$ac_exeext conftest.$ac_ext
6704 fi
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6706 $as_echo "$ac_cv_type_long_long" >&6; }
6707   if test $ac_cv_type_long_long = yes; then
6708
6709 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6710
6711   fi
6712
6713
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6715 $as_echo_n "checking for long double... " >&6; }
6716 if ${gt_cv_c_long_double+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test "$GCC" = yes; then
6720        gt_cv_c_long_double=yes
6721      else
6722        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h.  */
6724
6725          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6726          long double foo = 0.0;
6727          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6728          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6729
6730 int
6731 main ()
6732 {
6733
6734   ;
6735   return 0;
6736 }
6737 _ACEOF
6738 if ac_fn_c_try_compile "$LINENO"; then :
6739   gt_cv_c_long_double=yes
6740 else
6741   gt_cv_c_long_double=no
6742 fi
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744      fi
6745 fi
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6747 $as_echo "$gt_cv_c_long_double" >&6; }
6748   if test $gt_cv_c_long_double = yes; then
6749
6750 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6751
6752   fi
6753
6754
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6756 $as_echo_n "checking for wchar_t... " >&6; }
6757 if ${gt_cv_c_wchar_t+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h.  */
6762 #include <stddef.h>
6763        wchar_t foo = (wchar_t)'\0';
6764 int
6765 main ()
6766 {
6767
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773   gt_cv_c_wchar_t=yes
6774 else
6775   gt_cv_c_wchar_t=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6780 $as_echo "$gt_cv_c_wchar_t" >&6; }
6781   if test $gt_cv_c_wchar_t = yes; then
6782
6783 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6784
6785   fi
6786
6787
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6789 $as_echo_n "checking for wint_t... " >&6; }
6790 if ${gt_cv_c_wint_t+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h.  */
6795 #include <wchar.h>
6796        wint_t foo = (wchar_t)'\0';
6797 int
6798 main ()
6799 {
6800
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806   gt_cv_c_wint_t=yes
6807 else
6808   gt_cv_c_wint_t=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6813 $as_echo "$gt_cv_c_wint_t" >&6; }
6814   if test $gt_cv_c_wint_t = yes; then
6815
6816 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6817
6818   fi
6819
6820
6821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6822 $as_echo_n "checking for inttypes.h... " >&6; }
6823 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h.  */
6828 #include <sys/types.h>
6829 #include <inttypes.h>
6830 int
6831 main ()
6832 {
6833 uintmax_t i = (uintmax_t) -1;
6834   ;
6835   return 0;
6836 }
6837 _ACEOF
6838 if ac_fn_c_try_compile "$LINENO"; then :
6839   jm_ac_cv_header_inttypes_h=yes
6840 else
6841   jm_ac_cv_header_inttypes_h=no
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 fi
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6846 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6847   if test $jm_ac_cv_header_inttypes_h = yes; then
6848
6849 cat >>confdefs.h <<_ACEOF
6850 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6851 _ACEOF
6852
6853   fi
6854
6855
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6857 $as_echo_n "checking for stdint.h... " >&6; }
6858 if ${jm_ac_cv_header_stdint_h+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h.  */
6863 #include <sys/types.h>
6864 #include <stdint.h>
6865 int
6866 main ()
6867 {
6868 uintmax_t i = (uintmax_t) -1;
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873 if ac_fn_c_try_compile "$LINENO"; then :
6874   jm_ac_cv_header_stdint_h=yes
6875 else
6876   jm_ac_cv_header_stdint_h=no
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 fi
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6881 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6882   if test $jm_ac_cv_header_stdint_h = yes; then
6883
6884 cat >>confdefs.h <<_ACEOF
6885 #define HAVE_STDINT_H_WITH_UINTMAX 1
6886 _ACEOF
6887
6888   fi
6889
6890
6891
6892
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6894 $as_echo_n "checking for intmax_t... " >&6; }
6895 if ${gt_cv_c_intmax_t+:} false; then :
6896   $as_echo_n "(cached) " >&6
6897 else
6898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h.  */
6900
6901 #include <stddef.h>
6902 #include <stdlib.h>
6903 #if HAVE_STDINT_H_WITH_UINTMAX
6904 #include <stdint.h>
6905 #endif
6906 #if HAVE_INTTYPES_H_WITH_UINTMAX
6907 #include <inttypes.h>
6908 #endif
6909
6910 int
6911 main ()
6912 {
6913 intmax_t x = -1;
6914   ;
6915   return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_compile "$LINENO"; then :
6919   gt_cv_c_intmax_t=yes
6920 else
6921   gt_cv_c_intmax_t=no
6922 fi
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6926 $as_echo "$gt_cv_c_intmax_t" >&6; }
6927   if test $gt_cv_c_intmax_t = yes; then
6928
6929 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6930
6931   fi
6932
6933
6934
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6936 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6937 if ${gt_cv_func_printf_posix+:} false; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940
6941       if test "$cross_compiling" = yes; then :
6942
6943         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h.  */
6945
6946 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6947   notposix
6948 #endif
6949
6950 _ACEOF
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952   $EGREP "notposix" >/dev/null 2>&1; then :
6953   gt_cv_func_printf_posix="guessing no"
6954 else
6955   gt_cv_func_printf_posix="guessing yes"
6956 fi
6957 rm -f conftest*
6958
6959
6960 else
6961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h.  */
6963
6964 #include <stdio.h>
6965 #include <string.h>
6966 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6967    dollar expansion (possibly an autoconf bug).  */
6968 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6969 static char buf[100];
6970 int main ()
6971 {
6972   sprintf (buf, format, 33, 55);
6973   return (strcmp (buf, "55 33") != 0);
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_run "$LINENO"; then :
6977   gt_cv_func_printf_posix=yes
6978 else
6979   gt_cv_func_printf_posix=no
6980 fi
6981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6982   conftest.$ac_objext conftest.beam conftest.$ac_ext
6983 fi
6984
6985
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6988 $as_echo "$gt_cv_func_printf_posix" >&6; }
6989   case $gt_cv_func_printf_posix in
6990     *yes)
6991
6992 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6993
6994       ;;
6995   esac
6996
6997 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6998 # for constant arguments.  Useless!
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7000 $as_echo_n "checking for working alloca.h... " >&6; }
7001 if ${ac_cv_working_alloca_h+:} false; then :
7002   $as_echo_n "(cached) " >&6
7003 else
7004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h.  */
7006 #include <alloca.h>
7007 int
7008 main ()
7009 {
7010 char *p = (char *) alloca (2 * sizeof (int));
7011                           if (p) return 0;
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"; then :
7017   ac_cv_working_alloca_h=yes
7018 else
7019   ac_cv_working_alloca_h=no
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext \
7022     conftest$ac_exeext conftest.$ac_ext
7023 fi
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7025 $as_echo "$ac_cv_working_alloca_h" >&6; }
7026 if test $ac_cv_working_alloca_h = yes; then
7027
7028 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7029
7030 fi
7031
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7033 $as_echo_n "checking for alloca... " >&6; }
7034 if ${ac_cv_func_alloca_works+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h.  */
7039 #ifdef __GNUC__
7040 # define alloca __builtin_alloca
7041 #else
7042 # ifdef _MSC_VER
7043 #  include <malloc.h>
7044 #  define alloca _alloca
7045 # else
7046 #  ifdef HAVE_ALLOCA_H
7047 #   include <alloca.h>
7048 #  else
7049 #   ifdef _AIX
7050  #pragma alloca
7051 #   else
7052 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7053 void *alloca (size_t);
7054 #    endif
7055 #   endif
7056 #  endif
7057 # endif
7058 #endif
7059
7060 int
7061 main ()
7062 {
7063 char *p = (char *) alloca (1);
7064                                     if (p) return 0;
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_link "$LINENO"; then :
7070   ac_cv_func_alloca_works=yes
7071 else
7072   ac_cv_func_alloca_works=no
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext \
7075     conftest$ac_exeext conftest.$ac_ext
7076 fi
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7078 $as_echo "$ac_cv_func_alloca_works" >&6; }
7079
7080 if test $ac_cv_func_alloca_works = yes; then
7081
7082 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7083
7084 else
7085   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7086 # that cause trouble.  Some versions do not even contain alloca or
7087 # contain a buggy version.  If you still want to use their alloca,
7088 # use ar to extract alloca.o from them instead of compiling alloca.c.
7089
7090 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7091
7092 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7093
7094
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7096 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7097 if ${ac_cv_os_cray+:} false; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h.  */
7102 #if defined CRAY && ! defined CRAY2
7103 webecray
7104 #else
7105 wenotbecray
7106 #endif
7107
7108 _ACEOF
7109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7110   $EGREP "webecray" >/dev/null 2>&1; then :
7111   ac_cv_os_cray=yes
7112 else
7113   ac_cv_os_cray=no
7114 fi
7115 rm -f conftest*
7116
7117 fi
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7119 $as_echo "$ac_cv_os_cray" >&6; }
7120 if test $ac_cv_os_cray = yes; then
7121   for ac_func in _getb67 GETB67 getb67; do
7122     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7124 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7125
7126 cat >>confdefs.h <<_ACEOF
7127 #define CRAY_STACKSEG_END $ac_func
7128 _ACEOF
7129
7130     break
7131 fi
7132
7133   done
7134 fi
7135
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7137 $as_echo_n "checking stack direction for C alloca... " >&6; }
7138 if ${ac_cv_c_stack_direction+:} false; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   if test "$cross_compiling" = yes; then :
7142   ac_cv_c_stack_direction=0
7143 else
7144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h.  */
7146 $ac_includes_default
7147 int
7148 find_stack_direction (int *addr, int depth)
7149 {
7150   int dir, dummy = 0;
7151   if (! addr)
7152     addr = &dummy;
7153   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7154   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7155   return dir + dummy;
7156 }
7157
7158 int
7159 main (int argc, char **argv)
7160 {
7161   return find_stack_direction (0, argc + !argv + 20) < 0;
7162 }
7163 _ACEOF
7164 if ac_fn_c_try_run "$LINENO"; then :
7165   ac_cv_c_stack_direction=1
7166 else
7167   ac_cv_c_stack_direction=-1
7168 fi
7169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7170   conftest.$ac_objext conftest.beam conftest.$ac_ext
7171 fi
7172
7173 fi
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7175 $as_echo "$ac_cv_c_stack_direction" >&6; }
7176 cat >>confdefs.h <<_ACEOF
7177 #define STACK_DIRECTION $ac_cv_c_stack_direction
7178 _ACEOF
7179
7180
7181 fi
7182
7183
7184
7185
7186   for ac_header in $ac_header_list
7187 do :
7188   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7190 "
7191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7192   cat >>confdefs.h <<_ACEOF
7193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7194 _ACEOF
7195
7196 fi
7197
7198 done
7199
7200
7201
7202
7203
7204
7205
7206
7207 for ac_func in getpagesize
7208 do :
7209   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7210 if test "x$ac_cv_func_getpagesize" = xyes; then :
7211   cat >>confdefs.h <<_ACEOF
7212 #define HAVE_GETPAGESIZE 1
7213 _ACEOF
7214
7215 fi
7216 done
7217
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7219 $as_echo_n "checking for working mmap... " >&6; }
7220 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223   if test "$cross_compiling" = yes; then :
7224   ac_cv_func_mmap_fixed_mapped=no
7225 else
7226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h.  */
7228 $ac_includes_default
7229 /* malloc might have been renamed as rpl_malloc. */
7230 #undef malloc
7231
7232 /* Thanks to Mike Haertel and Jim Avera for this test.
7233    Here is a matrix of mmap possibilities:
7234         mmap private not fixed
7235         mmap private fixed at somewhere currently unmapped
7236         mmap private fixed at somewhere already mapped
7237         mmap shared not fixed
7238         mmap shared fixed at somewhere currently unmapped
7239         mmap shared fixed at somewhere already mapped
7240    For private mappings, we should verify that changes cannot be read()
7241    back from the file, nor mmap's back from the file at a different
7242    address.  (There have been systems where private was not correctly
7243    implemented like the infamous i386 svr4.0, and systems where the
7244    VM page cache was not coherent with the file system buffer cache
7245    like early versions of FreeBSD and possibly contemporary NetBSD.)
7246    For shared mappings, we should conversely verify that changes get
7247    propagated back to all the places they're supposed to be.
7248
7249    Grep wants private fixed already mapped.
7250    The main things grep needs to know about mmap are:
7251    * does it exist and is it safe to write into the mmap'd area
7252    * how to use it (BSD variants)  */
7253
7254 #include <fcntl.h>
7255 #include <sys/mman.h>
7256
7257 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7258 char *malloc ();
7259 #endif
7260
7261 /* This mess was copied from the GNU getpagesize.h.  */
7262 #ifndef HAVE_GETPAGESIZE
7263 # ifdef _SC_PAGESIZE
7264 #  define getpagesize() sysconf(_SC_PAGESIZE)
7265 # else /* no _SC_PAGESIZE */
7266 #  ifdef HAVE_SYS_PARAM_H
7267 #   include <sys/param.h>
7268 #   ifdef EXEC_PAGESIZE
7269 #    define getpagesize() EXEC_PAGESIZE
7270 #   else /* no EXEC_PAGESIZE */
7271 #    ifdef NBPG
7272 #     define getpagesize() NBPG * CLSIZE
7273 #     ifndef CLSIZE
7274 #      define CLSIZE 1
7275 #     endif /* no CLSIZE */
7276 #    else /* no NBPG */
7277 #     ifdef NBPC
7278 #      define getpagesize() NBPC
7279 #     else /* no NBPC */
7280 #      ifdef PAGESIZE
7281 #       define getpagesize() PAGESIZE
7282 #      endif /* PAGESIZE */
7283 #     endif /* no NBPC */
7284 #    endif /* no NBPG */
7285 #   endif /* no EXEC_PAGESIZE */
7286 #  else /* no HAVE_SYS_PARAM_H */
7287 #   define getpagesize() 8192   /* punt totally */
7288 #  endif /* no HAVE_SYS_PARAM_H */
7289 # endif /* no _SC_PAGESIZE */
7290
7291 #endif /* no HAVE_GETPAGESIZE */
7292
7293 int
7294 main ()
7295 {
7296   char *data, *data2, *data3;
7297   const char *cdata2;
7298   int i, pagesize;
7299   int fd, fd2;
7300
7301   pagesize = getpagesize ();
7302
7303   /* First, make a file with some known garbage in it. */
7304   data = (char *) malloc (pagesize);
7305   if (!data)
7306     return 1;
7307   for (i = 0; i < pagesize; ++i)
7308     *(data + i) = rand ();
7309   umask (0);
7310   fd = creat ("conftest.mmap", 0600);
7311   if (fd < 0)
7312     return 2;
7313   if (write (fd, data, pagesize) != pagesize)
7314     return 3;
7315   close (fd);
7316
7317   /* Next, check that the tail of a page is zero-filled.  File must have
7318      non-zero length, otherwise we risk SIGBUS for entire page.  */
7319   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7320   if (fd2 < 0)
7321     return 4;
7322   cdata2 = "";
7323   if (write (fd2, cdata2, 1) != 1)
7324     return 5;
7325   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7326   if (data2 == MAP_FAILED)
7327     return 6;
7328   for (i = 0; i < pagesize; ++i)
7329     if (*(data2 + i))
7330       return 7;
7331   close (fd2);
7332   if (munmap (data2, pagesize))
7333     return 8;
7334
7335   /* Next, try to mmap the file at a fixed address which already has
7336      something else allocated at it.  If we can, also make sure that
7337      we see the same garbage.  */
7338   fd = open ("conftest.mmap", O_RDWR);
7339   if (fd < 0)
7340     return 9;
7341   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7342                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7343     return 10;
7344   for (i = 0; i < pagesize; ++i)
7345     if (*(data + i) != *(data2 + i))
7346       return 11;
7347
7348   /* Finally, make sure that changes to the mapped area do not
7349      percolate back to the file as seen by read().  (This is a bug on
7350      some variants of i386 svr4.0.)  */
7351   for (i = 0; i < pagesize; ++i)
7352     *(data2 + i) = *(data2 + i) + 1;
7353   data3 = (char *) malloc (pagesize);
7354   if (!data3)
7355     return 12;
7356   if (read (fd, data3, pagesize) != pagesize)
7357     return 13;
7358   for (i = 0; i < pagesize; ++i)
7359     if (*(data + i) != *(data3 + i))
7360       return 14;
7361   close (fd);
7362   return 0;
7363 }
7364 _ACEOF
7365 if ac_fn_c_try_run "$LINENO"; then :
7366   ac_cv_func_mmap_fixed_mapped=yes
7367 else
7368   ac_cv_func_mmap_fixed_mapped=no
7369 fi
7370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7371   conftest.$ac_objext conftest.beam conftest.$ac_ext
7372 fi
7373
7374 fi
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7376 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7378
7379 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7380
7381 fi
7382 rm -f conftest.mmap conftest.txt
7383
7384
7385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7386 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7387 if ${ac_cv_gnu_library_2_1+:} false; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h.  */
7392
7393 #include <features.h>
7394 #ifdef __GNU_LIBRARY__
7395  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7396   Lucky GNU user
7397  #endif
7398 #endif
7399
7400 _ACEOF
7401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7403   ac_cv_gnu_library_2_1=yes
7404 else
7405   ac_cv_gnu_library_2_1=no
7406 fi
7407 rm -f conftest*
7408
7409
7410
7411 fi
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7413 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7414
7415     GLIBC21="$ac_cv_gnu_library_2_1"
7416
7417
7418
7419
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7421 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7422 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7423   $as_echo_n "(cached) " >&6
7424 else
7425
7426       if test "$cross_compiling" = yes; then :
7427
7428           # Guess based on the CPU.
7429           case "$host_cpu" in
7430             alpha* | i3456786 | m68k | s390*)
7431               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7432             *)
7433               gt_cv_int_divbyzero_sigfpe="guessing no";;
7434           esac
7435
7436 else
7437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h.  */
7439
7440 #include <stdlib.h>
7441 #include <signal.h>
7442
7443 static void
7444 #ifdef __cplusplus
7445 sigfpe_handler (int sig)
7446 #else
7447 sigfpe_handler (sig) int sig;
7448 #endif
7449 {
7450   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7451   exit (sig != SIGFPE);
7452 }
7453
7454 int x = 1;
7455 int y = 0;
7456 int z;
7457 int nan;
7458
7459 int main ()
7460 {
7461   signal (SIGFPE, sigfpe_handler);
7462 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7463 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7464   signal (SIGTRAP, sigfpe_handler);
7465 #endif
7466 /* Linux/SPARC yields signal SIGILL.  */
7467 #if defined (__sparc__) && defined (__linux__)
7468   signal (SIGILL, sigfpe_handler);
7469 #endif
7470
7471   z = x / y;
7472   nan = y / y;
7473   exit (1);
7474 }
7475
7476 _ACEOF
7477 if ac_fn_c_try_run "$LINENO"; then :
7478   gt_cv_int_divbyzero_sigfpe=yes
7479 else
7480   gt_cv_int_divbyzero_sigfpe=no
7481 fi
7482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7483   conftest.$ac_objext conftest.beam conftest.$ac_ext
7484 fi
7485
7486
7487 fi
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7489 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7490   case "$gt_cv_int_divbyzero_sigfpe" in
7491     *yes) value=1;;
7492     *) value=0;;
7493   esac
7494
7495 cat >>confdefs.h <<_ACEOF
7496 #define INTDIV0_RAISES_SIGFPE $value
7497 _ACEOF
7498
7499
7500
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7502 $as_echo_n "checking for unsigned long long... " >&6; }
7503 if ${ac_cv_type_unsigned_long_long+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h.  */
7508 unsigned long long ull = 1ULL; int i = 63;
7509 int
7510 main ()
7511 {
7512 unsigned long long ullmax = (unsigned long long) -1;
7513      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7514   ;
7515   return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"; then :
7519   ac_cv_type_unsigned_long_long=yes
7520 else
7521   ac_cv_type_unsigned_long_long=no
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext \
7524     conftest$ac_exeext conftest.$ac_ext
7525 fi
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7527 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7528   if test $ac_cv_type_unsigned_long_long = yes; then
7529
7530 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7531
7532   fi
7533
7534
7535
7536
7537   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7538
7539     test $ac_cv_type_unsigned_long_long = yes \
7540       && ac_type='unsigned long long' \
7541       || ac_type='unsigned long'
7542
7543 cat >>confdefs.h <<_ACEOF
7544 #define uintmax_t $ac_type
7545 _ACEOF
7546
7547   else
7548
7549 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7550
7551   fi
7552
7553
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7555 $as_echo_n "checking for inttypes.h... " >&6; }
7556 if ${gt_cv_header_inttypes_h+:} false; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559
7560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h.  */
7562 #include <sys/types.h>
7563 #include <inttypes.h>
7564 int
7565 main ()
7566 {
7567
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573   gt_cv_header_inttypes_h=yes
7574 else
7575   gt_cv_header_inttypes_h=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7581 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7582   if test $gt_cv_header_inttypes_h = yes; then
7583
7584 cat >>confdefs.h <<_ACEOF
7585 #define HAVE_INTTYPES_H 1
7586 _ACEOF
7587
7588   fi
7589
7590
7591
7592   if test $gt_cv_header_inttypes_h = yes; then
7593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7594 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7595 if ${gt_cv_inttypes_pri_broken+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598
7599         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h.  */
7601 #include <inttypes.h>
7602 #ifdef PRId32
7603 char *p = PRId32;
7604 #endif
7605
7606 int
7607 main ()
7608 {
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_c_try_compile "$LINENO"; then :
7615   gt_cv_inttypes_pri_broken=no
7616 else
7617   gt_cv_inttypes_pri_broken=yes
7618 fi
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7623 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7624   fi
7625   if test "$gt_cv_inttypes_pri_broken" = yes; then
7626
7627 cat >>confdefs.h <<_ACEOF
7628 #define PRI_MACROS_BROKEN 1
7629 _ACEOF
7630
7631   fi
7632
7633
7634   for ac_header in stdint.h
7635 do :
7636   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7637 if test "x$ac_cv_header_stdint_h" = xyes; then :
7638   cat >>confdefs.h <<_ACEOF
7639 #define HAVE_STDINT_H 1
7640 _ACEOF
7641
7642 fi
7643
7644 done
7645
7646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7647 $as_echo_n "checking for SIZE_MAX... " >&6; }
7648   result=
7649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h.  */
7651
7652 #include <limits.h>
7653 #if HAVE_STDINT_H
7654 #include <stdint.h>
7655 #endif
7656 #ifdef SIZE_MAX
7657 Found it
7658 #endif
7659
7660 _ACEOF
7661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7662   $EGREP "Found it" >/dev/null 2>&1; then :
7663   result=yes
7664 fi
7665 rm -f conftest*
7666
7667   if test -z "$result"; then
7668                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7669
7670 else
7671   result=?
7672 fi
7673
7674
7675     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7676
7677 else
7678   result=?
7679 fi
7680
7681
7682     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7683
7684 else
7685   result=?
7686 fi
7687
7688
7689     if test "$fits_in_uint" = 1; then
7690                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h.  */
7692 #include <stddef.h>
7693         extern size_t foo;
7694         extern unsigned long foo;
7695
7696 int
7697 main ()
7698 {
7699
7700   ;
7701   return 0;
7702 }
7703 _ACEOF
7704 if ac_fn_c_try_compile "$LINENO"; then :
7705   fits_in_uint=0
7706 fi
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708     fi
7709     if test -z "$result"; then
7710       if test "$fits_in_uint" = 1; then
7711         result="$res_hi$res_lo"U
7712       else
7713         result="$res_hi$res_lo"UL
7714       fi
7715     else
7716             result='~(size_t)0'
7717     fi
7718   fi
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7720 $as_echo "$result" >&6; }
7721   if test "$result" != yes; then
7722
7723 cat >>confdefs.h <<_ACEOF
7724 #define SIZE_MAX $result
7725 _ACEOF
7726
7727   fi
7728
7729
7730
7731   for ac_header in stdint.h
7732 do :
7733   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7734 if test "x$ac_cv_header_stdint_h" = xyes; then :
7735   cat >>confdefs.h <<_ACEOF
7736 #define HAVE_STDINT_H 1
7737 _ACEOF
7738
7739 fi
7740
7741 done
7742
7743
7744
7745       if test "X$prefix" = "XNONE"; then
7746     acl_final_prefix="$ac_default_prefix"
7747   else
7748     acl_final_prefix="$prefix"
7749   fi
7750   if test "X$exec_prefix" = "XNONE"; then
7751     acl_final_exec_prefix='${prefix}'
7752   else
7753     acl_final_exec_prefix="$exec_prefix"
7754   fi
7755   acl_save_prefix="$prefix"
7756   prefix="$acl_final_prefix"
7757   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7758   prefix="$acl_save_prefix"
7759
7760
7761 # Check whether --with-gnu-ld was given.
7762 if test "${with_gnu_ld+set}" = set; then :
7763   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7764 else
7765   with_gnu_ld=no
7766 fi
7767
7768 # Prepare PATH_SEPARATOR.
7769 # The user is always right.
7770 if test "${PATH_SEPARATOR+set}" != set; then
7771   echo "#! /bin/sh" >conf$$.sh
7772   echo  "exit 0"   >>conf$$.sh
7773   chmod +x conf$$.sh
7774   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7775     PATH_SEPARATOR=';'
7776   else
7777     PATH_SEPARATOR=:
7778   fi
7779   rm -f conf$$.sh
7780 fi
7781 ac_prog=ld
7782 if test "$GCC" = yes; then
7783   # Check if gcc -print-prog-name=ld gives a path.
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7785 $as_echo_n "checking for ld used by GCC... " >&6; }
7786   case $host in
7787   *-*-mingw*)
7788     # gcc leaves a trailing carriage return which upsets mingw
7789     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7790   *)
7791     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7792   esac
7793   case $ac_prog in
7794     # Accept absolute paths.
7795     [\\/]* | [A-Za-z]:[\\/]*)
7796       re_direlt='/[^/][^/]*/\.\./'
7797       # Canonicalize the path of ld
7798       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7799       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7800         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7801       done
7802       test -z "$LD" && LD="$ac_prog"
7803       ;;
7804   "")
7805     # If it fails, then pretend we aren't using GCC.
7806     ac_prog=ld
7807     ;;
7808   *)
7809     # If it is relative, then search for the first ld in PATH.
7810     with_gnu_ld=unknown
7811     ;;
7812   esac
7813 elif test "$with_gnu_ld" = yes; then
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7815 $as_echo_n "checking for GNU ld... " >&6; }
7816 else
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7818 $as_echo_n "checking for non-GNU ld... " >&6; }
7819 fi
7820 if ${acl_cv_path_LD+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   if test -z "$LD"; then
7824   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7825   for ac_dir in $PATH; do
7826     test -z "$ac_dir" && ac_dir=.
7827     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7828       acl_cv_path_LD="$ac_dir/$ac_prog"
7829       # Check to see if the program is GNU ld.  I'd rather use --version,
7830       # but apparently some GNU ld's only accept -v.
7831       # Break only if it was the GNU/non-GNU ld that we prefer.
7832       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7833       *GNU* | *'with BFD'*)
7834         test "$with_gnu_ld" != no && break ;;
7835       *)
7836         test "$with_gnu_ld" != yes && break ;;
7837       esac
7838     fi
7839   done
7840   IFS="$ac_save_ifs"
7841 else
7842   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7843 fi
7844 fi
7845
7846 LD="$acl_cv_path_LD"
7847 if test -n "$LD"; then
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7849 $as_echo "$LD" >&6; }
7850 else
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 fi
7854 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7856 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7857 if ${acl_cv_prog_gnu_ld+:} false; then :
7858   $as_echo_n "(cached) " >&6
7859 else
7860   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7861 case `$LD -v 2>&1 </dev/null` in
7862 *GNU* | *'with BFD'*)
7863   acl_cv_prog_gnu_ld=yes ;;
7864 *)
7865   acl_cv_prog_gnu_ld=no ;;
7866 esac
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7869 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7870 with_gnu_ld=$acl_cv_prog_gnu_ld
7871
7872
7873
7874                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7875 $as_echo_n "checking for shared library run path origin... " >&6; }
7876 if ${acl_cv_rpath+:} false; then :
7877   $as_echo_n "(cached) " >&6
7878 else
7879
7880     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7881     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7882     . ./conftest.sh
7883     rm -f ./conftest.sh
7884     acl_cv_rpath=done
7885
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7888 $as_echo "$acl_cv_rpath" >&6; }
7889   wl="$acl_cv_wl"
7890   libext="$acl_cv_libext"
7891   shlibext="$acl_cv_shlibext"
7892   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7893   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7894   hardcode_direct="$acl_cv_hardcode_direct"
7895   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7896     # Check whether --enable-rpath was given.
7897 if test "${enable_rpath+set}" = set; then :
7898   enableval=$enable_rpath; :
7899 else
7900   enable_rpath=yes
7901 fi
7902
7903
7904
7905
7906
7907
7908
7909
7910     use_additional=yes
7911
7912   acl_save_prefix="$prefix"
7913   prefix="$acl_final_prefix"
7914   acl_save_exec_prefix="$exec_prefix"
7915   exec_prefix="$acl_final_exec_prefix"
7916
7917     eval additional_includedir=\"$includedir\"
7918     eval additional_libdir=\"$libdir\"
7919
7920   exec_prefix="$acl_save_exec_prefix"
7921   prefix="$acl_save_prefix"
7922
7923
7924 # Check whether --with-libiconv-prefix was given.
7925 if test "${with_libiconv_prefix+set}" = set; then :
7926   withval=$with_libiconv_prefix;
7927     if test "X$withval" = "Xno"; then
7928       use_additional=no
7929     else
7930       if test "X$withval" = "X"; then
7931
7932   acl_save_prefix="$prefix"
7933   prefix="$acl_final_prefix"
7934   acl_save_exec_prefix="$exec_prefix"
7935   exec_prefix="$acl_final_exec_prefix"
7936
7937           eval additional_includedir=\"$includedir\"
7938           eval additional_libdir=\"$libdir\"
7939
7940   exec_prefix="$acl_save_exec_prefix"
7941   prefix="$acl_save_prefix"
7942
7943       else
7944         additional_includedir="$withval/include"
7945         additional_libdir="$withval/lib"
7946       fi
7947     fi
7948
7949 fi
7950
7951       LIBICONV=
7952   LTLIBICONV=
7953   INCICONV=
7954   rpathdirs=
7955   ltrpathdirs=
7956   names_already_handled=
7957   names_next_round='iconv '
7958   while test -n "$names_next_round"; do
7959     names_this_round="$names_next_round"
7960     names_next_round=
7961     for name in $names_this_round; do
7962       already_handled=
7963       for n in $names_already_handled; do
7964         if test "$n" = "$name"; then
7965           already_handled=yes
7966           break
7967         fi
7968       done
7969       if test -z "$already_handled"; then
7970         names_already_handled="$names_already_handled $name"
7971                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7972         eval value=\"\$HAVE_LIB$uppername\"
7973         if test -n "$value"; then
7974           if test "$value" = yes; then
7975             eval value=\"\$LIB$uppername\"
7976             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7977             eval value=\"\$LTLIB$uppername\"
7978             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7979           else
7980                                     :
7981           fi
7982         else
7983                               found_dir=
7984           found_la=
7985           found_so=
7986           found_a=
7987           if test $use_additional = yes; then
7988             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7989               found_dir="$additional_libdir"
7990               found_so="$additional_libdir/lib$name.$shlibext"
7991               if test -f "$additional_libdir/lib$name.la"; then
7992                 found_la="$additional_libdir/lib$name.la"
7993               fi
7994             else
7995               if test -f "$additional_libdir/lib$name.$libext"; then
7996                 found_dir="$additional_libdir"
7997                 found_a="$additional_libdir/lib$name.$libext"
7998                 if test -f "$additional_libdir/lib$name.la"; then
7999                   found_la="$additional_libdir/lib$name.la"
8000                 fi
8001               fi
8002             fi
8003           fi
8004           if test "X$found_dir" = "X"; then
8005             for x in $LDFLAGS $LTLIBICONV; do
8006
8007   acl_save_prefix="$prefix"
8008   prefix="$acl_final_prefix"
8009   acl_save_exec_prefix="$exec_prefix"
8010   exec_prefix="$acl_final_exec_prefix"
8011   eval x=\"$x\"
8012   exec_prefix="$acl_save_exec_prefix"
8013   prefix="$acl_save_prefix"
8014
8015               case "$x" in
8016                 -L*)
8017                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8018                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8019                     found_dir="$dir"
8020                     found_so="$dir/lib$name.$shlibext"
8021                     if test -f "$dir/lib$name.la"; then
8022                       found_la="$dir/lib$name.la"
8023                     fi
8024                   else
8025                     if test -f "$dir/lib$name.$libext"; then
8026                       found_dir="$dir"
8027                       found_a="$dir/lib$name.$libext"
8028                       if test -f "$dir/lib$name.la"; then
8029                         found_la="$dir/lib$name.la"
8030                       fi
8031                     fi
8032                   fi
8033                   ;;
8034               esac
8035               if test "X$found_dir" != "X"; then
8036                 break
8037               fi
8038             done
8039           fi
8040           if test "X$found_dir" != "X"; then
8041                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8042             if test "X$found_so" != "X"; then
8043                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8044                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8045               else
8046                                                                                 haveit=
8047                 for x in $ltrpathdirs; do
8048                   if test "X$x" = "X$found_dir"; then
8049                     haveit=yes
8050                     break
8051                   fi
8052                 done
8053                 if test -z "$haveit"; then
8054                   ltrpathdirs="$ltrpathdirs $found_dir"
8055                 fi
8056                                 if test "$hardcode_direct" = yes; then
8057                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8058                 else
8059                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8060                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8061                                                             haveit=
8062                     for x in $rpathdirs; do
8063                       if test "X$x" = "X$found_dir"; then
8064                         haveit=yes
8065                         break
8066                       fi
8067                     done
8068                     if test -z "$haveit"; then
8069                       rpathdirs="$rpathdirs $found_dir"
8070                     fi
8071                   else
8072                                                                                 haveit=
8073                     for x in $LDFLAGS $LIBICONV; do
8074
8075   acl_save_prefix="$prefix"
8076   prefix="$acl_final_prefix"
8077   acl_save_exec_prefix="$exec_prefix"
8078   exec_prefix="$acl_final_exec_prefix"
8079   eval x=\"$x\"
8080   exec_prefix="$acl_save_exec_prefix"
8081   prefix="$acl_save_prefix"
8082
8083                       if test "X$x" = "X-L$found_dir"; then
8084                         haveit=yes
8085                         break
8086                       fi
8087                     done
8088                     if test -z "$haveit"; then
8089                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8090                     fi
8091                     if test "$hardcode_minus_L" != no; then
8092                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8093                     else
8094                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8095                     fi
8096                   fi
8097                 fi
8098               fi
8099             else
8100               if test "X$found_a" != "X"; then
8101                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8102               else
8103                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8104               fi
8105             fi
8106                         additional_includedir=
8107             case "$found_dir" in
8108               */lib | */lib/)
8109                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8110                 additional_includedir="$basedir/include"
8111                 ;;
8112             esac
8113             if test "X$additional_includedir" != "X"; then
8114                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8115                 haveit=
8116                 if test "X$additional_includedir" = "X/usr/local/include"; then
8117                   if test -n "$GCC"; then
8118                     case $host_os in
8119                       linux*) haveit=yes;;
8120                     esac
8121                   fi
8122                 fi
8123                 if test -z "$haveit"; then
8124                   for x in $CPPFLAGS $INCICONV; do
8125
8126   acl_save_prefix="$prefix"
8127   prefix="$acl_final_prefix"
8128   acl_save_exec_prefix="$exec_prefix"
8129   exec_prefix="$acl_final_exec_prefix"
8130   eval x=\"$x\"
8131   exec_prefix="$acl_save_exec_prefix"
8132   prefix="$acl_save_prefix"
8133
8134                     if test "X$x" = "X-I$additional_includedir"; then
8135                       haveit=yes
8136                       break
8137                     fi
8138                   done
8139                   if test -z "$haveit"; then
8140                     if test -d "$additional_includedir"; then
8141                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8142                     fi
8143                   fi
8144                 fi
8145               fi
8146             fi
8147                         if test -n "$found_la"; then
8148                                                         save_libdir="$libdir"
8149               case "$found_la" in
8150                 */* | *\\*) . "$found_la" ;;
8151                 *) . "./$found_la" ;;
8152               esac
8153               libdir="$save_libdir"
8154                             for dep in $dependency_libs; do
8155                 case "$dep" in
8156                   -L*)
8157                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8158                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8159                       haveit=
8160                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8161                         if test -n "$GCC"; then
8162                           case $host_os in
8163                             linux*) haveit=yes;;
8164                           esac
8165                         fi
8166                       fi
8167                       if test -z "$haveit"; then
8168                         haveit=
8169                         for x in $LDFLAGS $LIBICONV; do
8170
8171   acl_save_prefix="$prefix"
8172   prefix="$acl_final_prefix"
8173   acl_save_exec_prefix="$exec_prefix"
8174   exec_prefix="$acl_final_exec_prefix"
8175   eval x=\"$x\"
8176   exec_prefix="$acl_save_exec_prefix"
8177   prefix="$acl_save_prefix"
8178
8179                           if test "X$x" = "X-L$additional_libdir"; then
8180                             haveit=yes
8181                             break
8182                           fi
8183                         done
8184                         if test -z "$haveit"; then
8185                           if test -d "$additional_libdir"; then
8186                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8187                           fi
8188                         fi
8189                         haveit=
8190                         for x in $LDFLAGS $LTLIBICONV; do
8191
8192   acl_save_prefix="$prefix"
8193   prefix="$acl_final_prefix"
8194   acl_save_exec_prefix="$exec_prefix"
8195   exec_prefix="$acl_final_exec_prefix"
8196   eval x=\"$x\"
8197   exec_prefix="$acl_save_exec_prefix"
8198   prefix="$acl_save_prefix"
8199
8200                           if test "X$x" = "X-L$additional_libdir"; then
8201                             haveit=yes
8202                             break
8203                           fi
8204                         done
8205                         if test -z "$haveit"; then
8206                           if test -d "$additional_libdir"; then
8207                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8208                           fi
8209                         fi
8210                       fi
8211                     fi
8212                     ;;
8213                   -R*)
8214                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8215                     if test "$enable_rpath" != no; then
8216                                                                   haveit=
8217                       for x in $rpathdirs; do
8218                         if test "X$x" = "X$dir"; then
8219                           haveit=yes
8220                           break
8221                         fi
8222                       done
8223                       if test -z "$haveit"; then
8224                         rpathdirs="$rpathdirs $dir"
8225                       fi
8226                                                                   haveit=
8227                       for x in $ltrpathdirs; do
8228                         if test "X$x" = "X$dir"; then
8229                           haveit=yes
8230                           break
8231                         fi
8232                       done
8233                       if test -z "$haveit"; then
8234                         ltrpathdirs="$ltrpathdirs $dir"
8235                       fi
8236                     fi
8237                     ;;
8238                   -l*)
8239                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8240                     ;;
8241                   *.la)
8242                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8243                     ;;
8244                   *)
8245                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8246                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8247                     ;;
8248                 esac
8249               done
8250             fi
8251           else
8252                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8253             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8254           fi
8255         fi
8256       fi
8257     done
8258   done
8259   if test "X$rpathdirs" != "X"; then
8260     if test -n "$hardcode_libdir_separator"; then
8261                         alldirs=
8262       for found_dir in $rpathdirs; do
8263         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8264       done
8265             acl_save_libdir="$libdir"
8266       libdir="$alldirs"
8267       eval flag=\"$hardcode_libdir_flag_spec\"
8268       libdir="$acl_save_libdir"
8269       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8270     else
8271             for found_dir in $rpathdirs; do
8272         acl_save_libdir="$libdir"
8273         libdir="$found_dir"
8274         eval flag=\"$hardcode_libdir_flag_spec\"
8275         libdir="$acl_save_libdir"
8276         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8277       done
8278     fi
8279   fi
8280   if test "X$ltrpathdirs" != "X"; then
8281             for found_dir in $ltrpathdirs; do
8282       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8283     done
8284   fi
8285
8286
8287
8288
8289
8290
8291
8292
8293   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8294 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8295
8296 else
8297
8298 $as_echo "#define ptrdiff_t long" >>confdefs.h
8299
8300
8301 fi
8302
8303   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8304 stdlib.h string.h unistd.h sys/param.h
8305 do :
8306   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8307 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8308 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8309   cat >>confdefs.h <<_ACEOF
8310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8311 _ACEOF
8312
8313 fi
8314
8315 done
8316
8317   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8318 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8319 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8320 __fsetlocking
8321 do :
8322   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8324 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8325   cat >>confdefs.h <<_ACEOF
8326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8327 _ACEOF
8328
8329 fi
8330 done
8331
8332
8333
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8335 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8336 if ${ac_cv_have_decl__snprintf+:} false; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h.  */
8341 #include <stdio.h>
8342 int
8343 main ()
8344 {
8345
8346 #ifndef _snprintf
8347   char *p = (char *) _snprintf;
8348 #endif
8349
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 if ac_fn_c_try_compile "$LINENO"; then :
8355   ac_cv_have_decl__snprintf=yes
8356 else
8357   ac_cv_have_decl__snprintf=no
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8362 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8363   if test $ac_cv_have_decl__snprintf = yes; then
8364     gt_value=1
8365   else
8366     gt_value=0
8367   fi
8368
8369 cat >>confdefs.h <<_ACEOF
8370 #define HAVE_DECL__SNPRINTF $gt_value
8371 _ACEOF
8372
8373
8374
8375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8376 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8377 if ${ac_cv_have_decl__snwprintf+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h.  */
8382 #include <stdio.h>
8383 int
8384 main ()
8385 {
8386
8387 #ifndef _snwprintf
8388   char *p = (char *) _snwprintf;
8389 #endif
8390
8391   ;
8392   return 0;
8393 }
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396   ac_cv_have_decl__snwprintf=yes
8397 else
8398   ac_cv_have_decl__snwprintf=no
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8403 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8404   if test $ac_cv_have_decl__snwprintf = yes; then
8405     gt_value=1
8406   else
8407     gt_value=0
8408   fi
8409
8410 cat >>confdefs.h <<_ACEOF
8411 #define HAVE_DECL__SNWPRINTF $gt_value
8412 _ACEOF
8413
8414
8415
8416
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8418 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8419 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8420   $as_echo_n "(cached) " >&6
8421 else
8422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h.  */
8424 #include <stdio.h>
8425 int
8426 main ()
8427 {
8428
8429 #ifndef feof_unlocked
8430   char *p = (char *) feof_unlocked;
8431 #endif
8432
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_compile "$LINENO"; then :
8438   ac_cv_have_decl_feof_unlocked=yes
8439 else
8440   ac_cv_have_decl_feof_unlocked=no
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 fi
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8445 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8446   if test $ac_cv_have_decl_feof_unlocked = yes; then
8447     gt_value=1
8448   else
8449     gt_value=0
8450   fi
8451
8452 cat >>confdefs.h <<_ACEOF
8453 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8454 _ACEOF
8455
8456
8457
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8459 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8460 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8461   $as_echo_n "(cached) " >&6
8462 else
8463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h.  */
8465 #include <stdio.h>
8466 int
8467 main ()
8468 {
8469
8470 #ifndef fgets_unlocked
8471   char *p = (char *) fgets_unlocked;
8472 #endif
8473
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 if ac_fn_c_try_compile "$LINENO"; then :
8479   ac_cv_have_decl_fgets_unlocked=yes
8480 else
8481   ac_cv_have_decl_fgets_unlocked=no
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 fi
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8486 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8487   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8488     gt_value=1
8489   else
8490     gt_value=0
8491   fi
8492
8493 cat >>confdefs.h <<_ACEOF
8494 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8495 _ACEOF
8496
8497
8498
8499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8500 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8501 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8502   $as_echo_n "(cached) " >&6
8503 else
8504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h.  */
8506 #include <stdio.h>
8507 int
8508 main ()
8509 {
8510
8511 #ifndef getc_unlocked
8512   char *p = (char *) getc_unlocked;
8513 #endif
8514
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 if ac_fn_c_try_compile "$LINENO"; then :
8520   ac_cv_have_decl_getc_unlocked=yes
8521 else
8522   ac_cv_have_decl_getc_unlocked=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 fi
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8527 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8528   if test $ac_cv_have_decl_getc_unlocked = yes; then
8529     gt_value=1
8530   else
8531     gt_value=0
8532   fi
8533
8534 cat >>confdefs.h <<_ACEOF
8535 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8536 _ACEOF
8537
8538
8539
8540   case $gt_cv_func_printf_posix in
8541     *yes) HAVE_POSIX_PRINTF=1 ;;
8542     *) HAVE_POSIX_PRINTF=0 ;;
8543   esac
8544
8545   if test "$ac_cv_func_asprintf" = yes; then
8546     HAVE_ASPRINTF=1
8547   else
8548     HAVE_ASPRINTF=0
8549   fi
8550
8551   if test "$ac_cv_func_snprintf" = yes; then
8552     HAVE_SNPRINTF=1
8553   else
8554     HAVE_SNPRINTF=0
8555   fi
8556
8557   if test "$ac_cv_func_wprintf" = yes; then
8558     HAVE_WPRINTF=1
8559   else
8560     HAVE_WPRINTF=0
8561   fi
8562
8563
8564
8565
8566
8567
8568
8569           am_save_CPPFLAGS="$CPPFLAGS"
8570
8571   for element in $INCICONV; do
8572     haveit=
8573     for x in $CPPFLAGS; do
8574
8575   acl_save_prefix="$prefix"
8576   prefix="$acl_final_prefix"
8577   acl_save_exec_prefix="$exec_prefix"
8578   exec_prefix="$acl_final_exec_prefix"
8579   eval x=\"$x\"
8580   exec_prefix="$acl_save_exec_prefix"
8581   prefix="$acl_save_prefix"
8582
8583       if test "X$x" = "X$element"; then
8584         haveit=yes
8585         break
8586       fi
8587     done
8588     if test -z "$haveit"; then
8589       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8590     fi
8591   done
8592
8593
8594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8595 $as_echo_n "checking for iconv... " >&6; }
8596 if ${am_cv_func_iconv+:} false; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599
8600     am_cv_func_iconv="no, consider installing GNU libiconv"
8601     am_cv_lib_iconv=no
8602     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h.  */
8604 #include <stdlib.h>
8605 #include <iconv.h>
8606 int
8607 main ()
8608 {
8609 iconv_t cd = iconv_open("","");
8610        iconv(cd,NULL,NULL,NULL,NULL);
8611        iconv_close(cd);
8612   ;
8613   return 0;
8614 }
8615 _ACEOF
8616 if ac_fn_c_try_link "$LINENO"; then :
8617   am_cv_func_iconv=yes
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext \
8620     conftest$ac_exeext conftest.$ac_ext
8621     if test "$am_cv_func_iconv" != yes; then
8622       am_save_LIBS="$LIBS"
8623       LIBS="$LIBS $LIBICONV"
8624       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h.  */
8626 #include <stdlib.h>
8627 #include <iconv.h>
8628 int
8629 main ()
8630 {
8631 iconv_t cd = iconv_open("","");
8632          iconv(cd,NULL,NULL,NULL,NULL);
8633          iconv_close(cd);
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 if ac_fn_c_try_link "$LINENO"; then :
8639   am_cv_lib_iconv=yes
8640         am_cv_func_iconv=yes
8641 fi
8642 rm -f core conftest.err conftest.$ac_objext \
8643     conftest$ac_exeext conftest.$ac_ext
8644       LIBS="$am_save_LIBS"
8645     fi
8646
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8649 $as_echo "$am_cv_func_iconv" >&6; }
8650   if test "$am_cv_func_iconv" = yes; then
8651
8652 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8653
8654   fi
8655   if test "$am_cv_lib_iconv" = yes; then
8656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8657 $as_echo_n "checking how to link with libiconv... " >&6; }
8658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8659 $as_echo "$LIBICONV" >&6; }
8660   else
8661             CPPFLAGS="$am_save_CPPFLAGS"
8662     LIBICONV=
8663     LTLIBICONV=
8664   fi
8665
8666
8667
8668   if test "$am_cv_func_iconv" = yes; then
8669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8670 $as_echo_n "checking for iconv declaration... " >&6; }
8671     if ${am_cv_proto_iconv+:} false; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674
8675       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h.  */
8677
8678 #include <stdlib.h>
8679 #include <iconv.h>
8680 extern
8681 #ifdef __cplusplus
8682 "C"
8683 #endif
8684 #if defined(__STDC__) || defined(__cplusplus)
8685 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8686 #else
8687 size_t iconv();
8688 #endif
8689
8690 int
8691 main ()
8692 {
8693
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 if ac_fn_c_try_compile "$LINENO"; then :
8699   am_cv_proto_iconv_arg1=""
8700 else
8701   am_cv_proto_iconv_arg1="const"
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704       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);"
8705 fi
8706
8707     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8709          }$am_cv_proto_iconv" >&5
8710 $as_echo "${ac_t:-
8711          }$am_cv_proto_iconv" >&6; }
8712
8713 cat >>confdefs.h <<_ACEOF
8714 #define ICONV_CONST $am_cv_proto_iconv_arg1
8715 _ACEOF
8716
8717   fi
8718
8719
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8721 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8722 if ${am_cv_langinfo_codeset+:} false; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h.  */
8727 #include <langinfo.h>
8728 int
8729 main ()
8730 {
8731 char* cs = nl_langinfo(CODESET);
8732   ;
8733   return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"; then :
8737   am_cv_langinfo_codeset=yes
8738 else
8739   am_cv_langinfo_codeset=no
8740 fi
8741 rm -f core conftest.err conftest.$ac_objext \
8742     conftest$ac_exeext conftest.$ac_ext
8743
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8746 $as_echo "$am_cv_langinfo_codeset" >&6; }
8747   if test $am_cv_langinfo_codeset = yes; then
8748
8749 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8750
8751   fi
8752
8753   if test $ac_cv_header_locale_h = yes; then
8754
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8756 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8757 if ${am_cv_val_LC_MESSAGES+:} false; then :
8758   $as_echo_n "(cached) " >&6
8759 else
8760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h.  */
8762 #include <locale.h>
8763 int
8764 main ()
8765 {
8766 return LC_MESSAGES
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772   am_cv_val_LC_MESSAGES=yes
8773 else
8774   am_cv_val_LC_MESSAGES=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext \
8777     conftest$ac_exeext conftest.$ac_ext
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8780 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8781   if test $am_cv_val_LC_MESSAGES = yes; then
8782
8783 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8784
8785   fi
8786
8787   fi
8788
8789                       for ac_prog in bison
8790 do
8791   # Extract the first word of "$ac_prog", so it can be a program name with args.
8792 set dummy $ac_prog; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_INTLBISON+:} false; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   if test -n "$INTLBISON"; then
8799   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8803 do
8804   IFS=$as_save_IFS
8805   test -z "$as_dir" && as_dir=.
8806     for ac_exec_ext in '' $ac_executable_extensions; do
8807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808     ac_cv_prog_INTLBISON="$ac_prog"
8809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810     break 2
8811   fi
8812 done
8813   done
8814 IFS=$as_save_IFS
8815
8816 fi
8817 fi
8818 INTLBISON=$ac_cv_prog_INTLBISON
8819 if test -n "$INTLBISON"; then
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8821 $as_echo "$INTLBISON" >&6; }
8822 else
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 fi
8826
8827
8828   test -n "$INTLBISON" && break
8829 done
8830
8831   if test -z "$INTLBISON"; then
8832     ac_verc_fail=yes
8833   else
8834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8835 $as_echo_n "checking version of bison... " >&6; }
8836     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8837     case $ac_prog_version in
8838       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8839       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8840          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8841       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8842     esac
8843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8844 $as_echo "$ac_prog_version" >&6; }
8845   fi
8846   if test $ac_verc_fail = yes; then
8847     INTLBISON=:
8848   fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8866 $as_echo_n "checking whether NLS is requested... " >&6; }
8867     # Check whether --enable-nls was given.
8868 if test "${enable_nls+set}" = set; then :
8869   enableval=$enable_nls; USE_NLS=$enableval
8870 else
8871   USE_NLS=yes
8872 fi
8873
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8875 $as_echo "$USE_NLS" >&6; }
8876
8877
8878
8879
8880     BUILD_INCLUDED_LIBINTL=no
8881     USE_INCLUDED_LIBINTL=no
8882
8883   LIBINTL=
8884   LTLIBINTL=
8885   POSUB=
8886
8887     if test "$USE_NLS" = "yes"; then
8888     gt_use_preinstalled_gnugettext=no
8889
8890       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8891 $as_echo_n "checking whether included gettext is requested... " >&6; }
8892
8893 # Check whether --with-included-gettext was given.
8894 if test "${with_included_gettext+set}" = set; then :
8895   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8896 else
8897   nls_cv_force_use_gnu_gettext=no
8898 fi
8899
8900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8901 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8902
8903       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8904       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8905
8906
8907
8908
8909
8910
8911         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8912 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8913 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8914   $as_echo_n "(cached) " >&6
8915 else
8916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h.  */
8918 #include <libintl.h>
8919 extern int _nl_msg_cat_cntr;
8920 extern int *_nl_domain_bindings;
8921 int
8922 main ()
8923 {
8924 bindtextdomain ("", "");
8925 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8926   ;
8927   return 0;
8928 }
8929 _ACEOF
8930 if ac_fn_c_try_link "$LINENO"; then :
8931   gt_cv_func_gnugettext1_libc=yes
8932 else
8933   gt_cv_func_gnugettext1_libc=no
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext \
8936     conftest$ac_exeext conftest.$ac_ext
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8939 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8940
8941         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8942
8943
8944
8945     use_additional=yes
8946
8947   acl_save_prefix="$prefix"
8948   prefix="$acl_final_prefix"
8949   acl_save_exec_prefix="$exec_prefix"
8950   exec_prefix="$acl_final_exec_prefix"
8951
8952     eval additional_includedir=\"$includedir\"
8953     eval additional_libdir=\"$libdir\"
8954
8955   exec_prefix="$acl_save_exec_prefix"
8956   prefix="$acl_save_prefix"
8957
8958
8959 # Check whether --with-libintl-prefix was given.
8960 if test "${with_libintl_prefix+set}" = set; then :
8961   withval=$with_libintl_prefix;
8962     if test "X$withval" = "Xno"; then
8963       use_additional=no
8964     else
8965       if test "X$withval" = "X"; then
8966
8967   acl_save_prefix="$prefix"
8968   prefix="$acl_final_prefix"
8969   acl_save_exec_prefix="$exec_prefix"
8970   exec_prefix="$acl_final_exec_prefix"
8971
8972           eval additional_includedir=\"$includedir\"
8973           eval additional_libdir=\"$libdir\"
8974
8975   exec_prefix="$acl_save_exec_prefix"
8976   prefix="$acl_save_prefix"
8977
8978       else
8979         additional_includedir="$withval/include"
8980         additional_libdir="$withval/lib"
8981       fi
8982     fi
8983
8984 fi
8985
8986       LIBINTL=
8987   LTLIBINTL=
8988   INCINTL=
8989   rpathdirs=
8990   ltrpathdirs=
8991   names_already_handled=
8992   names_next_round='intl '
8993   while test -n "$names_next_round"; do
8994     names_this_round="$names_next_round"
8995     names_next_round=
8996     for name in $names_this_round; do
8997       already_handled=
8998       for n in $names_already_handled; do
8999         if test "$n" = "$name"; then
9000           already_handled=yes
9001           break
9002         fi
9003       done
9004       if test -z "$already_handled"; then
9005         names_already_handled="$names_already_handled $name"
9006                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9007         eval value=\"\$HAVE_LIB$uppername\"
9008         if test -n "$value"; then
9009           if test "$value" = yes; then
9010             eval value=\"\$LIB$uppername\"
9011             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9012             eval value=\"\$LTLIB$uppername\"
9013             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9014           else
9015                                     :
9016           fi
9017         else
9018                               found_dir=
9019           found_la=
9020           found_so=
9021           found_a=
9022           if test $use_additional = yes; then
9023             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9024               found_dir="$additional_libdir"
9025               found_so="$additional_libdir/lib$name.$shlibext"
9026               if test -f "$additional_libdir/lib$name.la"; then
9027                 found_la="$additional_libdir/lib$name.la"
9028               fi
9029             else
9030               if test -f "$additional_libdir/lib$name.$libext"; then
9031                 found_dir="$additional_libdir"
9032                 found_a="$additional_libdir/lib$name.$libext"
9033                 if test -f "$additional_libdir/lib$name.la"; then
9034                   found_la="$additional_libdir/lib$name.la"
9035                 fi
9036               fi
9037             fi
9038           fi
9039           if test "X$found_dir" = "X"; then
9040             for x in $LDFLAGS $LTLIBINTL; do
9041
9042   acl_save_prefix="$prefix"
9043   prefix="$acl_final_prefix"
9044   acl_save_exec_prefix="$exec_prefix"
9045   exec_prefix="$acl_final_exec_prefix"
9046   eval x=\"$x\"
9047   exec_prefix="$acl_save_exec_prefix"
9048   prefix="$acl_save_prefix"
9049
9050               case "$x" in
9051                 -L*)
9052                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9053                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9054                     found_dir="$dir"
9055                     found_so="$dir/lib$name.$shlibext"
9056                     if test -f "$dir/lib$name.la"; then
9057                       found_la="$dir/lib$name.la"
9058                     fi
9059                   else
9060                     if test -f "$dir/lib$name.$libext"; then
9061                       found_dir="$dir"
9062                       found_a="$dir/lib$name.$libext"
9063                       if test -f "$dir/lib$name.la"; then
9064                         found_la="$dir/lib$name.la"
9065                       fi
9066                     fi
9067                   fi
9068                   ;;
9069               esac
9070               if test "X$found_dir" != "X"; then
9071                 break
9072               fi
9073             done
9074           fi
9075           if test "X$found_dir" != "X"; then
9076                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9077             if test "X$found_so" != "X"; then
9078                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9079                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9080               else
9081                                                                                 haveit=
9082                 for x in $ltrpathdirs; do
9083                   if test "X$x" = "X$found_dir"; then
9084                     haveit=yes
9085                     break
9086                   fi
9087                 done
9088                 if test -z "$haveit"; then
9089                   ltrpathdirs="$ltrpathdirs $found_dir"
9090                 fi
9091                                 if test "$hardcode_direct" = yes; then
9092                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9093                 else
9094                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9095                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9096                                                             haveit=
9097                     for x in $rpathdirs; do
9098                       if test "X$x" = "X$found_dir"; then
9099                         haveit=yes
9100                         break
9101                       fi
9102                     done
9103                     if test -z "$haveit"; then
9104                       rpathdirs="$rpathdirs $found_dir"
9105                     fi
9106                   else
9107                                                                                 haveit=
9108                     for x in $LDFLAGS $LIBINTL; do
9109
9110   acl_save_prefix="$prefix"
9111   prefix="$acl_final_prefix"
9112   acl_save_exec_prefix="$exec_prefix"
9113   exec_prefix="$acl_final_exec_prefix"
9114   eval x=\"$x\"
9115   exec_prefix="$acl_save_exec_prefix"
9116   prefix="$acl_save_prefix"
9117
9118                       if test "X$x" = "X-L$found_dir"; then
9119                         haveit=yes
9120                         break
9121                       fi
9122                     done
9123                     if test -z "$haveit"; then
9124                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9125                     fi
9126                     if test "$hardcode_minus_L" != no; then
9127                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9128                     else
9129                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9130                     fi
9131                   fi
9132                 fi
9133               fi
9134             else
9135               if test "X$found_a" != "X"; then
9136                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9137               else
9138                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9139               fi
9140             fi
9141                         additional_includedir=
9142             case "$found_dir" in
9143               */lib | */lib/)
9144                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9145                 additional_includedir="$basedir/include"
9146                 ;;
9147             esac
9148             if test "X$additional_includedir" != "X"; then
9149                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9150                 haveit=
9151                 if test "X$additional_includedir" = "X/usr/local/include"; then
9152                   if test -n "$GCC"; then
9153                     case $host_os in
9154                       linux*) haveit=yes;;
9155                     esac
9156                   fi
9157                 fi
9158                 if test -z "$haveit"; then
9159                   for x in $CPPFLAGS $INCINTL; do
9160
9161   acl_save_prefix="$prefix"
9162   prefix="$acl_final_prefix"
9163   acl_save_exec_prefix="$exec_prefix"
9164   exec_prefix="$acl_final_exec_prefix"
9165   eval x=\"$x\"
9166   exec_prefix="$acl_save_exec_prefix"
9167   prefix="$acl_save_prefix"
9168
9169                     if test "X$x" = "X-I$additional_includedir"; then
9170                       haveit=yes
9171                       break
9172                     fi
9173                   done
9174                   if test -z "$haveit"; then
9175                     if test -d "$additional_includedir"; then
9176                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9177                     fi
9178                   fi
9179                 fi
9180               fi
9181             fi
9182                         if test -n "$found_la"; then
9183                                                         save_libdir="$libdir"
9184               case "$found_la" in
9185                 */* | *\\*) . "$found_la" ;;
9186                 *) . "./$found_la" ;;
9187               esac
9188               libdir="$save_libdir"
9189                             for dep in $dependency_libs; do
9190                 case "$dep" in
9191                   -L*)
9192                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9193                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9194                       haveit=
9195                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9196                         if test -n "$GCC"; then
9197                           case $host_os in
9198                             linux*) haveit=yes;;
9199                           esac
9200                         fi
9201                       fi
9202                       if test -z "$haveit"; then
9203                         haveit=
9204                         for x in $LDFLAGS $LIBINTL; do
9205
9206   acl_save_prefix="$prefix"
9207   prefix="$acl_final_prefix"
9208   acl_save_exec_prefix="$exec_prefix"
9209   exec_prefix="$acl_final_exec_prefix"
9210   eval x=\"$x\"
9211   exec_prefix="$acl_save_exec_prefix"
9212   prefix="$acl_save_prefix"
9213
9214                           if test "X$x" = "X-L$additional_libdir"; then
9215                             haveit=yes
9216                             break
9217                           fi
9218                         done
9219                         if test -z "$haveit"; then
9220                           if test -d "$additional_libdir"; then
9221                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9222                           fi
9223                         fi
9224                         haveit=
9225                         for x in $LDFLAGS $LTLIBINTL; do
9226
9227   acl_save_prefix="$prefix"
9228   prefix="$acl_final_prefix"
9229   acl_save_exec_prefix="$exec_prefix"
9230   exec_prefix="$acl_final_exec_prefix"
9231   eval x=\"$x\"
9232   exec_prefix="$acl_save_exec_prefix"
9233   prefix="$acl_save_prefix"
9234
9235                           if test "X$x" = "X-L$additional_libdir"; then
9236                             haveit=yes
9237                             break
9238                           fi
9239                         done
9240                         if test -z "$haveit"; then
9241                           if test -d "$additional_libdir"; then
9242                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9243                           fi
9244                         fi
9245                       fi
9246                     fi
9247                     ;;
9248                   -R*)
9249                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9250                     if test "$enable_rpath" != no; then
9251                                                                   haveit=
9252                       for x in $rpathdirs; do
9253                         if test "X$x" = "X$dir"; then
9254                           haveit=yes
9255                           break
9256                         fi
9257                       done
9258                       if test -z "$haveit"; then
9259                         rpathdirs="$rpathdirs $dir"
9260                       fi
9261                                                                   haveit=
9262                       for x in $ltrpathdirs; do
9263                         if test "X$x" = "X$dir"; then
9264                           haveit=yes
9265                           break
9266                         fi
9267                       done
9268                       if test -z "$haveit"; then
9269                         ltrpathdirs="$ltrpathdirs $dir"
9270                       fi
9271                     fi
9272                     ;;
9273                   -l*)
9274                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9275                     ;;
9276                   *.la)
9277                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9278                     ;;
9279                   *)
9280                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9281                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9282                     ;;
9283                 esac
9284               done
9285             fi
9286           else
9287                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9288             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9289           fi
9290         fi
9291       fi
9292     done
9293   done
9294   if test "X$rpathdirs" != "X"; then
9295     if test -n "$hardcode_libdir_separator"; then
9296                         alldirs=
9297       for found_dir in $rpathdirs; do
9298         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9299       done
9300             acl_save_libdir="$libdir"
9301       libdir="$alldirs"
9302       eval flag=\"$hardcode_libdir_flag_spec\"
9303       libdir="$acl_save_libdir"
9304       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9305     else
9306             for found_dir in $rpathdirs; do
9307         acl_save_libdir="$libdir"
9308         libdir="$found_dir"
9309         eval flag=\"$hardcode_libdir_flag_spec\"
9310         libdir="$acl_save_libdir"
9311         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9312       done
9313     fi
9314   fi
9315   if test "X$ltrpathdirs" != "X"; then
9316             for found_dir in $ltrpathdirs; do
9317       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9318     done
9319   fi
9320
9321           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9322 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9323 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326   gt_save_CPPFLAGS="$CPPFLAGS"
9327             CPPFLAGS="$CPPFLAGS $INCINTL"
9328             gt_save_LIBS="$LIBS"
9329             LIBS="$LIBS $LIBINTL"
9330                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h.  */
9332 #include <libintl.h>
9333 extern int _nl_msg_cat_cntr;
9334 extern
9335 #ifdef __cplusplus
9336 "C"
9337 #endif
9338 const char *_nl_expand_alias ();
9339 int
9340 main ()
9341 {
9342 bindtextdomain ("", "");
9343 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 if ac_fn_c_try_link "$LINENO"; then :
9349   gt_cv_func_gnugettext1_libintl=yes
9350 else
9351   gt_cv_func_gnugettext1_libintl=no
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext \
9354     conftest$ac_exeext conftest.$ac_ext
9355                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9356               LIBS="$LIBS $LIBICONV"
9357               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h.  */
9359 #include <libintl.h>
9360 extern int _nl_msg_cat_cntr;
9361 extern
9362 #ifdef __cplusplus
9363 "C"
9364 #endif
9365 const char *_nl_expand_alias ();
9366 int
9367 main ()
9368 {
9369 bindtextdomain ("", "");
9370 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9371   ;
9372   return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376   LIBINTL="$LIBINTL $LIBICONV"
9377                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9378                 gt_cv_func_gnugettext1_libintl=yes
9379
9380 fi
9381 rm -f core conftest.err conftest.$ac_objext \
9382     conftest$ac_exeext conftest.$ac_ext
9383             fi
9384             CPPFLAGS="$gt_save_CPPFLAGS"
9385             LIBS="$gt_save_LIBS"
9386 fi
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9388 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9389         fi
9390
9391                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9392            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9393                 && test "$PACKAGE" != gettext-runtime \
9394                 && test "$PACKAGE" != gettext-tools; }; then
9395           gt_use_preinstalled_gnugettext=yes
9396         else
9397                     LIBINTL=
9398           LTLIBINTL=
9399           INCINTL=
9400         fi
9401
9402
9403         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9404                               nls_cv_use_gnu_gettext=yes
9405         fi
9406       fi
9407
9408       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9409                 BUILD_INCLUDED_LIBINTL=yes
9410         USE_INCLUDED_LIBINTL=yes
9411         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9412         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9413         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9414       fi
9415
9416       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9417          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9418                 CATOBJEXT=.gmo
9419       fi
9420
9421
9422     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9423        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9424
9425 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9426
9427     else
9428       USE_NLS=no
9429     fi
9430   fi
9431
9432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9433 $as_echo_n "checking whether to use NLS... " >&6; }
9434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9435 $as_echo "$USE_NLS" >&6; }
9436   if test "$USE_NLS" = "yes"; then
9437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9438 $as_echo_n "checking where the gettext function comes from... " >&6; }
9439     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9440       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9441         gt_source="external libintl"
9442       else
9443         gt_source="libc"
9444       fi
9445     else
9446       gt_source="included intl directory"
9447     fi
9448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9449 $as_echo "$gt_source" >&6; }
9450   fi
9451
9452   if test "$USE_NLS" = "yes"; then
9453
9454     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9455       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9457 $as_echo_n "checking how to link with libintl... " >&6; }
9458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9459 $as_echo "$LIBINTL" >&6; }
9460
9461   for element in $INCINTL; do
9462     haveit=
9463     for x in $CPPFLAGS; do
9464
9465   acl_save_prefix="$prefix"
9466   prefix="$acl_final_prefix"
9467   acl_save_exec_prefix="$exec_prefix"
9468   exec_prefix="$acl_final_exec_prefix"
9469   eval x=\"$x\"
9470   exec_prefix="$acl_save_exec_prefix"
9471   prefix="$acl_save_prefix"
9472
9473       if test "X$x" = "X$element"; then
9474         haveit=yes
9475         break
9476       fi
9477     done
9478     if test -z "$haveit"; then
9479       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9480     fi
9481   done
9482
9483       fi
9484
9485
9486 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9487
9488
9489 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9490
9491     fi
9492
9493         POSUB=po
9494   fi
9495
9496
9497             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9498       BUILD_INCLUDED_LIBINTL=yes
9499     fi
9500
9501
9502
9503
9504
9505         nls_cv_header_intl=
9506     nls_cv_header_libgt=
9507
9508         DATADIRNAME=share
9509
9510
9511         INSTOBJEXT=.mo
9512
9513
9514         GENCAT=gencat
9515
9516
9517         if test "$USE_INCLUDED_LIBINTL" = yes; then
9518       INTLOBJS="\$(GETTOBJS)"
9519     fi
9520
9521
9522         INTL_LIBTOOL_SUFFIX_PREFIX=
9523
9524
9525
9526     INTLLIBS="$LIBINTL"
9527
9528
9529
9530
9531
9532
9533
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9536 set x ${MAKE-make}
9537 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9538 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9539   $as_echo_n "(cached) " >&6
9540 else
9541   cat >conftest.make <<\_ACEOF
9542 SHELL = /bin/sh
9543 all:
9544         @echo '@@@%%%=$(MAKE)=@@@%%%'
9545 _ACEOF
9546 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9548   *@@@%%%=?*=@@@%%%*)
9549     eval ac_cv_prog_make_${ac_make}_set=yes;;
9550   *)
9551     eval ac_cv_prog_make_${ac_make}_set=no;;
9552 esac
9553 rm -f conftest.make
9554 fi
9555 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9557 $as_echo "yes" >&6; }
9558   SET_MAKE=
9559 else
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562   SET_MAKE="MAKE=${MAKE-make}"
9563 fi
9564
9565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9566 $as_echo_n "checking for GNU make... " >&6; }
9567 if ${_cv_gnu_make_command+:} false; then :
9568   $as_echo_n "(cached) " >&6
9569 else
9570   _cv_gnu_make_command='' ;
9571                 for a in "$MAKE" make gmake gnumake ; do
9572                         if test -z "$a" ; then continue ; fi ;
9573                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9574                                 _cv_gnu_make_command=$a ;
9575                                 break;
9576                         fi
9577                 done ;
9578
9579 fi
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9581 $as_echo "$_cv_gnu_make_command" >&6; } ;
9582         if test  "x$_cv_gnu_make_command" != "x"  ; then
9583                 ifGNUmake='' ;
9584                 ifNotGNUmake='#' ;
9585         else
9586                 ifGNUmake='#' ;
9587                 ifNotGNUmake='' ;
9588                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9589 $as_echo "\"Not found\"" >&6; };
9590         fi
9591
9592
9593
9594 # Extract the first word of "ln", so it can be a program name with args.
9595 set dummy ln; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if ${ac_cv_path_LN+:} false; then :
9599   $as_echo_n "(cached) " >&6
9600 else
9601   case $LN in
9602   [\\/]* | ?:[\\/]*)
9603   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9604   ;;
9605   *)
9606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9608 do
9609   IFS=$as_save_IFS
9610   test -z "$as_dir" && as_dir=.
9611     for ac_exec_ext in '' $ac_executable_extensions; do
9612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9613     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9615     break 2
9616   fi
9617 done
9618   done
9619 IFS=$as_save_IFS
9620
9621   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9622   ;;
9623 esac
9624 fi
9625 LN=$ac_cv_path_LN
9626 if test -n "$LN"; then
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9628 $as_echo "$LN" >&6; }
9629 else
9630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9632 fi
9633
9634
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9636 $as_echo_n "checking whether ln -s works... " >&6; }
9637 LN_S=$as_ln_s
9638 if test "$LN_S" = "ln -s"; then
9639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9640 $as_echo "yes" >&6; }
9641 else
9642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9643 $as_echo "no, using $LN_S" >&6; }
9644 fi
9645
9646 # Extract the first word of "mv", so it can be a program name with args.
9647 set dummy mv; ac_word=$2
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649 $as_echo_n "checking for $ac_word... " >&6; }
9650 if ${ac_cv_path_MV+:} false; then :
9651   $as_echo_n "(cached) " >&6
9652 else
9653   case $MV in
9654   [\\/]* | ?:[\\/]*)
9655   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9656   ;;
9657   *)
9658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9659 for as_dir in $PATH
9660 do
9661   IFS=$as_save_IFS
9662   test -z "$as_dir" && as_dir=.
9663     for ac_exec_ext in '' $ac_executable_extensions; do
9664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9665     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9667     break 2
9668   fi
9669 done
9670   done
9671 IFS=$as_save_IFS
9672
9673   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9674   ;;
9675 esac
9676 fi
9677 MV=$ac_cv_path_MV
9678 if test -n "$MV"; then
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9680 $as_echo "$MV" >&6; }
9681 else
9682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9684 fi
9685
9686
9687 # Extract the first word of "cp", so it can be a program name with args.
9688 set dummy cp; ac_word=$2
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690 $as_echo_n "checking for $ac_word... " >&6; }
9691 if ${ac_cv_path_CP+:} false; then :
9692   $as_echo_n "(cached) " >&6
9693 else
9694   case $CP in
9695   [\\/]* | ?:[\\/]*)
9696   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9697   ;;
9698   *)
9699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9701 do
9702   IFS=$as_save_IFS
9703   test -z "$as_dir" && as_dir=.
9704     for ac_exec_ext in '' $ac_executable_extensions; do
9705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9706     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708     break 2
9709   fi
9710 done
9711   done
9712 IFS=$as_save_IFS
9713
9714   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9715   ;;
9716 esac
9717 fi
9718 CP=$ac_cv_path_CP
9719 if test -n "$CP"; then
9720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9721 $as_echo "$CP" >&6; }
9722 else
9723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9725 fi
9726
9727
9728 # Extract the first word of "rm", so it can be a program name with args.
9729 set dummy rm; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if ${ac_cv_path_RM+:} false; then :
9733   $as_echo_n "(cached) " >&6
9734 else
9735   case $RM in
9736   [\\/]* | ?:[\\/]*)
9737   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9738   ;;
9739   *)
9740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9742 do
9743   IFS=$as_save_IFS
9744   test -z "$as_dir" && as_dir=.
9745     for ac_exec_ext in '' $ac_executable_extensions; do
9746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9747     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749     break 2
9750   fi
9751 done
9752   done
9753 IFS=$as_save_IFS
9754
9755   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9756   ;;
9757 esac
9758 fi
9759 RM=$ac_cv_path_RM
9760 if test -n "$RM"; then
9761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9762 $as_echo "$RM" >&6; }
9763 else
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9766 fi
9767
9768
9769 # Extract the first word of "chmod", so it can be a program name with args.
9770 set dummy chmod; ac_word=$2
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 $as_echo_n "checking for $ac_word... " >&6; }
9773 if ${ac_cv_path_CHMOD+:} false; then :
9774   $as_echo_n "(cached) " >&6
9775 else
9776   case $CHMOD in
9777   [\\/]* | ?:[\\/]*)
9778   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9779   ;;
9780   *)
9781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9783 do
9784   IFS=$as_save_IFS
9785   test -z "$as_dir" && as_dir=.
9786     for ac_exec_ext in '' $ac_executable_extensions; do
9787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9788     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790     break 2
9791   fi
9792 done
9793   done
9794 IFS=$as_save_IFS
9795
9796   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9797   ;;
9798 esac
9799 fi
9800 CHMOD=$ac_cv_path_CHMOD
9801 if test -n "$CHMOD"; then
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9803 $as_echo "$CHMOD" >&6; }
9804 else
9805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9807 fi
9808
9809
9810 for ac_prog in gawk mawk nawk awk
9811 do
9812   # Extract the first word of "$ac_prog", so it can be a program name with args.
9813 set dummy $ac_prog; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if ${ac_cv_prog_AWK+:} false; then :
9817   $as_echo_n "(cached) " >&6
9818 else
9819   if test -n "$AWK"; then
9820   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9821 else
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in $PATH
9824 do
9825   IFS=$as_save_IFS
9826   test -z "$as_dir" && as_dir=.
9827     for ac_exec_ext in '' $ac_executable_extensions; do
9828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829     ac_cv_prog_AWK="$ac_prog"
9830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831     break 2
9832   fi
9833 done
9834   done
9835 IFS=$as_save_IFS
9836
9837 fi
9838 fi
9839 AWK=$ac_cv_prog_AWK
9840 if test -n "$AWK"; then
9841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9842 $as_echo "$AWK" >&6; }
9843 else
9844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9846 fi
9847
9848
9849   test -n "$AWK" && break
9850 done
9851
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9853 $as_echo_n "checking for egrep... " >&6; }
9854 if ${ac_cv_path_EGREP+:} false; then :
9855   $as_echo_n "(cached) " >&6
9856 else
9857   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9858    then ac_cv_path_EGREP="$GREP -E"
9859    else
9860      if test -z "$EGREP"; then
9861   ac_path_EGREP_found=false
9862   # Loop through the user's path and test for each of PROGNAME-LIST
9863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9865 do
9866   IFS=$as_save_IFS
9867   test -z "$as_dir" && as_dir=.
9868     for ac_prog in egrep; do
9869     for ac_exec_ext in '' $ac_executable_extensions; do
9870       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9871       as_fn_executable_p "$ac_path_EGREP" || continue
9872 # Check for GNU ac_path_EGREP and select it if it is found.
9873   # Check for GNU $ac_path_EGREP
9874 case `"$ac_path_EGREP" --version 2>&1` in
9875 *GNU*)
9876   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9877 *)
9878   ac_count=0
9879   $as_echo_n 0123456789 >"conftest.in"
9880   while :
9881   do
9882     cat "conftest.in" "conftest.in" >"conftest.tmp"
9883     mv "conftest.tmp" "conftest.in"
9884     cp "conftest.in" "conftest.nl"
9885     $as_echo 'EGREP' >> "conftest.nl"
9886     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9887     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9888     as_fn_arith $ac_count + 1 && ac_count=$as_val
9889     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9890       # Best one so far, save it but keep looking for a better one
9891       ac_cv_path_EGREP="$ac_path_EGREP"
9892       ac_path_EGREP_max=$ac_count
9893     fi
9894     # 10*(2^10) chars as input seems more than enough
9895     test $ac_count -gt 10 && break
9896   done
9897   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9898 esac
9899
9900       $ac_path_EGREP_found && break 3
9901     done
9902   done
9903   done
9904 IFS=$as_save_IFS
9905   if test -z "$ac_cv_path_EGREP"; then
9906     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9907   fi
9908 else
9909   ac_cv_path_EGREP=$EGREP
9910 fi
9911
9912    fi
9913 fi
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9915 $as_echo "$ac_cv_path_EGREP" >&6; }
9916  EGREP="$ac_cv_path_EGREP"
9917
9918
9919 # Extract the first word of "sed", so it can be a program name with args.
9920 set dummy sed; ac_word=$2
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if ${ac_cv_path_SED+:} false; then :
9924   $as_echo_n "(cached) " >&6
9925 else
9926   case $SED in
9927   [\\/]* | ?:[\\/]*)
9928   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9929   ;;
9930   *)
9931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 for as_dir in $PATH
9933 do
9934   IFS=$as_save_IFS
9935   test -z "$as_dir" && as_dir=.
9936     for ac_exec_ext in '' $ac_executable_extensions; do
9937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9938     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9940     break 2
9941   fi
9942 done
9943   done
9944 IFS=$as_save_IFS
9945
9946   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9947   ;;
9948 esac
9949 fi
9950 SED=$ac_cv_path_SED
9951 if test -n "$SED"; then
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9953 $as_echo "$SED" >&6; }
9954 else
9955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9957 fi
9958
9959
9960 # Extract the first word of "perl", so it can be a program name with args.
9961 set dummy perl; ac_word=$2
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963 $as_echo_n "checking for $ac_word... " >&6; }
9964 if ${ac_cv_path_PERL+:} false; then :
9965   $as_echo_n "(cached) " >&6
9966 else
9967   case $PERL in
9968   [\\/]* | ?:[\\/]*)
9969   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9970   ;;
9971   *)
9972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975   IFS=$as_save_IFS
9976   test -z "$as_dir" && as_dir=.
9977     for ac_exec_ext in '' $ac_executable_extensions; do
9978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981     break 2
9982   fi
9983 done
9984   done
9985 IFS=$as_save_IFS
9986
9987   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9988   ;;
9989 esac
9990 fi
9991 PERL=$ac_cv_path_PERL
9992 if test -n "$PERL"; then
9993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9994 $as_echo "$PERL" >&6; }
9995 else
9996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
9998 fi
9999
10000
10001 # Extract the first word of "ldconfig", so it can be a program name with args.
10002 set dummy ldconfig; ac_word=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if ${ac_cv_path_LDCONFIG+:} false; then :
10006   $as_echo_n "(cached) " >&6
10007 else
10008   case $LDCONFIG in
10009   [\\/]* | ?:[\\/]*)
10010   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10011   ;;
10012   *)
10013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10015 do
10016   IFS=$as_save_IFS
10017   test -z "$as_dir" && as_dir=.
10018     for ac_exec_ext in '' $ac_executable_extensions; do
10019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022     break 2
10023   fi
10024 done
10025   done
10026 IFS=$as_save_IFS
10027
10028   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10029   ;;
10030 esac
10031 fi
10032 LDCONFIG=$ac_cv_path_LDCONFIG
10033 if test -n "$LDCONFIG"; then
10034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10035 $as_echo "$LDCONFIG" >&6; }
10036 else
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10039 fi
10040
10041
10042 if test -n "$ac_tool_prefix"; then
10043   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10044 set dummy ${ac_tool_prefix}ar; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_prog_AR+:} false; then :
10048   $as_echo_n "(cached) " >&6
10049 else
10050   if test -n "$AR"; then
10051   ac_cv_prog_AR="$AR" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056   IFS=$as_save_IFS
10057   test -z "$as_dir" && as_dir=.
10058     for ac_exec_ext in '' $ac_executable_extensions; do
10059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060     ac_cv_prog_AR="${ac_tool_prefix}ar"
10061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062     break 2
10063   fi
10064 done
10065   done
10066 IFS=$as_save_IFS
10067
10068 fi
10069 fi
10070 AR=$ac_cv_prog_AR
10071 if test -n "$AR"; then
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10073 $as_echo "$AR" >&6; }
10074 else
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10077 fi
10078
10079
10080 fi
10081 if test -z "$ac_cv_prog_AR"; then
10082   ac_ct_AR=$AR
10083   # Extract the first word of "ar", so it can be a program name with args.
10084 set dummy ar; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10088   $as_echo_n "(cached) " >&6
10089 else
10090   if test -n "$ac_ct_AR"; then
10091   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10092 else
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10095 do
10096   IFS=$as_save_IFS
10097   test -z "$as_dir" && as_dir=.
10098     for ac_exec_ext in '' $ac_executable_extensions; do
10099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100     ac_cv_prog_ac_ct_AR="ar"
10101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102     break 2
10103   fi
10104 done
10105   done
10106 IFS=$as_save_IFS
10107
10108 fi
10109 fi
10110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10111 if test -n "$ac_ct_AR"; then
10112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10113 $as_echo "$ac_ct_AR" >&6; }
10114 else
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10117 fi
10118
10119   if test "x$ac_ct_AR" = x; then
10120     AR="ar"
10121   else
10122     case $cross_compiling:$ac_tool_warned in
10123 yes:)
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10126 ac_tool_warned=yes ;;
10127 esac
10128     AR=$ac_ct_AR
10129   fi
10130 else
10131   AR="$ac_cv_prog_AR"
10132 fi
10133
10134 if test -n "$ac_tool_prefix"; then
10135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if ${ac_cv_prog_RANLIB+:} false; then :
10140   $as_echo_n "(cached) " >&6
10141 else
10142   if test -n "$RANLIB"; then
10143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10144 else
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10147 do
10148   IFS=$as_save_IFS
10149   test -z "$as_dir" && as_dir=.
10150     for ac_exec_ext in '' $ac_executable_extensions; do
10151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10154     break 2
10155   fi
10156 done
10157   done
10158 IFS=$as_save_IFS
10159
10160 fi
10161 fi
10162 RANLIB=$ac_cv_prog_RANLIB
10163 if test -n "$RANLIB"; then
10164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10165 $as_echo "$RANLIB" >&6; }
10166 else
10167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10169 fi
10170
10171
10172 fi
10173 if test -z "$ac_cv_prog_RANLIB"; then
10174   ac_ct_RANLIB=$RANLIB
10175   # Extract the first word of "ranlib", so it can be a program name with args.
10176 set dummy ranlib; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10180   $as_echo_n "(cached) " >&6
10181 else
10182   if test -n "$ac_ct_RANLIB"; then
10183   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10184 else
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10187 do
10188   IFS=$as_save_IFS
10189   test -z "$as_dir" && as_dir=.
10190     for ac_exec_ext in '' $ac_executable_extensions; do
10191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10192     ac_cv_prog_ac_ct_RANLIB="ranlib"
10193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10194     break 2
10195   fi
10196 done
10197   done
10198 IFS=$as_save_IFS
10199
10200 fi
10201 fi
10202 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10203 if test -n "$ac_ct_RANLIB"; then
10204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10205 $as_echo "$ac_ct_RANLIB" >&6; }
10206 else
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10209 fi
10210
10211   if test "x$ac_ct_RANLIB" = x; then
10212     RANLIB=":"
10213   else
10214     case $cross_compiling:$ac_tool_warned in
10215 yes:)
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10218 ac_tool_warned=yes ;;
10219 esac
10220     RANLIB=$ac_ct_RANLIB
10221   fi
10222 else
10223   RANLIB="$ac_cv_prog_RANLIB"
10224 fi
10225
10226 if test -n "$ac_tool_prefix"; then
10227   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10228 set dummy ${ac_tool_prefix}strip; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 $as_echo_n "checking for $ac_word... " >&6; }
10231 if ${ac_cv_prog_STRIP+:} false; then :
10232   $as_echo_n "(cached) " >&6
10233 else
10234   if test -n "$STRIP"; then
10235   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10236 else
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10239 do
10240   IFS=$as_save_IFS
10241   test -z "$as_dir" && as_dir=.
10242     for ac_exec_ext in '' $ac_executable_extensions; do
10243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10244     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10246     break 2
10247   fi
10248 done
10249   done
10250 IFS=$as_save_IFS
10251
10252 fi
10253 fi
10254 STRIP=$ac_cv_prog_STRIP
10255 if test -n "$STRIP"; then
10256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10257 $as_echo "$STRIP" >&6; }
10258 else
10259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10261 fi
10262
10263
10264 fi
10265 if test -z "$ac_cv_prog_STRIP"; then
10266   ac_ct_STRIP=$STRIP
10267   # Extract the first word of "strip", so it can be a program name with args.
10268 set dummy strip; ac_word=$2
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270 $as_echo_n "checking for $ac_word... " >&6; }
10271 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10272   $as_echo_n "(cached) " >&6
10273 else
10274   if test -n "$ac_ct_STRIP"; then
10275   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10276 else
10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in $PATH
10279 do
10280   IFS=$as_save_IFS
10281   test -z "$as_dir" && as_dir=.
10282     for ac_exec_ext in '' $ac_executable_extensions; do
10283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10284     ac_cv_prog_ac_ct_STRIP="strip"
10285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286     break 2
10287   fi
10288 done
10289   done
10290 IFS=$as_save_IFS
10291
10292 fi
10293 fi
10294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10295 if test -n "$ac_ct_STRIP"; then
10296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10297 $as_echo "$ac_ct_STRIP" >&6; }
10298 else
10299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; }
10301 fi
10302
10303   if test "x$ac_ct_STRIP" = x; then
10304     STRIP=":"
10305   else
10306     case $cross_compiling:$ac_tool_warned in
10307 yes:)
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10310 ac_tool_warned=yes ;;
10311 esac
10312     STRIP=$ac_ct_STRIP
10313   fi
10314 else
10315   STRIP="$ac_cv_prog_STRIP"
10316 fi
10317
10318 # Extract the first word of "makeinfo", so it can be a program name with args.
10319 set dummy makeinfo; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_prog_MAKEINFO+:} false; then :
10323   $as_echo_n "(cached) " >&6
10324 else
10325   if test -n "$MAKEINFO"; then
10326   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10327 else
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10330 do
10331   IFS=$as_save_IFS
10332   test -z "$as_dir" && as_dir=.
10333     for ac_exec_ext in '' $ac_executable_extensions; do
10334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10335     ac_cv_prog_MAKEINFO="makeinfo"
10336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337     break 2
10338   fi
10339 done
10340   done
10341 IFS=$as_save_IFS
10342
10343 fi
10344 fi
10345 MAKEINFO=$ac_cv_prog_MAKEINFO
10346 if test -n "$MAKEINFO"; then
10347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10348 $as_echo "$MAKEINFO" >&6; }
10349 else
10350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10352 fi
10353
10354
10355 if test "_$MAKEINFO" = "_"; then
10356     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10357 else
10358     case "$MAKEINFO" in
10359       */missing.*)
10360         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10361 *** Makeinfo is missing. Info documentation will not be built." >&5
10362 $as_echo "$as_me: WARNING:
10363 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10364         ;;
10365       *)
10366         ;;
10367     esac
10368 fi
10369
10370
10371 # See if we need a separate native compiler.
10372 if test $cross_compiling = no; then
10373   BUILD_CC="$CC"
10374
10375 else
10376   for ac_prog in gcc cc
10377 do
10378   # Extract the first word of "$ac_prog", so it can be a program name with args.
10379 set dummy $ac_prog; ac_word=$2
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381 $as_echo_n "checking for $ac_word... " >&6; }
10382 if ${ac_cv_prog_BUILD_CC+:} false; then :
10383   $as_echo_n "(cached) " >&6
10384 else
10385   if test -n "$BUILD_CC"; then
10386   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10387 else
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10390 do
10391   IFS=$as_save_IFS
10392   test -z "$as_dir" && as_dir=.
10393     for ac_exec_ext in '' $ac_executable_extensions; do
10394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10395     ac_cv_prog_BUILD_CC="$ac_prog"
10396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397     break 2
10398   fi
10399 done
10400   done
10401 IFS=$as_save_IFS
10402
10403 fi
10404 fi
10405 BUILD_CC=$ac_cv_prog_BUILD_CC
10406 if test -n "$BUILD_CC"; then
10407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10408 $as_echo "$BUILD_CC" >&6; }
10409 else
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10412 fi
10413
10414
10415   test -n "$BUILD_CC" && break
10416 done
10417
10418 fi
10419 for ac_header in        dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         linux/falloc.h  linux/fd.h      linux/major.h   net/if_dl.h     netinet/in.h    sys/disklabel.h         sys/file.h      sys/ioctl.h     sys/mkdev.h     sys/mman.h      sys/prctl.h     sys/queue.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
10420 do :
10421   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10422 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10424   cat >>confdefs.h <<_ACEOF
10425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10426 _ACEOF
10427
10428 fi
10429
10430 done
10431
10432 for ac_header in sys/disk.h sys/mount.h
10433 do :
10434   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10435 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10436 #if HAVE_SYS_QUEUE_H
10437 #include <sys/queue.h>
10438 #endif
10439
10440 "
10441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10442   cat >>confdefs.h <<_ACEOF
10443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10444 _ACEOF
10445
10446 fi
10447
10448 done
10449
10450 for ac_header in net/if.h
10451 do :
10452   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10453 #if HAVE_SYS_TYPES_H
10454 #include <sys/types.h>
10455 #endif
10456 #if HAVE_SYS_SOCKET
10457 #include <sys/socket.h>
10458 #endif
10459
10460 "
10461 if test "x$ac_cv_header_net_if_h" = xyes; then :
10462   cat >>confdefs.h <<_ACEOF
10463 #define HAVE_NET_IF_H 1
10464 _ACEOF
10465
10466 fi
10467
10468 done
10469
10470 for ac_func in vprintf
10471 do :
10472   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10473 if test "x$ac_cv_func_vprintf" = xyes; then :
10474   cat >>confdefs.h <<_ACEOF
10475 #define HAVE_VPRINTF 1
10476 _ACEOF
10477
10478 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10479 if test "x$ac_cv_func__doprnt" = xyes; then :
10480
10481 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10482
10483 fi
10484
10485 fi
10486 done
10487
10488
10489 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10490 "
10491 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10492
10493 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10494
10495 fi
10496
10497 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10498 "
10499 if test "x$ac_cv_type_ssize_t" = xyes; then :
10500
10501 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10502
10503 fi
10504
10505 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10506 "
10507 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10508
10509 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10510
10511 fi
10512
10513 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10514                  #define _LARGEFILE64_SOURCE
10515                  #include <unistd.h>
10516 "
10517 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10518
10519 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10520
10521 fi
10522
10523 # The cast to long int works around a bug in the HP C Compiler
10524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10526 # This bug is HP SR number 8606223364.
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10528 $as_echo_n "checking size of short... " >&6; }
10529 if ${ac_cv_sizeof_short+:} false; then :
10530   $as_echo_n "(cached) " >&6
10531 else
10532   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10533
10534 else
10535   if test "$ac_cv_type_short" = yes; then
10536      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10538 as_fn_error 77 "cannot compute sizeof (short)
10539 See \`config.log' for more details" "$LINENO" 5; }
10540    else
10541      ac_cv_sizeof_short=0
10542    fi
10543 fi
10544
10545 fi
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10547 $as_echo "$ac_cv_sizeof_short" >&6; }
10548
10549
10550
10551 cat >>confdefs.h <<_ACEOF
10552 #define SIZEOF_SHORT $ac_cv_sizeof_short
10553 _ACEOF
10554
10555
10556 # The cast to long int works around a bug in the HP C Compiler
10557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10559 # This bug is HP SR number 8606223364.
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10561 $as_echo_n "checking size of int... " >&6; }
10562 if ${ac_cv_sizeof_int+:} false; then :
10563   $as_echo_n "(cached) " >&6
10564 else
10565   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10566
10567 else
10568   if test "$ac_cv_type_int" = yes; then
10569      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10571 as_fn_error 77 "cannot compute sizeof (int)
10572 See \`config.log' for more details" "$LINENO" 5; }
10573    else
10574      ac_cv_sizeof_int=0
10575    fi
10576 fi
10577
10578 fi
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10580 $as_echo "$ac_cv_sizeof_int" >&6; }
10581
10582
10583
10584 cat >>confdefs.h <<_ACEOF
10585 #define SIZEOF_INT $ac_cv_sizeof_int
10586 _ACEOF
10587
10588
10589 # The cast to long int works around a bug in the HP C Compiler
10590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10592 # This bug is HP SR number 8606223364.
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10594 $as_echo_n "checking size of long... " >&6; }
10595 if ${ac_cv_sizeof_long+:} false; then :
10596   $as_echo_n "(cached) " >&6
10597 else
10598   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10599
10600 else
10601   if test "$ac_cv_type_long" = yes; then
10602      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10604 as_fn_error 77 "cannot compute sizeof (long)
10605 See \`config.log' for more details" "$LINENO" 5; }
10606    else
10607      ac_cv_sizeof_long=0
10608    fi
10609 fi
10610
10611 fi
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10613 $as_echo "$ac_cv_sizeof_long" >&6; }
10614
10615
10616
10617 cat >>confdefs.h <<_ACEOF
10618 #define SIZEOF_LONG $ac_cv_sizeof_long
10619 _ACEOF
10620
10621
10622 # The cast to long int works around a bug in the HP C Compiler
10623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10625 # This bug is HP SR number 8606223364.
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10627 $as_echo_n "checking size of long long... " >&6; }
10628 if ${ac_cv_sizeof_long_long+:} false; then :
10629   $as_echo_n "(cached) " >&6
10630 else
10631   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10632
10633 else
10634   if test "$ac_cv_type_long_long" = yes; then
10635      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10637 as_fn_error 77 "cannot compute sizeof (long long)
10638 See \`config.log' for more details" "$LINENO" 5; }
10639    else
10640      ac_cv_sizeof_long_long=0
10641    fi
10642 fi
10643
10644 fi
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10646 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10647
10648
10649
10650 cat >>confdefs.h <<_ACEOF
10651 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10652 _ACEOF
10653
10654
10655 # The cast to long int works around a bug in the HP C Compiler
10656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10658 # This bug is HP SR number 8606223364.
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10660 $as_echo_n "checking size of off_t... " >&6; }
10661 if ${ac_cv_sizeof_off_t+:} false; then :
10662   $as_echo_n "(cached) " >&6
10663 else
10664   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10665
10666 else
10667   if test "$ac_cv_type_off_t" = yes; then
10668      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10670 as_fn_error 77 "cannot compute sizeof (off_t)
10671 See \`config.log' for more details" "$LINENO" 5; }
10672    else
10673      ac_cv_sizeof_off_t=0
10674    fi
10675 fi
10676
10677 fi
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10679 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10680
10681
10682
10683 cat >>confdefs.h <<_ACEOF
10684 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10685 _ACEOF
10686
10687
10688 SIZEOF_SHORT=$ac_cv_sizeof_short
10689 SIZEOF_INT=$ac_cv_sizeof_int
10690 SIZEOF_LONG=$ac_cv_sizeof_long
10691 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10692 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10693
10694
10695
10696
10697
10698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10699 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10700 if ${ac_cv_c_bigendian+:} false; then :
10701   $as_echo_n "(cached) " >&6
10702 else
10703   ac_cv_c_bigendian=unknown
10704     # See if we're dealing with a universal compiler.
10705     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h.  */
10707 #ifndef __APPLE_CC__
10708                not a universal capable compiler
10709              #endif
10710              typedef int dummy;
10711
10712 _ACEOF
10713 if ac_fn_c_try_compile "$LINENO"; then :
10714
10715         # Check for potential -arch flags.  It is not universal unless
10716         # there are at least two -arch flags with different values.
10717         ac_arch=
10718         ac_prev=
10719         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10720          if test -n "$ac_prev"; then
10721            case $ac_word in
10722              i?86 | x86_64 | ppc | ppc64)
10723                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10724                  ac_arch=$ac_word
10725                else
10726                  ac_cv_c_bigendian=universal
10727                  break
10728                fi
10729                ;;
10730            esac
10731            ac_prev=
10732          elif test "x$ac_word" = "x-arch"; then
10733            ac_prev=arch
10734          fi
10735        done
10736 fi
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738     if test $ac_cv_c_bigendian = unknown; then
10739       # See if sys/param.h defines the BYTE_ORDER macro.
10740       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h.  */
10742 #include <sys/types.h>
10743              #include <sys/param.h>
10744
10745 int
10746 main ()
10747 {
10748 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10749                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10750                      && LITTLE_ENDIAN)
10751               bogus endian macros
10752              #endif
10753
10754   ;
10755   return 0;
10756 }
10757 _ACEOF
10758 if ac_fn_c_try_compile "$LINENO"; then :
10759   # It does; now see whether it defined to BIG_ENDIAN or not.
10760          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h.  */
10762 #include <sys/types.h>
10763                 #include <sys/param.h>
10764
10765 int
10766 main ()
10767 {
10768 #if BYTE_ORDER != BIG_ENDIAN
10769                  not big endian
10770                 #endif
10771
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_compile "$LINENO"; then :
10777   ac_cv_c_bigendian=yes
10778 else
10779   ac_cv_c_bigendian=no
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784     fi
10785     if test $ac_cv_c_bigendian = unknown; then
10786       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10787       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h.  */
10789 #include <limits.h>
10790
10791 int
10792 main ()
10793 {
10794 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10795               bogus endian macros
10796              #endif
10797
10798   ;
10799   return 0;
10800 }
10801 _ACEOF
10802 if ac_fn_c_try_compile "$LINENO"; then :
10803   # It does; now see whether it defined to _BIG_ENDIAN or not.
10804          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h.  */
10806 #include <limits.h>
10807
10808 int
10809 main ()
10810 {
10811 #ifndef _BIG_ENDIAN
10812                  not big endian
10813                 #endif
10814
10815   ;
10816   return 0;
10817 }
10818 _ACEOF
10819 if ac_fn_c_try_compile "$LINENO"; then :
10820   ac_cv_c_bigendian=yes
10821 else
10822   ac_cv_c_bigendian=no
10823 fi
10824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10825 fi
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827     fi
10828     if test $ac_cv_c_bigendian = unknown; then
10829       # Compile a test program.
10830       if test "$cross_compiling" = yes; then :
10831   # Try to guess by grepping values from an object file.
10832          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h.  */
10834 short int ascii_mm[] =
10835                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10836                 short int ascii_ii[] =
10837                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10838                 int use_ascii (int i) {
10839                   return ascii_mm[i] + ascii_ii[i];
10840                 }
10841                 short int ebcdic_ii[] =
10842                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10843                 short int ebcdic_mm[] =
10844                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10845                 int use_ebcdic (int i) {
10846                   return ebcdic_mm[i] + ebcdic_ii[i];
10847                 }
10848                 extern int foo;
10849
10850 int
10851 main ()
10852 {
10853 return use_ascii (foo) == use_ebcdic (foo);
10854   ;
10855   return 0;
10856 }
10857 _ACEOF
10858 if ac_fn_c_try_compile "$LINENO"; then :
10859   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10860               ac_cv_c_bigendian=yes
10861             fi
10862             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10863               if test "$ac_cv_c_bigendian" = unknown; then
10864                 ac_cv_c_bigendian=no
10865               else
10866                 # finding both strings is unlikely to happen, but who knows?
10867                 ac_cv_c_bigendian=unknown
10868               fi
10869             fi
10870 fi
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 else
10873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h.  */
10875 $ac_includes_default
10876 int
10877 main ()
10878 {
10879
10880              /* Are we little or big endian?  From Harbison&Steele.  */
10881              union
10882              {
10883                long int l;
10884                char c[sizeof (long int)];
10885              } u;
10886              u.l = 1;
10887              return u.c[sizeof (long int) - 1] == 1;
10888
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_run "$LINENO"; then :
10894   ac_cv_c_bigendian=no
10895 else
10896   ac_cv_c_bigendian=yes
10897 fi
10898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10899   conftest.$ac_objext conftest.beam conftest.$ac_ext
10900 fi
10901
10902     fi
10903 fi
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10905 $as_echo "$ac_cv_c_bigendian" >&6; }
10906  case $ac_cv_c_bigendian in #(
10907    yes)
10908      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10909 ;; #(
10910    no)
10911       ;; #(
10912    universal)
10913
10914 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10915
10916      ;; #(
10917    *)
10918      as_fn_error $? "unknown endianness
10919  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10920  esac
10921
10922 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10923 ASM_TYPES_HEADER=./asm_types.h
10924
10925 echo "/* These defines are needed for the public ext2fs.h header file */" \
10926      > public_config.h
10927 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10928   uniq tmp_config.$$ >> public_config.h
10929 else
10930   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10931 fi
10932 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10933   uniq tmp_config.$$ >> public_config.h
10934 else
10935   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10936 fi
10937 rm -f tmp_config.$$
10938 PUBLIC_CONFIG_HEADER=./public_config.h
10939
10940 for ac_header in inttypes.h
10941 do :
10942   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10943 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10944   cat >>confdefs.h <<_ACEOF
10945 #define HAVE_INTTYPES_H 1
10946 _ACEOF
10947
10948 fi
10949
10950 done
10951
10952 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10953 if test "x$ac_cv_type_intptr_t" = xyes; then :
10954
10955 cat >>confdefs.h <<_ACEOF
10956 #define HAVE_INTPTR_T 1
10957 _ACEOF
10958
10959
10960 fi
10961
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10963 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10964 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10965   $as_echo_n "(cached) " >&6
10966 else
10967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h.  */
10969 #include <sys/stat.h>
10970 int
10971 main ()
10972 {
10973 struct stat stat; stat.st_flags = 0;
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 if ac_fn_c_try_compile "$LINENO"; then :
10979   e2fsprogs_cv_struct_st_flags=yes
10980 else
10981   e2fsprogs_cv_struct_st_flags=no
10982 fi
10983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10984 fi
10985
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10987 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10988 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10990 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10991   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10992   $as_echo_n "(cached) " >&6
10993 else
10994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h.  */
10996 #include <sys/stat.h>
10997 int
10998 main ()
10999 {
11000 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 if ac_fn_c_try_compile "$LINENO"; then :
11006   e2fsprogs_cv_struct_st_flags_immut=yes
11007 else
11008   e2fsprogs_cv_struct_st_flags_immut=no
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 fi
11012
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11014 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11015   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11016
11017 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11018
11019   fi
11020 fi
11021 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11022          #include <sys/socket.h>
11023 "
11024 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11025
11026 cat >>confdefs.h <<_ACEOF
11027 #define HAVE_SA_LEN 1
11028 _ACEOF
11029
11030 fi
11031
11032 if test -n "$BLKID_CMT"; then
11033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11034 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11035 if ${ac_cv_search_blkid_probe_all+:} false; then :
11036   $as_echo_n "(cached) " >&6
11037 else
11038   ac_func_search_save_LIBS=$LIBS
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h.  */
11041
11042 /* Override any GCC internal prototype to avoid an error.
11043    Use char because int might match the return type of a GCC
11044    builtin and then its argument prototype would still apply.  */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char blkid_probe_all ();
11049 int
11050 main ()
11051 {
11052 return blkid_probe_all ();
11053   ;
11054   return 0;
11055 }
11056 _ACEOF
11057 for ac_lib in '' blkid; do
11058   if test -z "$ac_lib"; then
11059     ac_res="none required"
11060   else
11061     ac_res=-l$ac_lib
11062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11063   fi
11064   if ac_fn_c_try_link "$LINENO"; then :
11065   ac_cv_search_blkid_probe_all=$ac_res
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext \
11068     conftest$ac_exeext
11069   if ${ac_cv_search_blkid_probe_all+:} false; then :
11070   break
11071 fi
11072 done
11073 if ${ac_cv_search_blkid_probe_all+:} false; then :
11074
11075 else
11076   ac_cv_search_blkid_probe_all=no
11077 fi
11078 rm conftest.$ac_ext
11079 LIBS=$ac_func_search_save_LIBS
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11082 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11083 ac_res=$ac_cv_search_blkid_probe_all
11084 if test "$ac_res" != no; then :
11085   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11086
11087 fi
11088
11089 fi
11090 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        chflags         fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_memalign  prctl   setmntent       setresgid       setresuid       srandom         strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   valloc
11091 do :
11092   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11094 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11095   cat >>confdefs.h <<_ACEOF
11096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11097 _ACEOF
11098
11099 fi
11100 done
11101
11102 SOCKET_LIB=''
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11104 $as_echo_n "checking for socket in -lsocket... " >&6; }
11105 if ${ac_cv_lib_socket_socket+:} false; then :
11106   $as_echo_n "(cached) " >&6
11107 else
11108   ac_check_lib_save_LIBS=$LIBS
11109 LIBS="-lsocket  $LIBS"
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h.  */
11112
11113 /* Override any GCC internal prototype to avoid an error.
11114    Use char because int might match the return type of a GCC
11115    builtin and then its argument prototype would still apply.  */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char socket ();
11120 int
11121 main ()
11122 {
11123 return socket ();
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 if ac_fn_c_try_link "$LINENO"; then :
11129   ac_cv_lib_socket_socket=yes
11130 else
11131   ac_cv_lib_socket_socket=no
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext \
11134     conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11136 fi
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11138 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11139 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11140   SOCKET_LIB=-lsocket
11141 fi
11142
11143
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11145 $as_echo_n "checking for optreset... " >&6; }
11146 if ${ac_cv_have_optreset+:} false; then :
11147   $as_echo_n "(cached) " >&6
11148 else
11149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h.  */
11151 #include <unistd.h>
11152
11153 _ACEOF
11154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11155   $EGREP "optreset" >/dev/null 2>&1; then :
11156   ac_cv_have_optreset=yes
11157 else
11158   ac_cv_have_optreset=no
11159 fi
11160 rm -f conftest*
11161
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11164 $as_echo "$ac_cv_have_optreset" >&6; }
11165 if test $ac_cv_have_optreset = yes; then
11166
11167 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11168
11169 fi
11170
11171 SEM_INIT_LIB=''
11172 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11173 if test "x$ac_cv_func_sem_init" = xyes; then :
11174
11175 else
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11177 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11178 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11179   $as_echo_n "(cached) " >&6
11180 else
11181   ac_check_lib_save_LIBS=$LIBS
11182 LIBS="-lpthread  $LIBS"
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h.  */
11185
11186 /* Override any GCC internal prototype to avoid an error.
11187    Use char because int might match the return type of a GCC
11188    builtin and then its argument prototype would still apply.  */
11189 #ifdef __cplusplus
11190 extern "C"
11191 #endif
11192 char sem_init ();
11193 int
11194 main ()
11195 {
11196 return sem_init ();
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 if ac_fn_c_try_link "$LINENO"; then :
11202   ac_cv_lib_pthread_sem_init=yes
11203 else
11204   ac_cv_lib_pthread_sem_init=no
11205 fi
11206 rm -f core conftest.err conftest.$ac_objext \
11207     conftest$ac_exeext conftest.$ac_ext
11208 LIBS=$ac_check_lib_save_LIBS
11209 fi
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11211 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11212 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11213   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11214
11215         SEM_INIT_LIB=-lpthread
11216 else
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11218 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11219 if ${ac_cv_lib_rt_sem_init+:} false; then :
11220   $as_echo_n "(cached) " >&6
11221 else
11222   ac_check_lib_save_LIBS=$LIBS
11223 LIBS="-lrt  $LIBS"
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h.  */
11226
11227 /* Override any GCC internal prototype to avoid an error.
11228    Use char because int might match the return type of a GCC
11229    builtin and then its argument prototype would still apply.  */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 char sem_init ();
11234 int
11235 main ()
11236 {
11237 return sem_init ();
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243   ac_cv_lib_rt_sem_init=yes
11244 else
11245   ac_cv_lib_rt_sem_init=no
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext \
11248     conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11250 fi
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11252 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11253 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11254   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11255
11256         SEM_INIT_LIB=-lrt
11257 else
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11259 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11260 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11261   $as_echo_n "(cached) " >&6
11262 else
11263   ac_check_lib_save_LIBS=$LIBS
11264 LIBS="-lposix4  $LIBS"
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h.  */
11267
11268 /* Override any GCC internal prototype to avoid an error.
11269    Use char because int might match the return type of a GCC
11270    builtin and then its argument prototype would still apply.  */
11271 #ifdef __cplusplus
11272 extern "C"
11273 #endif
11274 char sem_init ();
11275 int
11276 main ()
11277 {
11278 return sem_init ();
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 if ac_fn_c_try_link "$LINENO"; then :
11284   ac_cv_lib_posix4_sem_init=yes
11285 else
11286   ac_cv_lib_posix4_sem_init=no
11287 fi
11288 rm -f core conftest.err conftest.$ac_objext \
11289     conftest$ac_exeext conftest.$ac_ext
11290 LIBS=$ac_check_lib_save_LIBS
11291 fi
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11293 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11294 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11295   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11296
11297         SEM_INIT_LIB=-lposix4
11298 fi
11299
11300 fi
11301
11302 fi
11303
11304 fi
11305
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11307 $as_echo_n "checking for unified diff option... " >&6; }
11308 if diff -u $0 $0 > /dev/null 2>&1 ; then
11309    UNI_DIFF_OPTS=-u
11310 else
11311    UNI_DIFF_OPTS=-c
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11314 $as_echo "$UNI_DIFF_OPTS" >&6; }
11315
11316 case "$host_os" in
11317 linux*)
11318
11319 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11320
11321         ;;
11322 esac
11323 LINUX_CMT="#"
11324 CYGWIN_CMT="#"
11325 UNIX_CMT=
11326 case "$host_os" in
11327 linux*)
11328         LINUX_CMT=
11329         ;;
11330 cygwin)
11331         CYGWIN_CMT=
11332         UNIX_CMT="#"
11333         ;;
11334 esac
11335
11336
11337
11338 case "$host_os" in
11339 linux* | gnu* | k*bsd*-gnu)
11340         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11341                 root_prefix="";
11342                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11343 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11344         fi
11345         ;;
11346 esac
11347 case "$host_os" in
11348 linux* | gnu* | k*bsd*-gnu)
11349         if test "$prefix" = NONE ; then
11350                 prefix="/usr";
11351                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11352 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11353                 if test "$mandir" = '${prefix}/man' ; then
11354                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11355 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11356                         mandir=/usr/share/man
11357                 fi
11358         fi
11359 ;;
11360 esac
11361 if test "$root_prefix" = NONE ; then
11362         if test "$prefix" = NONE ; then
11363                 root_prefix="$ac_default_prefix"
11364         else
11365                 root_prefix="$prefix"
11366         fi
11367         root_bindir=$bindir
11368         root_sbindir=$sbindir
11369         root_libdir=$libdir
11370         root_sysconfdir=$sysconfdir
11371 else
11372         root_bindir='${root_prefix}/bin'
11373         root_sbindir='${root_prefix}/sbin'
11374         root_libdir='${root_prefix}/lib'
11375         root_sysconfdir='${root_prefix}/etc'
11376 fi
11377 if test "$bindir" != '${exec_prefix}/bin'; then
11378     root_bindir=$bindir
11379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11380 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11381 fi
11382 if test "$sbindir" != '${exec_prefix}/sbin'; then
11383     root_sbindir=$sbindir
11384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11385 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11386 fi
11387 if test "$libdir" != '${exec_prefix}/lib'; then
11388     root_libdir=$libdir
11389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11390 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11391 fi
11392 if test "$sysconfdir" != '${prefix}/etc'; then
11393     root_sysconfdir=$sysconfdir
11394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11395 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11396 fi
11397
11398
11399
11400
11401
11402
11403 # Check whether --with-multiarch was given.
11404 if test "${with_multiarch+set}" = set; then :
11405   withval=$with_multiarch; libdir=$libdir/$withval
11406 root_libdir=$root_libdir/$withval
11407
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11410 $as_echo_n "checking whether we can link with -static... " >&6; }
11411 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11412   $as_echo_n "(cached) " >&6
11413 else
11414   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h.  */
11417 #include <stdio.h>
11418 int
11419 main ()
11420 {
11421 fflush(stdout);
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 if ac_fn_c_try_link "$LINENO"; then :
11427   ac_cv_e2fsprogs_use_static=yes
11428 else
11429   ac_cv_e2fsprogs_use_static=no
11430 fi
11431 rm -f core conftest.err conftest.$ac_objext \
11432     conftest$ac_exeext conftest.$ac_ext
11433 LDFLAGS=$SAVE_LDFLAGS
11434 fi
11435
11436 case "$host_os" in
11437 solaris2.*)
11438         ac_cv_e2fsprogs_use_static=no
11439 ;;
11440 esac
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11442 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11443 LDFLAG_STATIC=
11444 if test $ac_cv_e2fsprogs_use_static = yes; then
11445         LDFLAG_STATIC=-static
11446 fi
11447
11448 case "$host_os" in
11449 darwin*)
11450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11451 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11452
11453 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11454
11455         ;;
11456 esac
11457 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11458 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11459
11460
11461 if test "$cross_compiling" = yes ; then
11462   DO_TEST_SUITE=
11463 else
11464   DO_TEST_SUITE=check
11465 fi
11466
11467 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11468 if test -n "$CPPFLAGS" ; then
11469         INCLUDES="$INCLUDES $CPPFLAGS"
11470 fi
11471 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11472         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11473 fi
11474
11475 if test $cross_compiling = no; then
11476    BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11477    BUILD_LDFLAGS="$LDFLAGS"
11478 else
11479    BUILD_CFLAGS=
11480    BUILD_LDFLAGS=
11481 fi
11482
11483
11484 test -d lib || mkdir lib
11485 test -d include || mkdir include
11486 test -d include/linux || mkdir include/linux
11487 test -d include/asm || mkdir include/asm
11488 for i in MCONFIG Makefile e2fsprogs.spec \
11489         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11490         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11491         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11492         lib/uuid/Makefile lib/uuid/uuid_types.h \
11493         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11494         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11495         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11496         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11497         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11498         resize/Makefile doc/Makefile intl/Makefile \
11499         intl/libgnuintl.h po/Makefile.in ; do
11500         if test -d `dirname ${srcdir}/$i` ; then
11501                 outlist="$outlist $i"
11502         fi
11503 done
11504 ac_config_files="$ac_config_files $outlist"
11505
11506 cat >confcache <<\_ACEOF
11507 # This file is a shell script that caches the results of configure
11508 # tests run on this system so they can be shared between configure
11509 # scripts and configure runs, see configure's option --config-cache.
11510 # It is not useful on other systems.  If it contains results you don't
11511 # want to keep, you may remove or edit it.
11512 #
11513 # config.status only pays attention to the cache file if you give it
11514 # the --recheck option to rerun configure.
11515 #
11516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11518 # following values.
11519
11520 _ACEOF
11521
11522 # The following way of writing the cache mishandles newlines in values,
11523 # but we know of no workaround that is simple, portable, and efficient.
11524 # So, we kill variables containing newlines.
11525 # Ultrix sh set writes to stderr and can't be redirected directly,
11526 # and sets the high bit in the cache file unless we assign to the vars.
11527 (
11528   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11529     eval ac_val=\$$ac_var
11530     case $ac_val in #(
11531     *${as_nl}*)
11532       case $ac_var in #(
11533       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11535       esac
11536       case $ac_var in #(
11537       _ | IFS | as_nl) ;; #(
11538       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11539       *) { eval $ac_var=; unset $ac_var;} ;;
11540       esac ;;
11541     esac
11542   done
11543
11544   (set) 2>&1 |
11545     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11546     *${as_nl}ac_space=\ *)
11547       # `set' does not quote correctly, so add quotes: double-quote
11548       # substitution turns \\\\ into \\, and sed turns \\ into \.
11549       sed -n \
11550         "s/'/'\\\\''/g;
11551           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11552       ;; #(
11553     *)
11554       # `set' quotes correctly as required by POSIX, so do not add quotes.
11555       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11556       ;;
11557     esac |
11558     sort
11559 ) |
11560   sed '
11561      /^ac_cv_env_/b end
11562      t clear
11563      :clear
11564      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11565      t end
11566      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11567      :end' >>confcache
11568 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11569   if test -w "$cache_file"; then
11570     if test "x$cache_file" != "x/dev/null"; then
11571       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11572 $as_echo "$as_me: updating cache $cache_file" >&6;}
11573       if test ! -f "$cache_file" || test -h "$cache_file"; then
11574         cat confcache >"$cache_file"
11575       else
11576         case $cache_file in #(
11577         */* | ?:*)
11578           mv -f confcache "$cache_file"$$ &&
11579           mv -f "$cache_file"$$ "$cache_file" ;; #(
11580         *)
11581           mv -f confcache "$cache_file" ;;
11582         esac
11583       fi
11584     fi
11585   else
11586     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11588   fi
11589 fi
11590 rm -f confcache
11591
11592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11593 # Let make expand exec_prefix.
11594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11595
11596 DEFS=-DHAVE_CONFIG_H
11597
11598 ac_libobjs=
11599 ac_ltlibobjs=
11600 U=
11601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11602   # 1. Remove the extension, and $U if already installed.
11603   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11604   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11605   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11606   #    will be set to the directory where LIBOBJS objects are built.
11607   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11608   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11609 done
11610 LIBOBJS=$ac_libobjs
11611
11612 LTLIBOBJS=$ac_ltlibobjs
11613
11614
11615
11616
11617 : "${CONFIG_STATUS=./config.status}"
11618 ac_write_fail=0
11619 ac_clean_files_save=$ac_clean_files
11620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11623 as_write_fail=0
11624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11625 #! $SHELL
11626 # Generated by $as_me.
11627 # Run this file to recreate the current configuration.
11628 # Compiler output produced by configure, useful for debugging
11629 # configure, is in config.log if it exists.
11630
11631 debug=false
11632 ac_cs_recheck=false
11633 ac_cs_silent=false
11634
11635 SHELL=\${CONFIG_SHELL-$SHELL}
11636 export SHELL
11637 _ASEOF
11638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11639 ## -------------------- ##
11640 ## M4sh Initialization. ##
11641 ## -------------------- ##
11642
11643 # Be more Bourne compatible
11644 DUALCASE=1; export DUALCASE # for MKS sh
11645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11646   emulate sh
11647   NULLCMD=:
11648   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11649   # is contrary to our usage.  Disable this feature.
11650   alias -g '${1+"$@"}'='"$@"'
11651   setopt NO_GLOB_SUBST
11652 else
11653   case `(set -o) 2>/dev/null` in #(
11654   *posix*) :
11655     set -o posix ;; #(
11656   *) :
11657      ;;
11658 esac
11659 fi
11660
11661
11662 as_nl='
11663 '
11664 export as_nl
11665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11669 # Prefer a ksh shell builtin over an external printf program on Solaris,
11670 # but without wasting forks for bash or zsh.
11671 if test -z "$BASH_VERSION$ZSH_VERSION" \
11672     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11673   as_echo='print -r --'
11674   as_echo_n='print -rn --'
11675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11676   as_echo='printf %s\n'
11677   as_echo_n='printf %s'
11678 else
11679   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11680     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11681     as_echo_n='/usr/ucb/echo -n'
11682   else
11683     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11684     as_echo_n_body='eval
11685       arg=$1;
11686       case $arg in #(
11687       *"$as_nl"*)
11688         expr "X$arg" : "X\\(.*\\)$as_nl";
11689         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11690       esac;
11691       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11692     '
11693     export as_echo_n_body
11694     as_echo_n='sh -c $as_echo_n_body as_echo'
11695   fi
11696   export as_echo_body
11697   as_echo='sh -c $as_echo_body as_echo'
11698 fi
11699
11700 # The user is always right.
11701 if test "${PATH_SEPARATOR+set}" != set; then
11702   PATH_SEPARATOR=:
11703   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11704     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11705       PATH_SEPARATOR=';'
11706   }
11707 fi
11708
11709
11710 # IFS
11711 # We need space, tab and new line, in precisely that order.  Quoting is
11712 # there to prevent editors from complaining about space-tab.
11713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11714 # splitting by setting IFS to empty value.)
11715 IFS=" ""        $as_nl"
11716
11717 # Find who we are.  Look in the path if we contain no directory separator.
11718 as_myself=
11719 case $0 in #((
11720   *[\\/]* ) as_myself=$0 ;;
11721   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11723 do
11724   IFS=$as_save_IFS
11725   test -z "$as_dir" && as_dir=.
11726     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11727   done
11728 IFS=$as_save_IFS
11729
11730      ;;
11731 esac
11732 # We did not find ourselves, most probably we were run as `sh COMMAND'
11733 # in which case we are not to be found in the path.
11734 if test "x$as_myself" = x; then
11735   as_myself=$0
11736 fi
11737 if test ! -f "$as_myself"; then
11738   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11739   exit 1
11740 fi
11741
11742 # Unset variables that we do not need and which cause bugs (e.g. in
11743 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11744 # suppresses any "Segmentation fault" message there.  '((' could
11745 # trigger a bug in pdksh 5.2.14.
11746 for as_var in BASH_ENV ENV MAIL MAILPATH
11747 do eval test x\${$as_var+set} = xset \
11748   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11749 done
11750 PS1='$ '
11751 PS2='> '
11752 PS4='+ '
11753
11754 # NLS nuisances.
11755 LC_ALL=C
11756 export LC_ALL
11757 LANGUAGE=C
11758 export LANGUAGE
11759
11760 # CDPATH.
11761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11762
11763
11764 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11765 # ----------------------------------------
11766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11768 # script with STATUS, using 1 if that was 0.
11769 as_fn_error ()
11770 {
11771   as_status=$1; test $as_status -eq 0 && as_status=1
11772   if test "$4"; then
11773     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11774     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11775   fi
11776   $as_echo "$as_me: error: $2" >&2
11777   as_fn_exit $as_status
11778 } # as_fn_error
11779
11780
11781 # as_fn_set_status STATUS
11782 # -----------------------
11783 # Set $? to STATUS, without forking.
11784 as_fn_set_status ()
11785 {
11786   return $1
11787 } # as_fn_set_status
11788
11789 # as_fn_exit STATUS
11790 # -----------------
11791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11792 as_fn_exit ()
11793 {
11794   set +e
11795   as_fn_set_status $1
11796   exit $1
11797 } # as_fn_exit
11798
11799 # as_fn_unset VAR
11800 # ---------------
11801 # Portably unset VAR.
11802 as_fn_unset ()
11803 {
11804   { eval $1=; unset $1;}
11805 }
11806 as_unset=as_fn_unset
11807 # as_fn_append VAR VALUE
11808 # ----------------------
11809 # Append the text in VALUE to the end of the definition contained in VAR. Take
11810 # advantage of any shell optimizations that allow amortized linear growth over
11811 # repeated appends, instead of the typical quadratic growth present in naive
11812 # implementations.
11813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11814   eval 'as_fn_append ()
11815   {
11816     eval $1+=\$2
11817   }'
11818 else
11819   as_fn_append ()
11820   {
11821     eval $1=\$$1\$2
11822   }
11823 fi # as_fn_append
11824
11825 # as_fn_arith ARG...
11826 # ------------------
11827 # Perform arithmetic evaluation on the ARGs, and store the result in the
11828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11829 # must be portable across $(()) and expr.
11830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11831   eval 'as_fn_arith ()
11832   {
11833     as_val=$(( $* ))
11834   }'
11835 else
11836   as_fn_arith ()
11837   {
11838     as_val=`expr "$@" || test $? -eq 1`
11839   }
11840 fi # as_fn_arith
11841
11842
11843 if expr a : '\(a\)' >/dev/null 2>&1 &&
11844    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11845   as_expr=expr
11846 else
11847   as_expr=false
11848 fi
11849
11850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11851   as_basename=basename
11852 else
11853   as_basename=false
11854 fi
11855
11856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11857   as_dirname=dirname
11858 else
11859   as_dirname=false
11860 fi
11861
11862 as_me=`$as_basename -- "$0" ||
11863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11864          X"$0" : 'X\(//\)$' \| \
11865          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11866 $as_echo X/"$0" |
11867     sed '/^.*\/\([^/][^/]*\)\/*$/{
11868             s//\1/
11869             q
11870           }
11871           /^X\/\(\/\/\)$/{
11872             s//\1/
11873             q
11874           }
11875           /^X\/\(\/\).*/{
11876             s//\1/
11877             q
11878           }
11879           s/.*/./; q'`
11880
11881 # Avoid depending upon Character Ranges.
11882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11885 as_cr_digits='0123456789'
11886 as_cr_alnum=$as_cr_Letters$as_cr_digits
11887
11888 ECHO_C= ECHO_N= ECHO_T=
11889 case `echo -n x` in #(((((
11890 -n*)
11891   case `echo 'xy\c'` in
11892   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11893   xy)  ECHO_C='\c';;
11894   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11895        ECHO_T=' ';;
11896   esac;;
11897 *)
11898   ECHO_N='-n';;
11899 esac
11900
11901 rm -f conf$$ conf$$.exe conf$$.file
11902 if test -d conf$$.dir; then
11903   rm -f conf$$.dir/conf$$.file
11904 else
11905   rm -f conf$$.dir
11906   mkdir conf$$.dir 2>/dev/null
11907 fi
11908 if (echo >conf$$.file) 2>/dev/null; then
11909   if ln -s conf$$.file conf$$ 2>/dev/null; then
11910     as_ln_s='ln -s'
11911     # ... but there are two gotchas:
11912     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11913     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11914     # In both cases, we have to default to `cp -pR'.
11915     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11916       as_ln_s='cp -pR'
11917   elif ln conf$$.file conf$$ 2>/dev/null; then
11918     as_ln_s=ln
11919   else
11920     as_ln_s='cp -pR'
11921   fi
11922 else
11923   as_ln_s='cp -pR'
11924 fi
11925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11926 rmdir conf$$.dir 2>/dev/null
11927
11928
11929 # as_fn_mkdir_p
11930 # -------------
11931 # Create "$as_dir" as a directory, including parents if necessary.
11932 as_fn_mkdir_p ()
11933 {
11934
11935   case $as_dir in #(
11936   -*) as_dir=./$as_dir;;
11937   esac
11938   test -d "$as_dir" || eval $as_mkdir_p || {
11939     as_dirs=
11940     while :; do
11941       case $as_dir in #(
11942       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11943       *) as_qdir=$as_dir;;
11944       esac
11945       as_dirs="'$as_qdir' $as_dirs"
11946       as_dir=`$as_dirname -- "$as_dir" ||
11947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11948          X"$as_dir" : 'X\(//\)[^/]' \| \
11949          X"$as_dir" : 'X\(//\)$' \| \
11950          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11951 $as_echo X"$as_dir" |
11952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11953             s//\1/
11954             q
11955           }
11956           /^X\(\/\/\)[^/].*/{
11957             s//\1/
11958             q
11959           }
11960           /^X\(\/\/\)$/{
11961             s//\1/
11962             q
11963           }
11964           /^X\(\/\).*/{
11965             s//\1/
11966             q
11967           }
11968           s/.*/./; q'`
11969       test -d "$as_dir" && break
11970     done
11971     test -z "$as_dirs" || eval "mkdir $as_dirs"
11972   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11973
11974
11975 } # as_fn_mkdir_p
11976 if mkdir -p . 2>/dev/null; then
11977   as_mkdir_p='mkdir -p "$as_dir"'
11978 else
11979   test -d ./-p && rmdir ./-p
11980   as_mkdir_p=false
11981 fi
11982
11983
11984 # as_fn_executable_p FILE
11985 # -----------------------
11986 # Test if FILE is an executable regular file.
11987 as_fn_executable_p ()
11988 {
11989   test -f "$1" && test -x "$1"
11990 } # as_fn_executable_p
11991 as_test_x='test -x'
11992 as_executable_p=as_fn_executable_p
11993
11994 # Sed expression to map a string onto a valid CPP name.
11995 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11996
11997 # Sed expression to map a string onto a valid variable name.
11998 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11999
12000
12001 exec 6>&1
12002 ## ----------------------------------- ##
12003 ## Main body of $CONFIG_STATUS script. ##
12004 ## ----------------------------------- ##
12005 _ASEOF
12006 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12007
12008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12009 # Save the log message, to keep $0 and so on meaningful, and to
12010 # report actual input values of CONFIG_FILES etc. instead of their
12011 # values after options handling.
12012 ac_log="
12013 This file was extended by $as_me, which was
12014 generated by GNU Autoconf 2.69.  Invocation command line was
12015
12016   CONFIG_FILES    = $CONFIG_FILES
12017   CONFIG_HEADERS  = $CONFIG_HEADERS
12018   CONFIG_LINKS    = $CONFIG_LINKS
12019   CONFIG_COMMANDS = $CONFIG_COMMANDS
12020   $ $0 $@
12021
12022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12023 "
12024
12025 _ACEOF
12026
12027 case $ac_config_files in *"
12028 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12029 esac
12030
12031 case $ac_config_headers in *"
12032 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12033 esac
12034
12035
12036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12037 # Files that config.status was made for.
12038 config_files="$ac_config_files"
12039 config_headers="$ac_config_headers"
12040 config_commands="$ac_config_commands"
12041
12042 _ACEOF
12043
12044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045 ac_cs_usage="\
12046 \`$as_me' instantiates files and other configuration actions
12047 from templates according to the current configuration.  Unless the files
12048 and actions are specified as TAGs, all are instantiated by default.
12049
12050 Usage: $0 [OPTION]... [TAG]...
12051
12052   -h, --help       print this help, then exit
12053   -V, --version    print version number and configuration settings, then exit
12054       --config     print configuration, then exit
12055   -q, --quiet, --silent
12056                    do not print progress messages
12057   -d, --debug      don't remove temporary files
12058       --recheck    update $as_me by reconfiguring in the same conditions
12059       --file=FILE[:TEMPLATE]
12060                    instantiate the configuration file FILE
12061       --header=FILE[:TEMPLATE]
12062                    instantiate the configuration header FILE
12063
12064 Configuration files:
12065 $config_files
12066
12067 Configuration headers:
12068 $config_headers
12069
12070 Configuration commands:
12071 $config_commands
12072
12073 Report bugs to the package provider."
12074
12075 _ACEOF
12076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12077 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12078 ac_cs_version="\\
12079 config.status
12080 configured by $0, generated by GNU Autoconf 2.69,
12081   with options \\"\$ac_cs_config\\"
12082
12083 Copyright (C) 2012 Free Software Foundation, Inc.
12084 This config.status script is free software; the Free Software Foundation
12085 gives unlimited permission to copy, distribute and modify it."
12086
12087 ac_pwd='$ac_pwd'
12088 srcdir='$srcdir'
12089 INSTALL='$INSTALL'
12090 AWK='$AWK'
12091 test -n "\$AWK" || AWK=awk
12092 _ACEOF
12093
12094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12095 # The default lists apply if the user does not specify any file.
12096 ac_need_defaults=:
12097 while test $# != 0
12098 do
12099   case $1 in
12100   --*=?*)
12101     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12102     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12103     ac_shift=:
12104     ;;
12105   --*=)
12106     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12107     ac_optarg=
12108     ac_shift=:
12109     ;;
12110   *)
12111     ac_option=$1
12112     ac_optarg=$2
12113     ac_shift=shift
12114     ;;
12115   esac
12116
12117   case $ac_option in
12118   # Handling of the options.
12119   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12120     ac_cs_recheck=: ;;
12121   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12122     $as_echo "$ac_cs_version"; exit ;;
12123   --config | --confi | --conf | --con | --co | --c )
12124     $as_echo "$ac_cs_config"; exit ;;
12125   --debug | --debu | --deb | --de | --d | -d )
12126     debug=: ;;
12127   --file | --fil | --fi | --f )
12128     $ac_shift
12129     case $ac_optarg in
12130     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12131     '') as_fn_error $? "missing file argument" ;;
12132     esac
12133     as_fn_append CONFIG_FILES " '$ac_optarg'"
12134     ac_need_defaults=false;;
12135   --header | --heade | --head | --hea )
12136     $ac_shift
12137     case $ac_optarg in
12138     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12139     esac
12140     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12141     ac_need_defaults=false;;
12142   --he | --h)
12143     # Conflict between --help and --header
12144     as_fn_error $? "ambiguous option: \`$1'
12145 Try \`$0 --help' for more information.";;
12146   --help | --hel | -h )
12147     $as_echo "$ac_cs_usage"; exit ;;
12148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12149   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12150     ac_cs_silent=: ;;
12151
12152   # This is an error.
12153   -*) as_fn_error $? "unrecognized option: \`$1'
12154 Try \`$0 --help' for more information." ;;
12155
12156   *) as_fn_append ac_config_targets " $1"
12157      ac_need_defaults=false ;;
12158
12159   esac
12160   shift
12161 done
12162
12163 ac_configure_extra_args=
12164
12165 if $ac_cs_silent; then
12166   exec 6>/dev/null
12167   ac_configure_extra_args="$ac_configure_extra_args --silent"
12168 fi
12169
12170 _ACEOF
12171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12172 if \$ac_cs_recheck; then
12173   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12174   shift
12175   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12176   CONFIG_SHELL='$SHELL'
12177   export CONFIG_SHELL
12178   exec "\$@"
12179 fi
12180
12181 _ACEOF
12182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183 exec 5>>config.log
12184 {
12185   echo
12186   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12187 ## Running $as_me. ##
12188 _ASBOX
12189   $as_echo "$ac_log"
12190 } >&5
12191
12192 _ACEOF
12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12194 #
12195 # INIT-COMMANDS
12196 #
12197 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12198     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12199     # from automake.
12200     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12201     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12202     LINGUAS="${LINGUAS-%UNSET%}"
12203
12204
12205 _ACEOF
12206
12207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12208
12209 # Handling of arguments.
12210 for ac_config_target in $ac_config_targets
12211 do
12212   case $ac_config_target in
12213     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12214     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12215     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12216
12217   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12218   esac
12219 done
12220
12221
12222 # If the user did not use the arguments to specify the items to instantiate,
12223 # then the envvar interface is used.  Set only those that are not.
12224 # We use the long form for the default assignment because of an extremely
12225 # bizarre bug on SunOS 4.1.3.
12226 if $ac_need_defaults; then
12227   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12228   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12229   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12230 fi
12231
12232 # Have a temporary directory for convenience.  Make it in the build tree
12233 # simply because there is no reason against having it here, and in addition,
12234 # creating and moving files from /tmp can sometimes cause problems.
12235 # Hook for its removal unless debugging.
12236 # Note that there is a small window in which the directory will not be cleaned:
12237 # after its creation but before its name has been assigned to `$tmp'.
12238 $debug ||
12239 {
12240   tmp= ac_tmp=
12241   trap 'exit_status=$?
12242   : "${ac_tmp:=$tmp}"
12243   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12244 ' 0
12245   trap 'as_fn_exit 1' 1 2 13 15
12246 }
12247 # Create a (secure) tmp directory for tmp files.
12248
12249 {
12250   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12251   test -d "$tmp"
12252 }  ||
12253 {
12254   tmp=./conf$$-$RANDOM
12255   (umask 077 && mkdir "$tmp")
12256 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12257 ac_tmp=$tmp
12258
12259 # Set up the scripts for CONFIG_FILES section.
12260 # No need to generate them if there are no CONFIG_FILES.
12261 # This happens for instance with `./config.status config.h'.
12262 if test -n "$CONFIG_FILES"; then
12263
12264 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12265   ac_cs_awk_getline=:
12266   ac_cs_awk_pipe_init=
12267   ac_cs_awk_read_file='
12268       while ((getline aline < (F[key])) > 0)
12269         print(aline)
12270       close(F[key])'
12271   ac_cs_awk_pipe_fini=
12272 else
12273   ac_cs_awk_getline=false
12274   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12275   ac_cs_awk_read_file='
12276       print "|#_!!_#|"
12277       print "cat " F[key] " &&"
12278       '$ac_cs_awk_pipe_init
12279   # The final `:' finishes the AND list.
12280   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12281 fi
12282 ac_cr=`echo X | tr X '\015'`
12283 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12284 # But we know of no other shell where ac_cr would be empty at this
12285 # point, so we can use a bashism as a fallback.
12286 if test "x$ac_cr" = x; then
12287   eval ac_cr=\$\'\\r\'
12288 fi
12289 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12290 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12291   ac_cs_awk_cr='\\r'
12292 else
12293   ac_cs_awk_cr=$ac_cr
12294 fi
12295
12296 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12297 _ACEOF
12298
12299 # Create commands to substitute file output variables.
12300 {
12301   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12302   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12303   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12304   echo "_ACAWK" &&
12305   echo "_ACEOF"
12306 } >conf$$files.sh &&
12307 . ./conf$$files.sh ||
12308   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12309 rm -f conf$$files.sh
12310
12311 {
12312   echo "cat >conf$$subs.awk <<_ACEOF" &&
12313   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12314   echo "_ACEOF"
12315 } >conf$$subs.sh ||
12316   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12317 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12318 ac_delim='%!_!# '
12319 for ac_last_try in false false false false false :; do
12320   . ./conf$$subs.sh ||
12321     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12322
12323   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12324   if test $ac_delim_n = $ac_delim_num; then
12325     break
12326   elif $ac_last_try; then
12327     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12328   else
12329     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12330   fi
12331 done
12332 rm -f conf$$subs.sh
12333
12334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12335 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12336 _ACEOF
12337 sed -n '
12338 h
12339 s/^/S["/; s/!.*/"]=/
12340 p
12341 g
12342 s/^[^!]*!//
12343 :repl
12344 t repl
12345 s/'"$ac_delim"'$//
12346 t delim
12347 :nl
12348 h
12349 s/\(.\{148\}\)..*/\1/
12350 t more1
12351 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12352 p
12353 n
12354 b repl
12355 :more1
12356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12357 p
12358 g
12359 s/.\{148\}//
12360 t nl
12361 :delim
12362 h
12363 s/\(.\{148\}\)..*/\1/
12364 t more2
12365 s/["\\]/\\&/g; s/^/"/; s/$/"/
12366 p
12367 b
12368 :more2
12369 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12370 p
12371 g
12372 s/.\{148\}//
12373 t delim
12374 ' <conf$$subs.awk | sed '
12375 /^[^""]/{
12376   N
12377   s/\n//
12378 }
12379 ' >>$CONFIG_STATUS || ac_write_fail=1
12380 rm -f conf$$subs.awk
12381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12382 _ACAWK
12383 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12384   for (key in S) S_is_set[key] = 1
12385   FS = "\a"
12386   \$ac_cs_awk_pipe_init
12387 }
12388 {
12389   line = $ 0
12390   nfields = split(line, field, "@")
12391   substed = 0
12392   len = length(field[1])
12393   for (i = 2; i < nfields; i++) {
12394     key = field[i]
12395     keylen = length(key)
12396     if (S_is_set[key]) {
12397       value = S[key]
12398       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12399       len += length(value) + length(field[++i])
12400       substed = 1
12401     } else
12402       len += 1 + keylen
12403   }
12404   if (nfields == 3 && !substed) {
12405     key = field[2]
12406     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12407       \$ac_cs_awk_read_file
12408       next
12409     }
12410   }
12411   print line
12412 }
12413 \$ac_cs_awk_pipe_fini
12414 _ACAWK
12415 _ACEOF
12416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12417 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12418   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12419 else
12420   cat
12421 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12422   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12423 _ACEOF
12424
12425 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12426 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12427 # trailing colons and then remove the whole line if VPATH becomes empty
12428 # (actually we leave an empty line to preserve line numbers).
12429 if test "x$srcdir" = x.; then
12430   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12431 h
12432 s///
12433 s/^/:/
12434 s/[      ]*$/:/
12435 s/:\$(srcdir):/:/g
12436 s/:\${srcdir}:/:/g
12437 s/:@srcdir@:/:/g
12438 s/^:*//
12439 s/:*$//
12440 x
12441 s/\(=[   ]*\).*/\1/
12442 G
12443 s/\n//
12444 s/^[^=]*=[       ]*$//
12445 }'
12446 fi
12447
12448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12449 fi # test -n "$CONFIG_FILES"
12450
12451 # Set up the scripts for CONFIG_HEADERS section.
12452 # No need to generate them if there are no CONFIG_HEADERS.
12453 # This happens for instance with `./config.status Makefile'.
12454 if test -n "$CONFIG_HEADERS"; then
12455 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12456 BEGIN {
12457 _ACEOF
12458
12459 # Transform confdefs.h into an awk script `defines.awk', embedded as
12460 # here-document in config.status, that substitutes the proper values into
12461 # config.h.in to produce config.h.
12462
12463 # Create a delimiter string that does not exist in confdefs.h, to ease
12464 # handling of long lines.
12465 ac_delim='%!_!# '
12466 for ac_last_try in false false :; do
12467   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12468   if test -z "$ac_tt"; then
12469     break
12470   elif $ac_last_try; then
12471     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12472   else
12473     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12474   fi
12475 done
12476
12477 # For the awk script, D is an array of macro values keyed by name,
12478 # likewise P contains macro parameters if any.  Preserve backslash
12479 # newline sequences.
12480
12481 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12482 sed -n '
12483 s/.\{148\}/&'"$ac_delim"'/g
12484 t rset
12485 :rset
12486 s/^[     ]*#[    ]*define[       ][      ]*/ /
12487 t def
12488 d
12489 :def
12490 s/\\$//
12491 t bsnl
12492 s/["\\]/\\&/g
12493 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12494 D["\1"]=" \3"/p
12495 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12496 d
12497 :bsnl
12498 s/["\\]/\\&/g
12499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12500 D["\1"]=" \3\\\\\\n"\\/p
12501 t cont
12502 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12503 t cont
12504 d
12505 :cont
12506 n
12507 s/.\{148\}/&'"$ac_delim"'/g
12508 t clear
12509 :clear
12510 s/\\$//
12511 t bsnlc
12512 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12513 d
12514 :bsnlc
12515 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12516 b cont
12517 ' <confdefs.h | sed '
12518 s/'"$ac_delim"'/"\\\
12519 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12520
12521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12522   for (key in D) D_is_set[key] = 1
12523   FS = "\a"
12524 }
12525 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12526   line = \$ 0
12527   split(line, arg, " ")
12528   if (arg[1] == "#") {
12529     defundef = arg[2]
12530     mac1 = arg[3]
12531   } else {
12532     defundef = substr(arg[1], 2)
12533     mac1 = arg[2]
12534   }
12535   split(mac1, mac2, "(") #)
12536   macro = mac2[1]
12537   prefix = substr(line, 1, index(line, defundef) - 1)
12538   if (D_is_set[macro]) {
12539     # Preserve the white space surrounding the "#".
12540     print prefix "define", macro P[macro] D[macro]
12541     next
12542   } else {
12543     # Replace #undef with comments.  This is necessary, for example,
12544     # in the case of _POSIX_SOURCE, which is predefined and required
12545     # on some systems where configure will not decide to define it.
12546     if (defundef == "undef") {
12547       print "/*", prefix defundef, macro, "*/"
12548       next
12549     }
12550   }
12551 }
12552 { print }
12553 _ACAWK
12554 _ACEOF
12555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12556   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12557 fi # test -n "$CONFIG_HEADERS"
12558
12559
12560 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12561 shift
12562 for ac_tag
12563 do
12564   case $ac_tag in
12565   :[FHLC]) ac_mode=$ac_tag; continue;;
12566   esac
12567   case $ac_mode$ac_tag in
12568   :[FHL]*:*);;
12569   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12570   :[FH]-) ac_tag=-:-;;
12571   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12572   esac
12573   ac_save_IFS=$IFS
12574   IFS=:
12575   set x $ac_tag
12576   IFS=$ac_save_IFS
12577   shift
12578   ac_file=$1
12579   shift
12580
12581   case $ac_mode in
12582   :L) ac_source=$1;;
12583   :[FH])
12584     ac_file_inputs=
12585     for ac_f
12586     do
12587       case $ac_f in
12588       -) ac_f="$ac_tmp/stdin";;
12589       *) # Look for the file first in the build tree, then in the source tree
12590          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12591          # because $ac_f cannot contain `:'.
12592          test -f "$ac_f" ||
12593            case $ac_f in
12594            [\\/$]*) false;;
12595            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12596            esac ||
12597            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12598       esac
12599       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12600       as_fn_append ac_file_inputs " '$ac_f'"
12601     done
12602
12603     # Let's still pretend it is `configure' which instantiates (i.e., don't
12604     # use $as_me), people would be surprised to read:
12605     #    /* config.h.  Generated by config.status.  */
12606     configure_input='Generated from '`
12607           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12608         `' by configure.'
12609     if test x"$ac_file" != x-; then
12610       configure_input="$ac_file.  $configure_input"
12611       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12612 $as_echo "$as_me: creating $ac_file" >&6;}
12613     fi
12614     # Neutralize special characters interpreted by sed in replacement strings.
12615     case $configure_input in #(
12616     *\&* | *\|* | *\\* )
12617        ac_sed_conf_input=`$as_echo "$configure_input" |
12618        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12619     *) ac_sed_conf_input=$configure_input;;
12620     esac
12621
12622     case $ac_tag in
12623     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12624       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12625     esac
12626     ;;
12627   esac
12628
12629   ac_dir=`$as_dirname -- "$ac_file" ||
12630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12631          X"$ac_file" : 'X\(//\)[^/]' \| \
12632          X"$ac_file" : 'X\(//\)$' \| \
12633          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12634 $as_echo X"$ac_file" |
12635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12636             s//\1/
12637             q
12638           }
12639           /^X\(\/\/\)[^/].*/{
12640             s//\1/
12641             q
12642           }
12643           /^X\(\/\/\)$/{
12644             s//\1/
12645             q
12646           }
12647           /^X\(\/\).*/{
12648             s//\1/
12649             q
12650           }
12651           s/.*/./; q'`
12652   as_dir="$ac_dir"; as_fn_mkdir_p
12653   ac_builddir=.
12654
12655 case "$ac_dir" in
12656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12657 *)
12658   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12659   # A ".." for each directory in $ac_dir_suffix.
12660   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12661   case $ac_top_builddir_sub in
12662   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12663   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12664   esac ;;
12665 esac
12666 ac_abs_top_builddir=$ac_pwd
12667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12668 # for backward compatibility:
12669 ac_top_builddir=$ac_top_build_prefix
12670
12671 case $srcdir in
12672   .)  # We are building in place.
12673     ac_srcdir=.
12674     ac_top_srcdir=$ac_top_builddir_sub
12675     ac_abs_top_srcdir=$ac_pwd ;;
12676   [\\/]* | ?:[\\/]* )  # Absolute name.
12677     ac_srcdir=$srcdir$ac_dir_suffix;
12678     ac_top_srcdir=$srcdir
12679     ac_abs_top_srcdir=$srcdir ;;
12680   *) # Relative name.
12681     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12682     ac_top_srcdir=$ac_top_build_prefix$srcdir
12683     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12684 esac
12685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12686
12687
12688   case $ac_mode in
12689   :F)
12690   #
12691   # CONFIG_FILE
12692   #
12693
12694   case $INSTALL in
12695   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12696   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12697   esac
12698 _ACEOF
12699
12700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12701 # If the template does not know about datarootdir, expand it.
12702 # FIXME: This hack should be removed a few years after 2.60.
12703 ac_datarootdir_hack=; ac_datarootdir_seen=
12704 ac_sed_dataroot='
12705 /datarootdir/ {
12706   p
12707   q
12708 }
12709 /@datadir@/p
12710 /@docdir@/p
12711 /@infodir@/p
12712 /@localedir@/p
12713 /@mandir@/p'
12714 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12715 *datarootdir*) ac_datarootdir_seen=yes;;
12716 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12718 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12719 _ACEOF
12720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12721   ac_datarootdir_hack='
12722   s&@datadir@&$datadir&g
12723   s&@docdir@&$docdir&g
12724   s&@infodir@&$infodir&g
12725   s&@localedir@&$localedir&g
12726   s&@mandir@&$mandir&g
12727   s&\\\${datarootdir}&$datarootdir&g' ;;
12728 esac
12729 _ACEOF
12730
12731 # Neutralize VPATH when `$srcdir' = `.'.
12732 # Shell code in configure.ac might set extrasub.
12733 # FIXME: do we really want to maintain this feature?
12734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12735 ac_sed_extra="$ac_vpsub
12736 $extrasub
12737 _ACEOF
12738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12739 :t
12740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12741 s|@configure_input@|$ac_sed_conf_input|;t t
12742 s&@top_builddir@&$ac_top_builddir_sub&;t t
12743 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12744 s&@srcdir@&$ac_srcdir&;t t
12745 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12746 s&@top_srcdir@&$ac_top_srcdir&;t t
12747 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12748 s&@builddir@&$ac_builddir&;t t
12749 s&@abs_builddir@&$ac_abs_builddir&;t t
12750 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12751 s&@INSTALL@&$ac_INSTALL&;t t
12752 $ac_datarootdir_hack
12753 "
12754 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12755 if $ac_cs_awk_getline; then
12756   $AWK -f "$ac_tmp/subs.awk"
12757 else
12758   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12759 fi \
12760   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12761
12762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12763   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12764   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12765       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12767 which seems to be undefined.  Please make sure it is defined" >&5
12768 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12769 which seems to be undefined.  Please make sure it is defined" >&2;}
12770
12771   rm -f "$ac_tmp/stdin"
12772   case $ac_file in
12773   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12774   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12775   esac \
12776   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12777  ;;
12778   :H)
12779   #
12780   # CONFIG_HEADER
12781   #
12782   if test x"$ac_file" != x-; then
12783     {
12784       $as_echo "/* $configure_input  */" \
12785       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12786     } >"$ac_tmp/config.h" \
12787       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12788     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12789       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12790 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12791     else
12792       rm -f "$ac_file"
12793       mv "$ac_tmp/config.h" "$ac_file" \
12794         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12795     fi
12796   else
12797     $as_echo "/* $configure_input  */" \
12798       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12799       || as_fn_error $? "could not create -" "$LINENO" 5
12800   fi
12801  ;;
12802
12803   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12804 $as_echo "$as_me: executing $ac_file commands" >&6;}
12805  ;;
12806   esac
12807
12808
12809   case $ac_file$ac_mode in
12810     "default-1":C)
12811     for ac_file in $CONFIG_FILES; do
12812       # Support "outfile[:infile[:infile...]]"
12813       case "$ac_file" in
12814         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12815       esac
12816       # PO directories have a Makefile.in generated from Makefile.in.in.
12817       case "$ac_file" in */Makefile.in)
12818         # Adjust a relative srcdir.
12819         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12820         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12821         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12822         # In autoconf-2.13 it is called $ac_given_srcdir.
12823         # In autoconf-2.50 it is called $srcdir.
12824         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12825         case "$ac_given_srcdir" in
12826           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12827           /*) top_srcdir="$ac_given_srcdir" ;;
12828           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12829         esac
12830         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12831           rm -f "$ac_dir/POTFILES"
12832           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12833           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12834           POMAKEFILEDEPS="POTFILES.in"
12835           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12836           # on $ac_dir but don't depend on user-specified configuration
12837           # parameters.
12838           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12839             # The LINGUAS file contains the set of available languages.
12840             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12841               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12842             fi
12843             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12844             # Hide the ALL_LINGUAS assigment from automake.
12845             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12846             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12847           else
12848             # The set of available languages was given in configure.in.
12849             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12850           fi
12851           # Compute POFILES
12852           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12853           # Compute UPDATEPOFILES
12854           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12855           # Compute DUMMYPOFILES
12856           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12857           # Compute GMOFILES
12858           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12859           case "$ac_given_srcdir" in
12860             .) srcdirpre= ;;
12861             *) srcdirpre='$(srcdir)/' ;;
12862           esac
12863           POFILES=
12864           UPDATEPOFILES=
12865           DUMMYPOFILES=
12866           GMOFILES=
12867           for lang in $ALL_LINGUAS; do
12868             POFILES="$POFILES $srcdirpre$lang.po"
12869             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12870             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12871             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12872           done
12873           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12874           # environment variable.
12875           INST_LINGUAS=
12876           if test -n "$ALL_LINGUAS"; then
12877             for presentlang in $ALL_LINGUAS; do
12878               useit=no
12879               if test "%UNSET%" != "$LINGUAS"; then
12880                 desiredlanguages="$LINGUAS"
12881               else
12882                 desiredlanguages="$ALL_LINGUAS"
12883               fi
12884               for desiredlang in $desiredlanguages; do
12885                 # Use the presentlang catalog if desiredlang is
12886                 #   a. equal to presentlang, or
12887                 #   b. a variant of presentlang (because in this case,
12888                 #      presentlang can be used as a fallback for messages
12889                 #      which are not translated in the desiredlang catalog).
12890                 case "$desiredlang" in
12891                   "$presentlang"*) useit=yes;;
12892                 esac
12893               done
12894               if test $useit = yes; then
12895                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12896               fi
12897             done
12898           fi
12899           CATALOGS=
12900           if test -n "$INST_LINGUAS"; then
12901             for lang in $INST_LINGUAS; do
12902               CATALOGS="$CATALOGS $lang.gmo"
12903             done
12904           fi
12905           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12906           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"
12907           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12908             if test -f "$f"; then
12909               case "$f" in
12910                 *.orig | *.bak | *~) ;;
12911                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12912               esac
12913             fi
12914           done
12915         fi
12916         ;;
12917       esac
12918     done ;;
12919
12920   esac
12921 done # for ac_tag
12922
12923
12924 as_fn_exit 0
12925 _ACEOF
12926 ac_clean_files=$ac_clean_files_save
12927
12928 test $ac_write_fail = 0 ||
12929   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12930
12931
12932 # configure is writing to config.log, and then calls config.status.
12933 # config.status does its own redirection, appending to config.log.
12934 # Unfortunately, on DOS this fails, as config.log is still kept open
12935 # by configure, so config.status won't be able to write to it; its
12936 # output is simply discarded.  So we exec the FD to /dev/null,
12937 # effectively closing config.log, so it can be properly (re)opened and
12938 # appended to by config.status.  When coming back to configure, we
12939 # need to make the FD available again.
12940 if test "$no_create" != yes; then
12941   ac_cs_success=:
12942   ac_config_status_args=
12943   test "$silent" = yes &&
12944     ac_config_status_args="$ac_config_status_args --quiet"
12945   exec 5>/dev/null
12946   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12947   exec 5>>config.log
12948   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12949   # would make configure fail if this is the last instruction.
12950   $ac_cs_success || as_fn_exit 1
12951 fi
12952 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12953   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12954 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12955 fi
12956
12957 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi