Whamcloud - gitweb
84e7e03e77b1f388937057791aa2a827adaf5ed1
[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_LONG_LONG
644 SIZEOF_LONG
645 SIZEOF_INT
646 SIZEOF_SHORT
647 BUILD_CC
648 MAKEINFO
649 STRIP
650 AR
651 LDCONFIG
652 PERL
653 SED
654 AWK
655 CHMOD
656 RM
657 CP
658 MV
659 LN_S
660 LN
661 ifNotGNUmake
662 ifGNUmake
663 BINARY_TYPE
664 POSUB
665 LTLIBINTL
666 LIBINTL
667 INTLLIBS
668 INTL_LIBTOOL_SUFFIX_PREFIX
669 INTLOBJS
670 GENCAT
671 INSTOBJEXT
672 DATADIRNAME
673 CATOBJEXT
674 USE_INCLUDED_LIBINTL
675 BUILD_INCLUDED_LIBINTL
676 INTLBISON
677 LTLIBICONV
678 LIBICONV
679 HAVE_WPRINTF
680 HAVE_SNPRINTF
681 HAVE_ASPRINTF
682 HAVE_POSIX_PRINTF
683 GLIBC21
684 ALLOCA
685 EGREP
686 GREP
687 RANLIB
688 MSGMERGE
689 XGETTEXT
690 GMSGFMT
691 MSGFMT
692 USE_NLS
693 MKINSTALLDIRS
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 SET_MAKE
698 VERSION
699 PACKAGE
700 GETTEXT_PACKAGE
701 UUIDD_CMT
702 E2INITRD_MAN
703 E2INITRD_PROG
704 FSCK_MAN
705 FSCK_PROG
706 DEFRAG_CMT
707 RESIZER_CMT
708 IMAGER_CMT
709 DEBUGFS_CMT
710 QUOTA_CMT
711 DEPPROFILED_LIBQUOTA
712 PROFILED_LIBQUOTA
713 DEPSTATIC_LIBQUOTA
714 STATIC_LIBQUOTA
715 DEPLIBQUOTA
716 LIBQUOTA
717 BLKID_CMT
718 DEPPROFILED_LIBBLKID
719 PROFILED_LIBBLKID
720 DEPSTATIC_LIBBLKID
721 STATIC_LIBBLKID
722 DEPLIBBLKID
723 LIBBLKID
724 UUID_CMT
725 DEPPROFILED_LIBUUID
726 PROFILED_LIBUUID
727 DEPSTATIC_LIBUUID
728 STATIC_LIBUUID
729 DEPLIBUUID
730 LIBUUID
731 PKG_CONFIG
732 TEST_IO_CMT
733 PRIVATE_LIBS_CMT
734 LDFLAG_DYNAMIC
735 PROFILED_LIB_EXT
736 STATIC_LIB_EXT
737 LIB_EXT
738 CHECKER_CMT
739 PROFILE_CMT
740 BSDLIB_CMT
741 ELF_CMT
742 HTREE_CMT
743 Q
744 ES
745 E
746 LINK_BUILD_FLAGS
747 SYMLINK_RELATIVE
748 LINK_INSTALL_FLAGS
749 MAINTAINER_CMT
750 CPP
751 RDYNAMIC
752 DLOPEN_LIB
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 E2FSPROGS_PKGVER
769 E2FSPROGS_VERSION
770 E2FSPROGS_DAY
771 E2FSPROGS_MONTH
772 E2FSPROGS_YEAR
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL'
811 ac_subst_files='MCONFIG
812 MAKEFILE_ELF
813 MAKEFILE_BSDLIB
814 MAKEFILE_PROFILE
815 MAKEFILE_CHECKER
816 MAKEFILE_LIBRARY
817 ASM_TYPES_HEADER
818 PUBLIC_CONFIG_HEADER'
819 ac_user_opts='
820 enable_option_checking
821 with_diet_libc
822 with_cc
823 with_ccopts
824 with_ldopts
825 with_root_prefix
826 enable_maintainer_mode
827 enable_symlink_install
828 enable_relative_symlinks
829 enable_symlink_relative_symlinks
830 enable_symlink_build
831 enable_verbose_makecmds
832 enable_compression
833 enable_htree
834 enable_elf_shlibs
835 enable_bsd_shlibs
836 enable_profile
837 enable_checker
838 enable_jbd_debug
839 enable_blkid_debug
840 enable_testio_debug
841 enable_libuuid
842 enable_libblkid
843 enable_quota
844 enable_debugfs
845 enable_imager
846 enable_resizer
847 enable_defrag
848 enable_fsck
849 enable_e2initrd_helper
850 enable_tls
851 enable_uuidd
852 enable_mmp
853 enable_bmap_stats
854 enable_bmap_stats_ops
855 enable_nls
856 with_gnu_ld
857 enable_rpath
858 with_libiconv_prefix
859 with_included_gettext
860 with_libintl_prefix
861 with_multiarch
862 '
863       ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CC
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
871 CPP
872 PKG_CONFIG'
873
874
875 # Initialize some variables set by options.
876 ac_init_help=
877 ac_init_version=false
878 ac_unrecognized_opts=
879 ac_unrecognized_sep=
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
882 cache_file=/dev/null
883 exec_prefix=NONE
884 no_create=
885 no_recursion=
886 prefix=NONE
887 program_prefix=NONE
888 program_suffix=NONE
889 program_transform_name=s,x,x,
890 silent=
891 site=
892 srcdir=
893 verbose=
894 x_includes=NONE
895 x_libraries=NONE
896
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE}'
914 infodir='${datarootdir}/info'
915 htmldir='${docdir}'
916 dvidir='${docdir}'
917 pdfdir='${docdir}'
918 psdir='${docdir}'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
922
923 ac_prev=
924 ac_dashdash=
925 for ac_option
926 do
927   # If the previous option needs an argument, assign it.
928   if test -n "$ac_prev"; then
929     eval $ac_prev=\$ac_option
930     ac_prev=
931     continue
932   fi
933
934   case $ac_option in
935   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936   *=)   ac_optarg= ;;
937   *)    ac_optarg=yes ;;
938   esac
939
940   # Accept the important Cygnus configure options, so we can diagnose typos.
941
942   case $ac_dashdash$ac_option in
943   --)
944     ac_dashdash=yes ;;
945
946   -bindir | --bindir | --bindi | --bind | --bin | --bi)
947     ac_prev=bindir ;;
948   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949     bindir=$ac_optarg ;;
950
951   -build | --build | --buil | --bui | --bu)
952     ac_prev=build_alias ;;
953   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954     build_alias=$ac_optarg ;;
955
956   -cache-file | --cache-file | --cache-fil | --cache-fi \
957   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958     ac_prev=cache_file ;;
959   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961     cache_file=$ac_optarg ;;
962
963   --config-cache | -C)
964     cache_file=config.cache ;;
965
966   -datadir | --datadir | --datadi | --datad)
967     ac_prev=datadir ;;
968   -datadir=* | --datadir=* | --datadi=* | --datad=*)
969     datadir=$ac_optarg ;;
970
971   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972   | --dataroo | --dataro | --datar)
973     ac_prev=datarootdir ;;
974   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976     datarootdir=$ac_optarg ;;
977
978   -disable-* | --disable-*)
979     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982       as_fn_error $? "invalid feature name: $ac_useropt"
983     ac_useropt_orig=$ac_useropt
984     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985     case $ac_user_opts in
986       *"
987 "enable_$ac_useropt"
988 "*) ;;
989       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990          ac_unrecognized_sep=', ';;
991     esac
992     eval enable_$ac_useropt=no ;;
993
994   -docdir | --docdir | --docdi | --doc | --do)
995     ac_prev=docdir ;;
996   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997     docdir=$ac_optarg ;;
998
999   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000     ac_prev=dvidir ;;
1001   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002     dvidir=$ac_optarg ;;
1003
1004   -enable-* | --enable-*)
1005     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008       as_fn_error $? "invalid feature name: $ac_useropt"
1009     ac_useropt_orig=$ac_useropt
1010     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011     case $ac_user_opts in
1012       *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016          ac_unrecognized_sep=', ';;
1017     esac
1018     eval enable_$ac_useropt=\$ac_optarg ;;
1019
1020   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022   | --exec | --exe | --ex)
1023     ac_prev=exec_prefix ;;
1024   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026   | --exec=* | --exe=* | --ex=*)
1027     exec_prefix=$ac_optarg ;;
1028
1029   -gas | --gas | --ga | --g)
1030     # Obsolete; use --with-gas.
1031     with_gas=yes ;;
1032
1033   -help | --help | --hel | --he | -h)
1034     ac_init_help=long ;;
1035   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036     ac_init_help=recursive ;;
1037   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038     ac_init_help=short ;;
1039
1040   -host | --host | --hos | --ho)
1041     ac_prev=host_alias ;;
1042   -host=* | --host=* | --hos=* | --ho=*)
1043     host_alias=$ac_optarg ;;
1044
1045   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046     ac_prev=htmldir ;;
1047   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048   | --ht=*)
1049     htmldir=$ac_optarg ;;
1050
1051   -includedir | --includedir | --includedi | --included | --include \
1052   | --includ | --inclu | --incl | --inc)
1053     ac_prev=includedir ;;
1054   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055   | --includ=* | --inclu=* | --incl=* | --inc=*)
1056     includedir=$ac_optarg ;;
1057
1058   -infodir | --infodir | --infodi | --infod | --info | --inf)
1059     ac_prev=infodir ;;
1060   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061     infodir=$ac_optarg ;;
1062
1063   -libdir | --libdir | --libdi | --libd)
1064     ac_prev=libdir ;;
1065   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066     libdir=$ac_optarg ;;
1067
1068   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069   | --libexe | --libex | --libe)
1070     ac_prev=libexecdir ;;
1071   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072   | --libexe=* | --libex=* | --libe=*)
1073     libexecdir=$ac_optarg ;;
1074
1075   -localedir | --localedir | --localedi | --localed | --locale)
1076     ac_prev=localedir ;;
1077   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078     localedir=$ac_optarg ;;
1079
1080   -localstatedir | --localstatedir | --localstatedi | --localstated \
1081   | --localstate | --localstat | --localsta | --localst | --locals)
1082     ac_prev=localstatedir ;;
1083   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085     localstatedir=$ac_optarg ;;
1086
1087   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088     ac_prev=mandir ;;
1089   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090     mandir=$ac_optarg ;;
1091
1092   -nfp | --nfp | --nf)
1093     # Obsolete; use --without-fp.
1094     with_fp=no ;;
1095
1096   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097   | --no-cr | --no-c | -n)
1098     no_create=yes ;;
1099
1100   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102     no_recursion=yes ;;
1103
1104   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106   | --oldin | --oldi | --old | --ol | --o)
1107     ac_prev=oldincludedir ;;
1108   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111     oldincludedir=$ac_optarg ;;
1112
1113   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114     ac_prev=prefix ;;
1115   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116     prefix=$ac_optarg ;;
1117
1118   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119   | --program-pre | --program-pr | --program-p)
1120     ac_prev=program_prefix ;;
1121   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123     program_prefix=$ac_optarg ;;
1124
1125   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126   | --program-suf | --program-su | --program-s)
1127     ac_prev=program_suffix ;;
1128   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130     program_suffix=$ac_optarg ;;
1131
1132   -program-transform-name | --program-transform-name \
1133   | --program-transform-nam | --program-transform-na \
1134   | --program-transform-n | --program-transform- \
1135   | --program-transform | --program-transfor \
1136   | --program-transfo | --program-transf \
1137   | --program-trans | --program-tran \
1138   | --progr-tra | --program-tr | --program-t)
1139     ac_prev=program_transform_name ;;
1140   -program-transform-name=* | --program-transform-name=* \
1141   | --program-transform-nam=* | --program-transform-na=* \
1142   | --program-transform-n=* | --program-transform-=* \
1143   | --program-transform=* | --program-transfor=* \
1144   | --program-transfo=* | --program-transf=* \
1145   | --program-trans=* | --program-tran=* \
1146   | --progr-tra=* | --program-tr=* | --program-t=*)
1147     program_transform_name=$ac_optarg ;;
1148
1149   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150     ac_prev=pdfdir ;;
1151   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152     pdfdir=$ac_optarg ;;
1153
1154   -psdir | --psdir | --psdi | --psd | --ps)
1155     ac_prev=psdir ;;
1156   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157     psdir=$ac_optarg ;;
1158
1159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160   | -silent | --silent | --silen | --sile | --sil)
1161     silent=yes ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid package name: $ac_useropt"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval with_$ac_useropt=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228       as_fn_error $? "invalid package name: $ac_useropt"
1229     ac_useropt_orig=$ac_useropt
1230     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231     case $ac_user_opts in
1232       *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236          ac_unrecognized_sep=', ';;
1237     esac
1238     eval with_$ac_useropt=no ;;
1239
1240   --x)
1241     # Obsolete; use --with-x.
1242     with_x=yes ;;
1243
1244   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245   | --x-incl | --x-inc | --x-in | --x-i)
1246     ac_prev=x_includes ;;
1247   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249     x_includes=$ac_optarg ;;
1250
1251   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253     ac_prev=x_libraries ;;
1254   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256     x_libraries=$ac_optarg ;;
1257
1258   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1260     ;;
1261
1262   *=*)
1263     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264     # Reject names that are not valid shell variable names.
1265     case $ac_envvar in #(
1266       '' | [0-9]* | *[!_$as_cr_alnum]* )
1267       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268     esac
1269     eval $ac_envvar=\$ac_optarg
1270     export $ac_envvar ;;
1271
1272   *)
1273     # FIXME: should be removed in autoconf 3.0.
1274     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278     ;;
1279
1280   esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285   as_fn_error $? "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289   case $enable_option_checking in
1290     no) ;;
1291     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293   esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298                 datadir sysconfdir sharedstatedir localstatedir includedir \
1299                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300                 libdir localedir mandir
1301 do
1302   eval ac_val=\$$ac_var
1303   # Remove trailing slashes.
1304   case $ac_val in
1305     */ )
1306       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307       eval $ac_var=\$ac_val;;
1308   esac
1309   # Be sure to have absolute directory names.
1310   case $ac_val in
1311     [\\/$]* | ?:[\\/]* )  continue;;
1312     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313   esac
1314   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326   if test "x$build_alias" = x; then
1327     cross_compiling=maybe
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures this package to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking ...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1462   --htmldir=DIR           html documentation [DOCDIR]
1463   --dvidir=DIR            dvi documentation [DOCDIR]
1464   --pdfdir=DIR            pdf documentation [DOCDIR]
1465   --psdir=DIR             ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477
1478   cat <<\_ACEOF
1479
1480 Optional Features:
1481   --disable-option-checking  ignore unrecognized --enable/--with options
1482   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1483   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1484   --enable-maintainer-mode enable makefile rules useful for maintainers
1485   --enable-symlink-install use symlinks when installing instead of hard links
1486   --enable-relative-symlinks use relative symlinks when installing
1487
1488   --enable-symlink-build  use symlinks while building instead of hard links
1489   --enable-verbose-makecmds enable verbose make command output
1490   --enable-compression    enable EXPERIMENTAL compression support
1491   --enable-htree          enable EXPERIMENTAL htree directory support
1492   --enable-elf-shlibs     select ELF shared libraries
1493   --enable-bsd-shlibs     select BSD shared libraries
1494   --enable-profile        build profiling libraries
1495   --enable-checker        build checker libraries
1496   --enable-jbd-debug      enable journal debugging
1497   --enable-blkid-debug    enable blkid debugging
1498   --disable-testio-debug  disable the use of the test I/O manager for debugging
1499   --disable-libuuid       do not build private uuid library
1500   --disable-libblkid      do not build private blkid library
1501   --enable-quota          enable quota support
1502   --disable-debugfs       disable support of debugfs program
1503   --disable-imager        disable support of e2image program
1504   --disable-resizer       disable support of e2resize program
1505   --disable-defrag        disable support of e4defrag program
1506   --enable-fsck           build fsck wrapper program
1507   --enable-e2initrd-helper build e2initrd-helper program
1508   --disable-tls           disable use of thread local support
1509   --disable-uuidd         disable building the uuid daemon
1510   --disable-mmp           disable support mmp, Multi Mount Protection
1511   --disable-bmap-stats    disable collection of bitmap stats.
1512   --enable-bmap-stats-ops enable collection of additional bitmap stats
1513   --disable-nls           do not use Native Language Support
1514   --disable-rpath         do not hardcode runtime library paths
1515
1516 Optional Packages:
1517   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519   --with-diet-libc        use diet libc
1520   --with-cc               no longer supported, use CC= instead
1521   --with-ccopts           no longer supported, use CFLAGS= instead
1522   --with-ldopts           no longer supported, use LDFLAGS= instead
1523   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1524   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1525   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1526   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1527   --with-included-gettext use the GNU gettext library included here
1528   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1529   --without-libintl-prefix     don't search for libintl in includedir and libdir
1530   --with-multiarch=ARCH specify the multiarch triplet
1531
1532 Some influential environment variables:
1533   CC          C compiler command
1534   CFLAGS      C compiler flags
1535   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536               nonstandard directory <lib dir>
1537   LIBS        libraries to pass to the linker, e.g. -l<library>
1538   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539               you have headers in a nonstandard directory <include dir>
1540   CPP         C preprocessor
1541   PKG_CONFIG  path to pkg-config utility
1542
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1545
1546 Report bugs to the package provider.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552   # If there are subdirs, report their specific --help.
1553   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554     test -d "$ac_dir" ||
1555       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556       continue
1557     ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563   # A ".." for each directory in $ac_dir_suffix.
1564   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565   case $ac_top_builddir_sub in
1566   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568   esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576   .)  # We are building in place.
1577     ac_srcdir=.
1578     ac_top_srcdir=$ac_top_builddir_sub
1579     ac_abs_top_srcdir=$ac_pwd ;;
1580   [\\/]* | ?:[\\/]* )  # Absolute name.
1581     ac_srcdir=$srcdir$ac_dir_suffix;
1582     ac_top_srcdir=$srcdir
1583     ac_abs_top_srcdir=$srcdir ;;
1584   *) # Relative name.
1585     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586     ac_top_srcdir=$ac_top_build_prefix$srcdir
1587     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591     cd "$ac_dir" || { ac_status=$?; continue; }
1592     # Check for guested configure.
1593     if test -f "$ac_srcdir/configure.gnu"; then
1594       echo &&
1595       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596     elif test -f "$ac_srcdir/configure"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure" --help=recursive
1599     else
1600       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601     fi || ac_status=$?
1602     cd "$ac_pwd" || { ac_status=$?; break; }
1603   done
1604 fi
1605
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608   cat <<\_ACEOF
1609 configure
1610 generated by GNU Autoconf 2.69
1611
1612 Copyright (C) 2012 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1615 _ACEOF
1616   exit
1617 fi
1618
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1622
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   rm -f conftest.$ac_objext
1630   if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_compile") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } && {
1646          test -z "$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        } && test -s conftest.$ac_objext; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654         ac_retval=1
1655 fi
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_compile
1660
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   rm -f conftest.$ac_objext conftest$ac_exeext
1668   if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_link") 2>conftest.err
1676   ac_status=$?
1677   if test -s conftest.err; then
1678     grep -v '^ *+' conftest.err >conftest.er1
1679     cat conftest.er1 >&5
1680     mv -f conftest.er1 conftest.err
1681   fi
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } && {
1684          test -z "$ac_c_werror_flag" ||
1685          test ! -s conftest.err
1686        } && test -s conftest$ac_exeext && {
1687          test "$cross_compiling" = yes ||
1688          test -x conftest$ac_exeext
1689        }; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695         ac_retval=1
1696 fi
1697   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699   # interfere with the next link command; also delete a directory that is
1700   # left behind by Apple's compiler.  We do this before executing the actions.
1701   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703   as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_link
1706
1707 # ac_fn_c_try_cpp LINENO
1708 # ----------------------
1709 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_cpp ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   if { { ac_try="$ac_cpp conftest.$ac_ext"
1714 case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721   ac_status=$?
1722   if test -s conftest.err; then
1723     grep -v '^ *+' conftest.err >conftest.er1
1724     cat conftest.er1 >&5
1725     mv -f conftest.er1 conftest.err
1726   fi
1727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728   test $ac_status = 0; } > conftest.i && {
1729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730          test ! -s conftest.err
1731        }; then :
1732   ac_retval=0
1733 else
1734   $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737     ac_retval=1
1738 fi
1739   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740   as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_cpp
1743
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1748 ac_fn_c_try_run ()
1749 {
1750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751   if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754   *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758   (eval "$ac_link") 2>&5
1759   ac_status=$?
1760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762   { { case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_try") 2>&5
1769   ac_status=$?
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; }; }; then :
1772   ac_retval=0
1773 else
1774   $as_echo "$as_me: program exited with status $ac_status" >&5
1775        $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778        ac_retval=$ac_status
1779 fi
1780   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782   as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_run
1785
1786 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1787 # -------------------------------------------
1788 # Tests whether TYPE exists after having included INCLUDES, setting cache
1789 # variable VAR accordingly.
1790 ac_fn_c_check_type ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796   $as_echo_n "(cached) " >&6
1797 else
1798   eval "$3=no"
1799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h.  */
1801 $4
1802 int
1803 main ()
1804 {
1805 if (sizeof ($2))
1806          return 0;
1807   ;
1808   return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 $4
1815 int
1816 main ()
1817 {
1818 if (sizeof (($2)))
1819             return 0;
1820   ;
1821   return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825
1826 else
1827   eval "$3=yes"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_type
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858   eval "$3=yes"
1859 else
1860   eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880   $as_echo_n "(cached) " >&6
1881 else
1882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889     which can conflict with char $2 (); below.
1890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891     <limits.h> exists even on freestanding compilers.  */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902    Use char because int might match the return type of a GCC
1903    builtin and then its argument prototype would still apply.  */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909     to always fail with ENOSYS.  Some functions are actually named
1910     something starting with __ and the normal name is an alias.  */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924   eval "$3=yes"
1925 else
1926   eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929     conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937
1938 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1939 # -------------------------------------------------------
1940 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1941 # the include files in INCLUDES and setting the cache variable VAR
1942 # accordingly.
1943 ac_fn_c_check_header_mongrel ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   if eval \${$3+:} false; then :
1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950   $as_echo_n "(cached) " >&6
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 else
1956   # Is the header compilable?
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1958 $as_echo_n "checking $2 usability... " >&6; }
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 $4
1962 #include <$2>
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965   ac_header_compiler=yes
1966 else
1967   ac_header_compiler=no
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1971 $as_echo "$ac_header_compiler" >&6; }
1972
1973 # Is the header present?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1975 $as_echo_n "checking $2 presence... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h.  */
1978 #include <$2>
1979 _ACEOF
1980 if ac_fn_c_try_cpp "$LINENO"; then :
1981   ac_header_preproc=yes
1982 else
1983   ac_header_preproc=no
1984 fi
1985 rm -f conftest.err conftest.i conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1987 $as_echo "$ac_header_preproc" >&6; }
1988
1989 # So?  What about this header?
1990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1991   yes:no: )
1992     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1993 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1994     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996     ;;
1997   no:yes:* )
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1999 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2001 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2003 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2005 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008     ;;
2009 esac
2010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval \${$3+:} false; then :
2013   $as_echo_n "(cached) " >&6
2014 else
2015   eval "$3=\$ac_header_compiler"
2016 fi
2017 eval ac_res=\$$3
2018                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 fi
2021   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_header_mongrel
2024
2025 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2026 # --------------------------------------------
2027 # Tries to find the compile-time value of EXPR in a program that includes
2028 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2029 # computed
2030 ac_fn_c_compute_int ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   if test "$cross_compiling" = yes; then
2034     # Depending upon the size, compute the lo and hi bounds.
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $4
2038 int
2039 main ()
2040 {
2041 static int test_array [1 - 2 * !(($2) >= 0)];
2042 test_array [0] = 0;
2043 return test_array [0];
2044
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050   ac_lo=0 ac_mid=0
2051   while :; do
2052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2059 test_array [0] = 0;
2060 return test_array [0];
2061
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067   ac_hi=$ac_mid; break
2068 else
2069   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2070                         if test $ac_lo -le $ac_mid; then
2071                           ac_lo= ac_hi=
2072                           break
2073                         fi
2074                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077   done
2078 else
2079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 $4
2082 int
2083 main ()
2084 {
2085 static int test_array [1 - 2 * !(($2) < 0)];
2086 test_array [0] = 0;
2087 return test_array [0];
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094   ac_hi=-1 ac_mid=-1
2095   while :; do
2096     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2103 test_array [0] = 0;
2104 return test_array [0];
2105
2106   ;
2107   return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111   ac_lo=$ac_mid; break
2112 else
2113   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2114                         if test $ac_mid -le $ac_hi; then
2115                           ac_lo= ac_hi=
2116                           break
2117                         fi
2118                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121   done
2122 else
2123   ac_lo= ac_hi=
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 # Binary search between lo and hi bounds.
2129 while test "x$ac_lo" != "x$ac_hi"; do
2130   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h.  */
2133 $4
2134 int
2135 main ()
2136 {
2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2138 test_array [0] = 0;
2139 return test_array [0];
2140
2141   ;
2142   return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146   ac_hi=$ac_mid
2147 else
2148   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 done
2152 case $ac_lo in #((
2153 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2154 '') ac_retval=1 ;;
2155 esac
2156   else
2157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 static long int longval () { return $2; }
2161 static unsigned long int ulongval () { return $2; }
2162 #include <stdio.h>
2163 #include <stdlib.h>
2164 int
2165 main ()
2166 {
2167
2168   FILE *f = fopen ("conftest.val", "w");
2169   if (! f)
2170     return 1;
2171   if (($2) < 0)
2172     {
2173       long int i = longval ();
2174       if (i != ($2))
2175         return 1;
2176       fprintf (f, "%ld", i);
2177     }
2178   else
2179     {
2180       unsigned long int i = ulongval ();
2181       if (i != ($2))
2182         return 1;
2183       fprintf (f, "%lu", i);
2184     }
2185   /* Do not output a trailing newline, as this causes \r\n confusion
2186      on some platforms.  */
2187   return ferror (f) || fclose (f) != 0;
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_run "$LINENO"; then :
2194   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2195 else
2196   ac_retval=1
2197 fi
2198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2199   conftest.$ac_objext conftest.beam conftest.$ac_ext
2200 rm -f conftest.val
2201
2202   fi
2203   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204   as_fn_set_status $ac_retval
2205
2206 } # ac_fn_c_compute_int
2207
2208 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2209 # ----------------------------------------------------
2210 # Tries to find if the field MEMBER exists in type AGGR, after including
2211 # INCLUDES, setting cache variable VAR accordingly.
2212 ac_fn_c_check_member ()
2213 {
2214   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2216 $as_echo_n "checking for $2.$3... " >&6; }
2217 if eval \${$4+:} false; then :
2218   $as_echo_n "(cached) " >&6
2219 else
2220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $5
2223 int
2224 main ()
2225 {
2226 static $2 ac_aggr;
2227 if (ac_aggr.$3)
2228 return 0;
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234   eval "$4=yes"
2235 else
2236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h.  */
2238 $5
2239 int
2240 main ()
2241 {
2242 static $2 ac_aggr;
2243 if (sizeof ac_aggr.$3)
2244 return 0;
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   eval "$4=yes"
2251 else
2252   eval "$4=no"
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 eval ac_res=\$$4
2259                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262
2263 } # ac_fn_c_check_member
2264
2265 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2266 # ---------------------------------------------
2267 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2268 # accordingly.
2269 ac_fn_c_check_decl ()
2270 {
2271   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272   as_decl_name=`echo $2|sed 's/ *(.*//'`
2273   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2275 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2276 if eval \${$3+:} false; then :
2277   $as_echo_n "(cached) " >&6
2278 else
2279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 int
2283 main ()
2284 {
2285 #ifndef $as_decl_name
2286 #ifdef __cplusplus
2287   (void) $as_decl_use;
2288 #else
2289   (void) $as_decl_name;
2290 #endif
2291 #endif
2292
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298   eval "$3=yes"
2299 else
2300   eval "$3=no"
2301 fi
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 fi
2304 eval ac_res=\$$3
2305                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308
2309 } # ac_fn_c_check_decl
2310 cat >config.log <<_ACEOF
2311 This file contains any messages produced by compilers while
2312 running configure, to aid debugging if configure makes a mistake.
2313
2314 It was created by $as_me, which was
2315 generated by GNU Autoconf 2.69.  Invocation command line was
2316
2317   $ $0 $@
2318
2319 _ACEOF
2320 exec 5>>config.log
2321 {
2322 cat <<_ASUNAME
2323 ## --------- ##
2324 ## Platform. ##
2325 ## --------- ##
2326
2327 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2328 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2329 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2330 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2331 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2332
2333 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2334 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2335
2336 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2337 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2338 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2339 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2340 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2341 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2342 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2343
2344 _ASUNAME
2345
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351     $as_echo "PATH: $as_dir"
2352   done
2353 IFS=$as_save_IFS
2354
2355 } >&5
2356
2357 cat >&5 <<_ACEOF
2358
2359
2360 ## ----------- ##
2361 ## Core tests. ##
2362 ## ----------- ##
2363
2364 _ACEOF
2365
2366
2367 # Keep a trace of the command line.
2368 # Strip out --no-create and --no-recursion so they do not pile up.
2369 # Strip out --silent because we don't want to record it for future runs.
2370 # Also quote any args containing shell meta-characters.
2371 # Make two passes to allow for proper duplicate-argument suppression.
2372 ac_configure_args=
2373 ac_configure_args0=
2374 ac_configure_args1=
2375 ac_must_keep_next=false
2376 for ac_pass in 1 2
2377 do
2378   for ac_arg
2379   do
2380     case $ac_arg in
2381     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2382     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2383     | -silent | --silent | --silen | --sile | --sil)
2384       continue ;;
2385     *\'*)
2386       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2387     esac
2388     case $ac_pass in
2389     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2390     2)
2391       as_fn_append ac_configure_args1 " '$ac_arg'"
2392       if test $ac_must_keep_next = true; then
2393         ac_must_keep_next=false # Got value, back to normal.
2394       else
2395         case $ac_arg in
2396           *=* | --config-cache | -C | -disable-* | --disable-* \
2397           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2398           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2399           | -with-* | --with-* | -without-* | --without-* | --x)
2400             case "$ac_configure_args0 " in
2401               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2402             esac
2403             ;;
2404           -* ) ac_must_keep_next=true ;;
2405         esac
2406       fi
2407       as_fn_append ac_configure_args " '$ac_arg'"
2408       ;;
2409     esac
2410   done
2411 done
2412 { ac_configure_args0=; unset ac_configure_args0;}
2413 { ac_configure_args1=; unset ac_configure_args1;}
2414
2415 # When interrupted or exit'd, cleanup temporary files, and complete
2416 # config.log.  We remove comments because anyway the quotes in there
2417 # would cause problems or look ugly.
2418 # WARNING: Use '\'' to represent an apostrophe within the trap.
2419 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2420 trap 'exit_status=$?
2421   # Save into config.log some information that might help in debugging.
2422   {
2423     echo
2424
2425     $as_echo "## ---------------- ##
2426 ## Cache variables. ##
2427 ## ---------------- ##"
2428     echo
2429     # The following way of writing the cache mishandles newlines in values,
2430 (
2431   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2432     eval ac_val=\$$ac_var
2433     case $ac_val in #(
2434     *${as_nl}*)
2435       case $ac_var in #(
2436       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2438       esac
2439       case $ac_var in #(
2440       _ | IFS | as_nl) ;; #(
2441       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2442       *) { eval $ac_var=; unset $ac_var;} ;;
2443       esac ;;
2444     esac
2445   done
2446   (set) 2>&1 |
2447     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2448     *${as_nl}ac_space=\ *)
2449       sed -n \
2450         "s/'\''/'\''\\\\'\'''\''/g;
2451           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2452       ;; #(
2453     *)
2454       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2455       ;;
2456     esac |
2457     sort
2458 )
2459     echo
2460
2461     $as_echo "## ----------------- ##
2462 ## Output variables. ##
2463 ## ----------------- ##"
2464     echo
2465     for ac_var in $ac_subst_vars
2466     do
2467       eval ac_val=\$$ac_var
2468       case $ac_val in
2469       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2470       esac
2471       $as_echo "$ac_var='\''$ac_val'\''"
2472     done | sort
2473     echo
2474
2475     if test -n "$ac_subst_files"; then
2476       $as_echo "## ------------------- ##
2477 ## File substitutions. ##
2478 ## ------------------- ##"
2479       echo
2480       for ac_var in $ac_subst_files
2481       do
2482         eval ac_val=\$$ac_var
2483         case $ac_val in
2484         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2485         esac
2486         $as_echo "$ac_var='\''$ac_val'\''"
2487       done | sort
2488       echo
2489     fi
2490
2491     if test -s confdefs.h; then
2492       $as_echo "## ----------- ##
2493 ## confdefs.h. ##
2494 ## ----------- ##"
2495       echo
2496       cat confdefs.h
2497       echo
2498     fi
2499     test "$ac_signal" != 0 &&
2500       $as_echo "$as_me: caught signal $ac_signal"
2501     $as_echo "$as_me: exit $exit_status"
2502   } >&5
2503   rm -f core *.core core.conftest.* &&
2504     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2505     exit $exit_status
2506 ' 0
2507 for ac_signal in 1 2 13 15; do
2508   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2509 done
2510 ac_signal=0
2511
2512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2513 rm -f -r conftest* confdefs.h
2514
2515 $as_echo "/* confdefs.h */" > confdefs.h
2516
2517 # Predefined preprocessor variables.
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_NAME "$PACKAGE_NAME"
2521 _ACEOF
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_STRING "$PACKAGE_STRING"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2537 _ACEOF
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_URL "$PACKAGE_URL"
2541 _ACEOF
2542
2543
2544 # Let the site file select an alternate cache file if it wants to.
2545 # Prefer an explicitly selected file to automatically selected ones.
2546 ac_site_file1=NONE
2547 ac_site_file2=NONE
2548 if test -n "$CONFIG_SITE"; then
2549   # We do not want a PATH search for config.site.
2550   case $CONFIG_SITE in #((
2551     -*)  ac_site_file1=./$CONFIG_SITE;;
2552     */*) ac_site_file1=$CONFIG_SITE;;
2553     *)   ac_site_file1=./$CONFIG_SITE;;
2554   esac
2555 elif test "x$prefix" != xNONE; then
2556   ac_site_file1=$prefix/share/config.site
2557   ac_site_file2=$prefix/etc/config.site
2558 else
2559   ac_site_file1=$ac_default_prefix/share/config.site
2560   ac_site_file2=$ac_default_prefix/etc/config.site
2561 fi
2562 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2563 do
2564   test "x$ac_site_file" = xNONE && continue
2565   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2566     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2567 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2568     sed 's/^/| /' "$ac_site_file" >&5
2569     . "$ac_site_file" \
2570       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572 as_fn_error $? "failed to load site script $ac_site_file
2573 See \`config.log' for more details" "$LINENO" 5; }
2574   fi
2575 done
2576
2577 if test -r "$cache_file"; then
2578   # Some versions of bash will fail to source /dev/null (special files
2579   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2580   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2581     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582 $as_echo "$as_me: loading cache $cache_file" >&6;}
2583     case $cache_file in
2584       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585       *)                      . "./$cache_file";;
2586     esac
2587   fi
2588 else
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590 $as_echo "$as_me: creating cache $cache_file" >&6;}
2591   >$cache_file
2592 fi
2593
2594 as_fn_append ac_header_list " stdlib.h"
2595 as_fn_append ac_header_list " unistd.h"
2596 as_fn_append ac_header_list " sys/param.h"
2597 # Check that the precious variables saved in the cache have kept the same
2598 # value.
2599 ac_cache_corrupted=false
2600 for ac_var in $ac_precious_vars; do
2601   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2602   eval ac_new_set=\$ac_env_${ac_var}_set
2603   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2604   eval ac_new_val=\$ac_env_${ac_var}_value
2605   case $ac_old_set,$ac_new_set in
2606     set,)
2607       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2608 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2609       ac_cache_corrupted=: ;;
2610     ,set)
2611       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2613       ac_cache_corrupted=: ;;
2614     ,);;
2615     *)
2616       if test "x$ac_old_val" != "x$ac_new_val"; then
2617         # differences in whitespace do not lead to failure.
2618         ac_old_val_w=`echo x $ac_old_val`
2619         ac_new_val_w=`echo x $ac_new_val`
2620         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2621           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2622 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2623           ac_cache_corrupted=:
2624         else
2625           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2626 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2627           eval $ac_var=\$ac_old_val
2628         fi
2629         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2630 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2631         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2632 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2633       fi;;
2634   esac
2635   # Pass precious variables to config.status.
2636   if test "$ac_new_set" = set; then
2637     case $ac_new_val in
2638     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2639     *) ac_arg=$ac_var=$ac_new_val ;;
2640     esac
2641     case " $ac_configure_args " in
2642       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2643       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2644     esac
2645   fi
2646 done
2647 if $ac_cache_corrupted; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2651 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2652   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2653 fi
2654 ## -------------------- ##
2655 ## Main body of script. ##
2656 ## -------------------- ##
2657
2658 ac_ext=c
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663
2664
2665
2666 ac_aux_dir=
2667 for ac_dir in config "$srcdir"/config; do
2668   if test -f "$ac_dir/install-sh"; then
2669     ac_aux_dir=$ac_dir
2670     ac_install_sh="$ac_aux_dir/install-sh -c"
2671     break
2672   elif test -f "$ac_dir/install.sh"; then
2673     ac_aux_dir=$ac_dir
2674     ac_install_sh="$ac_aux_dir/install.sh -c"
2675     break
2676   elif test -f "$ac_dir/shtool"; then
2677     ac_aux_dir=$ac_dir
2678     ac_install_sh="$ac_aux_dir/shtool install -c"
2679     break
2680   fi
2681 done
2682 if test -z "$ac_aux_dir"; then
2683   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2684 fi
2685
2686 # These three variables are undocumented and unsupported,
2687 # and are intended to be withdrawn in a future Autoconf release.
2688 # They can cause serious problems if a builder's source tree is in a directory
2689 # whose full name contains unusual characters.
2690 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2691 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2692 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2693
2694
2695 ac_config_headers="$ac_config_headers lib/config.h"
2696
2697
2698 MCONFIG=./MCONFIG
2699
2700 BINARY_TYPE=bin
2701 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2702         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2703 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2704         | tr \" " "`
2705 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2706 MONTH=`echo $DATE | awk -F- '{print $2}'`
2707 YEAR=`echo $DATE | awk -F- '{print $3}'`
2708
2709 if expr $YEAR ">" 1900 > /dev/null ; then
2710         E2FSPROGS_YEAR=$YEAR
2711 elif expr $YEAR ">" 90 >/dev/null ; then
2712         E2FSPROGS_YEAR=19$YEAR
2713 else
2714         E2FSPROGS_YEAR=20$YEAR
2715 fi
2716
2717 case $MONTH in
2718 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2719 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2720 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2721 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2722 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2723 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2724 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2725 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2726 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2727 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2728 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2729 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2730 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2731 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2732 esac
2733
2734 base_ver=`echo $E2FSPROGS_VERSION | \
2735                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2736
2737 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2738
2739 case $E2FSPROGS_VERSION in
2740 *-WIP|pre-*)
2741         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2742         ;;
2743 *)
2744         E2FSPROGS_PKGVER="$base_ver"
2745         ;;
2746 esac
2747
2748 unset DATE MONTH YEAR base_ver pre_vers date_spec
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2750 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2752 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2753
2754
2755
2756
2757
2758 # Make sure we can run config.sub.
2759 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2760   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2761
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2763 $as_echo_n "checking build system type... " >&6; }
2764 if ${ac_cv_build+:} false; then :
2765   $as_echo_n "(cached) " >&6
2766 else
2767   ac_build_alias=$build_alias
2768 test "x$ac_build_alias" = x &&
2769   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2770 test "x$ac_build_alias" = x &&
2771   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2772 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2773   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2774
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2777 $as_echo "$ac_cv_build" >&6; }
2778 case $ac_cv_build in
2779 *-*-*) ;;
2780 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2781 esac
2782 build=$ac_cv_build
2783 ac_save_IFS=$IFS; IFS='-'
2784 set x $ac_cv_build
2785 shift
2786 build_cpu=$1
2787 build_vendor=$2
2788 shift; shift
2789 # Remember, the first character of IFS is used to create $*,
2790 # except with old shells:
2791 build_os=$*
2792 IFS=$ac_save_IFS
2793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2794
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2797 $as_echo_n "checking host system type... " >&6; }
2798 if ${ac_cv_host+:} false; then :
2799   $as_echo_n "(cached) " >&6
2800 else
2801   if test "x$host_alias" = x; then
2802   ac_cv_host=$ac_cv_build
2803 else
2804   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2805     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2806 fi
2807
2808 fi
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2810 $as_echo "$ac_cv_host" >&6; }
2811 case $ac_cv_host in
2812 *-*-*) ;;
2813 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2814 esac
2815 host=$ac_cv_host
2816 ac_save_IFS=$IFS; IFS='-'
2817 set x $ac_cv_host
2818 shift
2819 host_cpu=$1
2820 host_vendor=$2
2821 shift; shift
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2824 host_os=$*
2825 IFS=$ac_save_IFS
2826 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2827
2828
2829 DLOPEN_LIB=''
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 if test -n "$ac_tool_prefix"; then
2836   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_CC+:} false; then :
2841   $as_echo_n "(cached) " >&6
2842 else
2843   if test -n "$CC"; then
2844   ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851     for ac_exec_ext in '' $ac_executable_extensions; do
2852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858   done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 fi
2874 if test -z "$ac_cv_prog_CC"; then
2875   ac_ct_CC=$CC
2876   # Extract the first word of "gcc", so it can be a program name with args.
2877 set dummy gcc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   if test -n "$ac_ct_CC"; then
2884   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889   IFS=$as_save_IFS
2890   test -z "$as_dir" && as_dir=.
2891     for ac_exec_ext in '' $ac_executable_extensions; do
2892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893     ac_cv_prog_ac_ct_CC="gcc"
2894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895     break 2
2896   fi
2897 done
2898   done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904 if test -n "$ac_ct_CC"; then
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2906 $as_echo "$ac_ct_CC" >&6; }
2907 else
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912   if test "x$ac_ct_CC" = x; then
2913     CC=""
2914   else
2915     case $cross_compiling:$ac_tool_warned in
2916 yes:)
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2920 esac
2921     CC=$ac_ct_CC
2922   fi
2923 else
2924   CC="$ac_cv_prog_CC"
2925 fi
2926
2927 if test -z "$CC"; then
2928           if test -n "$ac_tool_prefix"; then
2929     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}cc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   if test -n "$CC"; then
2937   ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944     for ac_exec_ext in '' $ac_executable_extensions; do
2945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946     ac_cv_prog_CC="${ac_tool_prefix}cc"
2947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951   done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966   fi
2967 fi
2968 if test -z "$CC"; then
2969   # Extract the first word of "cc", so it can be a program name with args.
2970 set dummy cc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_CC+:} false; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   if test -n "$CC"; then
2977   ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979   ac_prog_rejected=no
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985     for ac_exec_ext in '' $ac_executable_extensions; do
2986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2988        ac_prog_rejected=yes
2989        continue
2990      fi
2991     ac_cv_prog_CC="cc"
2992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996   done
2997 IFS=$as_save_IFS
2998
2999 if test $ac_prog_rejected = yes; then
3000   # We found a bogon in the path, so make sure we never use it.
3001   set dummy $ac_cv_prog_CC
3002   shift
3003   if test $# != 0; then
3004     # We chose a different compiler from the bogus one.
3005     # However, it has the same basename, so the bogon will be chosen
3006     # first if we set CC to just the basename; use the full file name.
3007     shift
3008     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3009   fi
3010 fi
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 fi
3024 if test -z "$CC"; then
3025   if test -n "$ac_tool_prefix"; then
3026   for ac_prog in cl.exe
3027   do
3028     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_CC+:} false; then :
3033   $as_echo_n "(cached) " >&6
3034 else
3035   if test -n "$CC"; then
3036   ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043     for ac_exec_ext in '' $ac_executable_extensions; do
3044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050   done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3059 else
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065     test -n "$CC" && break
3066   done
3067 fi
3068 if test -z "$CC"; then
3069   ac_ct_CC=$CC
3070   for ac_prog in cl.exe
3071 do
3072   # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test -n "$ac_ct_CC"; then
3080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087     for ac_exec_ext in '' $ac_executable_extensions; do
3088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089     ac_cv_prog_ac_ct_CC="$ac_prog"
3090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094   done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100 if test -n "$ac_ct_CC"; then
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3102 $as_echo "$ac_ct_CC" >&6; }
3103 else
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109   test -n "$ac_ct_CC" && break
3110 done
3111
3112   if test "x$ac_ct_CC" = x; then
3113     CC=""
3114   else
3115     case $cross_compiling:$ac_tool_warned in
3116 yes:)
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119 ac_tool_warned=yes ;;
3120 esac
3121     CC=$ac_ct_CC
3122   fi
3123 fi
3124
3125 fi
3126
3127
3128 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "no acceptable C compiler found in \$PATH
3131 See \`config.log' for more details" "$LINENO" 5; }
3132
3133 # Provide some information about the compiler.
3134 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3135 set X $ac_compile
3136 ac_compiler=$2
3137 for ac_option in --version -v -V -qversion; do
3138   { { ac_try="$ac_compiler $ac_option >&5"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3146   ac_status=$?
3147   if test -s conftest.err; then
3148     sed '10a\
3149 ... rest of stderr output deleted ...
3150          10q' conftest.err >conftest.er1
3151     cat conftest.er1 >&5
3152   fi
3153   rm -f conftest.er1 conftest.err
3154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155   test $ac_status = 0; }
3156 done
3157
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3173 # of exeext.
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3175 $as_echo_n "checking whether the C compiler works... " >&6; }
3176 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3177
3178 # The possible output files:
3179 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3180
3181 ac_rmfiles=
3182 for ac_file in $ac_files
3183 do
3184   case $ac_file in
3185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3186     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3187   esac
3188 done
3189 rm -f $ac_rmfiles
3190
3191 if { { ac_try="$ac_link_default"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198   (eval "$ac_link_default") 2>&5
3199   ac_status=$?
3200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201   test $ac_status = 0; }; then :
3202   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3204 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3205 # so that the user can short-circuit this test for compilers unknown to
3206 # Autoconf.
3207 for ac_file in $ac_files ''
3208 do
3209   test -f "$ac_file" || continue
3210   case $ac_file in
3211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3212         ;;
3213     [ab].out )
3214         # We found the default executable, but exeext='' is most
3215         # certainly right.
3216         break;;
3217     *.* )
3218         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3219         then :; else
3220            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221         fi
3222         # We set ac_cv_exeext here because the later test for it is not
3223         # safe: cross compilers may not add the suffix if given an `-o'
3224         # argument, so we may need to know it at that point already.
3225         # Even if this section looks crufty: it has the advantage of
3226         # actually working.
3227         break;;
3228     * )
3229         break;;
3230   esac
3231 done
3232 test "$ac_cv_exeext" = no && ac_cv_exeext=
3233
3234 else
3235   ac_file=''
3236 fi
3237 if test -z "$ac_file"; then :
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error 77 "C compiler cannot create executables
3246 See \`config.log' for more details" "$LINENO" 5; }
3247 else
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3250 fi
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3252 $as_echo_n "checking for C compiler default output file name... " >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3254 $as_echo "$ac_file" >&6; }
3255 ac_exeext=$ac_cv_exeext
3256
3257 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3258 ac_clean_files=$ac_clean_files_save
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3260 $as_echo_n "checking for suffix of executables... " >&6; }
3261 if { { ac_try="$ac_link"
3262 case "(($ac_try" in
3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264   *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268   (eval "$ac_link") 2>&5
3269   ac_status=$?
3270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271   test $ac_status = 0; }; then :
3272   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3273 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3274 # work properly (i.e., refer to `conftest.exe'), while it won't with
3275 # `rm'.
3276 for ac_file in conftest.exe conftest conftest.*; do
3277   test -f "$ac_file" || continue
3278   case $ac_file in
3279     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281           break;;
3282     * ) break;;
3283   esac
3284 done
3285 else
3286   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3289 See \`config.log' for more details" "$LINENO" 5; }
3290 fi
3291 rm -f conftest conftest$ac_cv_exeext
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3293 $as_echo "$ac_cv_exeext" >&6; }
3294
3295 rm -f conftest.$ac_ext
3296 EXEEXT=$ac_cv_exeext
3297 ac_exeext=$EXEEXT
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h.  */
3300 #include <stdio.h>
3301 int
3302 main ()
3303 {
3304 FILE *f = fopen ("conftest.out", "w");
3305  return ferror (f) || fclose (f) != 0;
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 ac_clean_files="$ac_clean_files conftest.out"
3312 # Check that the compiler produces executables we can run.  If not, either
3313 # the compiler is broken, or we cross compile.
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3315 $as_echo_n "checking whether we are cross compiling... " >&6; }
3316 if test "$cross_compiling" != yes; then
3317   { { ac_try="$ac_link"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324   (eval "$ac_link") 2>&5
3325   ac_status=$?
3326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327   test $ac_status = 0; }
3328   if { ac_try='./conftest$ac_cv_exeext'
3329   { { case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335   (eval "$ac_try") 2>&5
3336   ac_status=$?
3337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338   test $ac_status = 0; }; }; then
3339     cross_compiling=no
3340   else
3341     if test "$cross_compiling" = maybe; then
3342         cross_compiling=yes
3343     else
3344         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot run C compiled programs.
3347 If you meant to cross compile, use \`--host'.
3348 See \`config.log' for more details" "$LINENO" 5; }
3349     fi
3350   fi
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3353 $as_echo "$cross_compiling" >&6; }
3354
3355 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3356 ac_clean_files=$ac_clean_files_save
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3358 $as_echo_n "checking for suffix of object files... " >&6; }
3359 if ${ac_cv_objext+:} false; then :
3360   $as_echo_n "(cached) " >&6
3361 else
3362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h.  */
3364
3365 int
3366 main ()
3367 {
3368
3369   ;
3370   return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.o conftest.obj
3374 if { { ac_try="$ac_compile"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381   (eval "$ac_compile") 2>&5
3382   ac_status=$?
3383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384   test $ac_status = 0; }; then :
3385   for ac_file in conftest.o conftest.obj conftest.*; do
3386   test -f "$ac_file" || continue;
3387   case $ac_file in
3388     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3389     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3390        break;;
3391   esac
3392 done
3393 else
3394   $as_echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "cannot compute suffix of object files: cannot compile
3400 See \`config.log' for more details" "$LINENO" 5; }
3401 fi
3402 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3405 $as_echo "$ac_cv_objext" >&6; }
3406 OBJEXT=$ac_cv_objext
3407 ac_objext=$OBJEXT
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3409 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3410 if ${ac_cv_c_compiler_gnu+:} false; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h.  */
3415
3416 int
3417 main ()
3418 {
3419 #ifndef __GNUC__
3420        choke me
3421 #endif
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 if ac_fn_c_try_compile "$LINENO"; then :
3428   ac_compiler_gnu=yes
3429 else
3430   ac_compiler_gnu=no
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3437 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3438 if test $ac_compiler_gnu = yes; then
3439   GCC=yes
3440 else
3441   GCC=
3442 fi
3443 ac_test_CFLAGS=${CFLAGS+set}
3444 ac_save_CFLAGS=$CFLAGS
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3446 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3447 if ${ac_cv_prog_cc_g+:} false; then :
3448   $as_echo_n "(cached) " >&6
3449 else
3450   ac_save_c_werror_flag=$ac_c_werror_flag
3451    ac_c_werror_flag=yes
3452    ac_cv_prog_cc_g=no
3453    CFLAGS="-g"
3454    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h.  */
3456
3457 int
3458 main ()
3459 {
3460
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466   ac_cv_prog_cc_g=yes
3467 else
3468   CFLAGS=""
3469       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481
3482 else
3483   ac_c_werror_flag=$ac_save_c_werror_flag
3484          CFLAGS="-g"
3485          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497   ac_cv_prog_cc_g=yes
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 fi
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504    ac_c_werror_flag=$ac_save_c_werror_flag
3505 fi
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3507 $as_echo "$ac_cv_prog_cc_g" >&6; }
3508 if test "$ac_test_CFLAGS" = set; then
3509   CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511   if test "$GCC" = yes; then
3512     CFLAGS="-g -O2"
3513   else
3514     CFLAGS="-g"
3515   fi
3516 else
3517   if test "$GCC" = yes; then
3518     CFLAGS="-O2"
3519   else
3520     CFLAGS=
3521   fi
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3524 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3525 if ${ac_cv_prog_cc_c89+:} false; then :
3526   $as_echo_n "(cached) " >&6
3527 else
3528   ac_cv_prog_cc_c89=no
3529 ac_save_CC=$CC
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h.  */
3532 #include <stdarg.h>
3533 #include <stdio.h>
3534 struct stat;
3535 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3536 struct buf { int x; };
3537 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3538 static char *e (p, i)
3539      char **p;
3540      int i;
3541 {
3542   return p[i];
3543 }
3544 static char *f (char * (*g) (char **, int), char **p, ...)
3545 {
3546   char *s;
3547   va_list v;
3548   va_start (v,p);
3549   s = g (p, va_arg (v,int));
3550   va_end (v);
3551   return s;
3552 }
3553
3554 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3555    function prototypes and stuff, but not '\xHH' hex character constants.
3556    These don't provoke an error unfortunately, instead are silently treated
3557    as 'x'.  The following induces an error, until -std is added to get
3558    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3559    array size at least.  It's necessary to write '\x00'==0 to get something
3560    that's true only with -std.  */
3561 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3562
3563 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3564    inside strings and character constants.  */
3565 #define FOO(x) 'x'
3566 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3567
3568 int test (int i, double x);
3569 struct s1 {int (*f) (int a);};
3570 struct s2 {int (*f) (double a);};
3571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3572 int argc;
3573 char **argv;
3574 int
3575 main ()
3576 {
3577 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3583         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3584 do
3585   CC="$ac_save_CC $ac_arg"
3586   if ac_fn_c_try_compile "$LINENO"; then :
3587   ac_cv_prog_cc_c89=$ac_arg
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext
3590   test "x$ac_cv_prog_cc_c89" != "xno" && break
3591 done
3592 rm -f conftest.$ac_ext
3593 CC=$ac_save_CC
3594
3595 fi
3596 # AC_CACHE_VAL
3597 case "x$ac_cv_prog_cc_c89" in
3598   x)
3599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3600 $as_echo "none needed" >&6; } ;;
3601   xno)
3602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3603 $as_echo "unsupported" >&6; } ;;
3604   *)
3605     CC="$CC $ac_cv_prog_cc_c89"
3606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3607 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3608 esac
3609 if test "x$ac_cv_prog_cc_c89" != xno; then :
3610
3611 fi
3612
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3621 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3622 if ${ac_cv_lib_dl_dlopen+:} false; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   ac_check_lib_save_LIBS=$LIBS
3626 LIBS="-ldl  $LIBS"
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h.  */
3629
3630 /* Override any GCC internal prototype to avoid an error.
3631    Use char because int might match the return type of a GCC
3632    builtin and then its argument prototype would still apply.  */
3633 #ifdef __cplusplus
3634 extern "C"
3635 #endif
3636 char dlopen ();
3637 int
3638 main ()
3639 {
3640 return dlopen ();
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_link "$LINENO"; then :
3646   ac_cv_lib_dl_dlopen=yes
3647 else
3648   ac_cv_lib_dl_dlopen=no
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext \
3651     conftest$ac_exeext conftest.$ac_ext
3652 LIBS=$ac_check_lib_save_LIBS
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3655 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3656 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3657   DLOPEN_LIB=-ldl
3658
3659 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3660
3661 fi
3662
3663
3664 WITH_DIET_LIBC=
3665
3666 # Check whether --with-diet-libc was given.
3667 if test "${with_diet_libc+set}" = set; then :
3668   withval=$with_diet_libc; CC="diet cc -nostdinc"
3669 WITH_DIET_LIBC=yes
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3671 $as_echo "CC=$CC" >&6; }
3672 fi
3673
3674 # Check whether --with-cc was given.
3675 if test "${with_cc+set}" = set; then :
3676   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3677 fi
3678
3679
3680 # Check whether --with-ccopts was given.
3681 if test "${with_ccopts+set}" = set; then :
3682   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3683 fi
3684
3685
3686 # Check whether --with-ldopts was given.
3687 if test "${with_ldopts+set}" = set; then :
3688   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3689 fi
3690
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 if test -n "$ac_tool_prefix"; then
3697   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3698 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CC+:} false; then :
3702   $as_echo_n "(cached) " >&6
3703 else
3704   if test -n "$CC"; then
3705   ac_cv_prog_CC="$CC" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712     for ac_exec_ext in '' $ac_executable_extensions; do
3713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719   done
3720 IFS=$as_save_IFS
3721
3722 fi
3723 fi
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3728 else
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 fi
3732
3733
3734 fi
3735 if test -z "$ac_cv_prog_CC"; then
3736   ac_ct_CC=$CC
3737   # Extract the first word of "gcc", so it can be a program name with args.
3738 set dummy gcc; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if test -n "$ac_ct_CC"; then
3745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754     ac_cv_prog_ac_ct_CC="gcc"
3755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756     break 2
3757   fi
3758 done
3759   done
3760 IFS=$as_save_IFS
3761
3762 fi
3763 fi
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3768 else
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 fi
3772
3773   if test "x$ac_ct_CC" = x; then
3774     CC=""
3775   else
3776     case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3781 esac
3782     CC=$ac_ct_CC
3783   fi
3784 else
3785   CC="$ac_cv_prog_CC"
3786 fi
3787
3788 if test -z "$CC"; then
3789           if test -n "$ac_tool_prefix"; then
3790     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3791 set dummy ${ac_tool_prefix}cc; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_prog_CC+:} false; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   if test -n "$CC"; then
3798   ac_cv_prog_CC="$CC" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807     ac_cv_prog_CC="${ac_tool_prefix}cc"
3808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812   done
3813 IFS=$as_save_IFS
3814
3815 fi
3816 fi
3817 CC=$ac_cv_prog_CC
3818 if test -n "$CC"; then
3819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820 $as_echo "$CC" >&6; }
3821 else
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3824 fi
3825
3826
3827   fi
3828 fi
3829 if test -z "$CC"; then
3830   # Extract the first word of "cc", so it can be a program name with args.
3831 set dummy cc; ac_word=$2
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 $as_echo_n "checking for $ac_word... " >&6; }
3834 if ${ac_cv_prog_CC+:} false; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   if test -n "$CC"; then
3838   ac_cv_prog_CC="$CC" # Let the user override the test.
3839 else
3840   ac_prog_rejected=no
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846     for ac_exec_ext in '' $ac_executable_extensions; do
3847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3849        ac_prog_rejected=yes
3850        continue
3851      fi
3852     ac_cv_prog_CC="cc"
3853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854     break 2
3855   fi
3856 done
3857   done
3858 IFS=$as_save_IFS
3859
3860 if test $ac_prog_rejected = yes; then
3861   # We found a bogon in the path, so make sure we never use it.
3862   set dummy $ac_cv_prog_CC
3863   shift
3864   if test $# != 0; then
3865     # We chose a different compiler from the bogus one.
3866     # However, it has the same basename, so the bogon will be chosen
3867     # first if we set CC to just the basename; use the full file name.
3868     shift
3869     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3870   fi
3871 fi
3872 fi
3873 fi
3874 CC=$ac_cv_prog_CC
3875 if test -n "$CC"; then
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3878 else
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884 fi
3885 if test -z "$CC"; then
3886   if test -n "$ac_tool_prefix"; then
3887   for ac_prog in cl.exe
3888   do
3889     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_CC+:} false; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if test -n "$CC"; then
3897   ac_cv_prog_CC="$CC" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908     break 2
3909   fi
3910 done
3911   done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 CC=$ac_cv_prog_CC
3917 if test -n "$CC"; then
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3920 else
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926     test -n "$CC" && break
3927   done
3928 fi
3929 if test -z "$CC"; then
3930   ac_ct_CC=$CC
3931   for ac_prog in cl.exe
3932 do
3933   # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   if test -n "$ac_ct_CC"; then
3941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948     for ac_exec_ext in '' $ac_executable_extensions; do
3949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950     ac_cv_prog_ac_ct_CC="$ac_prog"
3951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952     break 2
3953   fi
3954 done
3955   done
3956 IFS=$as_save_IFS
3957
3958 fi
3959 fi
3960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3961 if test -n "$ac_ct_CC"; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3963 $as_echo "$ac_ct_CC" >&6; }
3964 else
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 fi
3968
3969
3970   test -n "$ac_ct_CC" && break
3971 done
3972
3973   if test "x$ac_ct_CC" = x; then
3974     CC=""
3975   else
3976     case $cross_compiling:$ac_tool_warned in
3977 yes:)
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980 ac_tool_warned=yes ;;
3981 esac
3982     CC=$ac_ct_CC
3983   fi
3984 fi
3985
3986 fi
3987
3988
3989 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "no acceptable C compiler found in \$PATH
3992 See \`config.log' for more details" "$LINENO" 5; }
3993
3994 # Provide some information about the compiler.
3995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3996 set X $ac_compile
3997 ac_compiler=$2
3998 for ac_option in --version -v -V -qversion; do
3999   { { ac_try="$ac_compiler $ac_option >&5"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4007   ac_status=$?
4008   if test -s conftest.err; then
4009     sed '10a\
4010 ... rest of stderr output deleted ...
4011          10q' conftest.err >conftest.er1
4012     cat conftest.er1 >&5
4013   fi
4014   rm -f conftest.er1 conftest.err
4015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016   test $ac_status = 0; }
4017 done
4018
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4020 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4021 if ${ac_cv_c_compiler_gnu+:} false; then :
4022   $as_echo_n "(cached) " >&6
4023 else
4024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026
4027 int
4028 main ()
4029 {
4030 #ifndef __GNUC__
4031        choke me
4032 #endif
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039   ac_compiler_gnu=yes
4040 else
4041   ac_compiler_gnu=no
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4045
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4048 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4049 if test $ac_compiler_gnu = yes; then
4050   GCC=yes
4051 else
4052   GCC=
4053 fi
4054 ac_test_CFLAGS=${CFLAGS+set}
4055 ac_save_CFLAGS=$CFLAGS
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4057 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4058 if ${ac_cv_prog_cc_g+:} false; then :
4059   $as_echo_n "(cached) " >&6
4060 else
4061   ac_save_c_werror_flag=$ac_c_werror_flag
4062    ac_c_werror_flag=yes
4063    ac_cv_prog_cc_g=no
4064    CFLAGS="-g"
4065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067
4068 int
4069 main ()
4070 {
4071
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077   ac_cv_prog_cc_g=yes
4078 else
4079   CFLAGS=""
4080       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082
4083 int
4084 main ()
4085 {
4086
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092
4093 else
4094   ac_c_werror_flag=$ac_save_c_werror_flag
4095          CFLAGS="-g"
4096          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h.  */
4098
4099 int
4100 main ()
4101 {
4102
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108   ac_cv_prog_cc_g=yes
4109 fi
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 fi
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115    ac_c_werror_flag=$ac_save_c_werror_flag
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4118 $as_echo "$ac_cv_prog_cc_g" >&6; }
4119 if test "$ac_test_CFLAGS" = set; then
4120   CFLAGS=$ac_save_CFLAGS
4121 elif test $ac_cv_prog_cc_g = yes; then
4122   if test "$GCC" = yes; then
4123     CFLAGS="-g -O2"
4124   else
4125     CFLAGS="-g"
4126   fi
4127 else
4128   if test "$GCC" = yes; then
4129     CFLAGS="-O2"
4130   else
4131     CFLAGS=
4132   fi
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4135 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4136 if ${ac_cv_prog_cc_c89+:} false; then :
4137   $as_echo_n "(cached) " >&6
4138 else
4139   ac_cv_prog_cc_c89=no
4140 ac_save_CC=$CC
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h.  */
4143 #include <stdarg.h>
4144 #include <stdio.h>
4145 struct stat;
4146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4147 struct buf { int x; };
4148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4149 static char *e (p, i)
4150      char **p;
4151      int i;
4152 {
4153   return p[i];
4154 }
4155 static char *f (char * (*g) (char **, int), char **p, ...)
4156 {
4157   char *s;
4158   va_list v;
4159   va_start (v,p);
4160   s = g (p, va_arg (v,int));
4161   va_end (v);
4162   return s;
4163 }
4164
4165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4166    function prototypes and stuff, but not '\xHH' hex character constants.
4167    These don't provoke an error unfortunately, instead are silently treated
4168    as 'x'.  The following induces an error, until -std is added to get
4169    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4170    array size at least.  It's necessary to write '\x00'==0 to get something
4171    that's true only with -std.  */
4172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4173
4174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4175    inside strings and character constants.  */
4176 #define FOO(x) 'x'
4177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4178
4179 int test (int i, double x);
4180 struct s1 {int (*f) (int a);};
4181 struct s2 {int (*f) (double a);};
4182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4183 int argc;
4184 char **argv;
4185 int
4186 main ()
4187 {
4188 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4194         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4195 do
4196   CC="$ac_save_CC $ac_arg"
4197   if ac_fn_c_try_compile "$LINENO"; then :
4198   ac_cv_prog_cc_c89=$ac_arg
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext
4201   test "x$ac_cv_prog_cc_c89" != "xno" && break
4202 done
4203 rm -f conftest.$ac_ext
4204 CC=$ac_save_CC
4205
4206 fi
4207 # AC_CACHE_VAL
4208 case "x$ac_cv_prog_cc_c89" in
4209   x)
4210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4211 $as_echo "none needed" >&6; } ;;
4212   xno)
4213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214 $as_echo "unsupported" >&6; } ;;
4215   *)
4216     CC="$CC $ac_cv_prog_cc_c89"
4217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4218 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4219 esac
4220 if test "x$ac_cv_prog_cc_c89" != xno; then :
4221
4222 fi
4223
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230 if test "$GCC" = yes; then
4231    RDYNAMIC="-rdynamic"
4232
4233 fi
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4240 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4241 # On Suns, sometimes $CPP names a directory.
4242 if test -n "$CPP" && test -d "$CPP"; then
4243   CPP=
4244 fi
4245 if test -z "$CPP"; then
4246   if ${ac_cv_prog_CPP+:} false; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249       # Double quotes because CPP needs to be expanded
4250     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4251     do
4252       ac_preproc_ok=false
4253 for ac_c_preproc_warn_flag in '' yes
4254 do
4255   # Use a header file that comes with gcc, so configuring glibc
4256   # with a fresh cross-compiler works.
4257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258   # <limits.h> exists even on freestanding compilers.
4259   # On the NeXT, cc -E runs the code through the compiler's parser,
4260   # not just through cpp. "Syntax error" is here to catch this case.
4261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h.  */
4263 #ifdef __STDC__
4264 # include <limits.h>
4265 #else
4266 # include <assert.h>
4267 #endif
4268                      Syntax error
4269 _ACEOF
4270 if ac_fn_c_try_cpp "$LINENO"; then :
4271
4272 else
4273   # Broken: fails on valid input.
4274 continue
4275 fi
4276 rm -f conftest.err conftest.i conftest.$ac_ext
4277
4278   # OK, works on sane cases.  Now check whether nonexistent headers
4279   # can be detected and how.
4280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h.  */
4282 #include <ac_nonexistent.h>
4283 _ACEOF
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285   # Broken: success on invalid input.
4286 continue
4287 else
4288   # Passes both tests.
4289 ac_preproc_ok=:
4290 break
4291 fi
4292 rm -f conftest.err conftest.i conftest.$ac_ext
4293
4294 done
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.i conftest.err conftest.$ac_ext
4297 if $ac_preproc_ok; then :
4298   break
4299 fi
4300
4301     done
4302     ac_cv_prog_CPP=$CPP
4303
4304 fi
4305   CPP=$ac_cv_prog_CPP
4306 else
4307   ac_cv_prog_CPP=$CPP
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4310 $as_echo "$CPP" >&6; }
4311 ac_preproc_ok=false
4312 for ac_c_preproc_warn_flag in '' yes
4313 do
4314   # Use a header file that comes with gcc, so configuring glibc
4315   # with a fresh cross-compiler works.
4316   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317   # <limits.h> exists even on freestanding compilers.
4318   # On the NeXT, cc -E runs the code through the compiler's parser,
4319   # not just through cpp. "Syntax error" is here to catch this case.
4320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h.  */
4322 #ifdef __STDC__
4323 # include <limits.h>
4324 #else
4325 # include <assert.h>
4326 #endif
4327                      Syntax error
4328 _ACEOF
4329 if ac_fn_c_try_cpp "$LINENO"; then :
4330
4331 else
4332   # Broken: fails on valid input.
4333 continue
4334 fi
4335 rm -f conftest.err conftest.i conftest.$ac_ext
4336
4337   # OK, works on sane cases.  Now check whether nonexistent headers
4338   # can be detected and how.
4339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h.  */
4341 #include <ac_nonexistent.h>
4342 _ACEOF
4343 if ac_fn_c_try_cpp "$LINENO"; then :
4344   # Broken: success on invalid input.
4345 continue
4346 else
4347   # Passes both tests.
4348 ac_preproc_ok=:
4349 break
4350 fi
4351 rm -f conftest.err conftest.i conftest.$ac_ext
4352
4353 done
4354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355 rm -f conftest.i conftest.err conftest.$ac_ext
4356 if $ac_preproc_ok; then :
4357
4358 else
4359   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4362 See \`config.log' for more details" "$LINENO" 5; }
4363 fi
4364
4365 ac_ext=c
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4372 $as_echo_n "checking for additional special compiler flags... " >&6; }
4373 if test "$GCC" = yes
4374 then
4375     case "$host_cpu" in
4376         alpha)          addcflags="-mieee" ;;
4377     esac
4378 fi
4379 if test "x$addcflags" != x
4380 then
4381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4382 $as_echo "$addcflags" >&6; }
4383     CFLAGS="$addcflags $CFLAGS"
4384 else
4385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4386 $as_echo "(none)" >&6; }
4387 fi
4388 LIB_EXT=.a
4389 STATIC_LIB_EXT=.a
4390 PROFILED_LIB_EXT=.a
4391
4392 # Check whether --with-root-prefix was given.
4393 if test "${with_root_prefix+set}" = set; then :
4394   withval=$with_root_prefix; root_prefix=$withval
4395 else
4396   root_prefix=NONE
4397 fi
4398 # Check whether --enable-maintainer-mode was given.
4399 if test "${enable_maintainer_mode+set}" = set; then :
4400   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4401 then
4402         MAINTAINER_CMT=#
4403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4404 $as_echo "Disabling maintainer mode" >&6; }
4405 else
4406         MAINTAINER_CMT=
4407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4408 $as_echo "Enabling maintainer mode" >&6; }
4409 fi
4410
4411 else
4412   MAINTAINER_CMT=#
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4414 $as_echo "Disabling maintainer mode by default" >&6; }
4415
4416 fi
4417
4418
4419 # Check whether --enable-symlink-install was given.
4420 if test "${enable_symlink_install+set}" = set; then :
4421   enableval=$enable_symlink_install; if test "$enableval" = "no"
4422 then
4423         LINK_INSTALL_FLAGS=-f
4424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4425 $as_echo "Disabling symlinks for install" >&6; }
4426 else
4427         LINK_INSTALL_FLAGS=-sf
4428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4429 $as_echo "Enabling symlinks for install" >&6; }
4430 fi
4431
4432 else
4433   LINK_INSTALL_FLAGS=-f
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4435 $as_echo "Disabling symlinks for install by default" >&6; }
4436
4437 fi
4438
4439
4440 relative_symlink_defined=
4441 # Check whether --enable-relative-symlinks was given.
4442 if test "${enable_relative_symlinks+set}" = set; then :
4443   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4444 then
4445         SYMLINK_RELATIVE=
4446         relative_symlink_defined=yes
4447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4448 $as_echo "Disabling relative symlinks for install" >&6; }
4449 else
4450         SYMLINK_RELATIVE=--relative
4451         relative_symlink_defined=yes
4452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4453 $as_echo "Enabling relative symlinks for install" >&6; }
4454 fi
4455 fi
4456
4457 # Check whether --enable-symlink-relative-symlinks was given.
4458 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4459   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4460 then
4461         SYMLINK_RELATIVE=yes
4462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4463 $as_echo "Disabling relative symlinks for install" >&6; }
4464 else
4465         SYMLINK_RELATIVE=--relative
4466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4467 $as_echo "Enabling relative symlinks for install" >&6; }
4468 fi
4469
4470 else
4471   if test -z "$relative_symlink_defined"
4472 then
4473         SYMLINK_RELATIVE=
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4475 $as_echo "Disabling relative symlinks for install by default" >&6; }
4476 fi
4477
4478 fi
4479
4480
4481 # Check whether --enable-symlink-build was given.
4482 if test "${enable_symlink_build+set}" = set; then :
4483   enableval=$enable_symlink_build; if test "$enableval" = "no"
4484 then
4485         LINK_BUILD_FLAGS=
4486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4487 $as_echo "Disabling symlinks for build" >&6; }
4488 else
4489         LINK_BUILD_FLAGS=-s
4490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4491 $as_echo "Enabling symlinks for build" >&6; }
4492 fi
4493
4494 else
4495   LINK_BUILD_FLAGS=
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4497 $as_echo "Disabling symlinks for build by default" >&6; }
4498
4499 fi
4500
4501
4502 # Check whether --enable-verbose-makecmds was given.
4503 if test "${enable_verbose_makecmds+set}" = set; then :
4504   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4505 then
4506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4507 $as_echo "Disabling verbose make commands" >&6; }
4508         E=@echo
4509         ES=echo
4510         Q=@
4511 else
4512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4513 $as_echo "Enabling verbose make commands" >&6; }
4514         E=@\\#
4515         ES=\\#
4516         Q=
4517 fi
4518
4519 else
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4521 $as_echo "Disabling verbose make commands" >&6; }
4522 E=@echo
4523 ES=echo
4524 Q=@
4525
4526 fi
4527
4528
4529
4530
4531 # Check whether --enable-compression was given.
4532 if test "${enable_compression+set}" = set; then :
4533   enableval=$enable_compression; if test "$enableval" = "no"
4534 then
4535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4536 $as_echo "Disabling compression support" >&6; }
4537 else
4538
4539 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4540
4541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4542 $as_echo "Enabling compression support" >&6; }
4543         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4544 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4545 fi
4546
4547 else
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4549 $as_echo "Disabling compression support by default" >&6; }
4550
4551 fi
4552
4553
4554 # Check whether --enable-htree was given.
4555 if test "${enable_htree+set}" = set; then :
4556   enableval=$enable_htree; if test "$enableval" = "no"
4557 then
4558         HTREE_CMT=#
4559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4560 $as_echo "Disabling htree directory support" >&6; }
4561 else
4562         HTREE_CMT=
4563         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4564
4565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4566 $as_echo "Enabling htree directory support" >&6; }
4567 fi
4568
4569 else
4570   HTREE_CMT=
4571 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4574 $as_echo "Enabling htree directory support by default" >&6; }
4575
4576 fi
4577
4578
4579 E2_PKG_CONFIG_STATIC=--static
4580 LDFLAG_DYNAMIC=
4581 PRIVATE_LIBS_CMT=
4582 # Check whether --enable-elf-shlibs was given.
4583 if test "${enable_elf_shlibs+set}" = set; then :
4584   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4585 then
4586         ELF_CMT=#
4587         MAKEFILE_ELF=/dev/null
4588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4589 $as_echo "Disabling ELF shared libraries" >&6; }
4590 else
4591         E2_PKG_CONFIG_STATIC=
4592         ELF_CMT=
4593         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4594         case "$host_os" in
4595         solaris2.*)
4596                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4597         ;;
4598         esac
4599         BINARY_TYPE=elfbin
4600         LIB_EXT=.so
4601         PRIVATE_LIBS_CMT=#
4602         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4604 $as_echo "Enabling ELF shared libraries" >&6; }
4605 fi
4606
4607 else
4608   MAKEFILE_ELF=/dev/null
4609 ELF_CMT=#
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4611 $as_echo "Disabling ELF shared libraries by default" >&6; }
4612
4613 fi
4614
4615
4616
4617 # Check whether --enable-bsd-shlibs was given.
4618 if test "${enable_bsd_shlibs+set}" = set; then :
4619   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4620 then
4621         BSDLIB_CMT=#
4622         MAKEFILE_BSDLIB=/dev/null
4623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4624 $as_echo "Disabling BSD shared libraries" >&6; }
4625 else
4626         E2_PKG_CONFIG_STATIC=
4627         BSDLIB_CMT=
4628         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4629         LIB_EXT=.so
4630         case "$host_os" in
4631         darwin*)
4632                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4633                 LIB_EXT=.dylib
4634         ;;
4635         esac
4636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4637 $as_echo "Enabling BSD shared libraries" >&6; }
4638 fi
4639
4640 else
4641   MAKEFILE_BSDLIB=/dev/null
4642 BSDLIB_CMT=#
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4644 $as_echo "Disabling BSD shared libraries by default" >&6; }
4645
4646 fi
4647
4648
4649
4650 # Check whether --enable-profile was given.
4651 if test "${enable_profile+set}" = set; then :
4652   enableval=$enable_profile; if test "$enableval" = "no"
4653 then
4654         PROFILE_CMT=#
4655         MAKEFILE_PROFILE=/dev/null
4656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4657 $as_echo "Disabling profiling libraries" >&6; }
4658 else
4659         PROFILE_CMT=
4660         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4661         PROFILED_LIB_EXT=_p.a
4662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4663 $as_echo "Building profiling libraries" >&6; }
4664 fi
4665
4666 else
4667   PROFILE_CMT=#
4668 MAKEFILE_PROFILE=/dev/null
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4670 $as_echo "Disabling profiling libraries by default" >&6; }
4671
4672 fi
4673
4674
4675
4676 # Check whether --enable-checker was given.
4677 if test "${enable_checker+set}" = set; then :
4678   enableval=$enable_checker; if test "$enableval" = "no"
4679 then
4680         CHECKER_CMT=#
4681         MAKEFILE_CHECKER=/dev/null
4682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4683 $as_echo "Disabling checker libraries" >&6; }
4684 else
4685         CHECKER_CMT=
4686         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4688 $as_echo "Building checker libraries" >&6; }
4689 fi
4690
4691 else
4692   CHECKER_CMT=#
4693 MAKEFILE_CHECKER=/dev/null
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4695 $as_echo "Disabling checker libraries by default" >&6; }
4696
4697 fi
4698
4699
4700
4701
4702
4703
4704
4705
4706 # Check whether --enable-jbd-debug was given.
4707 if test "${enable_jbd_debug+set}" = set; then :
4708   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4709 then
4710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4711 $as_echo "Disabling journal debugging" >&6; }
4712 else
4713
4714 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4715
4716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4717 $as_echo "Enabling journal debugging" >&6; }
4718 fi
4719
4720 else
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4722 $as_echo "Disabling journal debugging by default" >&6; }
4723
4724 fi
4725
4726 # Check whether --enable-blkid-debug was given.
4727 if test "${enable_blkid_debug+set}" = set; then :
4728   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4729 then
4730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4731 $as_echo "Disabling blkid debugging" >&6; }
4732 else
4733
4734 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4735
4736         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4737 $as_echo "Enabling blkid debugging" >&6; }
4738 fi
4739
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4742 $as_echo "Disabling blkid debugging by default" >&6; }
4743
4744 fi
4745
4746 # Check whether --enable-testio-debug was given.
4747 if test "${enable_testio_debug+set}" = set; then :
4748   enableval=$enable_testio_debug;
4749 if test "$enableval" = "no"
4750 then
4751         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4752 $as_echo "Disabling testio debugging" >&6; }
4753         TEST_IO_CMT="#"
4754 else
4755         TEST_IO_CMT=
4756         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4757
4758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4759 $as_echo "Enabling testio debugging" >&6; }
4760 fi
4761
4762 else
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4764 $as_echo "Enabling testio debugging by default" >&6; }
4765 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4766
4767 TEST_IO_CMT=
4768
4769 fi
4770
4771
4772
4773
4774 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4775         if test -n "$ac_tool_prefix"; then
4776   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4777 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4781   $as_echo_n "(cached) " >&6
4782 else
4783   case $PKG_CONFIG in
4784   [\\/]* | ?:[\\/]*)
4785   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4786   ;;
4787   *)
4788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793     for ac_exec_ext in '' $ac_executable_extensions; do
4794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800   done
4801 IFS=$as_save_IFS
4802
4803   ;;
4804 esac
4805 fi
4806 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4807 if test -n "$PKG_CONFIG"; then
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4809 $as_echo "$PKG_CONFIG" >&6; }
4810 else
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4813 fi
4814
4815
4816 fi
4817 if test -z "$ac_cv_path_PKG_CONFIG"; then
4818   ac_pt_PKG_CONFIG=$PKG_CONFIG
4819   # Extract the first word of "pkg-config", so it can be a program name with args.
4820 set dummy pkg-config; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   case $ac_pt_PKG_CONFIG in
4827   [\\/]* | ?:[\\/]*)
4828   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4829   ;;
4830   *)
4831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836     for ac_exec_ext in '' $ac_executable_extensions; do
4837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840     break 2
4841   fi
4842 done
4843   done
4844 IFS=$as_save_IFS
4845
4846   ;;
4847 esac
4848 fi
4849 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4850 if test -n "$ac_pt_PKG_CONFIG"; then
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4852 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4853 else
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 fi
4857
4858   if test "x$ac_pt_PKG_CONFIG" = x; then
4859     PKG_CONFIG=""
4860   else
4861     case $cross_compiling:$ac_tool_warned in
4862 yes:)
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned=yes ;;
4866 esac
4867     PKG_CONFIG=$ac_pt_PKG_CONFIG
4868   fi
4869 else
4870   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4871 fi
4872
4873 fi
4874 if test -n "$PKG_CONFIG"; then
4875         _pkg_min_version=0.9.0
4876         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4877 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4878         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4879                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880 $as_echo "yes" >&6; }
4881         else
4882                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884                 PKG_CONFIG=""
4885         fi
4886
4887 fi
4888 LIBUUID=
4889 DEPLIBUUID=
4890 STATIC_LIBUUID=
4891 DEPSTATIC_LIBUUID=
4892 PROFILED_LIBUUID=
4893 DEPPROFILED_LIBUUID=
4894 UUID_CMT=
4895 # Check whether --enable-libuuid was given.
4896 if test "${enable_libuuid+set}" = set; then :
4897   enableval=$enable_libuuid; if test "$enableval" = "no"
4898 then
4899         if test -z "$PKG_CONFIG"; then
4900                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4901         fi
4902
4903         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4904 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4905 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4906   $as_echo_n "(cached) " >&6
4907 else
4908   ac_check_lib_save_LIBS=$LIBS
4909 LIBS="-luuid $LIBUUID $LIBS"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h.  */
4912
4913 /* Override any GCC internal prototype to avoid an error.
4914    Use char because int might match the return type of a GCC
4915    builtin and then its argument prototype would still apply.  */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 char uuid_generate ();
4920 int
4921 main ()
4922 {
4923 return uuid_generate ();
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_link "$LINENO"; then :
4929   ac_cv_lib_uuid_uuid_generate=yes
4930 else
4931   ac_cv_lib_uuid_uuid_generate=no
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext \
4934     conftest$ac_exeext conftest.$ac_ext
4935 LIBS=$ac_check_lib_save_LIBS
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4938 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4939 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4940   LIBUUID=`$PKG_CONFIG --libs uuid`;
4941                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4942 else
4943   as_fn_error $? "external uuid library not found" "$LINENO" 5
4944 fi
4945
4946         UUID_CMT=#
4947         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4948 $as_echo "Disabling private uuid library" >&6; }
4949 else
4950         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4951         DEPLIBUUID=$LIBUUID
4952         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4953         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4954         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4955         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4957 $as_echo "Enabling private uuid library" >&6; }
4958 fi
4959
4960 else
4961   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4962 DEPLIBUUID=$LIBUUID
4963 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4964 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4965 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4966 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4968 $as_echo "Enabling private uuid library by default" >&6; }
4969
4970 fi
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4982         if test -n "$ac_tool_prefix"; then
4983   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4984 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   case $PKG_CONFIG in
4991   [\\/]* | ?:[\\/]*)
4992   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4993   ;;
4994   *)
4995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000     for ac_exec_ext in '' $ac_executable_extensions; do
5001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007   done
5008 IFS=$as_save_IFS
5009
5010   ;;
5011 esac
5012 fi
5013 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5014 if test -n "$PKG_CONFIG"; then
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5016 $as_echo "$PKG_CONFIG" >&6; }
5017 else
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 fi
5021
5022
5023 fi
5024 if test -z "$ac_cv_path_PKG_CONFIG"; then
5025   ac_pt_PKG_CONFIG=$PKG_CONFIG
5026   # Extract the first word of "pkg-config", so it can be a program name with args.
5027 set dummy pkg-config; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   case $ac_pt_PKG_CONFIG in
5034   [\\/]* | ?:[\\/]*)
5035   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5036   ;;
5037   *)
5038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043     for ac_exec_ext in '' $ac_executable_extensions; do
5044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047     break 2
5048   fi
5049 done
5050   done
5051 IFS=$as_save_IFS
5052
5053   ;;
5054 esac
5055 fi
5056 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5057 if test -n "$ac_pt_PKG_CONFIG"; then
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5059 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5060 else
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065   if test "x$ac_pt_PKG_CONFIG" = x; then
5066     PKG_CONFIG=""
5067   else
5068     case $cross_compiling:$ac_tool_warned in
5069 yes:)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5073 esac
5074     PKG_CONFIG=$ac_pt_PKG_CONFIG
5075   fi
5076 else
5077   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5078 fi
5079
5080 fi
5081 if test -n "$PKG_CONFIG"; then
5082         _pkg_min_version=0.9.0
5083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5084 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5085         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5086                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5087 $as_echo "yes" >&6; }
5088         else
5089                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5091                 PKG_CONFIG=""
5092         fi
5093
5094 fi
5095 LIBBLKID=
5096 DEPLIBBLKID=
5097 STATIC_LIBBLKID=
5098 DEPSTATIC_LIBBLKID=
5099 PROFILED_LIBBLKID=
5100 DEPPROFILED_LIBBLKID=
5101 BLKID_CMT=
5102
5103 # Check whether --enable-libblkid was given.
5104 if test "${enable_libblkid+set}" = set; then :
5105   enableval=$enable_libblkid; if test "$enableval" = "no"
5106 then
5107         if test -z "$PKG_CONFIG"; then
5108                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5109         fi
5110
5111         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5112 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5113 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-lblkid $LIBBLKID $LIBS"
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h.  */
5120
5121 /* Override any GCC internal prototype to avoid an error.
5122    Use char because int might match the return type of a GCC
5123    builtin and then its argument prototype would still apply.  */
5124 #ifdef __cplusplus
5125 extern "C"
5126 #endif
5127 char blkid_get_cache ();
5128 int
5129 main ()
5130 {
5131 return blkid_get_cache ();
5132   ;
5133   return 0;
5134 }
5135 _ACEOF
5136 if ac_fn_c_try_link "$LINENO"; then :
5137   ac_cv_lib_blkid_blkid_get_cache=yes
5138 else
5139   ac_cv_lib_blkid_blkid_get_cache=no
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext \
5142     conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5146 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5147 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5148   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5149                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5150 else
5151   as_fn_error $? "external blkid library not found" "$LINENO" 5
5152 fi
5153
5154         BLKID_CMT=#
5155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5156 $as_echo "Disabling private blkid library" >&6; }
5157 else
5158         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5159         DEPLIBBLKID=$LIBBLKID
5160         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5161         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5162         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5163         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5164         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5165
5166         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5167 $as_echo "Enabling private blkid library" >&6; }
5168 fi
5169
5170 else
5171   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5172 DEPLIBBLKID=$LIBBLKID
5173 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5174 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5175 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5176 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5177 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5180 $as_echo "Enabling private blkid library by default" >&6; }
5181
5182 fi
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5194         if test -n "$ac_tool_prefix"; then
5195   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202   case $PKG_CONFIG in
5203   [\\/]* | ?:[\\/]*)
5204   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5205   ;;
5206   *)
5207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210   IFS=$as_save_IFS
5211   test -z "$as_dir" && as_dir=.
5212     for ac_exec_ext in '' $ac_executable_extensions; do
5213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216     break 2
5217   fi
5218 done
5219   done
5220 IFS=$as_save_IFS
5221
5222   ;;
5223 esac
5224 fi
5225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5226 if test -n "$PKG_CONFIG"; then
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5228 $as_echo "$PKG_CONFIG" >&6; }
5229 else
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234
5235 fi
5236 if test -z "$ac_cv_path_PKG_CONFIG"; then
5237   ac_pt_PKG_CONFIG=$PKG_CONFIG
5238   # Extract the first word of "pkg-config", so it can be a program name with args.
5239 set dummy pkg-config; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5243   $as_echo_n "(cached) " >&6
5244 else
5245   case $ac_pt_PKG_CONFIG in
5246   [\\/]* | ?:[\\/]*)
5247   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5248   ;;
5249   *)
5250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255     for ac_exec_ext in '' $ac_executable_extensions; do
5256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262   done
5263 IFS=$as_save_IFS
5264
5265   ;;
5266 esac
5267 fi
5268 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5269 if test -n "$ac_pt_PKG_CONFIG"; then
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5271 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5272 else
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275 fi
5276
5277   if test "x$ac_pt_PKG_CONFIG" = x; then
5278     PKG_CONFIG=""
5279   else
5280     case $cross_compiling:$ac_tool_warned in
5281 yes:)
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284 ac_tool_warned=yes ;;
5285 esac
5286     PKG_CONFIG=$ac_pt_PKG_CONFIG
5287   fi
5288 else
5289   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5290 fi
5291
5292 fi
5293 if test -n "$PKG_CONFIG"; then
5294         _pkg_min_version=0.9.0
5295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5296 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5297         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5298                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299 $as_echo "yes" >&6; }
5300         else
5301                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303                 PKG_CONFIG=""
5304         fi
5305
5306 fi
5307
5308 # Check whether --enable-quota was given.
5309 if test "${enable_quota+set}" = set; then :
5310   enableval=$enable_quota; if test "$enableval" = "no"
5311 then
5312         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5313 $as_echo "Disabling quota support" >&6; }
5314 else
5315         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5316
5317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5318 $as_echo "Enabling quota support" >&6; }
5319 fi
5320
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5323 $as_echo "Disabling quota support by default" >&6; }
5324
5325 fi
5326
5327 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5328 DEPLIBQUOTA=$LIBQUOTA
5329 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5330 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5331 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5332 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5333
5334
5335
5336
5337
5338
5339
5340 # Check whether --enable-debugfs was given.
5341 if test "${enable_debugfs+set}" = set; then :
5342   enableval=$enable_debugfs; if test "$enableval" = "no"
5343 then
5344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5345 $as_echo "Disabling debugfs support" >&6; }
5346         DEBUGFS_CMT="#"
5347 else
5348         DEBUGFS_CMT=
5349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5350 $as_echo "Enabling debugfs support" >&6; }
5351 fi
5352
5353 else
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5355 $as_echo "Enabling debugfs support by default" >&6; }
5356 DEBUGFS_CMT=
5357
5358 fi
5359
5360
5361 # Check whether --enable-imager was given.
5362 if test "${enable_imager+set}" = set; then :
5363   enableval=$enable_imager; if test "$enableval" = "no"
5364 then
5365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5366 $as_echo "Disabling e2image support" >&6; }
5367         IMAGER_CMT="#"
5368 else
5369         IMAGER_CMT=
5370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5371 $as_echo "Enabling e2image support" >&6; }
5372 fi
5373
5374 else
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5376 $as_echo "Enabling e2image support by default" >&6; }
5377 IMAGER_CMT=
5378
5379 fi
5380
5381
5382 # Check whether --enable-resizer was given.
5383 if test "${enable_resizer+set}" = set; then :
5384   enableval=$enable_resizer; if test "$enableval" = "no"
5385 then
5386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5387 $as_echo "Disabling e2resize support" >&6; }
5388         RESIZER_CMT="#"
5389 else
5390         RESIZER_CMT=
5391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5392 $as_echo "Enabling e2resize support" >&6; }
5393 fi
5394
5395 else
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5397 $as_echo "Enabling e2resize support by default" >&6; }
5398 RESIZER_CMT=
5399
5400 fi
5401
5402
5403 # Check whether --enable-defrag was given.
5404 if test "${enable_defrag+set}" = set; then :
5405   enableval=$enable_defrag; if test "$enableval" = "no"
5406 then
5407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5408 $as_echo "Disabling e4defrag support" >&6; }
5409         DEFRAG_CMT="#"
5410 else
5411         DEFRAG_CMT=
5412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5413 $as_echo "Enabling e4defrag support" >&6; }
5414 fi
5415
5416 else
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5418 $as_echo "Enabling e4defrag support by default" >&6; }
5419 DEFRAG_CMT=
5420
5421 fi
5422
5423
5424 # Check whether --enable-fsck was given.
5425 if test "${enable_fsck+set}" = set; then :
5426   enableval=$enable_fsck; if test "$enableval" = "no"
5427 then
5428         FSCK_PROG='' FSCK_MAN=''
5429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5430 $as_echo "Not building fsck wrapper" >&6; }
5431 else
5432         FSCK_PROG=fsck FSCK_MAN=fsck.8
5433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5434 $as_echo "Building fsck wrapper" >&6; }
5435 fi
5436
5437 else
5438   case "$host_os" in
5439   gnu*)
5440     FSCK_PROG='' FSCK_MAN=''
5441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5442 $as_echo "Not building fsck wrapper by default" >&6; }
5443     ;;
5444   *)
5445     FSCK_PROG=fsck FSCK_MAN=fsck.8
5446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5447 $as_echo "Building fsck wrapper by default" >&6; }
5448 esac
5449
5450 fi
5451
5452
5453
5454 # Check whether --enable-e2initrd-helper was given.
5455 if test "${enable_e2initrd_helper+set}" = set; then :
5456   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5457 then
5458         E2INITRD_PROG='' E2INITRD_MAN=''
5459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5460 $as_echo "Not building e2initrd helper" >&6; }
5461 else
5462         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5464 $as_echo "Building e2initrd helper" >&6; }
5465 fi
5466
5467 else
5468   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5470 $as_echo "Building e2initrd helper by default" >&6; }
5471
5472 fi
5473
5474
5475
5476 # Check whether --enable-tls was given.
5477 if test "${enable_tls+set}" = set; then :
5478   enableval=$enable_tls; if test "$enableval" = "no"
5479 then
5480         try_tls=""
5481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5482 $as_echo "Disabling thread local support" >&6; }
5483 else
5484         try_tls="yes"
5485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5486 $as_echo "Enabling thread local support" >&6; }
5487 fi
5488
5489 else
5490   if test -n "$WITH_DIET_LIBC"
5491 then
5492         try_tls=""
5493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5494 $as_echo "Diet libc does not support thread local support" >&6; }
5495 else
5496         try_tls="yes"
5497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5498 $as_echo "Try using thread local support by default" >&6; }
5499 fi
5500
5501 fi
5502
5503 if test "$try_tls" = "yes"
5504 then
5505
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5507 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5508   if ${ac_cv_tls+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511
5512     ax_tls_keywords="__thread __declspec(thread) none"
5513     for ax_tls_keyword in $ax_tls_keywords; do
5514        case $ax_tls_keyword in
5515           none) ac_cv_tls=none ; break ;;
5516           *)
5517              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h.  */
5519 #include <stdlib.h>
5520                  static void
5521                  foo(void) {
5522                  static  $ax_tls_keyword  int bar;
5523                  exit(1);
5524                  }
5525 int
5526 main ()
5527 {
5528
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"; then :
5534   ac_cv_tls=$ax_tls_keyword ; break
5535 else
5536   ac_cv_tls=none
5537
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540           esac
5541     done
5542
5543 fi
5544
5545
5546   if test "$ac_cv_tls" != "none"; then
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define TLS $ac_cv_tls
5550 _ACEOF
5551
5552   fi
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5554 $as_echo "$ac_cv_tls" >&6; }
5555
5556 fi
5557
5558 # Check whether --enable-uuidd was given.
5559 if test "${enable_uuidd+set}" = set; then :
5560   enableval=$enable_uuidd; if test "$enableval" = "no"
5561 then
5562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5563 $as_echo "Not building uuidd" >&6; }
5564         UUIDD_CMT="#"
5565 else
5566         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5567
5568         UUIDD_CMT=""
5569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5570 $as_echo "Building uuidd" >&6; }
5571 fi
5572
5573 else
5574   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5575
5576 UUIDD_CMT=""
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5578 $as_echo "Building uuidd by default" >&6; }
5579
5580 fi
5581
5582
5583
5584 # Check whether --enable-mmp was given.
5585 if test "${enable_mmp+set}" = set; then :
5586   enableval=$enable_mmp; if test "$enableval" = "no"
5587 then
5588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5589 $as_echo "Disabling mmp support" >&6; }
5590 else
5591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5592 $as_echo "Enabling mmp support" >&6; }
5593         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5594
5595 fi
5596
5597 else
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5599 $as_echo "Enabling mmp support by default" >&6; }
5600 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5601
5602
5603 fi
5604
5605
5606 # Check whether --enable-bmap-stats was given.
5607 if test "${enable_bmap_stats+set}" = set; then :
5608   enableval=$enable_bmap_stats; if test "$enableval" = "no"
5609 then
5610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5611 $as_echo "Disabling bitmap statistics support" >&6; }
5612 else
5613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5614 $as_echo "Enabling bitmap statistics support" >&6; }
5615         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5616
5617 fi
5618
5619 else
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5621 $as_echo "Enabling bitmap statistics support by default" >&6; }
5622 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5623
5624
5625 fi
5626
5627
5628 # Check whether --enable-bmap-stats-ops was given.
5629 if test "${enable_bmap_stats_ops+set}" = set; then :
5630   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5631 then
5632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5633 $as_echo "Disabling additional bitmap statistics" >&6; }
5634 else
5635                 if test "x${enable_bmap_stats}" = "xno"; then :
5636   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5638 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5639 See \`config.log' for more details" "$LINENO" 5; }
5640 fi
5641
5642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5643 $as_echo "Enabling additional bitmap statistics" >&6; }
5644         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5645
5646 fi
5647
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5650 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5651
5652 fi
5653
5654 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5655
5656 GETTEXT_PACKAGE=e2fsprogs
5657 PACKAGE=e2fsprogs
5658 VERSION="$E2FSPROGS_VERSION"
5659 VERSION=0.14.1
5660
5661 cat >>confdefs.h <<_ACEOF
5662 #define PACKAGE "$PACKAGE"
5663 _ACEOF
5664
5665
5666 cat >>confdefs.h <<_ACEOF
5667 #define VERSION "$VERSION"
5668 _ACEOF
5669
5670
5671
5672
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5675 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5676 set x ${MAKE-make}
5677 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5678 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   cat >conftest.make <<\_ACEOF
5682 SHELL = /bin/sh
5683 all:
5684         @echo '@@@%%%=$(MAKE)=@@@%%%'
5685 _ACEOF
5686 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5688   *@@@%%%=?*=@@@%%%*)
5689     eval ac_cv_prog_make_${ac_make}_set=yes;;
5690   *)
5691     eval ac_cv_prog_make_${ac_make}_set=no;;
5692 esac
5693 rm -f conftest.make
5694 fi
5695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697 $as_echo "yes" >&6; }
5698   SET_MAKE=
5699 else
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702   SET_MAKE="MAKE=${MAKE-make}"
5703 fi
5704
5705 # Find a good install program.  We prefer a C program (faster),
5706 # so one script is as good as another.  But avoid the broken or
5707 # incompatible versions:
5708 # SysV /etc/install, /usr/sbin/install
5709 # SunOS /usr/etc/install
5710 # IRIX /sbin/install
5711 # AIX /bin/install
5712 # AmigaOS /C/install, which installs bootblocks on floppy discs
5713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5716 # OS/2's system install, which has a completely different semantic
5717 # ./install, which can be erroneously created by make from ./install.sh.
5718 # Reject install programs that cannot install multiple files.
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5720 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5721 if test -z "$INSTALL"; then
5722 if ${ac_cv_path_install+:} false; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728   IFS=$as_save_IFS
5729   test -z "$as_dir" && as_dir=.
5730     # Account for people who put trailing slashes in PATH elements.
5731 case $as_dir/ in #((
5732   ./ | .// | /[cC]/* | \
5733   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5734   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5735   /usr/ucb/* ) ;;
5736   *)
5737     # OSF1 and SCO ODT 3.0 have their own names for install.
5738     # Don't use installbsd from OSF since it installs stuff as root
5739     # by default.
5740     for ac_prog in ginstall scoinst install; do
5741       for ac_exec_ext in '' $ac_executable_extensions; do
5742         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5743           if test $ac_prog = install &&
5744             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5745             # AIX install.  It has an incompatible calling convention.
5746             :
5747           elif test $ac_prog = install &&
5748             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5749             # program-specific install script used by HP pwplus--don't use.
5750             :
5751           else
5752             rm -rf conftest.one conftest.two conftest.dir
5753             echo one > conftest.one
5754             echo two > conftest.two
5755             mkdir conftest.dir
5756             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5757               test -s conftest.one && test -s conftest.two &&
5758               test -s conftest.dir/conftest.one &&
5759               test -s conftest.dir/conftest.two
5760             then
5761               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5762               break 3
5763             fi
5764           fi
5765         fi
5766       done
5767     done
5768     ;;
5769 esac
5770
5771   done
5772 IFS=$as_save_IFS
5773
5774 rm -rf conftest.one conftest.two conftest.dir
5775
5776 fi
5777   if test "${ac_cv_path_install+set}" = set; then
5778     INSTALL=$ac_cv_path_install
5779   else
5780     # As a last resort, use the slow shell script.  Don't cache a
5781     # value for INSTALL within a source directory, because that will
5782     # break other packages using the cache if that directory is
5783     # removed, or if the value is a relative name.
5784     INSTALL=$ac_install_sh
5785   fi
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5788 $as_echo "$INSTALL" >&6; }
5789
5790 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5791 # It thinks the first close brace ends the variable substitution.
5792 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5793
5794 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5795
5796 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5797
5798
5799         MKINSTALLDIRS=
5800   if test -n "$ac_aux_dir"; then
5801     case "$ac_aux_dir" in
5802       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5803       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5804     esac
5805   fi
5806   if test -z "$MKINSTALLDIRS"; then
5807     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5808   fi
5809
5810
5811
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5813 $as_echo_n "checking whether NLS is requested... " >&6; }
5814     # Check whether --enable-nls was given.
5815 if test "${enable_nls+set}" = set; then :
5816   enableval=$enable_nls; USE_NLS=$enableval
5817 else
5818   USE_NLS=yes
5819 fi
5820
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5822 $as_echo "$USE_NLS" >&6; }
5823
5824
5825
5826
5827
5828
5829 # Prepare PATH_SEPARATOR.
5830 # The user is always right.
5831 if test "${PATH_SEPARATOR+set}" != set; then
5832   echo "#! /bin/sh" >conf$$.sh
5833   echo  "exit 0"   >>conf$$.sh
5834   chmod +x conf$$.sh
5835   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5836     PATH_SEPARATOR=';'
5837   else
5838     PATH_SEPARATOR=:
5839   fi
5840   rm -f conf$$.sh
5841 fi
5842
5843 # Find out how to test for executable files. Don't use a zero-byte file,
5844 # as systems may use methods other than mode bits to determine executability.
5845 cat >conf$$.file <<_ASEOF
5846 #! /bin/sh
5847 exit 0
5848 _ASEOF
5849 chmod +x conf$$.file
5850 if test -x conf$$.file >/dev/null 2>&1; then
5851   ac_executable_p="test -x"
5852 else
5853   ac_executable_p="test -f"
5854 fi
5855 rm -f conf$$.file
5856
5857 # Extract the first word of "msgfmt", so it can be a program name with args.
5858 set dummy msgfmt; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_path_MSGFMT+:} false; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   case "$MSGFMT" in
5865   [\\/]* | ?:[\\/]*)
5866     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5867     ;;
5868   *)
5869     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5870     for ac_dir in $PATH; do
5871       IFS="$ac_save_IFS"
5872       test -z "$ac_dir" && ac_dir=.
5873       for ac_exec_ext in '' $ac_executable_extensions; do
5874         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5875           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5876      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5877             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5878             break 2
5879           fi
5880         fi
5881       done
5882     done
5883     IFS="$ac_save_IFS"
5884   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5885     ;;
5886 esac
5887 fi
5888 MSGFMT="$ac_cv_path_MSGFMT"
5889 if test "$MSGFMT" != ":"; then
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5891 $as_echo "$MSGFMT" >&6; }
5892 else
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896
5897   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5898 set dummy gmsgfmt; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_path_GMSGFMT+:} false; then :
5902   $as_echo_n "(cached) " >&6
5903 else
5904   case $GMSGFMT in
5905   [\\/]* | ?:[\\/]*)
5906   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5907   ;;
5908   *)
5909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912   IFS=$as_save_IFS
5913   test -z "$as_dir" && as_dir=.
5914     for ac_exec_ext in '' $ac_executable_extensions; do
5915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918     break 2
5919   fi
5920 done
5921   done
5922 IFS=$as_save_IFS
5923
5924   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5925   ;;
5926 esac
5927 fi
5928 GMSGFMT=$ac_cv_path_GMSGFMT
5929 if test -n "$GMSGFMT"; then
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5931 $as_echo "$GMSGFMT" >&6; }
5932 else
5933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936
5937
5938
5939
5940 # Prepare PATH_SEPARATOR.
5941 # The user is always right.
5942 if test "${PATH_SEPARATOR+set}" != set; then
5943   echo "#! /bin/sh" >conf$$.sh
5944   echo  "exit 0"   >>conf$$.sh
5945   chmod +x conf$$.sh
5946   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5947     PATH_SEPARATOR=';'
5948   else
5949     PATH_SEPARATOR=:
5950   fi
5951   rm -f conf$$.sh
5952 fi
5953
5954 # Find out how to test for executable files. Don't use a zero-byte file,
5955 # as systems may use methods other than mode bits to determine executability.
5956 cat >conf$$.file <<_ASEOF
5957 #! /bin/sh
5958 exit 0
5959 _ASEOF
5960 chmod +x conf$$.file
5961 if test -x conf$$.file >/dev/null 2>&1; then
5962   ac_executable_p="test -x"
5963 else
5964   ac_executable_p="test -f"
5965 fi
5966 rm -f conf$$.file
5967
5968 # Extract the first word of "xgettext", so it can be a program name with args.
5969 set dummy xgettext; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_path_XGETTEXT+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   case "$XGETTEXT" in
5976   [\\/]* | ?:[\\/]*)
5977     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5978     ;;
5979   *)
5980     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5981     for ac_dir in $PATH; do
5982       IFS="$ac_save_IFS"
5983       test -z "$ac_dir" && ac_dir=.
5984       for ac_exec_ext in '' $ac_executable_extensions; do
5985         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5986           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5987      (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
5988             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5989             break 2
5990           fi
5991         fi
5992       done
5993     done
5994     IFS="$ac_save_IFS"
5995   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5996     ;;
5997 esac
5998 fi
5999 XGETTEXT="$ac_cv_path_XGETTEXT"
6000 if test "$XGETTEXT" != ":"; then
6001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6002 $as_echo "$XGETTEXT" >&6; }
6003 else
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6006 fi
6007
6008     rm -f messages.po
6009
6010
6011 # Prepare PATH_SEPARATOR.
6012 # The user is always right.
6013 if test "${PATH_SEPARATOR+set}" != set; then
6014   echo "#! /bin/sh" >conf$$.sh
6015   echo  "exit 0"   >>conf$$.sh
6016   chmod +x conf$$.sh
6017   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6018     PATH_SEPARATOR=';'
6019   else
6020     PATH_SEPARATOR=:
6021   fi
6022   rm -f conf$$.sh
6023 fi
6024
6025 # Find out how to test for executable files. Don't use a zero-byte file,
6026 # as systems may use methods other than mode bits to determine executability.
6027 cat >conf$$.file <<_ASEOF
6028 #! /bin/sh
6029 exit 0
6030 _ASEOF
6031 chmod +x conf$$.file
6032 if test -x conf$$.file >/dev/null 2>&1; then
6033   ac_executable_p="test -x"
6034 else
6035   ac_executable_p="test -f"
6036 fi
6037 rm -f conf$$.file
6038
6039 # Extract the first word of "msgmerge", so it can be a program name with args.
6040 set dummy msgmerge; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_path_MSGMERGE+:} false; then :
6044   $as_echo_n "(cached) " >&6
6045 else
6046   case "$MSGMERGE" in
6047   [\\/]* | ?:[\\/]*)
6048     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6049     ;;
6050   *)
6051     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6052     for ac_dir in $PATH; do
6053       IFS="$ac_save_IFS"
6054       test -z "$ac_dir" && ac_dir=.
6055       for ac_exec_ext in '' $ac_executable_extensions; do
6056         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6057           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6058             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6059             break 2
6060           fi
6061         fi
6062       done
6063     done
6064     IFS="$ac_save_IFS"
6065   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6066     ;;
6067 esac
6068 fi
6069 MSGMERGE="$ac_cv_path_MSGMERGE"
6070 if test "$MSGMERGE" != ":"; then
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6072 $as_echo "$MSGMERGE" >&6; }
6073 else
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077
6078
6079       if test "$GMSGFMT" != ":"; then
6080             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6081        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6082       : ;
6083     else
6084       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6086 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6087       GMSGFMT=":"
6088     fi
6089   fi
6090
6091       if test "$XGETTEXT" != ":"; then
6092             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6093        (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
6094       : ;
6095     else
6096       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6097 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6098       XGETTEXT=":"
6099     fi
6100         rm -f messages.po
6101   fi
6102
6103   ac_config_commands="$ac_config_commands default-1"
6104
6105
6106 if test -n "$ac_tool_prefix"; then
6107   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_RANLIB+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   if test -n "$RANLIB"; then
6115   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122     for ac_exec_ext in '' $ac_executable_extensions; do
6123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129   done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 RANLIB=$ac_cv_prog_RANLIB
6135 if test -n "$RANLIB"; then
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6137 $as_echo "$RANLIB" >&6; }
6138 else
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142
6143
6144 fi
6145 if test -z "$ac_cv_prog_RANLIB"; then
6146   ac_ct_RANLIB=$RANLIB
6147   # Extract the first word of "ranlib", so it can be a program name with args.
6148 set dummy ranlib; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   if test -n "$ac_ct_RANLIB"; then
6155   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162     for ac_exec_ext in '' $ac_executable_extensions; do
6163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164     ac_cv_prog_ac_ct_RANLIB="ranlib"
6165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169   done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6175 if test -n "$ac_ct_RANLIB"; then
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6177 $as_echo "$ac_ct_RANLIB" >&6; }
6178 else
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183   if test "x$ac_ct_RANLIB" = x; then
6184     RANLIB=":"
6185   else
6186     case $cross_compiling:$ac_tool_warned in
6187 yes:)
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192     RANLIB=$ac_ct_RANLIB
6193   fi
6194 else
6195   RANLIB="$ac_cv_prog_RANLIB"
6196 fi
6197
6198
6199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6200 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6201 if ${ac_cv_lib_cposix_strerror+:} false; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   ac_check_lib_save_LIBS=$LIBS
6205 LIBS="-lcposix  $LIBS"
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h.  */
6208
6209 /* Override any GCC internal prototype to avoid an error.
6210    Use char because int might match the return type of a GCC
6211    builtin and then its argument prototype would still apply.  */
6212 #ifdef __cplusplus
6213 extern "C"
6214 #endif
6215 char strerror ();
6216 int
6217 main ()
6218 {
6219 return strerror ();
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 if ac_fn_c_try_link "$LINENO"; then :
6225   ac_cv_lib_cposix_strerror=yes
6226 else
6227   ac_cv_lib_cposix_strerror=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext \
6230     conftest$ac_exeext conftest.$ac_ext
6231 LIBS=$ac_check_lib_save_LIBS
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6234 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6235 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6236   LIBS="$LIBS -lcposix"
6237 fi
6238
6239
6240
6241
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6244 if ${ac_cv_path_GREP+:} false; then :
6245   $as_echo_n "(cached) " >&6
6246 else
6247   if test -z "$GREP"; then
6248   ac_path_GREP_found=false
6249   # Loop through the user's path and test for each of PROGNAME-LIST
6250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255     for ac_prog in grep ggrep; do
6256     for ac_exec_ext in '' $ac_executable_extensions; do
6257       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6258       as_fn_executable_p "$ac_path_GREP" || continue
6259 # Check for GNU ac_path_GREP and select it if it is found.
6260   # Check for GNU $ac_path_GREP
6261 case `"$ac_path_GREP" --version 2>&1` in
6262 *GNU*)
6263   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6264 *)
6265   ac_count=0
6266   $as_echo_n 0123456789 >"conftest.in"
6267   while :
6268   do
6269     cat "conftest.in" "conftest.in" >"conftest.tmp"
6270     mv "conftest.tmp" "conftest.in"
6271     cp "conftest.in" "conftest.nl"
6272     $as_echo 'GREP' >> "conftest.nl"
6273     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6274     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6275     as_fn_arith $ac_count + 1 && ac_count=$as_val
6276     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6277       # Best one so far, save it but keep looking for a better one
6278       ac_cv_path_GREP="$ac_path_GREP"
6279       ac_path_GREP_max=$ac_count
6280     fi
6281     # 10*(2^10) chars as input seems more than enough
6282     test $ac_count -gt 10 && break
6283   done
6284   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6285 esac
6286
6287       $ac_path_GREP_found && break 3
6288     done
6289   done
6290   done
6291 IFS=$as_save_IFS
6292   if test -z "$ac_cv_path_GREP"; then
6293     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6294   fi
6295 else
6296   ac_cv_path_GREP=$GREP
6297 fi
6298
6299 fi
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6301 $as_echo "$ac_cv_path_GREP" >&6; }
6302  GREP="$ac_cv_path_GREP"
6303
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6306 $as_echo_n "checking for egrep... " >&6; }
6307 if ${ac_cv_path_EGREP+:} false; then :
6308   $as_echo_n "(cached) " >&6
6309 else
6310   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6311    then ac_cv_path_EGREP="$GREP -E"
6312    else
6313      if test -z "$EGREP"; then
6314   ac_path_EGREP_found=false
6315   # Loop through the user's path and test for each of PROGNAME-LIST
6316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6318 do
6319   IFS=$as_save_IFS
6320   test -z "$as_dir" && as_dir=.
6321     for ac_prog in egrep; do
6322     for ac_exec_ext in '' $ac_executable_extensions; do
6323       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6324       as_fn_executable_p "$ac_path_EGREP" || continue
6325 # Check for GNU ac_path_EGREP and select it if it is found.
6326   # Check for GNU $ac_path_EGREP
6327 case `"$ac_path_EGREP" --version 2>&1` in
6328 *GNU*)
6329   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6330 *)
6331   ac_count=0
6332   $as_echo_n 0123456789 >"conftest.in"
6333   while :
6334   do
6335     cat "conftest.in" "conftest.in" >"conftest.tmp"
6336     mv "conftest.tmp" "conftest.in"
6337     cp "conftest.in" "conftest.nl"
6338     $as_echo 'EGREP' >> "conftest.nl"
6339     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6340     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6341     as_fn_arith $ac_count + 1 && ac_count=$as_val
6342     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6343       # Best one so far, save it but keep looking for a better one
6344       ac_cv_path_EGREP="$ac_path_EGREP"
6345       ac_path_EGREP_max=$ac_count
6346     fi
6347     # 10*(2^10) chars as input seems more than enough
6348     test $ac_count -gt 10 && break
6349   done
6350   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6351 esac
6352
6353       $ac_path_EGREP_found && break 3
6354     done
6355   done
6356   done
6357 IFS=$as_save_IFS
6358   if test -z "$ac_cv_path_EGREP"; then
6359     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6360   fi
6361 else
6362   ac_cv_path_EGREP=$EGREP
6363 fi
6364
6365    fi
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6368 $as_echo "$ac_cv_path_EGREP" >&6; }
6369  EGREP="$ac_cv_path_EGREP"
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6373 $as_echo_n "checking for ANSI C header files... " >&6; }
6374 if ${ac_cv_header_stdc+:} false; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h.  */
6379 #include <stdlib.h>
6380 #include <stdarg.h>
6381 #include <string.h>
6382 #include <float.h>
6383
6384 int
6385 main ()
6386 {
6387
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_compile "$LINENO"; then :
6393   ac_cv_header_stdc=yes
6394 else
6395   ac_cv_header_stdc=no
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398
6399 if test $ac_cv_header_stdc = yes; then
6400   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h.  */
6403 #include <string.h>
6404
6405 _ACEOF
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407   $EGREP "memchr" >/dev/null 2>&1; then :
6408
6409 else
6410   ac_cv_header_stdc=no
6411 fi
6412 rm -f conftest*
6413
6414 fi
6415
6416 if test $ac_cv_header_stdc = yes; then
6417   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h.  */
6420 #include <stdlib.h>
6421
6422 _ACEOF
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424   $EGREP "free" >/dev/null 2>&1; then :
6425
6426 else
6427   ac_cv_header_stdc=no
6428 fi
6429 rm -f conftest*
6430
6431 fi
6432
6433 if test $ac_cv_header_stdc = yes; then
6434   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6435   if test "$cross_compiling" = yes; then :
6436   :
6437 else
6438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h.  */
6440 #include <ctype.h>
6441 #include <stdlib.h>
6442 #if ((' ' & 0x0FF) == 0x020)
6443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6445 #else
6446 # define ISLOWER(c) \
6447                    (('a' <= (c) && (c) <= 'i') \
6448                      || ('j' <= (c) && (c) <= 'r') \
6449                      || ('s' <= (c) && (c) <= 'z'))
6450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6451 #endif
6452
6453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6454 int
6455 main ()
6456 {
6457   int i;
6458   for (i = 0; i < 256; i++)
6459     if (XOR (islower (i), ISLOWER (i))
6460         || toupper (i) != TOUPPER (i))
6461       return 2;
6462   return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_run "$LINENO"; then :
6466
6467 else
6468   ac_cv_header_stdc=no
6469 fi
6470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6471   conftest.$ac_objext conftest.beam conftest.$ac_ext
6472 fi
6473
6474 fi
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6477 $as_echo "$ac_cv_header_stdc" >&6; }
6478 if test $ac_cv_header_stdc = yes; then
6479
6480 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6481
6482 fi
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6485 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6486 if ${ac_cv_c_const+:} false; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h.  */
6491
6492 int
6493 main ()
6494 {
6495
6496 #ifndef __cplusplus
6497   /* Ultrix mips cc rejects this sort of thing.  */
6498   typedef int charset[2];
6499   const charset cs = { 0, 0 };
6500   /* SunOS 4.1.1 cc rejects this.  */
6501   char const *const *pcpcc;
6502   char **ppc;
6503   /* NEC SVR4.0.2 mips cc rejects this.  */
6504   struct point {int x, y;};
6505   static struct point const zero = {0,0};
6506   /* AIX XL C 1.02.0.0 rejects this.
6507      It does not let you subtract one const X* pointer from another in
6508      an arm of an if-expression whose if-part is not a constant
6509      expression */
6510   const char *g = "string";
6511   pcpcc = &g + (g ? g-g : 0);
6512   /* HPUX 7.0 cc rejects these. */
6513   ++pcpcc;
6514   ppc = (char**) pcpcc;
6515   pcpcc = (char const *const *) ppc;
6516   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6517     char tx;
6518     char *t = &tx;
6519     char const *s = 0 ? (char *) 0 : (char const *) 0;
6520
6521     *t++ = 0;
6522     if (s) return 0;
6523   }
6524   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6525     int x[] = {25, 17};
6526     const int *foo = &x[0];
6527     ++foo;
6528   }
6529   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6530     typedef const int *iptr;
6531     iptr p = 0;
6532     ++p;
6533   }
6534   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6535        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6536     struct s { int j; const int *ap[3]; } bx;
6537     struct s *b = &bx; b->j = 5;
6538   }
6539   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6540     const int foo = 10;
6541     if (!foo) return 0;
6542   }
6543   return !cs[0] && !zero.x;
6544 #endif
6545
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551   ac_cv_c_const=yes
6552 else
6553   ac_cv_c_const=no
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6558 $as_echo "$ac_cv_c_const" >&6; }
6559 if test $ac_cv_c_const = no; then
6560
6561 $as_echo "#define const /**/" >>confdefs.h
6562
6563 fi
6564
6565
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6567 $as_echo_n "checking for signed... " >&6; }
6568 if ${bh_cv_c_signed+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h.  */
6573
6574 int
6575 main ()
6576 {
6577 signed char x;
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583   bh_cv_c_signed=yes
6584 else
6585   bh_cv_c_signed=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 fi
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6590 $as_echo "$bh_cv_c_signed" >&6; }
6591   if test $bh_cv_c_signed = no; then
6592
6593 $as_echo "#define signed /**/" >>confdefs.h
6594
6595   fi
6596
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6598 $as_echo_n "checking for inline... " >&6; }
6599 if ${ac_cv_c_inline+:} false; then :
6600   $as_echo_n "(cached) " >&6
6601 else
6602   ac_cv_c_inline=no
6603 for ac_kw in inline __inline__ __inline; do
6604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h.  */
6606 #ifndef __cplusplus
6607 typedef int foo_t;
6608 static $ac_kw foo_t static_foo () {return 0; }
6609 $ac_kw foo_t foo () {return 0; }
6610 #endif
6611
6612 _ACEOF
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614   ac_cv_c_inline=$ac_kw
6615 fi
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617   test "$ac_cv_c_inline" != no && break
6618 done
6619
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6622 $as_echo "$ac_cv_c_inline" >&6; }
6623
6624 case $ac_cv_c_inline in
6625   inline | yes) ;;
6626   *)
6627     case $ac_cv_c_inline in
6628       no) ac_val=;;
6629       *) ac_val=$ac_cv_c_inline;;
6630     esac
6631     cat >>confdefs.h <<_ACEOF
6632 #ifndef __cplusplus
6633 #define inline $ac_val
6634 #endif
6635 _ACEOF
6636     ;;
6637 esac
6638
6639 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6641                   inttypes.h stdint.h unistd.h
6642 do :
6643   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6645 "
6646 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6647   cat >>confdefs.h <<_ACEOF
6648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6649 _ACEOF
6650
6651 fi
6652
6653 done
6654
6655
6656 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6657 if test "x$ac_cv_type_off_t" = xyes; then :
6658
6659 else
6660
6661 cat >>confdefs.h <<_ACEOF
6662 #define off_t long int
6663 _ACEOF
6664
6665 fi
6666
6667 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6668 if test "x$ac_cv_type_size_t" = xyes; then :
6669
6670 else
6671
6672 cat >>confdefs.h <<_ACEOF
6673 #define size_t unsigned int
6674 _ACEOF
6675
6676 fi
6677
6678
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6680 $as_echo_n "checking for long long... " >&6; }
6681 if ${ac_cv_type_long_long+:} false; then :
6682   $as_echo_n "(cached) " >&6
6683 else
6684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h.  */
6686 long long ll = 1LL; int i = 63;
6687 int
6688 main ()
6689 {
6690 long long llmax = (long long) -1;
6691      return ll << i | ll >> i | llmax / ll | llmax % ll;
6692   ;
6693   return 0;
6694 }
6695 _ACEOF
6696 if ac_fn_c_try_link "$LINENO"; then :
6697   ac_cv_type_long_long=yes
6698 else
6699   ac_cv_type_long_long=no
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext \
6702     conftest$ac_exeext conftest.$ac_ext
6703 fi
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6705 $as_echo "$ac_cv_type_long_long" >&6; }
6706   if test $ac_cv_type_long_long = yes; then
6707
6708 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6709
6710   fi
6711
6712
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6714 $as_echo_n "checking for long double... " >&6; }
6715 if ${gt_cv_c_long_double+:} false; then :
6716   $as_echo_n "(cached) " >&6
6717 else
6718   if test "$GCC" = yes; then
6719        gt_cv_c_long_double=yes
6720      else
6721        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h.  */
6723
6724          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6725          long double foo = 0.0;
6726          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6727          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6728
6729 int
6730 main ()
6731 {
6732
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_compile "$LINENO"; then :
6738   gt_cv_c_long_double=yes
6739 else
6740   gt_cv_c_long_double=no
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743      fi
6744 fi
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6746 $as_echo "$gt_cv_c_long_double" >&6; }
6747   if test $gt_cv_c_long_double = yes; then
6748
6749 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6750
6751   fi
6752
6753
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6755 $as_echo_n "checking for wchar_t... " >&6; }
6756 if ${gt_cv_c_wchar_t+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h.  */
6761 #include <stddef.h>
6762        wchar_t foo = (wchar_t)'\0';
6763 int
6764 main ()
6765 {
6766
6767   ;
6768   return 0;
6769 }
6770 _ACEOF
6771 if ac_fn_c_try_compile "$LINENO"; then :
6772   gt_cv_c_wchar_t=yes
6773 else
6774   gt_cv_c_wchar_t=no
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6779 $as_echo "$gt_cv_c_wchar_t" >&6; }
6780   if test $gt_cv_c_wchar_t = yes; then
6781
6782 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6783
6784   fi
6785
6786
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6788 $as_echo_n "checking for wint_t... " >&6; }
6789 if ${gt_cv_c_wint_t+:} false; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h.  */
6794 #include <wchar.h>
6795        wint_t foo = (wchar_t)'\0';
6796 int
6797 main ()
6798 {
6799
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805   gt_cv_c_wint_t=yes
6806 else
6807   gt_cv_c_wint_t=no
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 fi
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6812 $as_echo "$gt_cv_c_wint_t" >&6; }
6813   if test $gt_cv_c_wint_t = yes; then
6814
6815 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6816
6817   fi
6818
6819
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6821 $as_echo_n "checking for inttypes.h... " >&6; }
6822 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6823   $as_echo_n "(cached) " >&6
6824 else
6825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h.  */
6827 #include <sys/types.h>
6828 #include <inttypes.h>
6829 int
6830 main ()
6831 {
6832 uintmax_t i = (uintmax_t) -1;
6833   ;
6834   return 0;
6835 }
6836 _ACEOF
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838   jm_ac_cv_header_inttypes_h=yes
6839 else
6840   jm_ac_cv_header_inttypes_h=no
6841 fi
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6845 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6846   if test $jm_ac_cv_header_inttypes_h = yes; then
6847
6848 cat >>confdefs.h <<_ACEOF
6849 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6850 _ACEOF
6851
6852   fi
6853
6854
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6856 $as_echo_n "checking for stdint.h... " >&6; }
6857 if ${jm_ac_cv_header_stdint_h+:} false; then :
6858   $as_echo_n "(cached) " >&6
6859 else
6860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h.  */
6862 #include <sys/types.h>
6863 #include <stdint.h>
6864 int
6865 main ()
6866 {
6867 uintmax_t i = (uintmax_t) -1;
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872 if ac_fn_c_try_compile "$LINENO"; then :
6873   jm_ac_cv_header_stdint_h=yes
6874 else
6875   jm_ac_cv_header_stdint_h=no
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6880 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6881   if test $jm_ac_cv_header_stdint_h = yes; then
6882
6883 cat >>confdefs.h <<_ACEOF
6884 #define HAVE_STDINT_H_WITH_UINTMAX 1
6885 _ACEOF
6886
6887   fi
6888
6889
6890
6891
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6893 $as_echo_n "checking for intmax_t... " >&6; }
6894 if ${gt_cv_c_intmax_t+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h.  */
6899
6900 #include <stddef.h>
6901 #include <stdlib.h>
6902 #if HAVE_STDINT_H_WITH_UINTMAX
6903 #include <stdint.h>
6904 #endif
6905 #if HAVE_INTTYPES_H_WITH_UINTMAX
6906 #include <inttypes.h>
6907 #endif
6908
6909 int
6910 main ()
6911 {
6912 intmax_t x = -1;
6913   ;
6914   return 0;
6915 }
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918   gt_cv_c_intmax_t=yes
6919 else
6920   gt_cv_c_intmax_t=no
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6925 $as_echo "$gt_cv_c_intmax_t" >&6; }
6926   if test $gt_cv_c_intmax_t = yes; then
6927
6928 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6929
6930   fi
6931
6932
6933
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6935 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6936 if ${gt_cv_func_printf_posix+:} false; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939
6940       if test "$cross_compiling" = yes; then :
6941
6942         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h.  */
6944
6945 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6946   notposix
6947 #endif
6948
6949 _ACEOF
6950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6951   $EGREP "notposix" >/dev/null 2>&1; then :
6952   gt_cv_func_printf_posix="guessing no"
6953 else
6954   gt_cv_func_printf_posix="guessing yes"
6955 fi
6956 rm -f conftest*
6957
6958
6959 else
6960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h.  */
6962
6963 #include <stdio.h>
6964 #include <string.h>
6965 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6966    dollar expansion (possibly an autoconf bug).  */
6967 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6968 static char buf[100];
6969 int main ()
6970 {
6971   sprintf (buf, format, 33, 55);
6972   return (strcmp (buf, "55 33") != 0);
6973 }
6974 _ACEOF
6975 if ac_fn_c_try_run "$LINENO"; then :
6976   gt_cv_func_printf_posix=yes
6977 else
6978   gt_cv_func_printf_posix=no
6979 fi
6980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6981   conftest.$ac_objext conftest.beam conftest.$ac_ext
6982 fi
6983
6984
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6987 $as_echo "$gt_cv_func_printf_posix" >&6; }
6988   case $gt_cv_func_printf_posix in
6989     *yes)
6990
6991 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6992
6993       ;;
6994   esac
6995
6996 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6997 # for constant arguments.  Useless!
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6999 $as_echo_n "checking for working alloca.h... " >&6; }
7000 if ${ac_cv_working_alloca_h+:} false; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h.  */
7005 #include <alloca.h>
7006 int
7007 main ()
7008 {
7009 char *p = (char *) alloca (2 * sizeof (int));
7010                           if (p) return 0;
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_link "$LINENO"; then :
7016   ac_cv_working_alloca_h=yes
7017 else
7018   ac_cv_working_alloca_h=no
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext \
7021     conftest$ac_exeext conftest.$ac_ext
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7024 $as_echo "$ac_cv_working_alloca_h" >&6; }
7025 if test $ac_cv_working_alloca_h = yes; then
7026
7027 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7028
7029 fi
7030
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7032 $as_echo_n "checking for alloca... " >&6; }
7033 if ${ac_cv_func_alloca_works+:} false; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h.  */
7038 #ifdef __GNUC__
7039 # define alloca __builtin_alloca
7040 #else
7041 # ifdef _MSC_VER
7042 #  include <malloc.h>
7043 #  define alloca _alloca
7044 # else
7045 #  ifdef HAVE_ALLOCA_H
7046 #   include <alloca.h>
7047 #  else
7048 #   ifdef _AIX
7049  #pragma alloca
7050 #   else
7051 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7052 void *alloca (size_t);
7053 #    endif
7054 #   endif
7055 #  endif
7056 # endif
7057 #endif
7058
7059 int
7060 main ()
7061 {
7062 char *p = (char *) alloca (1);
7063                                     if (p) return 0;
7064   ;
7065   return 0;
7066 }
7067 _ACEOF
7068 if ac_fn_c_try_link "$LINENO"; then :
7069   ac_cv_func_alloca_works=yes
7070 else
7071   ac_cv_func_alloca_works=no
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext \
7074     conftest$ac_exeext conftest.$ac_ext
7075 fi
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7077 $as_echo "$ac_cv_func_alloca_works" >&6; }
7078
7079 if test $ac_cv_func_alloca_works = yes; then
7080
7081 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7082
7083 else
7084   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7085 # that cause trouble.  Some versions do not even contain alloca or
7086 # contain a buggy version.  If you still want to use their alloca,
7087 # use ar to extract alloca.o from them instead of compiling alloca.c.
7088
7089 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7090
7091 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7092
7093
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7095 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7096 if ${ac_cv_os_cray+:} false; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h.  */
7101 #if defined CRAY && ! defined CRAY2
7102 webecray
7103 #else
7104 wenotbecray
7105 #endif
7106
7107 _ACEOF
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109   $EGREP "webecray" >/dev/null 2>&1; then :
7110   ac_cv_os_cray=yes
7111 else
7112   ac_cv_os_cray=no
7113 fi
7114 rm -f conftest*
7115
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7118 $as_echo "$ac_cv_os_cray" >&6; }
7119 if test $ac_cv_os_cray = yes; then
7120   for ac_func in _getb67 GETB67 getb67; do
7121     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7123 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7124
7125 cat >>confdefs.h <<_ACEOF
7126 #define CRAY_STACKSEG_END $ac_func
7127 _ACEOF
7128
7129     break
7130 fi
7131
7132   done
7133 fi
7134
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7136 $as_echo_n "checking stack direction for C alloca... " >&6; }
7137 if ${ac_cv_c_stack_direction+:} false; then :
7138   $as_echo_n "(cached) " >&6
7139 else
7140   if test "$cross_compiling" = yes; then :
7141   ac_cv_c_stack_direction=0
7142 else
7143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h.  */
7145 $ac_includes_default
7146 int
7147 find_stack_direction (int *addr, int depth)
7148 {
7149   int dir, dummy = 0;
7150   if (! addr)
7151     addr = &dummy;
7152   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7153   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7154   return dir + dummy;
7155 }
7156
7157 int
7158 main (int argc, char **argv)
7159 {
7160   return find_stack_direction (0, argc + !argv + 20) < 0;
7161 }
7162 _ACEOF
7163 if ac_fn_c_try_run "$LINENO"; then :
7164   ac_cv_c_stack_direction=1
7165 else
7166   ac_cv_c_stack_direction=-1
7167 fi
7168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7169   conftest.$ac_objext conftest.beam conftest.$ac_ext
7170 fi
7171
7172 fi
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7174 $as_echo "$ac_cv_c_stack_direction" >&6; }
7175 cat >>confdefs.h <<_ACEOF
7176 #define STACK_DIRECTION $ac_cv_c_stack_direction
7177 _ACEOF
7178
7179
7180 fi
7181
7182
7183
7184
7185   for ac_header in $ac_header_list
7186 do :
7187   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7189 "
7190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7191   cat >>confdefs.h <<_ACEOF
7192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7193 _ACEOF
7194
7195 fi
7196
7197 done
7198
7199
7200
7201
7202
7203
7204
7205
7206 for ac_func in getpagesize
7207 do :
7208   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7209 if test "x$ac_cv_func_getpagesize" = xyes; then :
7210   cat >>confdefs.h <<_ACEOF
7211 #define HAVE_GETPAGESIZE 1
7212 _ACEOF
7213
7214 fi
7215 done
7216
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7218 $as_echo_n "checking for working mmap... " >&6; }
7219 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   if test "$cross_compiling" = yes; then :
7223   ac_cv_func_mmap_fixed_mapped=no
7224 else
7225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h.  */
7227 $ac_includes_default
7228 /* malloc might have been renamed as rpl_malloc. */
7229 #undef malloc
7230
7231 /* Thanks to Mike Haertel and Jim Avera for this test.
7232    Here is a matrix of mmap possibilities:
7233         mmap private not fixed
7234         mmap private fixed at somewhere currently unmapped
7235         mmap private fixed at somewhere already mapped
7236         mmap shared not fixed
7237         mmap shared fixed at somewhere currently unmapped
7238         mmap shared fixed at somewhere already mapped
7239    For private mappings, we should verify that changes cannot be read()
7240    back from the file, nor mmap's back from the file at a different
7241    address.  (There have been systems where private was not correctly
7242    implemented like the infamous i386 svr4.0, and systems where the
7243    VM page cache was not coherent with the file system buffer cache
7244    like early versions of FreeBSD and possibly contemporary NetBSD.)
7245    For shared mappings, we should conversely verify that changes get
7246    propagated back to all the places they're supposed to be.
7247
7248    Grep wants private fixed already mapped.
7249    The main things grep needs to know about mmap are:
7250    * does it exist and is it safe to write into the mmap'd area
7251    * how to use it (BSD variants)  */
7252
7253 #include <fcntl.h>
7254 #include <sys/mman.h>
7255
7256 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7257 char *malloc ();
7258 #endif
7259
7260 /* This mess was copied from the GNU getpagesize.h.  */
7261 #ifndef HAVE_GETPAGESIZE
7262 # ifdef _SC_PAGESIZE
7263 #  define getpagesize() sysconf(_SC_PAGESIZE)
7264 # else /* no _SC_PAGESIZE */
7265 #  ifdef HAVE_SYS_PARAM_H
7266 #   include <sys/param.h>
7267 #   ifdef EXEC_PAGESIZE
7268 #    define getpagesize() EXEC_PAGESIZE
7269 #   else /* no EXEC_PAGESIZE */
7270 #    ifdef NBPG
7271 #     define getpagesize() NBPG * CLSIZE
7272 #     ifndef CLSIZE
7273 #      define CLSIZE 1
7274 #     endif /* no CLSIZE */
7275 #    else /* no NBPG */
7276 #     ifdef NBPC
7277 #      define getpagesize() NBPC
7278 #     else /* no NBPC */
7279 #      ifdef PAGESIZE
7280 #       define getpagesize() PAGESIZE
7281 #      endif /* PAGESIZE */
7282 #     endif /* no NBPC */
7283 #    endif /* no NBPG */
7284 #   endif /* no EXEC_PAGESIZE */
7285 #  else /* no HAVE_SYS_PARAM_H */
7286 #   define getpagesize() 8192   /* punt totally */
7287 #  endif /* no HAVE_SYS_PARAM_H */
7288 # endif /* no _SC_PAGESIZE */
7289
7290 #endif /* no HAVE_GETPAGESIZE */
7291
7292 int
7293 main ()
7294 {
7295   char *data, *data2, *data3;
7296   const char *cdata2;
7297   int i, pagesize;
7298   int fd, fd2;
7299
7300   pagesize = getpagesize ();
7301
7302   /* First, make a file with some known garbage in it. */
7303   data = (char *) malloc (pagesize);
7304   if (!data)
7305     return 1;
7306   for (i = 0; i < pagesize; ++i)
7307     *(data + i) = rand ();
7308   umask (0);
7309   fd = creat ("conftest.mmap", 0600);
7310   if (fd < 0)
7311     return 2;
7312   if (write (fd, data, pagesize) != pagesize)
7313     return 3;
7314   close (fd);
7315
7316   /* Next, check that the tail of a page is zero-filled.  File must have
7317      non-zero length, otherwise we risk SIGBUS for entire page.  */
7318   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7319   if (fd2 < 0)
7320     return 4;
7321   cdata2 = "";
7322   if (write (fd2, cdata2, 1) != 1)
7323     return 5;
7324   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7325   if (data2 == MAP_FAILED)
7326     return 6;
7327   for (i = 0; i < pagesize; ++i)
7328     if (*(data2 + i))
7329       return 7;
7330   close (fd2);
7331   if (munmap (data2, pagesize))
7332     return 8;
7333
7334   /* Next, try to mmap the file at a fixed address which already has
7335      something else allocated at it.  If we can, also make sure that
7336      we see the same garbage.  */
7337   fd = open ("conftest.mmap", O_RDWR);
7338   if (fd < 0)
7339     return 9;
7340   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7341                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7342     return 10;
7343   for (i = 0; i < pagesize; ++i)
7344     if (*(data + i) != *(data2 + i))
7345       return 11;
7346
7347   /* Finally, make sure that changes to the mapped area do not
7348      percolate back to the file as seen by read().  (This is a bug on
7349      some variants of i386 svr4.0.)  */
7350   for (i = 0; i < pagesize; ++i)
7351     *(data2 + i) = *(data2 + i) + 1;
7352   data3 = (char *) malloc (pagesize);
7353   if (!data3)
7354     return 12;
7355   if (read (fd, data3, pagesize) != pagesize)
7356     return 13;
7357   for (i = 0; i < pagesize; ++i)
7358     if (*(data + i) != *(data3 + i))
7359       return 14;
7360   close (fd);
7361   return 0;
7362 }
7363 _ACEOF
7364 if ac_fn_c_try_run "$LINENO"; then :
7365   ac_cv_func_mmap_fixed_mapped=yes
7366 else
7367   ac_cv_func_mmap_fixed_mapped=no
7368 fi
7369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7370   conftest.$ac_objext conftest.beam conftest.$ac_ext
7371 fi
7372
7373 fi
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7375 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7376 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7377
7378 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7379
7380 fi
7381 rm -f conftest.mmap conftest.txt
7382
7383
7384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7385 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7386 if ${ac_cv_gnu_library_2_1+:} false; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h.  */
7391
7392 #include <features.h>
7393 #ifdef __GNU_LIBRARY__
7394  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7395   Lucky GNU user
7396  #endif
7397 #endif
7398
7399 _ACEOF
7400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7401   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7402   ac_cv_gnu_library_2_1=yes
7403 else
7404   ac_cv_gnu_library_2_1=no
7405 fi
7406 rm -f conftest*
7407
7408
7409
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7412 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7413
7414     GLIBC21="$ac_cv_gnu_library_2_1"
7415
7416
7417
7418
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7420 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7421 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7422   $as_echo_n "(cached) " >&6
7423 else
7424
7425       if test "$cross_compiling" = yes; then :
7426
7427           # Guess based on the CPU.
7428           case "$host_cpu" in
7429             alpha* | i3456786 | m68k | s390*)
7430               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7431             *)
7432               gt_cv_int_divbyzero_sigfpe="guessing no";;
7433           esac
7434
7435 else
7436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h.  */
7438
7439 #include <stdlib.h>
7440 #include <signal.h>
7441
7442 static void
7443 #ifdef __cplusplus
7444 sigfpe_handler (int sig)
7445 #else
7446 sigfpe_handler (sig) int sig;
7447 #endif
7448 {
7449   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7450   exit (sig != SIGFPE);
7451 }
7452
7453 int x = 1;
7454 int y = 0;
7455 int z;
7456 int nan;
7457
7458 int main ()
7459 {
7460   signal (SIGFPE, sigfpe_handler);
7461 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7462 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7463   signal (SIGTRAP, sigfpe_handler);
7464 #endif
7465 /* Linux/SPARC yields signal SIGILL.  */
7466 #if defined (__sparc__) && defined (__linux__)
7467   signal (SIGILL, sigfpe_handler);
7468 #endif
7469
7470   z = x / y;
7471   nan = y / y;
7472   exit (1);
7473 }
7474
7475 _ACEOF
7476 if ac_fn_c_try_run "$LINENO"; then :
7477   gt_cv_int_divbyzero_sigfpe=yes
7478 else
7479   gt_cv_int_divbyzero_sigfpe=no
7480 fi
7481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7482   conftest.$ac_objext conftest.beam conftest.$ac_ext
7483 fi
7484
7485
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7488 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7489   case "$gt_cv_int_divbyzero_sigfpe" in
7490     *yes) value=1;;
7491     *) value=0;;
7492   esac
7493
7494 cat >>confdefs.h <<_ACEOF
7495 #define INTDIV0_RAISES_SIGFPE $value
7496 _ACEOF
7497
7498
7499
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7501 $as_echo_n "checking for unsigned long long... " >&6; }
7502 if ${ac_cv_type_unsigned_long_long+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h.  */
7507 unsigned long long ull = 1ULL; int i = 63;
7508 int
7509 main ()
7510 {
7511 unsigned long long ullmax = (unsigned long long) -1;
7512      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 if ac_fn_c_try_link "$LINENO"; then :
7518   ac_cv_type_unsigned_long_long=yes
7519 else
7520   ac_cv_type_unsigned_long_long=no
7521 fi
7522 rm -f core conftest.err conftest.$ac_objext \
7523     conftest$ac_exeext conftest.$ac_ext
7524 fi
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7526 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7527   if test $ac_cv_type_unsigned_long_long = yes; then
7528
7529 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7530
7531   fi
7532
7533
7534
7535
7536   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7537
7538     test $ac_cv_type_unsigned_long_long = yes \
7539       && ac_type='unsigned long long' \
7540       || ac_type='unsigned long'
7541
7542 cat >>confdefs.h <<_ACEOF
7543 #define uintmax_t $ac_type
7544 _ACEOF
7545
7546   else
7547
7548 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7549
7550   fi
7551
7552
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7554 $as_echo_n "checking for inttypes.h... " >&6; }
7555 if ${gt_cv_header_inttypes_h+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558
7559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h.  */
7561 #include <sys/types.h>
7562 #include <inttypes.h>
7563 int
7564 main ()
7565 {
7566
7567   ;
7568   return 0;
7569 }
7570 _ACEOF
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572   gt_cv_header_inttypes_h=yes
7573 else
7574   gt_cv_header_inttypes_h=no
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7580 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7581   if test $gt_cv_header_inttypes_h = yes; then
7582
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_INTTYPES_H 1
7585 _ACEOF
7586
7587   fi
7588
7589
7590
7591   if test $gt_cv_header_inttypes_h = yes; then
7592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7593 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7594 if ${gt_cv_inttypes_pri_broken+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597
7598         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h.  */
7600 #include <inttypes.h>
7601 #ifdef PRId32
7602 char *p = PRId32;
7603 #endif
7604
7605 int
7606 main ()
7607 {
7608
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614   gt_cv_inttypes_pri_broken=no
7615 else
7616   gt_cv_inttypes_pri_broken=yes
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7622 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7623   fi
7624   if test "$gt_cv_inttypes_pri_broken" = yes; then
7625
7626 cat >>confdefs.h <<_ACEOF
7627 #define PRI_MACROS_BROKEN 1
7628 _ACEOF
7629
7630   fi
7631
7632
7633   for ac_header in stdint.h
7634 do :
7635   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7636 if test "x$ac_cv_header_stdint_h" = xyes; then :
7637   cat >>confdefs.h <<_ACEOF
7638 #define HAVE_STDINT_H 1
7639 _ACEOF
7640
7641 fi
7642
7643 done
7644
7645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7646 $as_echo_n "checking for SIZE_MAX... " >&6; }
7647   result=
7648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h.  */
7650
7651 #include <limits.h>
7652 #if HAVE_STDINT_H
7653 #include <stdint.h>
7654 #endif
7655 #ifdef SIZE_MAX
7656 Found it
7657 #endif
7658
7659 _ACEOF
7660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7661   $EGREP "Found it" >/dev/null 2>&1; then :
7662   result=yes
7663 fi
7664 rm -f conftest*
7665
7666   if test -z "$result"; then
7667                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7668
7669 else
7670   result=?
7671 fi
7672
7673
7674     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7675
7676 else
7677   result=?
7678 fi
7679
7680
7681     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7682
7683 else
7684   result=?
7685 fi
7686
7687
7688     if test "$fits_in_uint" = 1; then
7689                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h.  */
7691 #include <stddef.h>
7692         extern size_t foo;
7693         extern unsigned long foo;
7694
7695 int
7696 main ()
7697 {
7698
7699   ;
7700   return 0;
7701 }
7702 _ACEOF
7703 if ac_fn_c_try_compile "$LINENO"; then :
7704   fits_in_uint=0
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707     fi
7708     if test -z "$result"; then
7709       if test "$fits_in_uint" = 1; then
7710         result="$res_hi$res_lo"U
7711       else
7712         result="$res_hi$res_lo"UL
7713       fi
7714     else
7715             result='~(size_t)0'
7716     fi
7717   fi
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7719 $as_echo "$result" >&6; }
7720   if test "$result" != yes; then
7721
7722 cat >>confdefs.h <<_ACEOF
7723 #define SIZE_MAX $result
7724 _ACEOF
7725
7726   fi
7727
7728
7729
7730   for ac_header in stdint.h
7731 do :
7732   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7733 if test "x$ac_cv_header_stdint_h" = xyes; then :
7734   cat >>confdefs.h <<_ACEOF
7735 #define HAVE_STDINT_H 1
7736 _ACEOF
7737
7738 fi
7739
7740 done
7741
7742
7743
7744       if test "X$prefix" = "XNONE"; then
7745     acl_final_prefix="$ac_default_prefix"
7746   else
7747     acl_final_prefix="$prefix"
7748   fi
7749   if test "X$exec_prefix" = "XNONE"; then
7750     acl_final_exec_prefix='${prefix}'
7751   else
7752     acl_final_exec_prefix="$exec_prefix"
7753   fi
7754   acl_save_prefix="$prefix"
7755   prefix="$acl_final_prefix"
7756   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7757   prefix="$acl_save_prefix"
7758
7759
7760 # Check whether --with-gnu-ld was given.
7761 if test "${with_gnu_ld+set}" = set; then :
7762   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7763 else
7764   with_gnu_ld=no
7765 fi
7766
7767 # Prepare PATH_SEPARATOR.
7768 # The user is always right.
7769 if test "${PATH_SEPARATOR+set}" != set; then
7770   echo "#! /bin/sh" >conf$$.sh
7771   echo  "exit 0"   >>conf$$.sh
7772   chmod +x conf$$.sh
7773   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7774     PATH_SEPARATOR=';'
7775   else
7776     PATH_SEPARATOR=:
7777   fi
7778   rm -f conf$$.sh
7779 fi
7780 ac_prog=ld
7781 if test "$GCC" = yes; then
7782   # Check if gcc -print-prog-name=ld gives a path.
7783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7784 $as_echo_n "checking for ld used by GCC... " >&6; }
7785   case $host in
7786   *-*-mingw*)
7787     # gcc leaves a trailing carriage return which upsets mingw
7788     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7789   *)
7790     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7791   esac
7792   case $ac_prog in
7793     # Accept absolute paths.
7794     [\\/]* | [A-Za-z]:[\\/]*)
7795       re_direlt='/[^/][^/]*/\.\./'
7796       # Canonicalize the path of ld
7797       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7798       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7799         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7800       done
7801       test -z "$LD" && LD="$ac_prog"
7802       ;;
7803   "")
7804     # If it fails, then pretend we aren't using GCC.
7805     ac_prog=ld
7806     ;;
7807   *)
7808     # If it is relative, then search for the first ld in PATH.
7809     with_gnu_ld=unknown
7810     ;;
7811   esac
7812 elif test "$with_gnu_ld" = yes; then
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7814 $as_echo_n "checking for GNU ld... " >&6; }
7815 else
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7817 $as_echo_n "checking for non-GNU ld... " >&6; }
7818 fi
7819 if ${acl_cv_path_LD+:} false; then :
7820   $as_echo_n "(cached) " >&6
7821 else
7822   if test -z "$LD"; then
7823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7824   for ac_dir in $PATH; do
7825     test -z "$ac_dir" && ac_dir=.
7826     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7827       acl_cv_path_LD="$ac_dir/$ac_prog"
7828       # Check to see if the program is GNU ld.  I'd rather use --version,
7829       # but apparently some GNU ld's only accept -v.
7830       # Break only if it was the GNU/non-GNU ld that we prefer.
7831       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7832       *GNU* | *'with BFD'*)
7833         test "$with_gnu_ld" != no && break ;;
7834       *)
7835         test "$with_gnu_ld" != yes && break ;;
7836       esac
7837     fi
7838   done
7839   IFS="$ac_save_ifs"
7840 else
7841   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7842 fi
7843 fi
7844
7845 LD="$acl_cv_path_LD"
7846 if test -n "$LD"; then
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7848 $as_echo "$LD" >&6; }
7849 else
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7855 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7856 if ${acl_cv_prog_gnu_ld+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7860 case `$LD -v 2>&1 </dev/null` in
7861 *GNU* | *'with BFD'*)
7862   acl_cv_prog_gnu_ld=yes ;;
7863 *)
7864   acl_cv_prog_gnu_ld=no ;;
7865 esac
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7868 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7869 with_gnu_ld=$acl_cv_prog_gnu_ld
7870
7871
7872
7873                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7874 $as_echo_n "checking for shared library run path origin... " >&6; }
7875 if ${acl_cv_rpath+:} false; then :
7876   $as_echo_n "(cached) " >&6
7877 else
7878
7879     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7880     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7881     . ./conftest.sh
7882     rm -f ./conftest.sh
7883     acl_cv_rpath=done
7884
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7887 $as_echo "$acl_cv_rpath" >&6; }
7888   wl="$acl_cv_wl"
7889   libext="$acl_cv_libext"
7890   shlibext="$acl_cv_shlibext"
7891   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7892   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7893   hardcode_direct="$acl_cv_hardcode_direct"
7894   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7895     # Check whether --enable-rpath was given.
7896 if test "${enable_rpath+set}" = set; then :
7897   enableval=$enable_rpath; :
7898 else
7899   enable_rpath=yes
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909     use_additional=yes
7910
7911   acl_save_prefix="$prefix"
7912   prefix="$acl_final_prefix"
7913   acl_save_exec_prefix="$exec_prefix"
7914   exec_prefix="$acl_final_exec_prefix"
7915
7916     eval additional_includedir=\"$includedir\"
7917     eval additional_libdir=\"$libdir\"
7918
7919   exec_prefix="$acl_save_exec_prefix"
7920   prefix="$acl_save_prefix"
7921
7922
7923 # Check whether --with-libiconv-prefix was given.
7924 if test "${with_libiconv_prefix+set}" = set; then :
7925   withval=$with_libiconv_prefix;
7926     if test "X$withval" = "Xno"; then
7927       use_additional=no
7928     else
7929       if test "X$withval" = "X"; then
7930
7931   acl_save_prefix="$prefix"
7932   prefix="$acl_final_prefix"
7933   acl_save_exec_prefix="$exec_prefix"
7934   exec_prefix="$acl_final_exec_prefix"
7935
7936           eval additional_includedir=\"$includedir\"
7937           eval additional_libdir=\"$libdir\"
7938
7939   exec_prefix="$acl_save_exec_prefix"
7940   prefix="$acl_save_prefix"
7941
7942       else
7943         additional_includedir="$withval/include"
7944         additional_libdir="$withval/lib"
7945       fi
7946     fi
7947
7948 fi
7949
7950       LIBICONV=
7951   LTLIBICONV=
7952   INCICONV=
7953   rpathdirs=
7954   ltrpathdirs=
7955   names_already_handled=
7956   names_next_round='iconv '
7957   while test -n "$names_next_round"; do
7958     names_this_round="$names_next_round"
7959     names_next_round=
7960     for name in $names_this_round; do
7961       already_handled=
7962       for n in $names_already_handled; do
7963         if test "$n" = "$name"; then
7964           already_handled=yes
7965           break
7966         fi
7967       done
7968       if test -z "$already_handled"; then
7969         names_already_handled="$names_already_handled $name"
7970                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7971         eval value=\"\$HAVE_LIB$uppername\"
7972         if test -n "$value"; then
7973           if test "$value" = yes; then
7974             eval value=\"\$LIB$uppername\"
7975             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7976             eval value=\"\$LTLIB$uppername\"
7977             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7978           else
7979                                     :
7980           fi
7981         else
7982                               found_dir=
7983           found_la=
7984           found_so=
7985           found_a=
7986           if test $use_additional = yes; then
7987             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7988               found_dir="$additional_libdir"
7989               found_so="$additional_libdir/lib$name.$shlibext"
7990               if test -f "$additional_libdir/lib$name.la"; then
7991                 found_la="$additional_libdir/lib$name.la"
7992               fi
7993             else
7994               if test -f "$additional_libdir/lib$name.$libext"; then
7995                 found_dir="$additional_libdir"
7996                 found_a="$additional_libdir/lib$name.$libext"
7997                 if test -f "$additional_libdir/lib$name.la"; then
7998                   found_la="$additional_libdir/lib$name.la"
7999                 fi
8000               fi
8001             fi
8002           fi
8003           if test "X$found_dir" = "X"; then
8004             for x in $LDFLAGS $LTLIBICONV; do
8005
8006   acl_save_prefix="$prefix"
8007   prefix="$acl_final_prefix"
8008   acl_save_exec_prefix="$exec_prefix"
8009   exec_prefix="$acl_final_exec_prefix"
8010   eval x=\"$x\"
8011   exec_prefix="$acl_save_exec_prefix"
8012   prefix="$acl_save_prefix"
8013
8014               case "$x" in
8015                 -L*)
8016                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8017                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8018                     found_dir="$dir"
8019                     found_so="$dir/lib$name.$shlibext"
8020                     if test -f "$dir/lib$name.la"; then
8021                       found_la="$dir/lib$name.la"
8022                     fi
8023                   else
8024                     if test -f "$dir/lib$name.$libext"; then
8025                       found_dir="$dir"
8026                       found_a="$dir/lib$name.$libext"
8027                       if test -f "$dir/lib$name.la"; then
8028                         found_la="$dir/lib$name.la"
8029                       fi
8030                     fi
8031                   fi
8032                   ;;
8033               esac
8034               if test "X$found_dir" != "X"; then
8035                 break
8036               fi
8037             done
8038           fi
8039           if test "X$found_dir" != "X"; then
8040                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8041             if test "X$found_so" != "X"; then
8042                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8043                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8044               else
8045                                                                                 haveit=
8046                 for x in $ltrpathdirs; do
8047                   if test "X$x" = "X$found_dir"; then
8048                     haveit=yes
8049                     break
8050                   fi
8051                 done
8052                 if test -z "$haveit"; then
8053                   ltrpathdirs="$ltrpathdirs $found_dir"
8054                 fi
8055                                 if test "$hardcode_direct" = yes; then
8056                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8057                 else
8058                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8059                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8060                                                             haveit=
8061                     for x in $rpathdirs; do
8062                       if test "X$x" = "X$found_dir"; then
8063                         haveit=yes
8064                         break
8065                       fi
8066                     done
8067                     if test -z "$haveit"; then
8068                       rpathdirs="$rpathdirs $found_dir"
8069                     fi
8070                   else
8071                                                                                 haveit=
8072                     for x in $LDFLAGS $LIBICONV; do
8073
8074   acl_save_prefix="$prefix"
8075   prefix="$acl_final_prefix"
8076   acl_save_exec_prefix="$exec_prefix"
8077   exec_prefix="$acl_final_exec_prefix"
8078   eval x=\"$x\"
8079   exec_prefix="$acl_save_exec_prefix"
8080   prefix="$acl_save_prefix"
8081
8082                       if test "X$x" = "X-L$found_dir"; then
8083                         haveit=yes
8084                         break
8085                       fi
8086                     done
8087                     if test -z "$haveit"; then
8088                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8089                     fi
8090                     if test "$hardcode_minus_L" != no; then
8091                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8092                     else
8093                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8094                     fi
8095                   fi
8096                 fi
8097               fi
8098             else
8099               if test "X$found_a" != "X"; then
8100                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8101               else
8102                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8103               fi
8104             fi
8105                         additional_includedir=
8106             case "$found_dir" in
8107               */lib | */lib/)
8108                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8109                 additional_includedir="$basedir/include"
8110                 ;;
8111             esac
8112             if test "X$additional_includedir" != "X"; then
8113                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8114                 haveit=
8115                 if test "X$additional_includedir" = "X/usr/local/include"; then
8116                   if test -n "$GCC"; then
8117                     case $host_os in
8118                       linux*) haveit=yes;;
8119                     esac
8120                   fi
8121                 fi
8122                 if test -z "$haveit"; then
8123                   for x in $CPPFLAGS $INCICONV; do
8124
8125   acl_save_prefix="$prefix"
8126   prefix="$acl_final_prefix"
8127   acl_save_exec_prefix="$exec_prefix"
8128   exec_prefix="$acl_final_exec_prefix"
8129   eval x=\"$x\"
8130   exec_prefix="$acl_save_exec_prefix"
8131   prefix="$acl_save_prefix"
8132
8133                     if test "X$x" = "X-I$additional_includedir"; then
8134                       haveit=yes
8135                       break
8136                     fi
8137                   done
8138                   if test -z "$haveit"; then
8139                     if test -d "$additional_includedir"; then
8140                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8141                     fi
8142                   fi
8143                 fi
8144               fi
8145             fi
8146                         if test -n "$found_la"; then
8147                                                         save_libdir="$libdir"
8148               case "$found_la" in
8149                 */* | *\\*) . "$found_la" ;;
8150                 *) . "./$found_la" ;;
8151               esac
8152               libdir="$save_libdir"
8153                             for dep in $dependency_libs; do
8154                 case "$dep" in
8155                   -L*)
8156                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8157                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8158                       haveit=
8159                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8160                         if test -n "$GCC"; then
8161                           case $host_os in
8162                             linux*) haveit=yes;;
8163                           esac
8164                         fi
8165                       fi
8166                       if test -z "$haveit"; then
8167                         haveit=
8168                         for x in $LDFLAGS $LIBICONV; do
8169
8170   acl_save_prefix="$prefix"
8171   prefix="$acl_final_prefix"
8172   acl_save_exec_prefix="$exec_prefix"
8173   exec_prefix="$acl_final_exec_prefix"
8174   eval x=\"$x\"
8175   exec_prefix="$acl_save_exec_prefix"
8176   prefix="$acl_save_prefix"
8177
8178                           if test "X$x" = "X-L$additional_libdir"; then
8179                             haveit=yes
8180                             break
8181                           fi
8182                         done
8183                         if test -z "$haveit"; then
8184                           if test -d "$additional_libdir"; then
8185                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8186                           fi
8187                         fi
8188                         haveit=
8189                         for x in $LDFLAGS $LTLIBICONV; do
8190
8191   acl_save_prefix="$prefix"
8192   prefix="$acl_final_prefix"
8193   acl_save_exec_prefix="$exec_prefix"
8194   exec_prefix="$acl_final_exec_prefix"
8195   eval x=\"$x\"
8196   exec_prefix="$acl_save_exec_prefix"
8197   prefix="$acl_save_prefix"
8198
8199                           if test "X$x" = "X-L$additional_libdir"; then
8200                             haveit=yes
8201                             break
8202                           fi
8203                         done
8204                         if test -z "$haveit"; then
8205                           if test -d "$additional_libdir"; then
8206                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8207                           fi
8208                         fi
8209                       fi
8210                     fi
8211                     ;;
8212                   -R*)
8213                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8214                     if test "$enable_rpath" != no; then
8215                                                                   haveit=
8216                       for x in $rpathdirs; do
8217                         if test "X$x" = "X$dir"; then
8218                           haveit=yes
8219                           break
8220                         fi
8221                       done
8222                       if test -z "$haveit"; then
8223                         rpathdirs="$rpathdirs $dir"
8224                       fi
8225                                                                   haveit=
8226                       for x in $ltrpathdirs; do
8227                         if test "X$x" = "X$dir"; then
8228                           haveit=yes
8229                           break
8230                         fi
8231                       done
8232                       if test -z "$haveit"; then
8233                         ltrpathdirs="$ltrpathdirs $dir"
8234                       fi
8235                     fi
8236                     ;;
8237                   -l*)
8238                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8239                     ;;
8240                   *.la)
8241                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8242                     ;;
8243                   *)
8244                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8245                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8246                     ;;
8247                 esac
8248               done
8249             fi
8250           else
8251                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8252             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8253           fi
8254         fi
8255       fi
8256     done
8257   done
8258   if test "X$rpathdirs" != "X"; then
8259     if test -n "$hardcode_libdir_separator"; then
8260                         alldirs=
8261       for found_dir in $rpathdirs; do
8262         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8263       done
8264             acl_save_libdir="$libdir"
8265       libdir="$alldirs"
8266       eval flag=\"$hardcode_libdir_flag_spec\"
8267       libdir="$acl_save_libdir"
8268       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8269     else
8270             for found_dir in $rpathdirs; do
8271         acl_save_libdir="$libdir"
8272         libdir="$found_dir"
8273         eval flag=\"$hardcode_libdir_flag_spec\"
8274         libdir="$acl_save_libdir"
8275         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8276       done
8277     fi
8278   fi
8279   if test "X$ltrpathdirs" != "X"; then
8280             for found_dir in $ltrpathdirs; do
8281       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8282     done
8283   fi
8284
8285
8286
8287
8288
8289
8290
8291
8292   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8293 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8294
8295 else
8296
8297 $as_echo "#define ptrdiff_t long" >>confdefs.h
8298
8299
8300 fi
8301
8302   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8303 stdlib.h string.h unistd.h sys/param.h
8304 do :
8305   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8306 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8307 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8308   cat >>confdefs.h <<_ACEOF
8309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8310 _ACEOF
8311
8312 fi
8313
8314 done
8315
8316   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8317 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8318 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8319 __fsetlocking
8320 do :
8321   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8322 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8323 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8324   cat >>confdefs.h <<_ACEOF
8325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8326 _ACEOF
8327
8328 fi
8329 done
8330
8331
8332
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8334 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8335 if ${ac_cv_have_decl__snprintf+:} false; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h.  */
8340 #include <stdio.h>
8341 int
8342 main ()
8343 {
8344
8345 #ifndef _snprintf
8346   char *p = (char *) _snprintf;
8347 #endif
8348
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 if ac_fn_c_try_compile "$LINENO"; then :
8354   ac_cv_have_decl__snprintf=yes
8355 else
8356   ac_cv_have_decl__snprintf=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8361 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8362   if test $ac_cv_have_decl__snprintf = yes; then
8363     gt_value=1
8364   else
8365     gt_value=0
8366   fi
8367
8368 cat >>confdefs.h <<_ACEOF
8369 #define HAVE_DECL__SNPRINTF $gt_value
8370 _ACEOF
8371
8372
8373
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8375 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8376 if ${ac_cv_have_decl__snwprintf+:} false; then :
8377   $as_echo_n "(cached) " >&6
8378 else
8379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h.  */
8381 #include <stdio.h>
8382 int
8383 main ()
8384 {
8385
8386 #ifndef _snwprintf
8387   char *p = (char *) _snwprintf;
8388 #endif
8389
8390   ;
8391   return 0;
8392 }
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"; then :
8395   ac_cv_have_decl__snwprintf=yes
8396 else
8397   ac_cv_have_decl__snwprintf=no
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8402 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8403   if test $ac_cv_have_decl__snwprintf = yes; then
8404     gt_value=1
8405   else
8406     gt_value=0
8407   fi
8408
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_DECL__SNWPRINTF $gt_value
8411 _ACEOF
8412
8413
8414
8415
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8417 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8418 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8419   $as_echo_n "(cached) " >&6
8420 else
8421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h.  */
8423 #include <stdio.h>
8424 int
8425 main ()
8426 {
8427
8428 #ifndef feof_unlocked
8429   char *p = (char *) feof_unlocked;
8430 #endif
8431
8432   ;
8433   return 0;
8434 }
8435 _ACEOF
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437   ac_cv_have_decl_feof_unlocked=yes
8438 else
8439   ac_cv_have_decl_feof_unlocked=no
8440 fi
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8444 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8445   if test $ac_cv_have_decl_feof_unlocked = yes; then
8446     gt_value=1
8447   else
8448     gt_value=0
8449   fi
8450
8451 cat >>confdefs.h <<_ACEOF
8452 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8453 _ACEOF
8454
8455
8456
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8458 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8459 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8460   $as_echo_n "(cached) " >&6
8461 else
8462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h.  */
8464 #include <stdio.h>
8465 int
8466 main ()
8467 {
8468
8469 #ifndef fgets_unlocked
8470   char *p = (char *) fgets_unlocked;
8471 #endif
8472
8473   ;
8474   return 0;
8475 }
8476 _ACEOF
8477 if ac_fn_c_try_compile "$LINENO"; then :
8478   ac_cv_have_decl_fgets_unlocked=yes
8479 else
8480   ac_cv_have_decl_fgets_unlocked=no
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 fi
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8485 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8486   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8487     gt_value=1
8488   else
8489     gt_value=0
8490   fi
8491
8492 cat >>confdefs.h <<_ACEOF
8493 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8494 _ACEOF
8495
8496
8497
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8499 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8500 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8501   $as_echo_n "(cached) " >&6
8502 else
8503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h.  */
8505 #include <stdio.h>
8506 int
8507 main ()
8508 {
8509
8510 #ifndef getc_unlocked
8511   char *p = (char *) getc_unlocked;
8512 #endif
8513
8514   ;
8515   return 0;
8516 }
8517 _ACEOF
8518 if ac_fn_c_try_compile "$LINENO"; then :
8519   ac_cv_have_decl_getc_unlocked=yes
8520 else
8521   ac_cv_have_decl_getc_unlocked=no
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8526 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8527   if test $ac_cv_have_decl_getc_unlocked = yes; then
8528     gt_value=1
8529   else
8530     gt_value=0
8531   fi
8532
8533 cat >>confdefs.h <<_ACEOF
8534 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8535 _ACEOF
8536
8537
8538
8539   case $gt_cv_func_printf_posix in
8540     *yes) HAVE_POSIX_PRINTF=1 ;;
8541     *) HAVE_POSIX_PRINTF=0 ;;
8542   esac
8543
8544   if test "$ac_cv_func_asprintf" = yes; then
8545     HAVE_ASPRINTF=1
8546   else
8547     HAVE_ASPRINTF=0
8548   fi
8549
8550   if test "$ac_cv_func_snprintf" = yes; then
8551     HAVE_SNPRINTF=1
8552   else
8553     HAVE_SNPRINTF=0
8554   fi
8555
8556   if test "$ac_cv_func_wprintf" = yes; then
8557     HAVE_WPRINTF=1
8558   else
8559     HAVE_WPRINTF=0
8560   fi
8561
8562
8563
8564
8565
8566
8567
8568           am_save_CPPFLAGS="$CPPFLAGS"
8569
8570   for element in $INCICONV; do
8571     haveit=
8572     for x in $CPPFLAGS; do
8573
8574   acl_save_prefix="$prefix"
8575   prefix="$acl_final_prefix"
8576   acl_save_exec_prefix="$exec_prefix"
8577   exec_prefix="$acl_final_exec_prefix"
8578   eval x=\"$x\"
8579   exec_prefix="$acl_save_exec_prefix"
8580   prefix="$acl_save_prefix"
8581
8582       if test "X$x" = "X$element"; then
8583         haveit=yes
8584         break
8585       fi
8586     done
8587     if test -z "$haveit"; then
8588       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8589     fi
8590   done
8591
8592
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8594 $as_echo_n "checking for iconv... " >&6; }
8595 if ${am_cv_func_iconv+:} false; then :
8596   $as_echo_n "(cached) " >&6
8597 else
8598
8599     am_cv_func_iconv="no, consider installing GNU libiconv"
8600     am_cv_lib_iconv=no
8601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h.  */
8603 #include <stdlib.h>
8604 #include <iconv.h>
8605 int
8606 main ()
8607 {
8608 iconv_t cd = iconv_open("","");
8609        iconv(cd,NULL,NULL,NULL,NULL);
8610        iconv_close(cd);
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8616   am_cv_func_iconv=yes
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext \
8619     conftest$ac_exeext conftest.$ac_ext
8620     if test "$am_cv_func_iconv" != yes; then
8621       am_save_LIBS="$LIBS"
8622       LIBS="$LIBS $LIBICONV"
8623       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h.  */
8625 #include <stdlib.h>
8626 #include <iconv.h>
8627 int
8628 main ()
8629 {
8630 iconv_t cd = iconv_open("","");
8631          iconv(cd,NULL,NULL,NULL,NULL);
8632          iconv_close(cd);
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 if ac_fn_c_try_link "$LINENO"; then :
8638   am_cv_lib_iconv=yes
8639         am_cv_func_iconv=yes
8640 fi
8641 rm -f core conftest.err conftest.$ac_objext \
8642     conftest$ac_exeext conftest.$ac_ext
8643       LIBS="$am_save_LIBS"
8644     fi
8645
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8648 $as_echo "$am_cv_func_iconv" >&6; }
8649   if test "$am_cv_func_iconv" = yes; then
8650
8651 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8652
8653   fi
8654   if test "$am_cv_lib_iconv" = yes; then
8655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8656 $as_echo_n "checking how to link with libiconv... " >&6; }
8657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8658 $as_echo "$LIBICONV" >&6; }
8659   else
8660             CPPFLAGS="$am_save_CPPFLAGS"
8661     LIBICONV=
8662     LTLIBICONV=
8663   fi
8664
8665
8666
8667   if test "$am_cv_func_iconv" = yes; then
8668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8669 $as_echo_n "checking for iconv declaration... " >&6; }
8670     if ${am_cv_proto_iconv+:} false; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673
8674       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h.  */
8676
8677 #include <stdlib.h>
8678 #include <iconv.h>
8679 extern
8680 #ifdef __cplusplus
8681 "C"
8682 #endif
8683 #if defined(__STDC__) || defined(__cplusplus)
8684 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8685 #else
8686 size_t iconv();
8687 #endif
8688
8689 int
8690 main ()
8691 {
8692
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 if ac_fn_c_try_compile "$LINENO"; then :
8698   am_cv_proto_iconv_arg1=""
8699 else
8700   am_cv_proto_iconv_arg1="const"
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703       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);"
8704 fi
8705
8706     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8708          }$am_cv_proto_iconv" >&5
8709 $as_echo "${ac_t:-
8710          }$am_cv_proto_iconv" >&6; }
8711
8712 cat >>confdefs.h <<_ACEOF
8713 #define ICONV_CONST $am_cv_proto_iconv_arg1
8714 _ACEOF
8715
8716   fi
8717
8718
8719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8720 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8721 if ${am_cv_langinfo_codeset+:} false; then :
8722   $as_echo_n "(cached) " >&6
8723 else
8724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h.  */
8726 #include <langinfo.h>
8727 int
8728 main ()
8729 {
8730 char* cs = nl_langinfo(CODESET);
8731   ;
8732   return 0;
8733 }
8734 _ACEOF
8735 if ac_fn_c_try_link "$LINENO"; then :
8736   am_cv_langinfo_codeset=yes
8737 else
8738   am_cv_langinfo_codeset=no
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext \
8741     conftest$ac_exeext conftest.$ac_ext
8742
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8745 $as_echo "$am_cv_langinfo_codeset" >&6; }
8746   if test $am_cv_langinfo_codeset = yes; then
8747
8748 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8749
8750   fi
8751
8752   if test $ac_cv_header_locale_h = yes; then
8753
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8755 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8756 if ${am_cv_val_LC_MESSAGES+:} false; then :
8757   $as_echo_n "(cached) " >&6
8758 else
8759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h.  */
8761 #include <locale.h>
8762 int
8763 main ()
8764 {
8765 return LC_MESSAGES
8766   ;
8767   return 0;
8768 }
8769 _ACEOF
8770 if ac_fn_c_try_link "$LINENO"; then :
8771   am_cv_val_LC_MESSAGES=yes
8772 else
8773   am_cv_val_LC_MESSAGES=no
8774 fi
8775 rm -f core conftest.err conftest.$ac_objext \
8776     conftest$ac_exeext conftest.$ac_ext
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8779 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8780   if test $am_cv_val_LC_MESSAGES = yes; then
8781
8782 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8783
8784   fi
8785
8786   fi
8787
8788                       for ac_prog in bison
8789 do
8790   # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if ${ac_cv_prog_INTLBISON+:} false; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   if test -n "$INTLBISON"; then
8798   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8799 else
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in $PATH
8802 do
8803   IFS=$as_save_IFS
8804   test -z "$as_dir" && as_dir=.
8805     for ac_exec_ext in '' $ac_executable_extensions; do
8806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807     ac_cv_prog_INTLBISON="$ac_prog"
8808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809     break 2
8810   fi
8811 done
8812   done
8813 IFS=$as_save_IFS
8814
8815 fi
8816 fi
8817 INTLBISON=$ac_cv_prog_INTLBISON
8818 if test -n "$INTLBISON"; then
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8820 $as_echo "$INTLBISON" >&6; }
8821 else
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8824 fi
8825
8826
8827   test -n "$INTLBISON" && break
8828 done
8829
8830   if test -z "$INTLBISON"; then
8831     ac_verc_fail=yes
8832   else
8833         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8834 $as_echo_n "checking version of bison... " >&6; }
8835     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8836     case $ac_prog_version in
8837       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8838       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8839          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8840       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8841     esac
8842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8843 $as_echo "$ac_prog_version" >&6; }
8844   fi
8845   if test $ac_verc_fail = yes; then
8846     INTLBISON=:
8847   fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8865 $as_echo_n "checking whether NLS is requested... " >&6; }
8866     # Check whether --enable-nls was given.
8867 if test "${enable_nls+set}" = set; then :
8868   enableval=$enable_nls; USE_NLS=$enableval
8869 else
8870   USE_NLS=yes
8871 fi
8872
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8874 $as_echo "$USE_NLS" >&6; }
8875
8876
8877
8878
8879     BUILD_INCLUDED_LIBINTL=no
8880     USE_INCLUDED_LIBINTL=no
8881
8882   LIBINTL=
8883   LTLIBINTL=
8884   POSUB=
8885
8886     if test "$USE_NLS" = "yes"; then
8887     gt_use_preinstalled_gnugettext=no
8888
8889       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8890 $as_echo_n "checking whether included gettext is requested... " >&6; }
8891
8892 # Check whether --with-included-gettext was given.
8893 if test "${with_included_gettext+set}" = set; then :
8894   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8895 else
8896   nls_cv_force_use_gnu_gettext=no
8897 fi
8898
8899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8900 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8901
8902       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8903       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8904
8905
8906
8907
8908
8909
8910         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8911 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8912 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8913   $as_echo_n "(cached) " >&6
8914 else
8915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h.  */
8917 #include <libintl.h>
8918 extern int _nl_msg_cat_cntr;
8919 extern int *_nl_domain_bindings;
8920 int
8921 main ()
8922 {
8923 bindtextdomain ("", "");
8924 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8925   ;
8926   return 0;
8927 }
8928 _ACEOF
8929 if ac_fn_c_try_link "$LINENO"; then :
8930   gt_cv_func_gnugettext1_libc=yes
8931 else
8932   gt_cv_func_gnugettext1_libc=no
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext \
8935     conftest$ac_exeext conftest.$ac_ext
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8938 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8939
8940         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8941
8942
8943
8944     use_additional=yes
8945
8946   acl_save_prefix="$prefix"
8947   prefix="$acl_final_prefix"
8948   acl_save_exec_prefix="$exec_prefix"
8949   exec_prefix="$acl_final_exec_prefix"
8950
8951     eval additional_includedir=\"$includedir\"
8952     eval additional_libdir=\"$libdir\"
8953
8954   exec_prefix="$acl_save_exec_prefix"
8955   prefix="$acl_save_prefix"
8956
8957
8958 # Check whether --with-libintl-prefix was given.
8959 if test "${with_libintl_prefix+set}" = set; then :
8960   withval=$with_libintl_prefix;
8961     if test "X$withval" = "Xno"; then
8962       use_additional=no
8963     else
8964       if test "X$withval" = "X"; then
8965
8966   acl_save_prefix="$prefix"
8967   prefix="$acl_final_prefix"
8968   acl_save_exec_prefix="$exec_prefix"
8969   exec_prefix="$acl_final_exec_prefix"
8970
8971           eval additional_includedir=\"$includedir\"
8972           eval additional_libdir=\"$libdir\"
8973
8974   exec_prefix="$acl_save_exec_prefix"
8975   prefix="$acl_save_prefix"
8976
8977       else
8978         additional_includedir="$withval/include"
8979         additional_libdir="$withval/lib"
8980       fi
8981     fi
8982
8983 fi
8984
8985       LIBINTL=
8986   LTLIBINTL=
8987   INCINTL=
8988   rpathdirs=
8989   ltrpathdirs=
8990   names_already_handled=
8991   names_next_round='intl '
8992   while test -n "$names_next_round"; do
8993     names_this_round="$names_next_round"
8994     names_next_round=
8995     for name in $names_this_round; do
8996       already_handled=
8997       for n in $names_already_handled; do
8998         if test "$n" = "$name"; then
8999           already_handled=yes
9000           break
9001         fi
9002       done
9003       if test -z "$already_handled"; then
9004         names_already_handled="$names_already_handled $name"
9005                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9006         eval value=\"\$HAVE_LIB$uppername\"
9007         if test -n "$value"; then
9008           if test "$value" = yes; then
9009             eval value=\"\$LIB$uppername\"
9010             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9011             eval value=\"\$LTLIB$uppername\"
9012             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9013           else
9014                                     :
9015           fi
9016         else
9017                               found_dir=
9018           found_la=
9019           found_so=
9020           found_a=
9021           if test $use_additional = yes; then
9022             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9023               found_dir="$additional_libdir"
9024               found_so="$additional_libdir/lib$name.$shlibext"
9025               if test -f "$additional_libdir/lib$name.la"; then
9026                 found_la="$additional_libdir/lib$name.la"
9027               fi
9028             else
9029               if test -f "$additional_libdir/lib$name.$libext"; then
9030                 found_dir="$additional_libdir"
9031                 found_a="$additional_libdir/lib$name.$libext"
9032                 if test -f "$additional_libdir/lib$name.la"; then
9033                   found_la="$additional_libdir/lib$name.la"
9034                 fi
9035               fi
9036             fi
9037           fi
9038           if test "X$found_dir" = "X"; then
9039             for x in $LDFLAGS $LTLIBINTL; do
9040
9041   acl_save_prefix="$prefix"
9042   prefix="$acl_final_prefix"
9043   acl_save_exec_prefix="$exec_prefix"
9044   exec_prefix="$acl_final_exec_prefix"
9045   eval x=\"$x\"
9046   exec_prefix="$acl_save_exec_prefix"
9047   prefix="$acl_save_prefix"
9048
9049               case "$x" in
9050                 -L*)
9051                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9052                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9053                     found_dir="$dir"
9054                     found_so="$dir/lib$name.$shlibext"
9055                     if test -f "$dir/lib$name.la"; then
9056                       found_la="$dir/lib$name.la"
9057                     fi
9058                   else
9059                     if test -f "$dir/lib$name.$libext"; then
9060                       found_dir="$dir"
9061                       found_a="$dir/lib$name.$libext"
9062                       if test -f "$dir/lib$name.la"; then
9063                         found_la="$dir/lib$name.la"
9064                       fi
9065                     fi
9066                   fi
9067                   ;;
9068               esac
9069               if test "X$found_dir" != "X"; then
9070                 break
9071               fi
9072             done
9073           fi
9074           if test "X$found_dir" != "X"; then
9075                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9076             if test "X$found_so" != "X"; then
9077                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9078                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9079               else
9080                                                                                 haveit=
9081                 for x in $ltrpathdirs; do
9082                   if test "X$x" = "X$found_dir"; then
9083                     haveit=yes
9084                     break
9085                   fi
9086                 done
9087                 if test -z "$haveit"; then
9088                   ltrpathdirs="$ltrpathdirs $found_dir"
9089                 fi
9090                                 if test "$hardcode_direct" = yes; then
9091                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9092                 else
9093                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9094                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9095                                                             haveit=
9096                     for x in $rpathdirs; do
9097                       if test "X$x" = "X$found_dir"; then
9098                         haveit=yes
9099                         break
9100                       fi
9101                     done
9102                     if test -z "$haveit"; then
9103                       rpathdirs="$rpathdirs $found_dir"
9104                     fi
9105                   else
9106                                                                                 haveit=
9107                     for x in $LDFLAGS $LIBINTL; do
9108
9109   acl_save_prefix="$prefix"
9110   prefix="$acl_final_prefix"
9111   acl_save_exec_prefix="$exec_prefix"
9112   exec_prefix="$acl_final_exec_prefix"
9113   eval x=\"$x\"
9114   exec_prefix="$acl_save_exec_prefix"
9115   prefix="$acl_save_prefix"
9116
9117                       if test "X$x" = "X-L$found_dir"; then
9118                         haveit=yes
9119                         break
9120                       fi
9121                     done
9122                     if test -z "$haveit"; then
9123                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9124                     fi
9125                     if test "$hardcode_minus_L" != no; then
9126                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9127                     else
9128                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9129                     fi
9130                   fi
9131                 fi
9132               fi
9133             else
9134               if test "X$found_a" != "X"; then
9135                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9136               else
9137                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9138               fi
9139             fi
9140                         additional_includedir=
9141             case "$found_dir" in
9142               */lib | */lib/)
9143                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9144                 additional_includedir="$basedir/include"
9145                 ;;
9146             esac
9147             if test "X$additional_includedir" != "X"; then
9148                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9149                 haveit=
9150                 if test "X$additional_includedir" = "X/usr/local/include"; then
9151                   if test -n "$GCC"; then
9152                     case $host_os in
9153                       linux*) haveit=yes;;
9154                     esac
9155                   fi
9156                 fi
9157                 if test -z "$haveit"; then
9158                   for x in $CPPFLAGS $INCINTL; do
9159
9160   acl_save_prefix="$prefix"
9161   prefix="$acl_final_prefix"
9162   acl_save_exec_prefix="$exec_prefix"
9163   exec_prefix="$acl_final_exec_prefix"
9164   eval x=\"$x\"
9165   exec_prefix="$acl_save_exec_prefix"
9166   prefix="$acl_save_prefix"
9167
9168                     if test "X$x" = "X-I$additional_includedir"; then
9169                       haveit=yes
9170                       break
9171                     fi
9172                   done
9173                   if test -z "$haveit"; then
9174                     if test -d "$additional_includedir"; then
9175                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9176                     fi
9177                   fi
9178                 fi
9179               fi
9180             fi
9181                         if test -n "$found_la"; then
9182                                                         save_libdir="$libdir"
9183               case "$found_la" in
9184                 */* | *\\*) . "$found_la" ;;
9185                 *) . "./$found_la" ;;
9186               esac
9187               libdir="$save_libdir"
9188                             for dep in $dependency_libs; do
9189                 case "$dep" in
9190                   -L*)
9191                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9192                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9193                       haveit=
9194                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9195                         if test -n "$GCC"; then
9196                           case $host_os in
9197                             linux*) haveit=yes;;
9198                           esac
9199                         fi
9200                       fi
9201                       if test -z "$haveit"; then
9202                         haveit=
9203                         for x in $LDFLAGS $LIBINTL; do
9204
9205   acl_save_prefix="$prefix"
9206   prefix="$acl_final_prefix"
9207   acl_save_exec_prefix="$exec_prefix"
9208   exec_prefix="$acl_final_exec_prefix"
9209   eval x=\"$x\"
9210   exec_prefix="$acl_save_exec_prefix"
9211   prefix="$acl_save_prefix"
9212
9213                           if test "X$x" = "X-L$additional_libdir"; then
9214                             haveit=yes
9215                             break
9216                           fi
9217                         done
9218                         if test -z "$haveit"; then
9219                           if test -d "$additional_libdir"; then
9220                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9221                           fi
9222                         fi
9223                         haveit=
9224                         for x in $LDFLAGS $LTLIBINTL; do
9225
9226   acl_save_prefix="$prefix"
9227   prefix="$acl_final_prefix"
9228   acl_save_exec_prefix="$exec_prefix"
9229   exec_prefix="$acl_final_exec_prefix"
9230   eval x=\"$x\"
9231   exec_prefix="$acl_save_exec_prefix"
9232   prefix="$acl_save_prefix"
9233
9234                           if test "X$x" = "X-L$additional_libdir"; then
9235                             haveit=yes
9236                             break
9237                           fi
9238                         done
9239                         if test -z "$haveit"; then
9240                           if test -d "$additional_libdir"; then
9241                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9242                           fi
9243                         fi
9244                       fi
9245                     fi
9246                     ;;
9247                   -R*)
9248                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9249                     if test "$enable_rpath" != no; then
9250                                                                   haveit=
9251                       for x in $rpathdirs; do
9252                         if test "X$x" = "X$dir"; then
9253                           haveit=yes
9254                           break
9255                         fi
9256                       done
9257                       if test -z "$haveit"; then
9258                         rpathdirs="$rpathdirs $dir"
9259                       fi
9260                                                                   haveit=
9261                       for x in $ltrpathdirs; do
9262                         if test "X$x" = "X$dir"; then
9263                           haveit=yes
9264                           break
9265                         fi
9266                       done
9267                       if test -z "$haveit"; then
9268                         ltrpathdirs="$ltrpathdirs $dir"
9269                       fi
9270                     fi
9271                     ;;
9272                   -l*)
9273                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9274                     ;;
9275                   *.la)
9276                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9277                     ;;
9278                   *)
9279                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9280                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9281                     ;;
9282                 esac
9283               done
9284             fi
9285           else
9286                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9287             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9288           fi
9289         fi
9290       fi
9291     done
9292   done
9293   if test "X$rpathdirs" != "X"; then
9294     if test -n "$hardcode_libdir_separator"; then
9295                         alldirs=
9296       for found_dir in $rpathdirs; do
9297         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9298       done
9299             acl_save_libdir="$libdir"
9300       libdir="$alldirs"
9301       eval flag=\"$hardcode_libdir_flag_spec\"
9302       libdir="$acl_save_libdir"
9303       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9304     else
9305             for found_dir in $rpathdirs; do
9306         acl_save_libdir="$libdir"
9307         libdir="$found_dir"
9308         eval flag=\"$hardcode_libdir_flag_spec\"
9309         libdir="$acl_save_libdir"
9310         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9311       done
9312     fi
9313   fi
9314   if test "X$ltrpathdirs" != "X"; then
9315             for found_dir in $ltrpathdirs; do
9316       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9317     done
9318   fi
9319
9320           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9321 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9322 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9323   $as_echo_n "(cached) " >&6
9324 else
9325   gt_save_CPPFLAGS="$CPPFLAGS"
9326             CPPFLAGS="$CPPFLAGS $INCINTL"
9327             gt_save_LIBS="$LIBS"
9328             LIBS="$LIBS $LIBINTL"
9329                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h.  */
9331 #include <libintl.h>
9332 extern int _nl_msg_cat_cntr;
9333 extern
9334 #ifdef __cplusplus
9335 "C"
9336 #endif
9337 const char *_nl_expand_alias ();
9338 int
9339 main ()
9340 {
9341 bindtextdomain ("", "");
9342 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_link "$LINENO"; then :
9348   gt_cv_func_gnugettext1_libintl=yes
9349 else
9350   gt_cv_func_gnugettext1_libintl=no
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext \
9353     conftest$ac_exeext conftest.$ac_ext
9354                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9355               LIBS="$LIBS $LIBICONV"
9356               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h.  */
9358 #include <libintl.h>
9359 extern int _nl_msg_cat_cntr;
9360 extern
9361 #ifdef __cplusplus
9362 "C"
9363 #endif
9364 const char *_nl_expand_alias ();
9365 int
9366 main ()
9367 {
9368 bindtextdomain ("", "");
9369 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9370   ;
9371   return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"; then :
9375   LIBINTL="$LIBINTL $LIBICONV"
9376                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9377                 gt_cv_func_gnugettext1_libintl=yes
9378
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext \
9381     conftest$ac_exeext conftest.$ac_ext
9382             fi
9383             CPPFLAGS="$gt_save_CPPFLAGS"
9384             LIBS="$gt_save_LIBS"
9385 fi
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9387 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9388         fi
9389
9390                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9391            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9392                 && test "$PACKAGE" != gettext-runtime \
9393                 && test "$PACKAGE" != gettext-tools; }; then
9394           gt_use_preinstalled_gnugettext=yes
9395         else
9396                     LIBINTL=
9397           LTLIBINTL=
9398           INCINTL=
9399         fi
9400
9401
9402         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9403                               nls_cv_use_gnu_gettext=yes
9404         fi
9405       fi
9406
9407       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9408                 BUILD_INCLUDED_LIBINTL=yes
9409         USE_INCLUDED_LIBINTL=yes
9410         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9411         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9412         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9413       fi
9414
9415       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9416          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9417                 CATOBJEXT=.gmo
9418       fi
9419
9420
9421     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9422        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9423
9424 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9425
9426     else
9427       USE_NLS=no
9428     fi
9429   fi
9430
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9432 $as_echo_n "checking whether to use NLS... " >&6; }
9433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9434 $as_echo "$USE_NLS" >&6; }
9435   if test "$USE_NLS" = "yes"; then
9436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9437 $as_echo_n "checking where the gettext function comes from... " >&6; }
9438     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9439       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9440         gt_source="external libintl"
9441       else
9442         gt_source="libc"
9443       fi
9444     else
9445       gt_source="included intl directory"
9446     fi
9447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9448 $as_echo "$gt_source" >&6; }
9449   fi
9450
9451   if test "$USE_NLS" = "yes"; then
9452
9453     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9454       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9456 $as_echo_n "checking how to link with libintl... " >&6; }
9457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9458 $as_echo "$LIBINTL" >&6; }
9459
9460   for element in $INCINTL; do
9461     haveit=
9462     for x in $CPPFLAGS; do
9463
9464   acl_save_prefix="$prefix"
9465   prefix="$acl_final_prefix"
9466   acl_save_exec_prefix="$exec_prefix"
9467   exec_prefix="$acl_final_exec_prefix"
9468   eval x=\"$x\"
9469   exec_prefix="$acl_save_exec_prefix"
9470   prefix="$acl_save_prefix"
9471
9472       if test "X$x" = "X$element"; then
9473         haveit=yes
9474         break
9475       fi
9476     done
9477     if test -z "$haveit"; then
9478       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9479     fi
9480   done
9481
9482       fi
9483
9484
9485 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9486
9487
9488 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9489
9490     fi
9491
9492         POSUB=po
9493   fi
9494
9495
9496             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9497       BUILD_INCLUDED_LIBINTL=yes
9498     fi
9499
9500
9501
9502
9503
9504         nls_cv_header_intl=
9505     nls_cv_header_libgt=
9506
9507         DATADIRNAME=share
9508
9509
9510         INSTOBJEXT=.mo
9511
9512
9513         GENCAT=gencat
9514
9515
9516         if test "$USE_INCLUDED_LIBINTL" = yes; then
9517       INTLOBJS="\$(GETTOBJS)"
9518     fi
9519
9520
9521         INTL_LIBTOOL_SUFFIX_PREFIX=
9522
9523
9524
9525     INTLLIBS="$LIBINTL"
9526
9527
9528
9529
9530
9531
9532
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9534 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9535 set x ${MAKE-make}
9536 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9537 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9538   $as_echo_n "(cached) " >&6
9539 else
9540   cat >conftest.make <<\_ACEOF
9541 SHELL = /bin/sh
9542 all:
9543         @echo '@@@%%%=$(MAKE)=@@@%%%'
9544 _ACEOF
9545 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9546 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9547   *@@@%%%=?*=@@@%%%*)
9548     eval ac_cv_prog_make_${ac_make}_set=yes;;
9549   *)
9550     eval ac_cv_prog_make_${ac_make}_set=no;;
9551 esac
9552 rm -f conftest.make
9553 fi
9554 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9556 $as_echo "yes" >&6; }
9557   SET_MAKE=
9558 else
9559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9561   SET_MAKE="MAKE=${MAKE-make}"
9562 fi
9563
9564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9565 $as_echo_n "checking for GNU make... " >&6; }
9566 if ${_cv_gnu_make_command+:} false; then :
9567   $as_echo_n "(cached) " >&6
9568 else
9569   _cv_gnu_make_command='' ;
9570                 for a in "$MAKE" make gmake gnumake ; do
9571                         if test -z "$a" ; then continue ; fi ;
9572                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9573                                 _cv_gnu_make_command=$a ;
9574                                 break;
9575                         fi
9576                 done ;
9577
9578 fi
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9580 $as_echo "$_cv_gnu_make_command" >&6; } ;
9581         if test  "x$_cv_gnu_make_command" != "x"  ; then
9582                 ifGNUmake='' ;
9583                 ifNotGNUmake='#' ;
9584         else
9585                 ifGNUmake='#' ;
9586                 ifNotGNUmake='' ;
9587                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9588 $as_echo "\"Not found\"" >&6; };
9589         fi
9590
9591
9592
9593 # Extract the first word of "ln", so it can be a program name with args.
9594 set dummy ln; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_path_LN+:} false; then :
9598   $as_echo_n "(cached) " >&6
9599 else
9600   case $LN in
9601   [\\/]* | ?:[\\/]*)
9602   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9603   ;;
9604   *)
9605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9607 do
9608   IFS=$as_save_IFS
9609   test -z "$as_dir" && as_dir=.
9610     for ac_exec_ext in '' $ac_executable_extensions; do
9611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614     break 2
9615   fi
9616 done
9617   done
9618 IFS=$as_save_IFS
9619
9620   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9621   ;;
9622 esac
9623 fi
9624 LN=$ac_cv_path_LN
9625 if test -n "$LN"; then
9626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9627 $as_echo "$LN" >&6; }
9628 else
9629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9631 fi
9632
9633
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9635 $as_echo_n "checking whether ln -s works... " >&6; }
9636 LN_S=$as_ln_s
9637 if test "$LN_S" = "ln -s"; then
9638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9639 $as_echo "yes" >&6; }
9640 else
9641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9642 $as_echo "no, using $LN_S" >&6; }
9643 fi
9644
9645 # Extract the first word of "mv", so it can be a program name with args.
9646 set dummy mv; ac_word=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if ${ac_cv_path_MV+:} false; then :
9650   $as_echo_n "(cached) " >&6
9651 else
9652   case $MV in
9653   [\\/]* | ?:[\\/]*)
9654   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9655   ;;
9656   *)
9657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9659 do
9660   IFS=$as_save_IFS
9661   test -z "$as_dir" && as_dir=.
9662     for ac_exec_ext in '' $ac_executable_extensions; do
9663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9664     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666     break 2
9667   fi
9668 done
9669   done
9670 IFS=$as_save_IFS
9671
9672   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9673   ;;
9674 esac
9675 fi
9676 MV=$ac_cv_path_MV
9677 if test -n "$MV"; then
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9679 $as_echo "$MV" >&6; }
9680 else
9681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9683 fi
9684
9685
9686 # Extract the first word of "cp", so it can be a program name with args.
9687 set dummy cp; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if ${ac_cv_path_CP+:} false; then :
9691   $as_echo_n "(cached) " >&6
9692 else
9693   case $CP in
9694   [\\/]* | ?:[\\/]*)
9695   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9696   ;;
9697   *)
9698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 for as_dir in $PATH
9700 do
9701   IFS=$as_save_IFS
9702   test -z "$as_dir" && as_dir=.
9703     for ac_exec_ext in '' $ac_executable_extensions; do
9704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9705     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707     break 2
9708   fi
9709 done
9710   done
9711 IFS=$as_save_IFS
9712
9713   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9714   ;;
9715 esac
9716 fi
9717 CP=$ac_cv_path_CP
9718 if test -n "$CP"; then
9719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9720 $as_echo "$CP" >&6; }
9721 else
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723 $as_echo "no" >&6; }
9724 fi
9725
9726
9727 # Extract the first word of "rm", so it can be a program name with args.
9728 set dummy rm; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if ${ac_cv_path_RM+:} false; then :
9732   $as_echo_n "(cached) " >&6
9733 else
9734   case $RM in
9735   [\\/]* | ?:[\\/]*)
9736   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9737   ;;
9738   *)
9739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 for as_dir in $PATH
9741 do
9742   IFS=$as_save_IFS
9743   test -z "$as_dir" && as_dir=.
9744     for ac_exec_ext in '' $ac_executable_extensions; do
9745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748     break 2
9749   fi
9750 done
9751   done
9752 IFS=$as_save_IFS
9753
9754   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9755   ;;
9756 esac
9757 fi
9758 RM=$ac_cv_path_RM
9759 if test -n "$RM"; then
9760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9761 $as_echo "$RM" >&6; }
9762 else
9763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9765 fi
9766
9767
9768 # Extract the first word of "chmod", so it can be a program name with args.
9769 set dummy chmod; ac_word=$2
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 $as_echo_n "checking for $ac_word... " >&6; }
9772 if ${ac_cv_path_CHMOD+:} false; then :
9773   $as_echo_n "(cached) " >&6
9774 else
9775   case $CHMOD in
9776   [\\/]* | ?:[\\/]*)
9777   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9778   ;;
9779   *)
9780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 for as_dir in $PATH
9782 do
9783   IFS=$as_save_IFS
9784   test -z "$as_dir" && as_dir=.
9785     for ac_exec_ext in '' $ac_executable_extensions; do
9786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9787     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789     break 2
9790   fi
9791 done
9792   done
9793 IFS=$as_save_IFS
9794
9795   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9796   ;;
9797 esac
9798 fi
9799 CHMOD=$ac_cv_path_CHMOD
9800 if test -n "$CHMOD"; then
9801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9802 $as_echo "$CHMOD" >&6; }
9803 else
9804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; }
9806 fi
9807
9808
9809 for ac_prog in gawk mawk nawk awk
9810 do
9811   # Extract the first word of "$ac_prog", so it can be a program name with args.
9812 set dummy $ac_prog; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_prog_AWK+:} false; then :
9816   $as_echo_n "(cached) " >&6
9817 else
9818   if test -n "$AWK"; then
9819   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9820 else
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in $PATH
9823 do
9824   IFS=$as_save_IFS
9825   test -z "$as_dir" && as_dir=.
9826     for ac_exec_ext in '' $ac_executable_extensions; do
9827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9828     ac_cv_prog_AWK="$ac_prog"
9829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9830     break 2
9831   fi
9832 done
9833   done
9834 IFS=$as_save_IFS
9835
9836 fi
9837 fi
9838 AWK=$ac_cv_prog_AWK
9839 if test -n "$AWK"; then
9840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9841 $as_echo "$AWK" >&6; }
9842 else
9843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9845 fi
9846
9847
9848   test -n "$AWK" && break
9849 done
9850
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9852 $as_echo_n "checking for egrep... " >&6; }
9853 if ${ac_cv_path_EGREP+:} false; then :
9854   $as_echo_n "(cached) " >&6
9855 else
9856   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9857    then ac_cv_path_EGREP="$GREP -E"
9858    else
9859      if test -z "$EGREP"; then
9860   ac_path_EGREP_found=false
9861   # Loop through the user's path and test for each of PROGNAME-LIST
9862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9864 do
9865   IFS=$as_save_IFS
9866   test -z "$as_dir" && as_dir=.
9867     for ac_prog in egrep; do
9868     for ac_exec_ext in '' $ac_executable_extensions; do
9869       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9870       as_fn_executable_p "$ac_path_EGREP" || continue
9871 # Check for GNU ac_path_EGREP and select it if it is found.
9872   # Check for GNU $ac_path_EGREP
9873 case `"$ac_path_EGREP" --version 2>&1` in
9874 *GNU*)
9875   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9876 *)
9877   ac_count=0
9878   $as_echo_n 0123456789 >"conftest.in"
9879   while :
9880   do
9881     cat "conftest.in" "conftest.in" >"conftest.tmp"
9882     mv "conftest.tmp" "conftest.in"
9883     cp "conftest.in" "conftest.nl"
9884     $as_echo 'EGREP' >> "conftest.nl"
9885     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9886     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9887     as_fn_arith $ac_count + 1 && ac_count=$as_val
9888     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9889       # Best one so far, save it but keep looking for a better one
9890       ac_cv_path_EGREP="$ac_path_EGREP"
9891       ac_path_EGREP_max=$ac_count
9892     fi
9893     # 10*(2^10) chars as input seems more than enough
9894     test $ac_count -gt 10 && break
9895   done
9896   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9897 esac
9898
9899       $ac_path_EGREP_found && break 3
9900     done
9901   done
9902   done
9903 IFS=$as_save_IFS
9904   if test -z "$ac_cv_path_EGREP"; then
9905     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9906   fi
9907 else
9908   ac_cv_path_EGREP=$EGREP
9909 fi
9910
9911    fi
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9914 $as_echo "$ac_cv_path_EGREP" >&6; }
9915  EGREP="$ac_cv_path_EGREP"
9916
9917
9918 # Extract the first word of "sed", so it can be a program name with args.
9919 set dummy sed; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if ${ac_cv_path_SED+:} false; then :
9923   $as_echo_n "(cached) " >&6
9924 else
9925   case $SED in
9926   [\\/]* | ?:[\\/]*)
9927   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9928   ;;
9929   *)
9930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 for as_dir in $PATH
9932 do
9933   IFS=$as_save_IFS
9934   test -z "$as_dir" && as_dir=.
9935     for ac_exec_ext in '' $ac_executable_extensions; do
9936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9937     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939     break 2
9940   fi
9941 done
9942   done
9943 IFS=$as_save_IFS
9944
9945   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9946   ;;
9947 esac
9948 fi
9949 SED=$ac_cv_path_SED
9950 if test -n "$SED"; then
9951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9952 $as_echo "$SED" >&6; }
9953 else
9954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9956 fi
9957
9958
9959 # Extract the first word of "perl", so it can be a program name with args.
9960 set dummy perl; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if ${ac_cv_path_PERL+:} false; then :
9964   $as_echo_n "(cached) " >&6
9965 else
9966   case $PERL in
9967   [\\/]* | ?:[\\/]*)
9968   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9969   ;;
9970   *)
9971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9973 do
9974   IFS=$as_save_IFS
9975   test -z "$as_dir" && as_dir=.
9976     for ac_exec_ext in '' $ac_executable_extensions; do
9977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9978     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980     break 2
9981   fi
9982 done
9983   done
9984 IFS=$as_save_IFS
9985
9986   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9987   ;;
9988 esac
9989 fi
9990 PERL=$ac_cv_path_PERL
9991 if test -n "$PERL"; then
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9993 $as_echo "$PERL" >&6; }
9994 else
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9997 fi
9998
9999
10000 # Extract the first word of "ldconfig", so it can be a program name with args.
10001 set dummy ldconfig; ac_word=$2
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10003 $as_echo_n "checking for $ac_word... " >&6; }
10004 if ${ac_cv_path_LDCONFIG+:} false; then :
10005   $as_echo_n "(cached) " >&6
10006 else
10007   case $LDCONFIG in
10008   [\\/]* | ?:[\\/]*)
10009   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10010   ;;
10011   *)
10012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10013 for as_dir in $PATH
10014 do
10015   IFS=$as_save_IFS
10016   test -z "$as_dir" && as_dir=.
10017     for ac_exec_ext in '' $ac_executable_extensions; do
10018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10019     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10021     break 2
10022   fi
10023 done
10024   done
10025 IFS=$as_save_IFS
10026
10027   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10028   ;;
10029 esac
10030 fi
10031 LDCONFIG=$ac_cv_path_LDCONFIG
10032 if test -n "$LDCONFIG"; then
10033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10034 $as_echo "$LDCONFIG" >&6; }
10035 else
10036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 $as_echo "no" >&6; }
10038 fi
10039
10040
10041 if test -n "$ac_tool_prefix"; then
10042   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10043 set dummy ${ac_tool_prefix}ar; ac_word=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if ${ac_cv_prog_AR+:} false; then :
10047   $as_echo_n "(cached) " >&6
10048 else
10049   if test -n "$AR"; then
10050   ac_cv_prog_AR="$AR" # Let the user override the test.
10051 else
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10054 do
10055   IFS=$as_save_IFS
10056   test -z "$as_dir" && as_dir=.
10057     for ac_exec_ext in '' $ac_executable_extensions; do
10058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059     ac_cv_prog_AR="${ac_tool_prefix}ar"
10060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061     break 2
10062   fi
10063 done
10064   done
10065 IFS=$as_save_IFS
10066
10067 fi
10068 fi
10069 AR=$ac_cv_prog_AR
10070 if test -n "$AR"; then
10071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10072 $as_echo "$AR" >&6; }
10073 else
10074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10076 fi
10077
10078
10079 fi
10080 if test -z "$ac_cv_prog_AR"; then
10081   ac_ct_AR=$AR
10082   # Extract the first word of "ar", so it can be a program name with args.
10083 set dummy ar; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10087   $as_echo_n "(cached) " >&6
10088 else
10089   if test -n "$ac_ct_AR"; then
10090   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10091 else
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10094 do
10095   IFS=$as_save_IFS
10096   test -z "$as_dir" && as_dir=.
10097     for ac_exec_ext in '' $ac_executable_extensions; do
10098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10099     ac_cv_prog_ac_ct_AR="ar"
10100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10101     break 2
10102   fi
10103 done
10104   done
10105 IFS=$as_save_IFS
10106
10107 fi
10108 fi
10109 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10110 if test -n "$ac_ct_AR"; then
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10112 $as_echo "$ac_ct_AR" >&6; }
10113 else
10114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10116 fi
10117
10118   if test "x$ac_ct_AR" = x; then
10119     AR="ar"
10120   else
10121     case $cross_compiling:$ac_tool_warned in
10122 yes:)
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10125 ac_tool_warned=yes ;;
10126 esac
10127     AR=$ac_ct_AR
10128   fi
10129 else
10130   AR="$ac_cv_prog_AR"
10131 fi
10132
10133 if test -n "$ac_tool_prefix"; then
10134   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if ${ac_cv_prog_RANLIB+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   if test -n "$RANLIB"; then
10142   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10143 else
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10146 do
10147   IFS=$as_save_IFS
10148   test -z "$as_dir" && as_dir=.
10149     for ac_exec_ext in '' $ac_executable_extensions; do
10150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153     break 2
10154   fi
10155 done
10156   done
10157 IFS=$as_save_IFS
10158
10159 fi
10160 fi
10161 RANLIB=$ac_cv_prog_RANLIB
10162 if test -n "$RANLIB"; then
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10164 $as_echo "$RANLIB" >&6; }
10165 else
10166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 fi
10169
10170
10171 fi
10172 if test -z "$ac_cv_prog_RANLIB"; then
10173   ac_ct_RANLIB=$RANLIB
10174   # Extract the first word of "ranlib", so it can be a program name with args.
10175 set dummy ranlib; ac_word=$2
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 $as_echo_n "checking for $ac_word... " >&6; }
10178 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10179   $as_echo_n "(cached) " >&6
10180 else
10181   if test -n "$ac_ct_RANLIB"; then
10182   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10183 else
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10186 do
10187   IFS=$as_save_IFS
10188   test -z "$as_dir" && as_dir=.
10189     for ac_exec_ext in '' $ac_executable_extensions; do
10190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191     ac_cv_prog_ac_ct_RANLIB="ranlib"
10192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193     break 2
10194   fi
10195 done
10196   done
10197 IFS=$as_save_IFS
10198
10199 fi
10200 fi
10201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10202 if test -n "$ac_ct_RANLIB"; then
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10204 $as_echo "$ac_ct_RANLIB" >&6; }
10205 else
10206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208 fi
10209
10210   if test "x$ac_ct_RANLIB" = x; then
10211     RANLIB=":"
10212   else
10213     case $cross_compiling:$ac_tool_warned in
10214 yes:)
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10217 ac_tool_warned=yes ;;
10218 esac
10219     RANLIB=$ac_ct_RANLIB
10220   fi
10221 else
10222   RANLIB="$ac_cv_prog_RANLIB"
10223 fi
10224
10225 if test -n "$ac_tool_prefix"; then
10226   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10227 set dummy ${ac_tool_prefix}strip; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if ${ac_cv_prog_STRIP+:} false; then :
10231   $as_echo_n "(cached) " >&6
10232 else
10233   if test -n "$STRIP"; then
10234   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10235 else
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10238 do
10239   IFS=$as_save_IFS
10240   test -z "$as_dir" && as_dir=.
10241     for ac_exec_ext in '' $ac_executable_extensions; do
10242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10243     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10245     break 2
10246   fi
10247 done
10248   done
10249 IFS=$as_save_IFS
10250
10251 fi
10252 fi
10253 STRIP=$ac_cv_prog_STRIP
10254 if test -n "$STRIP"; then
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10256 $as_echo "$STRIP" >&6; }
10257 else
10258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10260 fi
10261
10262
10263 fi
10264 if test -z "$ac_cv_prog_STRIP"; then
10265   ac_ct_STRIP=$STRIP
10266   # Extract the first word of "strip", so it can be a program name with args.
10267 set dummy strip; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10271   $as_echo_n "(cached) " >&6
10272 else
10273   if test -n "$ac_ct_STRIP"; then
10274   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10275 else
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10278 do
10279   IFS=$as_save_IFS
10280   test -z "$as_dir" && as_dir=.
10281     for ac_exec_ext in '' $ac_executable_extensions; do
10282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283     ac_cv_prog_ac_ct_STRIP="strip"
10284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285     break 2
10286   fi
10287 done
10288   done
10289 IFS=$as_save_IFS
10290
10291 fi
10292 fi
10293 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10294 if test -n "$ac_ct_STRIP"; then
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10296 $as_echo "$ac_ct_STRIP" >&6; }
10297 else
10298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10300 fi
10301
10302   if test "x$ac_ct_STRIP" = x; then
10303     STRIP=":"
10304   else
10305     case $cross_compiling:$ac_tool_warned in
10306 yes:)
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10309 ac_tool_warned=yes ;;
10310 esac
10311     STRIP=$ac_ct_STRIP
10312   fi
10313 else
10314   STRIP="$ac_cv_prog_STRIP"
10315 fi
10316
10317 # Extract the first word of "makeinfo", so it can be a program name with args.
10318 set dummy makeinfo; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if ${ac_cv_prog_MAKEINFO+:} false; then :
10322   $as_echo_n "(cached) " >&6
10323 else
10324   if test -n "$MAKEINFO"; then
10325   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10326 else
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10329 do
10330   IFS=$as_save_IFS
10331   test -z "$as_dir" && as_dir=.
10332     for ac_exec_ext in '' $ac_executable_extensions; do
10333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10334     ac_cv_prog_MAKEINFO="makeinfo"
10335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10336     break 2
10337   fi
10338 done
10339   done
10340 IFS=$as_save_IFS
10341
10342 fi
10343 fi
10344 MAKEINFO=$ac_cv_prog_MAKEINFO
10345 if test -n "$MAKEINFO"; then
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10347 $as_echo "$MAKEINFO" >&6; }
10348 else
10349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10351 fi
10352
10353
10354 if test "_$MAKEINFO" = "_"; then
10355     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10356 else
10357     case "$MAKEINFO" in
10358       */missing.*)
10359         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10360 *** Makeinfo is missing. Info documentation will not be built." >&5
10361 $as_echo "$as_me: WARNING:
10362 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10363         ;;
10364       *)
10365         ;;
10366     esac
10367 fi
10368
10369
10370 # See if we need a separate native compiler.
10371 if test $cross_compiling = no; then
10372   BUILD_CC="$CC"
10373
10374 else
10375   for ac_prog in gcc cc
10376 do
10377   # Extract the first word of "$ac_prog", so it can be a program name with args.
10378 set dummy $ac_prog; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_prog_BUILD_CC+:} false; then :
10382   $as_echo_n "(cached) " >&6
10383 else
10384   if test -n "$BUILD_CC"; then
10385   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10386 else
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10389 do
10390   IFS=$as_save_IFS
10391   test -z "$as_dir" && as_dir=.
10392     for ac_exec_ext in '' $ac_executable_extensions; do
10393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10394     ac_cv_prog_BUILD_CC="$ac_prog"
10395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10396     break 2
10397   fi
10398 done
10399   done
10400 IFS=$as_save_IFS
10401
10402 fi
10403 fi
10404 BUILD_CC=$ac_cv_prog_BUILD_CC
10405 if test -n "$BUILD_CC"; then
10406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10407 $as_echo "$BUILD_CC" >&6; }
10408 else
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10411 fi
10412
10413
10414   test -n "$BUILD_CC" && break
10415 done
10416
10417 fi
10418 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
10419 do :
10420   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10421 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10423   cat >>confdefs.h <<_ACEOF
10424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10425 _ACEOF
10426
10427 fi
10428
10429 done
10430
10431 for ac_header in sys/disk.h sys/mount.h
10432 do :
10433   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10434 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10435 #if HAVE_SYS_QUEUE_H
10436 #include <sys/queue.h>
10437 #endif
10438
10439 "
10440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10441   cat >>confdefs.h <<_ACEOF
10442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10443 _ACEOF
10444
10445 fi
10446
10447 done
10448
10449 for ac_header in net/if.h
10450 do :
10451   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10452 #if HAVE_SYS_TYPES_H
10453 #include <sys/types.h>
10454 #endif
10455 #if HAVE_SYS_SOCKET
10456 #include <sys/socket.h>
10457 #endif
10458
10459 "
10460 if test "x$ac_cv_header_net_if_h" = xyes; then :
10461   cat >>confdefs.h <<_ACEOF
10462 #define HAVE_NET_IF_H 1
10463 _ACEOF
10464
10465 fi
10466
10467 done
10468
10469 for ac_func in vprintf
10470 do :
10471   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10472 if test "x$ac_cv_func_vprintf" = xyes; then :
10473   cat >>confdefs.h <<_ACEOF
10474 #define HAVE_VPRINTF 1
10475 _ACEOF
10476
10477 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10478 if test "x$ac_cv_func__doprnt" = xyes; then :
10479
10480 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10481
10482 fi
10483
10484 fi
10485 done
10486
10487
10488 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10489 "
10490 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10491
10492 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10493
10494 fi
10495
10496 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10497 "
10498 if test "x$ac_cv_type_ssize_t" = xyes; then :
10499
10500 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10501
10502 fi
10503
10504 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10505 "
10506 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10507
10508 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10509
10510 fi
10511
10512 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10513                  #define _LARGEFILE64_SOURCE
10514                  #include <unistd.h>
10515 "
10516 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10517
10518 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10519
10520 fi
10521
10522 # The cast to long int works around a bug in the HP C Compiler
10523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10525 # This bug is HP SR number 8606223364.
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10527 $as_echo_n "checking size of short... " >&6; }
10528 if ${ac_cv_sizeof_short+:} false; then :
10529   $as_echo_n "(cached) " >&6
10530 else
10531   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10532
10533 else
10534   if test "$ac_cv_type_short" = yes; then
10535      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10537 as_fn_error 77 "cannot compute sizeof (short)
10538 See \`config.log' for more details" "$LINENO" 5; }
10539    else
10540      ac_cv_sizeof_short=0
10541    fi
10542 fi
10543
10544 fi
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10546 $as_echo "$ac_cv_sizeof_short" >&6; }
10547
10548
10549
10550 cat >>confdefs.h <<_ACEOF
10551 #define SIZEOF_SHORT $ac_cv_sizeof_short
10552 _ACEOF
10553
10554
10555 # The cast to long int works around a bug in the HP C Compiler
10556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10558 # This bug is HP SR number 8606223364.
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10560 $as_echo_n "checking size of int... " >&6; }
10561 if ${ac_cv_sizeof_int+:} false; then :
10562   $as_echo_n "(cached) " >&6
10563 else
10564   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10565
10566 else
10567   if test "$ac_cv_type_int" = yes; then
10568      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10570 as_fn_error 77 "cannot compute sizeof (int)
10571 See \`config.log' for more details" "$LINENO" 5; }
10572    else
10573      ac_cv_sizeof_int=0
10574    fi
10575 fi
10576
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10579 $as_echo "$ac_cv_sizeof_int" >&6; }
10580
10581
10582
10583 cat >>confdefs.h <<_ACEOF
10584 #define SIZEOF_INT $ac_cv_sizeof_int
10585 _ACEOF
10586
10587
10588 # The cast to long int works around a bug in the HP C Compiler
10589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10591 # This bug is HP SR number 8606223364.
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10593 $as_echo_n "checking size of long... " >&6; }
10594 if ${ac_cv_sizeof_long+:} false; then :
10595   $as_echo_n "(cached) " >&6
10596 else
10597   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10598
10599 else
10600   if test "$ac_cv_type_long" = yes; then
10601      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10603 as_fn_error 77 "cannot compute sizeof (long)
10604 See \`config.log' for more details" "$LINENO" 5; }
10605    else
10606      ac_cv_sizeof_long=0
10607    fi
10608 fi
10609
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10612 $as_echo "$ac_cv_sizeof_long" >&6; }
10613
10614
10615
10616 cat >>confdefs.h <<_ACEOF
10617 #define SIZEOF_LONG $ac_cv_sizeof_long
10618 _ACEOF
10619
10620
10621 # The cast to long int works around a bug in the HP C Compiler
10622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10624 # This bug is HP SR number 8606223364.
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10626 $as_echo_n "checking size of long long... " >&6; }
10627 if ${ac_cv_sizeof_long_long+:} false; then :
10628   $as_echo_n "(cached) " >&6
10629 else
10630   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10631
10632 else
10633   if test "$ac_cv_type_long_long" = yes; then
10634      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10636 as_fn_error 77 "cannot compute sizeof (long long)
10637 See \`config.log' for more details" "$LINENO" 5; }
10638    else
10639      ac_cv_sizeof_long_long=0
10640    fi
10641 fi
10642
10643 fi
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10646
10647
10648
10649 cat >>confdefs.h <<_ACEOF
10650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10651 _ACEOF
10652
10653
10654 SIZEOF_SHORT=$ac_cv_sizeof_short
10655 SIZEOF_INT=$ac_cv_sizeof_int
10656 SIZEOF_LONG=$ac_cv_sizeof_long
10657 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10658
10659
10660
10661
10662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10663 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10664 if ${ac_cv_c_bigendian+:} false; then :
10665   $as_echo_n "(cached) " >&6
10666 else
10667   ac_cv_c_bigendian=unknown
10668     # See if we're dealing with a universal compiler.
10669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h.  */
10671 #ifndef __APPLE_CC__
10672                not a universal capable compiler
10673              #endif
10674              typedef int dummy;
10675
10676 _ACEOF
10677 if ac_fn_c_try_compile "$LINENO"; then :
10678
10679         # Check for potential -arch flags.  It is not universal unless
10680         # there are at least two -arch flags with different values.
10681         ac_arch=
10682         ac_prev=
10683         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10684          if test -n "$ac_prev"; then
10685            case $ac_word in
10686              i?86 | x86_64 | ppc | ppc64)
10687                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10688                  ac_arch=$ac_word
10689                else
10690                  ac_cv_c_bigendian=universal
10691                  break
10692                fi
10693                ;;
10694            esac
10695            ac_prev=
10696          elif test "x$ac_word" = "x-arch"; then
10697            ac_prev=arch
10698          fi
10699        done
10700 fi
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702     if test $ac_cv_c_bigendian = unknown; then
10703       # See if sys/param.h defines the BYTE_ORDER macro.
10704       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h.  */
10706 #include <sys/types.h>
10707              #include <sys/param.h>
10708
10709 int
10710 main ()
10711 {
10712 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10713                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10714                      && LITTLE_ENDIAN)
10715               bogus endian macros
10716              #endif
10717
10718   ;
10719   return 0;
10720 }
10721 _ACEOF
10722 if ac_fn_c_try_compile "$LINENO"; then :
10723   # It does; now see whether it defined to BIG_ENDIAN or not.
10724          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h.  */
10726 #include <sys/types.h>
10727                 #include <sys/param.h>
10728
10729 int
10730 main ()
10731 {
10732 #if BYTE_ORDER != BIG_ENDIAN
10733                  not big endian
10734                 #endif
10735
10736   ;
10737   return 0;
10738 }
10739 _ACEOF
10740 if ac_fn_c_try_compile "$LINENO"; then :
10741   ac_cv_c_bigendian=yes
10742 else
10743   ac_cv_c_bigendian=no
10744 fi
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 fi
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748     fi
10749     if test $ac_cv_c_bigendian = unknown; then
10750       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10751       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h.  */
10753 #include <limits.h>
10754
10755 int
10756 main ()
10757 {
10758 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10759               bogus endian macros
10760              #endif
10761
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 if ac_fn_c_try_compile "$LINENO"; then :
10767   # It does; now see whether it defined to _BIG_ENDIAN or not.
10768          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h.  */
10770 #include <limits.h>
10771
10772 int
10773 main ()
10774 {
10775 #ifndef _BIG_ENDIAN
10776                  not big endian
10777                 #endif
10778
10779   ;
10780   return 0;
10781 }
10782 _ACEOF
10783 if ac_fn_c_try_compile "$LINENO"; then :
10784   ac_cv_c_bigendian=yes
10785 else
10786   ac_cv_c_bigendian=no
10787 fi
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10789 fi
10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791     fi
10792     if test $ac_cv_c_bigendian = unknown; then
10793       # Compile a test program.
10794       if test "$cross_compiling" = yes; then :
10795   # Try to guess by grepping values from an object file.
10796          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h.  */
10798 short int ascii_mm[] =
10799                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10800                 short int ascii_ii[] =
10801                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10802                 int use_ascii (int i) {
10803                   return ascii_mm[i] + ascii_ii[i];
10804                 }
10805                 short int ebcdic_ii[] =
10806                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10807                 short int ebcdic_mm[] =
10808                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10809                 int use_ebcdic (int i) {
10810                   return ebcdic_mm[i] + ebcdic_ii[i];
10811                 }
10812                 extern int foo;
10813
10814 int
10815 main ()
10816 {
10817 return use_ascii (foo) == use_ebcdic (foo);
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 if ac_fn_c_try_compile "$LINENO"; then :
10823   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10824               ac_cv_c_bigendian=yes
10825             fi
10826             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10827               if test "$ac_cv_c_bigendian" = unknown; then
10828                 ac_cv_c_bigendian=no
10829               else
10830                 # finding both strings is unlikely to happen, but who knows?
10831                 ac_cv_c_bigendian=unknown
10832               fi
10833             fi
10834 fi
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 else
10837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h.  */
10839 $ac_includes_default
10840 int
10841 main ()
10842 {
10843
10844              /* Are we little or big endian?  From Harbison&Steele.  */
10845              union
10846              {
10847                long int l;
10848                char c[sizeof (long int)];
10849              } u;
10850              u.l = 1;
10851              return u.c[sizeof (long int) - 1] == 1;
10852
10853   ;
10854   return 0;
10855 }
10856 _ACEOF
10857 if ac_fn_c_try_run "$LINENO"; then :
10858   ac_cv_c_bigendian=no
10859 else
10860   ac_cv_c_bigendian=yes
10861 fi
10862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10863   conftest.$ac_objext conftest.beam conftest.$ac_ext
10864 fi
10865
10866     fi
10867 fi
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10869 $as_echo "$ac_cv_c_bigendian" >&6; }
10870  case $ac_cv_c_bigendian in #(
10871    yes)
10872      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10873 ;; #(
10874    no)
10875       ;; #(
10876    universal)
10877
10878 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10879
10880      ;; #(
10881    *)
10882      as_fn_error $? "unknown endianness
10883  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10884  esac
10885
10886 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10887 ASM_TYPES_HEADER=./asm_types.h
10888
10889 echo "/* These defines are needed for the public ext2fs.h header file */" \
10890      > public_config.h
10891 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10892   uniq tmp_config.$$ >> public_config.h
10893 else
10894   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10895 fi
10896 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10897   uniq tmp_config.$$ >> public_config.h
10898 else
10899   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10900 fi
10901 rm -f tmp_config.$$
10902 PUBLIC_CONFIG_HEADER=./public_config.h
10903
10904 for ac_header in inttypes.h
10905 do :
10906   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10907 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10908   cat >>confdefs.h <<_ACEOF
10909 #define HAVE_INTTYPES_H 1
10910 _ACEOF
10911
10912 fi
10913
10914 done
10915
10916 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10917 if test "x$ac_cv_type_intptr_t" = xyes; then :
10918
10919 cat >>confdefs.h <<_ACEOF
10920 #define HAVE_INTPTR_T 1
10921 _ACEOF
10922
10923
10924 fi
10925
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10927 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10928 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10929   $as_echo_n "(cached) " >&6
10930 else
10931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h.  */
10933 #include <sys/stat.h>
10934 int
10935 main ()
10936 {
10937 struct stat stat; stat.st_flags = 0;
10938   ;
10939   return 0;
10940 }
10941 _ACEOF
10942 if ac_fn_c_try_compile "$LINENO"; then :
10943   e2fsprogs_cv_struct_st_flags=yes
10944 else
10945   e2fsprogs_cv_struct_st_flags=no
10946 fi
10947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948 fi
10949
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10951 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10952 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10954 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10955   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10956   $as_echo_n "(cached) " >&6
10957 else
10958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h.  */
10960 #include <sys/stat.h>
10961 int
10962 main ()
10963 {
10964 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10965   ;
10966   return 0;
10967 }
10968 _ACEOF
10969 if ac_fn_c_try_compile "$LINENO"; then :
10970   e2fsprogs_cv_struct_st_flags_immut=yes
10971 else
10972   e2fsprogs_cv_struct_st_flags_immut=no
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 fi
10976
10977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10978 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10979   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10980
10981 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10982
10983   fi
10984 fi
10985 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10986          #include <sys/socket.h>
10987 "
10988 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10989
10990 cat >>confdefs.h <<_ACEOF
10991 #define HAVE_SA_LEN 1
10992 _ACEOF
10993
10994 fi
10995
10996 if test -n "$BLKID_CMT"; then
10997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10998 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10999 if ${ac_cv_search_blkid_probe_all+:} false; then :
11000   $as_echo_n "(cached) " >&6
11001 else
11002   ac_func_search_save_LIBS=$LIBS
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h.  */
11005
11006 /* Override any GCC internal prototype to avoid an error.
11007    Use char because int might match the return type of a GCC
11008    builtin and then its argument prototype would still apply.  */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char blkid_probe_all ();
11013 int
11014 main ()
11015 {
11016 return blkid_probe_all ();
11017   ;
11018   return 0;
11019 }
11020 _ACEOF
11021 for ac_lib in '' blkid; do
11022   if test -z "$ac_lib"; then
11023     ac_res="none required"
11024   else
11025     ac_res=-l$ac_lib
11026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11027   fi
11028   if ac_fn_c_try_link "$LINENO"; then :
11029   ac_cv_search_blkid_probe_all=$ac_res
11030 fi
11031 rm -f core conftest.err conftest.$ac_objext \
11032     conftest$ac_exeext
11033   if ${ac_cv_search_blkid_probe_all+:} false; then :
11034   break
11035 fi
11036 done
11037 if ${ac_cv_search_blkid_probe_all+:} false; then :
11038
11039 else
11040   ac_cv_search_blkid_probe_all=no
11041 fi
11042 rm conftest.$ac_ext
11043 LIBS=$ac_func_search_save_LIBS
11044 fi
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11046 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11047 ac_res=$ac_cv_search_blkid_probe_all
11048 if test "$ac_res" != no; then :
11049   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11050
11051 fi
11052
11053 fi
11054 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
11055 do :
11056   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11058 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11059   cat >>confdefs.h <<_ACEOF
11060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11062
11063 fi
11064 done
11065
11066 SOCKET_LIB=''
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11068 $as_echo_n "checking for socket in -lsocket... " >&6; }
11069 if ${ac_cv_lib_socket_socket+:} false; then :
11070   $as_echo_n "(cached) " >&6
11071 else
11072   ac_check_lib_save_LIBS=$LIBS
11073 LIBS="-lsocket  $LIBS"
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h.  */
11076
11077 /* Override any GCC internal prototype to avoid an error.
11078    Use char because int might match the return type of a GCC
11079    builtin and then its argument prototype would still apply.  */
11080 #ifdef __cplusplus
11081 extern "C"
11082 #endif
11083 char socket ();
11084 int
11085 main ()
11086 {
11087 return socket ();
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_link "$LINENO"; then :
11093   ac_cv_lib_socket_socket=yes
11094 else
11095   ac_cv_lib_socket_socket=no
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext \
11098     conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_lib_save_LIBS
11100 fi
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11102 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11103 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11104   SOCKET_LIB=-lsocket
11105 fi
11106
11107
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11109 $as_echo_n "checking for optreset... " >&6; }
11110 if ${ac_cv_have_optreset+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h.  */
11115 #include <unistd.h>
11116
11117 _ACEOF
11118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11119   $EGREP "optreset" >/dev/null 2>&1; then :
11120   ac_cv_have_optreset=yes
11121 else
11122   ac_cv_have_optreset=no
11123 fi
11124 rm -f conftest*
11125
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11128 $as_echo "$ac_cv_have_optreset" >&6; }
11129 if test $ac_cv_have_optreset = yes; then
11130
11131 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11132
11133 fi
11134
11135 SEM_INIT_LIB=''
11136 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11137 if test "x$ac_cv_func_sem_init" = xyes; then :
11138
11139 else
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11141 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11142 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11143   $as_echo_n "(cached) " >&6
11144 else
11145   ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-lpthread  $LIBS"
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h.  */
11149
11150 /* Override any GCC internal prototype to avoid an error.
11151    Use char because int might match the return type of a GCC
11152    builtin and then its argument prototype would still apply.  */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 char sem_init ();
11157 int
11158 main ()
11159 {
11160 return sem_init ();
11161   ;
11162   return 0;
11163 }
11164 _ACEOF
11165 if ac_fn_c_try_link "$LINENO"; then :
11166   ac_cv_lib_pthread_sem_init=yes
11167 else
11168   ac_cv_lib_pthread_sem_init=no
11169 fi
11170 rm -f core conftest.err conftest.$ac_objext \
11171     conftest$ac_exeext conftest.$ac_ext
11172 LIBS=$ac_check_lib_save_LIBS
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11175 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11176 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11177   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11178
11179         SEM_INIT_LIB=-lpthread
11180 else
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11182 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11183 if ${ac_cv_lib_rt_sem_init+:} false; then :
11184   $as_echo_n "(cached) " >&6
11185 else
11186   ac_check_lib_save_LIBS=$LIBS
11187 LIBS="-lrt  $LIBS"
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h.  */
11190
11191 /* Override any GCC internal prototype to avoid an error.
11192    Use char because int might match the return type of a GCC
11193    builtin and then its argument prototype would still apply.  */
11194 #ifdef __cplusplus
11195 extern "C"
11196 #endif
11197 char sem_init ();
11198 int
11199 main ()
11200 {
11201 return sem_init ();
11202   ;
11203   return 0;
11204 }
11205 _ACEOF
11206 if ac_fn_c_try_link "$LINENO"; then :
11207   ac_cv_lib_rt_sem_init=yes
11208 else
11209   ac_cv_lib_rt_sem_init=no
11210 fi
11211 rm -f core conftest.err conftest.$ac_objext \
11212     conftest$ac_exeext conftest.$ac_ext
11213 LIBS=$ac_check_lib_save_LIBS
11214 fi
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11216 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11217 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11218   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11219
11220         SEM_INIT_LIB=-lrt
11221 else
11222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11223 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11224 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11225   $as_echo_n "(cached) " >&6
11226 else
11227   ac_check_lib_save_LIBS=$LIBS
11228 LIBS="-lposix4  $LIBS"
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h.  */
11231
11232 /* Override any GCC internal prototype to avoid an error.
11233    Use char because int might match the return type of a GCC
11234    builtin and then its argument prototype would still apply.  */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 char sem_init ();
11239 int
11240 main ()
11241 {
11242 return sem_init ();
11243   ;
11244   return 0;
11245 }
11246 _ACEOF
11247 if ac_fn_c_try_link "$LINENO"; then :
11248   ac_cv_lib_posix4_sem_init=yes
11249 else
11250   ac_cv_lib_posix4_sem_init=no
11251 fi
11252 rm -f core conftest.err conftest.$ac_objext \
11253     conftest$ac_exeext conftest.$ac_ext
11254 LIBS=$ac_check_lib_save_LIBS
11255 fi
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11257 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11258 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11259   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11260
11261         SEM_INIT_LIB=-lposix4
11262 fi
11263
11264 fi
11265
11266 fi
11267
11268 fi
11269
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11271 $as_echo_n "checking for unified diff option... " >&6; }
11272 if diff -u $0 $0 > /dev/null 2>&1 ; then
11273    UNI_DIFF_OPTS=-u
11274 else
11275    UNI_DIFF_OPTS=-c
11276 fi
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11278 $as_echo "$UNI_DIFF_OPTS" >&6; }
11279
11280 case "$host_os" in
11281 linux*)
11282
11283 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11284
11285         ;;
11286 esac
11287 LINUX_CMT="#"
11288 CYGWIN_CMT="#"
11289 UNIX_CMT=
11290 case "$host_os" in
11291 linux*)
11292         LINUX_CMT=
11293         ;;
11294 cygwin)
11295         CYGWIN_CMT=
11296         UNIX_CMT="#"
11297         ;;
11298 esac
11299
11300
11301
11302 case "$host_os" in
11303 linux* | gnu* | k*bsd*-gnu)
11304         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11305                 root_prefix="";
11306                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11307 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11308         fi
11309         ;;
11310 esac
11311 case "$host_os" in
11312 linux* | gnu* | k*bsd*-gnu)
11313         if test "$prefix" = NONE ; then
11314                 prefix="/usr";
11315                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11316 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11317                 if test "$mandir" = '${prefix}/man' ; then
11318                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11319 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11320                         mandir=/usr/share/man
11321                 fi
11322         fi
11323 ;;
11324 esac
11325 if test "$root_prefix" = NONE ; then
11326         if test "$prefix" = NONE ; then
11327                 root_prefix="$ac_default_prefix"
11328         else
11329                 root_prefix="$prefix"
11330         fi
11331         root_bindir=$bindir
11332         root_sbindir=$sbindir
11333         root_libdir=$libdir
11334         root_sysconfdir=$sysconfdir
11335 else
11336         root_bindir='${root_prefix}/bin'
11337         root_sbindir='${root_prefix}/sbin'
11338         root_libdir='${root_prefix}/lib'
11339         root_sysconfdir='${root_prefix}/etc'
11340 fi
11341 if test "$bindir" != '${exec_prefix}/bin'; then
11342     root_bindir=$bindir
11343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11344 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11345 fi
11346 if test "$sbindir" != '${exec_prefix}/sbin'; then
11347     root_sbindir=$sbindir
11348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11349 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11350 fi
11351 if test "$libdir" != '${exec_prefix}/lib'; then
11352     root_libdir=$libdir
11353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11354 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11355 fi
11356 if test "$sysconfdir" != '${prefix}/etc'; then
11357     root_sysconfdir=$sysconfdir
11358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11359 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11360 fi
11361
11362
11363
11364
11365
11366
11367 # Check whether --with-multiarch was given.
11368 if test "${with_multiarch+set}" = set; then :
11369   withval=$with_multiarch; libdir=$libdir/$withval
11370 root_libdir=$root_libdir/$withval
11371
11372 fi
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11374 $as_echo_n "checking whether we can link with -static... " >&6; }
11375 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h.  */
11381 #include <stdio.h>
11382 int
11383 main ()
11384 {
11385 fflush(stdout);
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11391   ac_cv_e2fsprogs_use_static=yes
11392 else
11393   ac_cv_e2fsprogs_use_static=no
11394 fi
11395 rm -f core conftest.err conftest.$ac_objext \
11396     conftest$ac_exeext conftest.$ac_ext
11397 LDFLAGS=$SAVE_LDFLAGS
11398 fi
11399
11400 case "$host_os" in
11401 solaris2.*)
11402         ac_cv_e2fsprogs_use_static=no
11403 ;;
11404 esac
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11406 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11407 LDFLAG_STATIC=
11408 if test $ac_cv_e2fsprogs_use_static = yes; then
11409         LDFLAG_STATIC=-static
11410 fi
11411
11412 case "$host_os" in
11413 darwin*)
11414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11415 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11416
11417 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11418
11419         ;;
11420 esac
11421 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11422 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11423
11424
11425 if test "$cross_compiling" = yes ; then
11426   DO_TEST_SUITE=
11427 else
11428   DO_TEST_SUITE=check
11429 fi
11430
11431 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11432 if test -n "$CPPFLAGS" ; then
11433         INCLUDES="$INCLUDES $CPPFLAGS"
11434 fi
11435 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11436         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11437 fi
11438
11439 if test $cross_compiling = no; then
11440    BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11441    BUILD_LDFLAGS="$LDFLAGS"
11442 else
11443    BUILD_CFLAGS=
11444    BUILD_LDFLAGS=
11445 fi
11446
11447
11448 test -d lib || mkdir lib
11449 test -d include || mkdir include
11450 test -d include/linux || mkdir include/linux
11451 test -d include/asm || mkdir include/asm
11452 for i in MCONFIG Makefile e2fsprogs.spec \
11453         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11454         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11455         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11456         lib/uuid/Makefile lib/uuid/uuid_types.h \
11457         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11458         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11459         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11460         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11461         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11462         resize/Makefile doc/Makefile intl/Makefile \
11463         intl/libgnuintl.h po/Makefile.in ; do
11464         if test -d `dirname ${srcdir}/$i` ; then
11465                 outlist="$outlist $i"
11466         fi
11467 done
11468 ac_config_files="$ac_config_files $outlist"
11469
11470 cat >confcache <<\_ACEOF
11471 # This file is a shell script that caches the results of configure
11472 # tests run on this system so they can be shared between configure
11473 # scripts and configure runs, see configure's option --config-cache.
11474 # It is not useful on other systems.  If it contains results you don't
11475 # want to keep, you may remove or edit it.
11476 #
11477 # config.status only pays attention to the cache file if you give it
11478 # the --recheck option to rerun configure.
11479 #
11480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11482 # following values.
11483
11484 _ACEOF
11485
11486 # The following way of writing the cache mishandles newlines in values,
11487 # but we know of no workaround that is simple, portable, and efficient.
11488 # So, we kill variables containing newlines.
11489 # Ultrix sh set writes to stderr and can't be redirected directly,
11490 # and sets the high bit in the cache file unless we assign to the vars.
11491 (
11492   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11493     eval ac_val=\$$ac_var
11494     case $ac_val in #(
11495     *${as_nl}*)
11496       case $ac_var in #(
11497       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11499       esac
11500       case $ac_var in #(
11501       _ | IFS | as_nl) ;; #(
11502       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11503       *) { eval $ac_var=; unset $ac_var;} ;;
11504       esac ;;
11505     esac
11506   done
11507
11508   (set) 2>&1 |
11509     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11510     *${as_nl}ac_space=\ *)
11511       # `set' does not quote correctly, so add quotes: double-quote
11512       # substitution turns \\\\ into \\, and sed turns \\ into \.
11513       sed -n \
11514         "s/'/'\\\\''/g;
11515           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11516       ;; #(
11517     *)
11518       # `set' quotes correctly as required by POSIX, so do not add quotes.
11519       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11520       ;;
11521     esac |
11522     sort
11523 ) |
11524   sed '
11525      /^ac_cv_env_/b end
11526      t clear
11527      :clear
11528      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11529      t end
11530      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11531      :end' >>confcache
11532 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11533   if test -w "$cache_file"; then
11534     if test "x$cache_file" != "x/dev/null"; then
11535       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11536 $as_echo "$as_me: updating cache $cache_file" >&6;}
11537       if test ! -f "$cache_file" || test -h "$cache_file"; then
11538         cat confcache >"$cache_file"
11539       else
11540         case $cache_file in #(
11541         */* | ?:*)
11542           mv -f confcache "$cache_file"$$ &&
11543           mv -f "$cache_file"$$ "$cache_file" ;; #(
11544         *)
11545           mv -f confcache "$cache_file" ;;
11546         esac
11547       fi
11548     fi
11549   else
11550     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11552   fi
11553 fi
11554 rm -f confcache
11555
11556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11557 # Let make expand exec_prefix.
11558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11559
11560 DEFS=-DHAVE_CONFIG_H
11561
11562 ac_libobjs=
11563 ac_ltlibobjs=
11564 U=
11565 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11566   # 1. Remove the extension, and $U if already installed.
11567   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11568   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11569   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11570   #    will be set to the directory where LIBOBJS objects are built.
11571   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11572   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11573 done
11574 LIBOBJS=$ac_libobjs
11575
11576 LTLIBOBJS=$ac_ltlibobjs
11577
11578
11579
11580
11581 : "${CONFIG_STATUS=./config.status}"
11582 ac_write_fail=0
11583 ac_clean_files_save=$ac_clean_files
11584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11586 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11587 as_write_fail=0
11588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11589 #! $SHELL
11590 # Generated by $as_me.
11591 # Run this file to recreate the current configuration.
11592 # Compiler output produced by configure, useful for debugging
11593 # configure, is in config.log if it exists.
11594
11595 debug=false
11596 ac_cs_recheck=false
11597 ac_cs_silent=false
11598
11599 SHELL=\${CONFIG_SHELL-$SHELL}
11600 export SHELL
11601 _ASEOF
11602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11603 ## -------------------- ##
11604 ## M4sh Initialization. ##
11605 ## -------------------- ##
11606
11607 # Be more Bourne compatible
11608 DUALCASE=1; export DUALCASE # for MKS sh
11609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11610   emulate sh
11611   NULLCMD=:
11612   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11613   # is contrary to our usage.  Disable this feature.
11614   alias -g '${1+"$@"}'='"$@"'
11615   setopt NO_GLOB_SUBST
11616 else
11617   case `(set -o) 2>/dev/null` in #(
11618   *posix*) :
11619     set -o posix ;; #(
11620   *) :
11621      ;;
11622 esac
11623 fi
11624
11625
11626 as_nl='
11627 '
11628 export as_nl
11629 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11630 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11633 # Prefer a ksh shell builtin over an external printf program on Solaris,
11634 # but without wasting forks for bash or zsh.
11635 if test -z "$BASH_VERSION$ZSH_VERSION" \
11636     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11637   as_echo='print -r --'
11638   as_echo_n='print -rn --'
11639 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11640   as_echo='printf %s\n'
11641   as_echo_n='printf %s'
11642 else
11643   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11644     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11645     as_echo_n='/usr/ucb/echo -n'
11646   else
11647     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11648     as_echo_n_body='eval
11649       arg=$1;
11650       case $arg in #(
11651       *"$as_nl"*)
11652         expr "X$arg" : "X\\(.*\\)$as_nl";
11653         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11654       esac;
11655       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11656     '
11657     export as_echo_n_body
11658     as_echo_n='sh -c $as_echo_n_body as_echo'
11659   fi
11660   export as_echo_body
11661   as_echo='sh -c $as_echo_body as_echo'
11662 fi
11663
11664 # The user is always right.
11665 if test "${PATH_SEPARATOR+set}" != set; then
11666   PATH_SEPARATOR=:
11667   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11668     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11669       PATH_SEPARATOR=';'
11670   }
11671 fi
11672
11673
11674 # IFS
11675 # We need space, tab and new line, in precisely that order.  Quoting is
11676 # there to prevent editors from complaining about space-tab.
11677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11678 # splitting by setting IFS to empty value.)
11679 IFS=" ""        $as_nl"
11680
11681 # Find who we are.  Look in the path if we contain no directory separator.
11682 as_myself=
11683 case $0 in #((
11684   *[\\/]* ) as_myself=$0 ;;
11685   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   test -z "$as_dir" && as_dir=.
11690     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11691   done
11692 IFS=$as_save_IFS
11693
11694      ;;
11695 esac
11696 # We did not find ourselves, most probably we were run as `sh COMMAND'
11697 # in which case we are not to be found in the path.
11698 if test "x$as_myself" = x; then
11699   as_myself=$0
11700 fi
11701 if test ! -f "$as_myself"; then
11702   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11703   exit 1
11704 fi
11705
11706 # Unset variables that we do not need and which cause bugs (e.g. in
11707 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11708 # suppresses any "Segmentation fault" message there.  '((' could
11709 # trigger a bug in pdksh 5.2.14.
11710 for as_var in BASH_ENV ENV MAIL MAILPATH
11711 do eval test x\${$as_var+set} = xset \
11712   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11713 done
11714 PS1='$ '
11715 PS2='> '
11716 PS4='+ '
11717
11718 # NLS nuisances.
11719 LC_ALL=C
11720 export LC_ALL
11721 LANGUAGE=C
11722 export LANGUAGE
11723
11724 # CDPATH.
11725 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11726
11727
11728 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11729 # ----------------------------------------
11730 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11731 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11732 # script with STATUS, using 1 if that was 0.
11733 as_fn_error ()
11734 {
11735   as_status=$1; test $as_status -eq 0 && as_status=1
11736   if test "$4"; then
11737     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11738     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11739   fi
11740   $as_echo "$as_me: error: $2" >&2
11741   as_fn_exit $as_status
11742 } # as_fn_error
11743
11744
11745 # as_fn_set_status STATUS
11746 # -----------------------
11747 # Set $? to STATUS, without forking.
11748 as_fn_set_status ()
11749 {
11750   return $1
11751 } # as_fn_set_status
11752
11753 # as_fn_exit STATUS
11754 # -----------------
11755 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11756 as_fn_exit ()
11757 {
11758   set +e
11759   as_fn_set_status $1
11760   exit $1
11761 } # as_fn_exit
11762
11763 # as_fn_unset VAR
11764 # ---------------
11765 # Portably unset VAR.
11766 as_fn_unset ()
11767 {
11768   { eval $1=; unset $1;}
11769 }
11770 as_unset=as_fn_unset
11771 # as_fn_append VAR VALUE
11772 # ----------------------
11773 # Append the text in VALUE to the end of the definition contained in VAR. Take
11774 # advantage of any shell optimizations that allow amortized linear growth over
11775 # repeated appends, instead of the typical quadratic growth present in naive
11776 # implementations.
11777 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11778   eval 'as_fn_append ()
11779   {
11780     eval $1+=\$2
11781   }'
11782 else
11783   as_fn_append ()
11784   {
11785     eval $1=\$$1\$2
11786   }
11787 fi # as_fn_append
11788
11789 # as_fn_arith ARG...
11790 # ------------------
11791 # Perform arithmetic evaluation on the ARGs, and store the result in the
11792 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11793 # must be portable across $(()) and expr.
11794 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11795   eval 'as_fn_arith ()
11796   {
11797     as_val=$(( $* ))
11798   }'
11799 else
11800   as_fn_arith ()
11801   {
11802     as_val=`expr "$@" || test $? -eq 1`
11803   }
11804 fi # as_fn_arith
11805
11806
11807 if expr a : '\(a\)' >/dev/null 2>&1 &&
11808    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11809   as_expr=expr
11810 else
11811   as_expr=false
11812 fi
11813
11814 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11815   as_basename=basename
11816 else
11817   as_basename=false
11818 fi
11819
11820 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11821   as_dirname=dirname
11822 else
11823   as_dirname=false
11824 fi
11825
11826 as_me=`$as_basename -- "$0" ||
11827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11828          X"$0" : 'X\(//\)$' \| \
11829          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11830 $as_echo X/"$0" |
11831     sed '/^.*\/\([^/][^/]*\)\/*$/{
11832             s//\1/
11833             q
11834           }
11835           /^X\/\(\/\/\)$/{
11836             s//\1/
11837             q
11838           }
11839           /^X\/\(\/\).*/{
11840             s//\1/
11841             q
11842           }
11843           s/.*/./; q'`
11844
11845 # Avoid depending upon Character Ranges.
11846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11849 as_cr_digits='0123456789'
11850 as_cr_alnum=$as_cr_Letters$as_cr_digits
11851
11852 ECHO_C= ECHO_N= ECHO_T=
11853 case `echo -n x` in #(((((
11854 -n*)
11855   case `echo 'xy\c'` in
11856   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11857   xy)  ECHO_C='\c';;
11858   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11859        ECHO_T=' ';;
11860   esac;;
11861 *)
11862   ECHO_N='-n';;
11863 esac
11864
11865 rm -f conf$$ conf$$.exe conf$$.file
11866 if test -d conf$$.dir; then
11867   rm -f conf$$.dir/conf$$.file
11868 else
11869   rm -f conf$$.dir
11870   mkdir conf$$.dir 2>/dev/null
11871 fi
11872 if (echo >conf$$.file) 2>/dev/null; then
11873   if ln -s conf$$.file conf$$ 2>/dev/null; then
11874     as_ln_s='ln -s'
11875     # ... but there are two gotchas:
11876     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11877     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11878     # In both cases, we have to default to `cp -pR'.
11879     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11880       as_ln_s='cp -pR'
11881   elif ln conf$$.file conf$$ 2>/dev/null; then
11882     as_ln_s=ln
11883   else
11884     as_ln_s='cp -pR'
11885   fi
11886 else
11887   as_ln_s='cp -pR'
11888 fi
11889 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11890 rmdir conf$$.dir 2>/dev/null
11891
11892
11893 # as_fn_mkdir_p
11894 # -------------
11895 # Create "$as_dir" as a directory, including parents if necessary.
11896 as_fn_mkdir_p ()
11897 {
11898
11899   case $as_dir in #(
11900   -*) as_dir=./$as_dir;;
11901   esac
11902   test -d "$as_dir" || eval $as_mkdir_p || {
11903     as_dirs=
11904     while :; do
11905       case $as_dir in #(
11906       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11907       *) as_qdir=$as_dir;;
11908       esac
11909       as_dirs="'$as_qdir' $as_dirs"
11910       as_dir=`$as_dirname -- "$as_dir" ||
11911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11912          X"$as_dir" : 'X\(//\)[^/]' \| \
11913          X"$as_dir" : 'X\(//\)$' \| \
11914          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11915 $as_echo X"$as_dir" |
11916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11917             s//\1/
11918             q
11919           }
11920           /^X\(\/\/\)[^/].*/{
11921             s//\1/
11922             q
11923           }
11924           /^X\(\/\/\)$/{
11925             s//\1/
11926             q
11927           }
11928           /^X\(\/\).*/{
11929             s//\1/
11930             q
11931           }
11932           s/.*/./; q'`
11933       test -d "$as_dir" && break
11934     done
11935     test -z "$as_dirs" || eval "mkdir $as_dirs"
11936   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11937
11938
11939 } # as_fn_mkdir_p
11940 if mkdir -p . 2>/dev/null; then
11941   as_mkdir_p='mkdir -p "$as_dir"'
11942 else
11943   test -d ./-p && rmdir ./-p
11944   as_mkdir_p=false
11945 fi
11946
11947
11948 # as_fn_executable_p FILE
11949 # -----------------------
11950 # Test if FILE is an executable regular file.
11951 as_fn_executable_p ()
11952 {
11953   test -f "$1" && test -x "$1"
11954 } # as_fn_executable_p
11955 as_test_x='test -x'
11956 as_executable_p=as_fn_executable_p
11957
11958 # Sed expression to map a string onto a valid CPP name.
11959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11960
11961 # Sed expression to map a string onto a valid variable name.
11962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11963
11964
11965 exec 6>&1
11966 ## ----------------------------------- ##
11967 ## Main body of $CONFIG_STATUS script. ##
11968 ## ----------------------------------- ##
11969 _ASEOF
11970 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11971
11972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11973 # Save the log message, to keep $0 and so on meaningful, and to
11974 # report actual input values of CONFIG_FILES etc. instead of their
11975 # values after options handling.
11976 ac_log="
11977 This file was extended by $as_me, which was
11978 generated by GNU Autoconf 2.69.  Invocation command line was
11979
11980   CONFIG_FILES    = $CONFIG_FILES
11981   CONFIG_HEADERS  = $CONFIG_HEADERS
11982   CONFIG_LINKS    = $CONFIG_LINKS
11983   CONFIG_COMMANDS = $CONFIG_COMMANDS
11984   $ $0 $@
11985
11986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11987 "
11988
11989 _ACEOF
11990
11991 case $ac_config_files in *"
11992 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11993 esac
11994
11995 case $ac_config_headers in *"
11996 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11997 esac
11998
11999
12000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12001 # Files that config.status was made for.
12002 config_files="$ac_config_files"
12003 config_headers="$ac_config_headers"
12004 config_commands="$ac_config_commands"
12005
12006 _ACEOF
12007
12008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12009 ac_cs_usage="\
12010 \`$as_me' instantiates files and other configuration actions
12011 from templates according to the current configuration.  Unless the files
12012 and actions are specified as TAGs, all are instantiated by default.
12013
12014 Usage: $0 [OPTION]... [TAG]...
12015
12016   -h, --help       print this help, then exit
12017   -V, --version    print version number and configuration settings, then exit
12018       --config     print configuration, then exit
12019   -q, --quiet, --silent
12020                    do not print progress messages
12021   -d, --debug      don't remove temporary files
12022       --recheck    update $as_me by reconfiguring in the same conditions
12023       --file=FILE[:TEMPLATE]
12024                    instantiate the configuration file FILE
12025       --header=FILE[:TEMPLATE]
12026                    instantiate the configuration header FILE
12027
12028 Configuration files:
12029 $config_files
12030
12031 Configuration headers:
12032 $config_headers
12033
12034 Configuration commands:
12035 $config_commands
12036
12037 Report bugs to the package provider."
12038
12039 _ACEOF
12040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12041 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12042 ac_cs_version="\\
12043 config.status
12044 configured by $0, generated by GNU Autoconf 2.69,
12045   with options \\"\$ac_cs_config\\"
12046
12047 Copyright (C) 2012 Free Software Foundation, Inc.
12048 This config.status script is free software; the Free Software Foundation
12049 gives unlimited permission to copy, distribute and modify it."
12050
12051 ac_pwd='$ac_pwd'
12052 srcdir='$srcdir'
12053 INSTALL='$INSTALL'
12054 AWK='$AWK'
12055 test -n "\$AWK" || AWK=awk
12056 _ACEOF
12057
12058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12059 # The default lists apply if the user does not specify any file.
12060 ac_need_defaults=:
12061 while test $# != 0
12062 do
12063   case $1 in
12064   --*=?*)
12065     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12066     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12067     ac_shift=:
12068     ;;
12069   --*=)
12070     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12071     ac_optarg=
12072     ac_shift=:
12073     ;;
12074   *)
12075     ac_option=$1
12076     ac_optarg=$2
12077     ac_shift=shift
12078     ;;
12079   esac
12080
12081   case $ac_option in
12082   # Handling of the options.
12083   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12084     ac_cs_recheck=: ;;
12085   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12086     $as_echo "$ac_cs_version"; exit ;;
12087   --config | --confi | --conf | --con | --co | --c )
12088     $as_echo "$ac_cs_config"; exit ;;
12089   --debug | --debu | --deb | --de | --d | -d )
12090     debug=: ;;
12091   --file | --fil | --fi | --f )
12092     $ac_shift
12093     case $ac_optarg in
12094     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12095     '') as_fn_error $? "missing file argument" ;;
12096     esac
12097     as_fn_append CONFIG_FILES " '$ac_optarg'"
12098     ac_need_defaults=false;;
12099   --header | --heade | --head | --hea )
12100     $ac_shift
12101     case $ac_optarg in
12102     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12103     esac
12104     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12105     ac_need_defaults=false;;
12106   --he | --h)
12107     # Conflict between --help and --header
12108     as_fn_error $? "ambiguous option: \`$1'
12109 Try \`$0 --help' for more information.";;
12110   --help | --hel | -h )
12111     $as_echo "$ac_cs_usage"; exit ;;
12112   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12113   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12114     ac_cs_silent=: ;;
12115
12116   # This is an error.
12117   -*) as_fn_error $? "unrecognized option: \`$1'
12118 Try \`$0 --help' for more information." ;;
12119
12120   *) as_fn_append ac_config_targets " $1"
12121      ac_need_defaults=false ;;
12122
12123   esac
12124   shift
12125 done
12126
12127 ac_configure_extra_args=
12128
12129 if $ac_cs_silent; then
12130   exec 6>/dev/null
12131   ac_configure_extra_args="$ac_configure_extra_args --silent"
12132 fi
12133
12134 _ACEOF
12135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12136 if \$ac_cs_recheck; then
12137   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12138   shift
12139   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12140   CONFIG_SHELL='$SHELL'
12141   export CONFIG_SHELL
12142   exec "\$@"
12143 fi
12144
12145 _ACEOF
12146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12147 exec 5>>config.log
12148 {
12149   echo
12150   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12151 ## Running $as_me. ##
12152 _ASBOX
12153   $as_echo "$ac_log"
12154 } >&5
12155
12156 _ACEOF
12157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12158 #
12159 # INIT-COMMANDS
12160 #
12161 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12162     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12163     # from automake.
12164     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12165     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12166     LINGUAS="${LINGUAS-%UNSET%}"
12167
12168
12169 _ACEOF
12170
12171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12172
12173 # Handling of arguments.
12174 for ac_config_target in $ac_config_targets
12175 do
12176   case $ac_config_target in
12177     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12178     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12179     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12180
12181   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12182   esac
12183 done
12184
12185
12186 # If the user did not use the arguments to specify the items to instantiate,
12187 # then the envvar interface is used.  Set only those that are not.
12188 # We use the long form for the default assignment because of an extremely
12189 # bizarre bug on SunOS 4.1.3.
12190 if $ac_need_defaults; then
12191   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12192   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12193   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12194 fi
12195
12196 # Have a temporary directory for convenience.  Make it in the build tree
12197 # simply because there is no reason against having it here, and in addition,
12198 # creating and moving files from /tmp can sometimes cause problems.
12199 # Hook for its removal unless debugging.
12200 # Note that there is a small window in which the directory will not be cleaned:
12201 # after its creation but before its name has been assigned to `$tmp'.
12202 $debug ||
12203 {
12204   tmp= ac_tmp=
12205   trap 'exit_status=$?
12206   : "${ac_tmp:=$tmp}"
12207   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12208 ' 0
12209   trap 'as_fn_exit 1' 1 2 13 15
12210 }
12211 # Create a (secure) tmp directory for tmp files.
12212
12213 {
12214   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12215   test -d "$tmp"
12216 }  ||
12217 {
12218   tmp=./conf$$-$RANDOM
12219   (umask 077 && mkdir "$tmp")
12220 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12221 ac_tmp=$tmp
12222
12223 # Set up the scripts for CONFIG_FILES section.
12224 # No need to generate them if there are no CONFIG_FILES.
12225 # This happens for instance with `./config.status config.h'.
12226 if test -n "$CONFIG_FILES"; then
12227
12228 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12229   ac_cs_awk_getline=:
12230   ac_cs_awk_pipe_init=
12231   ac_cs_awk_read_file='
12232       while ((getline aline < (F[key])) > 0)
12233         print(aline)
12234       close(F[key])'
12235   ac_cs_awk_pipe_fini=
12236 else
12237   ac_cs_awk_getline=false
12238   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12239   ac_cs_awk_read_file='
12240       print "|#_!!_#|"
12241       print "cat " F[key] " &&"
12242       '$ac_cs_awk_pipe_init
12243   # The final `:' finishes the AND list.
12244   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12245 fi
12246 ac_cr=`echo X | tr X '\015'`
12247 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12248 # But we know of no other shell where ac_cr would be empty at this
12249 # point, so we can use a bashism as a fallback.
12250 if test "x$ac_cr" = x; then
12251   eval ac_cr=\$\'\\r\'
12252 fi
12253 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12254 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12255   ac_cs_awk_cr='\\r'
12256 else
12257   ac_cs_awk_cr=$ac_cr
12258 fi
12259
12260 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12261 _ACEOF
12262
12263 # Create commands to substitute file output variables.
12264 {
12265   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12266   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12267   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12268   echo "_ACAWK" &&
12269   echo "_ACEOF"
12270 } >conf$$files.sh &&
12271 . ./conf$$files.sh ||
12272   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12273 rm -f conf$$files.sh
12274
12275 {
12276   echo "cat >conf$$subs.awk <<_ACEOF" &&
12277   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12278   echo "_ACEOF"
12279 } >conf$$subs.sh ||
12280   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12282 ac_delim='%!_!# '
12283 for ac_last_try in false false false false false :; do
12284   . ./conf$$subs.sh ||
12285     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12286
12287   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12288   if test $ac_delim_n = $ac_delim_num; then
12289     break
12290   elif $ac_last_try; then
12291     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12292   else
12293     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12294   fi
12295 done
12296 rm -f conf$$subs.sh
12297
12298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12299 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12300 _ACEOF
12301 sed -n '
12302 h
12303 s/^/S["/; s/!.*/"]=/
12304 p
12305 g
12306 s/^[^!]*!//
12307 :repl
12308 t repl
12309 s/'"$ac_delim"'$//
12310 t delim
12311 :nl
12312 h
12313 s/\(.\{148\}\)..*/\1/
12314 t more1
12315 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12316 p
12317 n
12318 b repl
12319 :more1
12320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12321 p
12322 g
12323 s/.\{148\}//
12324 t nl
12325 :delim
12326 h
12327 s/\(.\{148\}\)..*/\1/
12328 t more2
12329 s/["\\]/\\&/g; s/^/"/; s/$/"/
12330 p
12331 b
12332 :more2
12333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12334 p
12335 g
12336 s/.\{148\}//
12337 t delim
12338 ' <conf$$subs.awk | sed '
12339 /^[^""]/{
12340   N
12341   s/\n//
12342 }
12343 ' >>$CONFIG_STATUS || ac_write_fail=1
12344 rm -f conf$$subs.awk
12345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12346 _ACAWK
12347 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12348   for (key in S) S_is_set[key] = 1
12349   FS = "\a"
12350   \$ac_cs_awk_pipe_init
12351 }
12352 {
12353   line = $ 0
12354   nfields = split(line, field, "@")
12355   substed = 0
12356   len = length(field[1])
12357   for (i = 2; i < nfields; i++) {
12358     key = field[i]
12359     keylen = length(key)
12360     if (S_is_set[key]) {
12361       value = S[key]
12362       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12363       len += length(value) + length(field[++i])
12364       substed = 1
12365     } else
12366       len += 1 + keylen
12367   }
12368   if (nfields == 3 && !substed) {
12369     key = field[2]
12370     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12371       \$ac_cs_awk_read_file
12372       next
12373     }
12374   }
12375   print line
12376 }
12377 \$ac_cs_awk_pipe_fini
12378 _ACAWK
12379 _ACEOF
12380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12381 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12382   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12383 else
12384   cat
12385 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12386   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12387 _ACEOF
12388
12389 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12390 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12391 # trailing colons and then remove the whole line if VPATH becomes empty
12392 # (actually we leave an empty line to preserve line numbers).
12393 if test "x$srcdir" = x.; then
12394   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12395 h
12396 s///
12397 s/^/:/
12398 s/[      ]*$/:/
12399 s/:\$(srcdir):/:/g
12400 s/:\${srcdir}:/:/g
12401 s/:@srcdir@:/:/g
12402 s/^:*//
12403 s/:*$//
12404 x
12405 s/\(=[   ]*\).*/\1/
12406 G
12407 s/\n//
12408 s/^[^=]*=[       ]*$//
12409 }'
12410 fi
12411
12412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12413 fi # test -n "$CONFIG_FILES"
12414
12415 # Set up the scripts for CONFIG_HEADERS section.
12416 # No need to generate them if there are no CONFIG_HEADERS.
12417 # This happens for instance with `./config.status Makefile'.
12418 if test -n "$CONFIG_HEADERS"; then
12419 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12420 BEGIN {
12421 _ACEOF
12422
12423 # Transform confdefs.h into an awk script `defines.awk', embedded as
12424 # here-document in config.status, that substitutes the proper values into
12425 # config.h.in to produce config.h.
12426
12427 # Create a delimiter string that does not exist in confdefs.h, to ease
12428 # handling of long lines.
12429 ac_delim='%!_!# '
12430 for ac_last_try in false false :; do
12431   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12432   if test -z "$ac_tt"; then
12433     break
12434   elif $ac_last_try; then
12435     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12436   else
12437     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12438   fi
12439 done
12440
12441 # For the awk script, D is an array of macro values keyed by name,
12442 # likewise P contains macro parameters if any.  Preserve backslash
12443 # newline sequences.
12444
12445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12446 sed -n '
12447 s/.\{148\}/&'"$ac_delim"'/g
12448 t rset
12449 :rset
12450 s/^[     ]*#[    ]*define[       ][      ]*/ /
12451 t def
12452 d
12453 :def
12454 s/\\$//
12455 t bsnl
12456 s/["\\]/\\&/g
12457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12458 D["\1"]=" \3"/p
12459 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12460 d
12461 :bsnl
12462 s/["\\]/\\&/g
12463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12464 D["\1"]=" \3\\\\\\n"\\/p
12465 t cont
12466 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12467 t cont
12468 d
12469 :cont
12470 n
12471 s/.\{148\}/&'"$ac_delim"'/g
12472 t clear
12473 :clear
12474 s/\\$//
12475 t bsnlc
12476 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12477 d
12478 :bsnlc
12479 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12480 b cont
12481 ' <confdefs.h | sed '
12482 s/'"$ac_delim"'/"\\\
12483 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12484
12485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12486   for (key in D) D_is_set[key] = 1
12487   FS = "\a"
12488 }
12489 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12490   line = \$ 0
12491   split(line, arg, " ")
12492   if (arg[1] == "#") {
12493     defundef = arg[2]
12494     mac1 = arg[3]
12495   } else {
12496     defundef = substr(arg[1], 2)
12497     mac1 = arg[2]
12498   }
12499   split(mac1, mac2, "(") #)
12500   macro = mac2[1]
12501   prefix = substr(line, 1, index(line, defundef) - 1)
12502   if (D_is_set[macro]) {
12503     # Preserve the white space surrounding the "#".
12504     print prefix "define", macro P[macro] D[macro]
12505     next
12506   } else {
12507     # Replace #undef with comments.  This is necessary, for example,
12508     # in the case of _POSIX_SOURCE, which is predefined and required
12509     # on some systems where configure will not decide to define it.
12510     if (defundef == "undef") {
12511       print "/*", prefix defundef, macro, "*/"
12512       next
12513     }
12514   }
12515 }
12516 { print }
12517 _ACAWK
12518 _ACEOF
12519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12520   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12521 fi # test -n "$CONFIG_HEADERS"
12522
12523
12524 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12525 shift
12526 for ac_tag
12527 do
12528   case $ac_tag in
12529   :[FHLC]) ac_mode=$ac_tag; continue;;
12530   esac
12531   case $ac_mode$ac_tag in
12532   :[FHL]*:*);;
12533   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12534   :[FH]-) ac_tag=-:-;;
12535   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12536   esac
12537   ac_save_IFS=$IFS
12538   IFS=:
12539   set x $ac_tag
12540   IFS=$ac_save_IFS
12541   shift
12542   ac_file=$1
12543   shift
12544
12545   case $ac_mode in
12546   :L) ac_source=$1;;
12547   :[FH])
12548     ac_file_inputs=
12549     for ac_f
12550     do
12551       case $ac_f in
12552       -) ac_f="$ac_tmp/stdin";;
12553       *) # Look for the file first in the build tree, then in the source tree
12554          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12555          # because $ac_f cannot contain `:'.
12556          test -f "$ac_f" ||
12557            case $ac_f in
12558            [\\/$]*) false;;
12559            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12560            esac ||
12561            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12562       esac
12563       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12564       as_fn_append ac_file_inputs " '$ac_f'"
12565     done
12566
12567     # Let's still pretend it is `configure' which instantiates (i.e., don't
12568     # use $as_me), people would be surprised to read:
12569     #    /* config.h.  Generated by config.status.  */
12570     configure_input='Generated from '`
12571           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12572         `' by configure.'
12573     if test x"$ac_file" != x-; then
12574       configure_input="$ac_file.  $configure_input"
12575       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12576 $as_echo "$as_me: creating $ac_file" >&6;}
12577     fi
12578     # Neutralize special characters interpreted by sed in replacement strings.
12579     case $configure_input in #(
12580     *\&* | *\|* | *\\* )
12581        ac_sed_conf_input=`$as_echo "$configure_input" |
12582        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12583     *) ac_sed_conf_input=$configure_input;;
12584     esac
12585
12586     case $ac_tag in
12587     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12588       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12589     esac
12590     ;;
12591   esac
12592
12593   ac_dir=`$as_dirname -- "$ac_file" ||
12594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12595          X"$ac_file" : 'X\(//\)[^/]' \| \
12596          X"$ac_file" : 'X\(//\)$' \| \
12597          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12598 $as_echo X"$ac_file" |
12599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12600             s//\1/
12601             q
12602           }
12603           /^X\(\/\/\)[^/].*/{
12604             s//\1/
12605             q
12606           }
12607           /^X\(\/\/\)$/{
12608             s//\1/
12609             q
12610           }
12611           /^X\(\/\).*/{
12612             s//\1/
12613             q
12614           }
12615           s/.*/./; q'`
12616   as_dir="$ac_dir"; as_fn_mkdir_p
12617   ac_builddir=.
12618
12619 case "$ac_dir" in
12620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12621 *)
12622   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12623   # A ".." for each directory in $ac_dir_suffix.
12624   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12625   case $ac_top_builddir_sub in
12626   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12627   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12628   esac ;;
12629 esac
12630 ac_abs_top_builddir=$ac_pwd
12631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12632 # for backward compatibility:
12633 ac_top_builddir=$ac_top_build_prefix
12634
12635 case $srcdir in
12636   .)  # We are building in place.
12637     ac_srcdir=.
12638     ac_top_srcdir=$ac_top_builddir_sub
12639     ac_abs_top_srcdir=$ac_pwd ;;
12640   [\\/]* | ?:[\\/]* )  # Absolute name.
12641     ac_srcdir=$srcdir$ac_dir_suffix;
12642     ac_top_srcdir=$srcdir
12643     ac_abs_top_srcdir=$srcdir ;;
12644   *) # Relative name.
12645     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12646     ac_top_srcdir=$ac_top_build_prefix$srcdir
12647     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12648 esac
12649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12650
12651
12652   case $ac_mode in
12653   :F)
12654   #
12655   # CONFIG_FILE
12656   #
12657
12658   case $INSTALL in
12659   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12660   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12661   esac
12662 _ACEOF
12663
12664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12665 # If the template does not know about datarootdir, expand it.
12666 # FIXME: This hack should be removed a few years after 2.60.
12667 ac_datarootdir_hack=; ac_datarootdir_seen=
12668 ac_sed_dataroot='
12669 /datarootdir/ {
12670   p
12671   q
12672 }
12673 /@datadir@/p
12674 /@docdir@/p
12675 /@infodir@/p
12676 /@localedir@/p
12677 /@mandir@/p'
12678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12679 *datarootdir*) ac_datarootdir_seen=yes;;
12680 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12681   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12683 _ACEOF
12684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12685   ac_datarootdir_hack='
12686   s&@datadir@&$datadir&g
12687   s&@docdir@&$docdir&g
12688   s&@infodir@&$infodir&g
12689   s&@localedir@&$localedir&g
12690   s&@mandir@&$mandir&g
12691   s&\\\${datarootdir}&$datarootdir&g' ;;
12692 esac
12693 _ACEOF
12694
12695 # Neutralize VPATH when `$srcdir' = `.'.
12696 # Shell code in configure.ac might set extrasub.
12697 # FIXME: do we really want to maintain this feature?
12698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12699 ac_sed_extra="$ac_vpsub
12700 $extrasub
12701 _ACEOF
12702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12703 :t
12704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12705 s|@configure_input@|$ac_sed_conf_input|;t t
12706 s&@top_builddir@&$ac_top_builddir_sub&;t t
12707 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12708 s&@srcdir@&$ac_srcdir&;t t
12709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12710 s&@top_srcdir@&$ac_top_srcdir&;t t
12711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12712 s&@builddir@&$ac_builddir&;t t
12713 s&@abs_builddir@&$ac_abs_builddir&;t t
12714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12715 s&@INSTALL@&$ac_INSTALL&;t t
12716 $ac_datarootdir_hack
12717 "
12718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12719 if $ac_cs_awk_getline; then
12720   $AWK -f "$ac_tmp/subs.awk"
12721 else
12722   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12723 fi \
12724   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12725
12726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12727   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12728   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12729       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12731 which seems to be undefined.  Please make sure it is defined" >&5
12732 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12733 which seems to be undefined.  Please make sure it is defined" >&2;}
12734
12735   rm -f "$ac_tmp/stdin"
12736   case $ac_file in
12737   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12738   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12739   esac \
12740   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12741  ;;
12742   :H)
12743   #
12744   # CONFIG_HEADER
12745   #
12746   if test x"$ac_file" != x-; then
12747     {
12748       $as_echo "/* $configure_input  */" \
12749       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12750     } >"$ac_tmp/config.h" \
12751       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12752     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12753       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12755     else
12756       rm -f "$ac_file"
12757       mv "$ac_tmp/config.h" "$ac_file" \
12758         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12759     fi
12760   else
12761     $as_echo "/* $configure_input  */" \
12762       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12763       || as_fn_error $? "could not create -" "$LINENO" 5
12764   fi
12765  ;;
12766
12767   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12768 $as_echo "$as_me: executing $ac_file commands" >&6;}
12769  ;;
12770   esac
12771
12772
12773   case $ac_file$ac_mode in
12774     "default-1":C)
12775     for ac_file in $CONFIG_FILES; do
12776       # Support "outfile[:infile[:infile...]]"
12777       case "$ac_file" in
12778         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12779       esac
12780       # PO directories have a Makefile.in generated from Makefile.in.in.
12781       case "$ac_file" in */Makefile.in)
12782         # Adjust a relative srcdir.
12783         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12784         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12785         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12786         # In autoconf-2.13 it is called $ac_given_srcdir.
12787         # In autoconf-2.50 it is called $srcdir.
12788         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12789         case "$ac_given_srcdir" in
12790           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12791           /*) top_srcdir="$ac_given_srcdir" ;;
12792           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12793         esac
12794         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12795           rm -f "$ac_dir/POTFILES"
12796           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12797           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12798           POMAKEFILEDEPS="POTFILES.in"
12799           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12800           # on $ac_dir but don't depend on user-specified configuration
12801           # parameters.
12802           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12803             # The LINGUAS file contains the set of available languages.
12804             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12805               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12806             fi
12807             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12808             # Hide the ALL_LINGUAS assigment from automake.
12809             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12810             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12811           else
12812             # The set of available languages was given in configure.in.
12813             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12814           fi
12815           # Compute POFILES
12816           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12817           # Compute UPDATEPOFILES
12818           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12819           # Compute DUMMYPOFILES
12820           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12821           # Compute GMOFILES
12822           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12823           case "$ac_given_srcdir" in
12824             .) srcdirpre= ;;
12825             *) srcdirpre='$(srcdir)/' ;;
12826           esac
12827           POFILES=
12828           UPDATEPOFILES=
12829           DUMMYPOFILES=
12830           GMOFILES=
12831           for lang in $ALL_LINGUAS; do
12832             POFILES="$POFILES $srcdirpre$lang.po"
12833             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12834             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12835             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12836           done
12837           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12838           # environment variable.
12839           INST_LINGUAS=
12840           if test -n "$ALL_LINGUAS"; then
12841             for presentlang in $ALL_LINGUAS; do
12842               useit=no
12843               if test "%UNSET%" != "$LINGUAS"; then
12844                 desiredlanguages="$LINGUAS"
12845               else
12846                 desiredlanguages="$ALL_LINGUAS"
12847               fi
12848               for desiredlang in $desiredlanguages; do
12849                 # Use the presentlang catalog if desiredlang is
12850                 #   a. equal to presentlang, or
12851                 #   b. a variant of presentlang (because in this case,
12852                 #      presentlang can be used as a fallback for messages
12853                 #      which are not translated in the desiredlang catalog).
12854                 case "$desiredlang" in
12855                   "$presentlang"*) useit=yes;;
12856                 esac
12857               done
12858               if test $useit = yes; then
12859                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12860               fi
12861             done
12862           fi
12863           CATALOGS=
12864           if test -n "$INST_LINGUAS"; then
12865             for lang in $INST_LINGUAS; do
12866               CATALOGS="$CATALOGS $lang.gmo"
12867             done
12868           fi
12869           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12870           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"
12871           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12872             if test -f "$f"; then
12873               case "$f" in
12874                 *.orig | *.bak | *~) ;;
12875                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12876               esac
12877             fi
12878           done
12879         fi
12880         ;;
12881       esac
12882     done ;;
12883
12884   esac
12885 done # for ac_tag
12886
12887
12888 as_fn_exit 0
12889 _ACEOF
12890 ac_clean_files=$ac_clean_files_save
12891
12892 test $ac_write_fail = 0 ||
12893   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12894
12895
12896 # configure is writing to config.log, and then calls config.status.
12897 # config.status does its own redirection, appending to config.log.
12898 # Unfortunately, on DOS this fails, as config.log is still kept open
12899 # by configure, so config.status won't be able to write to it; its
12900 # output is simply discarded.  So we exec the FD to /dev/null,
12901 # effectively closing config.log, so it can be properly (re)opened and
12902 # appended to by config.status.  When coming back to configure, we
12903 # need to make the FD available again.
12904 if test "$no_create" != yes; then
12905   ac_cs_success=:
12906   ac_config_status_args=
12907   test "$silent" = yes &&
12908     ac_config_status_args="$ac_config_status_args --quiet"
12909   exec 5>/dev/null
12910   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12911   exec 5>>config.log
12912   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12913   # would make configure fail if this is the last instruction.
12914   $ac_cs_success || as_fn_exit 1
12915 fi
12916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12917   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12918 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12919 fi
12920
12921 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi