Whamcloud - gitweb
Merge branch 'maint' into next
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 BUILD_LDFLAGS
626 BUILD_CFLAGS
627 INCLUDES
628 DO_TEST_SUITE
629 ET_DIR
630 SS_DIR
631 LDFLAG_STATIC
632 root_sysconfdir
633 root_libdir
634 root_sbindir
635 root_bindir
636 root_prefix
637 UNIX_CMT
638 CYGWIN_CMT
639 LINUX_CMT
640 UNI_DIFF_OPTS
641 SEM_INIT_LIB
642 SOCKET_LIB
643 SIZEOF_OFF_T
644 SIZEOF_LONG_LONG
645 SIZEOF_LONG
646 SIZEOF_INT
647 SIZEOF_SHORT
648 BUILD_CC
649 MAKEINFO
650 STRIP
651 AR
652 LDCONFIG
653 PERL
654 SED
655 AWK
656 CHMOD
657 RM
658 CP
659 MV
660 LN_S
661 LN
662 ifNotGNUmake
663 ifGNUmake
664 BINARY_TYPE
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 INTL_LIBTOOL_SUFFIX_PREFIX
670 INTLOBJS
671 GENCAT
672 INSTOBJEXT
673 DATADIRNAME
674 CATOBJEXT
675 USE_INCLUDED_LIBINTL
676 BUILD_INCLUDED_LIBINTL
677 INTLBISON
678 LTLIBICONV
679 LIBICONV
680 HAVE_WPRINTF
681 HAVE_SNPRINTF
682 HAVE_ASPRINTF
683 HAVE_POSIX_PRINTF
684 GLIBC21
685 ALLOCA
686 EGREP
687 GREP
688 RANLIB
689 MSGMERGE
690 XGETTEXT
691 GMSGFMT
692 MSGFMT
693 USE_NLS
694 MKINSTALLDIRS
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 SET_MAKE
699 VERSION
700 PACKAGE
701 GETTEXT_PACKAGE
702 UUIDD_CMT
703 E2INITRD_MAN
704 E2INITRD_PROG
705 FSCK_MAN
706 FSCK_PROG
707 DEFRAG_CMT
708 RESIZER_CMT
709 IMAGER_CMT
710 DEBUGFS_CMT
711 QUOTA_CMT
712 DEPPROFILED_LIBQUOTA
713 PROFILED_LIBQUOTA
714 DEPSTATIC_LIBQUOTA
715 STATIC_LIBQUOTA
716 DEPLIBQUOTA
717 LIBQUOTA
718 QUOTA_MAN_COMMENT
719 BLKID_CMT
720 DEPPROFILED_LIBBLKID
721 PROFILED_LIBBLKID
722 DEPSTATIC_LIBBLKID
723 STATIC_LIBBLKID
724 DEPLIBBLKID
725 LIBBLKID
726 UUID_CMT
727 DEPPROFILED_LIBUUID
728 PROFILED_LIBUUID
729 DEPSTATIC_LIBUUID
730 STATIC_LIBUUID
731 DEPLIBUUID
732 LIBUUID
733 PKG_CONFIG
734 TEST_IO_CMT
735 PRIVATE_LIBS_CMT
736 LDFLAG_DYNAMIC
737 PROFILED_LIB_EXT
738 STATIC_LIB_EXT
739 LIB_EXT
740 CHECKER_CMT
741 PROFILE_CMT
742 BSDLIB_CMT
743 ELF_CMT
744 HTREE_CMT
745 Q
746 ES
747 E
748 LINK_BUILD_FLAGS
749 SYMLINK_RELATIVE
750 LINK_INSTALL_FLAGS
751 MAINTAINER_CMT
752 CPP
753 RDYNAMIC
754 DLOPEN_LIB
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 E2FSPROGS_PKGVER
771 E2FSPROGS_VERSION
772 E2FSPROGS_DAY
773 E2FSPROGS_MONTH
774 E2FSPROGS_YEAR
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files='MCONFIG
814 MAKEFILE_ELF
815 MAKEFILE_BSDLIB
816 MAKEFILE_PROFILE
817 MAKEFILE_CHECKER
818 MAKEFILE_LIBRARY
819 ASM_TYPES_HEADER
820 PUBLIC_CONFIG_HEADER'
821 ac_user_opts='
822 enable_option_checking
823 with_diet_libc
824 with_cc
825 with_ccopts
826 with_ldopts
827 with_root_prefix
828 enable_maintainer_mode
829 enable_symlink_install
830 enable_relative_symlinks
831 enable_symlink_relative_symlinks
832 enable_symlink_build
833 enable_verbose_makecmds
834 enable_compression
835 enable_htree
836 enable_elf_shlibs
837 enable_bsd_shlibs
838 enable_profile
839 enable_checker
840 enable_jbd_debug
841 enable_blkid_debug
842 enable_testio_debug
843 enable_libuuid
844 enable_libblkid
845 enable_quota
846 enable_backtrace
847 enable_debugfs
848 enable_imager
849 enable_resizer
850 enable_defrag
851 enable_fsck
852 enable_e2initrd_helper
853 enable_tls
854 enable_uuidd
855 enable_mmp
856 enable_bmap_stats
857 enable_bmap_stats_ops
858 enable_nls
859 with_gnu_ld
860 enable_rpath
861 with_libiconv_prefix
862 with_included_gettext
863 with_libintl_prefix
864 with_multiarch
865 '
866       ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 CPP
875 PKG_CONFIG'
876
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 ac_unrecognized_opts=
882 ac_unrecognized_sep=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
899
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
925
926 ac_prev=
927 ac_dashdash=
928 for ac_option
929 do
930   # If the previous option needs an argument, assign it.
931   if test -n "$ac_prev"; then
932     eval $ac_prev=\$ac_option
933     ac_prev=
934     continue
935   fi
936
937   case $ac_option in
938   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939   *=)   ac_optarg= ;;
940   *)    ac_optarg=yes ;;
941   esac
942
943   # Accept the important Cygnus configure options, so we can diagnose typos.
944
945   case $ac_dashdash$ac_option in
946   --)
947     ac_dashdash=yes ;;
948
949   -bindir | --bindir | --bindi | --bind | --bin | --bi)
950     ac_prev=bindir ;;
951   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952     bindir=$ac_optarg ;;
953
954   -build | --build | --buil | --bui | --bu)
955     ac_prev=build_alias ;;
956   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957     build_alias=$ac_optarg ;;
958
959   -cache-file | --cache-file | --cache-fil | --cache-fi \
960   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961     ac_prev=cache_file ;;
962   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964     cache_file=$ac_optarg ;;
965
966   --config-cache | -C)
967     cache_file=config.cache ;;
968
969   -datadir | --datadir | --datadi | --datad)
970     ac_prev=datadir ;;
971   -datadir=* | --datadir=* | --datadi=* | --datad=*)
972     datadir=$ac_optarg ;;
973
974   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975   | --dataroo | --dataro | --datar)
976     ac_prev=datarootdir ;;
977   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979     datarootdir=$ac_optarg ;;
980
981   -disable-* | --disable-*)
982     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983     # Reject names that are not valid shell variable names.
984     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985       as_fn_error $? "invalid feature name: $ac_useropt"
986     ac_useropt_orig=$ac_useropt
987     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988     case $ac_user_opts in
989       *"
990 "enable_$ac_useropt"
991 "*) ;;
992       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993          ac_unrecognized_sep=', ';;
994     esac
995     eval enable_$ac_useropt=no ;;
996
997   -docdir | --docdir | --docdi | --doc | --do)
998     ac_prev=docdir ;;
999   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000     docdir=$ac_optarg ;;
1001
1002   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003     ac_prev=dvidir ;;
1004   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005     dvidir=$ac_optarg ;;
1006
1007   -enable-* | --enable-*)
1008     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009     # Reject names that are not valid shell variable names.
1010     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011       as_fn_error $? "invalid feature name: $ac_useropt"
1012     ac_useropt_orig=$ac_useropt
1013     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014     case $ac_user_opts in
1015       *"
1016 "enable_$ac_useropt"
1017 "*) ;;
1018       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019          ac_unrecognized_sep=', ';;
1020     esac
1021     eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025   | --exec | --exe | --ex)
1026     ac_prev=exec_prefix ;;
1027   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029   | --exec=* | --exe=* | --ex=*)
1030     exec_prefix=$ac_optarg ;;
1031
1032   -gas | --gas | --ga | --g)
1033     # Obsolete; use --with-gas.
1034     with_gas=yes ;;
1035
1036   -help | --help | --hel | --he | -h)
1037     ac_init_help=long ;;
1038   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039     ac_init_help=recursive ;;
1040   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041     ac_init_help=short ;;
1042
1043   -host | --host | --hos | --ho)
1044     ac_prev=host_alias ;;
1045   -host=* | --host=* | --hos=* | --ho=*)
1046     host_alias=$ac_optarg ;;
1047
1048   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049     ac_prev=htmldir ;;
1050   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051   | --ht=*)
1052     htmldir=$ac_optarg ;;
1053
1054   -includedir | --includedir | --includedi | --included | --include \
1055   | --includ | --inclu | --incl | --inc)
1056     ac_prev=includedir ;;
1057   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058   | --includ=* | --inclu=* | --incl=* | --inc=*)
1059     includedir=$ac_optarg ;;
1060
1061   -infodir | --infodir | --infodi | --infod | --info | --inf)
1062     ac_prev=infodir ;;
1063   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064     infodir=$ac_optarg ;;
1065
1066   -libdir | --libdir | --libdi | --libd)
1067     ac_prev=libdir ;;
1068   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069     libdir=$ac_optarg ;;
1070
1071   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072   | --libexe | --libex | --libe)
1073     ac_prev=libexecdir ;;
1074   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075   | --libexe=* | --libex=* | --libe=*)
1076     libexecdir=$ac_optarg ;;
1077
1078   -localedir | --localedir | --localedi | --localed | --locale)
1079     ac_prev=localedir ;;
1080   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081     localedir=$ac_optarg ;;
1082
1083   -localstatedir | --localstatedir | --localstatedi | --localstated \
1084   | --localstate | --localstat | --localsta | --localst | --locals)
1085     ac_prev=localstatedir ;;
1086   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088     localstatedir=$ac_optarg ;;
1089
1090   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091     ac_prev=mandir ;;
1092   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093     mandir=$ac_optarg ;;
1094
1095   -nfp | --nfp | --nf)
1096     # Obsolete; use --without-fp.
1097     with_fp=no ;;
1098
1099   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100   | --no-cr | --no-c | -n)
1101     no_create=yes ;;
1102
1103   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105     no_recursion=yes ;;
1106
1107   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109   | --oldin | --oldi | --old | --ol | --o)
1110     ac_prev=oldincludedir ;;
1111   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114     oldincludedir=$ac_optarg ;;
1115
1116   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117     ac_prev=prefix ;;
1118   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119     prefix=$ac_optarg ;;
1120
1121   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122   | --program-pre | --program-pr | --program-p)
1123     ac_prev=program_prefix ;;
1124   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126     program_prefix=$ac_optarg ;;
1127
1128   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129   | --program-suf | --program-su | --program-s)
1130     ac_prev=program_suffix ;;
1131   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133     program_suffix=$ac_optarg ;;
1134
1135   -program-transform-name | --program-transform-name \
1136   | --program-transform-nam | --program-transform-na \
1137   | --program-transform-n | --program-transform- \
1138   | --program-transform | --program-transfor \
1139   | --program-transfo | --program-transf \
1140   | --program-trans | --program-tran \
1141   | --progr-tra | --program-tr | --program-t)
1142     ac_prev=program_transform_name ;;
1143   -program-transform-name=* | --program-transform-name=* \
1144   | --program-transform-nam=* | --program-transform-na=* \
1145   | --program-transform-n=* | --program-transform-=* \
1146   | --program-transform=* | --program-transfor=* \
1147   | --program-transfo=* | --program-transf=* \
1148   | --program-trans=* | --program-tran=* \
1149   | --progr-tra=* | --program-tr=* | --program-t=*)
1150     program_transform_name=$ac_optarg ;;
1151
1152   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153     ac_prev=pdfdir ;;
1154   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155     pdfdir=$ac_optarg ;;
1156
1157   -psdir | --psdir | --psdi | --psd | --ps)
1158     ac_prev=psdir ;;
1159   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160     psdir=$ac_optarg ;;
1161
1162   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163   | -silent | --silent | --silen | --sile | --sil)
1164     silent=yes ;;
1165
1166   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167     ac_prev=sbindir ;;
1168   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169   | --sbi=* | --sb=*)
1170     sbindir=$ac_optarg ;;
1171
1172   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174   | --sharedst | --shareds | --shared | --share | --shar \
1175   | --sha | --sh)
1176     ac_prev=sharedstatedir ;;
1177   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180   | --sha=* | --sh=*)
1181     sharedstatedir=$ac_optarg ;;
1182
1183   -site | --site | --sit)
1184     ac_prev=site ;;
1185   -site=* | --site=* | --sit=*)
1186     site=$ac_optarg ;;
1187
1188   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189     ac_prev=srcdir ;;
1190   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191     srcdir=$ac_optarg ;;
1192
1193   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194   | --syscon | --sysco | --sysc | --sys | --sy)
1195     ac_prev=sysconfdir ;;
1196   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198     sysconfdir=$ac_optarg ;;
1199
1200   -target | --target | --targe | --targ | --tar | --ta | --t)
1201     ac_prev=target_alias ;;
1202   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203     target_alias=$ac_optarg ;;
1204
1205   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206     verbose=yes ;;
1207
1208   -version | --version | --versio | --versi | --vers | -V)
1209     ac_init_version=: ;;
1210
1211   -with-* | --with-*)
1212     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215       as_fn_error $? "invalid package name: $ac_useropt"
1216     ac_useropt_orig=$ac_useropt
1217     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218     case $ac_user_opts in
1219       *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223          ac_unrecognized_sep=', ';;
1224     esac
1225     eval with_$ac_useropt=\$ac_optarg ;;
1226
1227   -without-* | --without-*)
1228     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231       as_fn_error $? "invalid package name: $ac_useropt"
1232     ac_useropt_orig=$ac_useropt
1233     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234     case $ac_user_opts in
1235       *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239          ac_unrecognized_sep=', ';;
1240     esac
1241     eval with_$ac_useropt=no ;;
1242
1243   --x)
1244     # Obsolete; use --with-x.
1245     with_x=yes ;;
1246
1247   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248   | --x-incl | --x-inc | --x-in | --x-i)
1249     ac_prev=x_includes ;;
1250   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252     x_includes=$ac_optarg ;;
1253
1254   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256     ac_prev=x_libraries ;;
1257   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259     x_libraries=$ac_optarg ;;
1260
1261   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1263     ;;
1264
1265   *=*)
1266     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267     # Reject names that are not valid shell variable names.
1268     case $ac_envvar in #(
1269       '' | [0-9]* | *[!_$as_cr_alnum]* )
1270       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271     esac
1272     eval $ac_envvar=\$ac_optarg
1273     export $ac_envvar ;;
1274
1275   *)
1276     # FIXME: should be removed in autoconf 3.0.
1277     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281     ;;
1282
1283   esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288   as_fn_error $? "missing argument to $ac_option"
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292   case $enable_option_checking in
1293     no) ;;
1294     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296   esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301                 datadir sysconfdir sharedstatedir localstatedir includedir \
1302                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303                 libdir localedir mandir
1304 do
1305   eval ac_val=\$$ac_var
1306   # Remove trailing slashes.
1307   case $ac_val in
1308     */ )
1309       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310       eval $ac_var=\$ac_val;;
1311   esac
1312   # Be sure to have absolute directory names.
1313   case $ac_val in
1314     [\\/$]* | ?:[\\/]* )  continue;;
1315     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316   esac
1317   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1319
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329   if test "x$build_alias" = x; then
1330     cross_compiling=maybe
1331   elif test "x$build_alias" != "x$host_alias"; then
1332     cross_compiling=yes
1333   fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345   as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347   as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352   ac_srcdir_defaulted=yes
1353   # Try the directory containing this script, then the parent directory.
1354   ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356          X"$as_myself" : 'X\(//\)[^/]' \| \
1357          X"$as_myself" : 'X\(//\)$' \| \
1358          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)[^/].*/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\).*/{
1373             s//\1/
1374             q
1375           }
1376           s/.*/./; q'`
1377   srcdir=$ac_confdir
1378   if test ! -r "$srcdir/$ac_unique_file"; then
1379     srcdir=..
1380   fi
1381 else
1382   ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391         pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394   srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_env_${ac_var}_value=\$${ac_var}
1405   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413   # Omit some internal or obsolete options to make the list less imposing.
1414   # This message is too long to be a string in the A/UX 3.1 sh.
1415   cat <<_ACEOF
1416 \`configure' configures this package to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426   -h, --help              display this help and exit
1427       --help=short        display options specific to this package
1428       --help=recursive    display the short help of all the included packages
1429   -V, --version           display version information and exit
1430   -q, --quiet, --silent   do not print \`checking ...' messages
1431       --cache-file=FILE   cache test results in FILE [disabled]
1432   -C, --config-cache      alias for \`--cache-file=config.cache'
1433   -n, --no-create         do not create output files
1434       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437   --prefix=PREFIX         install architecture-independent files in PREFIX
1438                           [$ac_default_prefix]
1439   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                           [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450   --bindir=DIR            user executables [EPREFIX/bin]
1451   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1452   --libexecdir=DIR        program executables [EPREFIX/libexec]
1453   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1454   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1455   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1456   --libdir=DIR            object code libraries [EPREFIX/lib]
1457   --includedir=DIR        C header files [PREFIX/include]
1458   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461   --infodir=DIR           info documentation [DATAROOTDIR/info]
1462   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463   --mandir=DIR            man documentation [DATAROOTDIR/man]
1464   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1465   --htmldir=DIR           html documentation [DOCDIR]
1466   --dvidir=DIR            dvi documentation [DOCDIR]
1467   --pdfdir=DIR            pdf documentation [DOCDIR]
1468   --psdir=DIR             ps documentation [DOCDIR]
1469 _ACEOF
1470
1471   cat <<\_ACEOF
1472
1473 System types:
1474   --build=BUILD     configure for building on BUILD [guessed]
1475   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-option-checking  ignore unrecognized --enable/--with options
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --enable-maintainer-mode enable makefile rules useful for maintainers
1488   --enable-symlink-install use symlinks when installing instead of hard links
1489   --enable-relative-symlinks use relative symlinks when installing
1490
1491   --enable-symlink-build  use symlinks while building instead of hard links
1492   --enable-verbose-makecmds enable verbose make command output
1493   --enable-compression    enable EXPERIMENTAL compression support
1494   --enable-htree          enable EXPERIMENTAL htree directory support
1495   --enable-elf-shlibs     select ELF shared libraries
1496   --enable-bsd-shlibs     select BSD shared libraries
1497   --enable-profile        build profiling libraries
1498   --enable-checker        build checker libraries
1499   --enable-jbd-debug      enable journal debugging
1500   --enable-blkid-debug    enable blkid debugging
1501   --disable-testio-debug  disable the use of the test I/O manager for debugging
1502   --disable-libuuid       do not build private uuid library
1503   --disable-libblkid      do not build private blkid library
1504   --enable-quota          enable quota support
1505   --disable-backtrace     disable use backtrace
1506   --disable-debugfs       disable support of debugfs program
1507   --disable-imager        disable support of e2image program
1508   --disable-resizer       disable support of e2resize program
1509   --disable-defrag        disable support of e4defrag program
1510   --enable-fsck           build fsck wrapper program
1511   --enable-e2initrd-helper build e2initrd-helper program
1512   --disable-tls           disable use of thread local support
1513   --disable-uuidd         disable building the uuid daemon
1514   --disable-mmp           disable support mmp, Multi Mount Protection
1515   --disable-bmap-stats    disable collection of bitmap stats.
1516   --enable-bmap-stats-ops enable collection of additional bitmap stats
1517   --disable-nls           do not use Native Language Support
1518   --disable-rpath         do not hardcode runtime library paths
1519
1520 Optional Packages:
1521   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1522   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1523   --with-diet-libc        use diet libc
1524   --with-cc               no longer supported, use CC= instead
1525   --with-ccopts           no longer supported, use CFLAGS= instead
1526   --with-ldopts           no longer supported, use LDFLAGS= instead
1527   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1528   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1529   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1530   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1531   --with-included-gettext use the GNU gettext library included here
1532   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1533   --without-libintl-prefix     don't search for libintl in includedir and libdir
1534   --with-multiarch=ARCH specify the multiarch triplet
1535
1536 Some influential environment variables:
1537   CC          C compiler command
1538   CFLAGS      C compiler flags
1539   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1540               nonstandard directory <lib dir>
1541   LIBS        libraries to pass to the linker, e.g. -l<library>
1542   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543               you have headers in a nonstandard directory <include dir>
1544   CPP         C preprocessor
1545   PKG_CONFIG  path to pkg-config utility
1546
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to the package provider.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556   # If there are subdirs, report their specific --help.
1557   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558     test -d "$ac_dir" ||
1559       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560       continue
1561     ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567   # A ".." for each directory in $ac_dir_suffix.
1568   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569   case $ac_top_builddir_sub in
1570   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572   esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580   .)  # We are building in place.
1581     ac_srcdir=.
1582     ac_top_srcdir=$ac_top_builddir_sub
1583     ac_abs_top_srcdir=$ac_pwd ;;
1584   [\\/]* | ?:[\\/]* )  # Absolute name.
1585     ac_srcdir=$srcdir$ac_dir_suffix;
1586     ac_top_srcdir=$srcdir
1587     ac_abs_top_srcdir=$srcdir ;;
1588   *) # Relative name.
1589     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590     ac_top_srcdir=$ac_top_build_prefix$srcdir
1591     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595     cd "$ac_dir" || { ac_status=$?; continue; }
1596     # Check for guested configure.
1597     if test -f "$ac_srcdir/configure.gnu"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600     elif test -f "$ac_srcdir/configure"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure" --help=recursive
1603     else
1604       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605     fi || ac_status=$?
1606     cd "$ac_pwd" || { ac_status=$?; break; }
1607   done
1608 fi
1609
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612   cat <<\_ACEOF
1613 configure
1614 generated by GNU Autoconf 2.69
1615
1616 Copyright (C) 2012 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619 _ACEOF
1620   exit
1621 fi
1622
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1626
1627 # ac_fn_c_try_compile LINENO
1628 # --------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   rm -f conftest.$ac_objext
1634   if { { ac_try="$ac_compile"
1635 case "(($ac_try" in
1636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637   *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641   (eval "$ac_compile") 2>conftest.err
1642   ac_status=$?
1643   if test -s conftest.err; then
1644     grep -v '^ *+' conftest.err >conftest.er1
1645     cat conftest.er1 >&5
1646     mv -f conftest.er1 conftest.err
1647   fi
1648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649   test $ac_status = 0; } && {
1650          test -z "$ac_c_werror_flag" ||
1651          test ! -s conftest.err
1652        } && test -s conftest.$ac_objext; then :
1653   ac_retval=0
1654 else
1655   $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658         ac_retval=1
1659 fi
1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661   as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_compile
1664
1665 # ac_fn_c_try_link LINENO
1666 # -----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_link ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   rm -f conftest.$ac_objext conftest$ac_exeext
1672   if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675   *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679   (eval "$ac_link") 2>conftest.err
1680   ac_status=$?
1681   if test -s conftest.err; then
1682     grep -v '^ *+' conftest.err >conftest.er1
1683     cat conftest.er1 >&5
1684     mv -f conftest.er1 conftest.err
1685   fi
1686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687   test $ac_status = 0; } && {
1688          test -z "$ac_c_werror_flag" ||
1689          test ! -s conftest.err
1690        } && test -s conftest$ac_exeext && {
1691          test "$cross_compiling" = yes ||
1692          test -x conftest$ac_exeext
1693        }; then :
1694   ac_retval=0
1695 else
1696   $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699         ac_retval=1
1700 fi
1701   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703   # interfere with the next link command; also delete a directory that is
1704   # left behind by Apple's compiler.  We do this before executing the actions.
1705   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707   as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_link
1710
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_cpp ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } > conftest.i && {
1733          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741     ac_retval=1
1742 fi
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_cpp
1747
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1752 ac_fn_c_try_run ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_link") 2>&5
1763   ac_status=$?
1764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766   { { case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_try") 2>&5
1773   ac_status=$?
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; }; }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: program exited with status $ac_status" >&5
1779        $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782        ac_retval=$ac_status
1783 fi
1784   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786   as_fn_set_status $ac_retval
1787
1788 } # ac_fn_c_try_run
1789
1790 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1791 # -------------------------------------------
1792 # Tests whether TYPE exists after having included INCLUDES, setting cache
1793 # variable VAR accordingly.
1794 ac_fn_c_check_type ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800   $as_echo_n "(cached) " >&6
1801 else
1802   eval "$3=no"
1803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h.  */
1805 $4
1806 int
1807 main ()
1808 {
1809 if (sizeof ($2))
1810          return 0;
1811   ;
1812   return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 int
1820 main ()
1821 {
1822 if (sizeof (($2)))
1823             return 0;
1824   ;
1825   return 0;
1826 }
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829
1830 else
1831   eval "$3=yes"
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_type
1843
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 $4
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862   eval "$3=yes"
1863 else
1864   eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 fi
1868 eval ac_res=\$$3
1869                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_compile
1874
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884   $as_echo_n "(cached) " >&6
1885 else
1886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h.  */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1890 #define $2 innocuous_$2
1891
1892 /* System header to define __stub macros and hopefully few prototypes,
1893     which can conflict with char $2 (); below.
1894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895     <limits.h> exists even on freestanding compilers.  */
1896
1897 #ifdef __STDC__
1898 # include <limits.h>
1899 #else
1900 # include <assert.h>
1901 #endif
1902
1903 #undef $2
1904
1905 /* Override any GCC internal prototype to avoid an error.
1906    Use char because int might match the return type of a GCC
1907    builtin and then its argument prototype would still apply.  */
1908 #ifdef __cplusplus
1909 extern "C"
1910 #endif
1911 char $2 ();
1912 /* The GNU C library defines this for functions which it implements
1913     to always fail with ENOSYS.  Some functions are actually named
1914     something starting with __ and the normal name is an alias.  */
1915 #if defined __stub_$2 || defined __stub___$2
1916 choke me
1917 #endif
1918
1919 int
1920 main ()
1921 {
1922 return $2 ();
1923   ;
1924   return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_link "$LINENO"; then :
1928   eval "$3=yes"
1929 else
1930   eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext \
1933     conftest$ac_exeext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_func
1941
1942 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1946 # accordingly.
1947 ac_fn_c_check_header_mongrel ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   if eval \${$3+:} false; then :
1951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954   $as_echo_n "(cached) " >&6
1955 fi
1956 eval ac_res=\$$3
1957                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 else
1960   # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 $4
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969   ac_header_compiler=yes
1970 else
1971   ac_header_compiler=no
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1976
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_c_try_cpp "$LINENO"; then :
1985   ac_header_preproc=yes
1986 else
1987   ac_header_preproc=no
1988 fi
1989 rm -f conftest.err conftest.i conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1992
1993 # So?  What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995   yes:no: )
1996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000     ;;
2001   no:yes:* )
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012     ;;
2013 esac
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017   $as_echo_n "(cached) " >&6
2018 else
2019   eval "$3=\$ac_header_compiler"
2020 fi
2021 eval ac_res=\$$3
2022                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 fi
2025   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027 } # ac_fn_c_check_header_mongrel
2028
2029 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2030 # --------------------------------------------
2031 # Tries to find the compile-time value of EXPR in a program that includes
2032 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2033 # computed
2034 ac_fn_c_compute_int ()
2035 {
2036   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037   if test "$cross_compiling" = yes; then
2038     # Depending upon the size, compute the lo and hi bounds.
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h.  */
2041 $4
2042 int
2043 main ()
2044 {
2045 static int test_array [1 - 2 * !(($2) >= 0)];
2046 test_array [0] = 0;
2047 return test_array [0];
2048
2049   ;
2050   return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054   ac_lo=0 ac_mid=0
2055   while :; do
2056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2063 test_array [0] = 0;
2064 return test_array [0];
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   ac_hi=$ac_mid; break
2072 else
2073   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2074                         if test $ac_lo -le $ac_mid; then
2075                           ac_lo= ac_hi=
2076                           break
2077                         fi
2078                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081   done
2082 else
2083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h.  */
2085 $4
2086 int
2087 main ()
2088 {
2089 static int test_array [1 - 2 * !(($2) < 0)];
2090 test_array [0] = 0;
2091 return test_array [0];
2092
2093   ;
2094   return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098   ac_hi=-1 ac_mid=-1
2099   while :; do
2100     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 $4
2103 int
2104 main ()
2105 {
2106 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2107 test_array [0] = 0;
2108 return test_array [0];
2109
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115   ac_lo=$ac_mid; break
2116 else
2117   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2118                         if test $ac_mid -le $ac_hi; then
2119                           ac_lo= ac_hi=
2120                           break
2121                         fi
2122                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125   done
2126 else
2127   ac_lo= ac_hi=
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 # Binary search between lo and hi bounds.
2133 while test "x$ac_lo" != "x$ac_hi"; do
2134   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h.  */
2137 $4
2138 int
2139 main ()
2140 {
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 test_array [0] = 0;
2143 return test_array [0];
2144
2145   ;
2146   return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150   ac_hi=$ac_mid
2151 else
2152   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 done
2156 case $ac_lo in #((
2157 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2158 '') ac_retval=1 ;;
2159 esac
2160   else
2161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 static long int longval () { return $2; }
2165 static unsigned long int ulongval () { return $2; }
2166 #include <stdio.h>
2167 #include <stdlib.h>
2168 int
2169 main ()
2170 {
2171
2172   FILE *f = fopen ("conftest.val", "w");
2173   if (! f)
2174     return 1;
2175   if (($2) < 0)
2176     {
2177       long int i = longval ();
2178       if (i != ($2))
2179         return 1;
2180       fprintf (f, "%ld", i);
2181     }
2182   else
2183     {
2184       unsigned long int i = ulongval ();
2185       if (i != ($2))
2186         return 1;
2187       fprintf (f, "%lu", i);
2188     }
2189   /* Do not output a trailing newline, as this causes \r\n confusion
2190      on some platforms.  */
2191   return ferror (f) || fclose (f) != 0;
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_run "$LINENO"; then :
2198   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2199 else
2200   ac_retval=1
2201 fi
2202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2203   conftest.$ac_objext conftest.beam conftest.$ac_ext
2204 rm -f conftest.val
2205
2206   fi
2207   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208   as_fn_set_status $ac_retval
2209
2210 } # ac_fn_c_compute_int
2211
2212 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2213 # ----------------------------------------------------
2214 # Tries to find if the field MEMBER exists in type AGGR, after including
2215 # INCLUDES, setting cache variable VAR accordingly.
2216 ac_fn_c_check_member ()
2217 {
2218   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2220 $as_echo_n "checking for $2.$3... " >&6; }
2221 if eval \${$4+:} false; then :
2222   $as_echo_n "(cached) " >&6
2223 else
2224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h.  */
2226 $5
2227 int
2228 main ()
2229 {
2230 static $2 ac_aggr;
2231 if (ac_aggr.$3)
2232 return 0;
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238   eval "$4=yes"
2239 else
2240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h.  */
2242 $5
2243 int
2244 main ()
2245 {
2246 static $2 ac_aggr;
2247 if (sizeof ac_aggr.$3)
2248 return 0;
2249   ;
2250   return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254   eval "$4=yes"
2255 else
2256   eval "$4=no"
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 eval ac_res=\$$4
2263                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266
2267 } # ac_fn_c_check_member
2268
2269 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2270 # ---------------------------------------------
2271 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2272 # accordingly.
2273 ac_fn_c_check_decl ()
2274 {
2275   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276   as_decl_name=`echo $2|sed 's/ *(.*//'`
2277   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2279 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2280 if eval \${$3+:} false; then :
2281   $as_echo_n "(cached) " >&6
2282 else
2283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $4
2286 int
2287 main ()
2288 {
2289 #ifndef $as_decl_name
2290 #ifdef __cplusplus
2291   (void) $as_decl_use;
2292 #else
2293   (void) $as_decl_name;
2294 #endif
2295 #endif
2296
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302   eval "$3=yes"
2303 else
2304   eval "$3=no"
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 fi
2308 eval ac_res=\$$3
2309                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312
2313 } # ac_fn_c_check_decl
2314 cat >config.log <<_ACEOF
2315 This file contains any messages produced by compilers while
2316 running configure, to aid debugging if configure makes a mistake.
2317
2318 It was created by $as_me, which was
2319 generated by GNU Autoconf 2.69.  Invocation command line was
2320
2321   $ $0 $@
2322
2323 _ACEOF
2324 exec 5>>config.log
2325 {
2326 cat <<_ASUNAME
2327 ## --------- ##
2328 ## Platform. ##
2329 ## --------- ##
2330
2331 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2332 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2333 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2334 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2335 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2336
2337 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2338 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2339
2340 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2341 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2342 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2343 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2344 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2345 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2346 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2347
2348 _ASUNAME
2349
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2352 do
2353   IFS=$as_save_IFS
2354   test -z "$as_dir" && as_dir=.
2355     $as_echo "PATH: $as_dir"
2356   done
2357 IFS=$as_save_IFS
2358
2359 } >&5
2360
2361 cat >&5 <<_ACEOF
2362
2363
2364 ## ----------- ##
2365 ## Core tests. ##
2366 ## ----------- ##
2367
2368 _ACEOF
2369
2370
2371 # Keep a trace of the command line.
2372 # Strip out --no-create and --no-recursion so they do not pile up.
2373 # Strip out --silent because we don't want to record it for future runs.
2374 # Also quote any args containing shell meta-characters.
2375 # Make two passes to allow for proper duplicate-argument suppression.
2376 ac_configure_args=
2377 ac_configure_args0=
2378 ac_configure_args1=
2379 ac_must_keep_next=false
2380 for ac_pass in 1 2
2381 do
2382   for ac_arg
2383   do
2384     case $ac_arg in
2385     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2386     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2387     | -silent | --silent | --silen | --sile | --sil)
2388       continue ;;
2389     *\'*)
2390       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2391     esac
2392     case $ac_pass in
2393     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2394     2)
2395       as_fn_append ac_configure_args1 " '$ac_arg'"
2396       if test $ac_must_keep_next = true; then
2397         ac_must_keep_next=false # Got value, back to normal.
2398       else
2399         case $ac_arg in
2400           *=* | --config-cache | -C | -disable-* | --disable-* \
2401           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2402           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2403           | -with-* | --with-* | -without-* | --without-* | --x)
2404             case "$ac_configure_args0 " in
2405               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2406             esac
2407             ;;
2408           -* ) ac_must_keep_next=true ;;
2409         esac
2410       fi
2411       as_fn_append ac_configure_args " '$ac_arg'"
2412       ;;
2413     esac
2414   done
2415 done
2416 { ac_configure_args0=; unset ac_configure_args0;}
2417 { ac_configure_args1=; unset ac_configure_args1;}
2418
2419 # When interrupted or exit'd, cleanup temporary files, and complete
2420 # config.log.  We remove comments because anyway the quotes in there
2421 # would cause problems or look ugly.
2422 # WARNING: Use '\'' to represent an apostrophe within the trap.
2423 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2424 trap 'exit_status=$?
2425   # Save into config.log some information that might help in debugging.
2426   {
2427     echo
2428
2429     $as_echo "## ---------------- ##
2430 ## Cache variables. ##
2431 ## ---------------- ##"
2432     echo
2433     # The following way of writing the cache mishandles newlines in values,
2434 (
2435   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2436     eval ac_val=\$$ac_var
2437     case $ac_val in #(
2438     *${as_nl}*)
2439       case $ac_var in #(
2440       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2441 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2442       esac
2443       case $ac_var in #(
2444       _ | IFS | as_nl) ;; #(
2445       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2446       *) { eval $ac_var=; unset $ac_var;} ;;
2447       esac ;;
2448     esac
2449   done
2450   (set) 2>&1 |
2451     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2452     *${as_nl}ac_space=\ *)
2453       sed -n \
2454         "s/'\''/'\''\\\\'\'''\''/g;
2455           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2456       ;; #(
2457     *)
2458       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459       ;;
2460     esac |
2461     sort
2462 )
2463     echo
2464
2465     $as_echo "## ----------------- ##
2466 ## Output variables. ##
2467 ## ----------------- ##"
2468     echo
2469     for ac_var in $ac_subst_vars
2470     do
2471       eval ac_val=\$$ac_var
2472       case $ac_val in
2473       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474       esac
2475       $as_echo "$ac_var='\''$ac_val'\''"
2476     done | sort
2477     echo
2478
2479     if test -n "$ac_subst_files"; then
2480       $as_echo "## ------------------- ##
2481 ## File substitutions. ##
2482 ## ------------------- ##"
2483       echo
2484       for ac_var in $ac_subst_files
2485       do
2486         eval ac_val=\$$ac_var
2487         case $ac_val in
2488         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489         esac
2490         $as_echo "$ac_var='\''$ac_val'\''"
2491       done | sort
2492       echo
2493     fi
2494
2495     if test -s confdefs.h; then
2496       $as_echo "## ----------- ##
2497 ## confdefs.h. ##
2498 ## ----------- ##"
2499       echo
2500       cat confdefs.h
2501       echo
2502     fi
2503     test "$ac_signal" != 0 &&
2504       $as_echo "$as_me: caught signal $ac_signal"
2505     $as_echo "$as_me: exit $exit_status"
2506   } >&5
2507   rm -f core *.core core.conftest.* &&
2508     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2509     exit $exit_status
2510 ' 0
2511 for ac_signal in 1 2 13 15; do
2512   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2513 done
2514 ac_signal=0
2515
2516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2517 rm -f -r conftest* confdefs.h
2518
2519 $as_echo "/* confdefs.h */" > confdefs.h
2520
2521 # Predefined preprocessor variables.
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_NAME "$PACKAGE_NAME"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_STRING "$PACKAGE_STRING"
2537 _ACEOF
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2541 _ACEOF
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_URL "$PACKAGE_URL"
2545 _ACEOF
2546
2547
2548 # Let the site file select an alternate cache file if it wants to.
2549 # Prefer an explicitly selected file to automatically selected ones.
2550 ac_site_file1=NONE
2551 ac_site_file2=NONE
2552 if test -n "$CONFIG_SITE"; then
2553   # We do not want a PATH search for config.site.
2554   case $CONFIG_SITE in #((
2555     -*)  ac_site_file1=./$CONFIG_SITE;;
2556     */*) ac_site_file1=$CONFIG_SITE;;
2557     *)   ac_site_file1=./$CONFIG_SITE;;
2558   esac
2559 elif test "x$prefix" != xNONE; then
2560   ac_site_file1=$prefix/share/config.site
2561   ac_site_file2=$prefix/etc/config.site
2562 else
2563   ac_site_file1=$ac_default_prefix/share/config.site
2564   ac_site_file2=$ac_default_prefix/etc/config.site
2565 fi
2566 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567 do
2568   test "x$ac_site_file" = xNONE && continue
2569   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2570     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2571 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2572     sed 's/^/| /' "$ac_site_file" >&5
2573     . "$ac_site_file" \
2574       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576 as_fn_error $? "failed to load site script $ac_site_file
2577 See \`config.log' for more details" "$LINENO" 5; }
2578   fi
2579 done
2580
2581 if test -r "$cache_file"; then
2582   # Some versions of bash will fail to source /dev/null (special files
2583   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2584   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2585     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2586 $as_echo "$as_me: loading cache $cache_file" >&6;}
2587     case $cache_file in
2588       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2589       *)                      . "./$cache_file";;
2590     esac
2591   fi
2592 else
2593   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2594 $as_echo "$as_me: creating cache $cache_file" >&6;}
2595   >$cache_file
2596 fi
2597
2598 as_fn_append ac_header_list " stdlib.h"
2599 as_fn_append ac_header_list " unistd.h"
2600 as_fn_append ac_header_list " sys/param.h"
2601 # Check that the precious variables saved in the cache have kept the same
2602 # value.
2603 ac_cache_corrupted=false
2604 for ac_var in $ac_precious_vars; do
2605   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2606   eval ac_new_set=\$ac_env_${ac_var}_set
2607   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2608   eval ac_new_val=\$ac_env_${ac_var}_value
2609   case $ac_old_set,$ac_new_set in
2610     set,)
2611       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2613       ac_cache_corrupted=: ;;
2614     ,set)
2615       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2616 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2617       ac_cache_corrupted=: ;;
2618     ,);;
2619     *)
2620       if test "x$ac_old_val" != "x$ac_new_val"; then
2621         # differences in whitespace do not lead to failure.
2622         ac_old_val_w=`echo x $ac_old_val`
2623         ac_new_val_w=`echo x $ac_new_val`
2624         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2625           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2626 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2627           ac_cache_corrupted=:
2628         else
2629           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2630 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2631           eval $ac_var=\$ac_old_val
2632         fi
2633         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2634 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2635         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2636 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2637       fi;;
2638   esac
2639   # Pass precious variables to config.status.
2640   if test "$ac_new_set" = set; then
2641     case $ac_new_val in
2642     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2643     *) ac_arg=$ac_var=$ac_new_val ;;
2644     esac
2645     case " $ac_configure_args " in
2646       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2647       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2648     esac
2649   fi
2650 done
2651 if $ac_cache_corrupted; then
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2655 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2656   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2657 fi
2658 ## -------------------- ##
2659 ## Main body of script. ##
2660 ## -------------------- ##
2661
2662 ac_ext=c
2663 ac_cpp='$CPP $CPPFLAGS'
2664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667
2668
2669
2670 ac_aux_dir=
2671 for ac_dir in config "$srcdir"/config; do
2672   if 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/install.sh"; then
2677     ac_aux_dir=$ac_dir
2678     ac_install_sh="$ac_aux_dir/install.sh -c"
2679     break
2680   elif test -f "$ac_dir/shtool"; then
2681     ac_aux_dir=$ac_dir
2682     ac_install_sh="$ac_aux_dir/shtool install -c"
2683     break
2684   fi
2685 done
2686 if test -z "$ac_aux_dir"; then
2687   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2688 fi
2689
2690 # These three variables are undocumented and unsupported,
2691 # and are intended to be withdrawn in a future Autoconf release.
2692 # They can cause serious problems if a builder's source tree is in a directory
2693 # whose full name contains unusual characters.
2694 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2695 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2696 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2697
2698
2699 ac_config_headers="$ac_config_headers lib/config.h"
2700
2701
2702 MCONFIG=./MCONFIG
2703
2704 BINARY_TYPE=bin
2705 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2706         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2707 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2708         | tr \" " "`
2709 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2710 MONTH=`echo $DATE | awk -F- '{print $2}'`
2711 YEAR=`echo $DATE | awk -F- '{print $3}'`
2712
2713 if expr $YEAR ">" 1900 > /dev/null ; then
2714         E2FSPROGS_YEAR=$YEAR
2715 elif expr $YEAR ">" 90 >/dev/null ; then
2716         E2FSPROGS_YEAR=19$YEAR
2717 else
2718         E2FSPROGS_YEAR=20$YEAR
2719 fi
2720
2721 case $MONTH in
2722 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2723 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2724 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2725 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2726 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2727 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2728 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2729 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2730 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2731 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2732 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2733 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2734 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2735 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2736 esac
2737
2738 base_ver=`echo $E2FSPROGS_VERSION | \
2739                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2740
2741 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2742
2743 case $E2FSPROGS_VERSION in
2744 *-WIP|pre-*)
2745         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2746         ;;
2747 *)
2748         E2FSPROGS_PKGVER="$base_ver"
2749         ;;
2750 esac
2751
2752 unset DATE MONTH YEAR base_ver pre_vers date_spec
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2754 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2756 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2757
2758
2759
2760
2761
2762 WITH_DIET_LIBC=
2763
2764 # Check whether --with-diet-libc was given.
2765 if test "${with_diet_libc+set}" = set; then :
2766   withval=$with_diet_libc; CC="diet cc -nostdinc"
2767 WITH_DIET_LIBC=yes
2768 if test -z "$LIBS"
2769 then
2770         LIBS="-lcompat"
2771 else
2772         LIBS="$LIBS -lcompat"
2773 fi
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2775 $as_echo "CC=$CC" >&6; }
2776 fi
2777 # Make sure we can run config.sub.
2778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2779   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2780
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2782 $as_echo_n "checking build system type... " >&6; }
2783 if ${ac_cv_build+:} false; then :
2784   $as_echo_n "(cached) " >&6
2785 else
2786   ac_build_alias=$build_alias
2787 test "x$ac_build_alias" = x &&
2788   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2789 test "x$ac_build_alias" = x &&
2790   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2792   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2793
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2796 $as_echo "$ac_cv_build" >&6; }
2797 case $ac_cv_build in
2798 *-*-*) ;;
2799 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2800 esac
2801 build=$ac_cv_build
2802 ac_save_IFS=$IFS; IFS='-'
2803 set x $ac_cv_build
2804 shift
2805 build_cpu=$1
2806 build_vendor=$2
2807 shift; shift
2808 # Remember, the first character of IFS is used to create $*,
2809 # except with old shells:
2810 build_os=$*
2811 IFS=$ac_save_IFS
2812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2813
2814
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2816 $as_echo_n "checking host system type... " >&6; }
2817 if ${ac_cv_host+:} false; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test "x$host_alias" = x; then
2821   ac_cv_host=$ac_cv_build
2822 else
2823   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2824     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2825 fi
2826
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2829 $as_echo "$ac_cv_host" >&6; }
2830 case $ac_cv_host in
2831 *-*-*) ;;
2832 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2833 esac
2834 host=$ac_cv_host
2835 ac_save_IFS=$IFS; IFS='-'
2836 set x $ac_cv_host
2837 shift
2838 host_cpu=$1
2839 host_vendor=$2
2840 shift; shift
2841 # Remember, the first character of IFS is used to create $*,
2842 # except with old shells:
2843 host_os=$*
2844 IFS=$ac_save_IFS
2845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2846
2847
2848 DLOPEN_LIB=''
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test -n "$CC"; then
2863   ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877   done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892 fi
2893 if test -z "$ac_cv_prog_CC"; then
2894   ac_ct_CC=$CC
2895   # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900   $as_echo_n "(cached) " >&6
2901 else
2902   if test -n "$ac_ct_CC"; then
2903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910     for ac_exec_ext in '' $ac_executable_extensions; do
2911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912     ac_cv_prog_ac_ct_CC="gcc"
2913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917   done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2926 else
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931   if test "x$ac_ct_CC" = x; then
2932     CC=""
2933   else
2934     case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2939 esac
2940     CC=$ac_ct_CC
2941   fi
2942 else
2943   CC="$ac_cv_prog_CC"
2944 fi
2945
2946 if test -z "$CC"; then
2947           if test -n "$ac_tool_prefix"; then
2948     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953   $as_echo_n "(cached) " >&6
2954 else
2955   if test -n "$CC"; then
2956   ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961   IFS=$as_save_IFS
2962   test -z "$as_dir" && as_dir=.
2963     for ac_exec_ext in '' $ac_executable_extensions; do
2964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965     ac_cv_prog_CC="${ac_tool_prefix}cc"
2966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967     break 2
2968   fi
2969 done
2970   done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2979 else
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985   fi
2986 fi
2987 if test -z "$CC"; then
2988   # Extract the first word of "cc", so it can be a program name with args.
2989 set dummy cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   if test -n "$CC"; then
2996   ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998   ac_prog_rejected=no
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002   IFS=$as_save_IFS
3003   test -z "$as_dir" && as_dir=.
3004     for ac_exec_ext in '' $ac_executable_extensions; do
3005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007        ac_prog_rejected=yes
3008        continue
3009      fi
3010     ac_cv_prog_CC="cc"
3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015   done
3016 IFS=$as_save_IFS
3017
3018 if test $ac_prog_rejected = yes; then
3019   # We found a bogon in the path, so make sure we never use it.
3020   set dummy $ac_cv_prog_CC
3021   shift
3022   if test $# != 0; then
3023     # We chose a different compiler from the bogus one.
3024     # However, it has the same basename, so the bogon will be chosen
3025     # first if we set CC to just the basename; use the full file name.
3026     shift
3027     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3028   fi
3029 fi
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042 fi
3043 if test -z "$CC"; then
3044   if test -n "$ac_tool_prefix"; then
3045   for ac_prog in cl.exe
3046   do
3047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_CC+:} false; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   if test -n "$CC"; then
3055   ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     for ac_exec_ext in '' $ac_executable_extensions; do
3063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069   done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084     test -n "$CC" && break
3085   done
3086 fi
3087 if test -z "$CC"; then
3088   ac_ct_CC=$CC
3089   for ac_prog in cl.exe
3090 do
3091   # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3096   $as_echo_n "(cached) " >&6
3097 else
3098   if test -n "$ac_ct_CC"; then
3099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104   IFS=$as_save_IFS
3105   test -z "$as_dir" && as_dir=.
3106     for ac_exec_ext in '' $ac_executable_extensions; do
3107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108     ac_cv_prog_ac_ct_CC="$ac_prog"
3109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110     break 2
3111   fi
3112 done
3113   done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3122 else
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128   test -n "$ac_ct_CC" && break
3129 done
3130
3131   if test "x$ac_ct_CC" = x; then
3132     CC=""
3133   else
3134     case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140     CC=$ac_ct_CC
3141   fi
3142 fi
3143
3144 fi
3145
3146
3147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details" "$LINENO" 5; }
3151
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3154 set X $ac_compile
3155 ac_compiler=$2
3156 for ac_option in --version -v -V -qversion; do
3157   { { ac_try="$ac_compiler $ac_option >&5"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3165   ac_status=$?
3166   if test -s conftest.err; then
3167     sed '10a\
3168 ... rest of stderr output deleted ...
3169          10q' conftest.err >conftest.er1
3170     cat conftest.er1 >&5
3171   fi
3172   rm -f conftest.er1 conftest.err
3173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174   test $ac_status = 0; }
3175 done
3176
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h.  */
3179
3180 int
3181 main ()
3182 {
3183
3184   ;
3185   return 0;
3186 }
3187 _ACEOF
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3192 # of exeext.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194 $as_echo_n "checking whether the C compiler works... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199
3200 ac_rmfiles=
3201 for ac_file in $ac_files
3202 do
3203   case $ac_file in
3204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206   esac
3207 done
3208 rm -f $ac_rmfiles
3209
3210 if { { ac_try="$ac_link_default"
3211 case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217   (eval "$ac_link_default") 2>&5
3218   ac_status=$?
3219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220   test $ac_status = 0; }; then :
3221   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3225 # Autoconf.
3226 for ac_file in $ac_files ''
3227 do
3228   test -f "$ac_file" || continue
3229   case $ac_file in
3230     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231         ;;
3232     [ab].out )
3233         # We found the default executable, but exeext='' is most
3234         # certainly right.
3235         break;;
3236     *.* )
3237         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238         then :; else
3239            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240         fi
3241         # We set ac_cv_exeext here because the later test for it is not
3242         # safe: cross compilers may not add the suffix if given an `-o'
3243         # argument, so we may need to know it at that point already.
3244         # Even if this section looks crufty: it has the advantage of
3245         # actually working.
3246         break;;
3247     * )
3248         break;;
3249   esac
3250 done
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
3253 else
3254   ac_file=''
3255 fi
3256 if test -z "$ac_file"; then :
3257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error 77 "C compiler cannot create executables
3265 See \`config.log' for more details" "$LINENO" 5; }
3266 else
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271 $as_echo_n "checking for C compiler default output file name... " >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273 $as_echo "$ac_file" >&6; }
3274 ac_exeext=$ac_cv_exeext
3275
3276 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3277 ac_clean_files=$ac_clean_files_save
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3279 $as_echo_n "checking for suffix of executables... " >&6; }
3280 if { { ac_try="$ac_link"
3281 case "(($ac_try" in
3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283   *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287   (eval "$ac_link") 2>&5
3288   ac_status=$?
3289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290   test $ac_status = 0; }; then :
3291   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3293 # work properly (i.e., refer to `conftest.exe'), while it won't with
3294 # `rm'.
3295 for ac_file in conftest.exe conftest conftest.*; do
3296   test -f "$ac_file" || continue
3297   case $ac_file in
3298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300           break;;
3301     * ) break;;
3302   esac
3303 done
3304 else
3305   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308 See \`config.log' for more details" "$LINENO" 5; }
3309 fi
3310 rm -f conftest conftest$ac_cv_exeext
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3312 $as_echo "$ac_cv_exeext" >&6; }
3313
3314 rm -f conftest.$ac_ext
3315 EXEEXT=$ac_cv_exeext
3316 ac_exeext=$EXEEXT
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h.  */
3319 #include <stdio.h>
3320 int
3321 main ()
3322 {
3323 FILE *f = fopen ("conftest.out", "w");
3324  return ferror (f) || fclose (f) != 0;
3325
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 ac_clean_files="$ac_clean_files conftest.out"
3331 # Check that the compiler produces executables we can run.  If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 if test "$cross_compiling" != yes; then
3336   { { ac_try="$ac_link"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343   (eval "$ac_link") 2>&5
3344   ac_status=$?
3345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346   test $ac_status = 0; }
3347   if { ac_try='./conftest$ac_cv_exeext'
3348   { { case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354   (eval "$ac_try") 2>&5
3355   ac_status=$?
3356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357   test $ac_status = 0; }; }; then
3358     cross_compiling=no
3359   else
3360     if test "$cross_compiling" = maybe; then
3361         cross_compiling=yes
3362     else
3363         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details" "$LINENO" 5; }
3368     fi
3369   fi
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372 $as_echo "$cross_compiling" >&6; }
3373
3374 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375 ac_clean_files=$ac_clean_files_save
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377 $as_echo_n "checking for suffix of object files... " >&6; }
3378 if ${ac_cv_objext+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387
3388   ;
3389   return 0;
3390 }
3391 _ACEOF
3392 rm -f conftest.o conftest.obj
3393 if { { ac_try="$ac_compile"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400   (eval "$ac_compile") 2>&5
3401   ac_status=$?
3402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403   test $ac_status = 0; }; then :
3404   for ac_file in conftest.o conftest.obj conftest.*; do
3405   test -f "$ac_file" || continue;
3406   case $ac_file in
3407     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409        break;;
3410   esac
3411 done
3412 else
3413   $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of object files: cannot compile
3419 See \`config.log' for more details" "$LINENO" 5; }
3420 fi
3421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424 $as_echo "$ac_cv_objext" >&6; }
3425 OBJEXT=$ac_cv_objext
3426 ac_objext=$OBJEXT
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429 if ${ac_cv_c_compiler_gnu+:} false; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438 #ifndef __GNUC__
3439        choke me
3440 #endif
3441
3442   ;
3443   return 0;
3444 }
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447   ac_compiler_gnu=yes
3448 else
3449   ac_compiler_gnu=no
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457 if test $ac_compiler_gnu = yes; then
3458   GCC=yes
3459 else
3460   GCC=
3461 fi
3462 ac_test_CFLAGS=${CFLAGS+set}
3463 ac_save_CFLAGS=$CFLAGS
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3466 if ${ac_cv_prog_cc_g+:} false; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   ac_save_c_werror_flag=$ac_c_werror_flag
3470    ac_c_werror_flag=yes
3471    ac_cv_prog_cc_g=no
3472    CFLAGS="-g"
3473    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485   ac_cv_prog_cc_g=yes
3486 else
3487   CFLAGS=""
3488       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500
3501 else
3502   ac_c_werror_flag=$ac_save_c_werror_flag
3503          CFLAGS="-g"
3504          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506
3507 int
3508 main ()
3509 {
3510
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516   ac_cv_prog_cc_g=yes
3517 fi
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523    ac_c_werror_flag=$ac_save_c_werror_flag
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526 $as_echo "$ac_cv_prog_cc_g" >&6; }
3527 if test "$ac_test_CFLAGS" = set; then
3528   CFLAGS=$ac_save_CFLAGS
3529 elif test $ac_cv_prog_cc_g = yes; then
3530   if test "$GCC" = yes; then
3531     CFLAGS="-g -O2"
3532   else
3533     CFLAGS="-g"
3534   fi
3535 else
3536   if test "$GCC" = yes; then
3537     CFLAGS="-O2"
3538   else
3539     CFLAGS=
3540   fi
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544 if ${ac_cv_prog_cc_c89+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   ac_cv_prog_cc_c89=no
3548 ac_save_CC=$CC
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551 #include <stdarg.h>
3552 #include <stdio.h>
3553 struct stat;
3554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3555 struct buf { int x; };
3556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557 static char *e (p, i)
3558      char **p;
3559      int i;
3560 {
3561   return p[i];
3562 }
3563 static char *f (char * (*g) (char **, int), char **p, ...)
3564 {
3565   char *s;
3566   va_list v;
3567   va_start (v,p);
3568   s = g (p, va_arg (v,int));
3569   va_end (v);
3570   return s;
3571 }
3572
3573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3574    function prototypes and stuff, but not '\xHH' hex character constants.
3575    These don't provoke an error unfortunately, instead are silently treated
3576    as 'x'.  The following induces an error, until -std is added to get
3577    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3578    array size at least.  It's necessary to write '\x00'==0 to get something
3579    that's true only with -std.  */
3580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3581
3582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583    inside strings and character constants.  */
3584 #define FOO(x) 'x'
3585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3586
3587 int test (int i, double x);
3588 struct s1 {int (*f) (int a);};
3589 struct s2 {int (*f) (double a);};
3590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591 int argc;
3592 char **argv;
3593 int
3594 main ()
3595 {
3596 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3603 do
3604   CC="$ac_save_CC $ac_arg"
3605   if ac_fn_c_try_compile "$LINENO"; then :
3606   ac_cv_prog_cc_c89=$ac_arg
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext
3609   test "x$ac_cv_prog_cc_c89" != "xno" && break
3610 done
3611 rm -f conftest.$ac_ext
3612 CC=$ac_save_CC
3613
3614 fi
3615 # AC_CACHE_VAL
3616 case "x$ac_cv_prog_cc_c89" in
3617   x)
3618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3620   xno)
3621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3623   *)
3624     CC="$CC $ac_cv_prog_cc_c89"
3625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3627 esac
3628 if test "x$ac_cv_prog_cc_c89" != xno; then :
3629
3630 fi
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3640 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3641 if ${ac_cv_lib_dl_dlopen+:} false; then :
3642   $as_echo_n "(cached) " >&6
3643 else
3644   ac_check_lib_save_LIBS=$LIBS
3645 LIBS="-ldl  $LIBS"
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h.  */
3648
3649 /* Override any GCC internal prototype to avoid an error.
3650    Use char because int might match the return type of a GCC
3651    builtin and then its argument prototype would still apply.  */
3652 #ifdef __cplusplus
3653 extern "C"
3654 #endif
3655 char dlopen ();
3656 int
3657 main ()
3658 {
3659 return dlopen ();
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 if ac_fn_c_try_link "$LINENO"; then :
3665   ac_cv_lib_dl_dlopen=yes
3666 else
3667   ac_cv_lib_dl_dlopen=no
3668 fi
3669 rm -f core conftest.err conftest.$ac_objext \
3670     conftest$ac_exeext conftest.$ac_ext
3671 LIBS=$ac_check_lib_save_LIBS
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3674 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3675 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3676   DLOPEN_LIB=-ldl
3677
3678 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3679
3680 fi
3681
3682
3683
3684 # Check whether --with-cc was given.
3685 if test "${with_cc+set}" = set; then :
3686   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3687 fi
3688
3689
3690 # Check whether --with-ccopts was given.
3691 if test "${with_ccopts+set}" = set; then :
3692   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3693 fi
3694
3695
3696 # Check whether --with-ldopts was given.
3697 if test "${with_ldopts+set}" = set; then :
3698   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3699 fi
3700
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 if test -n "$ac_tool_prefix"; then
3707   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3708 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712   $as_echo_n "(cached) " >&6
3713 else
3714   if test -n "$CC"; then
3715   ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720   IFS=$as_save_IFS
3721   test -z "$as_dir" && as_dir=.
3722     for ac_exec_ext in '' $ac_executable_extensions; do
3723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726     break 2
3727   fi
3728 done
3729   done
3730 IFS=$as_save_IFS
3731
3732 fi
3733 fi
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3741 fi
3742
3743
3744 fi
3745 if test -z "$ac_cv_prog_CC"; then
3746   ac_ct_CC=$CC
3747   # Extract the first word of "gcc", so it can be a program name with args.
3748 set dummy gcc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3752   $as_echo_n "(cached) " >&6
3753 else
3754   if test -n "$ac_ct_CC"; then
3755   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762     for ac_exec_ext in '' $ac_executable_extensions; do
3763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764     ac_cv_prog_ac_ct_CC="gcc"
3765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769   done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775 if test -n "$ac_ct_CC"; then
3776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777 $as_echo "$ac_ct_CC" >&6; }
3778 else
3779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3781 fi
3782
3783   if test "x$ac_ct_CC" = x; then
3784     CC=""
3785   else
3786     case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792     CC=$ac_ct_CC
3793   fi
3794 else
3795   CC="$ac_cv_prog_CC"
3796 fi
3797
3798 if test -z "$CC"; then
3799           if test -n "$ac_tool_prefix"; then
3800     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}cc; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_CC+:} false; then :
3805   $as_echo_n "(cached) " >&6
3806 else
3807   if test -n "$CC"; then
3808   ac_cv_prog_CC="$CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815     for ac_exec_ext in '' $ac_executable_extensions; do
3816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817     ac_cv_prog_CC="${ac_tool_prefix}cc"
3818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819     break 2
3820   fi
3821 done
3822   done
3823 IFS=$as_save_IFS
3824
3825 fi
3826 fi
3827 CC=$ac_cv_prog_CC
3828 if test -n "$CC"; then
3829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 $as_echo "$CC" >&6; }
3831 else
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3834 fi
3835
3836
3837   fi
3838 fi
3839 if test -z "$CC"; then
3840   # Extract the first word of "cc", so it can be a program name with args.
3841 set dummy cc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if ${ac_cv_prog_CC+:} false; then :
3845   $as_echo_n "(cached) " >&6
3846 else
3847   if test -n "$CC"; then
3848   ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850   ac_prog_rejected=no
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856     for ac_exec_ext in '' $ac_executable_extensions; do
3857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3859        ac_prog_rejected=yes
3860        continue
3861      fi
3862     ac_cv_prog_CC="cc"
3863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867   done
3868 IFS=$as_save_IFS
3869
3870 if test $ac_prog_rejected = yes; then
3871   # We found a bogon in the path, so make sure we never use it.
3872   set dummy $ac_cv_prog_CC
3873   shift
3874   if test $# != 0; then
3875     # We chose a different compiler from the bogus one.
3876     # However, it has the same basename, so the bogon will be chosen
3877     # first if we set CC to just the basename; use the full file name.
3878     shift
3879     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3880   fi
3881 fi
3882 fi
3883 fi
3884 CC=$ac_cv_prog_CC
3885 if test -n "$CC"; then
3886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887 $as_echo "$CC" >&6; }
3888 else
3889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3891 fi
3892
3893
3894 fi
3895 if test -z "$CC"; then
3896   if test -n "$ac_tool_prefix"; then
3897   for ac_prog in cl.exe
3898   do
3899     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_CC+:} false; then :
3904   $as_echo_n "(cached) " >&6
3905 else
3906   if test -n "$CC"; then
3907   ac_cv_prog_CC="$CC" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914     for ac_exec_ext in '' $ac_executable_extensions; do
3915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918     break 2
3919   fi
3920 done
3921   done
3922 IFS=$as_save_IFS
3923
3924 fi
3925 fi
3926 CC=$ac_cv_prog_CC
3927 if test -n "$CC"; then
3928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929 $as_echo "$CC" >&6; }
3930 else
3931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 fi
3934
3935
3936     test -n "$CC" && break
3937   done
3938 fi
3939 if test -z "$CC"; then
3940   ac_ct_CC=$CC
3941   for ac_prog in cl.exe
3942 do
3943   # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   if test -n "$ac_ct_CC"; then
3951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956   IFS=$as_save_IFS
3957   test -z "$as_dir" && as_dir=.
3958     for ac_exec_ext in '' $ac_executable_extensions; do
3959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960     ac_cv_prog_ac_ct_CC="$ac_prog"
3961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962     break 2
3963   fi
3964 done
3965   done
3966 IFS=$as_save_IFS
3967
3968 fi
3969 fi
3970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3971 if test -n "$ac_ct_CC"; then
3972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3973 $as_echo "$ac_ct_CC" >&6; }
3974 else
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3977 fi
3978
3979
3980   test -n "$ac_ct_CC" && break
3981 done
3982
3983   if test "x$ac_ct_CC" = x; then
3984     CC=""
3985   else
3986     case $cross_compiling:$ac_tool_warned in
3987 yes:)
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3990 ac_tool_warned=yes ;;
3991 esac
3992     CC=$ac_ct_CC
3993   fi
3994 fi
3995
3996 fi
3997
3998
3999 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error $? "no acceptable C compiler found in \$PATH
4002 See \`config.log' for more details" "$LINENO" 5; }
4003
4004 # Provide some information about the compiler.
4005 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4006 set X $ac_compile
4007 ac_compiler=$2
4008 for ac_option in --version -v -V -qversion; do
4009   { { ac_try="$ac_compiler $ac_option >&5"
4010 case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4017   ac_status=$?
4018   if test -s conftest.err; then
4019     sed '10a\
4020 ... rest of stderr output deleted ...
4021          10q' conftest.err >conftest.er1
4022     cat conftest.er1 >&5
4023   fi
4024   rm -f conftest.er1 conftest.err
4025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026   test $ac_status = 0; }
4027 done
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4030 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4031 if ${ac_cv_c_compiler_gnu+:} false; then :
4032   $as_echo_n "(cached) " >&6
4033 else
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036
4037 int
4038 main ()
4039 {
4040 #ifndef __GNUC__
4041        choke me
4042 #endif
4043
4044   ;
4045   return 0;
4046 }
4047 _ACEOF
4048 if ac_fn_c_try_compile "$LINENO"; then :
4049   ac_compiler_gnu=yes
4050 else
4051   ac_compiler_gnu=no
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4055
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4058 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4059 if test $ac_compiler_gnu = yes; then
4060   GCC=yes
4061 else
4062   GCC=
4063 fi
4064 ac_test_CFLAGS=${CFLAGS+set}
4065 ac_save_CFLAGS=$CFLAGS
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4067 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4068 if ${ac_cv_prog_cc_g+:} false; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   ac_save_c_werror_flag=$ac_c_werror_flag
4072    ac_c_werror_flag=yes
4073    ac_cv_prog_cc_g=no
4074    CFLAGS="-g"
4075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h.  */
4077
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087   ac_cv_prog_cc_g=yes
4088 else
4089   CFLAGS=""
4090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h.  */
4092
4093 int
4094 main ()
4095 {
4096
4097   ;
4098   return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102
4103 else
4104   ac_c_werror_flag=$ac_save_c_werror_flag
4105          CFLAGS="-g"
4106          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h.  */
4108
4109 int
4110 main ()
4111 {
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118   ac_cv_prog_cc_g=yes
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125    ac_c_werror_flag=$ac_save_c_werror_flag
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4128 $as_echo "$ac_cv_prog_cc_g" >&6; }
4129 if test "$ac_test_CFLAGS" = set; then
4130   CFLAGS=$ac_save_CFLAGS
4131 elif test $ac_cv_prog_cc_g = yes; then
4132   if test "$GCC" = yes; then
4133     CFLAGS="-g -O2"
4134   else
4135     CFLAGS="-g"
4136   fi
4137 else
4138   if test "$GCC" = yes; then
4139     CFLAGS="-O2"
4140   else
4141     CFLAGS=
4142   fi
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4145 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4146 if ${ac_cv_prog_cc_c89+:} false; then :
4147   $as_echo_n "(cached) " >&6
4148 else
4149   ac_cv_prog_cc_c89=no
4150 ac_save_CC=$CC
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h.  */
4153 #include <stdarg.h>
4154 #include <stdio.h>
4155 struct stat;
4156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4157 struct buf { int x; };
4158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4159 static char *e (p, i)
4160      char **p;
4161      int i;
4162 {
4163   return p[i];
4164 }
4165 static char *f (char * (*g) (char **, int), char **p, ...)
4166 {
4167   char *s;
4168   va_list v;
4169   va_start (v,p);
4170   s = g (p, va_arg (v,int));
4171   va_end (v);
4172   return s;
4173 }
4174
4175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4176    function prototypes and stuff, but not '\xHH' hex character constants.
4177    These don't provoke an error unfortunately, instead are silently treated
4178    as 'x'.  The following induces an error, until -std is added to get
4179    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4180    array size at least.  It's necessary to write '\x00'==0 to get something
4181    that's true only with -std.  */
4182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4183
4184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4185    inside strings and character constants.  */
4186 #define FOO(x) 'x'
4187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4188
4189 int test (int i, double x);
4190 struct s1 {int (*f) (int a);};
4191 struct s2 {int (*f) (double a);};
4192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4193 int argc;
4194 char **argv;
4195 int
4196 main ()
4197 {
4198 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4204         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4205 do
4206   CC="$ac_save_CC $ac_arg"
4207   if ac_fn_c_try_compile "$LINENO"; then :
4208   ac_cv_prog_cc_c89=$ac_arg
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext
4211   test "x$ac_cv_prog_cc_c89" != "xno" && break
4212 done
4213 rm -f conftest.$ac_ext
4214 CC=$ac_save_CC
4215
4216 fi
4217 # AC_CACHE_VAL
4218 case "x$ac_cv_prog_cc_c89" in
4219   x)
4220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221 $as_echo "none needed" >&6; } ;;
4222   xno)
4223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 $as_echo "unsupported" >&6; } ;;
4225   *)
4226     CC="$CC $ac_cv_prog_cc_c89"
4227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4229 esac
4230 if test "x$ac_cv_prog_cc_c89" != xno; then :
4231
4232 fi
4233
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
4240 if test "$GCC" = yes; then
4241    RDYNAMIC="-rdynamic"
4242
4243 fi
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4250 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4251 # On Suns, sometimes $CPP names a directory.
4252 if test -n "$CPP" && test -d "$CPP"; then
4253   CPP=
4254 fi
4255 if test -z "$CPP"; then
4256   if ${ac_cv_prog_CPP+:} false; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259       # Double quotes because CPP needs to be expanded
4260     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4261     do
4262       ac_preproc_ok=false
4263 for ac_c_preproc_warn_flag in '' yes
4264 do
4265   # Use a header file that comes with gcc, so configuring glibc
4266   # with a fresh cross-compiler works.
4267   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268   # <limits.h> exists even on freestanding compilers.
4269   # On the NeXT, cc -E runs the code through the compiler's parser,
4270   # not just through cpp. "Syntax error" is here to catch this case.
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273 #ifdef __STDC__
4274 # include <limits.h>
4275 #else
4276 # include <assert.h>
4277 #endif
4278                      Syntax error
4279 _ACEOF
4280 if ac_fn_c_try_cpp "$LINENO"; then :
4281
4282 else
4283   # Broken: fails on valid input.
4284 continue
4285 fi
4286 rm -f conftest.err conftest.i conftest.$ac_ext
4287
4288   # OK, works on sane cases.  Now check whether nonexistent headers
4289   # can be detected and how.
4290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h.  */
4292 #include <ac_nonexistent.h>
4293 _ACEOF
4294 if ac_fn_c_try_cpp "$LINENO"; then :
4295   # Broken: success on invalid input.
4296 continue
4297 else
4298   # Passes both tests.
4299 ac_preproc_ok=:
4300 break
4301 fi
4302 rm -f conftest.err conftest.i conftest.$ac_ext
4303
4304 done
4305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4306 rm -f conftest.i conftest.err conftest.$ac_ext
4307 if $ac_preproc_ok; then :
4308   break
4309 fi
4310
4311     done
4312     ac_cv_prog_CPP=$CPP
4313
4314 fi
4315   CPP=$ac_cv_prog_CPP
4316 else
4317   ac_cv_prog_CPP=$CPP
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4320 $as_echo "$CPP" >&6; }
4321 ac_preproc_ok=false
4322 for ac_c_preproc_warn_flag in '' yes
4323 do
4324   # Use a header file that comes with gcc, so configuring glibc
4325   # with a fresh cross-compiler works.
4326   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327   # <limits.h> exists even on freestanding compilers.
4328   # On the NeXT, cc -E runs the code through the compiler's parser,
4329   # not just through cpp. "Syntax error" is here to catch this case.
4330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332 #ifdef __STDC__
4333 # include <limits.h>
4334 #else
4335 # include <assert.h>
4336 #endif
4337                      Syntax error
4338 _ACEOF
4339 if ac_fn_c_try_cpp "$LINENO"; then :
4340
4341 else
4342   # Broken: fails on valid input.
4343 continue
4344 fi
4345 rm -f conftest.err conftest.i conftest.$ac_ext
4346
4347   # OK, works on sane cases.  Now check whether nonexistent headers
4348   # can be detected and how.
4349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h.  */
4351 #include <ac_nonexistent.h>
4352 _ACEOF
4353 if ac_fn_c_try_cpp "$LINENO"; then :
4354   # Broken: success on invalid input.
4355 continue
4356 else
4357   # Passes both tests.
4358 ac_preproc_ok=:
4359 break
4360 fi
4361 rm -f conftest.err conftest.i conftest.$ac_ext
4362
4363 done
4364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4365 rm -f conftest.i conftest.err conftest.$ac_ext
4366 if $ac_preproc_ok; then :
4367
4368 else
4369   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4372 See \`config.log' for more details" "$LINENO" 5; }
4373 fi
4374
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4382 $as_echo_n "checking for additional special compiler flags... " >&6; }
4383 if test "$GCC" = yes
4384 then
4385     case "$host_cpu" in
4386         alpha)          addcflags="-mieee" ;;
4387     esac
4388 fi
4389 if test "x$addcflags" != x
4390 then
4391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4392 $as_echo "$addcflags" >&6; }
4393     CFLAGS="$addcflags $CFLAGS"
4394 else
4395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4396 $as_echo "(none)" >&6; }
4397 fi
4398 LIB_EXT=.a
4399 STATIC_LIB_EXT=.a
4400 PROFILED_LIB_EXT=.a
4401
4402 # Check whether --with-root-prefix was given.
4403 if test "${with_root_prefix+set}" = set; then :
4404   withval=$with_root_prefix; root_prefix=$withval
4405 else
4406   root_prefix=NONE
4407 fi
4408 # Check whether --enable-maintainer-mode was given.
4409 if test "${enable_maintainer_mode+set}" = set; then :
4410   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4411 then
4412         MAINTAINER_CMT=#
4413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4414 $as_echo "Disabling maintainer mode" >&6; }
4415 else
4416         MAINTAINER_CMT=
4417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4418 $as_echo "Enabling maintainer mode" >&6; }
4419 fi
4420
4421 else
4422   MAINTAINER_CMT=#
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4424 $as_echo "Disabling maintainer mode by default" >&6; }
4425
4426 fi
4427
4428
4429 # Check whether --enable-symlink-install was given.
4430 if test "${enable_symlink_install+set}" = set; then :
4431   enableval=$enable_symlink_install; if test "$enableval" = "no"
4432 then
4433         LINK_INSTALL_FLAGS=-f
4434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4435 $as_echo "Disabling symlinks for install" >&6; }
4436 else
4437         LINK_INSTALL_FLAGS=-sf
4438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4439 $as_echo "Enabling symlinks for install" >&6; }
4440 fi
4441
4442 else
4443   LINK_INSTALL_FLAGS=-f
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4445 $as_echo "Disabling symlinks for install by default" >&6; }
4446
4447 fi
4448
4449
4450 relative_symlink_defined=
4451 # Check whether --enable-relative-symlinks was given.
4452 if test "${enable_relative_symlinks+set}" = set; then :
4453   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4454 then
4455         SYMLINK_RELATIVE=
4456         relative_symlink_defined=yes
4457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4458 $as_echo "Disabling relative symlinks for install" >&6; }
4459 else
4460         SYMLINK_RELATIVE=--relative
4461         relative_symlink_defined=yes
4462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4463 $as_echo "Enabling relative symlinks for install" >&6; }
4464 fi
4465 fi
4466
4467 # Check whether --enable-symlink-relative-symlinks was given.
4468 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4469   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4470 then
4471         SYMLINK_RELATIVE=yes
4472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4473 $as_echo "Disabling relative symlinks for install" >&6; }
4474 else
4475         SYMLINK_RELATIVE=--relative
4476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4477 $as_echo "Enabling relative symlinks for install" >&6; }
4478 fi
4479
4480 else
4481   if test -z "$relative_symlink_defined"
4482 then
4483         SYMLINK_RELATIVE=
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4485 $as_echo "Disabling relative symlinks for install by default" >&6; }
4486 fi
4487
4488 fi
4489
4490
4491 # Check whether --enable-symlink-build was given.
4492 if test "${enable_symlink_build+set}" = set; then :
4493   enableval=$enable_symlink_build; if test "$enableval" = "no"
4494 then
4495         LINK_BUILD_FLAGS=
4496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4497 $as_echo "Disabling symlinks for build" >&6; }
4498 else
4499         LINK_BUILD_FLAGS=-s
4500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4501 $as_echo "Enabling symlinks for build" >&6; }
4502 fi
4503
4504 else
4505   LINK_BUILD_FLAGS=
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4507 $as_echo "Disabling symlinks for build by default" >&6; }
4508
4509 fi
4510
4511
4512 # Check whether --enable-verbose-makecmds was given.
4513 if test "${enable_verbose_makecmds+set}" = set; then :
4514   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4515 then
4516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4517 $as_echo "Disabling verbose make commands" >&6; }
4518         E=@echo
4519         ES=echo
4520         Q=@
4521 else
4522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4523 $as_echo "Enabling verbose make commands" >&6; }
4524         E=@\\#
4525         ES=\\#
4526         Q=
4527 fi
4528
4529 else
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4531 $as_echo "Disabling verbose make commands" >&6; }
4532 E=@echo
4533 ES=echo
4534 Q=@
4535
4536 fi
4537
4538
4539
4540
4541 # Check whether --enable-compression was given.
4542 if test "${enable_compression+set}" = set; then :
4543   enableval=$enable_compression; if test "$enableval" = "no"
4544 then
4545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4546 $as_echo "Disabling compression support" >&6; }
4547 else
4548
4549 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4550
4551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4552 $as_echo "Enabling compression support" >&6; }
4553         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4554 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4555 fi
4556
4557 else
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4559 $as_echo "Disabling compression support by default" >&6; }
4560
4561 fi
4562
4563
4564 # Check whether --enable-htree was given.
4565 if test "${enable_htree+set}" = set; then :
4566   enableval=$enable_htree; if test "$enableval" = "no"
4567 then
4568         HTREE_CMT=#
4569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4570 $as_echo "Disabling htree directory support" >&6; }
4571 else
4572         HTREE_CMT=
4573         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4574
4575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4576 $as_echo "Enabling htree directory support" >&6; }
4577 fi
4578
4579 else
4580   HTREE_CMT=
4581 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4582
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4584 $as_echo "Enabling htree directory support by default" >&6; }
4585
4586 fi
4587
4588
4589 E2_PKG_CONFIG_STATIC=--static
4590 LDFLAG_DYNAMIC=
4591 PRIVATE_LIBS_CMT=
4592 # Check whether --enable-elf-shlibs was given.
4593 if test "${enable_elf_shlibs+set}" = set; then :
4594   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4595 then
4596         ELF_CMT=#
4597         MAKEFILE_ELF=/dev/null
4598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4599 $as_echo "Disabling ELF shared libraries" >&6; }
4600 else
4601         E2_PKG_CONFIG_STATIC=
4602         ELF_CMT=
4603         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4604         case "$host_os" in
4605         solaris2.*)
4606                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4607         ;;
4608         esac
4609         BINARY_TYPE=elfbin
4610         LIB_EXT=.so
4611         PRIVATE_LIBS_CMT=#
4612         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4614 $as_echo "Enabling ELF shared libraries" >&6; }
4615 fi
4616
4617 else
4618   MAKEFILE_ELF=/dev/null
4619 ELF_CMT=#
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4621 $as_echo "Disabling ELF shared libraries by default" >&6; }
4622
4623 fi
4624
4625
4626
4627 # Check whether --enable-bsd-shlibs was given.
4628 if test "${enable_bsd_shlibs+set}" = set; then :
4629   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4630 then
4631         BSDLIB_CMT=#
4632         MAKEFILE_BSDLIB=/dev/null
4633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4634 $as_echo "Disabling BSD shared libraries" >&6; }
4635 else
4636         E2_PKG_CONFIG_STATIC=
4637         BSDLIB_CMT=
4638         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4639         LIB_EXT=.so
4640         case "$host_os" in
4641         darwin*)
4642                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4643                 LIB_EXT=.dylib
4644         ;;
4645         esac
4646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4647 $as_echo "Enabling BSD shared libraries" >&6; }
4648 fi
4649
4650 else
4651   MAKEFILE_BSDLIB=/dev/null
4652 BSDLIB_CMT=#
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4654 $as_echo "Disabling BSD shared libraries by default" >&6; }
4655
4656 fi
4657
4658
4659
4660 # Check whether --enable-profile was given.
4661 if test "${enable_profile+set}" = set; then :
4662   enableval=$enable_profile; if test "$enableval" = "no"
4663 then
4664         PROFILE_CMT=#
4665         MAKEFILE_PROFILE=/dev/null
4666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4667 $as_echo "Disabling profiling libraries" >&6; }
4668 else
4669         PROFILE_CMT=
4670         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4671         PROFILED_LIB_EXT=_p.a
4672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4673 $as_echo "Building profiling libraries" >&6; }
4674 fi
4675
4676 else
4677   PROFILE_CMT=#
4678 MAKEFILE_PROFILE=/dev/null
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4680 $as_echo "Disabling profiling libraries by default" >&6; }
4681
4682 fi
4683
4684
4685
4686 # Check whether --enable-checker was given.
4687 if test "${enable_checker+set}" = set; then :
4688   enableval=$enable_checker; if test "$enableval" = "no"
4689 then
4690         CHECKER_CMT=#
4691         MAKEFILE_CHECKER=/dev/null
4692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4693 $as_echo "Disabling checker libraries" >&6; }
4694 else
4695         CHECKER_CMT=
4696         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4698 $as_echo "Building checker libraries" >&6; }
4699 fi
4700
4701 else
4702   CHECKER_CMT=#
4703 MAKEFILE_CHECKER=/dev/null
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4705 $as_echo "Disabling checker libraries by default" >&6; }
4706
4707 fi
4708
4709
4710
4711
4712
4713
4714
4715
4716 # Check whether --enable-jbd-debug was given.
4717 if test "${enable_jbd_debug+set}" = set; then :
4718   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4719 then
4720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4721 $as_echo "Disabling journal debugging" >&6; }
4722 else
4723
4724 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4725
4726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4727 $as_echo "Enabling journal debugging" >&6; }
4728 fi
4729
4730 else
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4732 $as_echo "Disabling journal debugging by default" >&6; }
4733
4734 fi
4735
4736 # Check whether --enable-blkid-debug was given.
4737 if test "${enable_blkid_debug+set}" = set; then :
4738   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4739 then
4740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4741 $as_echo "Disabling blkid debugging" >&6; }
4742 else
4743
4744 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4745
4746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4747 $as_echo "Enabling blkid debugging" >&6; }
4748 fi
4749
4750 else
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4752 $as_echo "Disabling blkid debugging by default" >&6; }
4753
4754 fi
4755
4756 # Check whether --enable-testio-debug was given.
4757 if test "${enable_testio_debug+set}" = set; then :
4758   enableval=$enable_testio_debug;
4759 if test "$enableval" = "no"
4760 then
4761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4762 $as_echo "Disabling testio debugging" >&6; }
4763         TEST_IO_CMT="#"
4764 else
4765         TEST_IO_CMT=
4766         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4767
4768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4769 $as_echo "Enabling testio debugging" >&6; }
4770 fi
4771
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4774 $as_echo "Enabling testio debugging by default" >&6; }
4775 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4776
4777 TEST_IO_CMT=
4778
4779 fi
4780
4781
4782
4783
4784 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4785         if test -n "$ac_tool_prefix"; then
4786   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4787 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   case $PKG_CONFIG in
4794   [\\/]* | ?:[\\/]*)
4795   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4796   ;;
4797   *)
4798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803     for ac_exec_ext in '' $ac_executable_extensions; do
4804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810   done
4811 IFS=$as_save_IFS
4812
4813   ;;
4814 esac
4815 fi
4816 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4817 if test -n "$PKG_CONFIG"; then
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4819 $as_echo "$PKG_CONFIG" >&6; }
4820 else
4821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4823 fi
4824
4825
4826 fi
4827 if test -z "$ac_cv_path_PKG_CONFIG"; then
4828   ac_pt_PKG_CONFIG=$PKG_CONFIG
4829   # Extract the first word of "pkg-config", so it can be a program name with args.
4830 set dummy pkg-config; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   case $ac_pt_PKG_CONFIG in
4837   [\\/]* | ?:[\\/]*)
4838   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4839   ;;
4840   *)
4841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844   IFS=$as_save_IFS
4845   test -z "$as_dir" && as_dir=.
4846     for ac_exec_ext in '' $ac_executable_extensions; do
4847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4848     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850     break 2
4851   fi
4852 done
4853   done
4854 IFS=$as_save_IFS
4855
4856   ;;
4857 esac
4858 fi
4859 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4860 if test -n "$ac_pt_PKG_CONFIG"; then
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4862 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4863 else
4864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 fi
4867
4868   if test "x$ac_pt_PKG_CONFIG" = x; then
4869     PKG_CONFIG=""
4870   else
4871     case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4876 esac
4877     PKG_CONFIG=$ac_pt_PKG_CONFIG
4878   fi
4879 else
4880   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4881 fi
4882
4883 fi
4884 if test -n "$PKG_CONFIG"; then
4885         _pkg_min_version=0.9.0
4886         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4887 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4888         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4889                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4890 $as_echo "yes" >&6; }
4891         else
4892                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894                 PKG_CONFIG=""
4895         fi
4896
4897 fi
4898 LIBUUID=
4899 DEPLIBUUID=
4900 STATIC_LIBUUID=
4901 DEPSTATIC_LIBUUID=
4902 PROFILED_LIBUUID=
4903 DEPPROFILED_LIBUUID=
4904 UUID_CMT=
4905 # Check whether --enable-libuuid was given.
4906 if test "${enable_libuuid+set}" = set; then :
4907   enableval=$enable_libuuid; if test "$enableval" = "no"
4908 then
4909         if test -z "$PKG_CONFIG"; then
4910                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4911         fi
4912
4913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4914 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4915 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4916   $as_echo_n "(cached) " >&6
4917 else
4918   ac_check_lib_save_LIBS=$LIBS
4919 LIBS="-luuid $LIBUUID $LIBS"
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h.  */
4922
4923 /* Override any GCC internal prototype to avoid an error.
4924    Use char because int might match the return type of a GCC
4925    builtin and then its argument prototype would still apply.  */
4926 #ifdef __cplusplus
4927 extern "C"
4928 #endif
4929 char uuid_generate ();
4930 int
4931 main ()
4932 {
4933 return uuid_generate ();
4934   ;
4935   return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_link "$LINENO"; then :
4939   ac_cv_lib_uuid_uuid_generate=yes
4940 else
4941   ac_cv_lib_uuid_uuid_generate=no
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext \
4944     conftest$ac_exeext conftest.$ac_ext
4945 LIBS=$ac_check_lib_save_LIBS
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4948 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4949 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4950   LIBUUID=`$PKG_CONFIG --libs uuid`;
4951                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4952 else
4953   as_fn_error $? "external uuid library not found" "$LINENO" 5
4954 fi
4955
4956         UUID_CMT=#
4957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4958 $as_echo "Disabling private uuid library" >&6; }
4959 else
4960         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4961         DEPLIBUUID=$LIBUUID
4962         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4963         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4964         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4965         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4967 $as_echo "Enabling private uuid library" >&6; }
4968 fi
4969
4970 else
4971   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4972 DEPLIBUUID=$LIBUUID
4973 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4974 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4975 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4976 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4978 $as_echo "Enabling private uuid library by default" >&6; }
4979
4980 fi
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4992         if test -n "$ac_tool_prefix"; then
4993   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4998   $as_echo_n "(cached) " >&6
4999 else
5000   case $PKG_CONFIG in
5001   [\\/]* | ?:[\\/]*)
5002   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5003   ;;
5004   *)
5005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008   IFS=$as_save_IFS
5009   test -z "$as_dir" && as_dir=.
5010     for ac_exec_ext in '' $ac_executable_extensions; do
5011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017   done
5018 IFS=$as_save_IFS
5019
5020   ;;
5021 esac
5022 fi
5023 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5024 if test -n "$PKG_CONFIG"; then
5025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5026 $as_echo "$PKG_CONFIG" >&6; }
5027 else
5028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5030 fi
5031
5032
5033 fi
5034 if test -z "$ac_cv_path_PKG_CONFIG"; then
5035   ac_pt_PKG_CONFIG=$PKG_CONFIG
5036   # Extract the first word of "pkg-config", so it can be a program name with args.
5037 set dummy pkg-config; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5041   $as_echo_n "(cached) " >&6
5042 else
5043   case $ac_pt_PKG_CONFIG in
5044   [\\/]* | ?:[\\/]*)
5045   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5046   ;;
5047   *)
5048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051   IFS=$as_save_IFS
5052   test -z "$as_dir" && as_dir=.
5053     for ac_exec_ext in '' $ac_executable_extensions; do
5054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057     break 2
5058   fi
5059 done
5060   done
5061 IFS=$as_save_IFS
5062
5063   ;;
5064 esac
5065 fi
5066 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5067 if test -n "$ac_pt_PKG_CONFIG"; then
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5069 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5070 else
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075   if test "x$ac_pt_PKG_CONFIG" = x; then
5076     PKG_CONFIG=""
5077   else
5078     case $cross_compiling:$ac_tool_warned in
5079 yes:)
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082 ac_tool_warned=yes ;;
5083 esac
5084     PKG_CONFIG=$ac_pt_PKG_CONFIG
5085   fi
5086 else
5087   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5088 fi
5089
5090 fi
5091 if test -n "$PKG_CONFIG"; then
5092         _pkg_min_version=0.9.0
5093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5094 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5095         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5096                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097 $as_echo "yes" >&6; }
5098         else
5099                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101                 PKG_CONFIG=""
5102         fi
5103
5104 fi
5105 LIBBLKID=
5106 DEPLIBBLKID=
5107 STATIC_LIBBLKID=
5108 DEPSTATIC_LIBBLKID=
5109 PROFILED_LIBBLKID=
5110 DEPPROFILED_LIBBLKID=
5111 BLKID_CMT=
5112
5113 # Check whether --enable-libblkid was given.
5114 if test "${enable_libblkid+set}" = set; then :
5115   enableval=$enable_libblkid; if test "$enableval" = "no"
5116 then
5117         if test -z "$PKG_CONFIG"; then
5118                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5119         fi
5120
5121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5122 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5123 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   ac_check_lib_save_LIBS=$LIBS
5127 LIBS="-lblkid $LIBBLKID $LIBS"
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h.  */
5130
5131 /* Override any GCC internal prototype to avoid an error.
5132    Use char because int might match the return type of a GCC
5133    builtin and then its argument prototype would still apply.  */
5134 #ifdef __cplusplus
5135 extern "C"
5136 #endif
5137 char blkid_get_cache ();
5138 int
5139 main ()
5140 {
5141 return blkid_get_cache ();
5142   ;
5143   return 0;
5144 }
5145 _ACEOF
5146 if ac_fn_c_try_link "$LINENO"; then :
5147   ac_cv_lib_blkid_blkid_get_cache=yes
5148 else
5149   ac_cv_lib_blkid_blkid_get_cache=no
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext \
5152     conftest$ac_exeext conftest.$ac_ext
5153 LIBS=$ac_check_lib_save_LIBS
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5156 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5157 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5158   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5159                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5160 else
5161   as_fn_error $? "external blkid library not found" "$LINENO" 5
5162 fi
5163
5164         BLKID_CMT=#
5165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5166 $as_echo "Disabling private blkid library" >&6; }
5167 else
5168         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5169         DEPLIBBLKID=$LIBBLKID
5170         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5171         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5172         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5173         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5174         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5175
5176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5177 $as_echo "Enabling private blkid library" >&6; }
5178 fi
5179
5180 else
5181   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5182 DEPLIBBLKID=$LIBBLKID
5183 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5184 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5185 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5186 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5187 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5188
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5190 $as_echo "Enabling private blkid library by default" >&6; }
5191
5192 fi
5193
5194
5195
5196
5197
5198
5199
5200
5201 QUOTA_MAN_COMMENT='.\"'
5202 QUOTA_CMT=
5203
5204
5205
5206 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5207         if test -n "$ac_tool_prefix"; then
5208   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   case $PKG_CONFIG in
5216   [\\/]* | ?:[\\/]*)
5217   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5218   ;;
5219   *)
5220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225     for ac_exec_ext in '' $ac_executable_extensions; do
5226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232   done
5233 IFS=$as_save_IFS
5234
5235   ;;
5236 esac
5237 fi
5238 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5239 if test -n "$PKG_CONFIG"; then
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5241 $as_echo "$PKG_CONFIG" >&6; }
5242 else
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247
5248 fi
5249 if test -z "$ac_cv_path_PKG_CONFIG"; then
5250   ac_pt_PKG_CONFIG=$PKG_CONFIG
5251   # Extract the first word of "pkg-config", so it can be a program name with args.
5252 set dummy pkg-config; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   case $ac_pt_PKG_CONFIG in
5259   [\\/]* | ?:[\\/]*)
5260   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5261   ;;
5262   *)
5263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268     for ac_exec_ext in '' $ac_executable_extensions; do
5269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275   done
5276 IFS=$as_save_IFS
5277
5278   ;;
5279 esac
5280 fi
5281 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5282 if test -n "$ac_pt_PKG_CONFIG"; then
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5284 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5285 else
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289
5290   if test "x$ac_pt_PKG_CONFIG" = x; then
5291     PKG_CONFIG=""
5292   else
5293     case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299     PKG_CONFIG=$ac_pt_PKG_CONFIG
5300   fi
5301 else
5302   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5303 fi
5304
5305 fi
5306 if test -n "$PKG_CONFIG"; then
5307         _pkg_min_version=0.9.0
5308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5309 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5310         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5311                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312 $as_echo "yes" >&6; }
5313         else
5314                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316                 PKG_CONFIG=""
5317         fi
5318
5319 fi
5320
5321 # Check whether --enable-quota was given.
5322 if test "${enable_quota+set}" = set; then :
5323   enableval=$enable_quota; if test "$enableval" = "no"
5324 then
5325         QUOTA_CMT=#
5326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5327 $as_echo "Disabling quota support" >&6; }
5328 else
5329         QUOTA_CMT=
5330         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5331
5332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5333 $as_echo "Enabling quota support" >&6; }
5334         QUOTA_MAN_COMMENT=""
5335
5336 fi
5337
5338 else
5339   QUOTA_CMT=#
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5341 $as_echo "Disabling quota support by default" >&6; }
5342
5343 fi
5344
5345 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5346 DEPLIBQUOTA=$LIBQUOTA
5347 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5348 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5349 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5350 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5351
5352
5353
5354
5355
5356
5357
5358
5359 # Check whether --enable-backtrace was given.
5360 if test "${enable_backtrace+set}" = set; then :
5361   enableval=$enable_backtrace; if test "$enableval" = "no"
5362 then
5363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5364 $as_echo "Disabling use of backtrace" >&6; }
5365         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5366
5367 else
5368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5369 $as_echo "Enabling use of backtrace" >&6; }
5370 fi
5371
5372 else
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5374 $as_echo "Enabling use of backtrace by default" >&6; }
5375
5376 fi
5377
5378 # Check whether --enable-debugfs was given.
5379 if test "${enable_debugfs+set}" = set; then :
5380   enableval=$enable_debugfs; if test "$enableval" = "no"
5381 then
5382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5383 $as_echo "Disabling debugfs support" >&6; }
5384         DEBUGFS_CMT="#"
5385 else
5386         DEBUGFS_CMT=
5387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5388 $as_echo "Enabling debugfs support" >&6; }
5389 fi
5390
5391 else
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5393 $as_echo "Enabling debugfs support by default" >&6; }
5394 DEBUGFS_CMT=
5395
5396 fi
5397
5398
5399 # Check whether --enable-imager was given.
5400 if test "${enable_imager+set}" = set; then :
5401   enableval=$enable_imager; if test "$enableval" = "no"
5402 then
5403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5404 $as_echo "Disabling e2image support" >&6; }
5405         IMAGER_CMT="#"
5406 else
5407         IMAGER_CMT=
5408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5409 $as_echo "Enabling e2image support" >&6; }
5410 fi
5411
5412 else
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5414 $as_echo "Enabling e2image support by default" >&6; }
5415 IMAGER_CMT=
5416
5417 fi
5418
5419
5420 # Check whether --enable-resizer was given.
5421 if test "${enable_resizer+set}" = set; then :
5422   enableval=$enable_resizer; if test "$enableval" = "no"
5423 then
5424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5425 $as_echo "Disabling e2resize support" >&6; }
5426         RESIZER_CMT="#"
5427 else
5428         RESIZER_CMT=
5429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5430 $as_echo "Enabling e2resize support" >&6; }
5431 fi
5432
5433 else
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5435 $as_echo "Enabling e2resize support by default" >&6; }
5436 RESIZER_CMT=
5437
5438 fi
5439
5440
5441 # Check whether --enable-defrag was given.
5442 if test "${enable_defrag+set}" = set; then :
5443   enableval=$enable_defrag; if test "$enableval" = "no"
5444 then
5445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5446 $as_echo "Disabling e4defrag support" >&6; }
5447         DEFRAG_CMT="#"
5448 else
5449         DEFRAG_CMT=
5450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5451 $as_echo "Enabling e4defrag support" >&6; }
5452 fi
5453
5454 else
5455   if test -z "$WITH_DIET_LIBC"
5456 then
5457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5458 $as_echo "Enabling e4defrag support by default" >&6; }
5459         DEFRAG_CMT=
5460 else
5461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5462 $as_echo "Disabling e4defrag support by default" >&6; }
5463         DEFRAG_CMT="#"
5464 fi
5465
5466 fi
5467
5468
5469 # Check whether --enable-fsck was given.
5470 if test "${enable_fsck+set}" = set; then :
5471   enableval=$enable_fsck; if test "$enableval" = "no"
5472 then
5473         FSCK_PROG='' FSCK_MAN=''
5474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5475 $as_echo "Not building fsck wrapper" >&6; }
5476 else
5477         FSCK_PROG=fsck FSCK_MAN=fsck.8
5478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5479 $as_echo "Building fsck wrapper" >&6; }
5480 fi
5481
5482 else
5483   case "$host_os" in
5484   gnu*)
5485     FSCK_PROG='' FSCK_MAN=''
5486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5487 $as_echo "Not building fsck wrapper by default" >&6; }
5488     ;;
5489   *)
5490     FSCK_PROG=fsck FSCK_MAN=fsck.8
5491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5492 $as_echo "Building fsck wrapper by default" >&6; }
5493 esac
5494
5495 fi
5496
5497
5498
5499 # Check whether --enable-e2initrd-helper was given.
5500 if test "${enable_e2initrd_helper+set}" = set; then :
5501   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5502 then
5503         E2INITRD_PROG='' E2INITRD_MAN=''
5504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5505 $as_echo "Not building e2initrd helper" >&6; }
5506 else
5507         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5509 $as_echo "Building e2initrd helper" >&6; }
5510 fi
5511
5512 else
5513   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5515 $as_echo "Building e2initrd helper by default" >&6; }
5516
5517 fi
5518
5519
5520
5521 # Check whether --enable-tls was given.
5522 if test "${enable_tls+set}" = set; then :
5523   enableval=$enable_tls; if test "$enableval" = "no"
5524 then
5525         try_tls=""
5526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5527 $as_echo "Disabling thread local support" >&6; }
5528 else
5529         try_tls="yes"
5530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5531 $as_echo "Enabling thread local support" >&6; }
5532 fi
5533
5534 else
5535   if test -n "$WITH_DIET_LIBC"
5536 then
5537         try_tls=""
5538         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5539 $as_echo "Diet libc does not support thread local support" >&6; }
5540 else
5541         try_tls="yes"
5542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5543 $as_echo "Try using thread local support by default" >&6; }
5544 fi
5545
5546 fi
5547
5548 if test "$try_tls" = "yes"
5549 then
5550
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5552 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5553   if ${ac_cv_tls+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556
5557     ax_tls_keywords="__thread __declspec(thread) none"
5558     for ax_tls_keyword in $ax_tls_keywords; do
5559        case $ax_tls_keyword in
5560           none) ac_cv_tls=none ; break ;;
5561           *)
5562              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h.  */
5564 #include <stdlib.h>
5565                  static void
5566                  foo(void) {
5567                  static  $ax_tls_keyword  int bar;
5568                  exit(1);
5569                  }
5570 int
5571 main ()
5572 {
5573
5574   ;
5575   return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579   ac_cv_tls=$ax_tls_keyword ; break
5580 else
5581   ac_cv_tls=none
5582
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585           esac
5586     done
5587
5588 fi
5589
5590
5591   if test "$ac_cv_tls" != "none"; then
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define TLS $ac_cv_tls
5595 _ACEOF
5596
5597   fi
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5599 $as_echo "$ac_cv_tls" >&6; }
5600
5601 fi
5602
5603 # Check whether --enable-uuidd was given.
5604 if test "${enable_uuidd+set}" = set; then :
5605   enableval=$enable_uuidd; if test "$enableval" = "no"
5606 then
5607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5608 $as_echo "Not building uuidd" >&6; }
5609         UUIDD_CMT="#"
5610 else
5611         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5612
5613         UUIDD_CMT=""
5614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5615 $as_echo "Building uuidd" >&6; }
5616 fi
5617
5618 else
5619   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5620
5621 UUIDD_CMT=""
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5623 $as_echo "Building uuidd by default" >&6; }
5624
5625 fi
5626
5627
5628
5629 # Check whether --enable-mmp was given.
5630 if test "${enable_mmp+set}" = set; then :
5631   enableval=$enable_mmp; if test "$enableval" = "no"
5632 then
5633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5634 $as_echo "Disabling mmp support" >&6; }
5635 else
5636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5637 $as_echo "Enabling mmp support" >&6; }
5638         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5639
5640 fi
5641
5642 else
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5644 $as_echo "Enabling mmp support by default" >&6; }
5645 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5646
5647
5648 fi
5649
5650
5651 # Check whether --enable-bmap-stats was given.
5652 if test "${enable_bmap_stats+set}" = set; then :
5653   enableval=$enable_bmap_stats; if test "$enableval" = "no"
5654 then
5655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5656 $as_echo "Disabling bitmap statistics support" >&6; }
5657 else
5658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5659 $as_echo "Enabling bitmap statistics support" >&6; }
5660         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5661
5662 fi
5663
5664 else
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5666 $as_echo "Enabling bitmap statistics support by default" >&6; }
5667 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5668
5669
5670 fi
5671
5672
5673 # Check whether --enable-bmap-stats-ops was given.
5674 if test "${enable_bmap_stats_ops+set}" = set; then :
5675   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5676 then
5677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5678 $as_echo "Disabling additional bitmap statistics" >&6; }
5679 else
5680                 if test "x${enable_bmap_stats}" = "xno"; then :
5681   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5683 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5684 See \`config.log' for more details" "$LINENO" 5; }
5685 fi
5686
5687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5688 $as_echo "Enabling additional bitmap statistics" >&6; }
5689         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5690
5691 fi
5692
5693 else
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5695 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5696
5697 fi
5698
5699 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5700
5701 GETTEXT_PACKAGE=e2fsprogs
5702 PACKAGE=e2fsprogs
5703 VERSION="$E2FSPROGS_VERSION"
5704 VERSION=0.14.1
5705
5706 cat >>confdefs.h <<_ACEOF
5707 #define PACKAGE "$PACKAGE"
5708 _ACEOF
5709
5710
5711 cat >>confdefs.h <<_ACEOF
5712 #define VERSION "$VERSION"
5713 _ACEOF
5714
5715
5716
5717
5718
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5721 set x ${MAKE-make}
5722 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5723 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   cat >conftest.make <<\_ACEOF
5727 SHELL = /bin/sh
5728 all:
5729         @echo '@@@%%%=$(MAKE)=@@@%%%'
5730 _ACEOF
5731 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5733   *@@@%%%=?*=@@@%%%*)
5734     eval ac_cv_prog_make_${ac_make}_set=yes;;
5735   *)
5736     eval ac_cv_prog_make_${ac_make}_set=no;;
5737 esac
5738 rm -f conftest.make
5739 fi
5740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742 $as_echo "yes" >&6; }
5743   SET_MAKE=
5744 else
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747   SET_MAKE="MAKE=${MAKE-make}"
5748 fi
5749
5750 # Find a good install program.  We prefer a C program (faster),
5751 # so one script is as good as another.  But avoid the broken or
5752 # incompatible versions:
5753 # SysV /etc/install, /usr/sbin/install
5754 # SunOS /usr/etc/install
5755 # IRIX /sbin/install
5756 # AIX /bin/install
5757 # AmigaOS /C/install, which installs bootblocks on floppy discs
5758 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5761 # OS/2's system install, which has a completely different semantic
5762 # ./install, which can be erroneously created by make from ./install.sh.
5763 # Reject install programs that cannot install multiple files.
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5765 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5766 if test -z "$INSTALL"; then
5767 if ${ac_cv_path_install+:} false; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775     # Account for people who put trailing slashes in PATH elements.
5776 case $as_dir/ in #((
5777   ./ | .// | /[cC]/* | \
5778   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5779   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5780   /usr/ucb/* ) ;;
5781   *)
5782     # OSF1 and SCO ODT 3.0 have their own names for install.
5783     # Don't use installbsd from OSF since it installs stuff as root
5784     # by default.
5785     for ac_prog in ginstall scoinst install; do
5786       for ac_exec_ext in '' $ac_executable_extensions; do
5787         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5788           if test $ac_prog = install &&
5789             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5790             # AIX install.  It has an incompatible calling convention.
5791             :
5792           elif test $ac_prog = install &&
5793             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5794             # program-specific install script used by HP pwplus--don't use.
5795             :
5796           else
5797             rm -rf conftest.one conftest.two conftest.dir
5798             echo one > conftest.one
5799             echo two > conftest.two
5800             mkdir conftest.dir
5801             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5802               test -s conftest.one && test -s conftest.two &&
5803               test -s conftest.dir/conftest.one &&
5804               test -s conftest.dir/conftest.two
5805             then
5806               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5807               break 3
5808             fi
5809           fi
5810         fi
5811       done
5812     done
5813     ;;
5814 esac
5815
5816   done
5817 IFS=$as_save_IFS
5818
5819 rm -rf conftest.one conftest.two conftest.dir
5820
5821 fi
5822   if test "${ac_cv_path_install+set}" = set; then
5823     INSTALL=$ac_cv_path_install
5824   else
5825     # As a last resort, use the slow shell script.  Don't cache a
5826     # value for INSTALL within a source directory, because that will
5827     # break other packages using the cache if that directory is
5828     # removed, or if the value is a relative name.
5829     INSTALL=$ac_install_sh
5830   fi
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5833 $as_echo "$INSTALL" >&6; }
5834
5835 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5836 # It thinks the first close brace ends the variable substitution.
5837 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5838
5839 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5840
5841 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5842
5843
5844         MKINSTALLDIRS=
5845   if test -n "$ac_aux_dir"; then
5846     case "$ac_aux_dir" in
5847       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5848       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5849     esac
5850   fi
5851   if test -z "$MKINSTALLDIRS"; then
5852     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5853   fi
5854
5855
5856
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5858 $as_echo_n "checking whether NLS is requested... " >&6; }
5859     # Check whether --enable-nls was given.
5860 if test "${enable_nls+set}" = set; then :
5861   enableval=$enable_nls; USE_NLS=$enableval
5862 else
5863   USE_NLS=yes
5864 fi
5865
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5867 $as_echo "$USE_NLS" >&6; }
5868
5869
5870
5871
5872
5873
5874 # Prepare PATH_SEPARATOR.
5875 # The user is always right.
5876 if test "${PATH_SEPARATOR+set}" != set; then
5877   echo "#! /bin/sh" >conf$$.sh
5878   echo  "exit 0"   >>conf$$.sh
5879   chmod +x conf$$.sh
5880   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5881     PATH_SEPARATOR=';'
5882   else
5883     PATH_SEPARATOR=:
5884   fi
5885   rm -f conf$$.sh
5886 fi
5887
5888 # Find out how to test for executable files. Don't use a zero-byte file,
5889 # as systems may use methods other than mode bits to determine executability.
5890 cat >conf$$.file <<_ASEOF
5891 #! /bin/sh
5892 exit 0
5893 _ASEOF
5894 chmod +x conf$$.file
5895 if test -x conf$$.file >/dev/null 2>&1; then
5896   ac_executable_p="test -x"
5897 else
5898   ac_executable_p="test -f"
5899 fi
5900 rm -f conf$$.file
5901
5902 # Extract the first word of "msgfmt", so it can be a program name with args.
5903 set dummy msgfmt; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_path_MSGFMT+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   case "$MSGFMT" in
5910   [\\/]* | ?:[\\/]*)
5911     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5912     ;;
5913   *)
5914     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5915     for ac_dir in $PATH; do
5916       IFS="$ac_save_IFS"
5917       test -z "$ac_dir" && ac_dir=.
5918       for ac_exec_ext in '' $ac_executable_extensions; do
5919         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5920           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5921      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5922             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5923             break 2
5924           fi
5925         fi
5926       done
5927     done
5928     IFS="$ac_save_IFS"
5929   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5930     ;;
5931 esac
5932 fi
5933 MSGFMT="$ac_cv_path_MSGFMT"
5934 if test "$MSGFMT" != ":"; then
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5936 $as_echo "$MSGFMT" >&6; }
5937 else
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941
5942   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5943 set dummy gmsgfmt; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_path_GMSGFMT+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   case $GMSGFMT in
5950   [\\/]* | ?:[\\/]*)
5951   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5952   ;;
5953   *)
5954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959     for ac_exec_ext in '' $ac_executable_extensions; do
5960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966   done
5967 IFS=$as_save_IFS
5968
5969   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5970   ;;
5971 esac
5972 fi
5973 GMSGFMT=$ac_cv_path_GMSGFMT
5974 if test -n "$GMSGFMT"; then
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5976 $as_echo "$GMSGFMT" >&6; }
5977 else
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981
5982
5983
5984
5985 # Prepare PATH_SEPARATOR.
5986 # The user is always right.
5987 if test "${PATH_SEPARATOR+set}" != set; then
5988   echo "#! /bin/sh" >conf$$.sh
5989   echo  "exit 0"   >>conf$$.sh
5990   chmod +x conf$$.sh
5991   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5992     PATH_SEPARATOR=';'
5993   else
5994     PATH_SEPARATOR=:
5995   fi
5996   rm -f conf$$.sh
5997 fi
5998
5999 # Find out how to test for executable files. Don't use a zero-byte file,
6000 # as systems may use methods other than mode bits to determine executability.
6001 cat >conf$$.file <<_ASEOF
6002 #! /bin/sh
6003 exit 0
6004 _ASEOF
6005 chmod +x conf$$.file
6006 if test -x conf$$.file >/dev/null 2>&1; then
6007   ac_executable_p="test -x"
6008 else
6009   ac_executable_p="test -f"
6010 fi
6011 rm -f conf$$.file
6012
6013 # Extract the first word of "xgettext", so it can be a program name with args.
6014 set dummy xgettext; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_path_XGETTEXT+:} false; then :
6018   $as_echo_n "(cached) " >&6
6019 else
6020   case "$XGETTEXT" in
6021   [\\/]* | ?:[\\/]*)
6022     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6023     ;;
6024   *)
6025     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6026     for ac_dir in $PATH; do
6027       IFS="$ac_save_IFS"
6028       test -z "$ac_dir" && ac_dir=.
6029       for ac_exec_ext in '' $ac_executable_extensions; do
6030         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6031           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6032      (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
6033             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6034             break 2
6035           fi
6036         fi
6037       done
6038     done
6039     IFS="$ac_save_IFS"
6040   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6041     ;;
6042 esac
6043 fi
6044 XGETTEXT="$ac_cv_path_XGETTEXT"
6045 if test "$XGETTEXT" != ":"; then
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6047 $as_echo "$XGETTEXT" >&6; }
6048 else
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053     rm -f messages.po
6054
6055
6056 # Prepare PATH_SEPARATOR.
6057 # The user is always right.
6058 if test "${PATH_SEPARATOR+set}" != set; then
6059   echo "#! /bin/sh" >conf$$.sh
6060   echo  "exit 0"   >>conf$$.sh
6061   chmod +x conf$$.sh
6062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6063     PATH_SEPARATOR=';'
6064   else
6065     PATH_SEPARATOR=:
6066   fi
6067   rm -f conf$$.sh
6068 fi
6069
6070 # Find out how to test for executable files. Don't use a zero-byte file,
6071 # as systems may use methods other than mode bits to determine executability.
6072 cat >conf$$.file <<_ASEOF
6073 #! /bin/sh
6074 exit 0
6075 _ASEOF
6076 chmod +x conf$$.file
6077 if test -x conf$$.file >/dev/null 2>&1; then
6078   ac_executable_p="test -x"
6079 else
6080   ac_executable_p="test -f"
6081 fi
6082 rm -f conf$$.file
6083
6084 # Extract the first word of "msgmerge", so it can be a program name with args.
6085 set dummy msgmerge; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_path_MSGMERGE+:} false; then :
6089   $as_echo_n "(cached) " >&6
6090 else
6091   case "$MSGMERGE" in
6092   [\\/]* | ?:[\\/]*)
6093     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6094     ;;
6095   *)
6096     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6097     for ac_dir in $PATH; do
6098       IFS="$ac_save_IFS"
6099       test -z "$ac_dir" && ac_dir=.
6100       for ac_exec_ext in '' $ac_executable_extensions; do
6101         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6102           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6103             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6104             break 2
6105           fi
6106         fi
6107       done
6108     done
6109     IFS="$ac_save_IFS"
6110   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6111     ;;
6112 esac
6113 fi
6114 MSGMERGE="$ac_cv_path_MSGMERGE"
6115 if test "$MSGMERGE" != ":"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6117 $as_echo "$MSGMERGE" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123
6124       if test "$GMSGFMT" != ":"; then
6125             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6126        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6127       : ;
6128     else
6129       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6131 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6132       GMSGFMT=":"
6133     fi
6134   fi
6135
6136       if test "$XGETTEXT" != ":"; then
6137             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6138        (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
6139       : ;
6140     else
6141       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6142 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6143       XGETTEXT=":"
6144     fi
6145         rm -f messages.po
6146   fi
6147
6148   ac_config_commands="$ac_config_commands default-1"
6149
6150
6151 if test -n "$ac_tool_prefix"; then
6152   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_RANLIB+:} false; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   if test -n "$RANLIB"; then
6160   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167     for ac_exec_ext in '' $ac_executable_extensions; do
6168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171     break 2
6172   fi
6173 done
6174   done
6175 IFS=$as_save_IFS
6176
6177 fi
6178 fi
6179 RANLIB=$ac_cv_prog_RANLIB
6180 if test -n "$RANLIB"; then
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6182 $as_echo "$RANLIB" >&6; }
6183 else
6184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6186 fi
6187
6188
6189 fi
6190 if test -z "$ac_cv_prog_RANLIB"; then
6191   ac_ct_RANLIB=$RANLIB
6192   # Extract the first word of "ranlib", so it can be a program name with args.
6193 set dummy ranlib; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   if test -n "$ac_ct_RANLIB"; then
6200   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207     for ac_exec_ext in '' $ac_executable_extensions; do
6208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209     ac_cv_prog_ac_ct_RANLIB="ranlib"
6210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214   done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6220 if test -n "$ac_ct_RANLIB"; then
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6222 $as_echo "$ac_ct_RANLIB" >&6; }
6223 else
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228   if test "x$ac_ct_RANLIB" = x; then
6229     RANLIB=":"
6230   else
6231     case $cross_compiling:$ac_tool_warned in
6232 yes:)
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235 ac_tool_warned=yes ;;
6236 esac
6237     RANLIB=$ac_ct_RANLIB
6238   fi
6239 else
6240   RANLIB="$ac_cv_prog_RANLIB"
6241 fi
6242
6243
6244         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6245 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6246 if ${ac_cv_lib_cposix_strerror+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   ac_check_lib_save_LIBS=$LIBS
6250 LIBS="-lcposix  $LIBS"
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h.  */
6253
6254 /* Override any GCC internal prototype to avoid an error.
6255    Use char because int might match the return type of a GCC
6256    builtin and then its argument prototype would still apply.  */
6257 #ifdef __cplusplus
6258 extern "C"
6259 #endif
6260 char strerror ();
6261 int
6262 main ()
6263 {
6264 return strerror ();
6265   ;
6266   return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_link "$LINENO"; then :
6270   ac_cv_lib_cposix_strerror=yes
6271 else
6272   ac_cv_lib_cposix_strerror=no
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext \
6275     conftest$ac_exeext conftest.$ac_ext
6276 LIBS=$ac_check_lib_save_LIBS
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6279 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6280 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6281   LIBS="$LIBS -lcposix"
6282 fi
6283
6284
6285
6286
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6288 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6289 if ${ac_cv_path_GREP+:} false; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if test -z "$GREP"; then
6293   ac_path_GREP_found=false
6294   # Loop through the user's path and test for each of PROGNAME-LIST
6295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300     for ac_prog in grep ggrep; do
6301     for ac_exec_ext in '' $ac_executable_extensions; do
6302       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6303       as_fn_executable_p "$ac_path_GREP" || continue
6304 # Check for GNU ac_path_GREP and select it if it is found.
6305   # Check for GNU $ac_path_GREP
6306 case `"$ac_path_GREP" --version 2>&1` in
6307 *GNU*)
6308   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6309 *)
6310   ac_count=0
6311   $as_echo_n 0123456789 >"conftest.in"
6312   while :
6313   do
6314     cat "conftest.in" "conftest.in" >"conftest.tmp"
6315     mv "conftest.tmp" "conftest.in"
6316     cp "conftest.in" "conftest.nl"
6317     $as_echo 'GREP' >> "conftest.nl"
6318     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6319     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6320     as_fn_arith $ac_count + 1 && ac_count=$as_val
6321     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6322       # Best one so far, save it but keep looking for a better one
6323       ac_cv_path_GREP="$ac_path_GREP"
6324       ac_path_GREP_max=$ac_count
6325     fi
6326     # 10*(2^10) chars as input seems more than enough
6327     test $ac_count -gt 10 && break
6328   done
6329   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6330 esac
6331
6332       $ac_path_GREP_found && break 3
6333     done
6334   done
6335   done
6336 IFS=$as_save_IFS
6337   if test -z "$ac_cv_path_GREP"; then
6338     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6339   fi
6340 else
6341   ac_cv_path_GREP=$GREP
6342 fi
6343
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6346 $as_echo "$ac_cv_path_GREP" >&6; }
6347  GREP="$ac_cv_path_GREP"
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6351 $as_echo_n "checking for egrep... " >&6; }
6352 if ${ac_cv_path_EGREP+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6356    then ac_cv_path_EGREP="$GREP -E"
6357    else
6358      if test -z "$EGREP"; then
6359   ac_path_EGREP_found=false
6360   # Loop through the user's path and test for each of PROGNAME-LIST
6361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6363 do
6364   IFS=$as_save_IFS
6365   test -z "$as_dir" && as_dir=.
6366     for ac_prog in egrep; do
6367     for ac_exec_ext in '' $ac_executable_extensions; do
6368       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6369       as_fn_executable_p "$ac_path_EGREP" || continue
6370 # Check for GNU ac_path_EGREP and select it if it is found.
6371   # Check for GNU $ac_path_EGREP
6372 case `"$ac_path_EGREP" --version 2>&1` in
6373 *GNU*)
6374   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6375 *)
6376   ac_count=0
6377   $as_echo_n 0123456789 >"conftest.in"
6378   while :
6379   do
6380     cat "conftest.in" "conftest.in" >"conftest.tmp"
6381     mv "conftest.tmp" "conftest.in"
6382     cp "conftest.in" "conftest.nl"
6383     $as_echo 'EGREP' >> "conftest.nl"
6384     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6385     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6386     as_fn_arith $ac_count + 1 && ac_count=$as_val
6387     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6388       # Best one so far, save it but keep looking for a better one
6389       ac_cv_path_EGREP="$ac_path_EGREP"
6390       ac_path_EGREP_max=$ac_count
6391     fi
6392     # 10*(2^10) chars as input seems more than enough
6393     test $ac_count -gt 10 && break
6394   done
6395   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6396 esac
6397
6398       $ac_path_EGREP_found && break 3
6399     done
6400   done
6401   done
6402 IFS=$as_save_IFS
6403   if test -z "$ac_cv_path_EGREP"; then
6404     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6405   fi
6406 else
6407   ac_cv_path_EGREP=$EGREP
6408 fi
6409
6410    fi
6411 fi
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6413 $as_echo "$ac_cv_path_EGREP" >&6; }
6414  EGREP="$ac_cv_path_EGREP"
6415
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6418 $as_echo_n "checking for ANSI C header files... " >&6; }
6419 if ${ac_cv_header_stdc+:} false; then :
6420   $as_echo_n "(cached) " >&6
6421 else
6422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h.  */
6424 #include <stdlib.h>
6425 #include <stdarg.h>
6426 #include <string.h>
6427 #include <float.h>
6428
6429 int
6430 main ()
6431 {
6432
6433   ;
6434   return 0;
6435 }
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438   ac_cv_header_stdc=yes
6439 else
6440   ac_cv_header_stdc=no
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443
6444 if test $ac_cv_header_stdc = yes; then
6445   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h.  */
6448 #include <string.h>
6449
6450 _ACEOF
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452   $EGREP "memchr" >/dev/null 2>&1; then :
6453
6454 else
6455   ac_cv_header_stdc=no
6456 fi
6457 rm -f conftest*
6458
6459 fi
6460
6461 if test $ac_cv_header_stdc = yes; then
6462   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h.  */
6465 #include <stdlib.h>
6466
6467 _ACEOF
6468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469   $EGREP "free" >/dev/null 2>&1; then :
6470
6471 else
6472   ac_cv_header_stdc=no
6473 fi
6474 rm -f conftest*
6475
6476 fi
6477
6478 if test $ac_cv_header_stdc = yes; then
6479   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6480   if test "$cross_compiling" = yes; then :
6481   :
6482 else
6483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h.  */
6485 #include <ctype.h>
6486 #include <stdlib.h>
6487 #if ((' ' & 0x0FF) == 0x020)
6488 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6489 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6490 #else
6491 # define ISLOWER(c) \
6492                    (('a' <= (c) && (c) <= 'i') \
6493                      || ('j' <= (c) && (c) <= 'r') \
6494                      || ('s' <= (c) && (c) <= 'z'))
6495 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6496 #endif
6497
6498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6499 int
6500 main ()
6501 {
6502   int i;
6503   for (i = 0; i < 256; i++)
6504     if (XOR (islower (i), ISLOWER (i))
6505         || toupper (i) != TOUPPER (i))
6506       return 2;
6507   return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_run "$LINENO"; then :
6511
6512 else
6513   ac_cv_header_stdc=no
6514 fi
6515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6516   conftest.$ac_objext conftest.beam conftest.$ac_ext
6517 fi
6518
6519 fi
6520 fi
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6522 $as_echo "$ac_cv_header_stdc" >&6; }
6523 if test $ac_cv_header_stdc = yes; then
6524
6525 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6526
6527 fi
6528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6530 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6531 if ${ac_cv_c_const+:} false; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h.  */
6536
6537 int
6538 main ()
6539 {
6540
6541 #ifndef __cplusplus
6542   /* Ultrix mips cc rejects this sort of thing.  */
6543   typedef int charset[2];
6544   const charset cs = { 0, 0 };
6545   /* SunOS 4.1.1 cc rejects this.  */
6546   char const *const *pcpcc;
6547   char **ppc;
6548   /* NEC SVR4.0.2 mips cc rejects this.  */
6549   struct point {int x, y;};
6550   static struct point const zero = {0,0};
6551   /* AIX XL C 1.02.0.0 rejects this.
6552      It does not let you subtract one const X* pointer from another in
6553      an arm of an if-expression whose if-part is not a constant
6554      expression */
6555   const char *g = "string";
6556   pcpcc = &g + (g ? g-g : 0);
6557   /* HPUX 7.0 cc rejects these. */
6558   ++pcpcc;
6559   ppc = (char**) pcpcc;
6560   pcpcc = (char const *const *) ppc;
6561   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6562     char tx;
6563     char *t = &tx;
6564     char const *s = 0 ? (char *) 0 : (char const *) 0;
6565
6566     *t++ = 0;
6567     if (s) return 0;
6568   }
6569   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6570     int x[] = {25, 17};
6571     const int *foo = &x[0];
6572     ++foo;
6573   }
6574   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6575     typedef const int *iptr;
6576     iptr p = 0;
6577     ++p;
6578   }
6579   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6580        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6581     struct s { int j; const int *ap[3]; } bx;
6582     struct s *b = &bx; b->j = 5;
6583   }
6584   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6585     const int foo = 10;
6586     if (!foo) return 0;
6587   }
6588   return !cs[0] && !zero.x;
6589 #endif
6590
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596   ac_cv_c_const=yes
6597 else
6598   ac_cv_c_const=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 fi
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6603 $as_echo "$ac_cv_c_const" >&6; }
6604 if test $ac_cv_c_const = no; then
6605
6606 $as_echo "#define const /**/" >>confdefs.h
6607
6608 fi
6609
6610
6611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6612 $as_echo_n "checking for signed... " >&6; }
6613 if ${bh_cv_c_signed+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h.  */
6618
6619 int
6620 main ()
6621 {
6622 signed char x;
6623   ;
6624   return 0;
6625 }
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628   bh_cv_c_signed=yes
6629 else
6630   bh_cv_c_signed=no
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 fi
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6635 $as_echo "$bh_cv_c_signed" >&6; }
6636   if test $bh_cv_c_signed = no; then
6637
6638 $as_echo "#define signed /**/" >>confdefs.h
6639
6640   fi
6641
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6643 $as_echo_n "checking for inline... " >&6; }
6644 if ${ac_cv_c_inline+:} false; then :
6645   $as_echo_n "(cached) " >&6
6646 else
6647   ac_cv_c_inline=no
6648 for ac_kw in inline __inline__ __inline; do
6649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h.  */
6651 #ifndef __cplusplus
6652 typedef int foo_t;
6653 static $ac_kw foo_t static_foo () {return 0; }
6654 $ac_kw foo_t foo () {return 0; }
6655 #endif
6656
6657 _ACEOF
6658 if ac_fn_c_try_compile "$LINENO"; then :
6659   ac_cv_c_inline=$ac_kw
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662   test "$ac_cv_c_inline" != no && break
6663 done
6664
6665 fi
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6667 $as_echo "$ac_cv_c_inline" >&6; }
6668
6669 case $ac_cv_c_inline in
6670   inline | yes) ;;
6671   *)
6672     case $ac_cv_c_inline in
6673       no) ac_val=;;
6674       *) ac_val=$ac_cv_c_inline;;
6675     esac
6676     cat >>confdefs.h <<_ACEOF
6677 #ifndef __cplusplus
6678 #define inline $ac_val
6679 #endif
6680 _ACEOF
6681     ;;
6682 esac
6683
6684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6686                   inttypes.h stdint.h unistd.h
6687 do :
6688   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6690 "
6691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6692   cat >>confdefs.h <<_ACEOF
6693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6694 _ACEOF
6695
6696 fi
6697
6698 done
6699
6700
6701 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6702 if test "x$ac_cv_type_off_t" = xyes; then :
6703
6704 else
6705
6706 cat >>confdefs.h <<_ACEOF
6707 #define off_t long int
6708 _ACEOF
6709
6710 fi
6711
6712 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6713 if test "x$ac_cv_type_size_t" = xyes; then :
6714
6715 else
6716
6717 cat >>confdefs.h <<_ACEOF
6718 #define size_t unsigned int
6719 _ACEOF
6720
6721 fi
6722
6723
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6725 $as_echo_n "checking for long long... " >&6; }
6726 if ${ac_cv_type_long_long+:} false; then :
6727   $as_echo_n "(cached) " >&6
6728 else
6729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h.  */
6731 long long ll = 1LL; int i = 63;
6732 int
6733 main ()
6734 {
6735 long long llmax = (long long) -1;
6736      return ll << i | ll >> i | llmax / ll | llmax % ll;
6737   ;
6738   return 0;
6739 }
6740 _ACEOF
6741 if ac_fn_c_try_link "$LINENO"; then :
6742   ac_cv_type_long_long=yes
6743 else
6744   ac_cv_type_long_long=no
6745 fi
6746 rm -f core conftest.err conftest.$ac_objext \
6747     conftest$ac_exeext conftest.$ac_ext
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6750 $as_echo "$ac_cv_type_long_long" >&6; }
6751   if test $ac_cv_type_long_long = yes; then
6752
6753 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6754
6755   fi
6756
6757
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6759 $as_echo_n "checking for long double... " >&6; }
6760 if ${gt_cv_c_long_double+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test "$GCC" = yes; then
6764        gt_cv_c_long_double=yes
6765      else
6766        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h.  */
6768
6769          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6770          long double foo = 0.0;
6771          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6772          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6773
6774 int
6775 main ()
6776 {
6777
6778   ;
6779   return 0;
6780 }
6781 _ACEOF
6782 if ac_fn_c_try_compile "$LINENO"; then :
6783   gt_cv_c_long_double=yes
6784 else
6785   gt_cv_c_long_double=no
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788      fi
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6791 $as_echo "$gt_cv_c_long_double" >&6; }
6792   if test $gt_cv_c_long_double = yes; then
6793
6794 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6795
6796   fi
6797
6798
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6800 $as_echo_n "checking for wchar_t... " >&6; }
6801 if ${gt_cv_c_wchar_t+:} false; then :
6802   $as_echo_n "(cached) " >&6
6803 else
6804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h.  */
6806 #include <stddef.h>
6807        wchar_t foo = (wchar_t)'\0';
6808 int
6809 main ()
6810 {
6811
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817   gt_cv_c_wchar_t=yes
6818 else
6819   gt_cv_c_wchar_t=no
6820 fi
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6824 $as_echo "$gt_cv_c_wchar_t" >&6; }
6825   if test $gt_cv_c_wchar_t = yes; then
6826
6827 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6828
6829   fi
6830
6831
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6833 $as_echo_n "checking for wint_t... " >&6; }
6834 if ${gt_cv_c_wint_t+:} false; then :
6835   $as_echo_n "(cached) " >&6
6836 else
6837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h.  */
6839 #include <wchar.h>
6840        wint_t foo = (wchar_t)'\0';
6841 int
6842 main ()
6843 {
6844
6845   ;
6846   return 0;
6847 }
6848 _ACEOF
6849 if ac_fn_c_try_compile "$LINENO"; then :
6850   gt_cv_c_wint_t=yes
6851 else
6852   gt_cv_c_wint_t=no
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 fi
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6857 $as_echo "$gt_cv_c_wint_t" >&6; }
6858   if test $gt_cv_c_wint_t = yes; then
6859
6860 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6861
6862   fi
6863
6864
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6866 $as_echo_n "checking for inttypes.h... " >&6; }
6867 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h.  */
6872 #include <sys/types.h>
6873 #include <inttypes.h>
6874 int
6875 main ()
6876 {
6877 uintmax_t i = (uintmax_t) -1;
6878   ;
6879   return 0;
6880 }
6881 _ACEOF
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883   jm_ac_cv_header_inttypes_h=yes
6884 else
6885   jm_ac_cv_header_inttypes_h=no
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 fi
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6890 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6891   if test $jm_ac_cv_header_inttypes_h = yes; then
6892
6893 cat >>confdefs.h <<_ACEOF
6894 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6895 _ACEOF
6896
6897   fi
6898
6899
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6901 $as_echo_n "checking for stdint.h... " >&6; }
6902 if ${jm_ac_cv_header_stdint_h+:} false; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h.  */
6907 #include <sys/types.h>
6908 #include <stdint.h>
6909 int
6910 main ()
6911 {
6912 uintmax_t i = (uintmax_t) -1;
6913   ;
6914   return 0;
6915 }
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918   jm_ac_cv_header_stdint_h=yes
6919 else
6920   jm_ac_cv_header_stdint_h=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: $jm_ac_cv_header_stdint_h" >&5
6925 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6926   if test $jm_ac_cv_header_stdint_h = yes; then
6927
6928 cat >>confdefs.h <<_ACEOF
6929 #define HAVE_STDINT_H_WITH_UINTMAX 1
6930 _ACEOF
6931
6932   fi
6933
6934
6935
6936
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6938 $as_echo_n "checking for intmax_t... " >&6; }
6939 if ${gt_cv_c_intmax_t+:} false; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h.  */
6944
6945 #include <stddef.h>
6946 #include <stdlib.h>
6947 #if HAVE_STDINT_H_WITH_UINTMAX
6948 #include <stdint.h>
6949 #endif
6950 #if HAVE_INTTYPES_H_WITH_UINTMAX
6951 #include <inttypes.h>
6952 #endif
6953
6954 int
6955 main ()
6956 {
6957 intmax_t x = -1;
6958   ;
6959   return 0;
6960 }
6961 _ACEOF
6962 if ac_fn_c_try_compile "$LINENO"; then :
6963   gt_cv_c_intmax_t=yes
6964 else
6965   gt_cv_c_intmax_t=no
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6970 $as_echo "$gt_cv_c_intmax_t" >&6; }
6971   if test $gt_cv_c_intmax_t = yes; then
6972
6973 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6974
6975   fi
6976
6977
6978
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6980 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6981 if ${gt_cv_func_printf_posix+:} false; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984
6985       if test "$cross_compiling" = yes; then :
6986
6987         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h.  */
6989
6990 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6991   notposix
6992 #endif
6993
6994 _ACEOF
6995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6996   $EGREP "notposix" >/dev/null 2>&1; then :
6997   gt_cv_func_printf_posix="guessing no"
6998 else
6999   gt_cv_func_printf_posix="guessing yes"
7000 fi
7001 rm -f conftest*
7002
7003
7004 else
7005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h.  */
7007
7008 #include <stdio.h>
7009 #include <string.h>
7010 /* The string "%2$d %1$d", with dollar characters protected from the shell's
7011    dollar expansion (possibly an autoconf bug).  */
7012 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7013 static char buf[100];
7014 int main ()
7015 {
7016   sprintf (buf, format, 33, 55);
7017   return (strcmp (buf, "55 33") != 0);
7018 }
7019 _ACEOF
7020 if ac_fn_c_try_run "$LINENO"; then :
7021   gt_cv_func_printf_posix=yes
7022 else
7023   gt_cv_func_printf_posix=no
7024 fi
7025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7026   conftest.$ac_objext conftest.beam conftest.$ac_ext
7027 fi
7028
7029
7030 fi
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7032 $as_echo "$gt_cv_func_printf_posix" >&6; }
7033   case $gt_cv_func_printf_posix in
7034     *yes)
7035
7036 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7037
7038       ;;
7039   esac
7040
7041 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7042 # for constant arguments.  Useless!
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7044 $as_echo_n "checking for working alloca.h... " >&6; }
7045 if ${ac_cv_working_alloca_h+:} false; then :
7046   $as_echo_n "(cached) " >&6
7047 else
7048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050 #include <alloca.h>
7051 int
7052 main ()
7053 {
7054 char *p = (char *) alloca (2 * sizeof (int));
7055                           if (p) return 0;
7056   ;
7057   return 0;
7058 }
7059 _ACEOF
7060 if ac_fn_c_try_link "$LINENO"; then :
7061   ac_cv_working_alloca_h=yes
7062 else
7063   ac_cv_working_alloca_h=no
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext \
7066     conftest$ac_exeext conftest.$ac_ext
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7069 $as_echo "$ac_cv_working_alloca_h" >&6; }
7070 if test $ac_cv_working_alloca_h = yes; then
7071
7072 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7073
7074 fi
7075
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7077 $as_echo_n "checking for alloca... " >&6; }
7078 if ${ac_cv_func_alloca_works+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h.  */
7083 #ifdef __GNUC__
7084 # define alloca __builtin_alloca
7085 #else
7086 # ifdef _MSC_VER
7087 #  include <malloc.h>
7088 #  define alloca _alloca
7089 # else
7090 #  ifdef HAVE_ALLOCA_H
7091 #   include <alloca.h>
7092 #  else
7093 #   ifdef _AIX
7094  #pragma alloca
7095 #   else
7096 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7097 void *alloca (size_t);
7098 #    endif
7099 #   endif
7100 #  endif
7101 # endif
7102 #endif
7103
7104 int
7105 main ()
7106 {
7107 char *p = (char *) alloca (1);
7108                                     if (p) return 0;
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 if ac_fn_c_try_link "$LINENO"; then :
7114   ac_cv_func_alloca_works=yes
7115 else
7116   ac_cv_func_alloca_works=no
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext \
7119     conftest$ac_exeext conftest.$ac_ext
7120 fi
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7122 $as_echo "$ac_cv_func_alloca_works" >&6; }
7123
7124 if test $ac_cv_func_alloca_works = yes; then
7125
7126 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7127
7128 else
7129   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7130 # that cause trouble.  Some versions do not even contain alloca or
7131 # contain a buggy version.  If you still want to use their alloca,
7132 # use ar to extract alloca.o from them instead of compiling alloca.c.
7133
7134 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7135
7136 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7137
7138
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7140 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7141 if ${ac_cv_os_cray+:} false; then :
7142   $as_echo_n "(cached) " >&6
7143 else
7144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h.  */
7146 #if defined CRAY && ! defined CRAY2
7147 webecray
7148 #else
7149 wenotbecray
7150 #endif
7151
7152 _ACEOF
7153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154   $EGREP "webecray" >/dev/null 2>&1; then :
7155   ac_cv_os_cray=yes
7156 else
7157   ac_cv_os_cray=no
7158 fi
7159 rm -f conftest*
7160
7161 fi
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7163 $as_echo "$ac_cv_os_cray" >&6; }
7164 if test $ac_cv_os_cray = yes; then
7165   for ac_func in _getb67 GETB67 getb67; do
7166     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7167 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7168 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7169
7170 cat >>confdefs.h <<_ACEOF
7171 #define CRAY_STACKSEG_END $ac_func
7172 _ACEOF
7173
7174     break
7175 fi
7176
7177   done
7178 fi
7179
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7181 $as_echo_n "checking stack direction for C alloca... " >&6; }
7182 if ${ac_cv_c_stack_direction+:} false; then :
7183   $as_echo_n "(cached) " >&6
7184 else
7185   if test "$cross_compiling" = yes; then :
7186   ac_cv_c_stack_direction=0
7187 else
7188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h.  */
7190 $ac_includes_default
7191 int
7192 find_stack_direction (int *addr, int depth)
7193 {
7194   int dir, dummy = 0;
7195   if (! addr)
7196     addr = &dummy;
7197   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7198   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7199   return dir + dummy;
7200 }
7201
7202 int
7203 main (int argc, char **argv)
7204 {
7205   return find_stack_direction (0, argc + !argv + 20) < 0;
7206 }
7207 _ACEOF
7208 if ac_fn_c_try_run "$LINENO"; then :
7209   ac_cv_c_stack_direction=1
7210 else
7211   ac_cv_c_stack_direction=-1
7212 fi
7213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7214   conftest.$ac_objext conftest.beam conftest.$ac_ext
7215 fi
7216
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7219 $as_echo "$ac_cv_c_stack_direction" >&6; }
7220 cat >>confdefs.h <<_ACEOF
7221 #define STACK_DIRECTION $ac_cv_c_stack_direction
7222 _ACEOF
7223
7224
7225 fi
7226
7227
7228
7229
7230   for ac_header in $ac_header_list
7231 do :
7232   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7234 "
7235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7236   cat >>confdefs.h <<_ACEOF
7237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7238 _ACEOF
7239
7240 fi
7241
7242 done
7243
7244
7245
7246
7247
7248
7249
7250
7251 for ac_func in getpagesize
7252 do :
7253   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7254 if test "x$ac_cv_func_getpagesize" = xyes; then :
7255   cat >>confdefs.h <<_ACEOF
7256 #define HAVE_GETPAGESIZE 1
7257 _ACEOF
7258
7259 fi
7260 done
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7263 $as_echo_n "checking for working mmap... " >&6; }
7264 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   if test "$cross_compiling" = yes; then :
7268   ac_cv_func_mmap_fixed_mapped=no
7269 else
7270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h.  */
7272 $ac_includes_default
7273 /* malloc might have been renamed as rpl_malloc. */
7274 #undef malloc
7275
7276 /* Thanks to Mike Haertel and Jim Avera for this test.
7277    Here is a matrix of mmap possibilities:
7278         mmap private not fixed
7279         mmap private fixed at somewhere currently unmapped
7280         mmap private fixed at somewhere already mapped
7281         mmap shared not fixed
7282         mmap shared fixed at somewhere currently unmapped
7283         mmap shared fixed at somewhere already mapped
7284    For private mappings, we should verify that changes cannot be read()
7285    back from the file, nor mmap's back from the file at a different
7286    address.  (There have been systems where private was not correctly
7287    implemented like the infamous i386 svr4.0, and systems where the
7288    VM page cache was not coherent with the file system buffer cache
7289    like early versions of FreeBSD and possibly contemporary NetBSD.)
7290    For shared mappings, we should conversely verify that changes get
7291    propagated back to all the places they're supposed to be.
7292
7293    Grep wants private fixed already mapped.
7294    The main things grep needs to know about mmap are:
7295    * does it exist and is it safe to write into the mmap'd area
7296    * how to use it (BSD variants)  */
7297
7298 #include <fcntl.h>
7299 #include <sys/mman.h>
7300
7301 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7302 char *malloc ();
7303 #endif
7304
7305 /* This mess was copied from the GNU getpagesize.h.  */
7306 #ifndef HAVE_GETPAGESIZE
7307 # ifdef _SC_PAGESIZE
7308 #  define getpagesize() sysconf(_SC_PAGESIZE)
7309 # else /* no _SC_PAGESIZE */
7310 #  ifdef HAVE_SYS_PARAM_H
7311 #   include <sys/param.h>
7312 #   ifdef EXEC_PAGESIZE
7313 #    define getpagesize() EXEC_PAGESIZE
7314 #   else /* no EXEC_PAGESIZE */
7315 #    ifdef NBPG
7316 #     define getpagesize() NBPG * CLSIZE
7317 #     ifndef CLSIZE
7318 #      define CLSIZE 1
7319 #     endif /* no CLSIZE */
7320 #    else /* no NBPG */
7321 #     ifdef NBPC
7322 #      define getpagesize() NBPC
7323 #     else /* no NBPC */
7324 #      ifdef PAGESIZE
7325 #       define getpagesize() PAGESIZE
7326 #      endif /* PAGESIZE */
7327 #     endif /* no NBPC */
7328 #    endif /* no NBPG */
7329 #   endif /* no EXEC_PAGESIZE */
7330 #  else /* no HAVE_SYS_PARAM_H */
7331 #   define getpagesize() 8192   /* punt totally */
7332 #  endif /* no HAVE_SYS_PARAM_H */
7333 # endif /* no _SC_PAGESIZE */
7334
7335 #endif /* no HAVE_GETPAGESIZE */
7336
7337 int
7338 main ()
7339 {
7340   char *data, *data2, *data3;
7341   const char *cdata2;
7342   int i, pagesize;
7343   int fd, fd2;
7344
7345   pagesize = getpagesize ();
7346
7347   /* First, make a file with some known garbage in it. */
7348   data = (char *) malloc (pagesize);
7349   if (!data)
7350     return 1;
7351   for (i = 0; i < pagesize; ++i)
7352     *(data + i) = rand ();
7353   umask (0);
7354   fd = creat ("conftest.mmap", 0600);
7355   if (fd < 0)
7356     return 2;
7357   if (write (fd, data, pagesize) != pagesize)
7358     return 3;
7359   close (fd);
7360
7361   /* Next, check that the tail of a page is zero-filled.  File must have
7362      non-zero length, otherwise we risk SIGBUS for entire page.  */
7363   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7364   if (fd2 < 0)
7365     return 4;
7366   cdata2 = "";
7367   if (write (fd2, cdata2, 1) != 1)
7368     return 5;
7369   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7370   if (data2 == MAP_FAILED)
7371     return 6;
7372   for (i = 0; i < pagesize; ++i)
7373     if (*(data2 + i))
7374       return 7;
7375   close (fd2);
7376   if (munmap (data2, pagesize))
7377     return 8;
7378
7379   /* Next, try to mmap the file at a fixed address which already has
7380      something else allocated at it.  If we can, also make sure that
7381      we see the same garbage.  */
7382   fd = open ("conftest.mmap", O_RDWR);
7383   if (fd < 0)
7384     return 9;
7385   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7386                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7387     return 10;
7388   for (i = 0; i < pagesize; ++i)
7389     if (*(data + i) != *(data2 + i))
7390       return 11;
7391
7392   /* Finally, make sure that changes to the mapped area do not
7393      percolate back to the file as seen by read().  (This is a bug on
7394      some variants of i386 svr4.0.)  */
7395   for (i = 0; i < pagesize; ++i)
7396     *(data2 + i) = *(data2 + i) + 1;
7397   data3 = (char *) malloc (pagesize);
7398   if (!data3)
7399     return 12;
7400   if (read (fd, data3, pagesize) != pagesize)
7401     return 13;
7402   for (i = 0; i < pagesize; ++i)
7403     if (*(data + i) != *(data3 + i))
7404       return 14;
7405   close (fd);
7406   return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_c_try_run "$LINENO"; then :
7410   ac_cv_func_mmap_fixed_mapped=yes
7411 else
7412   ac_cv_func_mmap_fixed_mapped=no
7413 fi
7414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7415   conftest.$ac_objext conftest.beam conftest.$ac_ext
7416 fi
7417
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7420 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7421 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7422
7423 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7424
7425 fi
7426 rm -f conftest.mmap conftest.txt
7427
7428
7429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7430 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7431 if ${ac_cv_gnu_library_2_1+:} false; then :
7432   $as_echo_n "(cached) " >&6
7433 else
7434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h.  */
7436
7437 #include <features.h>
7438 #ifdef __GNU_LIBRARY__
7439  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7440   Lucky GNU user
7441  #endif
7442 #endif
7443
7444 _ACEOF
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7447   ac_cv_gnu_library_2_1=yes
7448 else
7449   ac_cv_gnu_library_2_1=no
7450 fi
7451 rm -f conftest*
7452
7453
7454
7455 fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7457 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7458
7459     GLIBC21="$ac_cv_gnu_library_2_1"
7460
7461
7462
7463
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7465 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7466 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469
7470       if test "$cross_compiling" = yes; then :
7471
7472           # Guess based on the CPU.
7473           case "$host_cpu" in
7474             alpha* | i3456786 | m68k | s390*)
7475               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7476             *)
7477               gt_cv_int_divbyzero_sigfpe="guessing no";;
7478           esac
7479
7480 else
7481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h.  */
7483
7484 #include <stdlib.h>
7485 #include <signal.h>
7486
7487 static void
7488 #ifdef __cplusplus
7489 sigfpe_handler (int sig)
7490 #else
7491 sigfpe_handler (sig) int sig;
7492 #endif
7493 {
7494   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7495   exit (sig != SIGFPE);
7496 }
7497
7498 int x = 1;
7499 int y = 0;
7500 int z;
7501 int nan;
7502
7503 int main ()
7504 {
7505   signal (SIGFPE, sigfpe_handler);
7506 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7507 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7508   signal (SIGTRAP, sigfpe_handler);
7509 #endif
7510 /* Linux/SPARC yields signal SIGILL.  */
7511 #if defined (__sparc__) && defined (__linux__)
7512   signal (SIGILL, sigfpe_handler);
7513 #endif
7514
7515   z = x / y;
7516   nan = y / y;
7517   exit (1);
7518 }
7519
7520 _ACEOF
7521 if ac_fn_c_try_run "$LINENO"; then :
7522   gt_cv_int_divbyzero_sigfpe=yes
7523 else
7524   gt_cv_int_divbyzero_sigfpe=no
7525 fi
7526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7527   conftest.$ac_objext conftest.beam conftest.$ac_ext
7528 fi
7529
7530
7531 fi
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7533 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7534   case "$gt_cv_int_divbyzero_sigfpe" in
7535     *yes) value=1;;
7536     *) value=0;;
7537   esac
7538
7539 cat >>confdefs.h <<_ACEOF
7540 #define INTDIV0_RAISES_SIGFPE $value
7541 _ACEOF
7542
7543
7544
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7546 $as_echo_n "checking for unsigned long long... " >&6; }
7547 if ${ac_cv_type_unsigned_long_long+:} false; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h.  */
7552 unsigned long long ull = 1ULL; int i = 63;
7553 int
7554 main ()
7555 {
7556 unsigned long long ullmax = (unsigned long long) -1;
7557      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7558   ;
7559   return 0;
7560 }
7561 _ACEOF
7562 if ac_fn_c_try_link "$LINENO"; then :
7563   ac_cv_type_unsigned_long_long=yes
7564 else
7565   ac_cv_type_unsigned_long_long=no
7566 fi
7567 rm -f core conftest.err conftest.$ac_objext \
7568     conftest$ac_exeext conftest.$ac_ext
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7571 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7572   if test $ac_cv_type_unsigned_long_long = yes; then
7573
7574 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7575
7576   fi
7577
7578
7579
7580
7581   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7582
7583     test $ac_cv_type_unsigned_long_long = yes \
7584       && ac_type='unsigned long long' \
7585       || ac_type='unsigned long'
7586
7587 cat >>confdefs.h <<_ACEOF
7588 #define uintmax_t $ac_type
7589 _ACEOF
7590
7591   else
7592
7593 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7594
7595   fi
7596
7597
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7599 $as_echo_n "checking for inttypes.h... " >&6; }
7600 if ${gt_cv_header_inttypes_h+:} false; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603
7604     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h.  */
7606 #include <sys/types.h>
7607 #include <inttypes.h>
7608 int
7609 main ()
7610 {
7611
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617   gt_cv_header_inttypes_h=yes
7618 else
7619   gt_cv_header_inttypes_h=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7625 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7626   if test $gt_cv_header_inttypes_h = yes; then
7627
7628 cat >>confdefs.h <<_ACEOF
7629 #define HAVE_INTTYPES_H 1
7630 _ACEOF
7631
7632   fi
7633
7634
7635
7636   if test $gt_cv_header_inttypes_h = yes; then
7637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7638 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7639 if ${gt_cv_inttypes_pri_broken+:} false; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642
7643         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h.  */
7645 #include <inttypes.h>
7646 #ifdef PRId32
7647 char *p = PRId32;
7648 #endif
7649
7650 int
7651 main ()
7652 {
7653
7654   ;
7655   return 0;
7656 }
7657 _ACEOF
7658 if ac_fn_c_try_compile "$LINENO"; then :
7659   gt_cv_inttypes_pri_broken=no
7660 else
7661   gt_cv_inttypes_pri_broken=yes
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664
7665 fi
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7667 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7668   fi
7669   if test "$gt_cv_inttypes_pri_broken" = yes; then
7670
7671 cat >>confdefs.h <<_ACEOF
7672 #define PRI_MACROS_BROKEN 1
7673 _ACEOF
7674
7675   fi
7676
7677
7678   for ac_header in stdint.h
7679 do :
7680   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7681 if test "x$ac_cv_header_stdint_h" = xyes; then :
7682   cat >>confdefs.h <<_ACEOF
7683 #define HAVE_STDINT_H 1
7684 _ACEOF
7685
7686 fi
7687
7688 done
7689
7690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7691 $as_echo_n "checking for SIZE_MAX... " >&6; }
7692   result=
7693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h.  */
7695
7696 #include <limits.h>
7697 #if HAVE_STDINT_H
7698 #include <stdint.h>
7699 #endif
7700 #ifdef SIZE_MAX
7701 Found it
7702 #endif
7703
7704 _ACEOF
7705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7706   $EGREP "Found it" >/dev/null 2>&1; then :
7707   result=yes
7708 fi
7709 rm -f conftest*
7710
7711   if test -z "$result"; then
7712                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7713
7714 else
7715   result=?
7716 fi
7717
7718
7719     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7720
7721 else
7722   result=?
7723 fi
7724
7725
7726     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7727
7728 else
7729   result=?
7730 fi
7731
7732
7733     if test "$fits_in_uint" = 1; then
7734                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h.  */
7736 #include <stddef.h>
7737         extern size_t foo;
7738         extern unsigned long foo;
7739
7740 int
7741 main ()
7742 {
7743
7744   ;
7745   return 0;
7746 }
7747 _ACEOF
7748 if ac_fn_c_try_compile "$LINENO"; then :
7749   fits_in_uint=0
7750 fi
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752     fi
7753     if test -z "$result"; then
7754       if test "$fits_in_uint" = 1; then
7755         result="$res_hi$res_lo"U
7756       else
7757         result="$res_hi$res_lo"UL
7758       fi
7759     else
7760             result='~(size_t)0'
7761     fi
7762   fi
7763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7764 $as_echo "$result" >&6; }
7765   if test "$result" != yes; then
7766
7767 cat >>confdefs.h <<_ACEOF
7768 #define SIZE_MAX $result
7769 _ACEOF
7770
7771   fi
7772
7773
7774
7775   for ac_header in stdint.h
7776 do :
7777   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7778 if test "x$ac_cv_header_stdint_h" = xyes; then :
7779   cat >>confdefs.h <<_ACEOF
7780 #define HAVE_STDINT_H 1
7781 _ACEOF
7782
7783 fi
7784
7785 done
7786
7787
7788
7789       if test "X$prefix" = "XNONE"; then
7790     acl_final_prefix="$ac_default_prefix"
7791   else
7792     acl_final_prefix="$prefix"
7793   fi
7794   if test "X$exec_prefix" = "XNONE"; then
7795     acl_final_exec_prefix='${prefix}'
7796   else
7797     acl_final_exec_prefix="$exec_prefix"
7798   fi
7799   acl_save_prefix="$prefix"
7800   prefix="$acl_final_prefix"
7801   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7802   prefix="$acl_save_prefix"
7803
7804
7805 # Check whether --with-gnu-ld was given.
7806 if test "${with_gnu_ld+set}" = set; then :
7807   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7808 else
7809   with_gnu_ld=no
7810 fi
7811
7812 # Prepare PATH_SEPARATOR.
7813 # The user is always right.
7814 if test "${PATH_SEPARATOR+set}" != set; then
7815   echo "#! /bin/sh" >conf$$.sh
7816   echo  "exit 0"   >>conf$$.sh
7817   chmod +x conf$$.sh
7818   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7819     PATH_SEPARATOR=';'
7820   else
7821     PATH_SEPARATOR=:
7822   fi
7823   rm -f conf$$.sh
7824 fi
7825 ac_prog=ld
7826 if test "$GCC" = yes; then
7827   # Check if gcc -print-prog-name=ld gives a path.
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7829 $as_echo_n "checking for ld used by GCC... " >&6; }
7830   case $host in
7831   *-*-mingw*)
7832     # gcc leaves a trailing carriage return which upsets mingw
7833     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7834   *)
7835     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7836   esac
7837   case $ac_prog in
7838     # Accept absolute paths.
7839     [\\/]* | [A-Za-z]:[\\/]*)
7840       re_direlt='/[^/][^/]*/\.\./'
7841       # Canonicalize the path of ld
7842       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7843       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7844         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7845       done
7846       test -z "$LD" && LD="$ac_prog"
7847       ;;
7848   "")
7849     # If it fails, then pretend we aren't using GCC.
7850     ac_prog=ld
7851     ;;
7852   *)
7853     # If it is relative, then search for the first ld in PATH.
7854     with_gnu_ld=unknown
7855     ;;
7856   esac
7857 elif test "$with_gnu_ld" = yes; then
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7859 $as_echo_n "checking for GNU ld... " >&6; }
7860 else
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7862 $as_echo_n "checking for non-GNU ld... " >&6; }
7863 fi
7864 if ${acl_cv_path_LD+:} false; then :
7865   $as_echo_n "(cached) " >&6
7866 else
7867   if test -z "$LD"; then
7868   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7869   for ac_dir in $PATH; do
7870     test -z "$ac_dir" && ac_dir=.
7871     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7872       acl_cv_path_LD="$ac_dir/$ac_prog"
7873       # Check to see if the program is GNU ld.  I'd rather use --version,
7874       # but apparently some GNU ld's only accept -v.
7875       # Break only if it was the GNU/non-GNU ld that we prefer.
7876       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7877       *GNU* | *'with BFD'*)
7878         test "$with_gnu_ld" != no && break ;;
7879       *)
7880         test "$with_gnu_ld" != yes && break ;;
7881       esac
7882     fi
7883   done
7884   IFS="$ac_save_ifs"
7885 else
7886   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7887 fi
7888 fi
7889
7890 LD="$acl_cv_path_LD"
7891 if test -n "$LD"; then
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7893 $as_echo "$LD" >&6; }
7894 else
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7901 if ${acl_cv_prog_gnu_ld+:} false; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7905 case `$LD -v 2>&1 </dev/null` in
7906 *GNU* | *'with BFD'*)
7907   acl_cv_prog_gnu_ld=yes ;;
7908 *)
7909   acl_cv_prog_gnu_ld=no ;;
7910 esac
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7913 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7914 with_gnu_ld=$acl_cv_prog_gnu_ld
7915
7916
7917
7918                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7919 $as_echo_n "checking for shared library run path origin... " >&6; }
7920 if ${acl_cv_rpath+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923
7924     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7925     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7926     . ./conftest.sh
7927     rm -f ./conftest.sh
7928     acl_cv_rpath=done
7929
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7932 $as_echo "$acl_cv_rpath" >&6; }
7933   wl="$acl_cv_wl"
7934   libext="$acl_cv_libext"
7935   shlibext="$acl_cv_shlibext"
7936   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7937   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7938   hardcode_direct="$acl_cv_hardcode_direct"
7939   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7940     # Check whether --enable-rpath was given.
7941 if test "${enable_rpath+set}" = set; then :
7942   enableval=$enable_rpath; :
7943 else
7944   enable_rpath=yes
7945 fi
7946
7947
7948
7949
7950
7951
7952
7953
7954     use_additional=yes
7955
7956   acl_save_prefix="$prefix"
7957   prefix="$acl_final_prefix"
7958   acl_save_exec_prefix="$exec_prefix"
7959   exec_prefix="$acl_final_exec_prefix"
7960
7961     eval additional_includedir=\"$includedir\"
7962     eval additional_libdir=\"$libdir\"
7963
7964   exec_prefix="$acl_save_exec_prefix"
7965   prefix="$acl_save_prefix"
7966
7967
7968 # Check whether --with-libiconv-prefix was given.
7969 if test "${with_libiconv_prefix+set}" = set; then :
7970   withval=$with_libiconv_prefix;
7971     if test "X$withval" = "Xno"; then
7972       use_additional=no
7973     else
7974       if test "X$withval" = "X"; then
7975
7976   acl_save_prefix="$prefix"
7977   prefix="$acl_final_prefix"
7978   acl_save_exec_prefix="$exec_prefix"
7979   exec_prefix="$acl_final_exec_prefix"
7980
7981           eval additional_includedir=\"$includedir\"
7982           eval additional_libdir=\"$libdir\"
7983
7984   exec_prefix="$acl_save_exec_prefix"
7985   prefix="$acl_save_prefix"
7986
7987       else
7988         additional_includedir="$withval/include"
7989         additional_libdir="$withval/lib"
7990       fi
7991     fi
7992
7993 fi
7994
7995       LIBICONV=
7996   LTLIBICONV=
7997   INCICONV=
7998   rpathdirs=
7999   ltrpathdirs=
8000   names_already_handled=
8001   names_next_round='iconv '
8002   while test -n "$names_next_round"; do
8003     names_this_round="$names_next_round"
8004     names_next_round=
8005     for name in $names_this_round; do
8006       already_handled=
8007       for n in $names_already_handled; do
8008         if test "$n" = "$name"; then
8009           already_handled=yes
8010           break
8011         fi
8012       done
8013       if test -z "$already_handled"; then
8014         names_already_handled="$names_already_handled $name"
8015                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8016         eval value=\"\$HAVE_LIB$uppername\"
8017         if test -n "$value"; then
8018           if test "$value" = yes; then
8019             eval value=\"\$LIB$uppername\"
8020             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8021             eval value=\"\$LTLIB$uppername\"
8022             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8023           else
8024                                     :
8025           fi
8026         else
8027                               found_dir=
8028           found_la=
8029           found_so=
8030           found_a=
8031           if test $use_additional = yes; then
8032             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8033               found_dir="$additional_libdir"
8034               found_so="$additional_libdir/lib$name.$shlibext"
8035               if test -f "$additional_libdir/lib$name.la"; then
8036                 found_la="$additional_libdir/lib$name.la"
8037               fi
8038             else
8039               if test -f "$additional_libdir/lib$name.$libext"; then
8040                 found_dir="$additional_libdir"
8041                 found_a="$additional_libdir/lib$name.$libext"
8042                 if test -f "$additional_libdir/lib$name.la"; then
8043                   found_la="$additional_libdir/lib$name.la"
8044                 fi
8045               fi
8046             fi
8047           fi
8048           if test "X$found_dir" = "X"; then
8049             for x in $LDFLAGS $LTLIBICONV; do
8050
8051   acl_save_prefix="$prefix"
8052   prefix="$acl_final_prefix"
8053   acl_save_exec_prefix="$exec_prefix"
8054   exec_prefix="$acl_final_exec_prefix"
8055   eval x=\"$x\"
8056   exec_prefix="$acl_save_exec_prefix"
8057   prefix="$acl_save_prefix"
8058
8059               case "$x" in
8060                 -L*)
8061                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8062                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8063                     found_dir="$dir"
8064                     found_so="$dir/lib$name.$shlibext"
8065                     if test -f "$dir/lib$name.la"; then
8066                       found_la="$dir/lib$name.la"
8067                     fi
8068                   else
8069                     if test -f "$dir/lib$name.$libext"; then
8070                       found_dir="$dir"
8071                       found_a="$dir/lib$name.$libext"
8072                       if test -f "$dir/lib$name.la"; then
8073                         found_la="$dir/lib$name.la"
8074                       fi
8075                     fi
8076                   fi
8077                   ;;
8078               esac
8079               if test "X$found_dir" != "X"; then
8080                 break
8081               fi
8082             done
8083           fi
8084           if test "X$found_dir" != "X"; then
8085                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8086             if test "X$found_so" != "X"; then
8087                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8088                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8089               else
8090                                                                                 haveit=
8091                 for x in $ltrpathdirs; do
8092                   if test "X$x" = "X$found_dir"; then
8093                     haveit=yes
8094                     break
8095                   fi
8096                 done
8097                 if test -z "$haveit"; then
8098                   ltrpathdirs="$ltrpathdirs $found_dir"
8099                 fi
8100                                 if test "$hardcode_direct" = yes; then
8101                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8102                 else
8103                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8104                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8105                                                             haveit=
8106                     for x in $rpathdirs; do
8107                       if test "X$x" = "X$found_dir"; then
8108                         haveit=yes
8109                         break
8110                       fi
8111                     done
8112                     if test -z "$haveit"; then
8113                       rpathdirs="$rpathdirs $found_dir"
8114                     fi
8115                   else
8116                                                                                 haveit=
8117                     for x in $LDFLAGS $LIBICONV; do
8118
8119   acl_save_prefix="$prefix"
8120   prefix="$acl_final_prefix"
8121   acl_save_exec_prefix="$exec_prefix"
8122   exec_prefix="$acl_final_exec_prefix"
8123   eval x=\"$x\"
8124   exec_prefix="$acl_save_exec_prefix"
8125   prefix="$acl_save_prefix"
8126
8127                       if test "X$x" = "X-L$found_dir"; then
8128                         haveit=yes
8129                         break
8130                       fi
8131                     done
8132                     if test -z "$haveit"; then
8133                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8134                     fi
8135                     if test "$hardcode_minus_L" != no; then
8136                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8137                     else
8138                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8139                     fi
8140                   fi
8141                 fi
8142               fi
8143             else
8144               if test "X$found_a" != "X"; then
8145                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8146               else
8147                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8148               fi
8149             fi
8150                         additional_includedir=
8151             case "$found_dir" in
8152               */lib | */lib/)
8153                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8154                 additional_includedir="$basedir/include"
8155                 ;;
8156             esac
8157             if test "X$additional_includedir" != "X"; then
8158                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8159                 haveit=
8160                 if test "X$additional_includedir" = "X/usr/local/include"; then
8161                   if test -n "$GCC"; then
8162                     case $host_os in
8163                       linux*) haveit=yes;;
8164                     esac
8165                   fi
8166                 fi
8167                 if test -z "$haveit"; then
8168                   for x in $CPPFLAGS $INCICONV; 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-I$additional_includedir"; then
8179                       haveit=yes
8180                       break
8181                     fi
8182                   done
8183                   if test -z "$haveit"; then
8184                     if test -d "$additional_includedir"; then
8185                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8186                     fi
8187                   fi
8188                 fi
8189               fi
8190             fi
8191                         if test -n "$found_la"; then
8192                                                         save_libdir="$libdir"
8193               case "$found_la" in
8194                 */* | *\\*) . "$found_la" ;;
8195                 *) . "./$found_la" ;;
8196               esac
8197               libdir="$save_libdir"
8198                             for dep in $dependency_libs; do
8199                 case "$dep" in
8200                   -L*)
8201                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8202                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8203                       haveit=
8204                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8205                         if test -n "$GCC"; then
8206                           case $host_os in
8207                             linux*) haveit=yes;;
8208                           esac
8209                         fi
8210                       fi
8211                       if test -z "$haveit"; then
8212                         haveit=
8213                         for x in $LDFLAGS $LIBICONV; do
8214
8215   acl_save_prefix="$prefix"
8216   prefix="$acl_final_prefix"
8217   acl_save_exec_prefix="$exec_prefix"
8218   exec_prefix="$acl_final_exec_prefix"
8219   eval x=\"$x\"
8220   exec_prefix="$acl_save_exec_prefix"
8221   prefix="$acl_save_prefix"
8222
8223                           if test "X$x" = "X-L$additional_libdir"; then
8224                             haveit=yes
8225                             break
8226                           fi
8227                         done
8228                         if test -z "$haveit"; then
8229                           if test -d "$additional_libdir"; then
8230                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8231                           fi
8232                         fi
8233                         haveit=
8234                         for x in $LDFLAGS $LTLIBICONV; do
8235
8236   acl_save_prefix="$prefix"
8237   prefix="$acl_final_prefix"
8238   acl_save_exec_prefix="$exec_prefix"
8239   exec_prefix="$acl_final_exec_prefix"
8240   eval x=\"$x\"
8241   exec_prefix="$acl_save_exec_prefix"
8242   prefix="$acl_save_prefix"
8243
8244                           if test "X$x" = "X-L$additional_libdir"; then
8245                             haveit=yes
8246                             break
8247                           fi
8248                         done
8249                         if test -z "$haveit"; then
8250                           if test -d "$additional_libdir"; then
8251                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8252                           fi
8253                         fi
8254                       fi
8255                     fi
8256                     ;;
8257                   -R*)
8258                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8259                     if test "$enable_rpath" != no; then
8260                                                                   haveit=
8261                       for x in $rpathdirs; do
8262                         if test "X$x" = "X$dir"; then
8263                           haveit=yes
8264                           break
8265                         fi
8266                       done
8267                       if test -z "$haveit"; then
8268                         rpathdirs="$rpathdirs $dir"
8269                       fi
8270                                                                   haveit=
8271                       for x in $ltrpathdirs; do
8272                         if test "X$x" = "X$dir"; then
8273                           haveit=yes
8274                           break
8275                         fi
8276                       done
8277                       if test -z "$haveit"; then
8278                         ltrpathdirs="$ltrpathdirs $dir"
8279                       fi
8280                     fi
8281                     ;;
8282                   -l*)
8283                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8284                     ;;
8285                   *.la)
8286                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8287                     ;;
8288                   *)
8289                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8290                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8291                     ;;
8292                 esac
8293               done
8294             fi
8295           else
8296                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8297             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8298           fi
8299         fi
8300       fi
8301     done
8302   done
8303   if test "X$rpathdirs" != "X"; then
8304     if test -n "$hardcode_libdir_separator"; then
8305                         alldirs=
8306       for found_dir in $rpathdirs; do
8307         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8308       done
8309             acl_save_libdir="$libdir"
8310       libdir="$alldirs"
8311       eval flag=\"$hardcode_libdir_flag_spec\"
8312       libdir="$acl_save_libdir"
8313       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8314     else
8315             for found_dir in $rpathdirs; do
8316         acl_save_libdir="$libdir"
8317         libdir="$found_dir"
8318         eval flag=\"$hardcode_libdir_flag_spec\"
8319         libdir="$acl_save_libdir"
8320         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8321       done
8322     fi
8323   fi
8324   if test "X$ltrpathdirs" != "X"; then
8325             for found_dir in $ltrpathdirs; do
8326       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8327     done
8328   fi
8329
8330
8331
8332
8333
8334
8335
8336
8337   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8338 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8339
8340 else
8341
8342 $as_echo "#define ptrdiff_t long" >>confdefs.h
8343
8344
8345 fi
8346
8347   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8348 stdlib.h string.h unistd.h sys/param.h
8349 do :
8350   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8351 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8353   cat >>confdefs.h <<_ACEOF
8354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8355 _ACEOF
8356
8357 fi
8358
8359 done
8360
8361   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8362 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8363 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8364 __fsetlocking
8365 do :
8366   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8369   cat >>confdefs.h <<_ACEOF
8370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8371 _ACEOF
8372
8373 fi
8374 done
8375
8376
8377
8378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8379 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8380 if ${ac_cv_have_decl__snprintf+:} false; then :
8381   $as_echo_n "(cached) " >&6
8382 else
8383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h.  */
8385 #include <stdio.h>
8386 int
8387 main ()
8388 {
8389
8390 #ifndef _snprintf
8391   char *p = (char *) _snprintf;
8392 #endif
8393
8394   ;
8395   return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"; then :
8399   ac_cv_have_decl__snprintf=yes
8400 else
8401   ac_cv_have_decl__snprintf=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8406 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8407   if test $ac_cv_have_decl__snprintf = yes; then
8408     gt_value=1
8409   else
8410     gt_value=0
8411   fi
8412
8413 cat >>confdefs.h <<_ACEOF
8414 #define HAVE_DECL__SNPRINTF $gt_value
8415 _ACEOF
8416
8417
8418
8419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8420 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8421 if ${ac_cv_have_decl__snwprintf+:} false; then :
8422   $as_echo_n "(cached) " >&6
8423 else
8424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h.  */
8426 #include <stdio.h>
8427 int
8428 main ()
8429 {
8430
8431 #ifndef _snwprintf
8432   char *p = (char *) _snwprintf;
8433 #endif
8434
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 if ac_fn_c_try_compile "$LINENO"; then :
8440   ac_cv_have_decl__snwprintf=yes
8441 else
8442   ac_cv_have_decl__snwprintf=no
8443 fi
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 fi
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8447 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8448   if test $ac_cv_have_decl__snwprintf = yes; then
8449     gt_value=1
8450   else
8451     gt_value=0
8452   fi
8453
8454 cat >>confdefs.h <<_ACEOF
8455 #define HAVE_DECL__SNWPRINTF $gt_value
8456 _ACEOF
8457
8458
8459
8460
8461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8462 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8463 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h.  */
8468 #include <stdio.h>
8469 int
8470 main ()
8471 {
8472
8473 #ifndef feof_unlocked
8474   char *p = (char *) feof_unlocked;
8475 #endif
8476
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 if ac_fn_c_try_compile "$LINENO"; then :
8482   ac_cv_have_decl_feof_unlocked=yes
8483 else
8484   ac_cv_have_decl_feof_unlocked=no
8485 fi
8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487 fi
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8489 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8490   if test $ac_cv_have_decl_feof_unlocked = yes; then
8491     gt_value=1
8492   else
8493     gt_value=0
8494   fi
8495
8496 cat >>confdefs.h <<_ACEOF
8497 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8498 _ACEOF
8499
8500
8501
8502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8503 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8504 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8505   $as_echo_n "(cached) " >&6
8506 else
8507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h.  */
8509 #include <stdio.h>
8510 int
8511 main ()
8512 {
8513
8514 #ifndef fgets_unlocked
8515   char *p = (char *) fgets_unlocked;
8516 #endif
8517
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 if ac_fn_c_try_compile "$LINENO"; then :
8523   ac_cv_have_decl_fgets_unlocked=yes
8524 else
8525   ac_cv_have_decl_fgets_unlocked=no
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8530 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8531   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8532     gt_value=1
8533   else
8534     gt_value=0
8535   fi
8536
8537 cat >>confdefs.h <<_ACEOF
8538 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8539 _ACEOF
8540
8541
8542
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8544 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8545 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h.  */
8550 #include <stdio.h>
8551 int
8552 main ()
8553 {
8554
8555 #ifndef getc_unlocked
8556   char *p = (char *) getc_unlocked;
8557 #endif
8558
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564   ac_cv_have_decl_getc_unlocked=yes
8565 else
8566   ac_cv_have_decl_getc_unlocked=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8571 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8572   if test $ac_cv_have_decl_getc_unlocked = yes; then
8573     gt_value=1
8574   else
8575     gt_value=0
8576   fi
8577
8578 cat >>confdefs.h <<_ACEOF
8579 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8580 _ACEOF
8581
8582
8583
8584   case $gt_cv_func_printf_posix in
8585     *yes) HAVE_POSIX_PRINTF=1 ;;
8586     *) HAVE_POSIX_PRINTF=0 ;;
8587   esac
8588
8589   if test "$ac_cv_func_asprintf" = yes; then
8590     HAVE_ASPRINTF=1
8591   else
8592     HAVE_ASPRINTF=0
8593   fi
8594
8595   if test "$ac_cv_func_snprintf" = yes; then
8596     HAVE_SNPRINTF=1
8597   else
8598     HAVE_SNPRINTF=0
8599   fi
8600
8601   if test "$ac_cv_func_wprintf" = yes; then
8602     HAVE_WPRINTF=1
8603   else
8604     HAVE_WPRINTF=0
8605   fi
8606
8607
8608
8609
8610
8611
8612
8613           am_save_CPPFLAGS="$CPPFLAGS"
8614
8615   for element in $INCICONV; do
8616     haveit=
8617     for x in $CPPFLAGS; do
8618
8619   acl_save_prefix="$prefix"
8620   prefix="$acl_final_prefix"
8621   acl_save_exec_prefix="$exec_prefix"
8622   exec_prefix="$acl_final_exec_prefix"
8623   eval x=\"$x\"
8624   exec_prefix="$acl_save_exec_prefix"
8625   prefix="$acl_save_prefix"
8626
8627       if test "X$x" = "X$element"; then
8628         haveit=yes
8629         break
8630       fi
8631     done
8632     if test -z "$haveit"; then
8633       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8634     fi
8635   done
8636
8637
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8639 $as_echo_n "checking for iconv... " >&6; }
8640 if ${am_cv_func_iconv+:} false; then :
8641   $as_echo_n "(cached) " >&6
8642 else
8643
8644     am_cv_func_iconv="no, consider installing GNU libiconv"
8645     am_cv_lib_iconv=no
8646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h.  */
8648 #include <stdlib.h>
8649 #include <iconv.h>
8650 int
8651 main ()
8652 {
8653 iconv_t cd = iconv_open("","");
8654        iconv(cd,NULL,NULL,NULL,NULL);
8655        iconv_close(cd);
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_link "$LINENO"; then :
8661   am_cv_func_iconv=yes
8662 fi
8663 rm -f core conftest.err conftest.$ac_objext \
8664     conftest$ac_exeext conftest.$ac_ext
8665     if test "$am_cv_func_iconv" != yes; then
8666       am_save_LIBS="$LIBS"
8667       LIBS="$LIBS $LIBICONV"
8668       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h.  */
8670 #include <stdlib.h>
8671 #include <iconv.h>
8672 int
8673 main ()
8674 {
8675 iconv_t cd = iconv_open("","");
8676          iconv(cd,NULL,NULL,NULL,NULL);
8677          iconv_close(cd);
8678   ;
8679   return 0;
8680 }
8681 _ACEOF
8682 if ac_fn_c_try_link "$LINENO"; then :
8683   am_cv_lib_iconv=yes
8684         am_cv_func_iconv=yes
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext \
8687     conftest$ac_exeext conftest.$ac_ext
8688       LIBS="$am_save_LIBS"
8689     fi
8690
8691 fi
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8693 $as_echo "$am_cv_func_iconv" >&6; }
8694   if test "$am_cv_func_iconv" = yes; then
8695
8696 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8697
8698   fi
8699   if test "$am_cv_lib_iconv" = yes; then
8700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8701 $as_echo_n "checking how to link with libiconv... " >&6; }
8702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8703 $as_echo "$LIBICONV" >&6; }
8704   else
8705             CPPFLAGS="$am_save_CPPFLAGS"
8706     LIBICONV=
8707     LTLIBICONV=
8708   fi
8709
8710
8711
8712   if test "$am_cv_func_iconv" = yes; then
8713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8714 $as_echo_n "checking for iconv declaration... " >&6; }
8715     if ${am_cv_proto_iconv+:} false; then :
8716   $as_echo_n "(cached) " >&6
8717 else
8718
8719       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h.  */
8721
8722 #include <stdlib.h>
8723 #include <iconv.h>
8724 extern
8725 #ifdef __cplusplus
8726 "C"
8727 #endif
8728 #if defined(__STDC__) || defined(__cplusplus)
8729 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8730 #else
8731 size_t iconv();
8732 #endif
8733
8734 int
8735 main ()
8736 {
8737
8738   ;
8739   return 0;
8740 }
8741 _ACEOF
8742 if ac_fn_c_try_compile "$LINENO"; then :
8743   am_cv_proto_iconv_arg1=""
8744 else
8745   am_cv_proto_iconv_arg1="const"
8746 fi
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748       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);"
8749 fi
8750
8751     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8753          }$am_cv_proto_iconv" >&5
8754 $as_echo "${ac_t:-
8755          }$am_cv_proto_iconv" >&6; }
8756
8757 cat >>confdefs.h <<_ACEOF
8758 #define ICONV_CONST $am_cv_proto_iconv_arg1
8759 _ACEOF
8760
8761   fi
8762
8763
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8765 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8766 if ${am_cv_langinfo_codeset+:} false; then :
8767   $as_echo_n "(cached) " >&6
8768 else
8769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h.  */
8771 #include <langinfo.h>
8772 int
8773 main ()
8774 {
8775 char* cs = nl_langinfo(CODESET);
8776   ;
8777   return 0;
8778 }
8779 _ACEOF
8780 if ac_fn_c_try_link "$LINENO"; then :
8781   am_cv_langinfo_codeset=yes
8782 else
8783   am_cv_langinfo_codeset=no
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext \
8786     conftest$ac_exeext conftest.$ac_ext
8787
8788 fi
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8790 $as_echo "$am_cv_langinfo_codeset" >&6; }
8791   if test $am_cv_langinfo_codeset = yes; then
8792
8793 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8794
8795   fi
8796
8797   if test $ac_cv_header_locale_h = yes; then
8798
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8800 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8801 if ${am_cv_val_LC_MESSAGES+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806 #include <locale.h>
8807 int
8808 main ()
8809 {
8810 return LC_MESSAGES
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816   am_cv_val_LC_MESSAGES=yes
8817 else
8818   am_cv_val_LC_MESSAGES=no
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext \
8821     conftest$ac_exeext conftest.$ac_ext
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8824 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8825   if test $am_cv_val_LC_MESSAGES = yes; then
8826
8827 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8828
8829   fi
8830
8831   fi
8832
8833                       for ac_prog in bison
8834 do
8835   # Extract the first word of "$ac_prog", so it can be a program name with args.
8836 set dummy $ac_prog; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if ${ac_cv_prog_INTLBISON+:} false; then :
8840   $as_echo_n "(cached) " >&6
8841 else
8842   if test -n "$INTLBISON"; then
8843   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8847 do
8848   IFS=$as_save_IFS
8849   test -z "$as_dir" && as_dir=.
8850     for ac_exec_ext in '' $ac_executable_extensions; do
8851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852     ac_cv_prog_INTLBISON="$ac_prog"
8853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854     break 2
8855   fi
8856 done
8857   done
8858 IFS=$as_save_IFS
8859
8860 fi
8861 fi
8862 INTLBISON=$ac_cv_prog_INTLBISON
8863 if test -n "$INTLBISON"; then
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8865 $as_echo "$INTLBISON" >&6; }
8866 else
8867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8869 fi
8870
8871
8872   test -n "$INTLBISON" && break
8873 done
8874
8875   if test -z "$INTLBISON"; then
8876     ac_verc_fail=yes
8877   else
8878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8879 $as_echo_n "checking version of bison... " >&6; }
8880     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8881     case $ac_prog_version in
8882       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8883       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8884          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8885       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8886     esac
8887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8888 $as_echo "$ac_prog_version" >&6; }
8889   fi
8890   if test $ac_verc_fail = yes; then
8891     INTLBISON=:
8892   fi
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8910 $as_echo_n "checking whether NLS is requested... " >&6; }
8911     # Check whether --enable-nls was given.
8912 if test "${enable_nls+set}" = set; then :
8913   enableval=$enable_nls; USE_NLS=$enableval
8914 else
8915   USE_NLS=yes
8916 fi
8917
8918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8919 $as_echo "$USE_NLS" >&6; }
8920
8921
8922
8923
8924     BUILD_INCLUDED_LIBINTL=no
8925     USE_INCLUDED_LIBINTL=no
8926
8927   LIBINTL=
8928   LTLIBINTL=
8929   POSUB=
8930
8931     if test "$USE_NLS" = "yes"; then
8932     gt_use_preinstalled_gnugettext=no
8933
8934       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8935 $as_echo_n "checking whether included gettext is requested... " >&6; }
8936
8937 # Check whether --with-included-gettext was given.
8938 if test "${with_included_gettext+set}" = set; then :
8939   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8940 else
8941   nls_cv_force_use_gnu_gettext=no
8942 fi
8943
8944       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8945 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8946
8947       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8948       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8949
8950
8951
8952
8953
8954
8955         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8956 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8957 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8958   $as_echo_n "(cached) " >&6
8959 else
8960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h.  */
8962 #include <libintl.h>
8963 extern int _nl_msg_cat_cntr;
8964 extern int *_nl_domain_bindings;
8965 int
8966 main ()
8967 {
8968 bindtextdomain ("", "");
8969 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"; then :
8975   gt_cv_func_gnugettext1_libc=yes
8976 else
8977   gt_cv_func_gnugettext1_libc=no
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext \
8980     conftest$ac_exeext conftest.$ac_ext
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8983 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8984
8985         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8986
8987
8988
8989     use_additional=yes
8990
8991   acl_save_prefix="$prefix"
8992   prefix="$acl_final_prefix"
8993   acl_save_exec_prefix="$exec_prefix"
8994   exec_prefix="$acl_final_exec_prefix"
8995
8996     eval additional_includedir=\"$includedir\"
8997     eval additional_libdir=\"$libdir\"
8998
8999   exec_prefix="$acl_save_exec_prefix"
9000   prefix="$acl_save_prefix"
9001
9002
9003 # Check whether --with-libintl-prefix was given.
9004 if test "${with_libintl_prefix+set}" = set; then :
9005   withval=$with_libintl_prefix;
9006     if test "X$withval" = "Xno"; then
9007       use_additional=no
9008     else
9009       if test "X$withval" = "X"; then
9010
9011   acl_save_prefix="$prefix"
9012   prefix="$acl_final_prefix"
9013   acl_save_exec_prefix="$exec_prefix"
9014   exec_prefix="$acl_final_exec_prefix"
9015
9016           eval additional_includedir=\"$includedir\"
9017           eval additional_libdir=\"$libdir\"
9018
9019   exec_prefix="$acl_save_exec_prefix"
9020   prefix="$acl_save_prefix"
9021
9022       else
9023         additional_includedir="$withval/include"
9024         additional_libdir="$withval/lib"
9025       fi
9026     fi
9027
9028 fi
9029
9030       LIBINTL=
9031   LTLIBINTL=
9032   INCINTL=
9033   rpathdirs=
9034   ltrpathdirs=
9035   names_already_handled=
9036   names_next_round='intl '
9037   while test -n "$names_next_round"; do
9038     names_this_round="$names_next_round"
9039     names_next_round=
9040     for name in $names_this_round; do
9041       already_handled=
9042       for n in $names_already_handled; do
9043         if test "$n" = "$name"; then
9044           already_handled=yes
9045           break
9046         fi
9047       done
9048       if test -z "$already_handled"; then
9049         names_already_handled="$names_already_handled $name"
9050                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9051         eval value=\"\$HAVE_LIB$uppername\"
9052         if test -n "$value"; then
9053           if test "$value" = yes; then
9054             eval value=\"\$LIB$uppername\"
9055             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9056             eval value=\"\$LTLIB$uppername\"
9057             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9058           else
9059                                     :
9060           fi
9061         else
9062                               found_dir=
9063           found_la=
9064           found_so=
9065           found_a=
9066           if test $use_additional = yes; then
9067             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9068               found_dir="$additional_libdir"
9069               found_so="$additional_libdir/lib$name.$shlibext"
9070               if test -f "$additional_libdir/lib$name.la"; then
9071                 found_la="$additional_libdir/lib$name.la"
9072               fi
9073             else
9074               if test -f "$additional_libdir/lib$name.$libext"; then
9075                 found_dir="$additional_libdir"
9076                 found_a="$additional_libdir/lib$name.$libext"
9077                 if test -f "$additional_libdir/lib$name.la"; then
9078                   found_la="$additional_libdir/lib$name.la"
9079                 fi
9080               fi
9081             fi
9082           fi
9083           if test "X$found_dir" = "X"; then
9084             for x in $LDFLAGS $LTLIBINTL; do
9085
9086   acl_save_prefix="$prefix"
9087   prefix="$acl_final_prefix"
9088   acl_save_exec_prefix="$exec_prefix"
9089   exec_prefix="$acl_final_exec_prefix"
9090   eval x=\"$x\"
9091   exec_prefix="$acl_save_exec_prefix"
9092   prefix="$acl_save_prefix"
9093
9094               case "$x" in
9095                 -L*)
9096                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9097                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9098                     found_dir="$dir"
9099                     found_so="$dir/lib$name.$shlibext"
9100                     if test -f "$dir/lib$name.la"; then
9101                       found_la="$dir/lib$name.la"
9102                     fi
9103                   else
9104                     if test -f "$dir/lib$name.$libext"; then
9105                       found_dir="$dir"
9106                       found_a="$dir/lib$name.$libext"
9107                       if test -f "$dir/lib$name.la"; then
9108                         found_la="$dir/lib$name.la"
9109                       fi
9110                     fi
9111                   fi
9112                   ;;
9113               esac
9114               if test "X$found_dir" != "X"; then
9115                 break
9116               fi
9117             done
9118           fi
9119           if test "X$found_dir" != "X"; then
9120                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9121             if test "X$found_so" != "X"; then
9122                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9123                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9124               else
9125                                                                                 haveit=
9126                 for x in $ltrpathdirs; do
9127                   if test "X$x" = "X$found_dir"; then
9128                     haveit=yes
9129                     break
9130                   fi
9131                 done
9132                 if test -z "$haveit"; then
9133                   ltrpathdirs="$ltrpathdirs $found_dir"
9134                 fi
9135                                 if test "$hardcode_direct" = yes; then
9136                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9137                 else
9138                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9139                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9140                                                             haveit=
9141                     for x in $rpathdirs; do
9142                       if test "X$x" = "X$found_dir"; then
9143                         haveit=yes
9144                         break
9145                       fi
9146                     done
9147                     if test -z "$haveit"; then
9148                       rpathdirs="$rpathdirs $found_dir"
9149                     fi
9150                   else
9151                                                                                 haveit=
9152                     for x in $LDFLAGS $LIBINTL; do
9153
9154   acl_save_prefix="$prefix"
9155   prefix="$acl_final_prefix"
9156   acl_save_exec_prefix="$exec_prefix"
9157   exec_prefix="$acl_final_exec_prefix"
9158   eval x=\"$x\"
9159   exec_prefix="$acl_save_exec_prefix"
9160   prefix="$acl_save_prefix"
9161
9162                       if test "X$x" = "X-L$found_dir"; then
9163                         haveit=yes
9164                         break
9165                       fi
9166                     done
9167                     if test -z "$haveit"; then
9168                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9169                     fi
9170                     if test "$hardcode_minus_L" != no; then
9171                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9172                     else
9173                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9174                     fi
9175                   fi
9176                 fi
9177               fi
9178             else
9179               if test "X$found_a" != "X"; then
9180                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9181               else
9182                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9183               fi
9184             fi
9185                         additional_includedir=
9186             case "$found_dir" in
9187               */lib | */lib/)
9188                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9189                 additional_includedir="$basedir/include"
9190                 ;;
9191             esac
9192             if test "X$additional_includedir" != "X"; then
9193                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9194                 haveit=
9195                 if test "X$additional_includedir" = "X/usr/local/include"; then
9196                   if test -n "$GCC"; then
9197                     case $host_os in
9198                       linux*) haveit=yes;;
9199                     esac
9200                   fi
9201                 fi
9202                 if test -z "$haveit"; then
9203                   for x in $CPPFLAGS $INCINTL; 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-I$additional_includedir"; then
9214                       haveit=yes
9215                       break
9216                     fi
9217                   done
9218                   if test -z "$haveit"; then
9219                     if test -d "$additional_includedir"; then
9220                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9221                     fi
9222                   fi
9223                 fi
9224               fi
9225             fi
9226                         if test -n "$found_la"; then
9227                                                         save_libdir="$libdir"
9228               case "$found_la" in
9229                 */* | *\\*) . "$found_la" ;;
9230                 *) . "./$found_la" ;;
9231               esac
9232               libdir="$save_libdir"
9233                             for dep in $dependency_libs; do
9234                 case "$dep" in
9235                   -L*)
9236                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9237                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9238                       haveit=
9239                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9240                         if test -n "$GCC"; then
9241                           case $host_os in
9242                             linux*) haveit=yes;;
9243                           esac
9244                         fi
9245                       fi
9246                       if test -z "$haveit"; then
9247                         haveit=
9248                         for x in $LDFLAGS $LIBINTL; do
9249
9250   acl_save_prefix="$prefix"
9251   prefix="$acl_final_prefix"
9252   acl_save_exec_prefix="$exec_prefix"
9253   exec_prefix="$acl_final_exec_prefix"
9254   eval x=\"$x\"
9255   exec_prefix="$acl_save_exec_prefix"
9256   prefix="$acl_save_prefix"
9257
9258                           if test "X$x" = "X-L$additional_libdir"; then
9259                             haveit=yes
9260                             break
9261                           fi
9262                         done
9263                         if test -z "$haveit"; then
9264                           if test -d "$additional_libdir"; then
9265                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9266                           fi
9267                         fi
9268                         haveit=
9269                         for x in $LDFLAGS $LTLIBINTL; do
9270
9271   acl_save_prefix="$prefix"
9272   prefix="$acl_final_prefix"
9273   acl_save_exec_prefix="$exec_prefix"
9274   exec_prefix="$acl_final_exec_prefix"
9275   eval x=\"$x\"
9276   exec_prefix="$acl_save_exec_prefix"
9277   prefix="$acl_save_prefix"
9278
9279                           if test "X$x" = "X-L$additional_libdir"; then
9280                             haveit=yes
9281                             break
9282                           fi
9283                         done
9284                         if test -z "$haveit"; then
9285                           if test -d "$additional_libdir"; then
9286                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9287                           fi
9288                         fi
9289                       fi
9290                     fi
9291                     ;;
9292                   -R*)
9293                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9294                     if test "$enable_rpath" != no; then
9295                                                                   haveit=
9296                       for x in $rpathdirs; do
9297                         if test "X$x" = "X$dir"; then
9298                           haveit=yes
9299                           break
9300                         fi
9301                       done
9302                       if test -z "$haveit"; then
9303                         rpathdirs="$rpathdirs $dir"
9304                       fi
9305                                                                   haveit=
9306                       for x in $ltrpathdirs; do
9307                         if test "X$x" = "X$dir"; then
9308                           haveit=yes
9309                           break
9310                         fi
9311                       done
9312                       if test -z "$haveit"; then
9313                         ltrpathdirs="$ltrpathdirs $dir"
9314                       fi
9315                     fi
9316                     ;;
9317                   -l*)
9318                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9319                     ;;
9320                   *.la)
9321                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9322                     ;;
9323                   *)
9324                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9325                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9326                     ;;
9327                 esac
9328               done
9329             fi
9330           else
9331                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9332             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9333           fi
9334         fi
9335       fi
9336     done
9337   done
9338   if test "X$rpathdirs" != "X"; then
9339     if test -n "$hardcode_libdir_separator"; then
9340                         alldirs=
9341       for found_dir in $rpathdirs; do
9342         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9343       done
9344             acl_save_libdir="$libdir"
9345       libdir="$alldirs"
9346       eval flag=\"$hardcode_libdir_flag_spec\"
9347       libdir="$acl_save_libdir"
9348       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9349     else
9350             for found_dir in $rpathdirs; do
9351         acl_save_libdir="$libdir"
9352         libdir="$found_dir"
9353         eval flag=\"$hardcode_libdir_flag_spec\"
9354         libdir="$acl_save_libdir"
9355         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9356       done
9357     fi
9358   fi
9359   if test "X$ltrpathdirs" != "X"; then
9360             for found_dir in $ltrpathdirs; do
9361       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9362     done
9363   fi
9364
9365           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9366 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9367 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   gt_save_CPPFLAGS="$CPPFLAGS"
9371             CPPFLAGS="$CPPFLAGS $INCINTL"
9372             gt_save_LIBS="$LIBS"
9373             LIBS="$LIBS $LIBINTL"
9374                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h.  */
9376 #include <libintl.h>
9377 extern int _nl_msg_cat_cntr;
9378 extern
9379 #ifdef __cplusplus
9380 "C"
9381 #endif
9382 const char *_nl_expand_alias ();
9383 int
9384 main ()
9385 {
9386 bindtextdomain ("", "");
9387 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 if ac_fn_c_try_link "$LINENO"; then :
9393   gt_cv_func_gnugettext1_libintl=yes
9394 else
9395   gt_cv_func_gnugettext1_libintl=no
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext \
9398     conftest$ac_exeext conftest.$ac_ext
9399                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9400               LIBS="$LIBS $LIBICONV"
9401               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h.  */
9403 #include <libintl.h>
9404 extern int _nl_msg_cat_cntr;
9405 extern
9406 #ifdef __cplusplus
9407 "C"
9408 #endif
9409 const char *_nl_expand_alias ();
9410 int
9411 main ()
9412 {
9413 bindtextdomain ("", "");
9414 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9415   ;
9416   return 0;
9417 }
9418 _ACEOF
9419 if ac_fn_c_try_link "$LINENO"; then :
9420   LIBINTL="$LIBINTL $LIBICONV"
9421                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9422                 gt_cv_func_gnugettext1_libintl=yes
9423
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext \
9426     conftest$ac_exeext conftest.$ac_ext
9427             fi
9428             CPPFLAGS="$gt_save_CPPFLAGS"
9429             LIBS="$gt_save_LIBS"
9430 fi
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9432 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9433         fi
9434
9435                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9436            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9437                 && test "$PACKAGE" != gettext-runtime \
9438                 && test "$PACKAGE" != gettext-tools; }; then
9439           gt_use_preinstalled_gnugettext=yes
9440         else
9441                     LIBINTL=
9442           LTLIBINTL=
9443           INCINTL=
9444         fi
9445
9446
9447         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9448                               nls_cv_use_gnu_gettext=yes
9449         fi
9450       fi
9451
9452       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9453                 BUILD_INCLUDED_LIBINTL=yes
9454         USE_INCLUDED_LIBINTL=yes
9455         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9456         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9457         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9458       fi
9459
9460       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9461          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9462                 CATOBJEXT=.gmo
9463       fi
9464
9465
9466     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9467        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9468
9469 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9470
9471     else
9472       USE_NLS=no
9473     fi
9474   fi
9475
9476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9477 $as_echo_n "checking whether to use NLS... " >&6; }
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9479 $as_echo "$USE_NLS" >&6; }
9480   if test "$USE_NLS" = "yes"; then
9481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9482 $as_echo_n "checking where the gettext function comes from... " >&6; }
9483     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9484       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9485         gt_source="external libintl"
9486       else
9487         gt_source="libc"
9488       fi
9489     else
9490       gt_source="included intl directory"
9491     fi
9492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9493 $as_echo "$gt_source" >&6; }
9494   fi
9495
9496   if test "$USE_NLS" = "yes"; then
9497
9498     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9499       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9501 $as_echo_n "checking how to link with libintl... " >&6; }
9502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9503 $as_echo "$LIBINTL" >&6; }
9504
9505   for element in $INCINTL; do
9506     haveit=
9507     for x in $CPPFLAGS; do
9508
9509   acl_save_prefix="$prefix"
9510   prefix="$acl_final_prefix"
9511   acl_save_exec_prefix="$exec_prefix"
9512   exec_prefix="$acl_final_exec_prefix"
9513   eval x=\"$x\"
9514   exec_prefix="$acl_save_exec_prefix"
9515   prefix="$acl_save_prefix"
9516
9517       if test "X$x" = "X$element"; then
9518         haveit=yes
9519         break
9520       fi
9521     done
9522     if test -z "$haveit"; then
9523       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9524     fi
9525   done
9526
9527       fi
9528
9529
9530 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9531
9532
9533 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9534
9535     fi
9536
9537         POSUB=po
9538   fi
9539
9540
9541             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9542       BUILD_INCLUDED_LIBINTL=yes
9543     fi
9544
9545
9546
9547
9548
9549         nls_cv_header_intl=
9550     nls_cv_header_libgt=
9551
9552         DATADIRNAME=share
9553
9554
9555         INSTOBJEXT=.mo
9556
9557
9558         GENCAT=gencat
9559
9560
9561         if test "$USE_INCLUDED_LIBINTL" = yes; then
9562       INTLOBJS="\$(GETTOBJS)"
9563     fi
9564
9565
9566         INTL_LIBTOOL_SUFFIX_PREFIX=
9567
9568
9569
9570     INTLLIBS="$LIBINTL"
9571
9572
9573
9574
9575
9576
9577
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9579 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9580 set x ${MAKE-make}
9581 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9582 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9583   $as_echo_n "(cached) " >&6
9584 else
9585   cat >conftest.make <<\_ACEOF
9586 SHELL = /bin/sh
9587 all:
9588         @echo '@@@%%%=$(MAKE)=@@@%%%'
9589 _ACEOF
9590 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9591 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9592   *@@@%%%=?*=@@@%%%*)
9593     eval ac_cv_prog_make_${ac_make}_set=yes;;
9594   *)
9595     eval ac_cv_prog_make_${ac_make}_set=no;;
9596 esac
9597 rm -f conftest.make
9598 fi
9599 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9601 $as_echo "yes" >&6; }
9602   SET_MAKE=
9603 else
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9606   SET_MAKE="MAKE=${MAKE-make}"
9607 fi
9608
9609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9610 $as_echo_n "checking for GNU make... " >&6; }
9611 if ${_cv_gnu_make_command+:} false; then :
9612   $as_echo_n "(cached) " >&6
9613 else
9614   _cv_gnu_make_command='' ;
9615                 for a in "$MAKE" make gmake gnumake ; do
9616                         if test -z "$a" ; then continue ; fi ;
9617                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9618                                 _cv_gnu_make_command=$a ;
9619                                 break;
9620                         fi
9621                 done ;
9622
9623 fi
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9625 $as_echo "$_cv_gnu_make_command" >&6; } ;
9626         if test  "x$_cv_gnu_make_command" != "x"  ; then
9627                 ifGNUmake='' ;
9628                 ifNotGNUmake='#' ;
9629         else
9630                 ifGNUmake='#' ;
9631                 ifNotGNUmake='' ;
9632                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9633 $as_echo "\"Not found\"" >&6; };
9634         fi
9635
9636
9637
9638 # Extract the first word of "ln", so it can be a program name with args.
9639 set dummy ln; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if ${ac_cv_path_LN+:} false; then :
9643   $as_echo_n "(cached) " >&6
9644 else
9645   case $LN in
9646   [\\/]* | ?:[\\/]*)
9647   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9648   ;;
9649   *)
9650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in $PATH
9652 do
9653   IFS=$as_save_IFS
9654   test -z "$as_dir" && as_dir=.
9655     for ac_exec_ext in '' $ac_executable_extensions; do
9656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9657     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659     break 2
9660   fi
9661 done
9662   done
9663 IFS=$as_save_IFS
9664
9665   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9666   ;;
9667 esac
9668 fi
9669 LN=$ac_cv_path_LN
9670 if test -n "$LN"; then
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9672 $as_echo "$LN" >&6; }
9673 else
9674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9676 fi
9677
9678
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9680 $as_echo_n "checking whether ln -s works... " >&6; }
9681 LN_S=$as_ln_s
9682 if test "$LN_S" = "ln -s"; then
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9684 $as_echo "yes" >&6; }
9685 else
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9687 $as_echo "no, using $LN_S" >&6; }
9688 fi
9689
9690 # Extract the first word of "mv", so it can be a program name with args.
9691 set dummy mv; ac_word=$2
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693 $as_echo_n "checking for $ac_word... " >&6; }
9694 if ${ac_cv_path_MV+:} false; then :
9695   $as_echo_n "(cached) " >&6
9696 else
9697   case $MV in
9698   [\\/]* | ?:[\\/]*)
9699   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9700   ;;
9701   *)
9702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 for as_dir in $PATH
9704 do
9705   IFS=$as_save_IFS
9706   test -z "$as_dir" && as_dir=.
9707     for ac_exec_ext in '' $ac_executable_extensions; do
9708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9709     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9711     break 2
9712   fi
9713 done
9714   done
9715 IFS=$as_save_IFS
9716
9717   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9718   ;;
9719 esac
9720 fi
9721 MV=$ac_cv_path_MV
9722 if test -n "$MV"; then
9723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9724 $as_echo "$MV" >&6; }
9725 else
9726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 $as_echo "no" >&6; }
9728 fi
9729
9730
9731 # Extract the first word of "cp", so it can be a program name with args.
9732 set dummy cp; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if ${ac_cv_path_CP+:} false; then :
9736   $as_echo_n "(cached) " >&6
9737 else
9738   case $CP in
9739   [\\/]* | ?:[\\/]*)
9740   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9741   ;;
9742   *)
9743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744 for as_dir in $PATH
9745 do
9746   IFS=$as_save_IFS
9747   test -z "$as_dir" && as_dir=.
9748     for ac_exec_ext in '' $ac_executable_extensions; do
9749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9750     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752     break 2
9753   fi
9754 done
9755   done
9756 IFS=$as_save_IFS
9757
9758   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9759   ;;
9760 esac
9761 fi
9762 CP=$ac_cv_path_CP
9763 if test -n "$CP"; then
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9765 $as_echo "$CP" >&6; }
9766 else
9767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9769 fi
9770
9771
9772 # Extract the first word of "rm", so it can be a program name with args.
9773 set dummy rm; ac_word=$2
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775 $as_echo_n "checking for $ac_word... " >&6; }
9776 if ${ac_cv_path_RM+:} false; then :
9777   $as_echo_n "(cached) " >&6
9778 else
9779   case $RM in
9780   [\\/]* | ?:[\\/]*)
9781   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9782   ;;
9783   *)
9784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9786 do
9787   IFS=$as_save_IFS
9788   test -z "$as_dir" && as_dir=.
9789     for ac_exec_ext in '' $ac_executable_extensions; do
9790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9791     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793     break 2
9794   fi
9795 done
9796   done
9797 IFS=$as_save_IFS
9798
9799   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9800   ;;
9801 esac
9802 fi
9803 RM=$ac_cv_path_RM
9804 if test -n "$RM"; then
9805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9806 $as_echo "$RM" >&6; }
9807 else
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 $as_echo "no" >&6; }
9810 fi
9811
9812
9813 # Extract the first word of "chmod", so it can be a program name with args.
9814 set dummy chmod; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if ${ac_cv_path_CHMOD+:} false; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820   case $CHMOD in
9821   [\\/]* | ?:[\\/]*)
9822   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9823   ;;
9824   *)
9825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9827 do
9828   IFS=$as_save_IFS
9829   test -z "$as_dir" && as_dir=.
9830     for ac_exec_ext in '' $ac_executable_extensions; do
9831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9832     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834     break 2
9835   fi
9836 done
9837   done
9838 IFS=$as_save_IFS
9839
9840   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9841   ;;
9842 esac
9843 fi
9844 CHMOD=$ac_cv_path_CHMOD
9845 if test -n "$CHMOD"; then
9846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9847 $as_echo "$CHMOD" >&6; }
9848 else
9849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850 $as_echo "no" >&6; }
9851 fi
9852
9853
9854 for ac_prog in gawk mawk nawk awk
9855 do
9856   # Extract the first word of "$ac_prog", so it can be a program name with args.
9857 set dummy $ac_prog; ac_word=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if ${ac_cv_prog_AWK+:} false; then :
9861   $as_echo_n "(cached) " >&6
9862 else
9863   if test -n "$AWK"; then
9864   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9865 else
9866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867 for as_dir in $PATH
9868 do
9869   IFS=$as_save_IFS
9870   test -z "$as_dir" && as_dir=.
9871     for ac_exec_ext in '' $ac_executable_extensions; do
9872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9873     ac_cv_prog_AWK="$ac_prog"
9874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875     break 2
9876   fi
9877 done
9878   done
9879 IFS=$as_save_IFS
9880
9881 fi
9882 fi
9883 AWK=$ac_cv_prog_AWK
9884 if test -n "$AWK"; then
9885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9886 $as_echo "$AWK" >&6; }
9887 else
9888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889 $as_echo "no" >&6; }
9890 fi
9891
9892
9893   test -n "$AWK" && break
9894 done
9895
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9897 $as_echo_n "checking for egrep... " >&6; }
9898 if ${ac_cv_path_EGREP+:} false; then :
9899   $as_echo_n "(cached) " >&6
9900 else
9901   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9902    then ac_cv_path_EGREP="$GREP -E"
9903    else
9904      if test -z "$EGREP"; then
9905   ac_path_EGREP_found=false
9906   # Loop through the user's path and test for each of PROGNAME-LIST
9907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9909 do
9910   IFS=$as_save_IFS
9911   test -z "$as_dir" && as_dir=.
9912     for ac_prog in egrep; do
9913     for ac_exec_ext in '' $ac_executable_extensions; do
9914       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9915       as_fn_executable_p "$ac_path_EGREP" || continue
9916 # Check for GNU ac_path_EGREP and select it if it is found.
9917   # Check for GNU $ac_path_EGREP
9918 case `"$ac_path_EGREP" --version 2>&1` in
9919 *GNU*)
9920   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9921 *)
9922   ac_count=0
9923   $as_echo_n 0123456789 >"conftest.in"
9924   while :
9925   do
9926     cat "conftest.in" "conftest.in" >"conftest.tmp"
9927     mv "conftest.tmp" "conftest.in"
9928     cp "conftest.in" "conftest.nl"
9929     $as_echo 'EGREP' >> "conftest.nl"
9930     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9931     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9932     as_fn_arith $ac_count + 1 && ac_count=$as_val
9933     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9934       # Best one so far, save it but keep looking for a better one
9935       ac_cv_path_EGREP="$ac_path_EGREP"
9936       ac_path_EGREP_max=$ac_count
9937     fi
9938     # 10*(2^10) chars as input seems more than enough
9939     test $ac_count -gt 10 && break
9940   done
9941   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9942 esac
9943
9944       $ac_path_EGREP_found && break 3
9945     done
9946   done
9947   done
9948 IFS=$as_save_IFS
9949   if test -z "$ac_cv_path_EGREP"; then
9950     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9951   fi
9952 else
9953   ac_cv_path_EGREP=$EGREP
9954 fi
9955
9956    fi
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9959 $as_echo "$ac_cv_path_EGREP" >&6; }
9960  EGREP="$ac_cv_path_EGREP"
9961
9962
9963 # Extract the first word of "sed", so it can be a program name with args.
9964 set dummy sed; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if ${ac_cv_path_SED+:} false; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   case $SED in
9971   [\\/]* | ?:[\\/]*)
9972   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9973   ;;
9974   *)
9975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 for as_dir in $PATH
9977 do
9978   IFS=$as_save_IFS
9979   test -z "$as_dir" && as_dir=.
9980     for ac_exec_ext in '' $ac_executable_extensions; do
9981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9982     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984     break 2
9985   fi
9986 done
9987   done
9988 IFS=$as_save_IFS
9989
9990   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9991   ;;
9992 esac
9993 fi
9994 SED=$ac_cv_path_SED
9995 if test -n "$SED"; then
9996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9997 $as_echo "$SED" >&6; }
9998 else
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10001 fi
10002
10003
10004 # Extract the first word of "perl", so it can be a program name with args.
10005 set dummy perl; ac_word=$2
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10007 $as_echo_n "checking for $ac_word... " >&6; }
10008 if ${ac_cv_path_PERL+:} false; then :
10009   $as_echo_n "(cached) " >&6
10010 else
10011   case $PERL in
10012   [\\/]* | ?:[\\/]*)
10013   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10014   ;;
10015   *)
10016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10018 do
10019   IFS=$as_save_IFS
10020   test -z "$as_dir" && as_dir=.
10021     for ac_exec_ext in '' $ac_executable_extensions; do
10022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10023     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10025     break 2
10026   fi
10027 done
10028   done
10029 IFS=$as_save_IFS
10030
10031   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10032   ;;
10033 esac
10034 fi
10035 PERL=$ac_cv_path_PERL
10036 if test -n "$PERL"; then
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10038 $as_echo "$PERL" >&6; }
10039 else
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10042 fi
10043
10044
10045 # Extract the first word of "ldconfig", so it can be a program name with args.
10046 set dummy ldconfig; ac_word=$2
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048 $as_echo_n "checking for $ac_word... " >&6; }
10049 if ${ac_cv_path_LDCONFIG+:} false; then :
10050   $as_echo_n "(cached) " >&6
10051 else
10052   case $LDCONFIG in
10053   [\\/]* | ?:[\\/]*)
10054   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10055   ;;
10056   *)
10057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10059 do
10060   IFS=$as_save_IFS
10061   test -z "$as_dir" && as_dir=.
10062     for ac_exec_ext in '' $ac_executable_extensions; do
10063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10064     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10066     break 2
10067   fi
10068 done
10069   done
10070 IFS=$as_save_IFS
10071
10072   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10073   ;;
10074 esac
10075 fi
10076 LDCONFIG=$ac_cv_path_LDCONFIG
10077 if test -n "$LDCONFIG"; then
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10079 $as_echo "$LDCONFIG" >&6; }
10080 else
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10083 fi
10084
10085
10086 if test -n "$ac_tool_prefix"; then
10087   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10088 set dummy ${ac_tool_prefix}ar; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if ${ac_cv_prog_AR+:} false; then :
10092   $as_echo_n "(cached) " >&6
10093 else
10094   if test -n "$AR"; then
10095   ac_cv_prog_AR="$AR" # Let the user override the test.
10096 else
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10099 do
10100   IFS=$as_save_IFS
10101   test -z "$as_dir" && as_dir=.
10102     for ac_exec_ext in '' $ac_executable_extensions; do
10103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104     ac_cv_prog_AR="${ac_tool_prefix}ar"
10105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106     break 2
10107   fi
10108 done
10109   done
10110 IFS=$as_save_IFS
10111
10112 fi
10113 fi
10114 AR=$ac_cv_prog_AR
10115 if test -n "$AR"; then
10116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10117 $as_echo "$AR" >&6; }
10118 else
10119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10121 fi
10122
10123
10124 fi
10125 if test -z "$ac_cv_prog_AR"; then
10126   ac_ct_AR=$AR
10127   # Extract the first word of "ar", so it can be a program name with args.
10128 set dummy ar; ac_word=$2
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130 $as_echo_n "checking for $ac_word... " >&6; }
10131 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10132   $as_echo_n "(cached) " >&6
10133 else
10134   if test -n "$ac_ct_AR"; then
10135   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10136 else
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10139 do
10140   IFS=$as_save_IFS
10141   test -z "$as_dir" && as_dir=.
10142     for ac_exec_ext in '' $ac_executable_extensions; do
10143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10144     ac_cv_prog_ac_ct_AR="ar"
10145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146     break 2
10147   fi
10148 done
10149   done
10150 IFS=$as_save_IFS
10151
10152 fi
10153 fi
10154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10155 if test -n "$ac_ct_AR"; then
10156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10157 $as_echo "$ac_ct_AR" >&6; }
10158 else
10159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 $as_echo "no" >&6; }
10161 fi
10162
10163   if test "x$ac_ct_AR" = x; then
10164     AR="ar"
10165   else
10166     case $cross_compiling:$ac_tool_warned in
10167 yes:)
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10170 ac_tool_warned=yes ;;
10171 esac
10172     AR=$ac_ct_AR
10173   fi
10174 else
10175   AR="$ac_cv_prog_AR"
10176 fi
10177
10178 if test -n "$ac_tool_prefix"; then
10179   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10182 $as_echo_n "checking for $ac_word... " >&6; }
10183 if ${ac_cv_prog_RANLIB+:} false; then :
10184   $as_echo_n "(cached) " >&6
10185 else
10186   if test -n "$RANLIB"; then
10187   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10188 else
10189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190 for as_dir in $PATH
10191 do
10192   IFS=$as_save_IFS
10193   test -z "$as_dir" && as_dir=.
10194     for ac_exec_ext in '' $ac_executable_extensions; do
10195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10198     break 2
10199   fi
10200 done
10201   done
10202 IFS=$as_save_IFS
10203
10204 fi
10205 fi
10206 RANLIB=$ac_cv_prog_RANLIB
10207 if test -n "$RANLIB"; then
10208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10209 $as_echo "$RANLIB" >&6; }
10210 else
10211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10213 fi
10214
10215
10216 fi
10217 if test -z "$ac_cv_prog_RANLIB"; then
10218   ac_ct_RANLIB=$RANLIB
10219   # Extract the first word of "ranlib", so it can be a program name with args.
10220 set dummy ranlib; ac_word=$2
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10222 $as_echo_n "checking for $ac_word... " >&6; }
10223 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10224   $as_echo_n "(cached) " >&6
10225 else
10226   if test -n "$ac_ct_RANLIB"; then
10227   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10228 else
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10231 do
10232   IFS=$as_save_IFS
10233   test -z "$as_dir" && as_dir=.
10234     for ac_exec_ext in '' $ac_executable_extensions; do
10235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236     ac_cv_prog_ac_ct_RANLIB="ranlib"
10237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238     break 2
10239   fi
10240 done
10241   done
10242 IFS=$as_save_IFS
10243
10244 fi
10245 fi
10246 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10247 if test -n "$ac_ct_RANLIB"; then
10248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10249 $as_echo "$ac_ct_RANLIB" >&6; }
10250 else
10251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252 $as_echo "no" >&6; }
10253 fi
10254
10255   if test "x$ac_ct_RANLIB" = x; then
10256     RANLIB=":"
10257   else
10258     case $cross_compiling:$ac_tool_warned in
10259 yes:)
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10262 ac_tool_warned=yes ;;
10263 esac
10264     RANLIB=$ac_ct_RANLIB
10265   fi
10266 else
10267   RANLIB="$ac_cv_prog_RANLIB"
10268 fi
10269
10270 if test -n "$ac_tool_prefix"; then
10271   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10272 set dummy ${ac_tool_prefix}strip; ac_word=$2
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10274 $as_echo_n "checking for $ac_word... " >&6; }
10275 if ${ac_cv_prog_STRIP+:} false; then :
10276   $as_echo_n "(cached) " >&6
10277 else
10278   if test -n "$STRIP"; then
10279   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10280 else
10281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282 for as_dir in $PATH
10283 do
10284   IFS=$as_save_IFS
10285   test -z "$as_dir" && as_dir=.
10286     for ac_exec_ext in '' $ac_executable_extensions; do
10287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10288     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10290     break 2
10291   fi
10292 done
10293   done
10294 IFS=$as_save_IFS
10295
10296 fi
10297 fi
10298 STRIP=$ac_cv_prog_STRIP
10299 if test -n "$STRIP"; then
10300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10301 $as_echo "$STRIP" >&6; }
10302 else
10303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; }
10305 fi
10306
10307
10308 fi
10309 if test -z "$ac_cv_prog_STRIP"; then
10310   ac_ct_STRIP=$STRIP
10311   # Extract the first word of "strip", so it can be a program name with args.
10312 set dummy strip; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10316   $as_echo_n "(cached) " >&6
10317 else
10318   if test -n "$ac_ct_STRIP"; then
10319   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10320 else
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10323 do
10324   IFS=$as_save_IFS
10325   test -z "$as_dir" && as_dir=.
10326     for ac_exec_ext in '' $ac_executable_extensions; do
10327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328     ac_cv_prog_ac_ct_STRIP="strip"
10329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330     break 2
10331   fi
10332 done
10333   done
10334 IFS=$as_save_IFS
10335
10336 fi
10337 fi
10338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10339 if test -n "$ac_ct_STRIP"; then
10340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10341 $as_echo "$ac_ct_STRIP" >&6; }
10342 else
10343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10345 fi
10346
10347   if test "x$ac_ct_STRIP" = x; then
10348     STRIP=":"
10349   else
10350     case $cross_compiling:$ac_tool_warned in
10351 yes:)
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10354 ac_tool_warned=yes ;;
10355 esac
10356     STRIP=$ac_ct_STRIP
10357   fi
10358 else
10359   STRIP="$ac_cv_prog_STRIP"
10360 fi
10361
10362 # Extract the first word of "makeinfo", so it can be a program name with args.
10363 set dummy makeinfo; ac_word=$2
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365 $as_echo_n "checking for $ac_word... " >&6; }
10366 if ${ac_cv_prog_MAKEINFO+:} false; then :
10367   $as_echo_n "(cached) " >&6
10368 else
10369   if test -n "$MAKEINFO"; then
10370   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10371 else
10372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in $PATH
10374 do
10375   IFS=$as_save_IFS
10376   test -z "$as_dir" && as_dir=.
10377     for ac_exec_ext in '' $ac_executable_extensions; do
10378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379     ac_cv_prog_MAKEINFO="makeinfo"
10380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10381     break 2
10382   fi
10383 done
10384   done
10385 IFS=$as_save_IFS
10386
10387 fi
10388 fi
10389 MAKEINFO=$ac_cv_prog_MAKEINFO
10390 if test -n "$MAKEINFO"; then
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10392 $as_echo "$MAKEINFO" >&6; }
10393 else
10394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10396 fi
10397
10398
10399 if test "_$MAKEINFO" = "_"; then
10400     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10401 else
10402     case "$MAKEINFO" in
10403       */missing.*)
10404         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10405 *** Makeinfo is missing. Info documentation will not be built." >&5
10406 $as_echo "$as_me: WARNING:
10407 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10408         ;;
10409       *)
10410         ;;
10411     esac
10412 fi
10413
10414
10415 # See if we need a separate native compiler.
10416 if test $cross_compiling = no; then
10417   BUILD_CC="$CC"
10418
10419 else
10420   for ac_prog in gcc cc
10421 do
10422   # Extract the first word of "$ac_prog", so it can be a program name with args.
10423 set dummy $ac_prog; ac_word=$2
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10425 $as_echo_n "checking for $ac_word... " >&6; }
10426 if ${ac_cv_prog_BUILD_CC+:} false; then :
10427   $as_echo_n "(cached) " >&6
10428 else
10429   if test -n "$BUILD_CC"; then
10430   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10431 else
10432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433 for as_dir in $PATH
10434 do
10435   IFS=$as_save_IFS
10436   test -z "$as_dir" && as_dir=.
10437     for ac_exec_ext in '' $ac_executable_extensions; do
10438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10439     ac_cv_prog_BUILD_CC="$ac_prog"
10440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10441     break 2
10442   fi
10443 done
10444   done
10445 IFS=$as_save_IFS
10446
10447 fi
10448 fi
10449 BUILD_CC=$ac_cv_prog_BUILD_CC
10450 if test -n "$BUILD_CC"; then
10451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10452 $as_echo "$BUILD_CC" >&6; }
10453 else
10454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10456 fi
10457
10458
10459   test -n "$BUILD_CC" && break
10460 done
10461
10462 fi
10463 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   linux/loop.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
10464 do :
10465   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10468   cat >>confdefs.h <<_ACEOF
10469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10470 _ACEOF
10471
10472 fi
10473
10474 done
10475
10476 for ac_header in sys/disk.h sys/mount.h
10477 do :
10478   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10480 #if HAVE_SYS_QUEUE_H
10481 #include <sys/queue.h>
10482 #endif
10483
10484 "
10485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10486   cat >>confdefs.h <<_ACEOF
10487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10488 _ACEOF
10489
10490 fi
10491
10492 done
10493
10494 for ac_header in net/if.h
10495 do :
10496   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10497 #if HAVE_SYS_TYPES_H
10498 #include <sys/types.h>
10499 #endif
10500 #if HAVE_SYS_SOCKET
10501 #include <sys/socket.h>
10502 #endif
10503
10504 "
10505 if test "x$ac_cv_header_net_if_h" = xyes; then :
10506   cat >>confdefs.h <<_ACEOF
10507 #define HAVE_NET_IF_H 1
10508 _ACEOF
10509
10510 fi
10511
10512 done
10513
10514 for ac_func in vprintf
10515 do :
10516   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10517 if test "x$ac_cv_func_vprintf" = xyes; then :
10518   cat >>confdefs.h <<_ACEOF
10519 #define HAVE_VPRINTF 1
10520 _ACEOF
10521
10522 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10523 if test "x$ac_cv_func__doprnt" = xyes; then :
10524
10525 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10526
10527 fi
10528
10529 fi
10530 done
10531
10532
10533 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10534 "
10535 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10536
10537 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10538
10539 fi
10540
10541 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10542 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10543
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_STRUCT_STAT_ST_ATIM 1
10546 _ACEOF
10547
10548
10549 fi
10550
10551 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10552 "
10553 if test "x$ac_cv_type_ssize_t" = xyes; then :
10554
10555 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10556
10557 fi
10558
10559 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10560 "
10561 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10562
10563 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10564
10565 fi
10566
10567 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10568                  #define _LARGEFILE64_SOURCE
10569                  #include <unistd.h>
10570 "
10571 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10572
10573 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10574
10575 fi
10576
10577 # The cast to long int works around a bug in the HP C Compiler
10578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10580 # This bug is HP SR number 8606223364.
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10582 $as_echo_n "checking size of short... " >&6; }
10583 if ${ac_cv_sizeof_short+:} false; then :
10584   $as_echo_n "(cached) " >&6
10585 else
10586   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10587
10588 else
10589   if test "$ac_cv_type_short" = yes; then
10590      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10592 as_fn_error 77 "cannot compute sizeof (short)
10593 See \`config.log' for more details" "$LINENO" 5; }
10594    else
10595      ac_cv_sizeof_short=0
10596    fi
10597 fi
10598
10599 fi
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10601 $as_echo "$ac_cv_sizeof_short" >&6; }
10602
10603
10604
10605 cat >>confdefs.h <<_ACEOF
10606 #define SIZEOF_SHORT $ac_cv_sizeof_short
10607 _ACEOF
10608
10609
10610 # The cast to long int works around a bug in the HP C Compiler
10611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10613 # This bug is HP SR number 8606223364.
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10615 $as_echo_n "checking size of int... " >&6; }
10616 if ${ac_cv_sizeof_int+:} false; then :
10617   $as_echo_n "(cached) " >&6
10618 else
10619   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10620
10621 else
10622   if test "$ac_cv_type_int" = yes; then
10623      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10625 as_fn_error 77 "cannot compute sizeof (int)
10626 See \`config.log' for more details" "$LINENO" 5; }
10627    else
10628      ac_cv_sizeof_int=0
10629    fi
10630 fi
10631
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10634 $as_echo "$ac_cv_sizeof_int" >&6; }
10635
10636
10637
10638 cat >>confdefs.h <<_ACEOF
10639 #define SIZEOF_INT $ac_cv_sizeof_int
10640 _ACEOF
10641
10642
10643 # The cast to long int works around a bug in the HP C Compiler
10644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10646 # This bug is HP SR number 8606223364.
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10648 $as_echo_n "checking size of long... " >&6; }
10649 if ${ac_cv_sizeof_long+:} false; then :
10650   $as_echo_n "(cached) " >&6
10651 else
10652   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10653
10654 else
10655   if test "$ac_cv_type_long" = yes; then
10656      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10658 as_fn_error 77 "cannot compute sizeof (long)
10659 See \`config.log' for more details" "$LINENO" 5; }
10660    else
10661      ac_cv_sizeof_long=0
10662    fi
10663 fi
10664
10665 fi
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10667 $as_echo "$ac_cv_sizeof_long" >&6; }
10668
10669
10670
10671 cat >>confdefs.h <<_ACEOF
10672 #define SIZEOF_LONG $ac_cv_sizeof_long
10673 _ACEOF
10674
10675
10676 # The cast to long int works around a bug in the HP C Compiler
10677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10679 # This bug is HP SR number 8606223364.
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10681 $as_echo_n "checking size of long long... " >&6; }
10682 if ${ac_cv_sizeof_long_long+:} false; then :
10683   $as_echo_n "(cached) " >&6
10684 else
10685   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10686
10687 else
10688   if test "$ac_cv_type_long_long" = yes; then
10689      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10691 as_fn_error 77 "cannot compute sizeof (long long)
10692 See \`config.log' for more details" "$LINENO" 5; }
10693    else
10694      ac_cv_sizeof_long_long=0
10695    fi
10696 fi
10697
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10700 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10701
10702
10703
10704 cat >>confdefs.h <<_ACEOF
10705 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10706 _ACEOF
10707
10708
10709 # The cast to long int works around a bug in the HP C Compiler
10710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10712 # This bug is HP SR number 8606223364.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10714 $as_echo_n "checking size of off_t... " >&6; }
10715 if ${ac_cv_sizeof_off_t+:} false; then :
10716   $as_echo_n "(cached) " >&6
10717 else
10718   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10719
10720 else
10721   if test "$ac_cv_type_off_t" = yes; then
10722      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10724 as_fn_error 77 "cannot compute sizeof (off_t)
10725 See \`config.log' for more details" "$LINENO" 5; }
10726    else
10727      ac_cv_sizeof_off_t=0
10728    fi
10729 fi
10730
10731 fi
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10733 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10734
10735
10736
10737 cat >>confdefs.h <<_ACEOF
10738 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10739 _ACEOF
10740
10741
10742 SIZEOF_SHORT=$ac_cv_sizeof_short
10743 SIZEOF_INT=$ac_cv_sizeof_int
10744 SIZEOF_LONG=$ac_cv_sizeof_long
10745 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10746 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10747
10748
10749
10750
10751
10752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10753 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10754 if ${ac_cv_c_bigendian+:} false; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   ac_cv_c_bigendian=unknown
10758     # See if we're dealing with a universal compiler.
10759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h.  */
10761 #ifndef __APPLE_CC__
10762                not a universal capable compiler
10763              #endif
10764              typedef int dummy;
10765
10766 _ACEOF
10767 if ac_fn_c_try_compile "$LINENO"; then :
10768
10769         # Check for potential -arch flags.  It is not universal unless
10770         # there are at least two -arch flags with different values.
10771         ac_arch=
10772         ac_prev=
10773         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10774          if test -n "$ac_prev"; then
10775            case $ac_word in
10776              i?86 | x86_64 | ppc | ppc64)
10777                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10778                  ac_arch=$ac_word
10779                else
10780                  ac_cv_c_bigendian=universal
10781                  break
10782                fi
10783                ;;
10784            esac
10785            ac_prev=
10786          elif test "x$ac_word" = "x-arch"; then
10787            ac_prev=arch
10788          fi
10789        done
10790 fi
10791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10792     if test $ac_cv_c_bigendian = unknown; then
10793       # See if sys/param.h defines the BYTE_ORDER macro.
10794       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h.  */
10796 #include <sys/types.h>
10797              #include <sys/param.h>
10798
10799 int
10800 main ()
10801 {
10802 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10803                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10804                      && LITTLE_ENDIAN)
10805               bogus endian macros
10806              #endif
10807
10808   ;
10809   return 0;
10810 }
10811 _ACEOF
10812 if ac_fn_c_try_compile "$LINENO"; then :
10813   # It does; now see whether it defined to BIG_ENDIAN or not.
10814          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h.  */
10816 #include <sys/types.h>
10817                 #include <sys/param.h>
10818
10819 int
10820 main ()
10821 {
10822 #if BYTE_ORDER != BIG_ENDIAN
10823                  not big endian
10824                 #endif
10825
10826   ;
10827   return 0;
10828 }
10829 _ACEOF
10830 if ac_fn_c_try_compile "$LINENO"; then :
10831   ac_cv_c_bigendian=yes
10832 else
10833   ac_cv_c_bigendian=no
10834 fi
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838     fi
10839     if test $ac_cv_c_bigendian = unknown; then
10840       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10841       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h.  */
10843 #include <limits.h>
10844
10845 int
10846 main ()
10847 {
10848 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10849               bogus endian macros
10850              #endif
10851
10852   ;
10853   return 0;
10854 }
10855 _ACEOF
10856 if ac_fn_c_try_compile "$LINENO"; then :
10857   # It does; now see whether it defined to _BIG_ENDIAN or not.
10858          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h.  */
10860 #include <limits.h>
10861
10862 int
10863 main ()
10864 {
10865 #ifndef _BIG_ENDIAN
10866                  not big endian
10867                 #endif
10868
10869   ;
10870   return 0;
10871 }
10872 _ACEOF
10873 if ac_fn_c_try_compile "$LINENO"; then :
10874   ac_cv_c_bigendian=yes
10875 else
10876   ac_cv_c_bigendian=no
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881     fi
10882     if test $ac_cv_c_bigendian = unknown; then
10883       # Compile a test program.
10884       if test "$cross_compiling" = yes; then :
10885   # Try to guess by grepping values from an object file.
10886          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h.  */
10888 short int ascii_mm[] =
10889                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10890                 short int ascii_ii[] =
10891                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10892                 int use_ascii (int i) {
10893                   return ascii_mm[i] + ascii_ii[i];
10894                 }
10895                 short int ebcdic_ii[] =
10896                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10897                 short int ebcdic_mm[] =
10898                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10899                 int use_ebcdic (int i) {
10900                   return ebcdic_mm[i] + ebcdic_ii[i];
10901                 }
10902                 extern int foo;
10903
10904 int
10905 main ()
10906 {
10907 return use_ascii (foo) == use_ebcdic (foo);
10908   ;
10909   return 0;
10910 }
10911 _ACEOF
10912 if ac_fn_c_try_compile "$LINENO"; then :
10913   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10914               ac_cv_c_bigendian=yes
10915             fi
10916             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10917               if test "$ac_cv_c_bigendian" = unknown; then
10918                 ac_cv_c_bigendian=no
10919               else
10920                 # finding both strings is unlikely to happen, but who knows?
10921                 ac_cv_c_bigendian=unknown
10922               fi
10923             fi
10924 fi
10925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926 else
10927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h.  */
10929 $ac_includes_default
10930 int
10931 main ()
10932 {
10933
10934              /* Are we little or big endian?  From Harbison&Steele.  */
10935              union
10936              {
10937                long int l;
10938                char c[sizeof (long int)];
10939              } u;
10940              u.l = 1;
10941              return u.c[sizeof (long int) - 1] == 1;
10942
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 if ac_fn_c_try_run "$LINENO"; then :
10948   ac_cv_c_bigendian=no
10949 else
10950   ac_cv_c_bigendian=yes
10951 fi
10952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10953   conftest.$ac_objext conftest.beam conftest.$ac_ext
10954 fi
10955
10956     fi
10957 fi
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10959 $as_echo "$ac_cv_c_bigendian" >&6; }
10960  case $ac_cv_c_bigendian in #(
10961    yes)
10962      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10963 ;; #(
10964    no)
10965       ;; #(
10966    universal)
10967
10968 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10969
10970      ;; #(
10971    *)
10972      as_fn_error $? "unknown endianness
10973  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10974  esac
10975
10976 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10977 ASM_TYPES_HEADER=./asm_types.h
10978
10979 echo "/* These defines are needed for the public ext2fs.h header file */" \
10980      > public_config.h
10981 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10982   uniq tmp_config.$$ >> public_config.h
10983 else
10984   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10985 fi
10986 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10987   uniq tmp_config.$$ >> public_config.h
10988 else
10989   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10990 fi
10991 rm -f tmp_config.$$
10992 PUBLIC_CONFIG_HEADER=./public_config.h
10993
10994 for ac_header in inttypes.h
10995 do :
10996   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10997 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10998   cat >>confdefs.h <<_ACEOF
10999 #define HAVE_INTTYPES_H 1
11000 _ACEOF
11001
11002 fi
11003
11004 done
11005
11006 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11007 if test "x$ac_cv_type_intptr_t" = xyes; then :
11008
11009 cat >>confdefs.h <<_ACEOF
11010 #define HAVE_INTPTR_T 1
11011 _ACEOF
11012
11013
11014 fi
11015
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11017 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11018 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h.  */
11023 #include <sys/stat.h>
11024 int
11025 main ()
11026 {
11027 struct stat stat; stat.st_flags = 0;
11028   ;
11029   return 0;
11030 }
11031 _ACEOF
11032 if ac_fn_c_try_compile "$LINENO"; then :
11033   e2fsprogs_cv_struct_st_flags=yes
11034 else
11035   e2fsprogs_cv_struct_st_flags=no
11036 fi
11037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038 fi
11039
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11041 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11042 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11044 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11045   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11046   $as_echo_n "(cached) " >&6
11047 else
11048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h.  */
11050 #include <sys/stat.h>
11051 int
11052 main ()
11053 {
11054 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11055   ;
11056   return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_c_try_compile "$LINENO"; then :
11060   e2fsprogs_cv_struct_st_flags_immut=yes
11061 else
11062   e2fsprogs_cv_struct_st_flags_immut=no
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 fi
11066
11067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11068 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11069   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11070
11071 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11072
11073   fi
11074 fi
11075 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11076          #include <sys/socket.h>
11077 "
11078 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11079
11080 cat >>confdefs.h <<_ACEOF
11081 #define HAVE_SA_LEN 1
11082 _ACEOF
11083
11084 fi
11085
11086 if test -n "$BLKID_CMT"; then
11087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11088 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11089 if ${ac_cv_search_blkid_probe_all+:} false; then :
11090   $as_echo_n "(cached) " >&6
11091 else
11092   ac_func_search_save_LIBS=$LIBS
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h.  */
11095
11096 /* Override any GCC internal prototype to avoid an error.
11097    Use char because int might match the return type of a GCC
11098    builtin and then its argument prototype would still apply.  */
11099 #ifdef __cplusplus
11100 extern "C"
11101 #endif
11102 char blkid_probe_all ();
11103 int
11104 main ()
11105 {
11106 return blkid_probe_all ();
11107   ;
11108   return 0;
11109 }
11110 _ACEOF
11111 for ac_lib in '' blkid; do
11112   if test -z "$ac_lib"; then
11113     ac_res="none required"
11114   else
11115     ac_res=-l$ac_lib
11116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11117   fi
11118   if ac_fn_c_try_link "$LINENO"; then :
11119   ac_cv_search_blkid_probe_all=$ac_res
11120 fi
11121 rm -f core conftest.err conftest.$ac_objext \
11122     conftest$ac_exeext
11123   if ${ac_cv_search_blkid_probe_all+:} false; then :
11124   break
11125 fi
11126 done
11127 if ${ac_cv_search_blkid_probe_all+:} false; then :
11128
11129 else
11130   ac_cv_search_blkid_probe_all=no
11131 fi
11132 rm conftest.$ac_ext
11133 LIBS=$ac_func_search_save_LIBS
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11136 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11137 ac_res=$ac_cv_search_blkid_probe_all
11138 if test "$ac_res" != no; then :
11139   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11140
11141 fi
11142
11143 fi
11144 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        chflags         fadvise64       fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     futimes         getcwd  getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   secure_getenv   setmntent       setresgid       setresuid       srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   valloc
11145 do :
11146   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11148 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11149   cat >>confdefs.h <<_ACEOF
11150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11151 _ACEOF
11152
11153 fi
11154 done
11155
11156 SOCKET_LIB=''
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11158 $as_echo_n "checking for socket in -lsocket... " >&6; }
11159 if ${ac_cv_lib_socket_socket+:} false; then :
11160   $as_echo_n "(cached) " >&6
11161 else
11162   ac_check_lib_save_LIBS=$LIBS
11163 LIBS="-lsocket  $LIBS"
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h.  */
11166
11167 /* Override any GCC internal prototype to avoid an error.
11168    Use char because int might match the return type of a GCC
11169    builtin and then its argument prototype would still apply.  */
11170 #ifdef __cplusplus
11171 extern "C"
11172 #endif
11173 char socket ();
11174 int
11175 main ()
11176 {
11177 return socket ();
11178   ;
11179   return 0;
11180 }
11181 _ACEOF
11182 if ac_fn_c_try_link "$LINENO"; then :
11183   ac_cv_lib_socket_socket=yes
11184 else
11185   ac_cv_lib_socket_socket=no
11186 fi
11187 rm -f core conftest.err conftest.$ac_objext \
11188     conftest$ac_exeext conftest.$ac_ext
11189 LIBS=$ac_check_lib_save_LIBS
11190 fi
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11192 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11193 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11194   SOCKET_LIB=-lsocket
11195 fi
11196
11197
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11199 $as_echo_n "checking for optreset... " >&6; }
11200 if ${ac_cv_have_optreset+:} false; then :
11201   $as_echo_n "(cached) " >&6
11202 else
11203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h.  */
11205 #include <unistd.h>
11206
11207 _ACEOF
11208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11209   $EGREP "optreset" >/dev/null 2>&1; then :
11210   ac_cv_have_optreset=yes
11211 else
11212   ac_cv_have_optreset=no
11213 fi
11214 rm -f conftest*
11215
11216 fi
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11218 $as_echo "$ac_cv_have_optreset" >&6; }
11219 if test $ac_cv_have_optreset = yes; then
11220
11221 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11222
11223 fi
11224
11225 SEM_INIT_LIB=''
11226 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11227 if test "x$ac_cv_func_sem_init" = xyes; then :
11228
11229 else
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11231 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11232 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11233   $as_echo_n "(cached) " >&6
11234 else
11235   ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-lpthread  $LIBS"
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h.  */
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241    Use char because int might match the return type of a GCC
11242    builtin and then its argument prototype would still apply.  */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char sem_init ();
11247 int
11248 main ()
11249 {
11250 return sem_init ();
11251   ;
11252   return 0;
11253 }
11254 _ACEOF
11255 if ac_fn_c_try_link "$LINENO"; then :
11256   ac_cv_lib_pthread_sem_init=yes
11257 else
11258   ac_cv_lib_pthread_sem_init=no
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext \
11261     conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11265 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11266 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11267   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11268
11269         SEM_INIT_LIB=-lpthread
11270 else
11271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11272 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11273 if ${ac_cv_lib_rt_sem_init+:} false; then :
11274   $as_echo_n "(cached) " >&6
11275 else
11276   ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-lrt  $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h.  */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282    Use char because int might match the return type of a GCC
11283    builtin and then its argument prototype would still apply.  */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char sem_init ();
11288 int
11289 main ()
11290 {
11291 return sem_init ();
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297   ac_cv_lib_rt_sem_init=yes
11298 else
11299   ac_cv_lib_rt_sem_init=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302     conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11306 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11307 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11308   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11309
11310         SEM_INIT_LIB=-lrt
11311 else
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11313 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11314 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11315   $as_echo_n "(cached) " >&6
11316 else
11317   ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-lposix4  $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h.  */
11321
11322 /* Override any GCC internal prototype to avoid an error.
11323    Use char because int might match the return type of a GCC
11324    builtin and then its argument prototype would still apply.  */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 char sem_init ();
11329 int
11330 main ()
11331 {
11332 return sem_init ();
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 if ac_fn_c_try_link "$LINENO"; then :
11338   ac_cv_lib_posix4_sem_init=yes
11339 else
11340   ac_cv_lib_posix4_sem_init=no
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343     conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11347 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11348 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11349   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11350
11351         SEM_INIT_LIB=-lposix4
11352 fi
11353
11354 fi
11355
11356 fi
11357
11358 fi
11359
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11361 $as_echo_n "checking for unified diff option... " >&6; }
11362 if diff -u $0 $0 > /dev/null 2>&1 ; then
11363    UNI_DIFF_OPTS=-u
11364 else
11365    UNI_DIFF_OPTS=-c
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11368 $as_echo "$UNI_DIFF_OPTS" >&6; }
11369
11370 case "$host_os" in
11371 linux*)
11372
11373 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11374
11375         ;;
11376 esac
11377 LINUX_CMT="#"
11378 CYGWIN_CMT="#"
11379 UNIX_CMT=
11380 case "$host_os" in
11381 linux*)
11382         LINUX_CMT=
11383         ;;
11384 cygwin)
11385         CYGWIN_CMT=
11386         UNIX_CMT="#"
11387         ;;
11388 esac
11389
11390
11391
11392 case "$host_os" in
11393 linux* | gnu* | k*bsd*-gnu)
11394         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11395                 root_prefix="";
11396                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11397 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11398         fi
11399         ;;
11400 esac
11401 case "$host_os" in
11402 linux* | gnu* | k*bsd*-gnu)
11403         if test "$prefix" = NONE ; then
11404                 prefix="/usr";
11405                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11406 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11407                 if test "$mandir" = '${prefix}/man' ; then
11408                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11409 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11410                         mandir=/usr/share/man
11411                 fi
11412         fi
11413 ;;
11414 esac
11415 if test "$root_prefix" = NONE ; then
11416         if test "$prefix" = NONE ; then
11417                 root_prefix="$ac_default_prefix"
11418         else
11419                 root_prefix="$prefix"
11420         fi
11421         root_bindir=$bindir
11422         root_sbindir=$sbindir
11423         root_libdir=$libdir
11424         root_sysconfdir=$sysconfdir
11425 else
11426         root_bindir='${root_prefix}/bin'
11427         root_sbindir='${root_prefix}/sbin'
11428         root_libdir='${root_prefix}/lib'
11429         root_sysconfdir='${root_prefix}/etc'
11430 fi
11431 if test "$bindir" != '${exec_prefix}/bin'; then
11432     root_bindir=$bindir
11433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11434 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11435 fi
11436 if test "$sbindir" != '${exec_prefix}/sbin'; then
11437     root_sbindir=$sbindir
11438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11439 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11440 fi
11441 if test "$libdir" != '${exec_prefix}/lib'; then
11442     root_libdir=$libdir
11443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11444 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11445 fi
11446 if test "$sysconfdir" != '${prefix}/etc'; then
11447     root_sysconfdir=$sysconfdir
11448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11449 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11450 fi
11451
11452
11453
11454
11455
11456
11457 # Check whether --with-multiarch was given.
11458 if test "${with_multiarch+set}" = set; then :
11459   withval=$with_multiarch; libdir=$libdir/$withval
11460 root_libdir=$root_libdir/$withval
11461
11462 fi
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11464 $as_echo_n "checking whether we can link with -static... " >&6; }
11465 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11466   $as_echo_n "(cached) " >&6
11467 else
11468   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h.  */
11471 #include <stdio.h>
11472 int
11473 main ()
11474 {
11475 fflush(stdout);
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"; then :
11481   ac_cv_e2fsprogs_use_static=yes
11482 else
11483   ac_cv_e2fsprogs_use_static=no
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext \
11486     conftest$ac_exeext conftest.$ac_ext
11487 LDFLAGS=$SAVE_LDFLAGS
11488 fi
11489
11490 case "$host_os" in
11491 solaris2.*)
11492         ac_cv_e2fsprogs_use_static=no
11493 ;;
11494 esac
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11496 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11497 LDFLAG_STATIC=
11498 if test $ac_cv_e2fsprogs_use_static = yes; then
11499         LDFLAG_STATIC=-static
11500 fi
11501
11502 case "$host_os" in
11503 darwin*)
11504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11505 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11506
11507 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11508
11509         ;;
11510 esac
11511 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11512 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11513
11514
11515 if test "$cross_compiling" = yes ; then
11516   DO_TEST_SUITE=
11517 else
11518   DO_TEST_SUITE=check
11519 fi
11520
11521 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11522 if test -n "$CPPFLAGS" ; then
11523         INCLUDES="$INCLUDES $CPPFLAGS"
11524 fi
11525 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11526         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11527 fi
11528 if test -n "$WITH_DIET_LIBC" ; then
11529         INCLUDES="$INCLUDES -D_REENTRANT"
11530 fi
11531
11532 if test $cross_compiling = no; then
11533    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11534    BUILD_LDFLAGS="$LDFLAGS"
11535 else
11536    BUILD_CFLAGS=
11537    BUILD_LDFLAGS=
11538 fi
11539
11540
11541 test -d lib || mkdir lib
11542 test -d include || mkdir include
11543 test -d include/linux || mkdir include/linux
11544 test -d include/asm || mkdir include/asm
11545 for i in MCONFIG Makefile e2fsprogs.spec \
11546         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11547         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11548         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11549         lib/uuid/Makefile lib/uuid/uuid_types.h \
11550         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11551         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11552         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11553         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11554         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11555         resize/Makefile doc/Makefile intl/Makefile \
11556         intl/libgnuintl.h po/Makefile.in ; do
11557         if test -d `dirname ${srcdir}/$i` ; then
11558                 outlist="$outlist $i"
11559         fi
11560 done
11561 ac_config_files="$ac_config_files $outlist"
11562
11563 cat >confcache <<\_ACEOF
11564 # This file is a shell script that caches the results of configure
11565 # tests run on this system so they can be shared between configure
11566 # scripts and configure runs, see configure's option --config-cache.
11567 # It is not useful on other systems.  If it contains results you don't
11568 # want to keep, you may remove or edit it.
11569 #
11570 # config.status only pays attention to the cache file if you give it
11571 # the --recheck option to rerun configure.
11572 #
11573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11575 # following values.
11576
11577 _ACEOF
11578
11579 # The following way of writing the cache mishandles newlines in values,
11580 # but we know of no workaround that is simple, portable, and efficient.
11581 # So, we kill variables containing newlines.
11582 # Ultrix sh set writes to stderr and can't be redirected directly,
11583 # and sets the high bit in the cache file unless we assign to the vars.
11584 (
11585   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11586     eval ac_val=\$$ac_var
11587     case $ac_val in #(
11588     *${as_nl}*)
11589       case $ac_var in #(
11590       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11592       esac
11593       case $ac_var in #(
11594       _ | IFS | as_nl) ;; #(
11595       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11596       *) { eval $ac_var=; unset $ac_var;} ;;
11597       esac ;;
11598     esac
11599   done
11600
11601   (set) 2>&1 |
11602     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11603     *${as_nl}ac_space=\ *)
11604       # `set' does not quote correctly, so add quotes: double-quote
11605       # substitution turns \\\\ into \\, and sed turns \\ into \.
11606       sed -n \
11607         "s/'/'\\\\''/g;
11608           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11609       ;; #(
11610     *)
11611       # `set' quotes correctly as required by POSIX, so do not add quotes.
11612       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11613       ;;
11614     esac |
11615     sort
11616 ) |
11617   sed '
11618      /^ac_cv_env_/b end
11619      t clear
11620      :clear
11621      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11622      t end
11623      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11624      :end' >>confcache
11625 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11626   if test -w "$cache_file"; then
11627     if test "x$cache_file" != "x/dev/null"; then
11628       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11629 $as_echo "$as_me: updating cache $cache_file" >&6;}
11630       if test ! -f "$cache_file" || test -h "$cache_file"; then
11631         cat confcache >"$cache_file"
11632       else
11633         case $cache_file in #(
11634         */* | ?:*)
11635           mv -f confcache "$cache_file"$$ &&
11636           mv -f "$cache_file"$$ "$cache_file" ;; #(
11637         *)
11638           mv -f confcache "$cache_file" ;;
11639         esac
11640       fi
11641     fi
11642   else
11643     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11644 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11645   fi
11646 fi
11647 rm -f confcache
11648
11649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11650 # Let make expand exec_prefix.
11651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11652
11653 DEFS=-DHAVE_CONFIG_H
11654
11655 ac_libobjs=
11656 ac_ltlibobjs=
11657 U=
11658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11659   # 1. Remove the extension, and $U if already installed.
11660   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11661   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11662   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11663   #    will be set to the directory where LIBOBJS objects are built.
11664   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11665   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11666 done
11667 LIBOBJS=$ac_libobjs
11668
11669 LTLIBOBJS=$ac_ltlibobjs
11670
11671
11672
11673
11674 : "${CONFIG_STATUS=./config.status}"
11675 ac_write_fail=0
11676 ac_clean_files_save=$ac_clean_files
11677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11679 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11680 as_write_fail=0
11681 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11682 #! $SHELL
11683 # Generated by $as_me.
11684 # Run this file to recreate the current configuration.
11685 # Compiler output produced by configure, useful for debugging
11686 # configure, is in config.log if it exists.
11687
11688 debug=false
11689 ac_cs_recheck=false
11690 ac_cs_silent=false
11691
11692 SHELL=\${CONFIG_SHELL-$SHELL}
11693 export SHELL
11694 _ASEOF
11695 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11696 ## -------------------- ##
11697 ## M4sh Initialization. ##
11698 ## -------------------- ##
11699
11700 # Be more Bourne compatible
11701 DUALCASE=1; export DUALCASE # for MKS sh
11702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11703   emulate sh
11704   NULLCMD=:
11705   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11706   # is contrary to our usage.  Disable this feature.
11707   alias -g '${1+"$@"}'='"$@"'
11708   setopt NO_GLOB_SUBST
11709 else
11710   case `(set -o) 2>/dev/null` in #(
11711   *posix*) :
11712     set -o posix ;; #(
11713   *) :
11714      ;;
11715 esac
11716 fi
11717
11718
11719 as_nl='
11720 '
11721 export as_nl
11722 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11723 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11724 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11726 # Prefer a ksh shell builtin over an external printf program on Solaris,
11727 # but without wasting forks for bash or zsh.
11728 if test -z "$BASH_VERSION$ZSH_VERSION" \
11729     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11730   as_echo='print -r --'
11731   as_echo_n='print -rn --'
11732 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11733   as_echo='printf %s\n'
11734   as_echo_n='printf %s'
11735 else
11736   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11737     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11738     as_echo_n='/usr/ucb/echo -n'
11739   else
11740     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11741     as_echo_n_body='eval
11742       arg=$1;
11743       case $arg in #(
11744       *"$as_nl"*)
11745         expr "X$arg" : "X\\(.*\\)$as_nl";
11746         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11747       esac;
11748       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11749     '
11750     export as_echo_n_body
11751     as_echo_n='sh -c $as_echo_n_body as_echo'
11752   fi
11753   export as_echo_body
11754   as_echo='sh -c $as_echo_body as_echo'
11755 fi
11756
11757 # The user is always right.
11758 if test "${PATH_SEPARATOR+set}" != set; then
11759   PATH_SEPARATOR=:
11760   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11761     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11762       PATH_SEPARATOR=';'
11763   }
11764 fi
11765
11766
11767 # IFS
11768 # We need space, tab and new line, in precisely that order.  Quoting is
11769 # there to prevent editors from complaining about space-tab.
11770 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11771 # splitting by setting IFS to empty value.)
11772 IFS=" ""        $as_nl"
11773
11774 # Find who we are.  Look in the path if we contain no directory separator.
11775 as_myself=
11776 case $0 in #((
11777   *[\\/]* ) as_myself=$0 ;;
11778   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11780 do
11781   IFS=$as_save_IFS
11782   test -z "$as_dir" && as_dir=.
11783     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11784   done
11785 IFS=$as_save_IFS
11786
11787      ;;
11788 esac
11789 # We did not find ourselves, most probably we were run as `sh COMMAND'
11790 # in which case we are not to be found in the path.
11791 if test "x$as_myself" = x; then
11792   as_myself=$0
11793 fi
11794 if test ! -f "$as_myself"; then
11795   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11796   exit 1
11797 fi
11798
11799 # Unset variables that we do not need and which cause bugs (e.g. in
11800 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11801 # suppresses any "Segmentation fault" message there.  '((' could
11802 # trigger a bug in pdksh 5.2.14.
11803 for as_var in BASH_ENV ENV MAIL MAILPATH
11804 do eval test x\${$as_var+set} = xset \
11805   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11806 done
11807 PS1='$ '
11808 PS2='> '
11809 PS4='+ '
11810
11811 # NLS nuisances.
11812 LC_ALL=C
11813 export LC_ALL
11814 LANGUAGE=C
11815 export LANGUAGE
11816
11817 # CDPATH.
11818 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11819
11820
11821 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11822 # ----------------------------------------
11823 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11824 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11825 # script with STATUS, using 1 if that was 0.
11826 as_fn_error ()
11827 {
11828   as_status=$1; test $as_status -eq 0 && as_status=1
11829   if test "$4"; then
11830     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11831     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11832   fi
11833   $as_echo "$as_me: error: $2" >&2
11834   as_fn_exit $as_status
11835 } # as_fn_error
11836
11837
11838 # as_fn_set_status STATUS
11839 # -----------------------
11840 # Set $? to STATUS, without forking.
11841 as_fn_set_status ()
11842 {
11843   return $1
11844 } # as_fn_set_status
11845
11846 # as_fn_exit STATUS
11847 # -----------------
11848 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11849 as_fn_exit ()
11850 {
11851   set +e
11852   as_fn_set_status $1
11853   exit $1
11854 } # as_fn_exit
11855
11856 # as_fn_unset VAR
11857 # ---------------
11858 # Portably unset VAR.
11859 as_fn_unset ()
11860 {
11861   { eval $1=; unset $1;}
11862 }
11863 as_unset=as_fn_unset
11864 # as_fn_append VAR VALUE
11865 # ----------------------
11866 # Append the text in VALUE to the end of the definition contained in VAR. Take
11867 # advantage of any shell optimizations that allow amortized linear growth over
11868 # repeated appends, instead of the typical quadratic growth present in naive
11869 # implementations.
11870 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11871   eval 'as_fn_append ()
11872   {
11873     eval $1+=\$2
11874   }'
11875 else
11876   as_fn_append ()
11877   {
11878     eval $1=\$$1\$2
11879   }
11880 fi # as_fn_append
11881
11882 # as_fn_arith ARG...
11883 # ------------------
11884 # Perform arithmetic evaluation on the ARGs, and store the result in the
11885 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11886 # must be portable across $(()) and expr.
11887 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11888   eval 'as_fn_arith ()
11889   {
11890     as_val=$(( $* ))
11891   }'
11892 else
11893   as_fn_arith ()
11894   {
11895     as_val=`expr "$@" || test $? -eq 1`
11896   }
11897 fi # as_fn_arith
11898
11899
11900 if expr a : '\(a\)' >/dev/null 2>&1 &&
11901    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11902   as_expr=expr
11903 else
11904   as_expr=false
11905 fi
11906
11907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11908   as_basename=basename
11909 else
11910   as_basename=false
11911 fi
11912
11913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11914   as_dirname=dirname
11915 else
11916   as_dirname=false
11917 fi
11918
11919 as_me=`$as_basename -- "$0" ||
11920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11921          X"$0" : 'X\(//\)$' \| \
11922          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11923 $as_echo X/"$0" |
11924     sed '/^.*\/\([^/][^/]*\)\/*$/{
11925             s//\1/
11926             q
11927           }
11928           /^X\/\(\/\/\)$/{
11929             s//\1/
11930             q
11931           }
11932           /^X\/\(\/\).*/{
11933             s//\1/
11934             q
11935           }
11936           s/.*/./; q'`
11937
11938 # Avoid depending upon Character Ranges.
11939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11942 as_cr_digits='0123456789'
11943 as_cr_alnum=$as_cr_Letters$as_cr_digits
11944
11945 ECHO_C= ECHO_N= ECHO_T=
11946 case `echo -n x` in #(((((
11947 -n*)
11948   case `echo 'xy\c'` in
11949   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11950   xy)  ECHO_C='\c';;
11951   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11952        ECHO_T=' ';;
11953   esac;;
11954 *)
11955   ECHO_N='-n';;
11956 esac
11957
11958 rm -f conf$$ conf$$.exe conf$$.file
11959 if test -d conf$$.dir; then
11960   rm -f conf$$.dir/conf$$.file
11961 else
11962   rm -f conf$$.dir
11963   mkdir conf$$.dir 2>/dev/null
11964 fi
11965 if (echo >conf$$.file) 2>/dev/null; then
11966   if ln -s conf$$.file conf$$ 2>/dev/null; then
11967     as_ln_s='ln -s'
11968     # ... but there are two gotchas:
11969     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11970     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11971     # In both cases, we have to default to `cp -pR'.
11972     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11973       as_ln_s='cp -pR'
11974   elif ln conf$$.file conf$$ 2>/dev/null; then
11975     as_ln_s=ln
11976   else
11977     as_ln_s='cp -pR'
11978   fi
11979 else
11980   as_ln_s='cp -pR'
11981 fi
11982 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11983 rmdir conf$$.dir 2>/dev/null
11984
11985
11986 # as_fn_mkdir_p
11987 # -------------
11988 # Create "$as_dir" as a directory, including parents if necessary.
11989 as_fn_mkdir_p ()
11990 {
11991
11992   case $as_dir in #(
11993   -*) as_dir=./$as_dir;;
11994   esac
11995   test -d "$as_dir" || eval $as_mkdir_p || {
11996     as_dirs=
11997     while :; do
11998       case $as_dir in #(
11999       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12000       *) as_qdir=$as_dir;;
12001       esac
12002       as_dirs="'$as_qdir' $as_dirs"
12003       as_dir=`$as_dirname -- "$as_dir" ||
12004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12005          X"$as_dir" : 'X\(//\)[^/]' \| \
12006          X"$as_dir" : 'X\(//\)$' \| \
12007          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12008 $as_echo X"$as_dir" |
12009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12010             s//\1/
12011             q
12012           }
12013           /^X\(\/\/\)[^/].*/{
12014             s//\1/
12015             q
12016           }
12017           /^X\(\/\/\)$/{
12018             s//\1/
12019             q
12020           }
12021           /^X\(\/\).*/{
12022             s//\1/
12023             q
12024           }
12025           s/.*/./; q'`
12026       test -d "$as_dir" && break
12027     done
12028     test -z "$as_dirs" || eval "mkdir $as_dirs"
12029   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12030
12031
12032 } # as_fn_mkdir_p
12033 if mkdir -p . 2>/dev/null; then
12034   as_mkdir_p='mkdir -p "$as_dir"'
12035 else
12036   test -d ./-p && rmdir ./-p
12037   as_mkdir_p=false
12038 fi
12039
12040
12041 # as_fn_executable_p FILE
12042 # -----------------------
12043 # Test if FILE is an executable regular file.
12044 as_fn_executable_p ()
12045 {
12046   test -f "$1" && test -x "$1"
12047 } # as_fn_executable_p
12048 as_test_x='test -x'
12049 as_executable_p=as_fn_executable_p
12050
12051 # Sed expression to map a string onto a valid CPP name.
12052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12053
12054 # Sed expression to map a string onto a valid variable name.
12055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12056
12057
12058 exec 6>&1
12059 ## ----------------------------------- ##
12060 ## Main body of $CONFIG_STATUS script. ##
12061 ## ----------------------------------- ##
12062 _ASEOF
12063 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12064
12065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12066 # Save the log message, to keep $0 and so on meaningful, and to
12067 # report actual input values of CONFIG_FILES etc. instead of their
12068 # values after options handling.
12069 ac_log="
12070 This file was extended by $as_me, which was
12071 generated by GNU Autoconf 2.69.  Invocation command line was
12072
12073   CONFIG_FILES    = $CONFIG_FILES
12074   CONFIG_HEADERS  = $CONFIG_HEADERS
12075   CONFIG_LINKS    = $CONFIG_LINKS
12076   CONFIG_COMMANDS = $CONFIG_COMMANDS
12077   $ $0 $@
12078
12079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12080 "
12081
12082 _ACEOF
12083
12084 case $ac_config_files in *"
12085 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12086 esac
12087
12088 case $ac_config_headers in *"
12089 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12090 esac
12091
12092
12093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12094 # Files that config.status was made for.
12095 config_files="$ac_config_files"
12096 config_headers="$ac_config_headers"
12097 config_commands="$ac_config_commands"
12098
12099 _ACEOF
12100
12101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12102 ac_cs_usage="\
12103 \`$as_me' instantiates files and other configuration actions
12104 from templates according to the current configuration.  Unless the files
12105 and actions are specified as TAGs, all are instantiated by default.
12106
12107 Usage: $0 [OPTION]... [TAG]...
12108
12109   -h, --help       print this help, then exit
12110   -V, --version    print version number and configuration settings, then exit
12111       --config     print configuration, then exit
12112   -q, --quiet, --silent
12113                    do not print progress messages
12114   -d, --debug      don't remove temporary files
12115       --recheck    update $as_me by reconfiguring in the same conditions
12116       --file=FILE[:TEMPLATE]
12117                    instantiate the configuration file FILE
12118       --header=FILE[:TEMPLATE]
12119                    instantiate the configuration header FILE
12120
12121 Configuration files:
12122 $config_files
12123
12124 Configuration headers:
12125 $config_headers
12126
12127 Configuration commands:
12128 $config_commands
12129
12130 Report bugs to the package provider."
12131
12132 _ACEOF
12133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12134 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12135 ac_cs_version="\\
12136 config.status
12137 configured by $0, generated by GNU Autoconf 2.69,
12138   with options \\"\$ac_cs_config\\"
12139
12140 Copyright (C) 2012 Free Software Foundation, Inc.
12141 This config.status script is free software; the Free Software Foundation
12142 gives unlimited permission to copy, distribute and modify it."
12143
12144 ac_pwd='$ac_pwd'
12145 srcdir='$srcdir'
12146 INSTALL='$INSTALL'
12147 AWK='$AWK'
12148 test -n "\$AWK" || AWK=awk
12149 _ACEOF
12150
12151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152 # The default lists apply if the user does not specify any file.
12153 ac_need_defaults=:
12154 while test $# != 0
12155 do
12156   case $1 in
12157   --*=?*)
12158     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12159     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12160     ac_shift=:
12161     ;;
12162   --*=)
12163     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12164     ac_optarg=
12165     ac_shift=:
12166     ;;
12167   *)
12168     ac_option=$1
12169     ac_optarg=$2
12170     ac_shift=shift
12171     ;;
12172   esac
12173
12174   case $ac_option in
12175   # Handling of the options.
12176   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12177     ac_cs_recheck=: ;;
12178   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12179     $as_echo "$ac_cs_version"; exit ;;
12180   --config | --confi | --conf | --con | --co | --c )
12181     $as_echo "$ac_cs_config"; exit ;;
12182   --debug | --debu | --deb | --de | --d | -d )
12183     debug=: ;;
12184   --file | --fil | --fi | --f )
12185     $ac_shift
12186     case $ac_optarg in
12187     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12188     '') as_fn_error $? "missing file argument" ;;
12189     esac
12190     as_fn_append CONFIG_FILES " '$ac_optarg'"
12191     ac_need_defaults=false;;
12192   --header | --heade | --head | --hea )
12193     $ac_shift
12194     case $ac_optarg in
12195     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12196     esac
12197     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12198     ac_need_defaults=false;;
12199   --he | --h)
12200     # Conflict between --help and --header
12201     as_fn_error $? "ambiguous option: \`$1'
12202 Try \`$0 --help' for more information.";;
12203   --help | --hel | -h )
12204     $as_echo "$ac_cs_usage"; exit ;;
12205   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12206   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12207     ac_cs_silent=: ;;
12208
12209   # This is an error.
12210   -*) as_fn_error $? "unrecognized option: \`$1'
12211 Try \`$0 --help' for more information." ;;
12212
12213   *) as_fn_append ac_config_targets " $1"
12214      ac_need_defaults=false ;;
12215
12216   esac
12217   shift
12218 done
12219
12220 ac_configure_extra_args=
12221
12222 if $ac_cs_silent; then
12223   exec 6>/dev/null
12224   ac_configure_extra_args="$ac_configure_extra_args --silent"
12225 fi
12226
12227 _ACEOF
12228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12229 if \$ac_cs_recheck; then
12230   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12231   shift
12232   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12233   CONFIG_SHELL='$SHELL'
12234   export CONFIG_SHELL
12235   exec "\$@"
12236 fi
12237
12238 _ACEOF
12239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12240 exec 5>>config.log
12241 {
12242   echo
12243   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12244 ## Running $as_me. ##
12245 _ASBOX
12246   $as_echo "$ac_log"
12247 } >&5
12248
12249 _ACEOF
12250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12251 #
12252 # INIT-COMMANDS
12253 #
12254 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12255     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12256     # from automake.
12257     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12258     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12259     LINGUAS="${LINGUAS-%UNSET%}"
12260
12261
12262 _ACEOF
12263
12264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12265
12266 # Handling of arguments.
12267 for ac_config_target in $ac_config_targets
12268 do
12269   case $ac_config_target in
12270     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12271     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12272     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12273
12274   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12275   esac
12276 done
12277
12278
12279 # If the user did not use the arguments to specify the items to instantiate,
12280 # then the envvar interface is used.  Set only those that are not.
12281 # We use the long form for the default assignment because of an extremely
12282 # bizarre bug on SunOS 4.1.3.
12283 if $ac_need_defaults; then
12284   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12285   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12286   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12287 fi
12288
12289 # Have a temporary directory for convenience.  Make it in the build tree
12290 # simply because there is no reason against having it here, and in addition,
12291 # creating and moving files from /tmp can sometimes cause problems.
12292 # Hook for its removal unless debugging.
12293 # Note that there is a small window in which the directory will not be cleaned:
12294 # after its creation but before its name has been assigned to `$tmp'.
12295 $debug ||
12296 {
12297   tmp= ac_tmp=
12298   trap 'exit_status=$?
12299   : "${ac_tmp:=$tmp}"
12300   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12301 ' 0
12302   trap 'as_fn_exit 1' 1 2 13 15
12303 }
12304 # Create a (secure) tmp directory for tmp files.
12305
12306 {
12307   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12308   test -d "$tmp"
12309 }  ||
12310 {
12311   tmp=./conf$$-$RANDOM
12312   (umask 077 && mkdir "$tmp")
12313 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12314 ac_tmp=$tmp
12315
12316 # Set up the scripts for CONFIG_FILES section.
12317 # No need to generate them if there are no CONFIG_FILES.
12318 # This happens for instance with `./config.status config.h'.
12319 if test -n "$CONFIG_FILES"; then
12320
12321 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12322   ac_cs_awk_getline=:
12323   ac_cs_awk_pipe_init=
12324   ac_cs_awk_read_file='
12325       while ((getline aline < (F[key])) > 0)
12326         print(aline)
12327       close(F[key])'
12328   ac_cs_awk_pipe_fini=
12329 else
12330   ac_cs_awk_getline=false
12331   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12332   ac_cs_awk_read_file='
12333       print "|#_!!_#|"
12334       print "cat " F[key] " &&"
12335       '$ac_cs_awk_pipe_init
12336   # The final `:' finishes the AND list.
12337   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12338 fi
12339 ac_cr=`echo X | tr X '\015'`
12340 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12341 # But we know of no other shell where ac_cr would be empty at this
12342 # point, so we can use a bashism as a fallback.
12343 if test "x$ac_cr" = x; then
12344   eval ac_cr=\$\'\\r\'
12345 fi
12346 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12347 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12348   ac_cs_awk_cr='\\r'
12349 else
12350   ac_cs_awk_cr=$ac_cr
12351 fi
12352
12353 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12354 _ACEOF
12355
12356 # Create commands to substitute file output variables.
12357 {
12358   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12359   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12360   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12361   echo "_ACAWK" &&
12362   echo "_ACEOF"
12363 } >conf$$files.sh &&
12364 . ./conf$$files.sh ||
12365   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12366 rm -f conf$$files.sh
12367
12368 {
12369   echo "cat >conf$$subs.awk <<_ACEOF" &&
12370   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12371   echo "_ACEOF"
12372 } >conf$$subs.sh ||
12373   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12374 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12375 ac_delim='%!_!# '
12376 for ac_last_try in false false false false false :; do
12377   . ./conf$$subs.sh ||
12378     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12379
12380   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12381   if test $ac_delim_n = $ac_delim_num; then
12382     break
12383   elif $ac_last_try; then
12384     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12385   else
12386     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12387   fi
12388 done
12389 rm -f conf$$subs.sh
12390
12391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12392 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12393 _ACEOF
12394 sed -n '
12395 h
12396 s/^/S["/; s/!.*/"]=/
12397 p
12398 g
12399 s/^[^!]*!//
12400 :repl
12401 t repl
12402 s/'"$ac_delim"'$//
12403 t delim
12404 :nl
12405 h
12406 s/\(.\{148\}\)..*/\1/
12407 t more1
12408 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12409 p
12410 n
12411 b repl
12412 :more1
12413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12414 p
12415 g
12416 s/.\{148\}//
12417 t nl
12418 :delim
12419 h
12420 s/\(.\{148\}\)..*/\1/
12421 t more2
12422 s/["\\]/\\&/g; s/^/"/; s/$/"/
12423 p
12424 b
12425 :more2
12426 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12427 p
12428 g
12429 s/.\{148\}//
12430 t delim
12431 ' <conf$$subs.awk | sed '
12432 /^[^""]/{
12433   N
12434   s/\n//
12435 }
12436 ' >>$CONFIG_STATUS || ac_write_fail=1
12437 rm -f conf$$subs.awk
12438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12439 _ACAWK
12440 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12441   for (key in S) S_is_set[key] = 1
12442   FS = "\a"
12443   \$ac_cs_awk_pipe_init
12444 }
12445 {
12446   line = $ 0
12447   nfields = split(line, field, "@")
12448   substed = 0
12449   len = length(field[1])
12450   for (i = 2; i < nfields; i++) {
12451     key = field[i]
12452     keylen = length(key)
12453     if (S_is_set[key]) {
12454       value = S[key]
12455       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12456       len += length(value) + length(field[++i])
12457       substed = 1
12458     } else
12459       len += 1 + keylen
12460   }
12461   if (nfields == 3 && !substed) {
12462     key = field[2]
12463     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12464       \$ac_cs_awk_read_file
12465       next
12466     }
12467   }
12468   print line
12469 }
12470 \$ac_cs_awk_pipe_fini
12471 _ACAWK
12472 _ACEOF
12473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12475   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12476 else
12477   cat
12478 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12479   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12480 _ACEOF
12481
12482 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12483 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12484 # trailing colons and then remove the whole line if VPATH becomes empty
12485 # (actually we leave an empty line to preserve line numbers).
12486 if test "x$srcdir" = x.; then
12487   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12488 h
12489 s///
12490 s/^/:/
12491 s/[      ]*$/:/
12492 s/:\$(srcdir):/:/g
12493 s/:\${srcdir}:/:/g
12494 s/:@srcdir@:/:/g
12495 s/^:*//
12496 s/:*$//
12497 x
12498 s/\(=[   ]*\).*/\1/
12499 G
12500 s/\n//
12501 s/^[^=]*=[       ]*$//
12502 }'
12503 fi
12504
12505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12506 fi # test -n "$CONFIG_FILES"
12507
12508 # Set up the scripts for CONFIG_HEADERS section.
12509 # No need to generate them if there are no CONFIG_HEADERS.
12510 # This happens for instance with `./config.status Makefile'.
12511 if test -n "$CONFIG_HEADERS"; then
12512 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12513 BEGIN {
12514 _ACEOF
12515
12516 # Transform confdefs.h into an awk script `defines.awk', embedded as
12517 # here-document in config.status, that substitutes the proper values into
12518 # config.h.in to produce config.h.
12519
12520 # Create a delimiter string that does not exist in confdefs.h, to ease
12521 # handling of long lines.
12522 ac_delim='%!_!# '
12523 for ac_last_try in false false :; do
12524   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12525   if test -z "$ac_tt"; then
12526     break
12527   elif $ac_last_try; then
12528     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12529   else
12530     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12531   fi
12532 done
12533
12534 # For the awk script, D is an array of macro values keyed by name,
12535 # likewise P contains macro parameters if any.  Preserve backslash
12536 # newline sequences.
12537
12538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12539 sed -n '
12540 s/.\{148\}/&'"$ac_delim"'/g
12541 t rset
12542 :rset
12543 s/^[     ]*#[    ]*define[       ][      ]*/ /
12544 t def
12545 d
12546 :def
12547 s/\\$//
12548 t bsnl
12549 s/["\\]/\\&/g
12550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12551 D["\1"]=" \3"/p
12552 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12553 d
12554 :bsnl
12555 s/["\\]/\\&/g
12556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12557 D["\1"]=" \3\\\\\\n"\\/p
12558 t cont
12559 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12560 t cont
12561 d
12562 :cont
12563 n
12564 s/.\{148\}/&'"$ac_delim"'/g
12565 t clear
12566 :clear
12567 s/\\$//
12568 t bsnlc
12569 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12570 d
12571 :bsnlc
12572 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12573 b cont
12574 ' <confdefs.h | sed '
12575 s/'"$ac_delim"'/"\\\
12576 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12577
12578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12579   for (key in D) D_is_set[key] = 1
12580   FS = "\a"
12581 }
12582 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12583   line = \$ 0
12584   split(line, arg, " ")
12585   if (arg[1] == "#") {
12586     defundef = arg[2]
12587     mac1 = arg[3]
12588   } else {
12589     defundef = substr(arg[1], 2)
12590     mac1 = arg[2]
12591   }
12592   split(mac1, mac2, "(") #)
12593   macro = mac2[1]
12594   prefix = substr(line, 1, index(line, defundef) - 1)
12595   if (D_is_set[macro]) {
12596     # Preserve the white space surrounding the "#".
12597     print prefix "define", macro P[macro] D[macro]
12598     next
12599   } else {
12600     # Replace #undef with comments.  This is necessary, for example,
12601     # in the case of _POSIX_SOURCE, which is predefined and required
12602     # on some systems where configure will not decide to define it.
12603     if (defundef == "undef") {
12604       print "/*", prefix defundef, macro, "*/"
12605       next
12606     }
12607   }
12608 }
12609 { print }
12610 _ACAWK
12611 _ACEOF
12612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12613   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12614 fi # test -n "$CONFIG_HEADERS"
12615
12616
12617 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12618 shift
12619 for ac_tag
12620 do
12621   case $ac_tag in
12622   :[FHLC]) ac_mode=$ac_tag; continue;;
12623   esac
12624   case $ac_mode$ac_tag in
12625   :[FHL]*:*);;
12626   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12627   :[FH]-) ac_tag=-:-;;
12628   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12629   esac
12630   ac_save_IFS=$IFS
12631   IFS=:
12632   set x $ac_tag
12633   IFS=$ac_save_IFS
12634   shift
12635   ac_file=$1
12636   shift
12637
12638   case $ac_mode in
12639   :L) ac_source=$1;;
12640   :[FH])
12641     ac_file_inputs=
12642     for ac_f
12643     do
12644       case $ac_f in
12645       -) ac_f="$ac_tmp/stdin";;
12646       *) # Look for the file first in the build tree, then in the source tree
12647          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12648          # because $ac_f cannot contain `:'.
12649          test -f "$ac_f" ||
12650            case $ac_f in
12651            [\\/$]*) false;;
12652            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12653            esac ||
12654            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12655       esac
12656       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12657       as_fn_append ac_file_inputs " '$ac_f'"
12658     done
12659
12660     # Let's still pretend it is `configure' which instantiates (i.e., don't
12661     # use $as_me), people would be surprised to read:
12662     #    /* config.h.  Generated by config.status.  */
12663     configure_input='Generated from '`
12664           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12665         `' by configure.'
12666     if test x"$ac_file" != x-; then
12667       configure_input="$ac_file.  $configure_input"
12668       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12669 $as_echo "$as_me: creating $ac_file" >&6;}
12670     fi
12671     # Neutralize special characters interpreted by sed in replacement strings.
12672     case $configure_input in #(
12673     *\&* | *\|* | *\\* )
12674        ac_sed_conf_input=`$as_echo "$configure_input" |
12675        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12676     *) ac_sed_conf_input=$configure_input;;
12677     esac
12678
12679     case $ac_tag in
12680     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12681       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12682     esac
12683     ;;
12684   esac
12685
12686   ac_dir=`$as_dirname -- "$ac_file" ||
12687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12688          X"$ac_file" : 'X\(//\)[^/]' \| \
12689          X"$ac_file" : 'X\(//\)$' \| \
12690          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12691 $as_echo X"$ac_file" |
12692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12693             s//\1/
12694             q
12695           }
12696           /^X\(\/\/\)[^/].*/{
12697             s//\1/
12698             q
12699           }
12700           /^X\(\/\/\)$/{
12701             s//\1/
12702             q
12703           }
12704           /^X\(\/\).*/{
12705             s//\1/
12706             q
12707           }
12708           s/.*/./; q'`
12709   as_dir="$ac_dir"; as_fn_mkdir_p
12710   ac_builddir=.
12711
12712 case "$ac_dir" in
12713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12714 *)
12715   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12716   # A ".." for each directory in $ac_dir_suffix.
12717   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12718   case $ac_top_builddir_sub in
12719   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12720   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12721   esac ;;
12722 esac
12723 ac_abs_top_builddir=$ac_pwd
12724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12725 # for backward compatibility:
12726 ac_top_builddir=$ac_top_build_prefix
12727
12728 case $srcdir in
12729   .)  # We are building in place.
12730     ac_srcdir=.
12731     ac_top_srcdir=$ac_top_builddir_sub
12732     ac_abs_top_srcdir=$ac_pwd ;;
12733   [\\/]* | ?:[\\/]* )  # Absolute name.
12734     ac_srcdir=$srcdir$ac_dir_suffix;
12735     ac_top_srcdir=$srcdir
12736     ac_abs_top_srcdir=$srcdir ;;
12737   *) # Relative name.
12738     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12739     ac_top_srcdir=$ac_top_build_prefix$srcdir
12740     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12741 esac
12742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12743
12744
12745   case $ac_mode in
12746   :F)
12747   #
12748   # CONFIG_FILE
12749   #
12750
12751   case $INSTALL in
12752   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12753   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12754   esac
12755 _ACEOF
12756
12757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12758 # If the template does not know about datarootdir, expand it.
12759 # FIXME: This hack should be removed a few years after 2.60.
12760 ac_datarootdir_hack=; ac_datarootdir_seen=
12761 ac_sed_dataroot='
12762 /datarootdir/ {
12763   p
12764   q
12765 }
12766 /@datadir@/p
12767 /@docdir@/p
12768 /@infodir@/p
12769 /@localedir@/p
12770 /@mandir@/p'
12771 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12772 *datarootdir*) ac_datarootdir_seen=yes;;
12773 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12775 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12776 _ACEOF
12777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12778   ac_datarootdir_hack='
12779   s&@datadir@&$datadir&g
12780   s&@docdir@&$docdir&g
12781   s&@infodir@&$infodir&g
12782   s&@localedir@&$localedir&g
12783   s&@mandir@&$mandir&g
12784   s&\\\${datarootdir}&$datarootdir&g' ;;
12785 esac
12786 _ACEOF
12787
12788 # Neutralize VPATH when `$srcdir' = `.'.
12789 # Shell code in configure.ac might set extrasub.
12790 # FIXME: do we really want to maintain this feature?
12791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12792 ac_sed_extra="$ac_vpsub
12793 $extrasub
12794 _ACEOF
12795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12796 :t
12797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12798 s|@configure_input@|$ac_sed_conf_input|;t t
12799 s&@top_builddir@&$ac_top_builddir_sub&;t t
12800 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12801 s&@srcdir@&$ac_srcdir&;t t
12802 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12803 s&@top_srcdir@&$ac_top_srcdir&;t t
12804 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12805 s&@builddir@&$ac_builddir&;t t
12806 s&@abs_builddir@&$ac_abs_builddir&;t t
12807 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12808 s&@INSTALL@&$ac_INSTALL&;t t
12809 $ac_datarootdir_hack
12810 "
12811 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12812 if $ac_cs_awk_getline; then
12813   $AWK -f "$ac_tmp/subs.awk"
12814 else
12815   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12816 fi \
12817   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12818
12819 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12820   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12821   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12822       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12823   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12824 which seems to be undefined.  Please make sure it is defined" >&5
12825 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12826 which seems to be undefined.  Please make sure it is defined" >&2;}
12827
12828   rm -f "$ac_tmp/stdin"
12829   case $ac_file in
12830   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12831   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12832   esac \
12833   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12834  ;;
12835   :H)
12836   #
12837   # CONFIG_HEADER
12838   #
12839   if test x"$ac_file" != x-; then
12840     {
12841       $as_echo "/* $configure_input  */" \
12842       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12843     } >"$ac_tmp/config.h" \
12844       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12845     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12846       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12847 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12848     else
12849       rm -f "$ac_file"
12850       mv "$ac_tmp/config.h" "$ac_file" \
12851         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12852     fi
12853   else
12854     $as_echo "/* $configure_input  */" \
12855       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12856       || as_fn_error $? "could not create -" "$LINENO" 5
12857   fi
12858  ;;
12859
12860   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12861 $as_echo "$as_me: executing $ac_file commands" >&6;}
12862  ;;
12863   esac
12864
12865
12866   case $ac_file$ac_mode in
12867     "default-1":C)
12868     for ac_file in $CONFIG_FILES; do
12869       # Support "outfile[:infile[:infile...]]"
12870       case "$ac_file" in
12871         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12872       esac
12873       # PO directories have a Makefile.in generated from Makefile.in.in.
12874       case "$ac_file" in */Makefile.in)
12875         # Adjust a relative srcdir.
12876         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12877         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12878         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12879         # In autoconf-2.13 it is called $ac_given_srcdir.
12880         # In autoconf-2.50 it is called $srcdir.
12881         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12882         case "$ac_given_srcdir" in
12883           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12884           /*) top_srcdir="$ac_given_srcdir" ;;
12885           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12886         esac
12887         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12888           rm -f "$ac_dir/POTFILES"
12889           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12890           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12891           POMAKEFILEDEPS="POTFILES.in"
12892           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12893           # on $ac_dir but don't depend on user-specified configuration
12894           # parameters.
12895           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12896             # The LINGUAS file contains the set of available languages.
12897             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12898               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12899             fi
12900             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12901             # Hide the ALL_LINGUAS assigment from automake.
12902             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12903             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12904           else
12905             # The set of available languages was given in configure.in.
12906             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12907           fi
12908           # Compute POFILES
12909           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12910           # Compute UPDATEPOFILES
12911           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12912           # Compute DUMMYPOFILES
12913           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12914           # Compute GMOFILES
12915           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12916           case "$ac_given_srcdir" in
12917             .) srcdirpre= ;;
12918             *) srcdirpre='$(srcdir)/' ;;
12919           esac
12920           POFILES=
12921           UPDATEPOFILES=
12922           DUMMYPOFILES=
12923           GMOFILES=
12924           for lang in $ALL_LINGUAS; do
12925             POFILES="$POFILES $srcdirpre$lang.po"
12926             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12927             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12928             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12929           done
12930           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12931           # environment variable.
12932           INST_LINGUAS=
12933           if test -n "$ALL_LINGUAS"; then
12934             for presentlang in $ALL_LINGUAS; do
12935               useit=no
12936               if test "%UNSET%" != "$LINGUAS"; then
12937                 desiredlanguages="$LINGUAS"
12938               else
12939                 desiredlanguages="$ALL_LINGUAS"
12940               fi
12941               for desiredlang in $desiredlanguages; do
12942                 # Use the presentlang catalog if desiredlang is
12943                 #   a. equal to presentlang, or
12944                 #   b. a variant of presentlang (because in this case,
12945                 #      presentlang can be used as a fallback for messages
12946                 #      which are not translated in the desiredlang catalog).
12947                 case "$desiredlang" in
12948                   "$presentlang"*) useit=yes;;
12949                 esac
12950               done
12951               if test $useit = yes; then
12952                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12953               fi
12954             done
12955           fi
12956           CATALOGS=
12957           if test -n "$INST_LINGUAS"; then
12958             for lang in $INST_LINGUAS; do
12959               CATALOGS="$CATALOGS $lang.gmo"
12960             done
12961           fi
12962           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12963           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"
12964           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12965             if test -f "$f"; then
12966               case "$f" in
12967                 *.orig | *.bak | *~) ;;
12968                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12969               esac
12970             fi
12971           done
12972         fi
12973         ;;
12974       esac
12975     done ;;
12976
12977   esac
12978 done # for ac_tag
12979
12980
12981 as_fn_exit 0
12982 _ACEOF
12983 ac_clean_files=$ac_clean_files_save
12984
12985 test $ac_write_fail = 0 ||
12986   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12987
12988
12989 # configure is writing to config.log, and then calls config.status.
12990 # config.status does its own redirection, appending to config.log.
12991 # Unfortunately, on DOS this fails, as config.log is still kept open
12992 # by configure, so config.status won't be able to write to it; its
12993 # output is simply discarded.  So we exec the FD to /dev/null,
12994 # effectively closing config.log, so it can be properly (re)opened and
12995 # appended to by config.status.  When coming back to configure, we
12996 # need to make the FD available again.
12997 if test "$no_create" != yes; then
12998   ac_cs_success=:
12999   ac_config_status_args=
13000   test "$silent" = yes &&
13001     ac_config_status_args="$ac_config_status_args --quiet"
13002   exec 5>/dev/null
13003   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13004   exec 5>>config.log
13005   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13006   # would make configure fail if this is the last instruction.
13007   $ac_cs_success || as_fn_exit 1
13008 fi
13009 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13010   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13011 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13012 fi
13013
13014 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi