Whamcloud - gitweb
Revert "aclocal.m4: update to newer versions of autoconf macros"
[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 MKINSTALLDIRS
628 INCLUDES
629 DO_TEST_SUITE
630 ET_DIR
631 SS_DIR
632 LDFLAG_STATIC
633 root_sysconfdir
634 root_libdir
635 root_sbindir
636 root_bindir
637 root_prefix
638 UNIX_CMT
639 CYGWIN_CMT
640 LINUX_CMT
641 UNI_DIFF_OPTS
642 SEM_INIT_LIB
643 SOCKET_LIB
644 SIZEOF_OFF_T
645 SIZEOF_LONG_LONG
646 SIZEOF_LONG
647 SIZEOF_INT
648 SIZEOF_SHORT
649 BUILD_CC
650 MAKEINFO
651 STRIP
652 AR
653 LDCONFIG
654 PERL
655 SED
656 AWK
657 CHMOD
658 RM
659 CP
660 MV
661 LN_S
662 LN
663 ifNotGNUmake
664 ifGNUmake
665 BINARY_TYPE
666 POSUB
667 LTLIBINTL
668 LIBINTL
669 INTLLIBS
670 INTL_LIBTOOL_SUFFIX_PREFIX
671 INTLOBJS
672 GENCAT
673 INSTOBJEXT
674 DATADIRNAME
675 CATOBJEXT
676 USE_INCLUDED_LIBINTL
677 BUILD_INCLUDED_LIBINTL
678 INTLBISON
679 LTLIBICONV
680 LIBICONV
681 HAVE_WPRINTF
682 HAVE_SNPRINTF
683 HAVE_ASPRINTF
684 HAVE_POSIX_PRINTF
685 GLIBC21
686 ALLOCA
687 EGREP
688 GREP
689 RANLIB
690 MSGMERGE
691 XGETTEXT
692 GMSGFMT
693 MSGFMT
694 USE_NLS
695 MKINSTALLDIRS
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 SET_MAKE
700 VERSION
701 PACKAGE
702 GETTEXT_PACKAGE
703 UUIDD_CMT
704 E2INITRD_MAN
705 E2INITRD_PROG
706 FSCK_MAN
707 FSCK_PROG
708 DEFRAG_CMT
709 RESIZER_CMT
710 IMAGER_CMT
711 DEBUGFS_CMT
712 QUOTA_CMT
713 DEPPROFILED_LIBQUOTA
714 PROFILED_LIBQUOTA
715 DEPSTATIC_LIBQUOTA
716 STATIC_LIBQUOTA
717 DEPLIBQUOTA
718 LIBQUOTA
719 QUOTA_MAN_COMMENT
720 BLKID_CMT
721 DEPPROFILED_LIBBLKID
722 PROFILED_LIBBLKID
723 DEPSTATIC_LIBBLKID
724 STATIC_LIBBLKID
725 DEPLIBBLKID
726 LIBBLKID
727 UUID_CMT
728 DEPPROFILED_LIBUUID
729 PROFILED_LIBUUID
730 DEPSTATIC_LIBUUID
731 STATIC_LIBUUID
732 DEPLIBUUID
733 LIBUUID
734 PKG_CONFIG
735 TEST_IO_CMT
736 PRIVATE_LIBS_CMT
737 LDFLAG_DYNAMIC
738 PROFILED_LIB_EXT
739 STATIC_LIB_EXT
740 LIB_EXT
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_LIBRARY
818 ASM_TYPES_HEADER
819 PUBLIC_CONFIG_HEADER'
820 ac_user_opts='
821 enable_option_checking
822 with_diet_libc
823 with_cc
824 with_ccopts
825 with_ldopts
826 with_root_prefix
827 enable_maintainer_mode
828 enable_symlink_install
829 enable_relative_symlinks
830 enable_symlink_relative_symlinks
831 enable_symlink_build
832 enable_verbose_makecmds
833 enable_compression
834 enable_htree
835 enable_elf_shlibs
836 enable_bsd_shlibs
837 enable_profile
838 enable_gcov
839 enable_jbd_debug
840 enable_blkid_debug
841 enable_testio_debug
842 enable_libuuid
843 enable_libblkid
844 enable_quota
845 enable_backtrace
846 enable_debugfs
847 enable_imager
848 enable_resizer
849 enable_defrag
850 enable_fsck
851 enable_e2initrd_helper
852 enable_tls
853 enable_uuidd
854 enable_nls
855 with_gnu_ld
856 enable_rpath
857 with_libiconv_prefix
858 with_included_gettext
859 with_libintl_prefix
860 with_multiarch
861 '
862       ac_precious_vars='build_alias
863 host_alias
864 target_alias
865 CC
866 CFLAGS
867 LDFLAGS
868 LIBS
869 CPPFLAGS
870 CPP
871 PKG_CONFIG'
872
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926   # If the previous option needs an argument, assign it.
927   if test -n "$ac_prev"; then
928     eval $ac_prev=\$ac_option
929     ac_prev=
930     continue
931   fi
932
933   case $ac_option in
934   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935   *=)   ac_optarg= ;;
936   *)    ac_optarg=yes ;;
937   esac
938
939   # Accept the important Cygnus configure options, so we can diagnose typos.
940
941   case $ac_dashdash$ac_option in
942   --)
943     ac_dashdash=yes ;;
944
945   -bindir | --bindir | --bindi | --bind | --bin | --bi)
946     ac_prev=bindir ;;
947   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948     bindir=$ac_optarg ;;
949
950   -build | --build | --buil | --bui | --bu)
951     ac_prev=build_alias ;;
952   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953     build_alias=$ac_optarg ;;
954
955   -cache-file | --cache-file | --cache-fil | --cache-fi \
956   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957     ac_prev=cache_file ;;
958   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960     cache_file=$ac_optarg ;;
961
962   --config-cache | -C)
963     cache_file=config.cache ;;
964
965   -datadir | --datadir | --datadi | --datad)
966     ac_prev=datadir ;;
967   -datadir=* | --datadir=* | --datadi=* | --datad=*)
968     datadir=$ac_optarg ;;
969
970   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971   | --dataroo | --dataro | --datar)
972     ac_prev=datarootdir ;;
973   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975     datarootdir=$ac_optarg ;;
976
977   -disable-* | --disable-*)
978     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979     # Reject names that are not valid shell variable names.
980     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981       as_fn_error $? "invalid feature name: $ac_useropt"
982     ac_useropt_orig=$ac_useropt
983     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984     case $ac_user_opts in
985       *"
986 "enable_$ac_useropt"
987 "*) ;;
988       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989          ac_unrecognized_sep=', ';;
990     esac
991     eval enable_$ac_useropt=no ;;
992
993   -docdir | --docdir | --docdi | --doc | --do)
994     ac_prev=docdir ;;
995   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996     docdir=$ac_optarg ;;
997
998   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999     ac_prev=dvidir ;;
1000   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001     dvidir=$ac_optarg ;;
1002
1003   -enable-* | --enable-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error $? "invalid feature name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021   | --exec | --exe | --ex)
1022     ac_prev=exec_prefix ;;
1023   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025   | --exec=* | --exe=* | --ex=*)
1026     exec_prefix=$ac_optarg ;;
1027
1028   -gas | --gas | --ga | --g)
1029     # Obsolete; use --with-gas.
1030     with_gas=yes ;;
1031
1032   -help | --help | --hel | --he | -h)
1033     ac_init_help=long ;;
1034   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035     ac_init_help=recursive ;;
1036   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037     ac_init_help=short ;;
1038
1039   -host | --host | --hos | --ho)
1040     ac_prev=host_alias ;;
1041   -host=* | --host=* | --hos=* | --ho=*)
1042     host_alias=$ac_optarg ;;
1043
1044   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045     ac_prev=htmldir ;;
1046   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047   | --ht=*)
1048     htmldir=$ac_optarg ;;
1049
1050   -includedir | --includedir | --includedi | --included | --include \
1051   | --includ | --inclu | --incl | --inc)
1052     ac_prev=includedir ;;
1053   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054   | --includ=* | --inclu=* | --incl=* | --inc=*)
1055     includedir=$ac_optarg ;;
1056
1057   -infodir | --infodir | --infodi | --infod | --info | --inf)
1058     ac_prev=infodir ;;
1059   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060     infodir=$ac_optarg ;;
1061
1062   -libdir | --libdir | --libdi | --libd)
1063     ac_prev=libdir ;;
1064   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065     libdir=$ac_optarg ;;
1066
1067   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068   | --libexe | --libex | --libe)
1069     ac_prev=libexecdir ;;
1070   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071   | --libexe=* | --libex=* | --libe=*)
1072     libexecdir=$ac_optarg ;;
1073
1074   -localedir | --localedir | --localedi | --localed | --locale)
1075     ac_prev=localedir ;;
1076   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077     localedir=$ac_optarg ;;
1078
1079   -localstatedir | --localstatedir | --localstatedi | --localstated \
1080   | --localstate | --localstat | --localsta | --localst | --locals)
1081     ac_prev=localstatedir ;;
1082   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084     localstatedir=$ac_optarg ;;
1085
1086   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087     ac_prev=mandir ;;
1088   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089     mandir=$ac_optarg ;;
1090
1091   -nfp | --nfp | --nf)
1092     # Obsolete; use --without-fp.
1093     with_fp=no ;;
1094
1095   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096   | --no-cr | --no-c | -n)
1097     no_create=yes ;;
1098
1099   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101     no_recursion=yes ;;
1102
1103   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105   | --oldin | --oldi | --old | --ol | --o)
1106     ac_prev=oldincludedir ;;
1107   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110     oldincludedir=$ac_optarg ;;
1111
1112   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113     ac_prev=prefix ;;
1114   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115     prefix=$ac_optarg ;;
1116
1117   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118   | --program-pre | --program-pr | --program-p)
1119     ac_prev=program_prefix ;;
1120   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122     program_prefix=$ac_optarg ;;
1123
1124   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125   | --program-suf | --program-su | --program-s)
1126     ac_prev=program_suffix ;;
1127   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129     program_suffix=$ac_optarg ;;
1130
1131   -program-transform-name | --program-transform-name \
1132   | --program-transform-nam | --program-transform-na \
1133   | --program-transform-n | --program-transform- \
1134   | --program-transform | --program-transfor \
1135   | --program-transfo | --program-transf \
1136   | --program-trans | --program-tran \
1137   | --progr-tra | --program-tr | --program-t)
1138     ac_prev=program_transform_name ;;
1139   -program-transform-name=* | --program-transform-name=* \
1140   | --program-transform-nam=* | --program-transform-na=* \
1141   | --program-transform-n=* | --program-transform-=* \
1142   | --program-transform=* | --program-transfor=* \
1143   | --program-transfo=* | --program-transf=* \
1144   | --program-trans=* | --program-tran=* \
1145   | --progr-tra=* | --program-tr=* | --program-t=*)
1146     program_transform_name=$ac_optarg ;;
1147
1148   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149     ac_prev=pdfdir ;;
1150   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151     pdfdir=$ac_optarg ;;
1152
1153   -psdir | --psdir | --psdi | --psd | --ps)
1154     ac_prev=psdir ;;
1155   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156     psdir=$ac_optarg ;;
1157
1158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159   | -silent | --silent | --silen | --sile | --sil)
1160     silent=yes ;;
1161
1162   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163     ac_prev=sbindir ;;
1164   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165   | --sbi=* | --sb=*)
1166     sbindir=$ac_optarg ;;
1167
1168   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170   | --sharedst | --shareds | --shared | --share | --shar \
1171   | --sha | --sh)
1172     ac_prev=sharedstatedir ;;
1173   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176   | --sha=* | --sh=*)
1177     sharedstatedir=$ac_optarg ;;
1178
1179   -site | --site | --sit)
1180     ac_prev=site ;;
1181   -site=* | --site=* | --sit=*)
1182     site=$ac_optarg ;;
1183
1184   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185     ac_prev=srcdir ;;
1186   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187     srcdir=$ac_optarg ;;
1188
1189   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190   | --syscon | --sysco | --sysc | --sys | --sy)
1191     ac_prev=sysconfdir ;;
1192   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194     sysconfdir=$ac_optarg ;;
1195
1196   -target | --target | --targe | --targ | --tar | --ta | --t)
1197     ac_prev=target_alias ;;
1198   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199     target_alias=$ac_optarg ;;
1200
1201   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202     verbose=yes ;;
1203
1204   -version | --version | --versio | --versi | --vers | -V)
1205     ac_init_version=: ;;
1206
1207   -with-* | --with-*)
1208     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209     # Reject names that are not valid shell variable names.
1210     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211       as_fn_error $? "invalid package name: $ac_useropt"
1212     ac_useropt_orig=$ac_useropt
1213     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214     case $ac_user_opts in
1215       *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219          ac_unrecognized_sep=', ';;
1220     esac
1221     eval with_$ac_useropt=\$ac_optarg ;;
1222
1223   -without-* | --without-*)
1224     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227       as_fn_error $? "invalid package name: $ac_useropt"
1228     ac_useropt_orig=$ac_useropt
1229     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230     case $ac_user_opts in
1231       *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235          ac_unrecognized_sep=', ';;
1236     esac
1237     eval with_$ac_useropt=no ;;
1238
1239   --x)
1240     # Obsolete; use --with-x.
1241     with_x=yes ;;
1242
1243   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244   | --x-incl | --x-inc | --x-in | --x-i)
1245     ac_prev=x_includes ;;
1246   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248     x_includes=$ac_optarg ;;
1249
1250   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252     ac_prev=x_libraries ;;
1253   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255     x_libraries=$ac_optarg ;;
1256
1257   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1259     ;;
1260
1261   *=*)
1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263     # Reject names that are not valid shell variable names.
1264     case $ac_envvar in #(
1265       '' | [0-9]* | *[!_$as_cr_alnum]* )
1266       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267     esac
1268     eval $ac_envvar=\$ac_optarg
1269     export $ac_envvar ;;
1270
1271   *)
1272     # FIXME: should be removed in autoconf 3.0.
1273     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277     ;;
1278
1279   esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284   as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288   case $enable_option_checking in
1289     no) ;;
1290     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292   esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297                 datadir sysconfdir sharedstatedir localstatedir includedir \
1298                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299                 libdir localedir mandir
1300 do
1301   eval ac_val=\$$ac_var
1302   # Remove trailing slashes.
1303   case $ac_val in
1304     */ )
1305       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306       eval $ac_var=\$ac_val;;
1307   esac
1308   # Be sure to have absolute directory names.
1309   case $ac_val in
1310     [\\/$]* | ?:[\\/]* )  continue;;
1311     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312   esac
1313   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387         pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390   srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_env_${ac_var}_value=\$${ac_var}
1401   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409   # Omit some internal or obsolete options to make the list less imposing.
1410   # This message is too long to be a string in the A/UX 3.1 sh.
1411   cat <<_ACEOF
1412 \`configure' configures this package to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE.  See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422   -h, --help              display this help and exit
1423       --help=short        display options specific to this package
1424       --help=recursive    display the short help of all the included packages
1425   -V, --version           display version information and exit
1426   -q, --quiet, --silent   do not print \`checking ...' messages
1427       --cache-file=FILE   cache test results in FILE [disabled]
1428   -C, --config-cache      alias for \`--cache-file=config.cache'
1429   -n, --no-create         do not create output files
1430       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433   --prefix=PREFIX         install architecture-independent files in PREFIX
1434                           [$ac_default_prefix]
1435   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1436                           [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446   --bindir=DIR            user executables [EPREFIX/bin]
1447   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1448   --libexecdir=DIR        program executables [EPREFIX/libexec]
1449   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1450   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1451   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1452   --libdir=DIR            object code libraries [EPREFIX/lib]
1453   --includedir=DIR        C header files [PREFIX/include]
1454   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1455   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1456   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1457   --infodir=DIR           info documentation [DATAROOTDIR/info]
1458   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1459   --mandir=DIR            man documentation [DATAROOTDIR/man]
1460   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1461   --htmldir=DIR           html documentation [DOCDIR]
1462   --dvidir=DIR            dvi documentation [DOCDIR]
1463   --pdfdir=DIR            pdf documentation [DOCDIR]
1464   --psdir=DIR             ps documentation [DOCDIR]
1465 _ACEOF
1466
1467   cat <<\_ACEOF
1468
1469 System types:
1470   --build=BUILD     configure for building on BUILD [guessed]
1471   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1472 _ACEOF
1473 fi
1474
1475 if test -n "$ac_init_help"; then
1476
1477   cat <<\_ACEOF
1478
1479 Optional Features:
1480   --disable-option-checking  ignore unrecognized --enable/--with options
1481   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1482   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1483   --enable-maintainer-mode enable makefile rules useful for maintainers
1484   --enable-symlink-install use symlinks when installing instead of hard links
1485   --enable-relative-symlinks use relative symlinks when installing
1486
1487   --enable-symlink-build  use symlinks while building instead of hard links
1488   --enable-verbose-makecmds enable verbose make command output
1489   --enable-compression    enable EXPERIMENTAL compression support
1490   --enable-htree          enable EXPERIMENTAL htree directory support
1491   --enable-elf-shlibs     select ELF shared libraries
1492   --enable-bsd-shlibs     select BSD shared libraries
1493   --enable-profile        build profiling libraries
1494   --enable-gcov           build for coverage testing using gcov
1495   --enable-jbd-debug      enable journal debugging
1496   --enable-blkid-debug    enable blkid debugging
1497   --disable-testio-debug  disable the use of the test I/O manager for debugging
1498   --disable-libuuid       do not build private uuid library
1499   --disable-libblkid      do not build private blkid library
1500   --enable-quota          enable quota support
1501   --disable-backtrace     disable use backtrace
1502   --disable-debugfs       disable support of debugfs program
1503   --disable-imager        disable support of e2image program
1504   --disable-resizer       disable support of e2resize program
1505   --disable-defrag        disable support of e4defrag program
1506   --enable-fsck           build fsck wrapper program
1507   --enable-e2initrd-helper build e2initrd-helper program
1508   --disable-tls           disable use of thread local support
1509   --disable-uuidd         disable building the uuid daemon
1510   --disable-nls           do not use Native Language Support
1511   --disable-rpath         do not hardcode runtime library paths
1512
1513 Optional Packages:
1514   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516   --with-diet-libc        use diet libc
1517   --with-cc               no longer supported, use CC= instead
1518   --with-ccopts           no longer supported, use CFLAGS= instead
1519   --with-ldopts           no longer supported, use LDFLAGS= instead
1520   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1521   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1522   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1523   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1524   --with-included-gettext use the GNU gettext library included here
1525   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1526   --without-libintl-prefix     don't search for libintl in includedir and libdir
1527   --with-multiarch=ARCH specify the multiarch triplet
1528
1529 Some influential environment variables:
1530   CC          C compiler command
1531   CFLAGS      C compiler flags
1532   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1533               nonstandard directory <lib dir>
1534   LIBS        libraries to pass to the linker, e.g. -l<library>
1535   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536               you have headers in a nonstandard directory <include dir>
1537   CPP         C preprocessor
1538   PKG_CONFIG  path to pkg-config utility
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to the package provider.
1544 _ACEOF
1545 ac_status=$?
1546 fi
1547
1548 if test "$ac_init_help" = "recursive"; then
1549   # If there are subdirs, report their specific --help.
1550   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551     test -d "$ac_dir" ||
1552       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553       continue
1554     ac_builddir=.
1555
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *)
1559   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560   # A ".." for each directory in $ac_dir_suffix.
1561   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562   case $ac_top_builddir_sub in
1563   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565   esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1571
1572 case $srcdir in
1573   .)  # We are building in place.
1574     ac_srcdir=.
1575     ac_top_srcdir=$ac_top_builddir_sub
1576     ac_abs_top_srcdir=$ac_pwd ;;
1577   [\\/]* | ?:[\\/]* )  # Absolute name.
1578     ac_srcdir=$srcdir$ac_dir_suffix;
1579     ac_top_srcdir=$srcdir
1580     ac_abs_top_srcdir=$srcdir ;;
1581   *) # Relative name.
1582     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583     ac_top_srcdir=$ac_top_build_prefix$srcdir
1584     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588     cd "$ac_dir" || { ac_status=$?; continue; }
1589     # Check for guested configure.
1590     if test -f "$ac_srcdir/configure.gnu"; then
1591       echo &&
1592       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593     elif test -f "$ac_srcdir/configure"; then
1594       echo &&
1595       $SHELL "$ac_srcdir/configure" --help=recursive
1596     else
1597       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598     fi || ac_status=$?
1599     cd "$ac_pwd" || { ac_status=$?; break; }
1600   done
1601 fi
1602
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605   cat <<\_ACEOF
1606 configure
1607 generated by GNU Autoconf 2.69
1608
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613   exit
1614 fi
1615
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1619
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1624 {
1625   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626   rm -f conftest.$ac_objext
1627   if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630   *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634   (eval "$ac_compile") 2>conftest.err
1635   ac_status=$?
1636   if test -s conftest.err; then
1637     grep -v '^ *+' conftest.err >conftest.er1
1638     cat conftest.er1 >&5
1639     mv -f conftest.er1 conftest.err
1640   fi
1641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642   test $ac_status = 0; } && {
1643          test -z "$ac_c_werror_flag" ||
1644          test ! -s conftest.err
1645        } && test -s conftest.$ac_objext; then :
1646   ac_retval=0
1647 else
1648   $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651         ac_retval=1
1652 fi
1653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654   as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_compile
1657
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   rm -f conftest.$ac_objext conftest$ac_exeext
1665   if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_link") 2>conftest.err
1673   ac_status=$?
1674   if test -s conftest.err; then
1675     grep -v '^ *+' conftest.err >conftest.er1
1676     cat conftest.er1 >&5
1677     mv -f conftest.er1 conftest.err
1678   fi
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } && {
1681          test -z "$ac_c_werror_flag" ||
1682          test ! -s conftest.err
1683        } && test -s conftest$ac_exeext && {
1684          test "$cross_compiling" = yes ||
1685          test -x conftest$ac_exeext
1686        }; then :
1687   ac_retval=0
1688 else
1689   $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692         ac_retval=1
1693 fi
1694   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696   # interfere with the next link command; also delete a directory that is
1697   # left behind by Apple's compiler.  We do this before executing the actions.
1698   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700   as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_link
1703
1704 # ac_fn_c_try_cpp LINENO
1705 # ----------------------
1706 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_cpp ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   if { { ac_try="$ac_cpp conftest.$ac_ext"
1711 case "(($ac_try" in
1712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713   *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1718   ac_status=$?
1719   if test -s conftest.err; then
1720     grep -v '^ *+' conftest.err >conftest.er1
1721     cat conftest.er1 >&5
1722     mv -f conftest.er1 conftest.err
1723   fi
1724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; } > conftest.i && {
1726          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1727          test ! -s conftest.err
1728        }; then :
1729   ac_retval=0
1730 else
1731   $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734     ac_retval=1
1735 fi
1736   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737   as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_cpp
1740
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1745 ac_fn_c_try_run ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_link") 2>&5
1756   ac_status=$?
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759   { { case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_try") 2>&5
1766   ac_status=$?
1767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768   test $ac_status = 0; }; }; then :
1769   ac_retval=0
1770 else
1771   $as_echo "$as_me: program exited with status $ac_status" >&5
1772        $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775        ac_retval=$ac_status
1776 fi
1777   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779   as_fn_set_status $ac_retval
1780
1781 } # ac_fn_c_try_run
1782
1783 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784 # -------------------------------------------
1785 # Tests whether TYPE exists after having included INCLUDES, setting cache
1786 # variable VAR accordingly.
1787 ac_fn_c_check_type ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793   $as_echo_n "(cached) " >&6
1794 else
1795   eval "$3=no"
1796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h.  */
1798 $4
1799 int
1800 main ()
1801 {
1802 if (sizeof ($2))
1803          return 0;
1804   ;
1805   return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 int
1813 main ()
1814 {
1815 if (sizeof (($2)))
1816             return 0;
1817   ;
1818   return 0;
1819 }
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822
1823 else
1824   eval "$3=yes"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_c_check_type
1836
1837 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1838 # -------------------------------------------------------
1839 # Tests whether HEADER exists and can be compiled using the include files in
1840 # INCLUDES, setting the cache variable VAR accordingly.
1841 ac_fn_c_check_header_compile ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847   $as_echo_n "(cached) " >&6
1848 else
1849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h.  */
1851 $4
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855   eval "$3=yes"
1856 else
1857   eval "$3=no"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$3
1862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_header_compile
1867
1868 # ac_fn_c_check_func LINENO FUNC VAR
1869 # ----------------------------------
1870 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1871 ac_fn_c_check_func ()
1872 {
1873   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877   $as_echo_n "(cached) " >&6
1878 else
1879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h.  */
1881 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1883 #define $2 innocuous_$2
1884
1885 /* System header to define __stub macros and hopefully few prototypes,
1886     which can conflict with char $2 (); below.
1887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888     <limits.h> exists even on freestanding compilers.  */
1889
1890 #ifdef __STDC__
1891 # include <limits.h>
1892 #else
1893 # include <assert.h>
1894 #endif
1895
1896 #undef $2
1897
1898 /* Override any GCC internal prototype to avoid an error.
1899    Use char because int might match the return type of a GCC
1900    builtin and then its argument prototype would still apply.  */
1901 #ifdef __cplusplus
1902 extern "C"
1903 #endif
1904 char $2 ();
1905 /* The GNU C library defines this for functions which it implements
1906     to always fail with ENOSYS.  Some functions are actually named
1907     something starting with __ and the normal name is an alias.  */
1908 #if defined __stub_$2 || defined __stub___$2
1909 choke me
1910 #endif
1911
1912 int
1913 main ()
1914 {
1915 return $2 ();
1916   ;
1917   return 0;
1918 }
1919 _ACEOF
1920 if ac_fn_c_try_link "$LINENO"; then :
1921   eval "$3=yes"
1922 else
1923   eval "$3=no"
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext \
1926     conftest$ac_exeext conftest.$ac_ext
1927 fi
1928 eval ac_res=\$$3
1929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933 } # ac_fn_c_check_func
1934
1935 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1936 # -------------------------------------------------------
1937 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1938 # the include files in INCLUDES and setting the cache variable VAR
1939 # accordingly.
1940 ac_fn_c_check_header_mongrel ()
1941 {
1942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943   if eval \${$3+:} false; then :
1944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947   $as_echo_n "(cached) " >&6
1948 fi
1949 eval ac_res=\$$3
1950                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 else
1953   # Is the header compilable?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1955 $as_echo_n "checking $2 usability... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 $4
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962   ac_header_compiler=yes
1963 else
1964   ac_header_compiler=no
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1968 $as_echo "$ac_header_compiler" >&6; }
1969
1970 # Is the header present?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1972 $as_echo_n "checking $2 presence... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h.  */
1975 #include <$2>
1976 _ACEOF
1977 if ac_fn_c_try_cpp "$LINENO"; then :
1978   ac_header_preproc=yes
1979 else
1980   ac_header_preproc=no
1981 fi
1982 rm -f conftest.err conftest.i conftest.$ac_ext
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1984 $as_echo "$ac_header_preproc" >&6; }
1985
1986 # So?  What about this header?
1987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1988   yes:no: )
1989     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1990 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1993     ;;
1994   no:yes:* )
1995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1996 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1998 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2000 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2002 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005     ;;
2006 esac
2007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010   $as_echo_n "(cached) " >&6
2011 else
2012   eval "$3=\$ac_header_compiler"
2013 fi
2014 eval ac_res=\$$3
2015                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 fi
2018   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
2020 } # ac_fn_c_check_header_mongrel
2021
2022 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2023 # --------------------------------------------
2024 # Tries to find the compile-time value of EXPR in a program that includes
2025 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2026 # computed
2027 ac_fn_c_compute_int ()
2028 {
2029   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030   if test "$cross_compiling" = yes; then
2031     # Depending upon the size, compute the lo and hi bounds.
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h.  */
2034 $4
2035 int
2036 main ()
2037 {
2038 static int test_array [1 - 2 * !(($2) >= 0)];
2039 test_array [0] = 0;
2040 return test_array [0];
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047   ac_lo=0 ac_mid=0
2048   while :; do
2049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h.  */
2051 $4
2052 int
2053 main ()
2054 {
2055 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2056 test_array [0] = 0;
2057 return test_array [0];
2058
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064   ac_hi=$ac_mid; break
2065 else
2066   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2067                         if test $ac_lo -le $ac_mid; then
2068                           ac_lo= ac_hi=
2069                           break
2070                         fi
2071                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074   done
2075 else
2076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h.  */
2078 $4
2079 int
2080 main ()
2081 {
2082 static int test_array [1 - 2 * !(($2) < 0)];
2083 test_array [0] = 0;
2084 return test_array [0];
2085
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091   ac_hi=-1 ac_mid=-1
2092   while :; do
2093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 $4
2096 int
2097 main ()
2098 {
2099 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2100 test_array [0] = 0;
2101 return test_array [0];
2102
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108   ac_lo=$ac_mid; break
2109 else
2110   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2111                         if test $ac_mid -le $ac_hi; then
2112                           ac_lo= ac_hi=
2113                           break
2114                         fi
2115                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118   done
2119 else
2120   ac_lo= ac_hi=
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 # Binary search between lo and hi bounds.
2126 while test "x$ac_lo" != "x$ac_hi"; do
2127   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h.  */
2130 $4
2131 int
2132 main ()
2133 {
2134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2135 test_array [0] = 0;
2136 return test_array [0];
2137
2138   ;
2139   return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143   ac_hi=$ac_mid
2144 else
2145   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 done
2149 case $ac_lo in #((
2150 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2151 '') ac_retval=1 ;;
2152 esac
2153   else
2154     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h.  */
2156 $4
2157 static long int longval () { return $2; }
2158 static unsigned long int ulongval () { return $2; }
2159 #include <stdio.h>
2160 #include <stdlib.h>
2161 int
2162 main ()
2163 {
2164
2165   FILE *f = fopen ("conftest.val", "w");
2166   if (! f)
2167     return 1;
2168   if (($2) < 0)
2169     {
2170       long int i = longval ();
2171       if (i != ($2))
2172         return 1;
2173       fprintf (f, "%ld", i);
2174     }
2175   else
2176     {
2177       unsigned long int i = ulongval ();
2178       if (i != ($2))
2179         return 1;
2180       fprintf (f, "%lu", i);
2181     }
2182   /* Do not output a trailing newline, as this causes \r\n confusion
2183      on some platforms.  */
2184   return ferror (f) || fclose (f) != 0;
2185
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_run "$LINENO"; then :
2191   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2192 else
2193   ac_retval=1
2194 fi
2195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2196   conftest.$ac_objext conftest.beam conftest.$ac_ext
2197 rm -f conftest.val
2198
2199   fi
2200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201   as_fn_set_status $ac_retval
2202
2203 } # ac_fn_c_compute_int
2204
2205 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2206 # ----------------------------------------------------
2207 # Tries to find if the field MEMBER exists in type AGGR, after including
2208 # INCLUDES, setting cache variable VAR accordingly.
2209 ac_fn_c_check_member ()
2210 {
2211   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2213 $as_echo_n "checking for $2.$3... " >&6; }
2214 if eval \${$4+:} false; then :
2215   $as_echo_n "(cached) " >&6
2216 else
2217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $5
2220 int
2221 main ()
2222 {
2223 static $2 ac_aggr;
2224 if (ac_aggr.$3)
2225 return 0;
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231   eval "$4=yes"
2232 else
2233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h.  */
2235 $5
2236 int
2237 main ()
2238 {
2239 static $2 ac_aggr;
2240 if (sizeof ac_aggr.$3)
2241 return 0;
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247   eval "$4=yes"
2248 else
2249   eval "$4=no"
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 fi
2255 eval ac_res=\$$4
2256                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259
2260 } # ac_fn_c_check_member
2261
2262 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2263 # ---------------------------------------------
2264 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2265 # accordingly.
2266 ac_fn_c_check_decl ()
2267 {
2268   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269   as_decl_name=`echo $2|sed 's/ *(.*//'`
2270   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2272 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2273 if eval \${$3+:} false; then :
2274   $as_echo_n "(cached) " >&6
2275 else
2276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h.  */
2278 $4
2279 int
2280 main ()
2281 {
2282 #ifndef $as_decl_name
2283 #ifdef __cplusplus
2284   (void) $as_decl_use;
2285 #else
2286   (void) $as_decl_name;
2287 #endif
2288 #endif
2289
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295   eval "$3=yes"
2296 else
2297   eval "$3=no"
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 fi
2301 eval ac_res=\$$3
2302                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305
2306 } # ac_fn_c_check_decl
2307 cat >config.log <<_ACEOF
2308 This file contains any messages produced by compilers while
2309 running configure, to aid debugging if configure makes a mistake.
2310
2311 It was created by $as_me, which was
2312 generated by GNU Autoconf 2.69.  Invocation command line was
2313
2314   $ $0 $@
2315
2316 _ACEOF
2317 exec 5>>config.log
2318 {
2319 cat <<_ASUNAME
2320 ## --------- ##
2321 ## Platform. ##
2322 ## --------- ##
2323
2324 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2329
2330 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2332
2333 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2334 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2335 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2337 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2338 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2339 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2340
2341 _ASUNAME
2342
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348     $as_echo "PATH: $as_dir"
2349   done
2350 IFS=$as_save_IFS
2351
2352 } >&5
2353
2354 cat >&5 <<_ACEOF
2355
2356
2357 ## ----------- ##
2358 ## Core tests. ##
2359 ## ----------- ##
2360
2361 _ACEOF
2362
2363
2364 # Keep a trace of the command line.
2365 # Strip out --no-create and --no-recursion so they do not pile up.
2366 # Strip out --silent because we don't want to record it for future runs.
2367 # Also quote any args containing shell meta-characters.
2368 # Make two passes to allow for proper duplicate-argument suppression.
2369 ac_configure_args=
2370 ac_configure_args0=
2371 ac_configure_args1=
2372 ac_must_keep_next=false
2373 for ac_pass in 1 2
2374 do
2375   for ac_arg
2376   do
2377     case $ac_arg in
2378     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380     | -silent | --silent | --silen | --sile | --sil)
2381       continue ;;
2382     *\'*)
2383       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384     esac
2385     case $ac_pass in
2386     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387     2)
2388       as_fn_append ac_configure_args1 " '$ac_arg'"
2389       if test $ac_must_keep_next = true; then
2390         ac_must_keep_next=false # Got value, back to normal.
2391       else
2392         case $ac_arg in
2393           *=* | --config-cache | -C | -disable-* | --disable-* \
2394           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396           | -with-* | --with-* | -without-* | --without-* | --x)
2397             case "$ac_configure_args0 " in
2398               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399             esac
2400             ;;
2401           -* ) ac_must_keep_next=true ;;
2402         esac
2403       fi
2404       as_fn_append ac_configure_args " '$ac_arg'"
2405       ;;
2406     esac
2407   done
2408 done
2409 { ac_configure_args0=; unset ac_configure_args0;}
2410 { ac_configure_args1=; unset ac_configure_args1;}
2411
2412 # When interrupted or exit'd, cleanup temporary files, and complete
2413 # config.log.  We remove comments because anyway the quotes in there
2414 # would cause problems or look ugly.
2415 # WARNING: Use '\'' to represent an apostrophe within the trap.
2416 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417 trap 'exit_status=$?
2418   # Save into config.log some information that might help in debugging.
2419   {
2420     echo
2421
2422     $as_echo "## ---------------- ##
2423 ## Cache variables. ##
2424 ## ---------------- ##"
2425     echo
2426     # The following way of writing the cache mishandles newlines in values,
2427 (
2428   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429     eval ac_val=\$$ac_var
2430     case $ac_val in #(
2431     *${as_nl}*)
2432       case $ac_var in #(
2433       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435       esac
2436       case $ac_var in #(
2437       _ | IFS | as_nl) ;; #(
2438       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439       *) { eval $ac_var=; unset $ac_var;} ;;
2440       esac ;;
2441     esac
2442   done
2443   (set) 2>&1 |
2444     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445     *${as_nl}ac_space=\ *)
2446       sed -n \
2447         "s/'\''/'\''\\\\'\'''\''/g;
2448           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449       ;; #(
2450     *)
2451       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2452       ;;
2453     esac |
2454     sort
2455 )
2456     echo
2457
2458     $as_echo "## ----------------- ##
2459 ## Output variables. ##
2460 ## ----------------- ##"
2461     echo
2462     for ac_var in $ac_subst_vars
2463     do
2464       eval ac_val=\$$ac_var
2465       case $ac_val in
2466       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467       esac
2468       $as_echo "$ac_var='\''$ac_val'\''"
2469     done | sort
2470     echo
2471
2472     if test -n "$ac_subst_files"; then
2473       $as_echo "## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##"
2476       echo
2477       for ac_var in $ac_subst_files
2478       do
2479         eval ac_val=\$$ac_var
2480         case $ac_val in
2481         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482         esac
2483         $as_echo "$ac_var='\''$ac_val'\''"
2484       done | sort
2485       echo
2486     fi
2487
2488     if test -s confdefs.h; then
2489       $as_echo "## ----------- ##
2490 ## confdefs.h. ##
2491 ## ----------- ##"
2492       echo
2493       cat confdefs.h
2494       echo
2495     fi
2496     test "$ac_signal" != 0 &&
2497       $as_echo "$as_me: caught signal $ac_signal"
2498     $as_echo "$as_me: exit $exit_status"
2499   } >&5
2500   rm -f core *.core core.conftest.* &&
2501     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2502     exit $exit_status
2503 ' 0
2504 for ac_signal in 1 2 13 15; do
2505   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2506 done
2507 ac_signal=0
2508
2509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2510 rm -f -r conftest* confdefs.h
2511
2512 $as_echo "/* confdefs.h */" > confdefs.h
2513
2514 # Predefined preprocessor variables.
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_NAME "$PACKAGE_NAME"
2518 _ACEOF
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2522 _ACEOF
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2526 _ACEOF
2527
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_STRING "$PACKAGE_STRING"
2530 _ACEOF
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534 _ACEOF
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_URL "$PACKAGE_URL"
2538 _ACEOF
2539
2540
2541 # Let the site file select an alternate cache file if it wants to.
2542 # Prefer an explicitly selected file to automatically selected ones.
2543 ac_site_file1=NONE
2544 ac_site_file2=NONE
2545 if test -n "$CONFIG_SITE"; then
2546   # We do not want a PATH search for config.site.
2547   case $CONFIG_SITE in #((
2548     -*)  ac_site_file1=./$CONFIG_SITE;;
2549     */*) ac_site_file1=$CONFIG_SITE;;
2550     *)   ac_site_file1=./$CONFIG_SITE;;
2551   esac
2552 elif test "x$prefix" != xNONE; then
2553   ac_site_file1=$prefix/share/config.site
2554   ac_site_file2=$prefix/etc/config.site
2555 else
2556   ac_site_file1=$ac_default_prefix/share/config.site
2557   ac_site_file2=$ac_default_prefix/etc/config.site
2558 fi
2559 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2560 do
2561   test "x$ac_site_file" = xNONE && continue
2562   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565     sed 's/^/| /' "$ac_site_file" >&5
2566     . "$ac_site_file" \
2567       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 as_fn_error $? "failed to load site script $ac_site_file
2570 See \`config.log' for more details" "$LINENO" 5; }
2571   fi
2572 done
2573
2574 if test -r "$cache_file"; then
2575   # Some versions of bash will fail to source /dev/null (special files
2576   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2577   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2580     case $cache_file in
2581       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582       *)                      . "./$cache_file";;
2583     esac
2584   fi
2585 else
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2588   >$cache_file
2589 fi
2590
2591 as_fn_append ac_header_list " stdlib.h"
2592 as_fn_append ac_header_list " unistd.h"
2593 as_fn_append ac_header_list " sys/param.h"
2594 # Check that the precious variables saved in the cache have kept the same
2595 # value.
2596 ac_cache_corrupted=false
2597 for ac_var in $ac_precious_vars; do
2598   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599   eval ac_new_set=\$ac_env_${ac_var}_set
2600   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601   eval ac_new_val=\$ac_env_${ac_var}_value
2602   case $ac_old_set,$ac_new_set in
2603     set,)
2604       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2606       ac_cache_corrupted=: ;;
2607     ,set)
2608       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2610       ac_cache_corrupted=: ;;
2611     ,);;
2612     *)
2613       if test "x$ac_old_val" != "x$ac_new_val"; then
2614         # differences in whitespace do not lead to failure.
2615         ac_old_val_w=`echo x $ac_old_val`
2616         ac_new_val_w=`echo x $ac_new_val`
2617         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2619 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2620           ac_cache_corrupted=:
2621         else
2622           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2623 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2624           eval $ac_var=\$ac_old_val
2625         fi
2626         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2627 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2628         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2629 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2630       fi;;
2631   esac
2632   # Pass precious variables to config.status.
2633   if test "$ac_new_set" = set; then
2634     case $ac_new_val in
2635     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636     *) ac_arg=$ac_var=$ac_new_val ;;
2637     esac
2638     case " $ac_configure_args " in
2639       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2640       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2641     esac
2642   fi
2643 done
2644 if $ac_cache_corrupted; then
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2649   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2650 fi
2651 ## -------------------- ##
2652 ## Main body of script. ##
2653 ## -------------------- ##
2654
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
2661
2662
2663 ac_aux_dir=
2664 for ac_dir in config "$srcdir"/config; do
2665   if test -f "$ac_dir/install-sh"; then
2666     ac_aux_dir=$ac_dir
2667     ac_install_sh="$ac_aux_dir/install-sh -c"
2668     break
2669   elif test -f "$ac_dir/install.sh"; then
2670     ac_aux_dir=$ac_dir
2671     ac_install_sh="$ac_aux_dir/install.sh -c"
2672     break
2673   elif test -f "$ac_dir/shtool"; then
2674     ac_aux_dir=$ac_dir
2675     ac_install_sh="$ac_aux_dir/shtool install -c"
2676     break
2677   fi
2678 done
2679 if test -z "$ac_aux_dir"; then
2680   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2681 fi
2682
2683 # These three variables are undocumented and unsupported,
2684 # and are intended to be withdrawn in a future Autoconf release.
2685 # They can cause serious problems if a builder's source tree is in a directory
2686 # whose full name contains unusual characters.
2687 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2688 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2689 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2690
2691
2692 ac_config_headers="$ac_config_headers lib/config.h"
2693
2694
2695 MCONFIG=./MCONFIG
2696
2697 BINARY_TYPE=bin
2698 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2699         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2700 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2701         | tr \" " "`
2702 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2703 MONTH=`echo $DATE | awk -F- '{print $2}'`
2704 YEAR=`echo $DATE | awk -F- '{print $3}'`
2705
2706 if expr $YEAR ">" 1900 > /dev/null ; then
2707         E2FSPROGS_YEAR=$YEAR
2708 elif expr $YEAR ">" 90 >/dev/null ; then
2709         E2FSPROGS_YEAR=19$YEAR
2710 else
2711         E2FSPROGS_YEAR=20$YEAR
2712 fi
2713
2714 case $MONTH in
2715 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2716 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2717 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2718 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2719 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2720 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2721 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2722 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2723 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2724 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2725 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2726 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2727 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2728 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2729 esac
2730
2731 base_ver=`echo $E2FSPROGS_VERSION | \
2732                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2733
2734 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2735
2736 case $E2FSPROGS_VERSION in
2737 *-WIP|pre-*)
2738         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2739         ;;
2740 *)
2741         E2FSPROGS_PKGVER="$base_ver"
2742         ;;
2743 esac
2744
2745 unset DATE MONTH YEAR base_ver pre_vers date_spec
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2747 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2749 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2750
2751
2752
2753
2754
2755 WITH_DIET_LIBC=
2756
2757 # Check whether --with-diet-libc was given.
2758 if test "${with_diet_libc+set}" = set; then :
2759   withval=$with_diet_libc; CC="diet cc -nostdinc"
2760 WITH_DIET_LIBC=yes
2761 if test -z "$LIBS"
2762 then
2763         LIBS="-lcompat"
2764 else
2765         LIBS="$LIBS -lcompat"
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2768 $as_echo "CC=$CC" >&6; }
2769 fi
2770 # Make sure we can run config.sub.
2771 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2772   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2775 $as_echo_n "checking build system type... " >&6; }
2776 if ${ac_cv_build+:} false; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   ac_build_alias=$build_alias
2780 test "x$ac_build_alias" = x &&
2781   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782 test "x$ac_build_alias" = x &&
2783   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2784 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2785   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2786
2787 fi
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2789 $as_echo "$ac_cv_build" >&6; }
2790 case $ac_cv_build in
2791 *-*-*) ;;
2792 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2793 esac
2794 build=$ac_cv_build
2795 ac_save_IFS=$IFS; IFS='-'
2796 set x $ac_cv_build
2797 shift
2798 build_cpu=$1
2799 build_vendor=$2
2800 shift; shift
2801 # Remember, the first character of IFS is used to create $*,
2802 # except with old shells:
2803 build_os=$*
2804 IFS=$ac_save_IFS
2805 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2806
2807
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2809 $as_echo_n "checking host system type... " >&6; }
2810 if ${ac_cv_host+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test "x$host_alias" = x; then
2814   ac_cv_host=$ac_cv_build
2815 else
2816   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2817     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2818 fi
2819
2820 fi
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2822 $as_echo "$ac_cv_host" >&6; }
2823 case $ac_cv_host in
2824 *-*-*) ;;
2825 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2826 esac
2827 host=$ac_cv_host
2828 ac_save_IFS=$IFS; IFS='-'
2829 set x $ac_cv_host
2830 shift
2831 host_cpu=$1
2832 host_vendor=$2
2833 shift; shift
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2836 host_os=$*
2837 IFS=$ac_save_IFS
2838 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2839
2840
2841 DLOPEN_LIB=''
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 if test -n "$ac_tool_prefix"; then
2848   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_CC+:} false; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   if test -n "$CC"; then
2856   ac_cv_prog_CC="$CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_exec_ext in '' $ac_executable_extensions; do
2864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870   done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 CC=$ac_cv_prog_CC
2876 if test -n "$CC"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885 fi
2886 if test -z "$ac_cv_prog_CC"; then
2887   ac_ct_CC=$CC
2888   # Extract the first word of "gcc", so it can be a program name with args.
2889 set dummy gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   if test -n "$ac_ct_CC"; then
2896   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901   IFS=$as_save_IFS
2902   test -z "$as_dir" && as_dir=.
2903     for ac_exec_ext in '' $ac_executable_extensions; do
2904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905     ac_cv_prog_ac_ct_CC="gcc"
2906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907     break 2
2908   fi
2909 done
2910   done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916 if test -n "$ac_ct_CC"; then
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918 $as_echo "$ac_ct_CC" >&6; }
2919 else
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924   if test "x$ac_ct_CC" = x; then
2925     CC=""
2926   else
2927     case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933     CC=$ac_ct_CC
2934   fi
2935 else
2936   CC="$ac_cv_prog_CC"
2937 fi
2938
2939 if test -z "$CC"; then
2940           if test -n "$ac_tool_prefix"; then
2941     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_CC+:} false; then :
2946   $as_echo_n "(cached) " >&6
2947 else
2948   if test -n "$CC"; then
2949   ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954   IFS=$as_save_IFS
2955   test -z "$as_dir" && as_dir=.
2956     for ac_exec_ext in '' $ac_executable_extensions; do
2957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958     ac_cv_prog_CC="${ac_tool_prefix}cc"
2959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960     break 2
2961   fi
2962 done
2963   done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2972 else
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977
2978   fi
2979 fi
2980 if test -z "$CC"; then
2981   # Extract the first word of "cc", so it can be a program name with args.
2982 set dummy cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986   $as_echo_n "(cached) " >&6
2987 else
2988   if test -n "$CC"; then
2989   ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991   ac_prog_rejected=no
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997     for ac_exec_ext in '' $ac_executable_extensions; do
2998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000        ac_prog_rejected=yes
3001        continue
3002      fi
3003     ac_cv_prog_CC="cc"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 if test $ac_prog_rejected = yes; then
3012   # We found a bogon in the path, so make sure we never use it.
3013   set dummy $ac_cv_prog_CC
3014   shift
3015   if test $# != 0; then
3016     # We chose a different compiler from the bogus one.
3017     # However, it has the same basename, so the bogon will be chosen
3018     # first if we set CC to just the basename; use the full file name.
3019     shift
3020     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3021   fi
3022 fi
3023 fi
3024 fi
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3029 else
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 fi
3036 if test -z "$CC"; then
3037   if test -n "$ac_tool_prefix"; then
3038   for ac_prog in cl.exe
3039   do
3040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   if test -n "$CC"; then
3048   ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055     for ac_exec_ext in '' $ac_executable_extensions; do
3056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062   done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077     test -n "$CC" && break
3078   done
3079 fi
3080 if test -z "$CC"; then
3081   ac_ct_CC=$CC
3082   for ac_prog in cl.exe
3083 do
3084   # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$ac_ct_CC"; then
3092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101     ac_cv_prog_ac_ct_CC="$ac_prog"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121   test -n "$ac_ct_CC" && break
3122 done
3123
3124   if test "x$ac_ct_CC" = x; then
3125     CC=""
3126   else
3127     case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133     CC=$ac_ct_CC
3134   fi
3135 fi
3136
3137 fi
3138
3139
3140 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "no acceptable C compiler found in \$PATH
3143 See \`config.log' for more details" "$LINENO" 5; }
3144
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3147 set X $ac_compile
3148 ac_compiler=$2
3149 for ac_option in --version -v -V -qversion; do
3150   { { ac_try="$ac_compiler $ac_option >&5"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3158   ac_status=$?
3159   if test -s conftest.err; then
3160     sed '10a\
3161 ... rest of stderr output deleted ...
3162          10q' conftest.err >conftest.er1
3163     cat conftest.er1 >&5
3164   fi
3165   rm -f conftest.er1 conftest.err
3166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167   test $ac_status = 0; }
3168 done
3169
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h.  */
3172
3173 int
3174 main ()
3175 {
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3185 # of exeext.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3187 $as_echo_n "checking whether the C compiler works... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192
3193 ac_rmfiles=
3194 for ac_file in $ac_files
3195 do
3196   case $ac_file in
3197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199   esac
3200 done
3201 rm -f $ac_rmfiles
3202
3203 if { { ac_try="$ac_link_default"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210   (eval "$ac_link_default") 2>&5
3211   ac_status=$?
3212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213   test $ac_status = 0; }; then :
3214   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3218 # Autoconf.
3219 for ac_file in $ac_files ''
3220 do
3221   test -f "$ac_file" || continue
3222   case $ac_file in
3223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3224         ;;
3225     [ab].out )
3226         # We found the default executable, but exeext='' is most
3227         # certainly right.
3228         break;;
3229     *.* )
3230         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3231         then :; else
3232            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233         fi
3234         # We set ac_cv_exeext here because the later test for it is not
3235         # safe: cross compilers may not add the suffix if given an `-o'
3236         # argument, so we may need to know it at that point already.
3237         # Even if this section looks crufty: it has the advantage of
3238         # actually working.
3239         break;;
3240     * )
3241         break;;
3242   esac
3243 done
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3245
3246 else
3247   ac_file=''
3248 fi
3249 if test -z "$ac_file"; then :
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error 77 "C compiler cannot create executables
3258 See \`config.log' for more details" "$LINENO" 5; }
3259 else
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264 $as_echo_n "checking for C compiler default output file name... " >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3266 $as_echo "$ac_file" >&6; }
3267 ac_exeext=$ac_cv_exeext
3268
3269 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3272 $as_echo_n "checking for suffix of executables... " >&6; }
3273 if { { ac_try="$ac_link"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280   (eval "$ac_link") 2>&5
3281   ac_status=$?
3282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283   test $ac_status = 0; }; then :
3284   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3285 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3286 # work properly (i.e., refer to `conftest.exe'), while it won't with
3287 # `rm'.
3288 for ac_file in conftest.exe conftest conftest.*; do
3289   test -f "$ac_file" || continue
3290   case $ac_file in
3291     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3292     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293           break;;
3294     * ) break;;
3295   esac
3296 done
3297 else
3298   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 fi
3303 rm -f conftest conftest$ac_cv_exeext
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3305 $as_echo "$ac_cv_exeext" >&6; }
3306
3307 rm -f conftest.$ac_ext
3308 EXEEXT=$ac_cv_exeext
3309 ac_exeext=$EXEEXT
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h.  */
3312 #include <stdio.h>
3313 int
3314 main ()
3315 {
3316 FILE *f = fopen ("conftest.out", "w");
3317  return ferror (f) || fclose (f) != 0;
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 ac_clean_files="$ac_clean_files conftest.out"
3324 # Check that the compiler produces executables we can run.  If not, either
3325 # the compiler is broken, or we cross compile.
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3327 $as_echo_n "checking whether we are cross compiling... " >&6; }
3328 if test "$cross_compiling" != yes; then
3329   { { ac_try="$ac_link"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336   (eval "$ac_link") 2>&5
3337   ac_status=$?
3338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339   test $ac_status = 0; }
3340   if { ac_try='./conftest$ac_cv_exeext'
3341   { { case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347   (eval "$ac_try") 2>&5
3348   ac_status=$?
3349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350   test $ac_status = 0; }; }; then
3351     cross_compiling=no
3352   else
3353     if test "$cross_compiling" = maybe; then
3354         cross_compiling=yes
3355     else
3356         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "cannot run C compiled programs.
3359 If you meant to cross compile, use \`--host'.
3360 See \`config.log' for more details" "$LINENO" 5; }
3361     fi
3362   fi
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3365 $as_echo "$cross_compiling" >&6; }
3366
3367 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3368 ac_clean_files=$ac_clean_files_save
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3370 $as_echo_n "checking for suffix of object files... " >&6; }
3371 if ${ac_cv_objext+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h.  */
3376
3377 int
3378 main ()
3379 {
3380
3381   ;
3382   return 0;
3383 }
3384 _ACEOF
3385 rm -f conftest.o conftest.obj
3386 if { { ac_try="$ac_compile"
3387 case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393   (eval "$ac_compile") 2>&5
3394   ac_status=$?
3395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396   test $ac_status = 0; }; then :
3397   for ac_file in conftest.o conftest.obj conftest.*; do
3398   test -f "$ac_file" || continue;
3399   case $ac_file in
3400     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3401     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3402        break;;
3403   esac
3404 done
3405 else
3406   $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot compute suffix of object files: cannot compile
3412 See \`config.log' for more details" "$LINENO" 5; }
3413 fi
3414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3417 $as_echo "$ac_cv_objext" >&6; }
3418 OBJEXT=$ac_cv_objext
3419 ac_objext=$OBJEXT
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3421 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3422 if ${ac_cv_c_compiler_gnu+:} false; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h.  */
3427
3428 int
3429 main ()
3430 {
3431 #ifndef __GNUC__
3432        choke me
3433 #endif
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"; then :
3440   ac_compiler_gnu=yes
3441 else
3442   ac_compiler_gnu=no
3443 fi
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3446
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3449 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3450 if test $ac_compiler_gnu = yes; then
3451   GCC=yes
3452 else
3453   GCC=
3454 fi
3455 ac_test_CFLAGS=${CFLAGS+set}
3456 ac_save_CFLAGS=$CFLAGS
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3458 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3459 if ${ac_cv_prog_cc_g+:} false; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462   ac_save_c_werror_flag=$ac_c_werror_flag
3463    ac_c_werror_flag=yes
3464    ac_cv_prog_cc_g=no
3465    CFLAGS="-g"
3466    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 if ac_fn_c_try_compile "$LINENO"; then :
3478   ac_cv_prog_cc_g=yes
3479 else
3480   CFLAGS=""
3481       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493
3494 else
3495   ac_c_werror_flag=$ac_save_c_werror_flag
3496          CFLAGS="-g"
3497          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h.  */
3499
3500 int
3501 main ()
3502 {
3503
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509   ac_cv_prog_cc_g=yes
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516    ac_c_werror_flag=$ac_save_c_werror_flag
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3519 $as_echo "$ac_cv_prog_cc_g" >&6; }
3520 if test "$ac_test_CFLAGS" = set; then
3521   CFLAGS=$ac_save_CFLAGS
3522 elif test $ac_cv_prog_cc_g = yes; then
3523   if test "$GCC" = yes; then
3524     CFLAGS="-g -O2"
3525   else
3526     CFLAGS="-g"
3527   fi
3528 else
3529   if test "$GCC" = yes; then
3530     CFLAGS="-O2"
3531   else
3532     CFLAGS=
3533   fi
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3536 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3537 if ${ac_cv_prog_cc_c89+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   ac_cv_prog_cc_c89=no
3541 ac_save_CC=$CC
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h.  */
3544 #include <stdarg.h>
3545 #include <stdio.h>
3546 struct stat;
3547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3548 struct buf { int x; };
3549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3550 static char *e (p, i)
3551      char **p;
3552      int i;
3553 {
3554   return p[i];
3555 }
3556 static char *f (char * (*g) (char **, int), char **p, ...)
3557 {
3558   char *s;
3559   va_list v;
3560   va_start (v,p);
3561   s = g (p, va_arg (v,int));
3562   va_end (v);
3563   return s;
3564 }
3565
3566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3567    function prototypes and stuff, but not '\xHH' hex character constants.
3568    These don't provoke an error unfortunately, instead are silently treated
3569    as 'x'.  The following induces an error, until -std is added to get
3570    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3571    array size at least.  It's necessary to write '\x00'==0 to get something
3572    that's true only with -std.  */
3573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3574
3575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3576    inside strings and character constants.  */
3577 #define FOO(x) 'x'
3578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3579
3580 int test (int i, double x);
3581 struct s1 {int (*f) (int a);};
3582 struct s2 {int (*f) (double a);};
3583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3584 int argc;
3585 char **argv;
3586 int
3587 main ()
3588 {
3589 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3595         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 do
3597   CC="$ac_save_CC $ac_arg"
3598   if ac_fn_c_try_compile "$LINENO"; then :
3599   ac_cv_prog_cc_c89=$ac_arg
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext
3602   test "x$ac_cv_prog_cc_c89" != "xno" && break
3603 done
3604 rm -f conftest.$ac_ext
3605 CC=$ac_save_CC
3606
3607 fi
3608 # AC_CACHE_VAL
3609 case "x$ac_cv_prog_cc_c89" in
3610   x)
3611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3612 $as_echo "none needed" >&6; } ;;
3613   xno)
3614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3615 $as_echo "unsupported" >&6; } ;;
3616   *)
3617     CC="$CC $ac_cv_prog_cc_c89"
3618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3620 esac
3621 if test "x$ac_cv_prog_cc_c89" != xno; then :
3622
3623 fi
3624
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3633 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3634 if ${ac_cv_lib_dl_dlopen+:} false; then :
3635   $as_echo_n "(cached) " >&6
3636 else
3637   ac_check_lib_save_LIBS=$LIBS
3638 LIBS="-ldl  $LIBS"
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h.  */
3641
3642 /* Override any GCC internal prototype to avoid an error.
3643    Use char because int might match the return type of a GCC
3644    builtin and then its argument prototype would still apply.  */
3645 #ifdef __cplusplus
3646 extern "C"
3647 #endif
3648 char dlopen ();
3649 int
3650 main ()
3651 {
3652 return dlopen ();
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 if ac_fn_c_try_link "$LINENO"; then :
3658   ac_cv_lib_dl_dlopen=yes
3659 else
3660   ac_cv_lib_dl_dlopen=no
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext \
3663     conftest$ac_exeext conftest.$ac_ext
3664 LIBS=$ac_check_lib_save_LIBS
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3667 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3668 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3669   DLOPEN_LIB=-ldl
3670
3671 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3672
3673 fi
3674
3675
3676
3677 # Check whether --with-cc was given.
3678 if test "${with_cc+set}" = set; then :
3679   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3680 fi
3681
3682
3683 # Check whether --with-ccopts was given.
3684 if test "${with_ccopts+set}" = set; then :
3685   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3686 fi
3687
3688
3689 # Check whether --with-ldopts was given.
3690 if test "${with_ldopts+set}" = set; then :
3691   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3692 fi
3693
3694 ac_ext=c
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699 if test -n "$ac_tool_prefix"; then
3700   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_CC+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   if test -n "$CC"; then
3708   ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715     for ac_exec_ext in '' $ac_executable_extensions; do
3716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722   done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3731 else
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737 fi
3738 if test -z "$ac_cv_prog_CC"; then
3739   ac_ct_CC=$CC
3740   # Extract the first word of "gcc", so it can be a program name with args.
3741 set dummy gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   if test -n "$ac_ct_CC"; then
3748   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755     for ac_exec_ext in '' $ac_executable_extensions; do
3756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_prog_ac_ct_CC="gcc"
3758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762   done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3768 if test -n "$ac_ct_CC"; then
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3770 $as_echo "$ac_ct_CC" >&6; }
3771 else
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776   if test "x$ac_ct_CC" = x; then
3777     CC=""
3778   else
3779     case $cross_compiling:$ac_tool_warned in
3780 yes:)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783 ac_tool_warned=yes ;;
3784 esac
3785     CC=$ac_ct_CC
3786   fi
3787 else
3788   CC="$ac_cv_prog_CC"
3789 fi
3790
3791 if test -z "$CC"; then
3792           if test -n "$ac_tool_prefix"; then
3793     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}cc; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false; then :
3798   $as_echo_n "(cached) " >&6
3799 else
3800   if test -n "$CC"; then
3801   ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808     for ac_exec_ext in '' $ac_executable_extensions; do
3809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810     ac_cv_prog_CC="${ac_tool_prefix}cc"
3811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812     break 2
3813   fi
3814 done
3815   done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 CC=$ac_cv_prog_CC
3821 if test -n "$CC"; then
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3824 else
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829
3830   fi
3831 fi
3832 if test -z "$CC"; then
3833   # Extract the first word of "cc", so it can be a program name with args.
3834 set dummy cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_CC+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   if test -n "$CC"; then
3841   ac_cv_prog_CC="$CC" # Let the user override the test.
3842 else
3843   ac_prog_rejected=no
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847   IFS=$as_save_IFS
3848   test -z "$as_dir" && as_dir=.
3849     for ac_exec_ext in '' $ac_executable_extensions; do
3850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3852        ac_prog_rejected=yes
3853        continue
3854      fi
3855     ac_cv_prog_CC="cc"
3856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860   done
3861 IFS=$as_save_IFS
3862
3863 if test $ac_prog_rejected = yes; then
3864   # We found a bogon in the path, so make sure we never use it.
3865   set dummy $ac_cv_prog_CC
3866   shift
3867   if test $# != 0; then
3868     # We chose a different compiler from the bogus one.
3869     # However, it has the same basename, so the bogon will be chosen
3870     # first if we set CC to just the basename; use the full file name.
3871     shift
3872     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3873   fi
3874 fi
3875 fi
3876 fi
3877 CC=$ac_cv_prog_CC
3878 if test -n "$CC"; then
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880 $as_echo "$CC" >&6; }
3881 else
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3884 fi
3885
3886
3887 fi
3888 if test -z "$CC"; then
3889   if test -n "$ac_tool_prefix"; then
3890   for ac_prog in cl.exe
3891   do
3892     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   if test -n "$CC"; then
3900   ac_cv_prog_CC="$CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_exec_ext in '' $ac_executable_extensions; do
3908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911     break 2
3912   fi
3913 done
3914   done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 CC=$ac_cv_prog_CC
3920 if test -n "$CC"; then
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3923 else
3924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928
3929     test -n "$CC" && break
3930   done
3931 fi
3932 if test -z "$CC"; then
3933   ac_ct_CC=$CC
3934   for ac_prog in cl.exe
3935 do
3936   # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   if test -n "$ac_ct_CC"; then
3944   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951     for ac_exec_ext in '' $ac_executable_extensions; do
3952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953     ac_cv_prog_ac_ct_CC="$ac_prog"
3954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955     break 2
3956   fi
3957 done
3958   done
3959 IFS=$as_save_IFS
3960
3961 fi
3962 fi
3963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3964 if test -n "$ac_ct_CC"; then
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3966 $as_echo "$ac_ct_CC" >&6; }
3967 else
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 fi
3971
3972
3973   test -n "$ac_ct_CC" && break
3974 done
3975
3976   if test "x$ac_ct_CC" = x; then
3977     CC=""
3978   else
3979     case $cross_compiling:$ac_tool_warned in
3980 yes:)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned=yes ;;
3984 esac
3985     CC=$ac_ct_CC
3986   fi
3987 fi
3988
3989 fi
3990
3991
3992 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "no acceptable C compiler found in \$PATH
3995 See \`config.log' for more details" "$LINENO" 5; }
3996
3997 # Provide some information about the compiler.
3998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3999 set X $ac_compile
4000 ac_compiler=$2
4001 for ac_option in --version -v -V -qversion; do
4002   { { ac_try="$ac_compiler $ac_option >&5"
4003 case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4010   ac_status=$?
4011   if test -s conftest.err; then
4012     sed '10a\
4013 ... rest of stderr output deleted ...
4014          10q' conftest.err >conftest.er1
4015     cat conftest.er1 >&5
4016   fi
4017   rm -f conftest.er1 conftest.err
4018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019   test $ac_status = 0; }
4020 done
4021
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4023 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4024 if ${ac_cv_c_compiler_gnu+:} false; then :
4025   $as_echo_n "(cached) " >&6
4026 else
4027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029
4030 int
4031 main ()
4032 {
4033 #ifndef __GNUC__
4034        choke me
4035 #endif
4036
4037   ;
4038   return 0;
4039 }
4040 _ACEOF
4041 if ac_fn_c_try_compile "$LINENO"; then :
4042   ac_compiler_gnu=yes
4043 else
4044   ac_compiler_gnu=no
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4048
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4051 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4052 if test $ac_compiler_gnu = yes; then
4053   GCC=yes
4054 else
4055   GCC=
4056 fi
4057 ac_test_CFLAGS=${CFLAGS+set}
4058 ac_save_CFLAGS=$CFLAGS
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4060 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4061 if ${ac_cv_prog_cc_g+:} false; then :
4062   $as_echo_n "(cached) " >&6
4063 else
4064   ac_save_c_werror_flag=$ac_c_werror_flag
4065    ac_c_werror_flag=yes
4066    ac_cv_prog_cc_g=no
4067    CFLAGS="-g"
4068    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h.  */
4070
4071 int
4072 main ()
4073 {
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 if ac_fn_c_try_compile "$LINENO"; then :
4080   ac_cv_prog_cc_g=yes
4081 else
4082   CFLAGS=""
4083       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h.  */
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095
4096 else
4097   ac_c_werror_flag=$ac_save_c_werror_flag
4098          CFLAGS="-g"
4099          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101
4102 int
4103 main ()
4104 {
4105
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111   ac_cv_prog_cc_g=yes
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 fi
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118    ac_c_werror_flag=$ac_save_c_werror_flag
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4121 $as_echo "$ac_cv_prog_cc_g" >&6; }
4122 if test "$ac_test_CFLAGS" = set; then
4123   CFLAGS=$ac_save_CFLAGS
4124 elif test $ac_cv_prog_cc_g = yes; then
4125   if test "$GCC" = yes; then
4126     CFLAGS="-g -O2"
4127   else
4128     CFLAGS="-g"
4129   fi
4130 else
4131   if test "$GCC" = yes; then
4132     CFLAGS="-O2"
4133   else
4134     CFLAGS=
4135   fi
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4138 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4139 if ${ac_cv_prog_cc_c89+:} false; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142   ac_cv_prog_cc_c89=no
4143 ac_save_CC=$CC
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h.  */
4146 #include <stdarg.h>
4147 #include <stdio.h>
4148 struct stat;
4149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4150 struct buf { int x; };
4151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4152 static char *e (p, i)
4153      char **p;
4154      int i;
4155 {
4156   return p[i];
4157 }
4158 static char *f (char * (*g) (char **, int), char **p, ...)
4159 {
4160   char *s;
4161   va_list v;
4162   va_start (v,p);
4163   s = g (p, va_arg (v,int));
4164   va_end (v);
4165   return s;
4166 }
4167
4168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4169    function prototypes and stuff, but not '\xHH' hex character constants.
4170    These don't provoke an error unfortunately, instead are silently treated
4171    as 'x'.  The following induces an error, until -std is added to get
4172    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4173    array size at least.  It's necessary to write '\x00'==0 to get something
4174    that's true only with -std.  */
4175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4176
4177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4178    inside strings and character constants.  */
4179 #define FOO(x) 'x'
4180 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4181
4182 int test (int i, double x);
4183 struct s1 {int (*f) (int a);};
4184 struct s2 {int (*f) (double a);};
4185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4186 int argc;
4187 char **argv;
4188 int
4189 main ()
4190 {
4191 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4197         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4198 do
4199   CC="$ac_save_CC $ac_arg"
4200   if ac_fn_c_try_compile "$LINENO"; then :
4201   ac_cv_prog_cc_c89=$ac_arg
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext
4204   test "x$ac_cv_prog_cc_c89" != "xno" && break
4205 done
4206 rm -f conftest.$ac_ext
4207 CC=$ac_save_CC
4208
4209 fi
4210 # AC_CACHE_VAL
4211 case "x$ac_cv_prog_cc_c89" in
4212   x)
4213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214 $as_echo "none needed" >&6; } ;;
4215   xno)
4216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4217 $as_echo "unsupported" >&6; } ;;
4218   *)
4219     CC="$CC $ac_cv_prog_cc_c89"
4220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4221 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4222 esac
4223 if test "x$ac_cv_prog_cc_c89" != xno; then :
4224
4225 fi
4226
4227 ac_ext=c
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232
4233 if test "$GCC" = yes; then
4234    RDYNAMIC="-rdynamic"
4235
4236 fi
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4246   CPP=
4247 fi
4248 if test -z "$CPP"; then
4249   if ${ac_cv_prog_CPP+:} false; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252       # Double quotes because CPP needs to be expanded
4253     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4254     do
4255       ac_preproc_ok=false
4256 for ac_c_preproc_warn_flag in '' yes
4257 do
4258   # Use a header file that comes with gcc, so configuring glibc
4259   # with a fresh cross-compiler works.
4260   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261   # <limits.h> exists even on freestanding compilers.
4262   # On the NeXT, cc -E runs the code through the compiler's parser,
4263   # not just through cpp. "Syntax error" is here to catch this case.
4264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h.  */
4266 #ifdef __STDC__
4267 # include <limits.h>
4268 #else
4269 # include <assert.h>
4270 #endif
4271                      Syntax error
4272 _ACEOF
4273 if ac_fn_c_try_cpp "$LINENO"; then :
4274
4275 else
4276   # Broken: fails on valid input.
4277 continue
4278 fi
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4280
4281   # OK, works on sane cases.  Now check whether nonexistent headers
4282   # can be detected and how.
4283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h.  */
4285 #include <ac_nonexistent.h>
4286 _ACEOF
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288   # Broken: success on invalid input.
4289 continue
4290 else
4291   # Passes both tests.
4292 ac_preproc_ok=:
4293 break
4294 fi
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297 done
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.i conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then :
4301   break
4302 fi
4303
4304     done
4305     ac_cv_prog_CPP=$CPP
4306
4307 fi
4308   CPP=$ac_cv_prog_CPP
4309 else
4310   ac_cv_prog_CPP=$CPP
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313 $as_echo "$CPP" >&6; }
4314 ac_preproc_ok=false
4315 for ac_c_preproc_warn_flag in '' yes
4316 do
4317   # Use a header file that comes with gcc, so configuring glibc
4318   # with a fresh cross-compiler works.
4319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320   # <limits.h> exists even on freestanding compilers.
4321   # On the NeXT, cc -E runs the code through the compiler's parser,
4322   # not just through cpp. "Syntax error" is here to catch this case.
4323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h.  */
4325 #ifdef __STDC__
4326 # include <limits.h>
4327 #else
4328 # include <assert.h>
4329 #endif
4330                      Syntax error
4331 _ACEOF
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4333
4334 else
4335   # Broken: fails on valid input.
4336 continue
4337 fi
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4339
4340   # OK, works on sane cases.  Now check whether nonexistent headers
4341   # can be detected and how.
4342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h.  */
4344 #include <ac_nonexistent.h>
4345 _ACEOF
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347   # Broken: success on invalid input.
4348 continue
4349 else
4350   # Passes both tests.
4351 ac_preproc_ok=:
4352 break
4353 fi
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4355
4356 done
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4360
4361 else
4362   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details" "$LINENO" 5; }
4366 fi
4367
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4375 $as_echo_n "checking for additional special compiler flags... " >&6; }
4376 if test "$GCC" = yes
4377 then
4378     case "$host_cpu" in
4379         alpha)          addcflags="-mieee" ;;
4380     esac
4381 fi
4382 if test "x$addcflags" != x
4383 then
4384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4385 $as_echo "$addcflags" >&6; }
4386     CFLAGS="$addcflags $CFLAGS"
4387 else
4388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4389 $as_echo "(none)" >&6; }
4390 fi
4391 LIB_EXT=.a
4392 STATIC_LIB_EXT=.a
4393 PROFILED_LIB_EXT=.a
4394
4395 # Check whether --with-root-prefix was given.
4396 if test "${with_root_prefix+set}" = set; then :
4397   withval=$with_root_prefix; root_prefix=$withval
4398 else
4399   root_prefix=NONE
4400 fi
4401 # Check whether --enable-maintainer-mode was given.
4402 if test "${enable_maintainer_mode+set}" = set; then :
4403   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4404 then
4405         MAINTAINER_CMT=#
4406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4407 $as_echo "Disabling maintainer mode" >&6; }
4408 else
4409         MAINTAINER_CMT=
4410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4411 $as_echo "Enabling maintainer mode" >&6; }
4412 fi
4413
4414 else
4415   MAINTAINER_CMT=#
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4417 $as_echo "Disabling maintainer mode by default" >&6; }
4418
4419 fi
4420
4421
4422 # Check whether --enable-symlink-install was given.
4423 if test "${enable_symlink_install+set}" = set; then :
4424   enableval=$enable_symlink_install; if test "$enableval" = "no"
4425 then
4426         LINK_INSTALL_FLAGS=-f
4427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4428 $as_echo "Disabling symlinks for install" >&6; }
4429 else
4430         LINK_INSTALL_FLAGS=-sf
4431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4432 $as_echo "Enabling symlinks for install" >&6; }
4433 fi
4434
4435 else
4436   LINK_INSTALL_FLAGS=-f
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4438 $as_echo "Disabling symlinks for install by default" >&6; }
4439
4440 fi
4441
4442
4443 relative_symlink_defined=
4444 # Check whether --enable-relative-symlinks was given.
4445 if test "${enable_relative_symlinks+set}" = set; then :
4446   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4447 then
4448         SYMLINK_RELATIVE=
4449         relative_symlink_defined=yes
4450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4451 $as_echo "Disabling relative symlinks for install" >&6; }
4452 else
4453         SYMLINK_RELATIVE=--relative
4454         relative_symlink_defined=yes
4455         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4456 $as_echo "Enabling relative symlinks for install" >&6; }
4457 fi
4458 fi
4459
4460 # Check whether --enable-symlink-relative-symlinks was given.
4461 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4462   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4463 then
4464         SYMLINK_RELATIVE=yes
4465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4466 $as_echo "Disabling relative symlinks for install" >&6; }
4467 else
4468         SYMLINK_RELATIVE=--relative
4469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4470 $as_echo "Enabling relative symlinks for install" >&6; }
4471 fi
4472
4473 else
4474   if test -z "$relative_symlink_defined"
4475 then
4476         SYMLINK_RELATIVE=
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4478 $as_echo "Disabling relative symlinks for install by default" >&6; }
4479 fi
4480
4481 fi
4482
4483
4484 # Check whether --enable-symlink-build was given.
4485 if test "${enable_symlink_build+set}" = set; then :
4486   enableval=$enable_symlink_build; if test "$enableval" = "no"
4487 then
4488         LINK_BUILD_FLAGS=
4489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4490 $as_echo "Disabling symlinks for build" >&6; }
4491 else
4492         LINK_BUILD_FLAGS=-s
4493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4494 $as_echo "Enabling symlinks for build" >&6; }
4495 fi
4496
4497 else
4498   LINK_BUILD_FLAGS=
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4500 $as_echo "Disabling symlinks for build by default" >&6; }
4501
4502 fi
4503
4504
4505 # Check whether --enable-verbose-makecmds was given.
4506 if test "${enable_verbose_makecmds+set}" = set; then :
4507   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4508 then
4509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4510 $as_echo "Disabling verbose make commands" >&6; }
4511         E=@echo
4512         ES=echo
4513         Q=@
4514 else
4515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4516 $as_echo "Enabling verbose make commands" >&6; }
4517         E=@\\#
4518         ES=\\#
4519         Q=
4520 fi
4521
4522 else
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4524 $as_echo "Disabling verbose make commands" >&6; }
4525 E=@echo
4526 ES=echo
4527 Q=@
4528
4529 fi
4530
4531
4532
4533
4534 # Check whether --enable-compression was given.
4535 if test "${enable_compression+set}" = set; then :
4536   enableval=$enable_compression; if test "$enableval" = "no"
4537 then
4538         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4539 $as_echo "Disabling compression support" >&6; }
4540 else
4541
4542 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4543
4544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4545 $as_echo "Enabling compression support" >&6; }
4546         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4547 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4548 fi
4549
4550 else
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4552 $as_echo "Disabling compression support by default" >&6; }
4553
4554 fi
4555
4556
4557 # Check whether --enable-htree was given.
4558 if test "${enable_htree+set}" = set; then :
4559   enableval=$enable_htree; if test "$enableval" = "no"
4560 then
4561         HTREE_CMT=#
4562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4563 $as_echo "Disabling htree directory support" >&6; }
4564 else
4565         HTREE_CMT=
4566         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4567
4568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4569 $as_echo "Enabling htree directory support" >&6; }
4570 fi
4571
4572 else
4573   HTREE_CMT=
4574 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4577 $as_echo "Enabling htree directory support by default" >&6; }
4578
4579 fi
4580
4581
4582 E2_PKG_CONFIG_STATIC=--static
4583 LDFLAG_DYNAMIC=
4584 PRIVATE_LIBS_CMT=
4585 # Check whether --enable-elf-shlibs was given.
4586 if test "${enable_elf_shlibs+set}" = set; then :
4587   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4588 then
4589         ELF_CMT=#
4590         MAKEFILE_ELF=/dev/null
4591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4592 $as_echo "Disabling ELF shared libraries" >&6; }
4593 else
4594         E2_PKG_CONFIG_STATIC=
4595         ELF_CMT=
4596         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4597         case "$host_os" in
4598         solaris2.*)
4599                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4600         ;;
4601         esac
4602         BINARY_TYPE=elfbin
4603         LIB_EXT=.so
4604         PRIVATE_LIBS_CMT=#
4605         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4607 $as_echo "Enabling ELF shared libraries" >&6; }
4608 fi
4609
4610 else
4611   MAKEFILE_ELF=/dev/null
4612 ELF_CMT=#
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4614 $as_echo "Disabling ELF shared libraries by default" >&6; }
4615
4616 fi
4617
4618
4619
4620 # Check whether --enable-bsd-shlibs was given.
4621 if test "${enable_bsd_shlibs+set}" = set; then :
4622   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4623 then
4624         BSDLIB_CMT=#
4625         MAKEFILE_BSDLIB=/dev/null
4626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4627 $as_echo "Disabling BSD shared libraries" >&6; }
4628 else
4629         E2_PKG_CONFIG_STATIC=
4630         BSDLIB_CMT=
4631         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4632         LIB_EXT=.so
4633         case "$host_os" in
4634         darwin*)
4635                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4636                 LIB_EXT=.dylib
4637         ;;
4638         esac
4639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4640 $as_echo "Enabling BSD shared libraries" >&6; }
4641 fi
4642
4643 else
4644   MAKEFILE_BSDLIB=/dev/null
4645 BSDLIB_CMT=#
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4647 $as_echo "Disabling BSD shared libraries by default" >&6; }
4648
4649 fi
4650
4651
4652
4653 # Check whether --enable-profile was given.
4654 if test "${enable_profile+set}" = set; then :
4655   enableval=$enable_profile; if test "$enableval" = "no"
4656 then
4657         PROFILE_CMT=#
4658         MAKEFILE_PROFILE=/dev/null
4659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4660 $as_echo "Disabling profiling libraries" >&6; }
4661 else
4662         PROFILE_CMT=
4663         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4664         PROFILED_LIB_EXT=_p.a
4665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4666 $as_echo "Building profiling libraries" >&6; }
4667 fi
4668
4669 else
4670   PROFILE_CMT=#
4671 MAKEFILE_PROFILE=/dev/null
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4673 $as_echo "Disabling profiling libraries by default" >&6; }
4674
4675 fi
4676
4677
4678
4679 # Check whether --enable-gcov was given.
4680 if test "${enable_gcov+set}" = set; then :
4681   enableval=$enable_gcov; if test "$enableval" = "yes"
4682 then
4683         CFLAGS="-g -fprofile-arcs -ftest-coverage"
4684         LDFLAGS="-fprofile-arcs -ftest-coverage"
4685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4686 $as_echo "Enabling gcov support" >&6; }
4687 fi
4688
4689 fi
4690
4691
4692
4693
4694
4695
4696
4697 # Check whether --enable-jbd-debug was given.
4698 if test "${enable_jbd_debug+set}" = set; then :
4699   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4700 then
4701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4702 $as_echo "Disabling journal debugging" >&6; }
4703 else
4704
4705 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4706
4707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4708 $as_echo "Enabling journal debugging" >&6; }
4709 fi
4710
4711 else
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4713 $as_echo "Disabling journal debugging by default" >&6; }
4714
4715 fi
4716
4717 # Check whether --enable-blkid-debug was given.
4718 if test "${enable_blkid_debug+set}" = set; then :
4719   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4720 then
4721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4722 $as_echo "Disabling blkid debugging" >&6; }
4723 else
4724
4725 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4726
4727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4728 $as_echo "Enabling blkid debugging" >&6; }
4729 fi
4730
4731 else
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4733 $as_echo "Disabling blkid debugging by default" >&6; }
4734
4735 fi
4736
4737 # Check whether --enable-testio-debug was given.
4738 if test "${enable_testio_debug+set}" = set; then :
4739   enableval=$enable_testio_debug;
4740 if test "$enableval" = "no"
4741 then
4742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4743 $as_echo "Disabling testio debugging" >&6; }
4744         TEST_IO_CMT="#"
4745 else
4746         TEST_IO_CMT=
4747         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4748
4749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4750 $as_echo "Enabling testio debugging" >&6; }
4751 fi
4752
4753 else
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4755 $as_echo "Enabling testio debugging by default" >&6; }
4756 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4757
4758 TEST_IO_CMT=
4759
4760 fi
4761
4762
4763
4764
4765 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4766         if test -n "$ac_tool_prefix"; then
4767   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4772   $as_echo_n "(cached) " >&6
4773 else
4774   case $PKG_CONFIG in
4775   [\\/]* | ?:[\\/]*)
4776   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4777   ;;
4778   *)
4779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782   IFS=$as_save_IFS
4783   test -z "$as_dir" && as_dir=.
4784     for ac_exec_ext in '' $ac_executable_extensions; do
4785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788     break 2
4789   fi
4790 done
4791   done
4792 IFS=$as_save_IFS
4793
4794   ;;
4795 esac
4796 fi
4797 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4798 if test -n "$PKG_CONFIG"; then
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4800 $as_echo "$PKG_CONFIG" >&6; }
4801 else
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806
4807 fi
4808 if test -z "$ac_cv_path_PKG_CONFIG"; then
4809   ac_pt_PKG_CONFIG=$PKG_CONFIG
4810   # Extract the first word of "pkg-config", so it can be a program name with args.
4811 set dummy pkg-config; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   case $ac_pt_PKG_CONFIG in
4818   [\\/]* | ?:[\\/]*)
4819   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4820   ;;
4821   *)
4822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825   IFS=$as_save_IFS
4826   test -z "$as_dir" && as_dir=.
4827     for ac_exec_ext in '' $ac_executable_extensions; do
4828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831     break 2
4832   fi
4833 done
4834   done
4835 IFS=$as_save_IFS
4836
4837   ;;
4838 esac
4839 fi
4840 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4841 if test -n "$ac_pt_PKG_CONFIG"; then
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4843 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4844 else
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849   if test "x$ac_pt_PKG_CONFIG" = x; then
4850     PKG_CONFIG=""
4851   else
4852     case $cross_compiling:$ac_tool_warned in
4853 yes:)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856 ac_tool_warned=yes ;;
4857 esac
4858     PKG_CONFIG=$ac_pt_PKG_CONFIG
4859   fi
4860 else
4861   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4862 fi
4863
4864 fi
4865 if test -n "$PKG_CONFIG"; then
4866         _pkg_min_version=0.9.0
4867         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4868 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4869         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4870                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871 $as_echo "yes" >&6; }
4872         else
4873                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875                 PKG_CONFIG=""
4876         fi
4877
4878 fi
4879 LIBUUID=
4880 DEPLIBUUID=
4881 STATIC_LIBUUID=
4882 DEPSTATIC_LIBUUID=
4883 PROFILED_LIBUUID=
4884 DEPPROFILED_LIBUUID=
4885 UUID_CMT=
4886 # Check whether --enable-libuuid was given.
4887 if test "${enable_libuuid+set}" = set; then :
4888   enableval=$enable_libuuid; if test "$enableval" = "no"
4889 then
4890         if test -z "$PKG_CONFIG"; then
4891                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4892         fi
4893
4894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4895 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4896 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4897   $as_echo_n "(cached) " >&6
4898 else
4899   ac_check_lib_save_LIBS=$LIBS
4900 LIBS="-luuid  $LIBS"
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h.  */
4903
4904 /* Override any GCC internal prototype to avoid an error.
4905    Use char because int might match the return type of a GCC
4906    builtin and then its argument prototype would still apply.  */
4907 #ifdef __cplusplus
4908 extern "C"
4909 #endif
4910 char uuid_generate ();
4911 int
4912 main ()
4913 {
4914 return uuid_generate ();
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 if ac_fn_c_try_link "$LINENO"; then :
4920   ac_cv_lib_uuid_uuid_generate=yes
4921 else
4922   ac_cv_lib_uuid_uuid_generate=no
4923 fi
4924 rm -f core conftest.err conftest.$ac_objext \
4925     conftest$ac_exeext conftest.$ac_ext
4926 LIBS=$ac_check_lib_save_LIBS
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4929 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4930 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4931   LIBUUID=`$PKG_CONFIG --libs uuid`;
4932                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4933 else
4934   as_fn_error $? "external uuid library not found" "$LINENO" 5
4935 fi
4936
4937         PROFILED_LIBUUID=$LIBUUID
4938         UUID_CMT=#
4939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4940 $as_echo "Disabling private uuid library" >&6; }
4941 else
4942         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4943         DEPLIBUUID=$LIBUUID
4944         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4945         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4946         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4947         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4949 $as_echo "Enabling private uuid library" >&6; }
4950 fi
4951
4952 else
4953   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4954 DEPLIBUUID=$LIBUUID
4955 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4956 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4957 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4958 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4960 $as_echo "Enabling private uuid library by default" >&6; }
4961
4962 fi
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4974         if test -n "$ac_tool_prefix"; then
4975   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4976 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   case $PKG_CONFIG in
4983   [\\/]* | ?:[\\/]*)
4984   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4985   ;;
4986   *)
4987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992     for ac_exec_ext in '' $ac_executable_extensions; do
4993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999   done
5000 IFS=$as_save_IFS
5001
5002   ;;
5003 esac
5004 fi
5005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5006 if test -n "$PKG_CONFIG"; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5008 $as_echo "$PKG_CONFIG" >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014
5015 fi
5016 if test -z "$ac_cv_path_PKG_CONFIG"; then
5017   ac_pt_PKG_CONFIG=$PKG_CONFIG
5018   # Extract the first word of "pkg-config", so it can be a program name with args.
5019 set dummy pkg-config; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   case $ac_pt_PKG_CONFIG in
5026   [\\/]* | ?:[\\/]*)
5027   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5028   ;;
5029   *)
5030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035     for ac_exec_ext in '' $ac_executable_extensions; do
5036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042   done
5043 IFS=$as_save_IFS
5044
5045   ;;
5046 esac
5047 fi
5048 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5049 if test -n "$ac_pt_PKG_CONFIG"; then
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5051 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5052 else
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056
5057   if test "x$ac_pt_PKG_CONFIG" = x; then
5058     PKG_CONFIG=""
5059   else
5060     case $cross_compiling:$ac_tool_warned in
5061 yes:)
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5064 ac_tool_warned=yes ;;
5065 esac
5066     PKG_CONFIG=$ac_pt_PKG_CONFIG
5067   fi
5068 else
5069   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5070 fi
5071
5072 fi
5073 if test -n "$PKG_CONFIG"; then
5074         _pkg_min_version=0.9.0
5075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5076 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5077         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5078                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5079 $as_echo "yes" >&6; }
5080         else
5081                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083                 PKG_CONFIG=""
5084         fi
5085
5086 fi
5087 LIBBLKID=
5088 DEPLIBBLKID=
5089 STATIC_LIBBLKID=
5090 DEPSTATIC_LIBBLKID=
5091 PROFILED_LIBBLKID=
5092 DEPPROFILED_LIBBLKID=
5093 BLKID_CMT=
5094
5095 # Check whether --enable-libblkid was given.
5096 if test "${enable_libblkid+set}" = set; then :
5097   enableval=$enable_libblkid; if test "$enableval" = "no"
5098 then
5099         if test -z "$PKG_CONFIG"; then
5100                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5101         fi
5102
5103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5104 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5105 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   ac_check_lib_save_LIBS=$LIBS
5109 LIBS="-lblkid -luuid $LIBS"
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h.  */
5112
5113 /* Override any GCC internal prototype to avoid an error.
5114    Use char because int might match the return type of a GCC
5115    builtin and then its argument prototype would still apply.  */
5116 #ifdef __cplusplus
5117 extern "C"
5118 #endif
5119 char blkid_get_cache ();
5120 int
5121 main ()
5122 {
5123 return blkid_get_cache ();
5124   ;
5125   return 0;
5126 }
5127 _ACEOF
5128 if ac_fn_c_try_link "$LINENO"; then :
5129   ac_cv_lib_blkid_blkid_get_cache=yes
5130 else
5131   ac_cv_lib_blkid_blkid_get_cache=no
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext \
5134     conftest$ac_exeext conftest.$ac_ext
5135 LIBS=$ac_check_lib_save_LIBS
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5138 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5139 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5140   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5141                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5142 else
5143   as_fn_error $? "external blkid library not found" "$LINENO" 5
5144 fi
5145
5146         BLKID_CMT=#
5147         PROFILED_LIBBLKID=$LIBBLKID
5148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5149 $as_echo "Disabling private blkid library" >&6; }
5150 else
5151         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5152         DEPLIBBLKID=$LIBBLKID
5153         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5154         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5155         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5156         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5157         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5158
5159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5160 $as_echo "Enabling private blkid library" >&6; }
5161 fi
5162
5163 else
5164   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5165 DEPLIBBLKID=$LIBBLKID
5166 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5167 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5168 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5169 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5170 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5173 $as_echo "Enabling private blkid library by default" >&6; }
5174
5175 fi
5176
5177
5178
5179
5180
5181
5182
5183
5184 QUOTA_MAN_COMMENT='.\"'
5185 QUOTA_CMT=
5186
5187
5188
5189 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5190         if test -n "$ac_tool_prefix"; then
5191   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5192 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   case $PKG_CONFIG in
5199   [\\/]* | ?:[\\/]*)
5200   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5201   ;;
5202   *)
5203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215   done
5216 IFS=$as_save_IFS
5217
5218   ;;
5219 esac
5220 fi
5221 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5222 if test -n "$PKG_CONFIG"; then
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5224 $as_echo "$PKG_CONFIG" >&6; }
5225 else
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 fi
5232 if test -z "$ac_cv_path_PKG_CONFIG"; then
5233   ac_pt_PKG_CONFIG=$PKG_CONFIG
5234   # Extract the first word of "pkg-config", so it can be a program name with args.
5235 set dummy pkg-config; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   case $ac_pt_PKG_CONFIG in
5242   [\\/]* | ?:[\\/]*)
5243   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5244   ;;
5245   *)
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251     for ac_exec_ext in '' $ac_executable_extensions; do
5252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258   done
5259 IFS=$as_save_IFS
5260
5261   ;;
5262 esac
5263 fi
5264 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5265 if test -n "$ac_pt_PKG_CONFIG"; then
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5267 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5268 else
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5271 fi
5272
5273   if test "x$ac_pt_PKG_CONFIG" = x; then
5274     PKG_CONFIG=""
5275   else
5276     case $cross_compiling:$ac_tool_warned in
5277 yes:)
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5280 ac_tool_warned=yes ;;
5281 esac
5282     PKG_CONFIG=$ac_pt_PKG_CONFIG
5283   fi
5284 else
5285   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5286 fi
5287
5288 fi
5289 if test -n "$PKG_CONFIG"; then
5290         _pkg_min_version=0.9.0
5291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5292 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5293         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5294                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295 $as_echo "yes" >&6; }
5296         else
5297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299                 PKG_CONFIG=""
5300         fi
5301
5302 fi
5303
5304 # Check whether --enable-quota was given.
5305 if test "${enable_quota+set}" = set; then :
5306   enableval=$enable_quota; if test "$enableval" = "no"
5307 then
5308         QUOTA_CMT=#
5309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5310 $as_echo "Disabling quota support" >&6; }
5311 else
5312         QUOTA_CMT=
5313         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5314
5315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5316 $as_echo "Enabling quota support" >&6; }
5317         QUOTA_MAN_COMMENT=""
5318
5319 fi
5320
5321 else
5322   QUOTA_CMT=#
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5324 $as_echo "Disabling quota support by default" >&6; }
5325
5326 fi
5327
5328 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5329 DEPLIBQUOTA=$LIBQUOTA
5330 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5331 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5332 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5333 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5334
5335
5336
5337
5338
5339
5340
5341
5342 # Check whether --enable-backtrace was given.
5343 if test "${enable_backtrace+set}" = set; then :
5344   enableval=$enable_backtrace; if test "$enableval" = "no"
5345 then
5346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5347 $as_echo "Disabling use of backtrace" >&6; }
5348         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5349
5350 else
5351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5352 $as_echo "Enabling use of backtrace" >&6; }
5353 fi
5354
5355 else
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5357 $as_echo "Enabling use of backtrace by default" >&6; }
5358
5359 fi
5360
5361 # Check whether --enable-debugfs was given.
5362 if test "${enable_debugfs+set}" = set; then :
5363   enableval=$enable_debugfs; if test "$enableval" = "no"
5364 then
5365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5366 $as_echo "Disabling debugfs support" >&6; }
5367         DEBUGFS_CMT="#"
5368 else
5369         DEBUGFS_CMT=
5370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5371 $as_echo "Enabling debugfs support" >&6; }
5372 fi
5373
5374 else
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5376 $as_echo "Enabling debugfs support by default" >&6; }
5377 DEBUGFS_CMT=
5378
5379 fi
5380
5381
5382 # Check whether --enable-imager was given.
5383 if test "${enable_imager+set}" = set; then :
5384   enableval=$enable_imager; if test "$enableval" = "no"
5385 then
5386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5387 $as_echo "Disabling e2image support" >&6; }
5388         IMAGER_CMT="#"
5389 else
5390         IMAGER_CMT=
5391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5392 $as_echo "Enabling e2image support" >&6; }
5393 fi
5394
5395 else
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5397 $as_echo "Enabling e2image support by default" >&6; }
5398 IMAGER_CMT=
5399
5400 fi
5401
5402
5403 # Check whether --enable-resizer was given.
5404 if test "${enable_resizer+set}" = set; then :
5405   enableval=$enable_resizer; if test "$enableval" = "no"
5406 then
5407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5408 $as_echo "Disabling e2resize support" >&6; }
5409         RESIZER_CMT="#"
5410 else
5411         RESIZER_CMT=
5412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5413 $as_echo "Enabling e2resize support" >&6; }
5414 fi
5415
5416 else
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5418 $as_echo "Enabling e2resize support by default" >&6; }
5419 RESIZER_CMT=
5420
5421 fi
5422
5423
5424 # Check whether --enable-defrag was given.
5425 if test "${enable_defrag+set}" = set; then :
5426   enableval=$enable_defrag; if test "$enableval" = "no"
5427 then
5428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5429 $as_echo "Disabling e4defrag support" >&6; }
5430         DEFRAG_CMT="#"
5431 else
5432         DEFRAG_CMT=
5433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5434 $as_echo "Enabling e4defrag support" >&6; }
5435 fi
5436
5437 else
5438   if test -z "$WITH_DIET_LIBC"
5439 then
5440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5441 $as_echo "Enabling e4defrag support by default" >&6; }
5442         DEFRAG_CMT=
5443 else
5444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5445 $as_echo "Disabling e4defrag support by default" >&6; }
5446         DEFRAG_CMT="#"
5447 fi
5448
5449 fi
5450
5451
5452 # Check whether --enable-fsck was given.
5453 if test "${enable_fsck+set}" = set; then :
5454   enableval=$enable_fsck; if test "$enableval" = "no"
5455 then
5456         FSCK_PROG='' FSCK_MAN=''
5457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5458 $as_echo "Not building fsck wrapper" >&6; }
5459 else
5460         FSCK_PROG=fsck FSCK_MAN=fsck.8
5461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5462 $as_echo "Building fsck wrapper" >&6; }
5463 fi
5464
5465 else
5466   case "$host_os" in
5467   gnu*)
5468     FSCK_PROG='' FSCK_MAN=''
5469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5470 $as_echo "Not building fsck wrapper by default" >&6; }
5471     ;;
5472   *)
5473     FSCK_PROG=fsck FSCK_MAN=fsck.8
5474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5475 $as_echo "Building fsck wrapper by default" >&6; }
5476 esac
5477
5478 fi
5479
5480
5481
5482 # Check whether --enable-e2initrd-helper was given.
5483 if test "${enable_e2initrd_helper+set}" = set; then :
5484   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5485 then
5486         E2INITRD_PROG='' E2INITRD_MAN=''
5487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5488 $as_echo "Not building e2initrd helper" >&6; }
5489 else
5490         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5492 $as_echo "Building e2initrd helper" >&6; }
5493 fi
5494
5495 else
5496   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5498 $as_echo "Building e2initrd helper by default" >&6; }
5499
5500 fi
5501
5502
5503
5504 # Check whether --enable-tls was given.
5505 if test "${enable_tls+set}" = set; then :
5506   enableval=$enable_tls; if test "$enableval" = "no"
5507 then
5508         try_tls=""
5509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5510 $as_echo "Disabling thread local support" >&6; }
5511 else
5512         try_tls="yes"
5513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5514 $as_echo "Enabling thread local support" >&6; }
5515 fi
5516
5517 else
5518   if test -n "$WITH_DIET_LIBC"
5519 then
5520         try_tls=""
5521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5522 $as_echo "Diet libc does not support thread local support" >&6; }
5523 else
5524         try_tls="yes"
5525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5526 $as_echo "Try using thread local support by default" >&6; }
5527 fi
5528
5529 fi
5530
5531 if test "$try_tls" = "yes"
5532 then
5533
5534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5535 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5536   if ${ac_cv_tls+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539
5540     ax_tls_keywords="__thread __declspec(thread) none"
5541     for ax_tls_keyword in $ax_tls_keywords; do
5542        case $ax_tls_keyword in
5543           none) ac_cv_tls=none ; break ;;
5544           *)
5545              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h.  */
5547 #include <stdlib.h>
5548                  static void
5549                  foo(void) {
5550                  static  $ax_tls_keyword  int bar;
5551                  exit(1);
5552                  }
5553 int
5554 main ()
5555 {
5556
5557   ;
5558   return 0;
5559 }
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562   ac_cv_tls=$ax_tls_keyword ; break
5563 else
5564   ac_cv_tls=none
5565
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568           esac
5569     done
5570
5571 fi
5572
5573
5574   if test "$ac_cv_tls" != "none"; then
5575
5576 cat >>confdefs.h <<_ACEOF
5577 #define TLS $ac_cv_tls
5578 _ACEOF
5579
5580   fi
5581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5582 $as_echo "$ac_cv_tls" >&6; }
5583
5584 fi
5585
5586 # Check whether --enable-uuidd was given.
5587 if test "${enable_uuidd+set}" = set; then :
5588   enableval=$enable_uuidd; if test "$enableval" = "no"
5589 then
5590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5591 $as_echo "Not building uuidd" >&6; }
5592         UUIDD_CMT="#"
5593 else
5594         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5595
5596         UUIDD_CMT=""
5597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5598 $as_echo "Building uuidd" >&6; }
5599 fi
5600
5601 else
5602   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5603
5604 if test -z "$UUID_CMT"
5605 then
5606         UUIDD_CMT=""
5607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5608 $as_echo "Building uuidd by default" >&6; }
5609 else
5610         UUIDD_CMT="#"
5611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5612 $as_echo "Disabling uuidd by default" >&6; }
5613 fi
5614
5615 fi
5616
5617
5618 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5619
5620 GETTEXT_PACKAGE=e2fsprogs
5621 PACKAGE=e2fsprogs
5622 VERSION="$E2FSPROGS_VERSION"
5623 VERSION=0.14.1
5624
5625 cat >>confdefs.h <<_ACEOF
5626 #define PACKAGE "$PACKAGE"
5627 _ACEOF
5628
5629
5630 cat >>confdefs.h <<_ACEOF
5631 #define VERSION "$VERSION"
5632 _ACEOF
5633
5634
5635
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5639 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5640 set x ${MAKE-make}
5641 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5642 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   cat >conftest.make <<\_ACEOF
5646 SHELL = /bin/sh
5647 all:
5648         @echo '@@@%%%=$(MAKE)=@@@%%%'
5649 _ACEOF
5650 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5651 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5652   *@@@%%%=?*=@@@%%%*)
5653     eval ac_cv_prog_make_${ac_make}_set=yes;;
5654   *)
5655     eval ac_cv_prog_make_${ac_make}_set=no;;
5656 esac
5657 rm -f conftest.make
5658 fi
5659 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661 $as_echo "yes" >&6; }
5662   SET_MAKE=
5663 else
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666   SET_MAKE="MAKE=${MAKE-make}"
5667 fi
5668
5669 # Find a good install program.  We prefer a C program (faster),
5670 # so one script is as good as another.  But avoid the broken or
5671 # incompatible versions:
5672 # SysV /etc/install, /usr/sbin/install
5673 # SunOS /usr/etc/install
5674 # IRIX /sbin/install
5675 # AIX /bin/install
5676 # AmigaOS /C/install, which installs bootblocks on floppy discs
5677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5680 # OS/2's system install, which has a completely different semantic
5681 # ./install, which can be erroneously created by make from ./install.sh.
5682 # Reject install programs that cannot install multiple files.
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5684 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5685 if test -z "$INSTALL"; then
5686 if ${ac_cv_path_install+:} false; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692   IFS=$as_save_IFS
5693   test -z "$as_dir" && as_dir=.
5694     # Account for people who put trailing slashes in PATH elements.
5695 case $as_dir/ in #((
5696   ./ | .// | /[cC]/* | \
5697   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5698   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5699   /usr/ucb/* ) ;;
5700   *)
5701     # OSF1 and SCO ODT 3.0 have their own names for install.
5702     # Don't use installbsd from OSF since it installs stuff as root
5703     # by default.
5704     for ac_prog in ginstall scoinst install; do
5705       for ac_exec_ext in '' $ac_executable_extensions; do
5706         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5707           if test $ac_prog = install &&
5708             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5709             # AIX install.  It has an incompatible calling convention.
5710             :
5711           elif test $ac_prog = install &&
5712             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5713             # program-specific install script used by HP pwplus--don't use.
5714             :
5715           else
5716             rm -rf conftest.one conftest.two conftest.dir
5717             echo one > conftest.one
5718             echo two > conftest.two
5719             mkdir conftest.dir
5720             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5721               test -s conftest.one && test -s conftest.two &&
5722               test -s conftest.dir/conftest.one &&
5723               test -s conftest.dir/conftest.two
5724             then
5725               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5726               break 3
5727             fi
5728           fi
5729         fi
5730       done
5731     done
5732     ;;
5733 esac
5734
5735   done
5736 IFS=$as_save_IFS
5737
5738 rm -rf conftest.one conftest.two conftest.dir
5739
5740 fi
5741   if test "${ac_cv_path_install+set}" = set; then
5742     INSTALL=$ac_cv_path_install
5743   else
5744     # As a last resort, use the slow shell script.  Don't cache a
5745     # value for INSTALL within a source directory, because that will
5746     # break other packages using the cache if that directory is
5747     # removed, or if the value is a relative name.
5748     INSTALL=$ac_install_sh
5749   fi
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5752 $as_echo "$INSTALL" >&6; }
5753
5754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5755 # It thinks the first close brace ends the variable substitution.
5756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5757
5758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5759
5760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5761
5762
5763         MKINSTALLDIRS=
5764   if test -n "$ac_aux_dir"; then
5765     case "$ac_aux_dir" in
5766       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5767       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5768     esac
5769   fi
5770   if test -z "$MKINSTALLDIRS"; then
5771     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5772   fi
5773
5774
5775
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5777 $as_echo_n "checking whether NLS is requested... " >&6; }
5778     # Check whether --enable-nls was given.
5779 if test "${enable_nls+set}" = set; then :
5780   enableval=$enable_nls; USE_NLS=$enableval
5781 else
5782   USE_NLS=yes
5783 fi
5784
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5786 $as_echo "$USE_NLS" >&6; }
5787
5788
5789
5790
5791
5792
5793 # Prepare PATH_SEPARATOR.
5794 # The user is always right.
5795 if test "${PATH_SEPARATOR+set}" != set; then
5796   echo "#! /bin/sh" >conf$$.sh
5797   echo  "exit 0"   >>conf$$.sh
5798   chmod +x conf$$.sh
5799   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5800     PATH_SEPARATOR=';'
5801   else
5802     PATH_SEPARATOR=:
5803   fi
5804   rm -f conf$$.sh
5805 fi
5806
5807 # Find out how to test for executable files. Don't use a zero-byte file,
5808 # as systems may use methods other than mode bits to determine executability.
5809 cat >conf$$.file <<_ASEOF
5810 #! /bin/sh
5811 exit 0
5812 _ASEOF
5813 chmod +x conf$$.file
5814 if test -x conf$$.file >/dev/null 2>&1; then
5815   ac_executable_p="test -x"
5816 else
5817   ac_executable_p="test -f"
5818 fi
5819 rm -f conf$$.file
5820
5821 # Extract the first word of "msgfmt", so it can be a program name with args.
5822 set dummy msgfmt; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if ${ac_cv_path_MSGFMT+:} false; then :
5826   $as_echo_n "(cached) " >&6
5827 else
5828   case "$MSGFMT" in
5829   [\\/]* | ?:[\\/]*)
5830     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5831     ;;
5832   *)
5833     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5834     for ac_dir in $PATH; do
5835       IFS="$ac_save_IFS"
5836       test -z "$ac_dir" && ac_dir=.
5837       for ac_exec_ext in '' $ac_executable_extensions; do
5838         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5839           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5840      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5841             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5842             break 2
5843           fi
5844         fi
5845       done
5846     done
5847     IFS="$ac_save_IFS"
5848   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5849     ;;
5850 esac
5851 fi
5852 MSGFMT="$ac_cv_path_MSGFMT"
5853 if test "$MSGFMT" != ":"; then
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5855 $as_echo "$MSGFMT" >&6; }
5856 else
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 fi
5860
5861   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5862 set dummy gmsgfmt; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if ${ac_cv_path_GMSGFMT+:} false; then :
5866   $as_echo_n "(cached) " >&6
5867 else
5868   case $GMSGFMT in
5869   [\\/]* | ?:[\\/]*)
5870   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5871   ;;
5872   *)
5873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878     for ac_exec_ext in '' $ac_executable_extensions; do
5879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885   done
5886 IFS=$as_save_IFS
5887
5888   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5889   ;;
5890 esac
5891 fi
5892 GMSGFMT=$ac_cv_path_GMSGFMT
5893 if test -n "$GMSGFMT"; then
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5895 $as_echo "$GMSGFMT" >&6; }
5896 else
5897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5899 fi
5900
5901
5902
5903
5904 # Prepare PATH_SEPARATOR.
5905 # The user is always right.
5906 if test "${PATH_SEPARATOR+set}" != set; then
5907   echo "#! /bin/sh" >conf$$.sh
5908   echo  "exit 0"   >>conf$$.sh
5909   chmod +x conf$$.sh
5910   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5911     PATH_SEPARATOR=';'
5912   else
5913     PATH_SEPARATOR=:
5914   fi
5915   rm -f conf$$.sh
5916 fi
5917
5918 # Find out how to test for executable files. Don't use a zero-byte file,
5919 # as systems may use methods other than mode bits to determine executability.
5920 cat >conf$$.file <<_ASEOF
5921 #! /bin/sh
5922 exit 0
5923 _ASEOF
5924 chmod +x conf$$.file
5925 if test -x conf$$.file >/dev/null 2>&1; then
5926   ac_executable_p="test -x"
5927 else
5928   ac_executable_p="test -f"
5929 fi
5930 rm -f conf$$.file
5931
5932 # Extract the first word of "xgettext", so it can be a program name with args.
5933 set dummy xgettext; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_path_XGETTEXT+:} false; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   case "$XGETTEXT" in
5940   [\\/]* | ?:[\\/]*)
5941     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5942     ;;
5943   *)
5944     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5945     for ac_dir in $PATH; do
5946       IFS="$ac_save_IFS"
5947       test -z "$ac_dir" && ac_dir=.
5948       for ac_exec_ext in '' $ac_executable_extensions; do
5949         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5950           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5951      (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
5952             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5953             break 2
5954           fi
5955         fi
5956       done
5957     done
5958     IFS="$ac_save_IFS"
5959   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5960     ;;
5961 esac
5962 fi
5963 XGETTEXT="$ac_cv_path_XGETTEXT"
5964 if test "$XGETTEXT" != ":"; then
5965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5966 $as_echo "$XGETTEXT" >&6; }
5967 else
5968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5970 fi
5971
5972     rm -f messages.po
5973
5974
5975 # Prepare PATH_SEPARATOR.
5976 # The user is always right.
5977 if test "${PATH_SEPARATOR+set}" != set; then
5978   echo "#! /bin/sh" >conf$$.sh
5979   echo  "exit 0"   >>conf$$.sh
5980   chmod +x conf$$.sh
5981   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5982     PATH_SEPARATOR=';'
5983   else
5984     PATH_SEPARATOR=:
5985   fi
5986   rm -f conf$$.sh
5987 fi
5988
5989 # Find out how to test for executable files. Don't use a zero-byte file,
5990 # as systems may use methods other than mode bits to determine executability.
5991 cat >conf$$.file <<_ASEOF
5992 #! /bin/sh
5993 exit 0
5994 _ASEOF
5995 chmod +x conf$$.file
5996 if test -x conf$$.file >/dev/null 2>&1; then
5997   ac_executable_p="test -x"
5998 else
5999   ac_executable_p="test -f"
6000 fi
6001 rm -f conf$$.file
6002
6003 # Extract the first word of "msgmerge", so it can be a program name with args.
6004 set dummy msgmerge; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_path_MSGMERGE+:} false; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   case "$MSGMERGE" in
6011   [\\/]* | ?:[\\/]*)
6012     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6013     ;;
6014   *)
6015     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6016     for ac_dir in $PATH; do
6017       IFS="$ac_save_IFS"
6018       test -z "$ac_dir" && ac_dir=.
6019       for ac_exec_ext in '' $ac_executable_extensions; do
6020         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6021           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6022             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6023             break 2
6024           fi
6025         fi
6026       done
6027     done
6028     IFS="$ac_save_IFS"
6029   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6030     ;;
6031 esac
6032 fi
6033 MSGMERGE="$ac_cv_path_MSGMERGE"
6034 if test "$MSGMERGE" != ":"; then
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6036 $as_echo "$MSGMERGE" >&6; }
6037 else
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042
6043       if test "$GMSGFMT" != ":"; then
6044             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6045        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6046       : ;
6047     else
6048       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6050 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6051       GMSGFMT=":"
6052     fi
6053   fi
6054
6055       if test "$XGETTEXT" != ":"; then
6056             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6057        (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
6058       : ;
6059     else
6060       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6061 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6062       XGETTEXT=":"
6063     fi
6064         rm -f messages.po
6065   fi
6066
6067   ac_config_commands="$ac_config_commands default-1"
6068
6069
6070 if test -n "$ac_tool_prefix"; then
6071   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_RANLIB+:} false; then :
6076   $as_echo_n "(cached) " >&6
6077 else
6078   if test -n "$RANLIB"; then
6079   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086     for ac_exec_ext in '' $ac_executable_extensions; do
6087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093   done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 RANLIB=$ac_cv_prog_RANLIB
6099 if test -n "$RANLIB"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6101 $as_echo "$RANLIB" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107
6108 fi
6109 if test -z "$ac_cv_prog_RANLIB"; then
6110   ac_ct_RANLIB=$RANLIB
6111   # Extract the first word of "ranlib", so it can be a program name with args.
6112 set dummy ranlib; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6116   $as_echo_n "(cached) " >&6
6117 else
6118   if test -n "$ac_ct_RANLIB"; then
6119   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126     for ac_exec_ext in '' $ac_executable_extensions; do
6127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128     ac_cv_prog_ac_ct_RANLIB="ranlib"
6129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130     break 2
6131   fi
6132 done
6133   done
6134 IFS=$as_save_IFS
6135
6136 fi
6137 fi
6138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6139 if test -n "$ac_ct_RANLIB"; then
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6141 $as_echo "$ac_ct_RANLIB" >&6; }
6142 else
6143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6145 fi
6146
6147   if test "x$ac_ct_RANLIB" = x; then
6148     RANLIB=":"
6149   else
6150     case $cross_compiling:$ac_tool_warned in
6151 yes:)
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6154 ac_tool_warned=yes ;;
6155 esac
6156     RANLIB=$ac_ct_RANLIB
6157   fi
6158 else
6159   RANLIB="$ac_cv_prog_RANLIB"
6160 fi
6161
6162
6163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6164 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6165 if ${ac_cv_lib_cposix_strerror+:} false; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   ac_check_lib_save_LIBS=$LIBS
6169 LIBS="-lcposix  $LIBS"
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h.  */
6172
6173 /* Override any GCC internal prototype to avoid an error.
6174    Use char because int might match the return type of a GCC
6175    builtin and then its argument prototype would still apply.  */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 char strerror ();
6180 int
6181 main ()
6182 {
6183 return strerror ();
6184   ;
6185   return 0;
6186 }
6187 _ACEOF
6188 if ac_fn_c_try_link "$LINENO"; then :
6189   ac_cv_lib_cposix_strerror=yes
6190 else
6191   ac_cv_lib_cposix_strerror=no
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext \
6194     conftest$ac_exeext conftest.$ac_ext
6195 LIBS=$ac_check_lib_save_LIBS
6196 fi
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6198 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6199 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6200   LIBS="$LIBS -lcposix"
6201 fi
6202
6203
6204
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6207 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6208 if ${ac_cv_path_GREP+:} false; then :
6209   $as_echo_n "(cached) " >&6
6210 else
6211   if test -z "$GREP"; then
6212   ac_path_GREP_found=false
6213   # Loop through the user's path and test for each of PROGNAME-LIST
6214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6216 do
6217   IFS=$as_save_IFS
6218   test -z "$as_dir" && as_dir=.
6219     for ac_prog in grep ggrep; do
6220     for ac_exec_ext in '' $ac_executable_extensions; do
6221       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6222       as_fn_executable_p "$ac_path_GREP" || continue
6223 # Check for GNU ac_path_GREP and select it if it is found.
6224   # Check for GNU $ac_path_GREP
6225 case `"$ac_path_GREP" --version 2>&1` in
6226 *GNU*)
6227   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6228 *)
6229   ac_count=0
6230   $as_echo_n 0123456789 >"conftest.in"
6231   while :
6232   do
6233     cat "conftest.in" "conftest.in" >"conftest.tmp"
6234     mv "conftest.tmp" "conftest.in"
6235     cp "conftest.in" "conftest.nl"
6236     $as_echo 'GREP' >> "conftest.nl"
6237     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6238     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6239     as_fn_arith $ac_count + 1 && ac_count=$as_val
6240     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6241       # Best one so far, save it but keep looking for a better one
6242       ac_cv_path_GREP="$ac_path_GREP"
6243       ac_path_GREP_max=$ac_count
6244     fi
6245     # 10*(2^10) chars as input seems more than enough
6246     test $ac_count -gt 10 && break
6247   done
6248   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6249 esac
6250
6251       $ac_path_GREP_found && break 3
6252     done
6253   done
6254   done
6255 IFS=$as_save_IFS
6256   if test -z "$ac_cv_path_GREP"; then
6257     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6258   fi
6259 else
6260   ac_cv_path_GREP=$GREP
6261 fi
6262
6263 fi
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6265 $as_echo "$ac_cv_path_GREP" >&6; }
6266  GREP="$ac_cv_path_GREP"
6267
6268
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6270 $as_echo_n "checking for egrep... " >&6; }
6271 if ${ac_cv_path_EGREP+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6275    then ac_cv_path_EGREP="$GREP -E"
6276    else
6277      if test -z "$EGREP"; then
6278   ac_path_EGREP_found=false
6279   # Loop through the user's path and test for each of PROGNAME-LIST
6280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285     for ac_prog in egrep; do
6286     for ac_exec_ext in '' $ac_executable_extensions; do
6287       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6288       as_fn_executable_p "$ac_path_EGREP" || continue
6289 # Check for GNU ac_path_EGREP and select it if it is found.
6290   # Check for GNU $ac_path_EGREP
6291 case `"$ac_path_EGREP" --version 2>&1` in
6292 *GNU*)
6293   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6294 *)
6295   ac_count=0
6296   $as_echo_n 0123456789 >"conftest.in"
6297   while :
6298   do
6299     cat "conftest.in" "conftest.in" >"conftest.tmp"
6300     mv "conftest.tmp" "conftest.in"
6301     cp "conftest.in" "conftest.nl"
6302     $as_echo 'EGREP' >> "conftest.nl"
6303     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6304     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6305     as_fn_arith $ac_count + 1 && ac_count=$as_val
6306     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6307       # Best one so far, save it but keep looking for a better one
6308       ac_cv_path_EGREP="$ac_path_EGREP"
6309       ac_path_EGREP_max=$ac_count
6310     fi
6311     # 10*(2^10) chars as input seems more than enough
6312     test $ac_count -gt 10 && break
6313   done
6314   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6315 esac
6316
6317       $ac_path_EGREP_found && break 3
6318     done
6319   done
6320   done
6321 IFS=$as_save_IFS
6322   if test -z "$ac_cv_path_EGREP"; then
6323     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6324   fi
6325 else
6326   ac_cv_path_EGREP=$EGREP
6327 fi
6328
6329    fi
6330 fi
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6332 $as_echo "$ac_cv_path_EGREP" >&6; }
6333  EGREP="$ac_cv_path_EGREP"
6334
6335
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6337 $as_echo_n "checking for ANSI C header files... " >&6; }
6338 if ${ac_cv_header_stdc+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h.  */
6343 #include <stdlib.h>
6344 #include <stdarg.h>
6345 #include <string.h>
6346 #include <float.h>
6347
6348 int
6349 main ()
6350 {
6351
6352   ;
6353   return 0;
6354 }
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357   ac_cv_header_stdc=yes
6358 else
6359   ac_cv_header_stdc=no
6360 fi
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362
6363 if test $ac_cv_header_stdc = yes; then
6364   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h.  */
6367 #include <string.h>
6368
6369 _ACEOF
6370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6371   $EGREP "memchr" >/dev/null 2>&1; then :
6372
6373 else
6374   ac_cv_header_stdc=no
6375 fi
6376 rm -f conftest*
6377
6378 fi
6379
6380 if test $ac_cv_header_stdc = yes; then
6381   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h.  */
6384 #include <stdlib.h>
6385
6386 _ACEOF
6387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388   $EGREP "free" >/dev/null 2>&1; then :
6389
6390 else
6391   ac_cv_header_stdc=no
6392 fi
6393 rm -f conftest*
6394
6395 fi
6396
6397 if test $ac_cv_header_stdc = yes; then
6398   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6399   if test "$cross_compiling" = yes; then :
6400   :
6401 else
6402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h.  */
6404 #include <ctype.h>
6405 #include <stdlib.h>
6406 #if ((' ' & 0x0FF) == 0x020)
6407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6409 #else
6410 # define ISLOWER(c) \
6411                    (('a' <= (c) && (c) <= 'i') \
6412                      || ('j' <= (c) && (c) <= 'r') \
6413                      || ('s' <= (c) && (c) <= 'z'))
6414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6415 #endif
6416
6417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6418 int
6419 main ()
6420 {
6421   int i;
6422   for (i = 0; i < 256; i++)
6423     if (XOR (islower (i), ISLOWER (i))
6424         || toupper (i) != TOUPPER (i))
6425       return 2;
6426   return 0;
6427 }
6428 _ACEOF
6429 if ac_fn_c_try_run "$LINENO"; then :
6430
6431 else
6432   ac_cv_header_stdc=no
6433 fi
6434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6435   conftest.$ac_objext conftest.beam conftest.$ac_ext
6436 fi
6437
6438 fi
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6441 $as_echo "$ac_cv_header_stdc" >&6; }
6442 if test $ac_cv_header_stdc = yes; then
6443
6444 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6445
6446 fi
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6449 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6450 if ${ac_cv_c_const+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h.  */
6455
6456 int
6457 main ()
6458 {
6459
6460 #ifndef __cplusplus
6461   /* Ultrix mips cc rejects this sort of thing.  */
6462   typedef int charset[2];
6463   const charset cs = { 0, 0 };
6464   /* SunOS 4.1.1 cc rejects this.  */
6465   char const *const *pcpcc;
6466   char **ppc;
6467   /* NEC SVR4.0.2 mips cc rejects this.  */
6468   struct point {int x, y;};
6469   static struct point const zero = {0,0};
6470   /* AIX XL C 1.02.0.0 rejects this.
6471      It does not let you subtract one const X* pointer from another in
6472      an arm of an if-expression whose if-part is not a constant
6473      expression */
6474   const char *g = "string";
6475   pcpcc = &g + (g ? g-g : 0);
6476   /* HPUX 7.0 cc rejects these. */
6477   ++pcpcc;
6478   ppc = (char**) pcpcc;
6479   pcpcc = (char const *const *) ppc;
6480   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6481     char tx;
6482     char *t = &tx;
6483     char const *s = 0 ? (char *) 0 : (char const *) 0;
6484
6485     *t++ = 0;
6486     if (s) return 0;
6487   }
6488   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6489     int x[] = {25, 17};
6490     const int *foo = &x[0];
6491     ++foo;
6492   }
6493   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6494     typedef const int *iptr;
6495     iptr p = 0;
6496     ++p;
6497   }
6498   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6499        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6500     struct s { int j; const int *ap[3]; } bx;
6501     struct s *b = &bx; b->j = 5;
6502   }
6503   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6504     const int foo = 10;
6505     if (!foo) return 0;
6506   }
6507   return !cs[0] && !zero.x;
6508 #endif
6509
6510   ;
6511   return 0;
6512 }
6513 _ACEOF
6514 if ac_fn_c_try_compile "$LINENO"; then :
6515   ac_cv_c_const=yes
6516 else
6517   ac_cv_c_const=no
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 fi
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6522 $as_echo "$ac_cv_c_const" >&6; }
6523 if test $ac_cv_c_const = no; then
6524
6525 $as_echo "#define const /**/" >>confdefs.h
6526
6527 fi
6528
6529
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6531 $as_echo_n "checking for signed... " >&6; }
6532 if ${bh_cv_c_signed+:} false; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h.  */
6537
6538 int
6539 main ()
6540 {
6541 signed char x;
6542   ;
6543   return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547   bh_cv_c_signed=yes
6548 else
6549   bh_cv_c_signed=no
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6554 $as_echo "$bh_cv_c_signed" >&6; }
6555   if test $bh_cv_c_signed = no; then
6556
6557 $as_echo "#define signed /**/" >>confdefs.h
6558
6559   fi
6560
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6562 $as_echo_n "checking for inline... " >&6; }
6563 if ${ac_cv_c_inline+:} false; then :
6564   $as_echo_n "(cached) " >&6
6565 else
6566   ac_cv_c_inline=no
6567 for ac_kw in inline __inline__ __inline; do
6568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h.  */
6570 #ifndef __cplusplus
6571 typedef int foo_t;
6572 static $ac_kw foo_t static_foo () {return 0; }
6573 $ac_kw foo_t foo () {return 0; }
6574 #endif
6575
6576 _ACEOF
6577 if ac_fn_c_try_compile "$LINENO"; then :
6578   ac_cv_c_inline=$ac_kw
6579 fi
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581   test "$ac_cv_c_inline" != no && break
6582 done
6583
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6586 $as_echo "$ac_cv_c_inline" >&6; }
6587
6588 case $ac_cv_c_inline in
6589   inline | yes) ;;
6590   *)
6591     case $ac_cv_c_inline in
6592       no) ac_val=;;
6593       *) ac_val=$ac_cv_c_inline;;
6594     esac
6595     cat >>confdefs.h <<_ACEOF
6596 #ifndef __cplusplus
6597 #define inline $ac_val
6598 #endif
6599 _ACEOF
6600     ;;
6601 esac
6602
6603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6605                   inttypes.h stdint.h unistd.h
6606 do :
6607   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6608 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6609 "
6610 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6611   cat >>confdefs.h <<_ACEOF
6612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6613 _ACEOF
6614
6615 fi
6616
6617 done
6618
6619
6620 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6621 if test "x$ac_cv_type_off_t" = xyes; then :
6622
6623 else
6624
6625 cat >>confdefs.h <<_ACEOF
6626 #define off_t long int
6627 _ACEOF
6628
6629 fi
6630
6631 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6632 if test "x$ac_cv_type_size_t" = xyes; then :
6633
6634 else
6635
6636 cat >>confdefs.h <<_ACEOF
6637 #define size_t unsigned int
6638 _ACEOF
6639
6640 fi
6641
6642
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6644 $as_echo_n "checking for long long... " >&6; }
6645 if ${ac_cv_type_long_long+:} false; then :
6646   $as_echo_n "(cached) " >&6
6647 else
6648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h.  */
6650 long long ll = 1LL; int i = 63;
6651 int
6652 main ()
6653 {
6654 long long llmax = (long long) -1;
6655      return ll << i | ll >> i | llmax / ll | llmax % ll;
6656   ;
6657   return 0;
6658 }
6659 _ACEOF
6660 if ac_fn_c_try_link "$LINENO"; then :
6661   ac_cv_type_long_long=yes
6662 else
6663   ac_cv_type_long_long=no
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext \
6666     conftest$ac_exeext conftest.$ac_ext
6667 fi
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6669 $as_echo "$ac_cv_type_long_long" >&6; }
6670   if test $ac_cv_type_long_long = yes; then
6671
6672 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6673
6674   fi
6675
6676
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6678 $as_echo_n "checking for long double... " >&6; }
6679 if ${gt_cv_c_long_double+:} false; then :
6680   $as_echo_n "(cached) " >&6
6681 else
6682   if test "$GCC" = yes; then
6683        gt_cv_c_long_double=yes
6684      else
6685        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h.  */
6687
6688          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6689          long double foo = 0.0;
6690          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6691          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6692
6693 int
6694 main ()
6695 {
6696
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"; then :
6702   gt_cv_c_long_double=yes
6703 else
6704   gt_cv_c_long_double=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707      fi
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6710 $as_echo "$gt_cv_c_long_double" >&6; }
6711   if test $gt_cv_c_long_double = yes; then
6712
6713 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6714
6715   fi
6716
6717
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6719 $as_echo_n "checking for wchar_t... " >&6; }
6720 if ${gt_cv_c_wchar_t+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h.  */
6725 #include <stddef.h>
6726        wchar_t foo = (wchar_t)'\0';
6727 int
6728 main ()
6729 {
6730
6731   ;
6732   return 0;
6733 }
6734 _ACEOF
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736   gt_cv_c_wchar_t=yes
6737 else
6738   gt_cv_c_wchar_t=no
6739 fi
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 fi
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6743 $as_echo "$gt_cv_c_wchar_t" >&6; }
6744   if test $gt_cv_c_wchar_t = yes; then
6745
6746 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6747
6748   fi
6749
6750
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6752 $as_echo_n "checking for wint_t... " >&6; }
6753 if ${gt_cv_c_wint_t+:} false; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h.  */
6758 #include <wchar.h>
6759        wint_t foo = (wchar_t)'\0';
6760 int
6761 main ()
6762 {
6763
6764   ;
6765   return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769   gt_cv_c_wint_t=yes
6770 else
6771   gt_cv_c_wint_t=no
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 fi
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6776 $as_echo "$gt_cv_c_wint_t" >&6; }
6777   if test $gt_cv_c_wint_t = yes; then
6778
6779 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6780
6781   fi
6782
6783
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6785 $as_echo_n "checking for inttypes.h... " >&6; }
6786 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6787   $as_echo_n "(cached) " >&6
6788 else
6789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h.  */
6791 #include <sys/types.h>
6792 #include <inttypes.h>
6793 int
6794 main ()
6795 {
6796 uintmax_t i = (uintmax_t) -1;
6797   ;
6798   return 0;
6799 }
6800 _ACEOF
6801 if ac_fn_c_try_compile "$LINENO"; then :
6802   jm_ac_cv_header_inttypes_h=yes
6803 else
6804   jm_ac_cv_header_inttypes_h=no
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 fi
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6809 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6810   if test $jm_ac_cv_header_inttypes_h = yes; then
6811
6812 cat >>confdefs.h <<_ACEOF
6813 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6814 _ACEOF
6815
6816   fi
6817
6818
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6820 $as_echo_n "checking for stdint.h... " >&6; }
6821 if ${jm_ac_cv_header_stdint_h+:} false; then :
6822   $as_echo_n "(cached) " >&6
6823 else
6824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h.  */
6826 #include <sys/types.h>
6827 #include <stdint.h>
6828 int
6829 main ()
6830 {
6831 uintmax_t i = (uintmax_t) -1;
6832   ;
6833   return 0;
6834 }
6835 _ACEOF
6836 if ac_fn_c_try_compile "$LINENO"; then :
6837   jm_ac_cv_header_stdint_h=yes
6838 else
6839   jm_ac_cv_header_stdint_h=no
6840 fi
6841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 fi
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6844 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6845   if test $jm_ac_cv_header_stdint_h = yes; then
6846
6847 cat >>confdefs.h <<_ACEOF
6848 #define HAVE_STDINT_H_WITH_UINTMAX 1
6849 _ACEOF
6850
6851   fi
6852
6853
6854
6855
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6857 $as_echo_n "checking for intmax_t... " >&6; }
6858 if ${gt_cv_c_intmax_t+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h.  */
6863
6864 #include <stddef.h>
6865 #include <stdlib.h>
6866 #if HAVE_STDINT_H_WITH_UINTMAX
6867 #include <stdint.h>
6868 #endif
6869 #if HAVE_INTTYPES_H_WITH_UINTMAX
6870 #include <inttypes.h>
6871 #endif
6872
6873 int
6874 main ()
6875 {
6876 intmax_t x = -1;
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"; then :
6882   gt_cv_c_intmax_t=yes
6883 else
6884   gt_cv_c_intmax_t=no
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6889 $as_echo "$gt_cv_c_intmax_t" >&6; }
6890   if test $gt_cv_c_intmax_t = yes; then
6891
6892 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6893
6894   fi
6895
6896
6897
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6899 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6900 if ${gt_cv_func_printf_posix+:} false; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903
6904       if test "$cross_compiling" = yes; then :
6905
6906         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h.  */
6908
6909 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6910   notposix
6911 #endif
6912
6913 _ACEOF
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915   $EGREP "notposix" >/dev/null 2>&1; then :
6916   gt_cv_func_printf_posix="guessing no"
6917 else
6918   gt_cv_func_printf_posix="guessing yes"
6919 fi
6920 rm -f conftest*
6921
6922
6923 else
6924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h.  */
6926
6927 #include <stdio.h>
6928 #include <string.h>
6929 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6930    dollar expansion (possibly an autoconf bug).  */
6931 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6932 static char buf[100];
6933 int main ()
6934 {
6935   sprintf (buf, format, 33, 55);
6936   return (strcmp (buf, "55 33") != 0);
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_run "$LINENO"; then :
6940   gt_cv_func_printf_posix=yes
6941 else
6942   gt_cv_func_printf_posix=no
6943 fi
6944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6945   conftest.$ac_objext conftest.beam conftest.$ac_ext
6946 fi
6947
6948
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6951 $as_echo "$gt_cv_func_printf_posix" >&6; }
6952   case $gt_cv_func_printf_posix in
6953     *yes)
6954
6955 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6956
6957       ;;
6958   esac
6959
6960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6961 # for constant arguments.  Useless!
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6963 $as_echo_n "checking for working alloca.h... " >&6; }
6964 if ${ac_cv_working_alloca_h+:} false; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h.  */
6969 #include <alloca.h>
6970 int
6971 main ()
6972 {
6973 char *p = (char *) alloca (2 * sizeof (int));
6974                           if (p) return 0;
6975   ;
6976   return 0;
6977 }
6978 _ACEOF
6979 if ac_fn_c_try_link "$LINENO"; then :
6980   ac_cv_working_alloca_h=yes
6981 else
6982   ac_cv_working_alloca_h=no
6983 fi
6984 rm -f core conftest.err conftest.$ac_objext \
6985     conftest$ac_exeext conftest.$ac_ext
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6988 $as_echo "$ac_cv_working_alloca_h" >&6; }
6989 if test $ac_cv_working_alloca_h = yes; then
6990
6991 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6992
6993 fi
6994
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6996 $as_echo_n "checking for alloca... " >&6; }
6997 if ${ac_cv_func_alloca_works+:} false; then :
6998   $as_echo_n "(cached) " >&6
6999 else
7000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h.  */
7002 #ifdef __GNUC__
7003 # define alloca __builtin_alloca
7004 #else
7005 # ifdef _MSC_VER
7006 #  include <malloc.h>
7007 #  define alloca _alloca
7008 # else
7009 #  ifdef HAVE_ALLOCA_H
7010 #   include <alloca.h>
7011 #  else
7012 #   ifdef _AIX
7013  #pragma alloca
7014 #   else
7015 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7016 void *alloca (size_t);
7017 #    endif
7018 #   endif
7019 #  endif
7020 # endif
7021 #endif
7022
7023 int
7024 main ()
7025 {
7026 char *p = (char *) alloca (1);
7027                                     if (p) return 0;
7028   ;
7029   return 0;
7030 }
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033   ac_cv_func_alloca_works=yes
7034 else
7035   ac_cv_func_alloca_works=no
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext \
7038     conftest$ac_exeext conftest.$ac_ext
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7041 $as_echo "$ac_cv_func_alloca_works" >&6; }
7042
7043 if test $ac_cv_func_alloca_works = yes; then
7044
7045 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7046
7047 else
7048   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7049 # that cause trouble.  Some versions do not even contain alloca or
7050 # contain a buggy version.  If you still want to use their alloca,
7051 # use ar to extract alloca.o from them instead of compiling alloca.c.
7052
7053 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7054
7055 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7056
7057
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7059 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7060 if ${ac_cv_os_cray+:} false; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h.  */
7065 #if defined CRAY && ! defined CRAY2
7066 webecray
7067 #else
7068 wenotbecray
7069 #endif
7070
7071 _ACEOF
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073   $EGREP "webecray" >/dev/null 2>&1; then :
7074   ac_cv_os_cray=yes
7075 else
7076   ac_cv_os_cray=no
7077 fi
7078 rm -f conftest*
7079
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7082 $as_echo "$ac_cv_os_cray" >&6; }
7083 if test $ac_cv_os_cray = yes; then
7084   for ac_func in _getb67 GETB67 getb67; do
7085     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7087 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7088
7089 cat >>confdefs.h <<_ACEOF
7090 #define CRAY_STACKSEG_END $ac_func
7091 _ACEOF
7092
7093     break
7094 fi
7095
7096   done
7097 fi
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7100 $as_echo_n "checking stack direction for C alloca... " >&6; }
7101 if ${ac_cv_c_stack_direction+:} false; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   if test "$cross_compiling" = yes; then :
7105   ac_cv_c_stack_direction=0
7106 else
7107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h.  */
7109 $ac_includes_default
7110 int
7111 find_stack_direction (int *addr, int depth)
7112 {
7113   int dir, dummy = 0;
7114   if (! addr)
7115     addr = &dummy;
7116   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7117   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7118   return dir + dummy;
7119 }
7120
7121 int
7122 main (int argc, char **argv)
7123 {
7124   return find_stack_direction (0, argc + !argv + 20) < 0;
7125 }
7126 _ACEOF
7127 if ac_fn_c_try_run "$LINENO"; then :
7128   ac_cv_c_stack_direction=1
7129 else
7130   ac_cv_c_stack_direction=-1
7131 fi
7132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7133   conftest.$ac_objext conftest.beam conftest.$ac_ext
7134 fi
7135
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7138 $as_echo "$ac_cv_c_stack_direction" >&6; }
7139 cat >>confdefs.h <<_ACEOF
7140 #define STACK_DIRECTION $ac_cv_c_stack_direction
7141 _ACEOF
7142
7143
7144 fi
7145
7146
7147
7148
7149   for ac_header in $ac_header_list
7150 do :
7151   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7152 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7153 "
7154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7155   cat >>confdefs.h <<_ACEOF
7156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7157 _ACEOF
7158
7159 fi
7160
7161 done
7162
7163
7164
7165
7166
7167
7168
7169
7170 for ac_func in getpagesize
7171 do :
7172   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7173 if test "x$ac_cv_func_getpagesize" = xyes; then :
7174   cat >>confdefs.h <<_ACEOF
7175 #define HAVE_GETPAGESIZE 1
7176 _ACEOF
7177
7178 fi
7179 done
7180
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7182 $as_echo_n "checking for working mmap... " >&6; }
7183 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7184   $as_echo_n "(cached) " >&6
7185 else
7186   if test "$cross_compiling" = yes; then :
7187   ac_cv_func_mmap_fixed_mapped=no
7188 else
7189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h.  */
7191 $ac_includes_default
7192 /* malloc might have been renamed as rpl_malloc. */
7193 #undef malloc
7194
7195 /* Thanks to Mike Haertel and Jim Avera for this test.
7196    Here is a matrix of mmap possibilities:
7197         mmap private not fixed
7198         mmap private fixed at somewhere currently unmapped
7199         mmap private fixed at somewhere already mapped
7200         mmap shared not fixed
7201         mmap shared fixed at somewhere currently unmapped
7202         mmap shared fixed at somewhere already mapped
7203    For private mappings, we should verify that changes cannot be read()
7204    back from the file, nor mmap's back from the file at a different
7205    address.  (There have been systems where private was not correctly
7206    implemented like the infamous i386 svr4.0, and systems where the
7207    VM page cache was not coherent with the file system buffer cache
7208    like early versions of FreeBSD and possibly contemporary NetBSD.)
7209    For shared mappings, we should conversely verify that changes get
7210    propagated back to all the places they're supposed to be.
7211
7212    Grep wants private fixed already mapped.
7213    The main things grep needs to know about mmap are:
7214    * does it exist and is it safe to write into the mmap'd area
7215    * how to use it (BSD variants)  */
7216
7217 #include <fcntl.h>
7218 #include <sys/mman.h>
7219
7220 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7221 char *malloc ();
7222 #endif
7223
7224 /* This mess was copied from the GNU getpagesize.h.  */
7225 #ifndef HAVE_GETPAGESIZE
7226 # ifdef _SC_PAGESIZE
7227 #  define getpagesize() sysconf(_SC_PAGESIZE)
7228 # else /* no _SC_PAGESIZE */
7229 #  ifdef HAVE_SYS_PARAM_H
7230 #   include <sys/param.h>
7231 #   ifdef EXEC_PAGESIZE
7232 #    define getpagesize() EXEC_PAGESIZE
7233 #   else /* no EXEC_PAGESIZE */
7234 #    ifdef NBPG
7235 #     define getpagesize() NBPG * CLSIZE
7236 #     ifndef CLSIZE
7237 #      define CLSIZE 1
7238 #     endif /* no CLSIZE */
7239 #    else /* no NBPG */
7240 #     ifdef NBPC
7241 #      define getpagesize() NBPC
7242 #     else /* no NBPC */
7243 #      ifdef PAGESIZE
7244 #       define getpagesize() PAGESIZE
7245 #      endif /* PAGESIZE */
7246 #     endif /* no NBPC */
7247 #    endif /* no NBPG */
7248 #   endif /* no EXEC_PAGESIZE */
7249 #  else /* no HAVE_SYS_PARAM_H */
7250 #   define getpagesize() 8192   /* punt totally */
7251 #  endif /* no HAVE_SYS_PARAM_H */
7252 # endif /* no _SC_PAGESIZE */
7253
7254 #endif /* no HAVE_GETPAGESIZE */
7255
7256 int
7257 main ()
7258 {
7259   char *data, *data2, *data3;
7260   const char *cdata2;
7261   int i, pagesize;
7262   int fd, fd2;
7263
7264   pagesize = getpagesize ();
7265
7266   /* First, make a file with some known garbage in it. */
7267   data = (char *) malloc (pagesize);
7268   if (!data)
7269     return 1;
7270   for (i = 0; i < pagesize; ++i)
7271     *(data + i) = rand ();
7272   umask (0);
7273   fd = creat ("conftest.mmap", 0600);
7274   if (fd < 0)
7275     return 2;
7276   if (write (fd, data, pagesize) != pagesize)
7277     return 3;
7278   close (fd);
7279
7280   /* Next, check that the tail of a page is zero-filled.  File must have
7281      non-zero length, otherwise we risk SIGBUS for entire page.  */
7282   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7283   if (fd2 < 0)
7284     return 4;
7285   cdata2 = "";
7286   if (write (fd2, cdata2, 1) != 1)
7287     return 5;
7288   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7289   if (data2 == MAP_FAILED)
7290     return 6;
7291   for (i = 0; i < pagesize; ++i)
7292     if (*(data2 + i))
7293       return 7;
7294   close (fd2);
7295   if (munmap (data2, pagesize))
7296     return 8;
7297
7298   /* Next, try to mmap the file at a fixed address which already has
7299      something else allocated at it.  If we can, also make sure that
7300      we see the same garbage.  */
7301   fd = open ("conftest.mmap", O_RDWR);
7302   if (fd < 0)
7303     return 9;
7304   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7305                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7306     return 10;
7307   for (i = 0; i < pagesize; ++i)
7308     if (*(data + i) != *(data2 + i))
7309       return 11;
7310
7311   /* Finally, make sure that changes to the mapped area do not
7312      percolate back to the file as seen by read().  (This is a bug on
7313      some variants of i386 svr4.0.)  */
7314   for (i = 0; i < pagesize; ++i)
7315     *(data2 + i) = *(data2 + i) + 1;
7316   data3 = (char *) malloc (pagesize);
7317   if (!data3)
7318     return 12;
7319   if (read (fd, data3, pagesize) != pagesize)
7320     return 13;
7321   for (i = 0; i < pagesize; ++i)
7322     if (*(data + i) != *(data3 + i))
7323       return 14;
7324   close (fd);
7325   return 0;
7326 }
7327 _ACEOF
7328 if ac_fn_c_try_run "$LINENO"; then :
7329   ac_cv_func_mmap_fixed_mapped=yes
7330 else
7331   ac_cv_func_mmap_fixed_mapped=no
7332 fi
7333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7334   conftest.$ac_objext conftest.beam conftest.$ac_ext
7335 fi
7336
7337 fi
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7339 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7340 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7341
7342 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7343
7344 fi
7345 rm -f conftest.mmap conftest.txt
7346
7347
7348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7349 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7350 if ${ac_cv_gnu_library_2_1+:} false; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h.  */
7355
7356 #include <features.h>
7357 #ifdef __GNU_LIBRARY__
7358  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7359   Lucky GNU user
7360  #endif
7361 #endif
7362
7363 _ACEOF
7364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7365   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7366   ac_cv_gnu_library_2_1=yes
7367 else
7368   ac_cv_gnu_library_2_1=no
7369 fi
7370 rm -f conftest*
7371
7372
7373
7374 fi
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7376 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7377
7378     GLIBC21="$ac_cv_gnu_library_2_1"
7379
7380
7381
7382
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7384 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7385 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388
7389       if test "$cross_compiling" = yes; then :
7390
7391           # Guess based on the CPU.
7392           case "$host_cpu" in
7393             alpha* | i3456786 | m68k | s390*)
7394               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7395             *)
7396               gt_cv_int_divbyzero_sigfpe="guessing no";;
7397           esac
7398
7399 else
7400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h.  */
7402
7403 #include <stdlib.h>
7404 #include <signal.h>
7405
7406 static void
7407 #ifdef __cplusplus
7408 sigfpe_handler (int sig)
7409 #else
7410 sigfpe_handler (sig) int sig;
7411 #endif
7412 {
7413   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7414   exit (sig != SIGFPE);
7415 }
7416
7417 int x = 1;
7418 int y = 0;
7419 int z;
7420 int nan;
7421
7422 int main ()
7423 {
7424   signal (SIGFPE, sigfpe_handler);
7425 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7426 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7427   signal (SIGTRAP, sigfpe_handler);
7428 #endif
7429 /* Linux/SPARC yields signal SIGILL.  */
7430 #if defined (__sparc__) && defined (__linux__)
7431   signal (SIGILL, sigfpe_handler);
7432 #endif
7433
7434   z = x / y;
7435   nan = y / y;
7436   exit (1);
7437 }
7438
7439 _ACEOF
7440 if ac_fn_c_try_run "$LINENO"; then :
7441   gt_cv_int_divbyzero_sigfpe=yes
7442 else
7443   gt_cv_int_divbyzero_sigfpe=no
7444 fi
7445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7446   conftest.$ac_objext conftest.beam conftest.$ac_ext
7447 fi
7448
7449
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7452 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7453   case "$gt_cv_int_divbyzero_sigfpe" in
7454     *yes) value=1;;
7455     *) value=0;;
7456   esac
7457
7458 cat >>confdefs.h <<_ACEOF
7459 #define INTDIV0_RAISES_SIGFPE $value
7460 _ACEOF
7461
7462
7463
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7465 $as_echo_n "checking for unsigned long long... " >&6; }
7466 if ${ac_cv_type_unsigned_long_long+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h.  */
7471 unsigned long long ull = 1ULL; int i = 63;
7472 int
7473 main ()
7474 {
7475 unsigned long long ullmax = (unsigned long long) -1;
7476      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7477   ;
7478   return 0;
7479 }
7480 _ACEOF
7481 if ac_fn_c_try_link "$LINENO"; then :
7482   ac_cv_type_unsigned_long_long=yes
7483 else
7484   ac_cv_type_unsigned_long_long=no
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext \
7487     conftest$ac_exeext conftest.$ac_ext
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7490 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7491   if test $ac_cv_type_unsigned_long_long = yes; then
7492
7493 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7494
7495   fi
7496
7497
7498
7499
7500   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7501
7502     test $ac_cv_type_unsigned_long_long = yes \
7503       && ac_type='unsigned long long' \
7504       || ac_type='unsigned long'
7505
7506 cat >>confdefs.h <<_ACEOF
7507 #define uintmax_t $ac_type
7508 _ACEOF
7509
7510   else
7511
7512 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7513
7514   fi
7515
7516
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7518 $as_echo_n "checking for inttypes.h... " >&6; }
7519 if ${gt_cv_header_inttypes_h+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522
7523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h.  */
7525 #include <sys/types.h>
7526 #include <inttypes.h>
7527 int
7528 main ()
7529 {
7530
7531   ;
7532   return 0;
7533 }
7534 _ACEOF
7535 if ac_fn_c_try_compile "$LINENO"; then :
7536   gt_cv_header_inttypes_h=yes
7537 else
7538   gt_cv_header_inttypes_h=no
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7544 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7545   if test $gt_cv_header_inttypes_h = yes; then
7546
7547 cat >>confdefs.h <<_ACEOF
7548 #define HAVE_INTTYPES_H 1
7549 _ACEOF
7550
7551   fi
7552
7553
7554
7555   if test $gt_cv_header_inttypes_h = yes; then
7556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7557 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7558 if ${gt_cv_inttypes_pri_broken+:} false; then :
7559   $as_echo_n "(cached) " >&6
7560 else
7561
7562         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h.  */
7564 #include <inttypes.h>
7565 #ifdef PRId32
7566 char *p = PRId32;
7567 #endif
7568
7569 int
7570 main ()
7571 {
7572
7573   ;
7574   return 0;
7575 }
7576 _ACEOF
7577 if ac_fn_c_try_compile "$LINENO"; then :
7578   gt_cv_inttypes_pri_broken=no
7579 else
7580   gt_cv_inttypes_pri_broken=yes
7581 fi
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583
7584 fi
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7586 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7587   fi
7588   if test "$gt_cv_inttypes_pri_broken" = yes; then
7589
7590 cat >>confdefs.h <<_ACEOF
7591 #define PRI_MACROS_BROKEN 1
7592 _ACEOF
7593
7594   fi
7595
7596
7597   for ac_header in stdint.h
7598 do :
7599   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7600 if test "x$ac_cv_header_stdint_h" = xyes; then :
7601   cat >>confdefs.h <<_ACEOF
7602 #define HAVE_STDINT_H 1
7603 _ACEOF
7604
7605 fi
7606
7607 done
7608
7609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7610 $as_echo_n "checking for SIZE_MAX... " >&6; }
7611   result=
7612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h.  */
7614
7615 #include <limits.h>
7616 #if HAVE_STDINT_H
7617 #include <stdint.h>
7618 #endif
7619 #ifdef SIZE_MAX
7620 Found it
7621 #endif
7622
7623 _ACEOF
7624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7625   $EGREP "Found it" >/dev/null 2>&1; then :
7626   result=yes
7627 fi
7628 rm -f conftest*
7629
7630   if test -z "$result"; then
7631                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7632
7633 else
7634   result=?
7635 fi
7636
7637
7638     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7639
7640 else
7641   result=?
7642 fi
7643
7644
7645     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7646
7647 else
7648   result=?
7649 fi
7650
7651
7652     if test "$fits_in_uint" = 1; then
7653                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h.  */
7655 #include <stddef.h>
7656         extern size_t foo;
7657         extern unsigned long foo;
7658
7659 int
7660 main ()
7661 {
7662
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 if ac_fn_c_try_compile "$LINENO"; then :
7668   fits_in_uint=0
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671     fi
7672     if test -z "$result"; then
7673       if test "$fits_in_uint" = 1; then
7674         result="$res_hi$res_lo"U
7675       else
7676         result="$res_hi$res_lo"UL
7677       fi
7678     else
7679             result='~(size_t)0'
7680     fi
7681   fi
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7683 $as_echo "$result" >&6; }
7684   if test "$result" != yes; then
7685
7686 cat >>confdefs.h <<_ACEOF
7687 #define SIZE_MAX $result
7688 _ACEOF
7689
7690   fi
7691
7692
7693
7694   for ac_header in stdint.h
7695 do :
7696   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7697 if test "x$ac_cv_header_stdint_h" = xyes; then :
7698   cat >>confdefs.h <<_ACEOF
7699 #define HAVE_STDINT_H 1
7700 _ACEOF
7701
7702 fi
7703
7704 done
7705
7706
7707
7708       if test "X$prefix" = "XNONE"; then
7709     acl_final_prefix="$ac_default_prefix"
7710   else
7711     acl_final_prefix="$prefix"
7712   fi
7713   if test "X$exec_prefix" = "XNONE"; then
7714     acl_final_exec_prefix='${prefix}'
7715   else
7716     acl_final_exec_prefix="$exec_prefix"
7717   fi
7718   acl_save_prefix="$prefix"
7719   prefix="$acl_final_prefix"
7720   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7721   prefix="$acl_save_prefix"
7722
7723
7724 # Check whether --with-gnu-ld was given.
7725 if test "${with_gnu_ld+set}" = set; then :
7726   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7727 else
7728   with_gnu_ld=no
7729 fi
7730
7731 # Prepare PATH_SEPARATOR.
7732 # The user is always right.
7733 if test "${PATH_SEPARATOR+set}" != set; then
7734   echo "#! /bin/sh" >conf$$.sh
7735   echo  "exit 0"   >>conf$$.sh
7736   chmod +x conf$$.sh
7737   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7738     PATH_SEPARATOR=';'
7739   else
7740     PATH_SEPARATOR=:
7741   fi
7742   rm -f conf$$.sh
7743 fi
7744 ac_prog=ld
7745 if test "$GCC" = yes; then
7746   # Check if gcc -print-prog-name=ld gives a path.
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7748 $as_echo_n "checking for ld used by GCC... " >&6; }
7749   case $host in
7750   *-*-mingw*)
7751     # gcc leaves a trailing carriage return which upsets mingw
7752     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7753   *)
7754     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7755   esac
7756   case $ac_prog in
7757     # Accept absolute paths.
7758     [\\/]* | [A-Za-z]:[\\/]*)
7759       re_direlt='/[^/][^/]*/\.\./'
7760       # Canonicalize the path of ld
7761       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7762       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7763         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7764       done
7765       test -z "$LD" && LD="$ac_prog"
7766       ;;
7767   "")
7768     # If it fails, then pretend we aren't using GCC.
7769     ac_prog=ld
7770     ;;
7771   *)
7772     # If it is relative, then search for the first ld in PATH.
7773     with_gnu_ld=unknown
7774     ;;
7775   esac
7776 elif test "$with_gnu_ld" = yes; then
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7778 $as_echo_n "checking for GNU ld... " >&6; }
7779 else
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7781 $as_echo_n "checking for non-GNU ld... " >&6; }
7782 fi
7783 if ${acl_cv_path_LD+:} false; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   if test -z "$LD"; then
7787   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7788   for ac_dir in $PATH; do
7789     test -z "$ac_dir" && ac_dir=.
7790     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7791       acl_cv_path_LD="$ac_dir/$ac_prog"
7792       # Check to see if the program is GNU ld.  I'd rather use --version,
7793       # but apparently some GNU ld's only accept -v.
7794       # Break only if it was the GNU/non-GNU ld that we prefer.
7795       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7796       *GNU* | *'with BFD'*)
7797         test "$with_gnu_ld" != no && break ;;
7798       *)
7799         test "$with_gnu_ld" != yes && break ;;
7800       esac
7801     fi
7802   done
7803   IFS="$ac_save_ifs"
7804 else
7805   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7806 fi
7807 fi
7808
7809 LD="$acl_cv_path_LD"
7810 if test -n "$LD"; then
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7812 $as_echo "$LD" >&6; }
7813 else
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7819 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7820 if ${acl_cv_prog_gnu_ld+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7824 case `$LD -v 2>&1 </dev/null` in
7825 *GNU* | *'with BFD'*)
7826   acl_cv_prog_gnu_ld=yes ;;
7827 *)
7828   acl_cv_prog_gnu_ld=no ;;
7829 esac
7830 fi
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7832 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7833 with_gnu_ld=$acl_cv_prog_gnu_ld
7834
7835
7836
7837                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7838 $as_echo_n "checking for shared library run path origin... " >&6; }
7839 if ${acl_cv_rpath+:} false; then :
7840   $as_echo_n "(cached) " >&6
7841 else
7842
7843     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7844     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7845     . ./conftest.sh
7846     rm -f ./conftest.sh
7847     acl_cv_rpath=done
7848
7849 fi
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7851 $as_echo "$acl_cv_rpath" >&6; }
7852   wl="$acl_cv_wl"
7853   libext="$acl_cv_libext"
7854   shlibext="$acl_cv_shlibext"
7855   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7856   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7857   hardcode_direct="$acl_cv_hardcode_direct"
7858   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7859     # Check whether --enable-rpath was given.
7860 if test "${enable_rpath+set}" = set; then :
7861   enableval=$enable_rpath; :
7862 else
7863   enable_rpath=yes
7864 fi
7865
7866
7867
7868
7869
7870
7871
7872
7873     use_additional=yes
7874
7875   acl_save_prefix="$prefix"
7876   prefix="$acl_final_prefix"
7877   acl_save_exec_prefix="$exec_prefix"
7878   exec_prefix="$acl_final_exec_prefix"
7879
7880     eval additional_includedir=\"$includedir\"
7881     eval additional_libdir=\"$libdir\"
7882
7883   exec_prefix="$acl_save_exec_prefix"
7884   prefix="$acl_save_prefix"
7885
7886
7887 # Check whether --with-libiconv-prefix was given.
7888 if test "${with_libiconv_prefix+set}" = set; then :
7889   withval=$with_libiconv_prefix;
7890     if test "X$withval" = "Xno"; then
7891       use_additional=no
7892     else
7893       if test "X$withval" = "X"; then
7894
7895   acl_save_prefix="$prefix"
7896   prefix="$acl_final_prefix"
7897   acl_save_exec_prefix="$exec_prefix"
7898   exec_prefix="$acl_final_exec_prefix"
7899
7900           eval additional_includedir=\"$includedir\"
7901           eval additional_libdir=\"$libdir\"
7902
7903   exec_prefix="$acl_save_exec_prefix"
7904   prefix="$acl_save_prefix"
7905
7906       else
7907         additional_includedir="$withval/include"
7908         additional_libdir="$withval/lib"
7909       fi
7910     fi
7911
7912 fi
7913
7914       LIBICONV=
7915   LTLIBICONV=
7916   INCICONV=
7917   rpathdirs=
7918   ltrpathdirs=
7919   names_already_handled=
7920   names_next_round='iconv '
7921   while test -n "$names_next_round"; do
7922     names_this_round="$names_next_round"
7923     names_next_round=
7924     for name in $names_this_round; do
7925       already_handled=
7926       for n in $names_already_handled; do
7927         if test "$n" = "$name"; then
7928           already_handled=yes
7929           break
7930         fi
7931       done
7932       if test -z "$already_handled"; then
7933         names_already_handled="$names_already_handled $name"
7934                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7935         eval value=\"\$HAVE_LIB$uppername\"
7936         if test -n "$value"; then
7937           if test "$value" = yes; then
7938             eval value=\"\$LIB$uppername\"
7939             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7940             eval value=\"\$LTLIB$uppername\"
7941             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7942           else
7943                                     :
7944           fi
7945         else
7946                               found_dir=
7947           found_la=
7948           found_so=
7949           found_a=
7950           if test $use_additional = yes; then
7951             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7952               found_dir="$additional_libdir"
7953               found_so="$additional_libdir/lib$name.$shlibext"
7954               if test -f "$additional_libdir/lib$name.la"; then
7955                 found_la="$additional_libdir/lib$name.la"
7956               fi
7957             else
7958               if test -f "$additional_libdir/lib$name.$libext"; then
7959                 found_dir="$additional_libdir"
7960                 found_a="$additional_libdir/lib$name.$libext"
7961                 if test -f "$additional_libdir/lib$name.la"; then
7962                   found_la="$additional_libdir/lib$name.la"
7963                 fi
7964               fi
7965             fi
7966           fi
7967           if test "X$found_dir" = "X"; then
7968             for x in $LDFLAGS $LTLIBICONV; do
7969
7970   acl_save_prefix="$prefix"
7971   prefix="$acl_final_prefix"
7972   acl_save_exec_prefix="$exec_prefix"
7973   exec_prefix="$acl_final_exec_prefix"
7974   eval x=\"$x\"
7975   exec_prefix="$acl_save_exec_prefix"
7976   prefix="$acl_save_prefix"
7977
7978               case "$x" in
7979                 -L*)
7980                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7981                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7982                     found_dir="$dir"
7983                     found_so="$dir/lib$name.$shlibext"
7984                     if test -f "$dir/lib$name.la"; then
7985                       found_la="$dir/lib$name.la"
7986                     fi
7987                   else
7988                     if test -f "$dir/lib$name.$libext"; then
7989                       found_dir="$dir"
7990                       found_a="$dir/lib$name.$libext"
7991                       if test -f "$dir/lib$name.la"; then
7992                         found_la="$dir/lib$name.la"
7993                       fi
7994                     fi
7995                   fi
7996                   ;;
7997               esac
7998               if test "X$found_dir" != "X"; then
7999                 break
8000               fi
8001             done
8002           fi
8003           if test "X$found_dir" != "X"; then
8004                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8005             if test "X$found_so" != "X"; then
8006                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8007                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8008               else
8009                                                                                 haveit=
8010                 for x in $ltrpathdirs; do
8011                   if test "X$x" = "X$found_dir"; then
8012                     haveit=yes
8013                     break
8014                   fi
8015                 done
8016                 if test -z "$haveit"; then
8017                   ltrpathdirs="$ltrpathdirs $found_dir"
8018                 fi
8019                                 if test "$hardcode_direct" = yes; then
8020                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8021                 else
8022                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8023                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8024                                                             haveit=
8025                     for x in $rpathdirs; do
8026                       if test "X$x" = "X$found_dir"; then
8027                         haveit=yes
8028                         break
8029                       fi
8030                     done
8031                     if test -z "$haveit"; then
8032                       rpathdirs="$rpathdirs $found_dir"
8033                     fi
8034                   else
8035                                                                                 haveit=
8036                     for x in $LDFLAGS $LIBICONV; do
8037
8038   acl_save_prefix="$prefix"
8039   prefix="$acl_final_prefix"
8040   acl_save_exec_prefix="$exec_prefix"
8041   exec_prefix="$acl_final_exec_prefix"
8042   eval x=\"$x\"
8043   exec_prefix="$acl_save_exec_prefix"
8044   prefix="$acl_save_prefix"
8045
8046                       if test "X$x" = "X-L$found_dir"; then
8047                         haveit=yes
8048                         break
8049                       fi
8050                     done
8051                     if test -z "$haveit"; then
8052                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8053                     fi
8054                     if test "$hardcode_minus_L" != no; then
8055                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8056                     else
8057                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8058                     fi
8059                   fi
8060                 fi
8061               fi
8062             else
8063               if test "X$found_a" != "X"; then
8064                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8065               else
8066                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8067               fi
8068             fi
8069                         additional_includedir=
8070             case "$found_dir" in
8071               */lib | */lib/)
8072                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8073                 additional_includedir="$basedir/include"
8074                 ;;
8075             esac
8076             if test "X$additional_includedir" != "X"; then
8077                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8078                 haveit=
8079                 if test "X$additional_includedir" = "X/usr/local/include"; then
8080                   if test -n "$GCC"; then
8081                     case $host_os in
8082                       linux*) haveit=yes;;
8083                     esac
8084                   fi
8085                 fi
8086                 if test -z "$haveit"; then
8087                   for x in $CPPFLAGS $INCICONV; do
8088
8089   acl_save_prefix="$prefix"
8090   prefix="$acl_final_prefix"
8091   acl_save_exec_prefix="$exec_prefix"
8092   exec_prefix="$acl_final_exec_prefix"
8093   eval x=\"$x\"
8094   exec_prefix="$acl_save_exec_prefix"
8095   prefix="$acl_save_prefix"
8096
8097                     if test "X$x" = "X-I$additional_includedir"; then
8098                       haveit=yes
8099                       break
8100                     fi
8101                   done
8102                   if test -z "$haveit"; then
8103                     if test -d "$additional_includedir"; then
8104                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8105                     fi
8106                   fi
8107                 fi
8108               fi
8109             fi
8110                         if test -n "$found_la"; then
8111                                                         save_libdir="$libdir"
8112               case "$found_la" in
8113                 */* | *\\*) . "$found_la" ;;
8114                 *) . "./$found_la" ;;
8115               esac
8116               libdir="$save_libdir"
8117                             for dep in $dependency_libs; do
8118                 case "$dep" in
8119                   -L*)
8120                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8121                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8122                       haveit=
8123                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8124                         if test -n "$GCC"; then
8125                           case $host_os in
8126                             linux*) haveit=yes;;
8127                           esac
8128                         fi
8129                       fi
8130                       if test -z "$haveit"; then
8131                         haveit=
8132                         for x in $LDFLAGS $LIBICONV; do
8133
8134   acl_save_prefix="$prefix"
8135   prefix="$acl_final_prefix"
8136   acl_save_exec_prefix="$exec_prefix"
8137   exec_prefix="$acl_final_exec_prefix"
8138   eval x=\"$x\"
8139   exec_prefix="$acl_save_exec_prefix"
8140   prefix="$acl_save_prefix"
8141
8142                           if test "X$x" = "X-L$additional_libdir"; then
8143                             haveit=yes
8144                             break
8145                           fi
8146                         done
8147                         if test -z "$haveit"; then
8148                           if test -d "$additional_libdir"; then
8149                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8150                           fi
8151                         fi
8152                         haveit=
8153                         for x in $LDFLAGS $LTLIBICONV; do
8154
8155   acl_save_prefix="$prefix"
8156   prefix="$acl_final_prefix"
8157   acl_save_exec_prefix="$exec_prefix"
8158   exec_prefix="$acl_final_exec_prefix"
8159   eval x=\"$x\"
8160   exec_prefix="$acl_save_exec_prefix"
8161   prefix="$acl_save_prefix"
8162
8163                           if test "X$x" = "X-L$additional_libdir"; then
8164                             haveit=yes
8165                             break
8166                           fi
8167                         done
8168                         if test -z "$haveit"; then
8169                           if test -d "$additional_libdir"; then
8170                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8171                           fi
8172                         fi
8173                       fi
8174                     fi
8175                     ;;
8176                   -R*)
8177                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8178                     if test "$enable_rpath" != no; then
8179                                                                   haveit=
8180                       for x in $rpathdirs; do
8181                         if test "X$x" = "X$dir"; then
8182                           haveit=yes
8183                           break
8184                         fi
8185                       done
8186                       if test -z "$haveit"; then
8187                         rpathdirs="$rpathdirs $dir"
8188                       fi
8189                                                                   haveit=
8190                       for x in $ltrpathdirs; do
8191                         if test "X$x" = "X$dir"; then
8192                           haveit=yes
8193                           break
8194                         fi
8195                       done
8196                       if test -z "$haveit"; then
8197                         ltrpathdirs="$ltrpathdirs $dir"
8198                       fi
8199                     fi
8200                     ;;
8201                   -l*)
8202                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8203                     ;;
8204                   *.la)
8205                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8206                     ;;
8207                   *)
8208                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8209                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8210                     ;;
8211                 esac
8212               done
8213             fi
8214           else
8215                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8216             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8217           fi
8218         fi
8219       fi
8220     done
8221   done
8222   if test "X$rpathdirs" != "X"; then
8223     if test -n "$hardcode_libdir_separator"; then
8224                         alldirs=
8225       for found_dir in $rpathdirs; do
8226         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8227       done
8228             acl_save_libdir="$libdir"
8229       libdir="$alldirs"
8230       eval flag=\"$hardcode_libdir_flag_spec\"
8231       libdir="$acl_save_libdir"
8232       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8233     else
8234             for found_dir in $rpathdirs; do
8235         acl_save_libdir="$libdir"
8236         libdir="$found_dir"
8237         eval flag=\"$hardcode_libdir_flag_spec\"
8238         libdir="$acl_save_libdir"
8239         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8240       done
8241     fi
8242   fi
8243   if test "X$ltrpathdirs" != "X"; then
8244             for found_dir in $ltrpathdirs; do
8245       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8246     done
8247   fi
8248
8249
8250
8251
8252
8253
8254
8255
8256   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8257 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8258
8259 else
8260
8261 $as_echo "#define ptrdiff_t long" >>confdefs.h
8262
8263
8264 fi
8265
8266   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8267 stdlib.h string.h unistd.h sys/param.h
8268 do :
8269   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8270 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8272   cat >>confdefs.h <<_ACEOF
8273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274 _ACEOF
8275
8276 fi
8277
8278 done
8279
8280   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8281 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8282 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8283 __fsetlocking
8284 do :
8285   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8286 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8287 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8288   cat >>confdefs.h <<_ACEOF
8289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8290 _ACEOF
8291
8292 fi
8293 done
8294
8295
8296
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8298 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8299 if ${ac_cv_have_decl__snprintf+:} false; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304 #include <stdio.h>
8305 int
8306 main ()
8307 {
8308
8309 #ifndef _snprintf
8310   char *p = (char *) _snprintf;
8311 #endif
8312
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318   ac_cv_have_decl__snprintf=yes
8319 else
8320   ac_cv_have_decl__snprintf=no
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8325 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8326   if test $ac_cv_have_decl__snprintf = yes; then
8327     gt_value=1
8328   else
8329     gt_value=0
8330   fi
8331
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DECL__SNPRINTF $gt_value
8334 _ACEOF
8335
8336
8337
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8339 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8340 if ${ac_cv_have_decl__snwprintf+:} false; then :
8341   $as_echo_n "(cached) " >&6
8342 else
8343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h.  */
8345 #include <stdio.h>
8346 int
8347 main ()
8348 {
8349
8350 #ifndef _snwprintf
8351   char *p = (char *) _snwprintf;
8352 #endif
8353
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 if ac_fn_c_try_compile "$LINENO"; then :
8359   ac_cv_have_decl__snwprintf=yes
8360 else
8361   ac_cv_have_decl__snwprintf=no
8362 fi
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 fi
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8366 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8367   if test $ac_cv_have_decl__snwprintf = yes; then
8368     gt_value=1
8369   else
8370     gt_value=0
8371   fi
8372
8373 cat >>confdefs.h <<_ACEOF
8374 #define HAVE_DECL__SNWPRINTF $gt_value
8375 _ACEOF
8376
8377
8378
8379
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8381 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8382 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8383   $as_echo_n "(cached) " >&6
8384 else
8385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h.  */
8387 #include <stdio.h>
8388 int
8389 main ()
8390 {
8391
8392 #ifndef feof_unlocked
8393   char *p = (char *) feof_unlocked;
8394 #endif
8395
8396   ;
8397   return 0;
8398 }
8399 _ACEOF
8400 if ac_fn_c_try_compile "$LINENO"; then :
8401   ac_cv_have_decl_feof_unlocked=yes
8402 else
8403   ac_cv_have_decl_feof_unlocked=no
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8408 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8409   if test $ac_cv_have_decl_feof_unlocked = yes; then
8410     gt_value=1
8411   else
8412     gt_value=0
8413   fi
8414
8415 cat >>confdefs.h <<_ACEOF
8416 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8417 _ACEOF
8418
8419
8420
8421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8422 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8423 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8424   $as_echo_n "(cached) " >&6
8425 else
8426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h.  */
8428 #include <stdio.h>
8429 int
8430 main ()
8431 {
8432
8433 #ifndef fgets_unlocked
8434   char *p = (char *) fgets_unlocked;
8435 #endif
8436
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 if ac_fn_c_try_compile "$LINENO"; then :
8442   ac_cv_have_decl_fgets_unlocked=yes
8443 else
8444   ac_cv_have_decl_fgets_unlocked=no
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8449 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8450   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8451     gt_value=1
8452   else
8453     gt_value=0
8454   fi
8455
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8458 _ACEOF
8459
8460
8461
8462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8463 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8464 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8465   $as_echo_n "(cached) " >&6
8466 else
8467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h.  */
8469 #include <stdio.h>
8470 int
8471 main ()
8472 {
8473
8474 #ifndef getc_unlocked
8475   char *p = (char *) getc_unlocked;
8476 #endif
8477
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483   ac_cv_have_decl_getc_unlocked=yes
8484 else
8485   ac_cv_have_decl_getc_unlocked=no
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8490 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8491   if test $ac_cv_have_decl_getc_unlocked = yes; then
8492     gt_value=1
8493   else
8494     gt_value=0
8495   fi
8496
8497 cat >>confdefs.h <<_ACEOF
8498 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8499 _ACEOF
8500
8501
8502
8503   case $gt_cv_func_printf_posix in
8504     *yes) HAVE_POSIX_PRINTF=1 ;;
8505     *) HAVE_POSIX_PRINTF=0 ;;
8506   esac
8507
8508   if test "$ac_cv_func_asprintf" = yes; then
8509     HAVE_ASPRINTF=1
8510   else
8511     HAVE_ASPRINTF=0
8512   fi
8513
8514   if test "$ac_cv_func_snprintf" = yes; then
8515     HAVE_SNPRINTF=1
8516   else
8517     HAVE_SNPRINTF=0
8518   fi
8519
8520   if test "$ac_cv_func_wprintf" = yes; then
8521     HAVE_WPRINTF=1
8522   else
8523     HAVE_WPRINTF=0
8524   fi
8525
8526
8527
8528
8529
8530
8531
8532           am_save_CPPFLAGS="$CPPFLAGS"
8533
8534   for element in $INCICONV; do
8535     haveit=
8536     for x in $CPPFLAGS; do
8537
8538   acl_save_prefix="$prefix"
8539   prefix="$acl_final_prefix"
8540   acl_save_exec_prefix="$exec_prefix"
8541   exec_prefix="$acl_final_exec_prefix"
8542   eval x=\"$x\"
8543   exec_prefix="$acl_save_exec_prefix"
8544   prefix="$acl_save_prefix"
8545
8546       if test "X$x" = "X$element"; then
8547         haveit=yes
8548         break
8549       fi
8550     done
8551     if test -z "$haveit"; then
8552       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8553     fi
8554   done
8555
8556
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8558 $as_echo_n "checking for iconv... " >&6; }
8559 if ${am_cv_func_iconv+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562
8563     am_cv_func_iconv="no, consider installing GNU libiconv"
8564     am_cv_lib_iconv=no
8565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h.  */
8567 #include <stdlib.h>
8568 #include <iconv.h>
8569 int
8570 main ()
8571 {
8572 iconv_t cd = iconv_open("","");
8573        iconv(cd,NULL,NULL,NULL,NULL);
8574        iconv_close(cd);
8575   ;
8576   return 0;
8577 }
8578 _ACEOF
8579 if ac_fn_c_try_link "$LINENO"; then :
8580   am_cv_func_iconv=yes
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583     conftest$ac_exeext conftest.$ac_ext
8584     if test "$am_cv_func_iconv" != yes; then
8585       am_save_LIBS="$LIBS"
8586       LIBS="$LIBS $LIBICONV"
8587       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h.  */
8589 #include <stdlib.h>
8590 #include <iconv.h>
8591 int
8592 main ()
8593 {
8594 iconv_t cd = iconv_open("","");
8595          iconv(cd,NULL,NULL,NULL,NULL);
8596          iconv_close(cd);
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 if ac_fn_c_try_link "$LINENO"; then :
8602   am_cv_lib_iconv=yes
8603         am_cv_func_iconv=yes
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext \
8606     conftest$ac_exeext conftest.$ac_ext
8607       LIBS="$am_save_LIBS"
8608     fi
8609
8610 fi
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8612 $as_echo "$am_cv_func_iconv" >&6; }
8613   if test "$am_cv_func_iconv" = yes; then
8614
8615 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8616
8617   fi
8618   if test "$am_cv_lib_iconv" = yes; then
8619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8620 $as_echo_n "checking how to link with libiconv... " >&6; }
8621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8622 $as_echo "$LIBICONV" >&6; }
8623   else
8624             CPPFLAGS="$am_save_CPPFLAGS"
8625     LIBICONV=
8626     LTLIBICONV=
8627   fi
8628
8629
8630
8631   if test "$am_cv_func_iconv" = yes; then
8632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8633 $as_echo_n "checking for iconv declaration... " >&6; }
8634     if ${am_cv_proto_iconv+:} false; then :
8635   $as_echo_n "(cached) " >&6
8636 else
8637
8638       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h.  */
8640
8641 #include <stdlib.h>
8642 #include <iconv.h>
8643 extern
8644 #ifdef __cplusplus
8645 "C"
8646 #endif
8647 #if defined(__STDC__) || defined(__cplusplus)
8648 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8649 #else
8650 size_t iconv();
8651 #endif
8652
8653 int
8654 main ()
8655 {
8656
8657   ;
8658   return 0;
8659 }
8660 _ACEOF
8661 if ac_fn_c_try_compile "$LINENO"; then :
8662   am_cv_proto_iconv_arg1=""
8663 else
8664   am_cv_proto_iconv_arg1="const"
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667       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);"
8668 fi
8669
8670     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8672          }$am_cv_proto_iconv" >&5
8673 $as_echo "${ac_t:-
8674          }$am_cv_proto_iconv" >&6; }
8675
8676 cat >>confdefs.h <<_ACEOF
8677 #define ICONV_CONST $am_cv_proto_iconv_arg1
8678 _ACEOF
8679
8680   fi
8681
8682
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8684 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8685 if ${am_cv_langinfo_codeset+:} false; then :
8686   $as_echo_n "(cached) " >&6
8687 else
8688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h.  */
8690 #include <langinfo.h>
8691 int
8692 main ()
8693 {
8694 char* cs = nl_langinfo(CODESET);
8695   ;
8696   return 0;
8697 }
8698 _ACEOF
8699 if ac_fn_c_try_link "$LINENO"; then :
8700   am_cv_langinfo_codeset=yes
8701 else
8702   am_cv_langinfo_codeset=no
8703 fi
8704 rm -f core conftest.err conftest.$ac_objext \
8705     conftest$ac_exeext conftest.$ac_ext
8706
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8709 $as_echo "$am_cv_langinfo_codeset" >&6; }
8710   if test $am_cv_langinfo_codeset = yes; then
8711
8712 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8713
8714   fi
8715
8716   if test $ac_cv_header_locale_h = yes; then
8717
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8719 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8720 if ${am_cv_val_LC_MESSAGES+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h.  */
8725 #include <locale.h>
8726 int
8727 main ()
8728 {
8729 return LC_MESSAGES
8730   ;
8731   return 0;
8732 }
8733 _ACEOF
8734 if ac_fn_c_try_link "$LINENO"; then :
8735   am_cv_val_LC_MESSAGES=yes
8736 else
8737   am_cv_val_LC_MESSAGES=no
8738 fi
8739 rm -f core conftest.err conftest.$ac_objext \
8740     conftest$ac_exeext conftest.$ac_ext
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8743 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8744   if test $am_cv_val_LC_MESSAGES = yes; then
8745
8746 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8747
8748   fi
8749
8750   fi
8751
8752                       for ac_prog in bison
8753 do
8754   # Extract the first word of "$ac_prog", so it can be a program name with args.
8755 set dummy $ac_prog; ac_word=$2
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if ${ac_cv_prog_INTLBISON+:} false; then :
8759   $as_echo_n "(cached) " >&6
8760 else
8761   if test -n "$INTLBISON"; then
8762   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8763 else
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8766 do
8767   IFS=$as_save_IFS
8768   test -z "$as_dir" && as_dir=.
8769     for ac_exec_ext in '' $ac_executable_extensions; do
8770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8771     ac_cv_prog_INTLBISON="$ac_prog"
8772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773     break 2
8774   fi
8775 done
8776   done
8777 IFS=$as_save_IFS
8778
8779 fi
8780 fi
8781 INTLBISON=$ac_cv_prog_INTLBISON
8782 if test -n "$INTLBISON"; then
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8784 $as_echo "$INTLBISON" >&6; }
8785 else
8786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 fi
8789
8790
8791   test -n "$INTLBISON" && break
8792 done
8793
8794   if test -z "$INTLBISON"; then
8795     ac_verc_fail=yes
8796   else
8797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8798 $as_echo_n "checking version of bison... " >&6; }
8799     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8800     case $ac_prog_version in
8801       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8802       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8803          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8804       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8805     esac
8806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8807 $as_echo "$ac_prog_version" >&6; }
8808   fi
8809   if test $ac_verc_fail = yes; then
8810     INTLBISON=:
8811   fi
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8829 $as_echo_n "checking whether NLS is requested... " >&6; }
8830     # Check whether --enable-nls was given.
8831 if test "${enable_nls+set}" = set; then :
8832   enableval=$enable_nls; USE_NLS=$enableval
8833 else
8834   USE_NLS=yes
8835 fi
8836
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8838 $as_echo "$USE_NLS" >&6; }
8839
8840
8841
8842
8843     BUILD_INCLUDED_LIBINTL=no
8844     USE_INCLUDED_LIBINTL=no
8845
8846   LIBINTL=
8847   LTLIBINTL=
8848   POSUB=
8849
8850     if test "$USE_NLS" = "yes"; then
8851     gt_use_preinstalled_gnugettext=no
8852
8853       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8854 $as_echo_n "checking whether included gettext is requested... " >&6; }
8855
8856 # Check whether --with-included-gettext was given.
8857 if test "${with_included_gettext+set}" = set; then :
8858   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8859 else
8860   nls_cv_force_use_gnu_gettext=no
8861 fi
8862
8863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8864 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8865
8866       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8867       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8868
8869
8870
8871
8872
8873
8874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8875 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8876 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8877   $as_echo_n "(cached) " >&6
8878 else
8879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h.  */
8881 #include <libintl.h>
8882 extern int _nl_msg_cat_cntr;
8883 extern int *_nl_domain_bindings;
8884 int
8885 main ()
8886 {
8887 bindtextdomain ("", "");
8888 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8889   ;
8890   return 0;
8891 }
8892 _ACEOF
8893 if ac_fn_c_try_link "$LINENO"; then :
8894   gt_cv_func_gnugettext1_libc=yes
8895 else
8896   gt_cv_func_gnugettext1_libc=no
8897 fi
8898 rm -f core conftest.err conftest.$ac_objext \
8899     conftest$ac_exeext conftest.$ac_ext
8900 fi
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8902 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8903
8904         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8905
8906
8907
8908     use_additional=yes
8909
8910   acl_save_prefix="$prefix"
8911   prefix="$acl_final_prefix"
8912   acl_save_exec_prefix="$exec_prefix"
8913   exec_prefix="$acl_final_exec_prefix"
8914
8915     eval additional_includedir=\"$includedir\"
8916     eval additional_libdir=\"$libdir\"
8917
8918   exec_prefix="$acl_save_exec_prefix"
8919   prefix="$acl_save_prefix"
8920
8921
8922 # Check whether --with-libintl-prefix was given.
8923 if test "${with_libintl_prefix+set}" = set; then :
8924   withval=$with_libintl_prefix;
8925     if test "X$withval" = "Xno"; then
8926       use_additional=no
8927     else
8928       if test "X$withval" = "X"; then
8929
8930   acl_save_prefix="$prefix"
8931   prefix="$acl_final_prefix"
8932   acl_save_exec_prefix="$exec_prefix"
8933   exec_prefix="$acl_final_exec_prefix"
8934
8935           eval additional_includedir=\"$includedir\"
8936           eval additional_libdir=\"$libdir\"
8937
8938   exec_prefix="$acl_save_exec_prefix"
8939   prefix="$acl_save_prefix"
8940
8941       else
8942         additional_includedir="$withval/include"
8943         additional_libdir="$withval/lib"
8944       fi
8945     fi
8946
8947 fi
8948
8949       LIBINTL=
8950   LTLIBINTL=
8951   INCINTL=
8952   rpathdirs=
8953   ltrpathdirs=
8954   names_already_handled=
8955   names_next_round='intl '
8956   while test -n "$names_next_round"; do
8957     names_this_round="$names_next_round"
8958     names_next_round=
8959     for name in $names_this_round; do
8960       already_handled=
8961       for n in $names_already_handled; do
8962         if test "$n" = "$name"; then
8963           already_handled=yes
8964           break
8965         fi
8966       done
8967       if test -z "$already_handled"; then
8968         names_already_handled="$names_already_handled $name"
8969                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8970         eval value=\"\$HAVE_LIB$uppername\"
8971         if test -n "$value"; then
8972           if test "$value" = yes; then
8973             eval value=\"\$LIB$uppername\"
8974             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8975             eval value=\"\$LTLIB$uppername\"
8976             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8977           else
8978                                     :
8979           fi
8980         else
8981                               found_dir=
8982           found_la=
8983           found_so=
8984           found_a=
8985           if test $use_additional = yes; then
8986             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8987               found_dir="$additional_libdir"
8988               found_so="$additional_libdir/lib$name.$shlibext"
8989               if test -f "$additional_libdir/lib$name.la"; then
8990                 found_la="$additional_libdir/lib$name.la"
8991               fi
8992             else
8993               if test -f "$additional_libdir/lib$name.$libext"; then
8994                 found_dir="$additional_libdir"
8995                 found_a="$additional_libdir/lib$name.$libext"
8996                 if test -f "$additional_libdir/lib$name.la"; then
8997                   found_la="$additional_libdir/lib$name.la"
8998                 fi
8999               fi
9000             fi
9001           fi
9002           if test "X$found_dir" = "X"; then
9003             for x in $LDFLAGS $LTLIBINTL; do
9004
9005   acl_save_prefix="$prefix"
9006   prefix="$acl_final_prefix"
9007   acl_save_exec_prefix="$exec_prefix"
9008   exec_prefix="$acl_final_exec_prefix"
9009   eval x=\"$x\"
9010   exec_prefix="$acl_save_exec_prefix"
9011   prefix="$acl_save_prefix"
9012
9013               case "$x" in
9014                 -L*)
9015                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9016                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9017                     found_dir="$dir"
9018                     found_so="$dir/lib$name.$shlibext"
9019                     if test -f "$dir/lib$name.la"; then
9020                       found_la="$dir/lib$name.la"
9021                     fi
9022                   else
9023                     if test -f "$dir/lib$name.$libext"; then
9024                       found_dir="$dir"
9025                       found_a="$dir/lib$name.$libext"
9026                       if test -f "$dir/lib$name.la"; then
9027                         found_la="$dir/lib$name.la"
9028                       fi
9029                     fi
9030                   fi
9031                   ;;
9032               esac
9033               if test "X$found_dir" != "X"; then
9034                 break
9035               fi
9036             done
9037           fi
9038           if test "X$found_dir" != "X"; then
9039                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9040             if test "X$found_so" != "X"; then
9041                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9042                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9043               else
9044                                                                                 haveit=
9045                 for x in $ltrpathdirs; do
9046                   if test "X$x" = "X$found_dir"; then
9047                     haveit=yes
9048                     break
9049                   fi
9050                 done
9051                 if test -z "$haveit"; then
9052                   ltrpathdirs="$ltrpathdirs $found_dir"
9053                 fi
9054                                 if test "$hardcode_direct" = yes; then
9055                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9056                 else
9057                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9058                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9059                                                             haveit=
9060                     for x in $rpathdirs; do
9061                       if test "X$x" = "X$found_dir"; then
9062                         haveit=yes
9063                         break
9064                       fi
9065                     done
9066                     if test -z "$haveit"; then
9067                       rpathdirs="$rpathdirs $found_dir"
9068                     fi
9069                   else
9070                                                                                 haveit=
9071                     for x in $LDFLAGS $LIBINTL; do
9072
9073   acl_save_prefix="$prefix"
9074   prefix="$acl_final_prefix"
9075   acl_save_exec_prefix="$exec_prefix"
9076   exec_prefix="$acl_final_exec_prefix"
9077   eval x=\"$x\"
9078   exec_prefix="$acl_save_exec_prefix"
9079   prefix="$acl_save_prefix"
9080
9081                       if test "X$x" = "X-L$found_dir"; then
9082                         haveit=yes
9083                         break
9084                       fi
9085                     done
9086                     if test -z "$haveit"; then
9087                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9088                     fi
9089                     if test "$hardcode_minus_L" != no; then
9090                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9091                     else
9092                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9093                     fi
9094                   fi
9095                 fi
9096               fi
9097             else
9098               if test "X$found_a" != "X"; then
9099                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9100               else
9101                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9102               fi
9103             fi
9104                         additional_includedir=
9105             case "$found_dir" in
9106               */lib | */lib/)
9107                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9108                 additional_includedir="$basedir/include"
9109                 ;;
9110             esac
9111             if test "X$additional_includedir" != "X"; then
9112                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9113                 haveit=
9114                 if test "X$additional_includedir" = "X/usr/local/include"; then
9115                   if test -n "$GCC"; then
9116                     case $host_os in
9117                       linux*) haveit=yes;;
9118                     esac
9119                   fi
9120                 fi
9121                 if test -z "$haveit"; then
9122                   for x in $CPPFLAGS $INCINTL; do
9123
9124   acl_save_prefix="$prefix"
9125   prefix="$acl_final_prefix"
9126   acl_save_exec_prefix="$exec_prefix"
9127   exec_prefix="$acl_final_exec_prefix"
9128   eval x=\"$x\"
9129   exec_prefix="$acl_save_exec_prefix"
9130   prefix="$acl_save_prefix"
9131
9132                     if test "X$x" = "X-I$additional_includedir"; then
9133                       haveit=yes
9134                       break
9135                     fi
9136                   done
9137                   if test -z "$haveit"; then
9138                     if test -d "$additional_includedir"; then
9139                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9140                     fi
9141                   fi
9142                 fi
9143               fi
9144             fi
9145                         if test -n "$found_la"; then
9146                                                         save_libdir="$libdir"
9147               case "$found_la" in
9148                 */* | *\\*) . "$found_la" ;;
9149                 *) . "./$found_la" ;;
9150               esac
9151               libdir="$save_libdir"
9152                             for dep in $dependency_libs; do
9153                 case "$dep" in
9154                   -L*)
9155                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9156                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9157                       haveit=
9158                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9159                         if test -n "$GCC"; then
9160                           case $host_os in
9161                             linux*) haveit=yes;;
9162                           esac
9163                         fi
9164                       fi
9165                       if test -z "$haveit"; then
9166                         haveit=
9167                         for x in $LDFLAGS $LIBINTL; do
9168
9169   acl_save_prefix="$prefix"
9170   prefix="$acl_final_prefix"
9171   acl_save_exec_prefix="$exec_prefix"
9172   exec_prefix="$acl_final_exec_prefix"
9173   eval x=\"$x\"
9174   exec_prefix="$acl_save_exec_prefix"
9175   prefix="$acl_save_prefix"
9176
9177                           if test "X$x" = "X-L$additional_libdir"; then
9178                             haveit=yes
9179                             break
9180                           fi
9181                         done
9182                         if test -z "$haveit"; then
9183                           if test -d "$additional_libdir"; then
9184                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9185                           fi
9186                         fi
9187                         haveit=
9188                         for x in $LDFLAGS $LTLIBINTL; do
9189
9190   acl_save_prefix="$prefix"
9191   prefix="$acl_final_prefix"
9192   acl_save_exec_prefix="$exec_prefix"
9193   exec_prefix="$acl_final_exec_prefix"
9194   eval x=\"$x\"
9195   exec_prefix="$acl_save_exec_prefix"
9196   prefix="$acl_save_prefix"
9197
9198                           if test "X$x" = "X-L$additional_libdir"; then
9199                             haveit=yes
9200                             break
9201                           fi
9202                         done
9203                         if test -z "$haveit"; then
9204                           if test -d "$additional_libdir"; then
9205                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9206                           fi
9207                         fi
9208                       fi
9209                     fi
9210                     ;;
9211                   -R*)
9212                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9213                     if test "$enable_rpath" != no; then
9214                                                                   haveit=
9215                       for x in $rpathdirs; do
9216                         if test "X$x" = "X$dir"; then
9217                           haveit=yes
9218                           break
9219                         fi
9220                       done
9221                       if test -z "$haveit"; then
9222                         rpathdirs="$rpathdirs $dir"
9223                       fi
9224                                                                   haveit=
9225                       for x in $ltrpathdirs; do
9226                         if test "X$x" = "X$dir"; then
9227                           haveit=yes
9228                           break
9229                         fi
9230                       done
9231                       if test -z "$haveit"; then
9232                         ltrpathdirs="$ltrpathdirs $dir"
9233                       fi
9234                     fi
9235                     ;;
9236                   -l*)
9237                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9238                     ;;
9239                   *.la)
9240                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9241                     ;;
9242                   *)
9243                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9244                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9245                     ;;
9246                 esac
9247               done
9248             fi
9249           else
9250                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9251             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9252           fi
9253         fi
9254       fi
9255     done
9256   done
9257   if test "X$rpathdirs" != "X"; then
9258     if test -n "$hardcode_libdir_separator"; then
9259                         alldirs=
9260       for found_dir in $rpathdirs; do
9261         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9262       done
9263             acl_save_libdir="$libdir"
9264       libdir="$alldirs"
9265       eval flag=\"$hardcode_libdir_flag_spec\"
9266       libdir="$acl_save_libdir"
9267       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9268     else
9269             for found_dir in $rpathdirs; do
9270         acl_save_libdir="$libdir"
9271         libdir="$found_dir"
9272         eval flag=\"$hardcode_libdir_flag_spec\"
9273         libdir="$acl_save_libdir"
9274         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9275       done
9276     fi
9277   fi
9278   if test "X$ltrpathdirs" != "X"; then
9279             for found_dir in $ltrpathdirs; do
9280       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9281     done
9282   fi
9283
9284           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9285 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9286 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9287   $as_echo_n "(cached) " >&6
9288 else
9289   gt_save_CPPFLAGS="$CPPFLAGS"
9290             CPPFLAGS="$CPPFLAGS $INCINTL"
9291             gt_save_LIBS="$LIBS"
9292             LIBS="$LIBS $LIBINTL"
9293                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h.  */
9295 #include <libintl.h>
9296 extern int _nl_msg_cat_cntr;
9297 extern
9298 #ifdef __cplusplus
9299 "C"
9300 #endif
9301 const char *_nl_expand_alias ();
9302 int
9303 main ()
9304 {
9305 bindtextdomain ("", "");
9306 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 if ac_fn_c_try_link "$LINENO"; then :
9312   gt_cv_func_gnugettext1_libintl=yes
9313 else
9314   gt_cv_func_gnugettext1_libintl=no
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext \
9317     conftest$ac_exeext conftest.$ac_ext
9318                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9319               LIBS="$LIBS $LIBICONV"
9320               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h.  */
9322 #include <libintl.h>
9323 extern int _nl_msg_cat_cntr;
9324 extern
9325 #ifdef __cplusplus
9326 "C"
9327 #endif
9328 const char *_nl_expand_alias ();
9329 int
9330 main ()
9331 {
9332 bindtextdomain ("", "");
9333 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 if ac_fn_c_try_link "$LINENO"; then :
9339   LIBINTL="$LIBINTL $LIBICONV"
9340                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9341                 gt_cv_func_gnugettext1_libintl=yes
9342
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext \
9345     conftest$ac_exeext conftest.$ac_ext
9346             fi
9347             CPPFLAGS="$gt_save_CPPFLAGS"
9348             LIBS="$gt_save_LIBS"
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9351 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9352         fi
9353
9354                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9355            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9356                 && test "$PACKAGE" != gettext-runtime \
9357                 && test "$PACKAGE" != gettext-tools; }; then
9358           gt_use_preinstalled_gnugettext=yes
9359         else
9360                     LIBINTL=
9361           LTLIBINTL=
9362           INCINTL=
9363         fi
9364
9365
9366         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9367                               nls_cv_use_gnu_gettext=yes
9368         fi
9369       fi
9370
9371       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9372                 BUILD_INCLUDED_LIBINTL=yes
9373         USE_INCLUDED_LIBINTL=yes
9374         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9375         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9376         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9377       fi
9378
9379       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9380          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9381                 CATOBJEXT=.gmo
9382       fi
9383
9384
9385     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9386        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9387
9388 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9389
9390     else
9391       USE_NLS=no
9392     fi
9393   fi
9394
9395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9396 $as_echo_n "checking whether to use NLS... " >&6; }
9397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9398 $as_echo "$USE_NLS" >&6; }
9399   if test "$USE_NLS" = "yes"; then
9400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9401 $as_echo_n "checking where the gettext function comes from... " >&6; }
9402     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9403       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9404         gt_source="external libintl"
9405       else
9406         gt_source="libc"
9407       fi
9408     else
9409       gt_source="included intl directory"
9410     fi
9411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9412 $as_echo "$gt_source" >&6; }
9413   fi
9414
9415   if test "$USE_NLS" = "yes"; then
9416
9417     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9418       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9420 $as_echo_n "checking how to link with libintl... " >&6; }
9421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9422 $as_echo "$LIBINTL" >&6; }
9423
9424   for element in $INCINTL; do
9425     haveit=
9426     for x in $CPPFLAGS; do
9427
9428   acl_save_prefix="$prefix"
9429   prefix="$acl_final_prefix"
9430   acl_save_exec_prefix="$exec_prefix"
9431   exec_prefix="$acl_final_exec_prefix"
9432   eval x=\"$x\"
9433   exec_prefix="$acl_save_exec_prefix"
9434   prefix="$acl_save_prefix"
9435
9436       if test "X$x" = "X$element"; then
9437         haveit=yes
9438         break
9439       fi
9440     done
9441     if test -z "$haveit"; then
9442       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9443     fi
9444   done
9445
9446       fi
9447
9448
9449 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9450
9451
9452 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9453
9454     fi
9455
9456         POSUB=po
9457   fi
9458
9459
9460             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9461       BUILD_INCLUDED_LIBINTL=yes
9462     fi
9463
9464
9465
9466
9467
9468         nls_cv_header_intl=
9469     nls_cv_header_libgt=
9470
9471         DATADIRNAME=share
9472
9473
9474         INSTOBJEXT=.mo
9475
9476
9477         GENCAT=gencat
9478
9479
9480         if test "$USE_INCLUDED_LIBINTL" = yes; then
9481       INTLOBJS="\$(GETTOBJS)"
9482     fi
9483
9484
9485         INTL_LIBTOOL_SUFFIX_PREFIX=
9486
9487
9488
9489     INTLLIBS="$LIBINTL"
9490
9491
9492
9493
9494
9495
9496
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9498 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9499 set x ${MAKE-make}
9500 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9501 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9502   $as_echo_n "(cached) " >&6
9503 else
9504   cat >conftest.make <<\_ACEOF
9505 SHELL = /bin/sh
9506 all:
9507         @echo '@@@%%%=$(MAKE)=@@@%%%'
9508 _ACEOF
9509 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9511   *@@@%%%=?*=@@@%%%*)
9512     eval ac_cv_prog_make_${ac_make}_set=yes;;
9513   *)
9514     eval ac_cv_prog_make_${ac_make}_set=no;;
9515 esac
9516 rm -f conftest.make
9517 fi
9518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9520 $as_echo "yes" >&6; }
9521   SET_MAKE=
9522 else
9523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9525   SET_MAKE="MAKE=${MAKE-make}"
9526 fi
9527
9528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9529 $as_echo_n "checking for GNU make... " >&6; }
9530 if ${_cv_gnu_make_command+:} false; then :
9531   $as_echo_n "(cached) " >&6
9532 else
9533   _cv_gnu_make_command='' ;
9534                 for a in "$MAKE" make gmake gnumake ; do
9535                         if test -z "$a" ; then continue ; fi ;
9536                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9537                                 _cv_gnu_make_command=$a ;
9538                                 break;
9539                         fi
9540                 done ;
9541
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9544 $as_echo "$_cv_gnu_make_command" >&6; } ;
9545         if test  "x$_cv_gnu_make_command" != "x"  ; then
9546                 ifGNUmake='' ;
9547                 ifNotGNUmake='#' ;
9548         else
9549                 ifGNUmake='#' ;
9550                 ifNotGNUmake='' ;
9551                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9552 $as_echo "\"Not found\"" >&6; };
9553         fi
9554
9555
9556
9557 # Extract the first word of "ln", so it can be a program name with args.
9558 set dummy ln; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if ${ac_cv_path_LN+:} false; then :
9562   $as_echo_n "(cached) " >&6
9563 else
9564   case $LN in
9565   [\\/]* | ?:[\\/]*)
9566   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9567   ;;
9568   *)
9569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 for as_dir in $PATH
9571 do
9572   IFS=$as_save_IFS
9573   test -z "$as_dir" && as_dir=.
9574     for ac_exec_ext in '' $ac_executable_extensions; do
9575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9576     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9578     break 2
9579   fi
9580 done
9581   done
9582 IFS=$as_save_IFS
9583
9584   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9585   ;;
9586 esac
9587 fi
9588 LN=$ac_cv_path_LN
9589 if test -n "$LN"; then
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9591 $as_echo "$LN" >&6; }
9592 else
9593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9595 fi
9596
9597
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9599 $as_echo_n "checking whether ln -s works... " >&6; }
9600 LN_S=$as_ln_s
9601 if test "$LN_S" = "ln -s"; then
9602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9603 $as_echo "yes" >&6; }
9604 else
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9606 $as_echo "no, using $LN_S" >&6; }
9607 fi
9608
9609 # Extract the first word of "mv", so it can be a program name with args.
9610 set dummy mv; ac_word=$2
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612 $as_echo_n "checking for $ac_word... " >&6; }
9613 if ${ac_cv_path_MV+:} false; then :
9614   $as_echo_n "(cached) " >&6
9615 else
9616   case $MV in
9617   [\\/]* | ?:[\\/]*)
9618   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9619   ;;
9620   *)
9621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 for as_dir in $PATH
9623 do
9624   IFS=$as_save_IFS
9625   test -z "$as_dir" && as_dir=.
9626     for ac_exec_ext in '' $ac_executable_extensions; do
9627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9628     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630     break 2
9631   fi
9632 done
9633   done
9634 IFS=$as_save_IFS
9635
9636   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9637   ;;
9638 esac
9639 fi
9640 MV=$ac_cv_path_MV
9641 if test -n "$MV"; then
9642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9643 $as_echo "$MV" >&6; }
9644 else
9645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9647 fi
9648
9649
9650 # Extract the first word of "cp", so it can be a program name with args.
9651 set dummy cp; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if ${ac_cv_path_CP+:} false; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657   case $CP in
9658   [\\/]* | ?:[\\/]*)
9659   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9660   ;;
9661   *)
9662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH
9664 do
9665   IFS=$as_save_IFS
9666   test -z "$as_dir" && as_dir=.
9667     for ac_exec_ext in '' $ac_executable_extensions; do
9668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671     break 2
9672   fi
9673 done
9674   done
9675 IFS=$as_save_IFS
9676
9677   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9678   ;;
9679 esac
9680 fi
9681 CP=$ac_cv_path_CP
9682 if test -n "$CP"; then
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9684 $as_echo "$CP" >&6; }
9685 else
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9688 fi
9689
9690
9691 # Extract the first word of "rm", so it can be a program name with args.
9692 set dummy rm; ac_word=$2
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694 $as_echo_n "checking for $ac_word... " >&6; }
9695 if ${ac_cv_path_RM+:} false; then :
9696   $as_echo_n "(cached) " >&6
9697 else
9698   case $RM in
9699   [\\/]* | ?:[\\/]*)
9700   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9701   ;;
9702   *)
9703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704 for as_dir in $PATH
9705 do
9706   IFS=$as_save_IFS
9707   test -z "$as_dir" && as_dir=.
9708     for ac_exec_ext in '' $ac_executable_extensions; do
9709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9710     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9712     break 2
9713   fi
9714 done
9715   done
9716 IFS=$as_save_IFS
9717
9718   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9719   ;;
9720 esac
9721 fi
9722 RM=$ac_cv_path_RM
9723 if test -n "$RM"; then
9724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9725 $as_echo "$RM" >&6; }
9726 else
9727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9729 fi
9730
9731
9732 # Extract the first word of "chmod", so it can be a program name with args.
9733 set dummy chmod; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_path_CHMOD+:} false; then :
9737   $as_echo_n "(cached) " >&6
9738 else
9739   case $CHMOD in
9740   [\\/]* | ?:[\\/]*)
9741   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9742   ;;
9743   *)
9744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9746 do
9747   IFS=$as_save_IFS
9748   test -z "$as_dir" && as_dir=.
9749     for ac_exec_ext in '' $ac_executable_extensions; do
9750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753     break 2
9754   fi
9755 done
9756   done
9757 IFS=$as_save_IFS
9758
9759   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9760   ;;
9761 esac
9762 fi
9763 CHMOD=$ac_cv_path_CHMOD
9764 if test -n "$CHMOD"; then
9765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9766 $as_echo "$CHMOD" >&6; }
9767 else
9768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 $as_echo "no" >&6; }
9770 fi
9771
9772
9773 for ac_prog in gawk mawk nawk awk
9774 do
9775   # Extract the first word of "$ac_prog", so it can be a program name with args.
9776 set dummy $ac_prog; ac_word=$2
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778 $as_echo_n "checking for $ac_word... " >&6; }
9779 if ${ac_cv_prog_AWK+:} false; then :
9780   $as_echo_n "(cached) " >&6
9781 else
9782   if test -n "$AWK"; then
9783   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9784 else
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9787 do
9788   IFS=$as_save_IFS
9789   test -z "$as_dir" && as_dir=.
9790     for ac_exec_ext in '' $ac_executable_extensions; do
9791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792     ac_cv_prog_AWK="$ac_prog"
9793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794     break 2
9795   fi
9796 done
9797   done
9798 IFS=$as_save_IFS
9799
9800 fi
9801 fi
9802 AWK=$ac_cv_prog_AWK
9803 if test -n "$AWK"; then
9804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9805 $as_echo "$AWK" >&6; }
9806 else
9807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9809 fi
9810
9811
9812   test -n "$AWK" && break
9813 done
9814
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9816 $as_echo_n "checking for egrep... " >&6; }
9817 if ${ac_cv_path_EGREP+:} false; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9821    then ac_cv_path_EGREP="$GREP -E"
9822    else
9823      if test -z "$EGREP"; then
9824   ac_path_EGREP_found=false
9825   # Loop through the user's path and test for each of PROGNAME-LIST
9826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9828 do
9829   IFS=$as_save_IFS
9830   test -z "$as_dir" && as_dir=.
9831     for ac_prog in egrep; do
9832     for ac_exec_ext in '' $ac_executable_extensions; do
9833       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9834       as_fn_executable_p "$ac_path_EGREP" || continue
9835 # Check for GNU ac_path_EGREP and select it if it is found.
9836   # Check for GNU $ac_path_EGREP
9837 case `"$ac_path_EGREP" --version 2>&1` in
9838 *GNU*)
9839   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9840 *)
9841   ac_count=0
9842   $as_echo_n 0123456789 >"conftest.in"
9843   while :
9844   do
9845     cat "conftest.in" "conftest.in" >"conftest.tmp"
9846     mv "conftest.tmp" "conftest.in"
9847     cp "conftest.in" "conftest.nl"
9848     $as_echo 'EGREP' >> "conftest.nl"
9849     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9850     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9851     as_fn_arith $ac_count + 1 && ac_count=$as_val
9852     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9853       # Best one so far, save it but keep looking for a better one
9854       ac_cv_path_EGREP="$ac_path_EGREP"
9855       ac_path_EGREP_max=$ac_count
9856     fi
9857     # 10*(2^10) chars as input seems more than enough
9858     test $ac_count -gt 10 && break
9859   done
9860   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9861 esac
9862
9863       $ac_path_EGREP_found && break 3
9864     done
9865   done
9866   done
9867 IFS=$as_save_IFS
9868   if test -z "$ac_cv_path_EGREP"; then
9869     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9870   fi
9871 else
9872   ac_cv_path_EGREP=$EGREP
9873 fi
9874
9875    fi
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9878 $as_echo "$ac_cv_path_EGREP" >&6; }
9879  EGREP="$ac_cv_path_EGREP"
9880
9881
9882 # Extract the first word of "sed", so it can be a program name with args.
9883 set dummy sed; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if ${ac_cv_path_SED+:} false; then :
9887   $as_echo_n "(cached) " >&6
9888 else
9889   case $SED in
9890   [\\/]* | ?:[\\/]*)
9891   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9892   ;;
9893   *)
9894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9896 do
9897   IFS=$as_save_IFS
9898   test -z "$as_dir" && as_dir=.
9899     for ac_exec_ext in '' $ac_executable_extensions; do
9900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9901     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903     break 2
9904   fi
9905 done
9906   done
9907 IFS=$as_save_IFS
9908
9909   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9910   ;;
9911 esac
9912 fi
9913 SED=$ac_cv_path_SED
9914 if test -n "$SED"; then
9915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9916 $as_echo "$SED" >&6; }
9917 else
9918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9920 fi
9921
9922
9923 # Extract the first word of "perl", so it can be a program name with args.
9924 set dummy perl; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if ${ac_cv_path_PERL+:} false; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   case $PERL in
9931   [\\/]* | ?:[\\/]*)
9932   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9933   ;;
9934   *)
9935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9937 do
9938   IFS=$as_save_IFS
9939   test -z "$as_dir" && as_dir=.
9940     for ac_exec_ext in '' $ac_executable_extensions; do
9941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944     break 2
9945   fi
9946 done
9947   done
9948 IFS=$as_save_IFS
9949
9950   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9951   ;;
9952 esac
9953 fi
9954 PERL=$ac_cv_path_PERL
9955 if test -n "$PERL"; then
9956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9957 $as_echo "$PERL" >&6; }
9958 else
9959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9961 fi
9962
9963
9964 # Extract the first word of "ldconfig", so it can be a program name with args.
9965 set dummy ldconfig; ac_word=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if ${ac_cv_path_LDCONFIG+:} false; then :
9969   $as_echo_n "(cached) " >&6
9970 else
9971   case $LDCONFIG in
9972   [\\/]* | ?:[\\/]*)
9973   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9974   ;;
9975   *)
9976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $PATH
9978 do
9979   IFS=$as_save_IFS
9980   test -z "$as_dir" && as_dir=.
9981     for ac_exec_ext in '' $ac_executable_extensions; do
9982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985     break 2
9986   fi
9987 done
9988   done
9989 IFS=$as_save_IFS
9990
9991   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9992   ;;
9993 esac
9994 fi
9995 LDCONFIG=$ac_cv_path_LDCONFIG
9996 if test -n "$LDCONFIG"; then
9997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9998 $as_echo "$LDCONFIG" >&6; }
9999 else
10000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10002 fi
10003
10004
10005 if test -n "$ac_tool_prefix"; then
10006   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10007 set dummy ${ac_tool_prefix}ar; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_prog_AR+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   if test -n "$AR"; then
10014   ac_cv_prog_AR="$AR" # Let the user override the test.
10015 else
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_prog_AR="${ac_tool_prefix}ar"
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 fi
10032 fi
10033 AR=$ac_cv_prog_AR
10034 if test -n "$AR"; then
10035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10036 $as_echo "$AR" >&6; }
10037 else
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10040 fi
10041
10042
10043 fi
10044 if test -z "$ac_cv_prog_AR"; then
10045   ac_ct_AR=$AR
10046   # Extract the first word of "ar", so it can be a program name with args.
10047 set dummy ar; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10051   $as_echo_n "(cached) " >&6
10052 else
10053   if test -n "$ac_ct_AR"; then
10054   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10055 else
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10058 do
10059   IFS=$as_save_IFS
10060   test -z "$as_dir" && as_dir=.
10061     for ac_exec_ext in '' $ac_executable_extensions; do
10062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10063     ac_cv_prog_ac_ct_AR="ar"
10064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10065     break 2
10066   fi
10067 done
10068   done
10069 IFS=$as_save_IFS
10070
10071 fi
10072 fi
10073 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10074 if test -n "$ac_ct_AR"; then
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10076 $as_echo "$ac_ct_AR" >&6; }
10077 else
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10080 fi
10081
10082   if test "x$ac_ct_AR" = x; then
10083     AR="ar"
10084   else
10085     case $cross_compiling:$ac_tool_warned in
10086 yes:)
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10089 ac_tool_warned=yes ;;
10090 esac
10091     AR=$ac_ct_AR
10092   fi
10093 else
10094   AR="$ac_cv_prog_AR"
10095 fi
10096
10097 if test -n "$ac_tool_prefix"; then
10098   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if ${ac_cv_prog_RANLIB+:} false; then :
10103   $as_echo_n "(cached) " >&6
10104 else
10105   if test -n "$RANLIB"; then
10106   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10107 else
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10110 do
10111   IFS=$as_save_IFS
10112   test -z "$as_dir" && as_dir=.
10113     for ac_exec_ext in '' $ac_executable_extensions; do
10114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10115     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117     break 2
10118   fi
10119 done
10120   done
10121 IFS=$as_save_IFS
10122
10123 fi
10124 fi
10125 RANLIB=$ac_cv_prog_RANLIB
10126 if test -n "$RANLIB"; then
10127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10128 $as_echo "$RANLIB" >&6; }
10129 else
10130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10132 fi
10133
10134
10135 fi
10136 if test -z "$ac_cv_prog_RANLIB"; then
10137   ac_ct_RANLIB=$RANLIB
10138   # Extract the first word of "ranlib", so it can be a program name with args.
10139 set dummy ranlib; ac_word=$2
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141 $as_echo_n "checking for $ac_word... " >&6; }
10142 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10143   $as_echo_n "(cached) " >&6
10144 else
10145   if test -n "$ac_ct_RANLIB"; then
10146   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10147 else
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149 for as_dir in $PATH
10150 do
10151   IFS=$as_save_IFS
10152   test -z "$as_dir" && as_dir=.
10153     for ac_exec_ext in '' $ac_executable_extensions; do
10154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10155     ac_cv_prog_ac_ct_RANLIB="ranlib"
10156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10157     break 2
10158   fi
10159 done
10160   done
10161 IFS=$as_save_IFS
10162
10163 fi
10164 fi
10165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10166 if test -n "$ac_ct_RANLIB"; then
10167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10168 $as_echo "$ac_ct_RANLIB" >&6; }
10169 else
10170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10172 fi
10173
10174   if test "x$ac_ct_RANLIB" = x; then
10175     RANLIB=":"
10176   else
10177     case $cross_compiling:$ac_tool_warned in
10178 yes:)
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10181 ac_tool_warned=yes ;;
10182 esac
10183     RANLIB=$ac_ct_RANLIB
10184   fi
10185 else
10186   RANLIB="$ac_cv_prog_RANLIB"
10187 fi
10188
10189 if test -n "$ac_tool_prefix"; then
10190   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10191 set dummy ${ac_tool_prefix}strip; ac_word=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if ${ac_cv_prog_STRIP+:} false; then :
10195   $as_echo_n "(cached) " >&6
10196 else
10197   if test -n "$STRIP"; then
10198   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10199 else
10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201 for as_dir in $PATH
10202 do
10203   IFS=$as_save_IFS
10204   test -z "$as_dir" && as_dir=.
10205     for ac_exec_ext in '' $ac_executable_extensions; do
10206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10207     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10209     break 2
10210   fi
10211 done
10212   done
10213 IFS=$as_save_IFS
10214
10215 fi
10216 fi
10217 STRIP=$ac_cv_prog_STRIP
10218 if test -n "$STRIP"; then
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10220 $as_echo "$STRIP" >&6; }
10221 else
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10224 fi
10225
10226
10227 fi
10228 if test -z "$ac_cv_prog_STRIP"; then
10229   ac_ct_STRIP=$STRIP
10230   # Extract the first word of "strip", so it can be a program name with args.
10231 set dummy strip; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 $as_echo_n "checking for $ac_word... " >&6; }
10234 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10235   $as_echo_n "(cached) " >&6
10236 else
10237   if test -n "$ac_ct_STRIP"; then
10238   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10239 else
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10242 do
10243   IFS=$as_save_IFS
10244   test -z "$as_dir" && as_dir=.
10245     for ac_exec_ext in '' $ac_executable_extensions; do
10246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247     ac_cv_prog_ac_ct_STRIP="strip"
10248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249     break 2
10250   fi
10251 done
10252   done
10253 IFS=$as_save_IFS
10254
10255 fi
10256 fi
10257 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10258 if test -n "$ac_ct_STRIP"; then
10259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10260 $as_echo "$ac_ct_STRIP" >&6; }
10261 else
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10264 fi
10265
10266   if test "x$ac_ct_STRIP" = x; then
10267     STRIP=":"
10268   else
10269     case $cross_compiling:$ac_tool_warned in
10270 yes:)
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10273 ac_tool_warned=yes ;;
10274 esac
10275     STRIP=$ac_ct_STRIP
10276   fi
10277 else
10278   STRIP="$ac_cv_prog_STRIP"
10279 fi
10280
10281 # Extract the first word of "makeinfo", so it can be a program name with args.
10282 set dummy makeinfo; ac_word=$2
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 $as_echo_n "checking for $ac_word... " >&6; }
10285 if ${ac_cv_prog_MAKEINFO+:} false; then :
10286   $as_echo_n "(cached) " >&6
10287 else
10288   if test -n "$MAKEINFO"; then
10289   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10290 else
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294   IFS=$as_save_IFS
10295   test -z "$as_dir" && as_dir=.
10296     for ac_exec_ext in '' $ac_executable_extensions; do
10297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298     ac_cv_prog_MAKEINFO="makeinfo"
10299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300     break 2
10301   fi
10302 done
10303   done
10304 IFS=$as_save_IFS
10305
10306 fi
10307 fi
10308 MAKEINFO=$ac_cv_prog_MAKEINFO
10309 if test -n "$MAKEINFO"; then
10310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10311 $as_echo "$MAKEINFO" >&6; }
10312 else
10313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10315 fi
10316
10317
10318 if test "_$MAKEINFO" = "_"; then
10319     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10320 else
10321     case "$MAKEINFO" in
10322       */missing.*)
10323         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10324 *** Makeinfo is missing. Info documentation will not be built." >&5
10325 $as_echo "$as_me: WARNING:
10326 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10327         ;;
10328       *)
10329         ;;
10330     esac
10331 fi
10332
10333
10334 # See if we need a separate native compiler.
10335 if test $cross_compiling = no; then
10336   BUILD_CC="$CC"
10337
10338 else
10339   for ac_prog in gcc cc
10340 do
10341   # Extract the first word of "$ac_prog", so it can be a program name with args.
10342 set dummy $ac_prog; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if ${ac_cv_prog_BUILD_CC+:} false; then :
10346   $as_echo_n "(cached) " >&6
10347 else
10348   if test -n "$BUILD_CC"; then
10349   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10350 else
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10353 do
10354   IFS=$as_save_IFS
10355   test -z "$as_dir" && as_dir=.
10356     for ac_exec_ext in '' $ac_executable_extensions; do
10357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10358     ac_cv_prog_BUILD_CC="$ac_prog"
10359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10360     break 2
10361   fi
10362 done
10363   done
10364 IFS=$as_save_IFS
10365
10366 fi
10367 fi
10368 BUILD_CC=$ac_cv_prog_BUILD_CC
10369 if test -n "$BUILD_CC"; then
10370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10371 $as_echo "$BUILD_CC" >&6; }
10372 else
10373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10375 fi
10376
10377
10378   test -n "$BUILD_CC" && break
10379 done
10380
10381 fi
10382 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/disk.h      sys/file.h      sys/ioctl.h     sys/mkdev.h     sys/mman.h      sys/mount.h     sys/prctl.h     sys/resource.h  sys/select.h    sys/socket.h    sys/sockio.h    sys/stat.h      sys/syscall.h   sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h
10383 do :
10384   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10385 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10387   cat >>confdefs.h <<_ACEOF
10388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10389 _ACEOF
10390
10391 fi
10392
10393 done
10394
10395 for ac_header in net/if.h
10396 do :
10397   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10398 #if HAVE_SYS_TYPES_H
10399 #include <sys/types.h>
10400 #endif
10401 #if HAVE_SYS_SOCKET
10402 #include <sys/socket.h>
10403 #endif
10404
10405 "
10406 if test "x$ac_cv_header_net_if_h" = xyes; then :
10407   cat >>confdefs.h <<_ACEOF
10408 #define HAVE_NET_IF_H 1
10409 _ACEOF
10410
10411 fi
10412
10413 done
10414
10415 for ac_func in vprintf
10416 do :
10417   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10418 if test "x$ac_cv_func_vprintf" = xyes; then :
10419   cat >>confdefs.h <<_ACEOF
10420 #define HAVE_VPRINTF 1
10421 _ACEOF
10422
10423 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10424 if test "x$ac_cv_func__doprnt" = xyes; then :
10425
10426 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10427
10428 fi
10429
10430 fi
10431 done
10432
10433
10434 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10435 "
10436 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10437
10438 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10439
10440 fi
10441
10442 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10443 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10444
10445 cat >>confdefs.h <<_ACEOF
10446 #define HAVE_STRUCT_STAT_ST_ATIM 1
10447 _ACEOF
10448
10449
10450 fi
10451
10452 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10453 "
10454 if test "x$ac_cv_type_ssize_t" = xyes; then :
10455
10456 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10457
10458 fi
10459
10460 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10461 "
10462 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10463
10464 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10465
10466 fi
10467
10468 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10469                  #define _LARGEFILE64_SOURCE
10470                  #include <unistd.h>
10471 "
10472 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10473
10474 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10475
10476 fi
10477
10478 # The cast to long int works around a bug in the HP C Compiler
10479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10481 # This bug is HP SR number 8606223364.
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10483 $as_echo_n "checking size of short... " >&6; }
10484 if ${ac_cv_sizeof_short+:} false; then :
10485   $as_echo_n "(cached) " >&6
10486 else
10487   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10488
10489 else
10490   if test "$ac_cv_type_short" = yes; then
10491      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10493 as_fn_error 77 "cannot compute sizeof (short)
10494 See \`config.log' for more details" "$LINENO" 5; }
10495    else
10496      ac_cv_sizeof_short=0
10497    fi
10498 fi
10499
10500 fi
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10502 $as_echo "$ac_cv_sizeof_short" >&6; }
10503
10504
10505
10506 cat >>confdefs.h <<_ACEOF
10507 #define SIZEOF_SHORT $ac_cv_sizeof_short
10508 _ACEOF
10509
10510
10511 # The cast to long int works around a bug in the HP C Compiler
10512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10514 # This bug is HP SR number 8606223364.
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10516 $as_echo_n "checking size of int... " >&6; }
10517 if ${ac_cv_sizeof_int+:} false; then :
10518   $as_echo_n "(cached) " >&6
10519 else
10520   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10521
10522 else
10523   if test "$ac_cv_type_int" = yes; then
10524      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10526 as_fn_error 77 "cannot compute sizeof (int)
10527 See \`config.log' for more details" "$LINENO" 5; }
10528    else
10529      ac_cv_sizeof_int=0
10530    fi
10531 fi
10532
10533 fi
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10535 $as_echo "$ac_cv_sizeof_int" >&6; }
10536
10537
10538
10539 cat >>confdefs.h <<_ACEOF
10540 #define SIZEOF_INT $ac_cv_sizeof_int
10541 _ACEOF
10542
10543
10544 # The cast to long int works around a bug in the HP C Compiler
10545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10547 # This bug is HP SR number 8606223364.
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10549 $as_echo_n "checking size of long... " >&6; }
10550 if ${ac_cv_sizeof_long+:} false; then :
10551   $as_echo_n "(cached) " >&6
10552 else
10553   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10554
10555 else
10556   if test "$ac_cv_type_long" = yes; then
10557      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10559 as_fn_error 77 "cannot compute sizeof (long)
10560 See \`config.log' for more details" "$LINENO" 5; }
10561    else
10562      ac_cv_sizeof_long=0
10563    fi
10564 fi
10565
10566 fi
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10568 $as_echo "$ac_cv_sizeof_long" >&6; }
10569
10570
10571
10572 cat >>confdefs.h <<_ACEOF
10573 #define SIZEOF_LONG $ac_cv_sizeof_long
10574 _ACEOF
10575
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 long long" >&5
10582 $as_echo_n "checking size of long long... " >&6; }
10583 if ${ac_cv_sizeof_long_long+:} false; then :
10584   $as_echo_n "(cached) " >&6
10585 else
10586   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10587
10588 else
10589   if test "$ac_cv_type_long_long" = 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 (long long)
10593 See \`config.log' for more details" "$LINENO" 5; }
10594    else
10595      ac_cv_sizeof_long_long=0
10596    fi
10597 fi
10598
10599 fi
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10601 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10602
10603
10604
10605 cat >>confdefs.h <<_ACEOF
10606 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
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 off_t" >&5
10615 $as_echo_n "checking size of off_t... " >&6; }
10616 if ${ac_cv_sizeof_off_t+:} false; then :
10617   $as_echo_n "(cached) " >&6
10618 else
10619   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10620
10621 else
10622   if test "$ac_cv_type_off_t" = 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 (off_t)
10626 See \`config.log' for more details" "$LINENO" 5; }
10627    else
10628      ac_cv_sizeof_off_t=0
10629    fi
10630 fi
10631
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10634 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10635
10636
10637
10638 cat >>confdefs.h <<_ACEOF
10639 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10640 _ACEOF
10641
10642
10643 SIZEOF_SHORT=$ac_cv_sizeof_short
10644 SIZEOF_INT=$ac_cv_sizeof_int
10645 SIZEOF_LONG=$ac_cv_sizeof_long
10646 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10647 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10648
10649
10650
10651
10652
10653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10654 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10655 if ${ac_cv_c_bigendian+:} false; then :
10656   $as_echo_n "(cached) " >&6
10657 else
10658   ac_cv_c_bigendian=unknown
10659     # See if we're dealing with a universal compiler.
10660     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h.  */
10662 #ifndef __APPLE_CC__
10663                not a universal capable compiler
10664              #endif
10665              typedef int dummy;
10666
10667 _ACEOF
10668 if ac_fn_c_try_compile "$LINENO"; then :
10669
10670         # Check for potential -arch flags.  It is not universal unless
10671         # there are at least two -arch flags with different values.
10672         ac_arch=
10673         ac_prev=
10674         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10675          if test -n "$ac_prev"; then
10676            case $ac_word in
10677              i?86 | x86_64 | ppc | ppc64)
10678                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10679                  ac_arch=$ac_word
10680                else
10681                  ac_cv_c_bigendian=universal
10682                  break
10683                fi
10684                ;;
10685            esac
10686            ac_prev=
10687          elif test "x$ac_word" = "x-arch"; then
10688            ac_prev=arch
10689          fi
10690        done
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10693     if test $ac_cv_c_bigendian = unknown; then
10694       # See if sys/param.h defines the BYTE_ORDER macro.
10695       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h.  */
10697 #include <sys/types.h>
10698              #include <sys/param.h>
10699
10700 int
10701 main ()
10702 {
10703 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10704                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10705                      && LITTLE_ENDIAN)
10706               bogus endian macros
10707              #endif
10708
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 if ac_fn_c_try_compile "$LINENO"; then :
10714   # It does; now see whether it defined to BIG_ENDIAN or not.
10715          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h.  */
10717 #include <sys/types.h>
10718                 #include <sys/param.h>
10719
10720 int
10721 main ()
10722 {
10723 #if BYTE_ORDER != BIG_ENDIAN
10724                  not big endian
10725                 #endif
10726
10727   ;
10728   return 0;
10729 }
10730 _ACEOF
10731 if ac_fn_c_try_compile "$LINENO"; then :
10732   ac_cv_c_bigendian=yes
10733 else
10734   ac_cv_c_bigendian=no
10735 fi
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739     fi
10740     if test $ac_cv_c_bigendian = unknown; then
10741       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10742       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h.  */
10744 #include <limits.h>
10745
10746 int
10747 main ()
10748 {
10749 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10750               bogus endian macros
10751              #endif
10752
10753   ;
10754   return 0;
10755 }
10756 _ACEOF
10757 if ac_fn_c_try_compile "$LINENO"; then :
10758   # It does; now see whether it defined to _BIG_ENDIAN or not.
10759          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h.  */
10761 #include <limits.h>
10762
10763 int
10764 main ()
10765 {
10766 #ifndef _BIG_ENDIAN
10767                  not big endian
10768                 #endif
10769
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_compile "$LINENO"; then :
10775   ac_cv_c_bigendian=yes
10776 else
10777   ac_cv_c_bigendian=no
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782     fi
10783     if test $ac_cv_c_bigendian = unknown; then
10784       # Compile a test program.
10785       if test "$cross_compiling" = yes; then :
10786   # Try to guess by grepping values from an object file.
10787          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h.  */
10789 short int ascii_mm[] =
10790                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10791                 short int ascii_ii[] =
10792                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10793                 int use_ascii (int i) {
10794                   return ascii_mm[i] + ascii_ii[i];
10795                 }
10796                 short int ebcdic_ii[] =
10797                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10798                 short int ebcdic_mm[] =
10799                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10800                 int use_ebcdic (int i) {
10801                   return ebcdic_mm[i] + ebcdic_ii[i];
10802                 }
10803                 extern int foo;
10804
10805 int
10806 main ()
10807 {
10808 return use_ascii (foo) == use_ebcdic (foo);
10809   ;
10810   return 0;
10811 }
10812 _ACEOF
10813 if ac_fn_c_try_compile "$LINENO"; then :
10814   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10815               ac_cv_c_bigendian=yes
10816             fi
10817             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10818               if test "$ac_cv_c_bigendian" = unknown; then
10819                 ac_cv_c_bigendian=no
10820               else
10821                 # finding both strings is unlikely to happen, but who knows?
10822                 ac_cv_c_bigendian=unknown
10823               fi
10824             fi
10825 fi
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 else
10828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h.  */
10830 $ac_includes_default
10831 int
10832 main ()
10833 {
10834
10835              /* Are we little or big endian?  From Harbison&Steele.  */
10836              union
10837              {
10838                long int l;
10839                char c[sizeof (long int)];
10840              } u;
10841              u.l = 1;
10842              return u.c[sizeof (long int) - 1] == 1;
10843
10844   ;
10845   return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_run "$LINENO"; then :
10849   ac_cv_c_bigendian=no
10850 else
10851   ac_cv_c_bigendian=yes
10852 fi
10853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10854   conftest.$ac_objext conftest.beam conftest.$ac_ext
10855 fi
10856
10857     fi
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10860 $as_echo "$ac_cv_c_bigendian" >&6; }
10861  case $ac_cv_c_bigendian in #(
10862    yes)
10863      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10864 ;; #(
10865    no)
10866       ;; #(
10867    universal)
10868
10869 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10870
10871      ;; #(
10872    *)
10873      as_fn_error $? "unknown endianness
10874  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10875  esac
10876
10877 if test $cross_compiling = no; then
10878   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10879 else
10880   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10881 fi
10882 ASM_TYPES_HEADER=./asm_types.h
10883
10884 echo "/* These defines are needed for the public ext2fs.h header file */" \
10885      > public_config.h
10886 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10887   uniq tmp_config.$$ >> public_config.h
10888 else
10889   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10890 fi
10891 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10892   uniq tmp_config.$$ >> public_config.h
10893 else
10894   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10895 fi
10896 rm -f tmp_config.$$
10897 PUBLIC_CONFIG_HEADER=./public_config.h
10898
10899 for ac_header in inttypes.h
10900 do :
10901   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10902 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10903   cat >>confdefs.h <<_ACEOF
10904 #define HAVE_INTTYPES_H 1
10905 _ACEOF
10906
10907 fi
10908
10909 done
10910
10911 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10912 if test "x$ac_cv_type_intptr_t" = xyes; then :
10913
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_INTPTR_T 1
10916 _ACEOF
10917
10918
10919 fi
10920
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10922 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10923 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10924   $as_echo_n "(cached) " >&6
10925 else
10926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h.  */
10928 #include <sys/stat.h>
10929 int
10930 main ()
10931 {
10932 struct stat stat; stat.st_flags = 0;
10933   ;
10934   return 0;
10935 }
10936 _ACEOF
10937 if ac_fn_c_try_compile "$LINENO"; then :
10938   e2fsprogs_cv_struct_st_flags=yes
10939 else
10940   e2fsprogs_cv_struct_st_flags=no
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10943 fi
10944
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10946 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10947 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10949 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10950   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10951   $as_echo_n "(cached) " >&6
10952 else
10953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h.  */
10955 #include <sys/stat.h>
10956 int
10957 main ()
10958 {
10959 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10960   ;
10961   return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_compile "$LINENO"; then :
10965   e2fsprogs_cv_struct_st_flags_immut=yes
10966 else
10967   e2fsprogs_cv_struct_st_flags_immut=no
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 fi
10971
10972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10973 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10974   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10975
10976 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10977
10978   fi
10979 fi
10980 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10981          #include <sys/socket.h>
10982 "
10983 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10984
10985 cat >>confdefs.h <<_ACEOF
10986 #define HAVE_SA_LEN 1
10987 _ACEOF
10988
10989 fi
10990
10991 if test -n "$BLKID_CMT"; then
10992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10993 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10994 if ${ac_cv_search_blkid_probe_all+:} false; then :
10995   $as_echo_n "(cached) " >&6
10996 else
10997   ac_func_search_save_LIBS=$LIBS
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 /* Override any GCC internal prototype to avoid an error.
11002    Use char because int might match the return type of a GCC
11003    builtin and then its argument prototype would still apply.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char blkid_probe_all ();
11008 int
11009 main ()
11010 {
11011 return blkid_probe_all ();
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 for ac_lib in '' blkid; do
11017   if test -z "$ac_lib"; then
11018     ac_res="none required"
11019   else
11020     ac_res=-l$ac_lib
11021     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11022   fi
11023   if ac_fn_c_try_link "$LINENO"; then :
11024   ac_cv_search_blkid_probe_all=$ac_res
11025 fi
11026 rm -f core conftest.err conftest.$ac_objext \
11027     conftest$ac_exeext
11028   if ${ac_cv_search_blkid_probe_all+:} false; then :
11029   break
11030 fi
11031 done
11032 if ${ac_cv_search_blkid_probe_all+:} false; then :
11033
11034 else
11035   ac_cv_search_blkid_probe_all=no
11036 fi
11037 rm conftest.$ac_ext
11038 LIBS=$ac_func_search_save_LIBS
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11041 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11042 ac_res=$ac_cv_search_blkid_probe_all
11043 if test "$ac_res" != no; then :
11044   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11045
11046 fi
11047
11048 fi
11049 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        blkid_probe_enable_partitions   chflags         fadvise64       fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     futimes         getcwd  getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   pread   pwrite  pread64         pwrite64        secure_getenv   setmntent       setresgid       setresuid       snprintf        srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   utimes  valloc
11050 do :
11051   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11052 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11053 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11054   cat >>confdefs.h <<_ACEOF
11055 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11056 _ACEOF
11057
11058 fi
11059 done
11060
11061 SOCKET_LIB=''
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11063 $as_echo_n "checking for socket in -lsocket... " >&6; }
11064 if ${ac_cv_lib_socket_socket+:} false; then :
11065   $as_echo_n "(cached) " >&6
11066 else
11067   ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-lsocket  $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h.  */
11071
11072 /* Override any GCC internal prototype to avoid an error.
11073    Use char because int might match the return type of a GCC
11074    builtin and then its argument prototype would still apply.  */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char socket ();
11079 int
11080 main ()
11081 {
11082 return socket ();
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088   ac_cv_lib_socket_socket=yes
11089 else
11090   ac_cv_lib_socket_socket=no
11091 fi
11092 rm -f core conftest.err conftest.$ac_objext \
11093     conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11097 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11098 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11099   SOCKET_LIB=-lsocket
11100 fi
11101
11102
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11104 $as_echo_n "checking for optreset... " >&6; }
11105 if ${ac_cv_have_optreset+:} false; then :
11106   $as_echo_n "(cached) " >&6
11107 else
11108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h.  */
11110 #include <unistd.h>
11111
11112 _ACEOF
11113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11114   $EGREP "optreset" >/dev/null 2>&1; then :
11115   ac_cv_have_optreset=yes
11116 else
11117   ac_cv_have_optreset=no
11118 fi
11119 rm -f conftest*
11120
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11123 $as_echo "$ac_cv_have_optreset" >&6; }
11124 if test $ac_cv_have_optreset = yes; then
11125
11126 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11127
11128 fi
11129
11130 SEM_INIT_LIB=''
11131 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11132 if test "x$ac_cv_func_sem_init" = xyes; then :
11133
11134 else
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11136 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11137 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11138   $as_echo_n "(cached) " >&6
11139 else
11140   ac_check_lib_save_LIBS=$LIBS
11141 LIBS="-lpthread  $LIBS"
11142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h.  */
11144
11145 /* Override any GCC internal prototype to avoid an error.
11146    Use char because int might match the return type of a GCC
11147    builtin and then its argument prototype would still apply.  */
11148 #ifdef __cplusplus
11149 extern "C"
11150 #endif
11151 char sem_init ();
11152 int
11153 main ()
11154 {
11155 return sem_init ();
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 if ac_fn_c_try_link "$LINENO"; then :
11161   ac_cv_lib_pthread_sem_init=yes
11162 else
11163   ac_cv_lib_pthread_sem_init=no
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext \
11166     conftest$ac_exeext conftest.$ac_ext
11167 LIBS=$ac_check_lib_save_LIBS
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11170 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11171 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11172   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11173
11174         SEM_INIT_LIB=-lpthread
11175 else
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11177 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11178 if ${ac_cv_lib_rt_sem_init+:} false; then :
11179   $as_echo_n "(cached) " >&6
11180 else
11181   ac_check_lib_save_LIBS=$LIBS
11182 LIBS="-lrt  $LIBS"
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h.  */
11185
11186 /* Override any GCC internal prototype to avoid an error.
11187    Use char because int might match the return type of a GCC
11188    builtin and then its argument prototype would still apply.  */
11189 #ifdef __cplusplus
11190 extern "C"
11191 #endif
11192 char sem_init ();
11193 int
11194 main ()
11195 {
11196 return sem_init ();
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 if ac_fn_c_try_link "$LINENO"; then :
11202   ac_cv_lib_rt_sem_init=yes
11203 else
11204   ac_cv_lib_rt_sem_init=no
11205 fi
11206 rm -f core conftest.err conftest.$ac_objext \
11207     conftest$ac_exeext conftest.$ac_ext
11208 LIBS=$ac_check_lib_save_LIBS
11209 fi
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11211 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11212 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11213   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11214
11215         SEM_INIT_LIB=-lrt
11216 else
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11218 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11219 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11220   $as_echo_n "(cached) " >&6
11221 else
11222   ac_check_lib_save_LIBS=$LIBS
11223 LIBS="-lposix4  $LIBS"
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h.  */
11226
11227 /* Override any GCC internal prototype to avoid an error.
11228    Use char because int might match the return type of a GCC
11229    builtin and then its argument prototype would still apply.  */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 char sem_init ();
11234 int
11235 main ()
11236 {
11237 return sem_init ();
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243   ac_cv_lib_posix4_sem_init=yes
11244 else
11245   ac_cv_lib_posix4_sem_init=no
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext \
11248     conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11250 fi
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11252 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11253 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11254   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11255
11256         SEM_INIT_LIB=-lposix4
11257 fi
11258
11259 fi
11260
11261 fi
11262
11263 fi
11264
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11266 $as_echo_n "checking for unified diff option... " >&6; }
11267 if diff -u $0 $0 > /dev/null 2>&1 ; then
11268    UNI_DIFF_OPTS=-u
11269 else
11270    UNI_DIFF_OPTS=-c
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11273 $as_echo "$UNI_DIFF_OPTS" >&6; }
11274
11275 case "$host_os" in
11276 linux*)
11277
11278 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11279
11280         ;;
11281 esac
11282 LINUX_CMT="#"
11283 CYGWIN_CMT="#"
11284 UNIX_CMT=
11285 case "$host_os" in
11286 linux*)
11287         LINUX_CMT=
11288         ;;
11289 cygwin)
11290         CYGWIN_CMT=
11291         UNIX_CMT="#"
11292         ;;
11293 esac
11294
11295
11296
11297 case "$host_os" in
11298 linux* | gnu* | k*bsd*-gnu)
11299         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11300                 root_prefix="";
11301                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11302 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11303         fi
11304         ;;
11305 esac
11306 case "$host_os" in
11307 linux* | gnu* | k*bsd*-gnu)
11308         if test "$prefix" = NONE ; then
11309                 prefix="/usr";
11310                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11311 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11312                 if test "$mandir" = '${prefix}/man' ; then
11313                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11314 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11315                         mandir=/usr/share/man
11316                 fi
11317         fi
11318 ;;
11319 esac
11320 if test "$root_prefix" = NONE ; then
11321         if test "$prefix" = NONE ; then
11322                 root_prefix="$ac_default_prefix"
11323         else
11324                 root_prefix="$prefix"
11325         fi
11326         root_bindir=$bindir
11327         root_sbindir=$sbindir
11328         root_libdir=$libdir
11329         root_sysconfdir=$sysconfdir
11330 else
11331         root_bindir='${root_prefix}/bin'
11332         root_sbindir='${root_prefix}/sbin'
11333         root_libdir='${root_prefix}/lib'
11334         root_sysconfdir='${root_prefix}/etc'
11335 fi
11336 if test "$bindir" != '${exec_prefix}/bin'; then
11337     root_bindir=$bindir
11338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11339 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11340 fi
11341 if test "$sbindir" != '${exec_prefix}/sbin'; then
11342     root_sbindir=$sbindir
11343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11344 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11345 fi
11346 if test "$libdir" != '${exec_prefix}/lib'; then
11347     root_libdir=$libdir
11348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11349 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11350 fi
11351 if test "$sysconfdir" != '${prefix}/etc'; then
11352     root_sysconfdir=$sysconfdir
11353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11354 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11355 fi
11356
11357
11358
11359
11360
11361
11362 # Check whether --with-multiarch was given.
11363 if test "${with_multiarch+set}" = set; then :
11364   withval=$with_multiarch; if test "$withval" = "lib64"; then
11365     libdir=/usr/lib64
11366     root_libdir=/lib64
11367 else
11368     libdir=$libdir/$withval
11369     root_libdir=$root_libdir/$withval
11370 fi
11371
11372 fi
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11374 $as_echo_n "checking whether we can link with -static... " >&6; }
11375 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h.  */
11381 #include <stdio.h>
11382 int
11383 main ()
11384 {
11385 fflush(stdout);
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11391   ac_cv_e2fsprogs_use_static=yes
11392 else
11393   ac_cv_e2fsprogs_use_static=no
11394 fi
11395 rm -f core conftest.err conftest.$ac_objext \
11396     conftest$ac_exeext conftest.$ac_ext
11397 LDFLAGS=$SAVE_LDFLAGS
11398 fi
11399
11400 case "$host_os" in
11401 solaris2.*)
11402         ac_cv_e2fsprogs_use_static=no
11403 ;;
11404 esac
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11406 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11407 LDFLAG_STATIC=
11408 if test $ac_cv_e2fsprogs_use_static = yes; then
11409         LDFLAG_STATIC=-static
11410 fi
11411
11412 case "$host_os" in
11413 darwin*)
11414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11415 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11416
11417 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11418
11419         ;;
11420 esac
11421 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11422 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11423
11424
11425 if test "$cross_compiling" = yes ; then
11426   DO_TEST_SUITE=
11427 else
11428   DO_TEST_SUITE=check
11429 fi
11430
11431 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11432 if test -n "$CPPFLAGS" ; then
11433         INCLUDES="$INCLUDES $CPPFLAGS"
11434 fi
11435 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11436         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11437 fi
11438 if test -n "$WITH_DIET_LIBC" ; then
11439         INCLUDES="$INCLUDES -D_REENTRANT"
11440 fi
11441
11442
11443         MKINSTALLDIRS=
11444   if test -n "$ac_aux_dir"; then
11445     case "$ac_aux_dir" in
11446       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11447       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11448     esac
11449   fi
11450   if test -z "$MKINSTALLDIRS"; then
11451     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11452   fi
11453
11454
11455 if test $cross_compiling = no; then
11456    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11457    BUILD_LDFLAGS="$LDFLAGS"
11458 fi
11459
11460
11461 test -d lib || mkdir lib
11462 test -d include || mkdir include
11463 test -d include/linux || mkdir include/linux
11464 test -d include/asm || mkdir include/asm
11465 for i in MCONFIG Makefile e2fsprogs.spec \
11466         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11467         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11468         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11469         lib/uuid/Makefile lib/uuid/uuid_types.h \
11470         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11471         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11472         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11473         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11474         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11475         resize/Makefile doc/Makefile intl/Makefile \
11476         intl/libgnuintl.h po/Makefile.in ; do
11477         if test -d `dirname ${srcdir}/$i` ; then
11478                 outlist="$outlist $i"
11479         fi
11480 done
11481 ac_config_files="$ac_config_files $outlist"
11482
11483 cat >confcache <<\_ACEOF
11484 # This file is a shell script that caches the results of configure
11485 # tests run on this system so they can be shared between configure
11486 # scripts and configure runs, see configure's option --config-cache.
11487 # It is not useful on other systems.  If it contains results you don't
11488 # want to keep, you may remove or edit it.
11489 #
11490 # config.status only pays attention to the cache file if you give it
11491 # the --recheck option to rerun configure.
11492 #
11493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11495 # following values.
11496
11497 _ACEOF
11498
11499 # The following way of writing the cache mishandles newlines in values,
11500 # but we know of no workaround that is simple, portable, and efficient.
11501 # So, we kill variables containing newlines.
11502 # Ultrix sh set writes to stderr and can't be redirected directly,
11503 # and sets the high bit in the cache file unless we assign to the vars.
11504 (
11505   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11506     eval ac_val=\$$ac_var
11507     case $ac_val in #(
11508     *${as_nl}*)
11509       case $ac_var in #(
11510       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11512       esac
11513       case $ac_var in #(
11514       _ | IFS | as_nl) ;; #(
11515       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11516       *) { eval $ac_var=; unset $ac_var;} ;;
11517       esac ;;
11518     esac
11519   done
11520
11521   (set) 2>&1 |
11522     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11523     *${as_nl}ac_space=\ *)
11524       # `set' does not quote correctly, so add quotes: double-quote
11525       # substitution turns \\\\ into \\, and sed turns \\ into \.
11526       sed -n \
11527         "s/'/'\\\\''/g;
11528           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11529       ;; #(
11530     *)
11531       # `set' quotes correctly as required by POSIX, so do not add quotes.
11532       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11533       ;;
11534     esac |
11535     sort
11536 ) |
11537   sed '
11538      /^ac_cv_env_/b end
11539      t clear
11540      :clear
11541      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11542      t end
11543      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11544      :end' >>confcache
11545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11546   if test -w "$cache_file"; then
11547     if test "x$cache_file" != "x/dev/null"; then
11548       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11549 $as_echo "$as_me: updating cache $cache_file" >&6;}
11550       if test ! -f "$cache_file" || test -h "$cache_file"; then
11551         cat confcache >"$cache_file"
11552       else
11553         case $cache_file in #(
11554         */* | ?:*)
11555           mv -f confcache "$cache_file"$$ &&
11556           mv -f "$cache_file"$$ "$cache_file" ;; #(
11557         *)
11558           mv -f confcache "$cache_file" ;;
11559         esac
11560       fi
11561     fi
11562   else
11563     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11564 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11565   fi
11566 fi
11567 rm -f confcache
11568
11569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11570 # Let make expand exec_prefix.
11571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11572
11573 DEFS=-DHAVE_CONFIG_H
11574
11575 ac_libobjs=
11576 ac_ltlibobjs=
11577 U=
11578 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11579   # 1. Remove the extension, and $U if already installed.
11580   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11581   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11582   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11583   #    will be set to the directory where LIBOBJS objects are built.
11584   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11585   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11586 done
11587 LIBOBJS=$ac_libobjs
11588
11589 LTLIBOBJS=$ac_ltlibobjs
11590
11591
11592
11593
11594 : "${CONFIG_STATUS=./config.status}"
11595 ac_write_fail=0
11596 ac_clean_files_save=$ac_clean_files
11597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11599 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11600 as_write_fail=0
11601 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11602 #! $SHELL
11603 # Generated by $as_me.
11604 # Run this file to recreate the current configuration.
11605 # Compiler output produced by configure, useful for debugging
11606 # configure, is in config.log if it exists.
11607
11608 debug=false
11609 ac_cs_recheck=false
11610 ac_cs_silent=false
11611
11612 SHELL=\${CONFIG_SHELL-$SHELL}
11613 export SHELL
11614 _ASEOF
11615 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11616 ## -------------------- ##
11617 ## M4sh Initialization. ##
11618 ## -------------------- ##
11619
11620 # Be more Bourne compatible
11621 DUALCASE=1; export DUALCASE # for MKS sh
11622 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11623   emulate sh
11624   NULLCMD=:
11625   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11626   # is contrary to our usage.  Disable this feature.
11627   alias -g '${1+"$@"}'='"$@"'
11628   setopt NO_GLOB_SUBST
11629 else
11630   case `(set -o) 2>/dev/null` in #(
11631   *posix*) :
11632     set -o posix ;; #(
11633   *) :
11634      ;;
11635 esac
11636 fi
11637
11638
11639 as_nl='
11640 '
11641 export as_nl
11642 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11643 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11646 # Prefer a ksh shell builtin over an external printf program on Solaris,
11647 # but without wasting forks for bash or zsh.
11648 if test -z "$BASH_VERSION$ZSH_VERSION" \
11649     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11650   as_echo='print -r --'
11651   as_echo_n='print -rn --'
11652 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11653   as_echo='printf %s\n'
11654   as_echo_n='printf %s'
11655 else
11656   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11657     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11658     as_echo_n='/usr/ucb/echo -n'
11659   else
11660     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11661     as_echo_n_body='eval
11662       arg=$1;
11663       case $arg in #(
11664       *"$as_nl"*)
11665         expr "X$arg" : "X\\(.*\\)$as_nl";
11666         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11667       esac;
11668       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11669     '
11670     export as_echo_n_body
11671     as_echo_n='sh -c $as_echo_n_body as_echo'
11672   fi
11673   export as_echo_body
11674   as_echo='sh -c $as_echo_body as_echo'
11675 fi
11676
11677 # The user is always right.
11678 if test "${PATH_SEPARATOR+set}" != set; then
11679   PATH_SEPARATOR=:
11680   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11681     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11682       PATH_SEPARATOR=';'
11683   }
11684 fi
11685
11686
11687 # IFS
11688 # We need space, tab and new line, in precisely that order.  Quoting is
11689 # there to prevent editors from complaining about space-tab.
11690 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11691 # splitting by setting IFS to empty value.)
11692 IFS=" ""        $as_nl"
11693
11694 # Find who we are.  Look in the path if we contain no directory separator.
11695 as_myself=
11696 case $0 in #((
11697   *[\\/]* ) as_myself=$0 ;;
11698   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11700 do
11701   IFS=$as_save_IFS
11702   test -z "$as_dir" && as_dir=.
11703     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11704   done
11705 IFS=$as_save_IFS
11706
11707      ;;
11708 esac
11709 # We did not find ourselves, most probably we were run as `sh COMMAND'
11710 # in which case we are not to be found in the path.
11711 if test "x$as_myself" = x; then
11712   as_myself=$0
11713 fi
11714 if test ! -f "$as_myself"; then
11715   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11716   exit 1
11717 fi
11718
11719 # Unset variables that we do not need and which cause bugs (e.g. in
11720 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11721 # suppresses any "Segmentation fault" message there.  '((' could
11722 # trigger a bug in pdksh 5.2.14.
11723 for as_var in BASH_ENV ENV MAIL MAILPATH
11724 do eval test x\${$as_var+set} = xset \
11725   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11726 done
11727 PS1='$ '
11728 PS2='> '
11729 PS4='+ '
11730
11731 # NLS nuisances.
11732 LC_ALL=C
11733 export LC_ALL
11734 LANGUAGE=C
11735 export LANGUAGE
11736
11737 # CDPATH.
11738 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11739
11740
11741 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11742 # ----------------------------------------
11743 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11744 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11745 # script with STATUS, using 1 if that was 0.
11746 as_fn_error ()
11747 {
11748   as_status=$1; test $as_status -eq 0 && as_status=1
11749   if test "$4"; then
11750     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11751     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11752   fi
11753   $as_echo "$as_me: error: $2" >&2
11754   as_fn_exit $as_status
11755 } # as_fn_error
11756
11757
11758 # as_fn_set_status STATUS
11759 # -----------------------
11760 # Set $? to STATUS, without forking.
11761 as_fn_set_status ()
11762 {
11763   return $1
11764 } # as_fn_set_status
11765
11766 # as_fn_exit STATUS
11767 # -----------------
11768 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11769 as_fn_exit ()
11770 {
11771   set +e
11772   as_fn_set_status $1
11773   exit $1
11774 } # as_fn_exit
11775
11776 # as_fn_unset VAR
11777 # ---------------
11778 # Portably unset VAR.
11779 as_fn_unset ()
11780 {
11781   { eval $1=; unset $1;}
11782 }
11783 as_unset=as_fn_unset
11784 # as_fn_append VAR VALUE
11785 # ----------------------
11786 # Append the text in VALUE to the end of the definition contained in VAR. Take
11787 # advantage of any shell optimizations that allow amortized linear growth over
11788 # repeated appends, instead of the typical quadratic growth present in naive
11789 # implementations.
11790 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11791   eval 'as_fn_append ()
11792   {
11793     eval $1+=\$2
11794   }'
11795 else
11796   as_fn_append ()
11797   {
11798     eval $1=\$$1\$2
11799   }
11800 fi # as_fn_append
11801
11802 # as_fn_arith ARG...
11803 # ------------------
11804 # Perform arithmetic evaluation on the ARGs, and store the result in the
11805 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11806 # must be portable across $(()) and expr.
11807 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11808   eval 'as_fn_arith ()
11809   {
11810     as_val=$(( $* ))
11811   }'
11812 else
11813   as_fn_arith ()
11814   {
11815     as_val=`expr "$@" || test $? -eq 1`
11816   }
11817 fi # as_fn_arith
11818
11819
11820 if expr a : '\(a\)' >/dev/null 2>&1 &&
11821    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11822   as_expr=expr
11823 else
11824   as_expr=false
11825 fi
11826
11827 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11828   as_basename=basename
11829 else
11830   as_basename=false
11831 fi
11832
11833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11834   as_dirname=dirname
11835 else
11836   as_dirname=false
11837 fi
11838
11839 as_me=`$as_basename -- "$0" ||
11840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11841          X"$0" : 'X\(//\)$' \| \
11842          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11843 $as_echo X/"$0" |
11844     sed '/^.*\/\([^/][^/]*\)\/*$/{
11845             s//\1/
11846             q
11847           }
11848           /^X\/\(\/\/\)$/{
11849             s//\1/
11850             q
11851           }
11852           /^X\/\(\/\).*/{
11853             s//\1/
11854             q
11855           }
11856           s/.*/./; q'`
11857
11858 # Avoid depending upon Character Ranges.
11859 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11860 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11861 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11862 as_cr_digits='0123456789'
11863 as_cr_alnum=$as_cr_Letters$as_cr_digits
11864
11865 ECHO_C= ECHO_N= ECHO_T=
11866 case `echo -n x` in #(((((
11867 -n*)
11868   case `echo 'xy\c'` in
11869   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11870   xy)  ECHO_C='\c';;
11871   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11872        ECHO_T=' ';;
11873   esac;;
11874 *)
11875   ECHO_N='-n';;
11876 esac
11877
11878 rm -f conf$$ conf$$.exe conf$$.file
11879 if test -d conf$$.dir; then
11880   rm -f conf$$.dir/conf$$.file
11881 else
11882   rm -f conf$$.dir
11883   mkdir conf$$.dir 2>/dev/null
11884 fi
11885 if (echo >conf$$.file) 2>/dev/null; then
11886   if ln -s conf$$.file conf$$ 2>/dev/null; then
11887     as_ln_s='ln -s'
11888     # ... but there are two gotchas:
11889     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11890     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11891     # In both cases, we have to default to `cp -pR'.
11892     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11893       as_ln_s='cp -pR'
11894   elif ln conf$$.file conf$$ 2>/dev/null; then
11895     as_ln_s=ln
11896   else
11897     as_ln_s='cp -pR'
11898   fi
11899 else
11900   as_ln_s='cp -pR'
11901 fi
11902 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11903 rmdir conf$$.dir 2>/dev/null
11904
11905
11906 # as_fn_mkdir_p
11907 # -------------
11908 # Create "$as_dir" as a directory, including parents if necessary.
11909 as_fn_mkdir_p ()
11910 {
11911
11912   case $as_dir in #(
11913   -*) as_dir=./$as_dir;;
11914   esac
11915   test -d "$as_dir" || eval $as_mkdir_p || {
11916     as_dirs=
11917     while :; do
11918       case $as_dir in #(
11919       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11920       *) as_qdir=$as_dir;;
11921       esac
11922       as_dirs="'$as_qdir' $as_dirs"
11923       as_dir=`$as_dirname -- "$as_dir" ||
11924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11925          X"$as_dir" : 'X\(//\)[^/]' \| \
11926          X"$as_dir" : 'X\(//\)$' \| \
11927          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11928 $as_echo X"$as_dir" |
11929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11930             s//\1/
11931             q
11932           }
11933           /^X\(\/\/\)[^/].*/{
11934             s//\1/
11935             q
11936           }
11937           /^X\(\/\/\)$/{
11938             s//\1/
11939             q
11940           }
11941           /^X\(\/\).*/{
11942             s//\1/
11943             q
11944           }
11945           s/.*/./; q'`
11946       test -d "$as_dir" && break
11947     done
11948     test -z "$as_dirs" || eval "mkdir $as_dirs"
11949   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11950
11951
11952 } # as_fn_mkdir_p
11953 if mkdir -p . 2>/dev/null; then
11954   as_mkdir_p='mkdir -p "$as_dir"'
11955 else
11956   test -d ./-p && rmdir ./-p
11957   as_mkdir_p=false
11958 fi
11959
11960
11961 # as_fn_executable_p FILE
11962 # -----------------------
11963 # Test if FILE is an executable regular file.
11964 as_fn_executable_p ()
11965 {
11966   test -f "$1" && test -x "$1"
11967 } # as_fn_executable_p
11968 as_test_x='test -x'
11969 as_executable_p=as_fn_executable_p
11970
11971 # Sed expression to map a string onto a valid CPP name.
11972 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11973
11974 # Sed expression to map a string onto a valid variable name.
11975 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11976
11977
11978 exec 6>&1
11979 ## ----------------------------------- ##
11980 ## Main body of $CONFIG_STATUS script. ##
11981 ## ----------------------------------- ##
11982 _ASEOF
11983 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11984
11985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11986 # Save the log message, to keep $0 and so on meaningful, and to
11987 # report actual input values of CONFIG_FILES etc. instead of their
11988 # values after options handling.
11989 ac_log="
11990 This file was extended by $as_me, which was
11991 generated by GNU Autoconf 2.69.  Invocation command line was
11992
11993   CONFIG_FILES    = $CONFIG_FILES
11994   CONFIG_HEADERS  = $CONFIG_HEADERS
11995   CONFIG_LINKS    = $CONFIG_LINKS
11996   CONFIG_COMMANDS = $CONFIG_COMMANDS
11997   $ $0 $@
11998
11999 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12000 "
12001
12002 _ACEOF
12003
12004 case $ac_config_files in *"
12005 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12006 esac
12007
12008 case $ac_config_headers in *"
12009 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12010 esac
12011
12012
12013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12014 # Files that config.status was made for.
12015 config_files="$ac_config_files"
12016 config_headers="$ac_config_headers"
12017 config_commands="$ac_config_commands"
12018
12019 _ACEOF
12020
12021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12022 ac_cs_usage="\
12023 \`$as_me' instantiates files and other configuration actions
12024 from templates according to the current configuration.  Unless the files
12025 and actions are specified as TAGs, all are instantiated by default.
12026
12027 Usage: $0 [OPTION]... [TAG]...
12028
12029   -h, --help       print this help, then exit
12030   -V, --version    print version number and configuration settings, then exit
12031       --config     print configuration, then exit
12032   -q, --quiet, --silent
12033                    do not print progress messages
12034   -d, --debug      don't remove temporary files
12035       --recheck    update $as_me by reconfiguring in the same conditions
12036       --file=FILE[:TEMPLATE]
12037                    instantiate the configuration file FILE
12038       --header=FILE[:TEMPLATE]
12039                    instantiate the configuration header FILE
12040
12041 Configuration files:
12042 $config_files
12043
12044 Configuration headers:
12045 $config_headers
12046
12047 Configuration commands:
12048 $config_commands
12049
12050 Report bugs to the package provider."
12051
12052 _ACEOF
12053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12055 ac_cs_version="\\
12056 config.status
12057 configured by $0, generated by GNU Autoconf 2.69,
12058   with options \\"\$ac_cs_config\\"
12059
12060 Copyright (C) 2012 Free Software Foundation, Inc.
12061 This config.status script is free software; the Free Software Foundation
12062 gives unlimited permission to copy, distribute and modify it."
12063
12064 ac_pwd='$ac_pwd'
12065 srcdir='$srcdir'
12066 INSTALL='$INSTALL'
12067 AWK='$AWK'
12068 test -n "\$AWK" || AWK=awk
12069 _ACEOF
12070
12071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12072 # The default lists apply if the user does not specify any file.
12073 ac_need_defaults=:
12074 while test $# != 0
12075 do
12076   case $1 in
12077   --*=?*)
12078     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12079     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12080     ac_shift=:
12081     ;;
12082   --*=)
12083     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12084     ac_optarg=
12085     ac_shift=:
12086     ;;
12087   *)
12088     ac_option=$1
12089     ac_optarg=$2
12090     ac_shift=shift
12091     ;;
12092   esac
12093
12094   case $ac_option in
12095   # Handling of the options.
12096   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12097     ac_cs_recheck=: ;;
12098   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12099     $as_echo "$ac_cs_version"; exit ;;
12100   --config | --confi | --conf | --con | --co | --c )
12101     $as_echo "$ac_cs_config"; exit ;;
12102   --debug | --debu | --deb | --de | --d | -d )
12103     debug=: ;;
12104   --file | --fil | --fi | --f )
12105     $ac_shift
12106     case $ac_optarg in
12107     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12108     '') as_fn_error $? "missing file argument" ;;
12109     esac
12110     as_fn_append CONFIG_FILES " '$ac_optarg'"
12111     ac_need_defaults=false;;
12112   --header | --heade | --head | --hea )
12113     $ac_shift
12114     case $ac_optarg in
12115     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12116     esac
12117     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12118     ac_need_defaults=false;;
12119   --he | --h)
12120     # Conflict between --help and --header
12121     as_fn_error $? "ambiguous option: \`$1'
12122 Try \`$0 --help' for more information.";;
12123   --help | --hel | -h )
12124     $as_echo "$ac_cs_usage"; exit ;;
12125   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12126   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12127     ac_cs_silent=: ;;
12128
12129   # This is an error.
12130   -*) as_fn_error $? "unrecognized option: \`$1'
12131 Try \`$0 --help' for more information." ;;
12132
12133   *) as_fn_append ac_config_targets " $1"
12134      ac_need_defaults=false ;;
12135
12136   esac
12137   shift
12138 done
12139
12140 ac_configure_extra_args=
12141
12142 if $ac_cs_silent; then
12143   exec 6>/dev/null
12144   ac_configure_extra_args="$ac_configure_extra_args --silent"
12145 fi
12146
12147 _ACEOF
12148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12149 if \$ac_cs_recheck; then
12150   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12151   shift
12152   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12153   CONFIG_SHELL='$SHELL'
12154   export CONFIG_SHELL
12155   exec "\$@"
12156 fi
12157
12158 _ACEOF
12159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12160 exec 5>>config.log
12161 {
12162   echo
12163   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12164 ## Running $as_me. ##
12165 _ASBOX
12166   $as_echo "$ac_log"
12167 } >&5
12168
12169 _ACEOF
12170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12171 #
12172 # INIT-COMMANDS
12173 #
12174 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12175     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12176     # from automake.
12177     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12178     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12179     LINGUAS="${LINGUAS-%UNSET%}"
12180
12181
12182 _ACEOF
12183
12184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12185
12186 # Handling of arguments.
12187 for ac_config_target in $ac_config_targets
12188 do
12189   case $ac_config_target in
12190     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12191     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12192     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12193
12194   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12195   esac
12196 done
12197
12198
12199 # If the user did not use the arguments to specify the items to instantiate,
12200 # then the envvar interface is used.  Set only those that are not.
12201 # We use the long form for the default assignment because of an extremely
12202 # bizarre bug on SunOS 4.1.3.
12203 if $ac_need_defaults; then
12204   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12205   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12206   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12207 fi
12208
12209 # Have a temporary directory for convenience.  Make it in the build tree
12210 # simply because there is no reason against having it here, and in addition,
12211 # creating and moving files from /tmp can sometimes cause problems.
12212 # Hook for its removal unless debugging.
12213 # Note that there is a small window in which the directory will not be cleaned:
12214 # after its creation but before its name has been assigned to `$tmp'.
12215 $debug ||
12216 {
12217   tmp= ac_tmp=
12218   trap 'exit_status=$?
12219   : "${ac_tmp:=$tmp}"
12220   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12221 ' 0
12222   trap 'as_fn_exit 1' 1 2 13 15
12223 }
12224 # Create a (secure) tmp directory for tmp files.
12225
12226 {
12227   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12228   test -d "$tmp"
12229 }  ||
12230 {
12231   tmp=./conf$$-$RANDOM
12232   (umask 077 && mkdir "$tmp")
12233 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12234 ac_tmp=$tmp
12235
12236 # Set up the scripts for CONFIG_FILES section.
12237 # No need to generate them if there are no CONFIG_FILES.
12238 # This happens for instance with `./config.status config.h'.
12239 if test -n "$CONFIG_FILES"; then
12240
12241 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12242   ac_cs_awk_getline=:
12243   ac_cs_awk_pipe_init=
12244   ac_cs_awk_read_file='
12245       while ((getline aline < (F[key])) > 0)
12246         print(aline)
12247       close(F[key])'
12248   ac_cs_awk_pipe_fini=
12249 else
12250   ac_cs_awk_getline=false
12251   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12252   ac_cs_awk_read_file='
12253       print "|#_!!_#|"
12254       print "cat " F[key] " &&"
12255       '$ac_cs_awk_pipe_init
12256   # The final `:' finishes the AND list.
12257   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12258 fi
12259 ac_cr=`echo X | tr X '\015'`
12260 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12261 # But we know of no other shell where ac_cr would be empty at this
12262 # point, so we can use a bashism as a fallback.
12263 if test "x$ac_cr" = x; then
12264   eval ac_cr=\$\'\\r\'
12265 fi
12266 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12267 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12268   ac_cs_awk_cr='\\r'
12269 else
12270   ac_cs_awk_cr=$ac_cr
12271 fi
12272
12273 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12274 _ACEOF
12275
12276 # Create commands to substitute file output variables.
12277 {
12278   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12279   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12280   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12281   echo "_ACAWK" &&
12282   echo "_ACEOF"
12283 } >conf$$files.sh &&
12284 . ./conf$$files.sh ||
12285   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12286 rm -f conf$$files.sh
12287
12288 {
12289   echo "cat >conf$$subs.awk <<_ACEOF" &&
12290   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12291   echo "_ACEOF"
12292 } >conf$$subs.sh ||
12293   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12294 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12295 ac_delim='%!_!# '
12296 for ac_last_try in false false false false false :; do
12297   . ./conf$$subs.sh ||
12298     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12299
12300   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12301   if test $ac_delim_n = $ac_delim_num; then
12302     break
12303   elif $ac_last_try; then
12304     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12305   else
12306     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12307   fi
12308 done
12309 rm -f conf$$subs.sh
12310
12311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12312 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12313 _ACEOF
12314 sed -n '
12315 h
12316 s/^/S["/; s/!.*/"]=/
12317 p
12318 g
12319 s/^[^!]*!//
12320 :repl
12321 t repl
12322 s/'"$ac_delim"'$//
12323 t delim
12324 :nl
12325 h
12326 s/\(.\{148\}\)..*/\1/
12327 t more1
12328 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12329 p
12330 n
12331 b repl
12332 :more1
12333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12334 p
12335 g
12336 s/.\{148\}//
12337 t nl
12338 :delim
12339 h
12340 s/\(.\{148\}\)..*/\1/
12341 t more2
12342 s/["\\]/\\&/g; s/^/"/; s/$/"/
12343 p
12344 b
12345 :more2
12346 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12347 p
12348 g
12349 s/.\{148\}//
12350 t delim
12351 ' <conf$$subs.awk | sed '
12352 /^[^""]/{
12353   N
12354   s/\n//
12355 }
12356 ' >>$CONFIG_STATUS || ac_write_fail=1
12357 rm -f conf$$subs.awk
12358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12359 _ACAWK
12360 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12361   for (key in S) S_is_set[key] = 1
12362   FS = "\a"
12363   \$ac_cs_awk_pipe_init
12364 }
12365 {
12366   line = $ 0
12367   nfields = split(line, field, "@")
12368   substed = 0
12369   len = length(field[1])
12370   for (i = 2; i < nfields; i++) {
12371     key = field[i]
12372     keylen = length(key)
12373     if (S_is_set[key]) {
12374       value = S[key]
12375       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12376       len += length(value) + length(field[++i])
12377       substed = 1
12378     } else
12379       len += 1 + keylen
12380   }
12381   if (nfields == 3 && !substed) {
12382     key = field[2]
12383     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12384       \$ac_cs_awk_read_file
12385       next
12386     }
12387   }
12388   print line
12389 }
12390 \$ac_cs_awk_pipe_fini
12391 _ACAWK
12392 _ACEOF
12393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12394 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12395   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12396 else
12397   cat
12398 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12399   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12400 _ACEOF
12401
12402 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12403 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12404 # trailing colons and then remove the whole line if VPATH becomes empty
12405 # (actually we leave an empty line to preserve line numbers).
12406 if test "x$srcdir" = x.; then
12407   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12408 h
12409 s///
12410 s/^/:/
12411 s/[      ]*$/:/
12412 s/:\$(srcdir):/:/g
12413 s/:\${srcdir}:/:/g
12414 s/:@srcdir@:/:/g
12415 s/^:*//
12416 s/:*$//
12417 x
12418 s/\(=[   ]*\).*/\1/
12419 G
12420 s/\n//
12421 s/^[^=]*=[       ]*$//
12422 }'
12423 fi
12424
12425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12426 fi # test -n "$CONFIG_FILES"
12427
12428 # Set up the scripts for CONFIG_HEADERS section.
12429 # No need to generate them if there are no CONFIG_HEADERS.
12430 # This happens for instance with `./config.status Makefile'.
12431 if test -n "$CONFIG_HEADERS"; then
12432 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12433 BEGIN {
12434 _ACEOF
12435
12436 # Transform confdefs.h into an awk script `defines.awk', embedded as
12437 # here-document in config.status, that substitutes the proper values into
12438 # config.h.in to produce config.h.
12439
12440 # Create a delimiter string that does not exist in confdefs.h, to ease
12441 # handling of long lines.
12442 ac_delim='%!_!# '
12443 for ac_last_try in false false :; do
12444   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12445   if test -z "$ac_tt"; then
12446     break
12447   elif $ac_last_try; then
12448     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12449   else
12450     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12451   fi
12452 done
12453
12454 # For the awk script, D is an array of macro values keyed by name,
12455 # likewise P contains macro parameters if any.  Preserve backslash
12456 # newline sequences.
12457
12458 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12459 sed -n '
12460 s/.\{148\}/&'"$ac_delim"'/g
12461 t rset
12462 :rset
12463 s/^[     ]*#[    ]*define[       ][      ]*/ /
12464 t def
12465 d
12466 :def
12467 s/\\$//
12468 t bsnl
12469 s/["\\]/\\&/g
12470 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12471 D["\1"]=" \3"/p
12472 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12473 d
12474 :bsnl
12475 s/["\\]/\\&/g
12476 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12477 D["\1"]=" \3\\\\\\n"\\/p
12478 t cont
12479 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12480 t cont
12481 d
12482 :cont
12483 n
12484 s/.\{148\}/&'"$ac_delim"'/g
12485 t clear
12486 :clear
12487 s/\\$//
12488 t bsnlc
12489 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12490 d
12491 :bsnlc
12492 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12493 b cont
12494 ' <confdefs.h | sed '
12495 s/'"$ac_delim"'/"\\\
12496 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12497
12498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12499   for (key in D) D_is_set[key] = 1
12500   FS = "\a"
12501 }
12502 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12503   line = \$ 0
12504   split(line, arg, " ")
12505   if (arg[1] == "#") {
12506     defundef = arg[2]
12507     mac1 = arg[3]
12508   } else {
12509     defundef = substr(arg[1], 2)
12510     mac1 = arg[2]
12511   }
12512   split(mac1, mac2, "(") #)
12513   macro = mac2[1]
12514   prefix = substr(line, 1, index(line, defundef) - 1)
12515   if (D_is_set[macro]) {
12516     # Preserve the white space surrounding the "#".
12517     print prefix "define", macro P[macro] D[macro]
12518     next
12519   } else {
12520     # Replace #undef with comments.  This is necessary, for example,
12521     # in the case of _POSIX_SOURCE, which is predefined and required
12522     # on some systems where configure will not decide to define it.
12523     if (defundef == "undef") {
12524       print "/*", prefix defundef, macro, "*/"
12525       next
12526     }
12527   }
12528 }
12529 { print }
12530 _ACAWK
12531 _ACEOF
12532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12533   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12534 fi # test -n "$CONFIG_HEADERS"
12535
12536
12537 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12538 shift
12539 for ac_tag
12540 do
12541   case $ac_tag in
12542   :[FHLC]) ac_mode=$ac_tag; continue;;
12543   esac
12544   case $ac_mode$ac_tag in
12545   :[FHL]*:*);;
12546   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12547   :[FH]-) ac_tag=-:-;;
12548   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12549   esac
12550   ac_save_IFS=$IFS
12551   IFS=:
12552   set x $ac_tag
12553   IFS=$ac_save_IFS
12554   shift
12555   ac_file=$1
12556   shift
12557
12558   case $ac_mode in
12559   :L) ac_source=$1;;
12560   :[FH])
12561     ac_file_inputs=
12562     for ac_f
12563     do
12564       case $ac_f in
12565       -) ac_f="$ac_tmp/stdin";;
12566       *) # Look for the file first in the build tree, then in the source tree
12567          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12568          # because $ac_f cannot contain `:'.
12569          test -f "$ac_f" ||
12570            case $ac_f in
12571            [\\/$]*) false;;
12572            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12573            esac ||
12574            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12575       esac
12576       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12577       as_fn_append ac_file_inputs " '$ac_f'"
12578     done
12579
12580     # Let's still pretend it is `configure' which instantiates (i.e., don't
12581     # use $as_me), people would be surprised to read:
12582     #    /* config.h.  Generated by config.status.  */
12583     configure_input='Generated from '`
12584           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12585         `' by configure.'
12586     if test x"$ac_file" != x-; then
12587       configure_input="$ac_file.  $configure_input"
12588       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12589 $as_echo "$as_me: creating $ac_file" >&6;}
12590     fi
12591     # Neutralize special characters interpreted by sed in replacement strings.
12592     case $configure_input in #(
12593     *\&* | *\|* | *\\* )
12594        ac_sed_conf_input=`$as_echo "$configure_input" |
12595        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12596     *) ac_sed_conf_input=$configure_input;;
12597     esac
12598
12599     case $ac_tag in
12600     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12601       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12602     esac
12603     ;;
12604   esac
12605
12606   ac_dir=`$as_dirname -- "$ac_file" ||
12607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12608          X"$ac_file" : 'X\(//\)[^/]' \| \
12609          X"$ac_file" : 'X\(//\)$' \| \
12610          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12611 $as_echo X"$ac_file" |
12612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12613             s//\1/
12614             q
12615           }
12616           /^X\(\/\/\)[^/].*/{
12617             s//\1/
12618             q
12619           }
12620           /^X\(\/\/\)$/{
12621             s//\1/
12622             q
12623           }
12624           /^X\(\/\).*/{
12625             s//\1/
12626             q
12627           }
12628           s/.*/./; q'`
12629   as_dir="$ac_dir"; as_fn_mkdir_p
12630   ac_builddir=.
12631
12632 case "$ac_dir" in
12633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12634 *)
12635   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12636   # A ".." for each directory in $ac_dir_suffix.
12637   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12638   case $ac_top_builddir_sub in
12639   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12640   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12641   esac ;;
12642 esac
12643 ac_abs_top_builddir=$ac_pwd
12644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12645 # for backward compatibility:
12646 ac_top_builddir=$ac_top_build_prefix
12647
12648 case $srcdir in
12649   .)  # We are building in place.
12650     ac_srcdir=.
12651     ac_top_srcdir=$ac_top_builddir_sub
12652     ac_abs_top_srcdir=$ac_pwd ;;
12653   [\\/]* | ?:[\\/]* )  # Absolute name.
12654     ac_srcdir=$srcdir$ac_dir_suffix;
12655     ac_top_srcdir=$srcdir
12656     ac_abs_top_srcdir=$srcdir ;;
12657   *) # Relative name.
12658     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12659     ac_top_srcdir=$ac_top_build_prefix$srcdir
12660     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12661 esac
12662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12663
12664
12665   case $ac_mode in
12666   :F)
12667   #
12668   # CONFIG_FILE
12669   #
12670
12671   case $INSTALL in
12672   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12673   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12674   esac
12675 _ACEOF
12676
12677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12678 # If the template does not know about datarootdir, expand it.
12679 # FIXME: This hack should be removed a few years after 2.60.
12680 ac_datarootdir_hack=; ac_datarootdir_seen=
12681 ac_sed_dataroot='
12682 /datarootdir/ {
12683   p
12684   q
12685 }
12686 /@datadir@/p
12687 /@docdir@/p
12688 /@infodir@/p
12689 /@localedir@/p
12690 /@mandir@/p'
12691 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12692 *datarootdir*) ac_datarootdir_seen=yes;;
12693 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12694   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12695 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12696 _ACEOF
12697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12698   ac_datarootdir_hack='
12699   s&@datadir@&$datadir&g
12700   s&@docdir@&$docdir&g
12701   s&@infodir@&$infodir&g
12702   s&@localedir@&$localedir&g
12703   s&@mandir@&$mandir&g
12704   s&\\\${datarootdir}&$datarootdir&g' ;;
12705 esac
12706 _ACEOF
12707
12708 # Neutralize VPATH when `$srcdir' = `.'.
12709 # Shell code in configure.ac might set extrasub.
12710 # FIXME: do we really want to maintain this feature?
12711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12712 ac_sed_extra="$ac_vpsub
12713 $extrasub
12714 _ACEOF
12715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12716 :t
12717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12718 s|@configure_input@|$ac_sed_conf_input|;t t
12719 s&@top_builddir@&$ac_top_builddir_sub&;t t
12720 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12721 s&@srcdir@&$ac_srcdir&;t t
12722 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12723 s&@top_srcdir@&$ac_top_srcdir&;t t
12724 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12725 s&@builddir@&$ac_builddir&;t t
12726 s&@abs_builddir@&$ac_abs_builddir&;t t
12727 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12728 s&@INSTALL@&$ac_INSTALL&;t t
12729 $ac_datarootdir_hack
12730 "
12731 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12732 if $ac_cs_awk_getline; then
12733   $AWK -f "$ac_tmp/subs.awk"
12734 else
12735   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12736 fi \
12737   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12738
12739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12740   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12741   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12742       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12743   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12744 which seems to be undefined.  Please make sure it is defined" >&5
12745 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12746 which seems to be undefined.  Please make sure it is defined" >&2;}
12747
12748   rm -f "$ac_tmp/stdin"
12749   case $ac_file in
12750   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12751   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12752   esac \
12753   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12754  ;;
12755   :H)
12756   #
12757   # CONFIG_HEADER
12758   #
12759   if test x"$ac_file" != x-; then
12760     {
12761       $as_echo "/* $configure_input  */" \
12762       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12763     } >"$ac_tmp/config.h" \
12764       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12765     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12766       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12767 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12768     else
12769       rm -f "$ac_file"
12770       mv "$ac_tmp/config.h" "$ac_file" \
12771         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12772     fi
12773   else
12774     $as_echo "/* $configure_input  */" \
12775       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12776       || as_fn_error $? "could not create -" "$LINENO" 5
12777   fi
12778  ;;
12779
12780   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12781 $as_echo "$as_me: executing $ac_file commands" >&6;}
12782  ;;
12783   esac
12784
12785
12786   case $ac_file$ac_mode in
12787     "default-1":C)
12788     for ac_file in $CONFIG_FILES; do
12789       # Support "outfile[:infile[:infile...]]"
12790       case "$ac_file" in
12791         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12792       esac
12793       # PO directories have a Makefile.in generated from Makefile.in.in.
12794       case "$ac_file" in */Makefile.in)
12795         # Adjust a relative srcdir.
12796         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12797         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12798         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12799         # In autoconf-2.13 it is called $ac_given_srcdir.
12800         # In autoconf-2.50 it is called $srcdir.
12801         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12802         case "$ac_given_srcdir" in
12803           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12804           /*) top_srcdir="$ac_given_srcdir" ;;
12805           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12806         esac
12807         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12808           rm -f "$ac_dir/POTFILES"
12809           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12810           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12811           POMAKEFILEDEPS="POTFILES.in"
12812           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12813           # on $ac_dir but don't depend on user-specified configuration
12814           # parameters.
12815           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12816             # The LINGUAS file contains the set of available languages.
12817             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12818               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12819             fi
12820             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12821             # Hide the ALL_LINGUAS assigment from automake.
12822             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12823             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12824           else
12825             # The set of available languages was given in configure.in.
12826             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12827           fi
12828           # Compute POFILES
12829           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12830           # Compute UPDATEPOFILES
12831           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12832           # Compute DUMMYPOFILES
12833           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12834           # Compute GMOFILES
12835           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12836           case "$ac_given_srcdir" in
12837             .) srcdirpre= ;;
12838             *) srcdirpre='$(srcdir)/' ;;
12839           esac
12840           POFILES=
12841           UPDATEPOFILES=
12842           DUMMYPOFILES=
12843           GMOFILES=
12844           for lang in $ALL_LINGUAS; do
12845             POFILES="$POFILES $srcdirpre$lang.po"
12846             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12847             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12848             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12849           done
12850           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12851           # environment variable.
12852           INST_LINGUAS=
12853           if test -n "$ALL_LINGUAS"; then
12854             for presentlang in $ALL_LINGUAS; do
12855               useit=no
12856               if test "%UNSET%" != "$LINGUAS"; then
12857                 desiredlanguages="$LINGUAS"
12858               else
12859                 desiredlanguages="$ALL_LINGUAS"
12860               fi
12861               for desiredlang in $desiredlanguages; do
12862                 # Use the presentlang catalog if desiredlang is
12863                 #   a. equal to presentlang, or
12864                 #   b. a variant of presentlang (because in this case,
12865                 #      presentlang can be used as a fallback for messages
12866                 #      which are not translated in the desiredlang catalog).
12867                 case "$desiredlang" in
12868                   "$presentlang"*) useit=yes;;
12869                 esac
12870               done
12871               if test $useit = yes; then
12872                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12873               fi
12874             done
12875           fi
12876           CATALOGS=
12877           if test -n "$INST_LINGUAS"; then
12878             for lang in $INST_LINGUAS; do
12879               CATALOGS="$CATALOGS $lang.gmo"
12880             done
12881           fi
12882           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12883           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"
12884           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12885             if test -f "$f"; then
12886               case "$f" in
12887                 *.orig | *.bak | *~) ;;
12888                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12889               esac
12890             fi
12891           done
12892         fi
12893         ;;
12894       esac
12895     done ;;
12896
12897   esac
12898 done # for ac_tag
12899
12900
12901 as_fn_exit 0
12902 _ACEOF
12903 ac_clean_files=$ac_clean_files_save
12904
12905 test $ac_write_fail = 0 ||
12906   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12907
12908
12909 # configure is writing to config.log, and then calls config.status.
12910 # config.status does its own redirection, appending to config.log.
12911 # Unfortunately, on DOS this fails, as config.log is still kept open
12912 # by configure, so config.status won't be able to write to it; its
12913 # output is simply discarded.  So we exec the FD to /dev/null,
12914 # effectively closing config.log, so it can be properly (re)opened and
12915 # appended to by config.status.  When coming back to configure, we
12916 # need to make the FD available again.
12917 if test "$no_create" != yes; then
12918   ac_cs_success=:
12919   ac_config_status_args=
12920   test "$silent" = yes &&
12921     ac_config_status_args="$ac_config_status_args --quiet"
12922   exec 5>/dev/null
12923   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12924   exec 5>>config.log
12925   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12926   # would make configure fail if this is the last instruction.
12927   $ac_cs_success || as_fn_exit 1
12928 fi
12929 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12930   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12931 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12932 fi
12933
12934 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi