OSDN Git Service

Merge branch 'maint' into next
[android-x86/external-e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="version.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 #  include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 #  include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 LIBOBJS
597 BUILD_LDFLAGS
598 BUILD_CFLAGS
599 INTL_FLAGS
600 DO_TEST_SUITE
601 ET_DIR
602 SS_DIR
603 LDFLAG_STATIC
604 root_sysconfdir
605 root_libdir
606 root_sbindir
607 root_bindir
608 root_prefix
609 UNIX_CMT
610 CYGWIN_CMT
611 LINUX_CMT
612 UNI_DIFF_OPTS
613 SEM_INIT_LIB
614 SOCKET_LIB
615 SIZEOF_LONG_LONG
616 SIZEOF_LONG
617 SIZEOF_INT
618 SIZEOF_SHORT
619 BUILD_CC
620 MAKEINFO
621 STRIP
622 AR
623 LDCONFIG
624 PERL
625 SED
626 AWK
627 CHMOD
628 RM
629 CP
630 MV
631 LN_S
632 LN
633 ifNotGNUmake
634 ifGNUmake
635 BINARY_TYPE
636 POSUB
637 LTLIBINTL
638 LIBINTL
639 INTLLIBS
640 INTL_LIBTOOL_SUFFIX_PREFIX
641 INTLOBJS
642 GENCAT
643 INSTOBJEXT
644 DATADIRNAME
645 CATOBJEXT
646 USE_INCLUDED_LIBINTL
647 BUILD_INCLUDED_LIBINTL
648 INTLBISON
649 LTLIBICONV
650 LIBICONV
651 HAVE_WPRINTF
652 HAVE_SNPRINTF
653 HAVE_ASPRINTF
654 HAVE_POSIX_PRINTF
655 GLIBC21
656 ALLOCA
657 RANLIB
658 MSGMERGE
659 XGETTEXT
660 GMSGFMT
661 MSGFMT
662 USE_NLS
663 MKINSTALLDIRS
664 INSTALL_DATA
665 INSTALL_SCRIPT
666 INSTALL_PROGRAM
667 SET_MAKE
668 VERSION
669 PACKAGE
670 GETTEXT_PACKAGE
671 UUIDD_CMT
672 E2INITRD_MAN
673 E2INITRD_PROG
674 FSCK_MAN
675 FSCK_PROG
676 DEFRAG_CMT
677 RESIZER_CMT
678 IMAGER_CMT
679 DEBUGFS_CMT
680 BLKID_CMT
681 DEPPROFILED_LIBBLKID
682 PROFILED_LIBBLKID
683 DEPSTATIC_LIBBLKID
684 STATIC_LIBBLKID
685 DEPLIBBLKID
686 LIBBLKID
687 UUID_CMT
688 DEPPROFILED_LIBUUID
689 PROFILED_LIBUUID
690 DEPSTATIC_LIBUUID
691 STATIC_LIBUUID
692 DEPLIBUUID
693 LIBUUID
694 PKG_CONFIG
695 TEST_IO_CMT
696 PRIVATE_LIBS_CMT
697 LDFLAG_DYNAMIC
698 PROFILED_LIB_EXT
699 STATIC_LIB_EXT
700 LIB_EXT
701 CHECKER_CMT
702 PROFILE_CMT
703 BSDLIB_CMT
704 ELF_CMT
705 HTREE_CMT
706 Q
707 E
708 LINK_BUILD_FLAGS
709 LINK_INSTALL_FLAGS
710 MAINTAINER_CMT
711 LINUX_INCLUDE
712 EGREP
713 GREP
714 CPP
715 DLOPEN_LIB
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 E2FSPROGS_PKGVER
732 E2FSPROGS_VERSION
733 E2FSPROGS_DAY
734 E2FSPROGS_MONTH
735 E2FSPROGS_YEAR
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files='MCONFIG
775 MAKEFILE_ELF
776 MAKEFILE_BSDLIB
777 MAKEFILE_PROFILE
778 MAKEFILE_CHECKER
779 MAKEFILE_LIBRARY
780 ASM_TYPES_HEADER
781 PUBLIC_CONFIG_HEADER'
782 ac_user_opts='
783 enable_option_checking
784 with_diet_libc
785 with_cc
786 with_ccopts
787 with_ldopts
788 with_root_prefix
789 enable_maintainer_mode
790 enable_symlink_install
791 enable_symlink_build
792 enable_verbose_makecmds
793 enable_compression
794 enable_htree
795 enable_elf_shlibs
796 enable_bsd_shlibs
797 enable_profile
798 enable_checker
799 enable_jbd_debug
800 enable_blkid_debug
801 enable_testio_debug
802 enable_libuuid
803 enable_libblkid
804 enable_debugfs
805 enable_imager
806 enable_resizer
807 enable_defrag
808 enable_fsck
809 enable_e2initrd_helper
810 enable_tls
811 enable_uuidd
812 enable_nls
813 with_gnu_ld
814 enable_rpath
815 with_libiconv_prefix
816 with_included_gettext
817 with_libintl_prefix
818 '
819       ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 CPP
828 PKG_CONFIG'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883   # If the previous option needs an argument, assign it.
884   if test -n "$ac_prev"; then
885     eval $ac_prev=\$ac_option
886     ac_prev=
887     continue
888   fi
889
890   case $ac_option in
891   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892   *)    ac_optarg=yes ;;
893   esac
894
895   # Accept the important Cygnus configure options, so we can diagnose typos.
896
897   case $ac_dashdash$ac_option in
898   --)
899     ac_dashdash=yes ;;
900
901   -bindir | --bindir | --bindi | --bind | --bin | --bi)
902     ac_prev=bindir ;;
903   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904     bindir=$ac_optarg ;;
905
906   -build | --build | --buil | --bui | --bu)
907     ac_prev=build_alias ;;
908   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909     build_alias=$ac_optarg ;;
910
911   -cache-file | --cache-file | --cache-fil | --cache-fi \
912   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913     ac_prev=cache_file ;;
914   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916     cache_file=$ac_optarg ;;
917
918   --config-cache | -C)
919     cache_file=config.cache ;;
920
921   -datadir | --datadir | --datadi | --datad)
922     ac_prev=datadir ;;
923   -datadir=* | --datadir=* | --datadi=* | --datad=*)
924     datadir=$ac_optarg ;;
925
926   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927   | --dataroo | --dataro | --datar)
928     ac_prev=datarootdir ;;
929   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931     datarootdir=$ac_optarg ;;
932
933   -disable-* | --disable-*)
934     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935     # Reject names that are not valid shell variable names.
936     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937       as_fn_error "invalid feature name: $ac_useropt"
938     ac_useropt_orig=$ac_useropt
939     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940     case $ac_user_opts in
941       *"
942 "enable_$ac_useropt"
943 "*) ;;
944       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945          ac_unrecognized_sep=', ';;
946     esac
947     eval enable_$ac_useropt=no ;;
948
949   -docdir | --docdir | --docdi | --doc | --do)
950     ac_prev=docdir ;;
951   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952     docdir=$ac_optarg ;;
953
954   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955     ac_prev=dvidir ;;
956   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957     dvidir=$ac_optarg ;;
958
959   -enable-* | --enable-*)
960     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963       as_fn_error "invalid feature name: $ac_useropt"
964     ac_useropt_orig=$ac_useropt
965     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966     case $ac_user_opts in
967       *"
968 "enable_$ac_useropt"
969 "*) ;;
970       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971          ac_unrecognized_sep=', ';;
972     esac
973     eval enable_$ac_useropt=\$ac_optarg ;;
974
975   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977   | --exec | --exe | --ex)
978     ac_prev=exec_prefix ;;
979   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981   | --exec=* | --exe=* | --ex=*)
982     exec_prefix=$ac_optarg ;;
983
984   -gas | --gas | --ga | --g)
985     # Obsolete; use --with-gas.
986     with_gas=yes ;;
987
988   -help | --help | --hel | --he | -h)
989     ac_init_help=long ;;
990   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991     ac_init_help=recursive ;;
992   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993     ac_init_help=short ;;
994
995   -host | --host | --hos | --ho)
996     ac_prev=host_alias ;;
997   -host=* | --host=* | --hos=* | --ho=*)
998     host_alias=$ac_optarg ;;
999
1000   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001     ac_prev=htmldir ;;
1002   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003   | --ht=*)
1004     htmldir=$ac_optarg ;;
1005
1006   -includedir | --includedir | --includedi | --included | --include \
1007   | --includ | --inclu | --incl | --inc)
1008     ac_prev=includedir ;;
1009   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010   | --includ=* | --inclu=* | --incl=* | --inc=*)
1011     includedir=$ac_optarg ;;
1012
1013   -infodir | --infodir | --infodi | --infod | --info | --inf)
1014     ac_prev=infodir ;;
1015   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016     infodir=$ac_optarg ;;
1017
1018   -libdir | --libdir | --libdi | --libd)
1019     ac_prev=libdir ;;
1020   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021     libdir=$ac_optarg ;;
1022
1023   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024   | --libexe | --libex | --libe)
1025     ac_prev=libexecdir ;;
1026   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027   | --libexe=* | --libex=* | --libe=*)
1028     libexecdir=$ac_optarg ;;
1029
1030   -localedir | --localedir | --localedi | --localed | --locale)
1031     ac_prev=localedir ;;
1032   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033     localedir=$ac_optarg ;;
1034
1035   -localstatedir | --localstatedir | --localstatedi | --localstated \
1036   | --localstate | --localstat | --localsta | --localst | --locals)
1037     ac_prev=localstatedir ;;
1038   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040     localstatedir=$ac_optarg ;;
1041
1042   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043     ac_prev=mandir ;;
1044   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045     mandir=$ac_optarg ;;
1046
1047   -nfp | --nfp | --nf)
1048     # Obsolete; use --without-fp.
1049     with_fp=no ;;
1050
1051   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052   | --no-cr | --no-c | -n)
1053     no_create=yes ;;
1054
1055   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057     no_recursion=yes ;;
1058
1059   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061   | --oldin | --oldi | --old | --ol | --o)
1062     ac_prev=oldincludedir ;;
1063   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066     oldincludedir=$ac_optarg ;;
1067
1068   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069     ac_prev=prefix ;;
1070   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071     prefix=$ac_optarg ;;
1072
1073   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074   | --program-pre | --program-pr | --program-p)
1075     ac_prev=program_prefix ;;
1076   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078     program_prefix=$ac_optarg ;;
1079
1080   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081   | --program-suf | --program-su | --program-s)
1082     ac_prev=program_suffix ;;
1083   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085     program_suffix=$ac_optarg ;;
1086
1087   -program-transform-name | --program-transform-name \
1088   | --program-transform-nam | --program-transform-na \
1089   | --program-transform-n | --program-transform- \
1090   | --program-transform | --program-transfor \
1091   | --program-transfo | --program-transf \
1092   | --program-trans | --program-tran \
1093   | --progr-tra | --program-tr | --program-t)
1094     ac_prev=program_transform_name ;;
1095   -program-transform-name=* | --program-transform-name=* \
1096   | --program-transform-nam=* | --program-transform-na=* \
1097   | --program-transform-n=* | --program-transform-=* \
1098   | --program-transform=* | --program-transfor=* \
1099   | --program-transfo=* | --program-transf=* \
1100   | --program-trans=* | --program-tran=* \
1101   | --progr-tra=* | --program-tr=* | --program-t=*)
1102     program_transform_name=$ac_optarg ;;
1103
1104   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105     ac_prev=pdfdir ;;
1106   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107     pdfdir=$ac_optarg ;;
1108
1109   -psdir | --psdir | --psdi | --psd | --ps)
1110     ac_prev=psdir ;;
1111   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112     psdir=$ac_optarg ;;
1113
1114   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115   | -silent | --silent | --silen | --sile | --sil)
1116     silent=yes ;;
1117
1118   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119     ac_prev=sbindir ;;
1120   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121   | --sbi=* | --sb=*)
1122     sbindir=$ac_optarg ;;
1123
1124   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126   | --sharedst | --shareds | --shared | --share | --shar \
1127   | --sha | --sh)
1128     ac_prev=sharedstatedir ;;
1129   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132   | --sha=* | --sh=*)
1133     sharedstatedir=$ac_optarg ;;
1134
1135   -site | --site | --sit)
1136     ac_prev=site ;;
1137   -site=* | --site=* | --sit=*)
1138     site=$ac_optarg ;;
1139
1140   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141     ac_prev=srcdir ;;
1142   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143     srcdir=$ac_optarg ;;
1144
1145   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146   | --syscon | --sysco | --sysc | --sys | --sy)
1147     ac_prev=sysconfdir ;;
1148   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150     sysconfdir=$ac_optarg ;;
1151
1152   -target | --target | --targe | --targ | --tar | --ta | --t)
1153     ac_prev=target_alias ;;
1154   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155     target_alias=$ac_optarg ;;
1156
1157   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158     verbose=yes ;;
1159
1160   -version | --version | --versio | --versi | --vers | -V)
1161     ac_init_version=: ;;
1162
1163   -with-* | --with-*)
1164     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167       as_fn_error "invalid package name: $ac_useropt"
1168     ac_useropt_orig=$ac_useropt
1169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170     case $ac_user_opts in
1171       *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175          ac_unrecognized_sep=', ';;
1176     esac
1177     eval with_$ac_useropt=\$ac_optarg ;;
1178
1179   -without-* | --without-*)
1180     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183       as_fn_error "invalid package name: $ac_useropt"
1184     ac_useropt_orig=$ac_useropt
1185     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186     case $ac_user_opts in
1187       *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191          ac_unrecognized_sep=', ';;
1192     esac
1193     eval with_$ac_useropt=no ;;
1194
1195   --x)
1196     # Obsolete; use --with-x.
1197     with_x=yes ;;
1198
1199   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200   | --x-incl | --x-inc | --x-in | --x-i)
1201     ac_prev=x_includes ;;
1202   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204     x_includes=$ac_optarg ;;
1205
1206   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208     ac_prev=x_libraries ;;
1209   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211     x_libraries=$ac_optarg ;;
1212
1213   -*) as_fn_error "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information."
1215     ;;
1216
1217   *=*)
1218     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219     # Reject names that are not valid shell variable names.
1220     case $ac_envvar in #(
1221       '' | [0-9]* | *[!_$as_cr_alnum]* )
1222       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223     esac
1224     eval $ac_envvar=\$ac_optarg
1225     export $ac_envvar ;;
1226
1227   *)
1228     # FIXME: should be removed in autoconf 3.0.
1229     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1233     ;;
1234
1235   esac
1236 done
1237
1238 if test -n "$ac_prev"; then
1239   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240   as_fn_error "missing argument to $ac_option"
1241 fi
1242
1243 if test -n "$ac_unrecognized_opts"; then
1244   case $enable_option_checking in
1245     no) ;;
1246     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248   esac
1249 fi
1250
1251 # Check all directory arguments for consistency.
1252 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253                 datadir sysconfdir sharedstatedir localstatedir includedir \
1254                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255                 libdir localedir mandir
1256 do
1257   eval ac_val=\$$ac_var
1258   # Remove trailing slashes.
1259   case $ac_val in
1260     */ )
1261       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262       eval $ac_var=\$ac_val;;
1263   esac
1264   # Be sure to have absolute directory names.
1265   case $ac_val in
1266     [\\/$]* | ?:[\\/]* )  continue;;
1267     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268   esac
1269   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1271
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1278
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281   if test "x$build_alias" = x; then
1282     cross_compiling=maybe
1283     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284     If a cross compiler is detected then cross compile mode will be used." >&2
1285   elif test "x$build_alias" != "x$host_alias"; then
1286     cross_compiling=yes
1287   fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299   as_fn_error "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301   as_fn_error "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306   ac_srcdir_defaulted=yes
1307   # Try the directory containing this script, then the parent directory.
1308   ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310          X"$as_myself" : 'X\(//\)[^/]' \| \
1311          X"$as_myself" : 'X\(//\)$' \| \
1312          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\/\)[^/].*/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\/\)$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\).*/{
1327             s//\1/
1328             q
1329           }
1330           s/.*/./; q'`
1331   srcdir=$ac_confdir
1332   if test ! -r "$srcdir/$ac_unique_file"; then
1333     srcdir=..
1334   fi
1335 else
1336   ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345         pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348   srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358   eval ac_env_${ac_var}_value=\$${ac_var}
1359   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367   # Omit some internal or obsolete options to make the list less imposing.
1368   # This message is too long to be a string in the A/UX 3.1 sh.
1369   cat <<_ACEOF
1370 \`configure' configures this package to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE.  See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380   -h, --help              display this help and exit
1381       --help=short        display options specific to this package
1382       --help=recursive    display the short help of all the included packages
1383   -V, --version           display version information and exit
1384   -q, --quiet, --silent   do not print \`checking...' messages
1385       --cache-file=FILE   cache test results in FILE [disabled]
1386   -C, --config-cache      alias for \`--cache-file=config.cache'
1387   -n, --no-create         do not create output files
1388       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391   --prefix=PREFIX         install architecture-independent files in PREFIX
1392                           [$ac_default_prefix]
1393   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1394                           [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404   --bindir=DIR            user executables [EPREFIX/bin]
1405   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1406   --libexecdir=DIR        program executables [EPREFIX/libexec]
1407   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1408   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1409   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1410   --libdir=DIR            object code libraries [EPREFIX/lib]
1411   --includedir=DIR        C header files [PREFIX/include]
1412   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1413   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1414   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1415   --infodir=DIR           info documentation [DATAROOTDIR/info]
1416   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1417   --mandir=DIR            man documentation [DATAROOTDIR/man]
1418   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1419   --htmldir=DIR           html documentation [DOCDIR]
1420   --dvidir=DIR            dvi documentation [DOCDIR]
1421   --pdfdir=DIR            pdf documentation [DOCDIR]
1422   --psdir=DIR             ps documentation [DOCDIR]
1423 _ACEOF
1424
1425   cat <<\_ACEOF
1426
1427 System types:
1428   --build=BUILD     configure for building on BUILD [guessed]
1429   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1430 _ACEOF
1431 fi
1432
1433 if test -n "$ac_init_help"; then
1434
1435   cat <<\_ACEOF
1436
1437 Optional Features:
1438   --disable-option-checking  ignore unrecognized --enable/--with options
1439   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1440   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1441   --enable-maintainer-mode enable makefile rules useful for maintainers
1442   --enable-symlink-install use symlinks when installing instead of hard links
1443   --enable-symlink-build  use symlinks while building instead of hard links
1444   --enable-verbose-makecmds enable verbose make command output
1445   --enable-compression    enable EXPERIMENTAL compression support
1446   --enable-htree          enable EXPERIMENTAL htree directory support
1447   --enable-elf-shlibs     select ELF shared libraries
1448   --enable-bsd-shlibs     select BSD shared libraries
1449   --enable-profile        build profiling libraries
1450   --enable-checker        build checker libraries
1451   --enable-jbd-debug      enable journal debugging
1452   --enable-blkid-debug    enable blkid debugging
1453   --disable-testio-debug  disable the use of the test I/O manager for debugging
1454   --disable-libuuid       do not build private uuid library
1455   --disable-libblkid      do not build private blkid library
1456   --disable-debugfs       disable support of debugfs program
1457   --disable-imager        disable support of e2image program
1458   --disable-resizer       disable support of e2resize program
1459   --disable-defrag        disable support of e4defrag program
1460   --enable-fsck           build fsck wrapper program
1461   --enable-e2initrd-helper build e2initrd-helper program
1462   --disable-tls           disable use of thread local support
1463   --disable-uuidd         disable building the uuid daemon
1464   --disable-nls           do not use Native Language Support
1465   --disable-rpath         do not hardcode runtime library paths
1466
1467 Optional Packages:
1468   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1469   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1470   --with-diet-libc        use diet libc
1471   --with-cc               no longer supported, use CC= instead
1472   --with-ccopts           no longer supported, use CFLAGS= instead
1473   --with-ldopts           no longer supported, use LDFLAGS= instead
1474   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1475   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1476   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1477   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1478   --with-included-gettext use the GNU gettext library included here
1479   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1480   --without-libintl-prefix     don't search for libintl in includedir and libdir
1481
1482 Some influential environment variables:
1483   CC          C compiler command
1484   CFLAGS      C compiler flags
1485   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1486               nonstandard directory <lib dir>
1487   LIBS        libraries to pass to the linker, e.g. -l<library>
1488   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489               you have headers in a nonstandard directory <include dir>
1490   CPP         C preprocessor
1491   PKG_CONFIG  path to pkg-config utility
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 Report bugs to the package provider.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502   # If there are subdirs, report their specific --help.
1503   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504     test -d "$ac_dir" ||
1505       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506       continue
1507     ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513   # A ".." for each directory in $ac_dir_suffix.
1514   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515   case $ac_top_builddir_sub in
1516   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518   esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526   .)  # We are building in place.
1527     ac_srcdir=.
1528     ac_top_srcdir=$ac_top_builddir_sub
1529     ac_abs_top_srcdir=$ac_pwd ;;
1530   [\\/]* | ?:[\\/]* )  # Absolute name.
1531     ac_srcdir=$srcdir$ac_dir_suffix;
1532     ac_top_srcdir=$srcdir
1533     ac_abs_top_srcdir=$srcdir ;;
1534   *) # Relative name.
1535     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536     ac_top_srcdir=$ac_top_build_prefix$srcdir
1537     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541     cd "$ac_dir" || { ac_status=$?; continue; }
1542     # Check for guested configure.
1543     if test -f "$ac_srcdir/configure.gnu"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546     elif test -f "$ac_srcdir/configure"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure" --help=recursive
1549     else
1550       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551     fi || ac_status=$?
1552     cd "$ac_pwd" || { ac_status=$?; break; }
1553   done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558   cat <<\_ACEOF
1559 configure
1560 generated by GNU Autoconf 2.65
1561
1562 Copyright (C) 2009 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566   exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579   rm -f conftest.$ac_objext
1580   if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583   *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587   (eval "$ac_compile") 2>conftest.err
1588   ac_status=$?
1589   if test -s conftest.err; then
1590     grep -v '^ *+' conftest.err >conftest.er1
1591     cat conftest.er1 >&5
1592     mv -f conftest.er1 conftest.err
1593   fi
1594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595   test $ac_status = 0; } && {
1596          test -z "$ac_c_werror_flag" ||
1597          test ! -s conftest.err
1598        } && test -s conftest.$ac_objext; then :
1599   ac_retval=0
1600 else
1601   $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604         ac_retval=1
1605 fi
1606   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607   as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_link ()
1615 {
1616   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617   rm -f conftest.$ac_objext conftest$ac_exeext
1618   if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621   *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625   (eval "$ac_link") 2>conftest.err
1626   ac_status=$?
1627   if test -s conftest.err; then
1628     grep -v '^ *+' conftest.err >conftest.er1
1629     cat conftest.er1 >&5
1630     mv -f conftest.er1 conftest.err
1631   fi
1632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633   test $ac_status = 0; } && {
1634          test -z "$ac_c_werror_flag" ||
1635          test ! -s conftest.err
1636        } && test -s conftest$ac_exeext && {
1637          test "$cross_compiling" = yes ||
1638          $as_test_x conftest$ac_exeext
1639        }; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645         ac_retval=1
1646 fi
1647   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649   # interfere with the next link command; also delete a directory that is
1650   # left behind by Apple's compiler.  We do this before executing the actions.
1651   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653   as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_link
1656
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_cpp ()
1661 {
1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663   if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 case "(($ac_try" in
1665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666   *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671   ac_status=$?
1672   if test -s conftest.err; then
1673     grep -v '^ *+' conftest.err >conftest.er1
1674     cat conftest.er1 >&5
1675     mv -f conftest.er1 conftest.err
1676   fi
1677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678   test $ac_status = 0; } >/dev/null && {
1679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680          test ! -s conftest.err
1681        }; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687     ac_retval=1
1688 fi
1689   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690   as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_cpp
1693
1694 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1697 # the include files in INCLUDES and setting the cache variable VAR
1698 # accordingly.
1699 ac_fn_c_check_header_mongrel ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706   $as_echo_n "(cached) " >&6
1707 fi
1708 eval ac_res=\$$3
1709                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1711 else
1712   # Is the header compilable?
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1714 $as_echo_n "checking $2 usability... " >&6; }
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h.  */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721   ac_header_compiler=yes
1722 else
1723   ac_header_compiler=no
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1727 $as_echo "$ac_header_compiler" >&6; }
1728
1729 # Is the header present?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1731 $as_echo_n "checking $2 presence... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h.  */
1734 #include <$2>
1735 _ACEOF
1736 if ac_fn_c_try_cpp "$LINENO"; then :
1737   ac_header_preproc=yes
1738 else
1739   ac_header_preproc=no
1740 fi
1741 rm -f conftest.err conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1743 $as_echo "$ac_header_preproc" >&6; }
1744
1745 # So?  What about this header?
1746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1747   yes:no: )
1748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1749 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752     ;;
1753   no:yes:* )
1754     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1755 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1757 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1759 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1760     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1761 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1762     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764     ;;
1765 esac
1766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1769   $as_echo_n "(cached) " >&6
1770 else
1771   eval "$3=\$ac_header_compiler"
1772 fi
1773 eval ac_res=\$$3
1774                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 fi
1777   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778
1779 } # ac_fn_c_check_header_mongrel
1780
1781 # ac_fn_c_try_run LINENO
1782 # ----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1784 # that executables *can* be run.
1785 ac_fn_c_try_run ()
1786 {
1787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788   if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791   *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795   (eval "$ac_link") 2>&5
1796   ac_status=$?
1797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1799   { { case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805   (eval "$ac_try") 2>&5
1806   ac_status=$?
1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; }; }; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: program exited with status $ac_status" >&5
1812        $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815        ac_retval=$ac_status
1816 fi
1817   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819   as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_run
1822
1823 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists and can be compiled using the include files in
1826 # INCLUDES, setting the cache variable VAR accordingly.
1827 ac_fn_c_check_header_compile ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833   $as_echo_n "(cached) " >&6
1834 else
1835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 $4
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841   eval "$3=yes"
1842 else
1843   eval "$3=no"
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 fi
1847 eval ac_res=\$$3
1848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851
1852 } # ac_fn_c_check_header_compile
1853
1854 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1855 # -------------------------------------------
1856 # Tests whether TYPE exists after having included INCLUDES, setting cache
1857 # variable VAR accordingly.
1858 ac_fn_c_check_type ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864   $as_echo_n "(cached) " >&6
1865 else
1866   eval "$3=no"
1867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h.  */
1869 $4
1870 int
1871 main ()
1872 {
1873 if (sizeof ($2))
1874          return 0;
1875   ;
1876   return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 $4
1883 int
1884 main ()
1885 {
1886 if (sizeof (($2)))
1887             return 0;
1888   ;
1889   return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893
1894 else
1895   eval "$3=yes"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
1906 } # ac_fn_c_check_type
1907
1908 # ac_fn_c_check_func LINENO FUNC VAR
1909 # ----------------------------------
1910 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1911 ac_fn_c_check_func ()
1912 {
1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917   $as_echo_n "(cached) " >&6
1918 else
1919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h.  */
1921 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1923 #define $2 innocuous_$2
1924
1925 /* System header to define __stub macros and hopefully few prototypes,
1926     which can conflict with char $2 (); below.
1927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1928     <limits.h> exists even on freestanding compilers.  */
1929
1930 #ifdef __STDC__
1931 # include <limits.h>
1932 #else
1933 # include <assert.h>
1934 #endif
1935
1936 #undef $2
1937
1938 /* Override any GCC internal prototype to avoid an error.
1939    Use char because int might match the return type of a GCC
1940    builtin and then its argument prototype would still apply.  */
1941 #ifdef __cplusplus
1942 extern "C"
1943 #endif
1944 char $2 ();
1945 /* The GNU C library defines this for functions which it implements
1946     to always fail with ENOSYS.  Some functions are actually named
1947     something starting with __ and the normal name is an alias.  */
1948 #if defined __stub_$2 || defined __stub___$2
1949 choke me
1950 #endif
1951
1952 int
1953 main ()
1954 {
1955 return $2 ();
1956   ;
1957   return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_link "$LINENO"; then :
1961   eval "$3=yes"
1962 else
1963   eval "$3=no"
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext \
1966     conftest$ac_exeext conftest.$ac_ext
1967 fi
1968 eval ac_res=\$$3
1969                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972
1973 } # ac_fn_c_check_func
1974
1975 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1976 # --------------------------------------------
1977 # Tries to find the compile-time value of EXPR in a program that includes
1978 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1979 # computed
1980 ac_fn_c_compute_int ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   if test "$cross_compiling" = yes; then
1984     # Depending upon the size, compute the lo and hi bounds.
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h.  */
1987 $4
1988 int
1989 main ()
1990 {
1991 static int test_array [1 - 2 * !(($2) >= 0)];
1992 test_array [0] = 0
1993
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   ac_lo=0 ac_mid=0
2000   while :; do
2001     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $4
2004 int
2005 main ()
2006 {
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008 test_array [0] = 0
2009
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015   ac_hi=$ac_mid; break
2016 else
2017   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018                         if test $ac_lo -le $ac_mid; then
2019                           ac_lo= ac_hi=
2020                           break
2021                         fi
2022                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025   done
2026 else
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 int
2031 main ()
2032 {
2033 static int test_array [1 - 2 * !(($2) < 0)];
2034 test_array [0] = 0
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041   ac_hi=-1 ac_mid=-1
2042   while :; do
2043     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h.  */
2045 $4
2046 int
2047 main ()
2048 {
2049 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2050 test_array [0] = 0
2051
2052   ;
2053   return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057   ac_lo=$ac_mid; break
2058 else
2059   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2060                         if test $ac_mid -le $ac_hi; then
2061                           ac_lo= ac_hi=
2062                           break
2063                         fi
2064                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067   done
2068 else
2069   ac_lo= ac_hi=
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 # Binary search between lo and hi bounds.
2075 while test "x$ac_lo" != "x$ac_hi"; do
2076   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h.  */
2079 $4
2080 int
2081 main ()
2082 {
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 test_array [0] = 0
2085
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091   ac_hi=$ac_mid
2092 else
2093   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 done
2097 case $ac_lo in #((
2098 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2099 '') ac_retval=1 ;;
2100 esac
2101   else
2102     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h.  */
2104 $4
2105 static long int longval () { return $2; }
2106 static unsigned long int ulongval () { return $2; }
2107 #include <stdio.h>
2108 #include <stdlib.h>
2109 int
2110 main ()
2111 {
2112
2113   FILE *f = fopen ("conftest.val", "w");
2114   if (! f)
2115     return 1;
2116   if (($2) < 0)
2117     {
2118       long int i = longval ();
2119       if (i != ($2))
2120         return 1;
2121       fprintf (f, "%ld", i);
2122     }
2123   else
2124     {
2125       unsigned long int i = ulongval ();
2126       if (i != ($2))
2127         return 1;
2128       fprintf (f, "%lu", i);
2129     }
2130   /* Do not output a trailing newline, as this causes \r\n confusion
2131      on some platforms.  */
2132   return ferror (f) || fclose (f) != 0;
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_run "$LINENO"; then :
2139   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2140 else
2141   ac_retval=1
2142 fi
2143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2144   conftest.$ac_objext conftest.beam conftest.$ac_ext
2145 rm -f conftest.val
2146
2147   fi
2148   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149   as_fn_set_status $ac_retval
2150
2151 } # ac_fn_c_compute_int
2152
2153 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2154 # ----------------------------------------------------
2155 # Tries to find if the field MEMBER exists in type AGGR, after including
2156 # INCLUDES, setting cache variable VAR accordingly.
2157 ac_fn_c_check_member ()
2158 {
2159   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2161 $as_echo_n "checking for $2.$3... " >&6; }
2162 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2163   $as_echo_n "(cached) " >&6
2164 else
2165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $5
2168 int
2169 main ()
2170 {
2171 static $2 ac_aggr;
2172 if (ac_aggr.$3)
2173 return 0;
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179   eval "$4=yes"
2180 else
2181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h.  */
2183 $5
2184 int
2185 main ()
2186 {
2187 static $2 ac_aggr;
2188 if (sizeof ac_aggr.$3)
2189 return 0;
2190   ;
2191   return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195   eval "$4=yes"
2196 else
2197   eval "$4=no"
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 fi
2203 eval ac_res=\$$4
2204                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207
2208 } # ac_fn_c_check_member
2209
2210 # ac_fn_c_check_decl LINENO SYMBOL VAR
2211 # ------------------------------------
2212 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2213 ac_fn_c_check_decl ()
2214 {
2215   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2217 $as_echo_n "checking whether $2 is declared... " >&6; }
2218 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2219   $as_echo_n "(cached) " >&6
2220 else
2221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 int
2225 main ()
2226 {
2227 #ifndef $2
2228   (void) $2;
2229 #endif
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236   eval "$3=yes"
2237 else
2238   eval "$3=no"
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 fi
2242 eval ac_res=\$$3
2243                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246
2247 } # ac_fn_c_check_decl
2248 cat >config.log <<_ACEOF
2249 This file contains any messages produced by compilers while
2250 running configure, to aid debugging if configure makes a mistake.
2251
2252 It was created by $as_me, which was
2253 generated by GNU Autoconf 2.65.  Invocation command line was
2254
2255   $ $0 $@
2256
2257 _ACEOF
2258 exec 5>>config.log
2259 {
2260 cat <<_ASUNAME
2261 ## --------- ##
2262 ## Platform. ##
2263 ## --------- ##
2264
2265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2270
2271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2273
2274 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2275 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2277 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2278 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2279 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2280 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2281
2282 _ASUNAME
2283
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287   IFS=$as_save_IFS
2288   test -z "$as_dir" && as_dir=.
2289     $as_echo "PATH: $as_dir"
2290   done
2291 IFS=$as_save_IFS
2292
2293 } >&5
2294
2295 cat >&5 <<_ACEOF
2296
2297
2298 ## ----------- ##
2299 ## Core tests. ##
2300 ## ----------- ##
2301
2302 _ACEOF
2303
2304
2305 # Keep a trace of the command line.
2306 # Strip out --no-create and --no-recursion so they do not pile up.
2307 # Strip out --silent because we don't want to record it for future runs.
2308 # Also quote any args containing shell meta-characters.
2309 # Make two passes to allow for proper duplicate-argument suppression.
2310 ac_configure_args=
2311 ac_configure_args0=
2312 ac_configure_args1=
2313 ac_must_keep_next=false
2314 for ac_pass in 1 2
2315 do
2316   for ac_arg
2317   do
2318     case $ac_arg in
2319     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321     | -silent | --silent | --silen | --sile | --sil)
2322       continue ;;
2323     *\'*)
2324       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2325     esac
2326     case $ac_pass in
2327     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2328     2)
2329       as_fn_append ac_configure_args1 " '$ac_arg'"
2330       if test $ac_must_keep_next = true; then
2331         ac_must_keep_next=false # Got value, back to normal.
2332       else
2333         case $ac_arg in
2334           *=* | --config-cache | -C | -disable-* | --disable-* \
2335           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337           | -with-* | --with-* | -without-* | --without-* | --x)
2338             case "$ac_configure_args0 " in
2339               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340             esac
2341             ;;
2342           -* ) ac_must_keep_next=true ;;
2343         esac
2344       fi
2345       as_fn_append ac_configure_args " '$ac_arg'"
2346       ;;
2347     esac
2348   done
2349 done
2350 { ac_configure_args0=; unset ac_configure_args0;}
2351 { ac_configure_args1=; unset ac_configure_args1;}
2352
2353 # When interrupted or exit'd, cleanup temporary files, and complete
2354 # config.log.  We remove comments because anyway the quotes in there
2355 # would cause problems or look ugly.
2356 # WARNING: Use '\'' to represent an apostrophe within the trap.
2357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358 trap 'exit_status=$?
2359   # Save into config.log some information that might help in debugging.
2360   {
2361     echo
2362
2363     cat <<\_ASBOX
2364 ## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##
2367 _ASBOX
2368     echo
2369     # The following way of writing the cache mishandles newlines in values,
2370 (
2371   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372     eval ac_val=\$$ac_var
2373     case $ac_val in #(
2374     *${as_nl}*)
2375       case $ac_var in #(
2376       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378       esac
2379       case $ac_var in #(
2380       _ | IFS | as_nl) ;; #(
2381       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382       *) { eval $ac_var=; unset $ac_var;} ;;
2383       esac ;;
2384     esac
2385   done
2386   (set) 2>&1 |
2387     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388     *${as_nl}ac_space=\ *)
2389       sed -n \
2390         "s/'\''/'\''\\\\'\'''\''/g;
2391           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392       ;; #(
2393     *)
2394       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2395       ;;
2396     esac |
2397     sort
2398 )
2399     echo
2400
2401     cat <<\_ASBOX
2402 ## ----------------- ##
2403 ## Output variables. ##
2404 ## ----------------- ##
2405 _ASBOX
2406     echo
2407     for ac_var in $ac_subst_vars
2408     do
2409       eval ac_val=\$$ac_var
2410       case $ac_val in
2411       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412       esac
2413       $as_echo "$ac_var='\''$ac_val'\''"
2414     done | sort
2415     echo
2416
2417     if test -n "$ac_subst_files"; then
2418       cat <<\_ASBOX
2419 ## ------------------- ##
2420 ## File substitutions. ##
2421 ## ------------------- ##
2422 _ASBOX
2423       echo
2424       for ac_var in $ac_subst_files
2425       do
2426         eval ac_val=\$$ac_var
2427         case $ac_val in
2428         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429         esac
2430         $as_echo "$ac_var='\''$ac_val'\''"
2431       done | sort
2432       echo
2433     fi
2434
2435     if test -s confdefs.h; then
2436       cat <<\_ASBOX
2437 ## ----------- ##
2438 ## confdefs.h. ##
2439 ## ----------- ##
2440 _ASBOX
2441       echo
2442       cat confdefs.h
2443       echo
2444     fi
2445     test "$ac_signal" != 0 &&
2446       $as_echo "$as_me: caught signal $ac_signal"
2447     $as_echo "$as_me: exit $exit_status"
2448   } >&5
2449   rm -f core *.core core.conftest.* &&
2450     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2451     exit $exit_status
2452 ' 0
2453 for ac_signal in 1 2 13 15; do
2454   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455 done
2456 ac_signal=0
2457
2458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2459 rm -f -r conftest* confdefs.h
2460
2461 $as_echo "/* confdefs.h */" > confdefs.h
2462
2463 # Predefined preprocessor variables.
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_NAME "$PACKAGE_NAME"
2467 _ACEOF
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2471 _ACEOF
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2475 _ACEOF
2476
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_STRING "$PACKAGE_STRING"
2479 _ACEOF
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2483 _ACEOF
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_URL "$PACKAGE_URL"
2487 _ACEOF
2488
2489
2490 # Let the site file select an alternate cache file if it wants to.
2491 # Prefer an explicitly selected file to automatically selected ones.
2492 ac_site_file1=NONE
2493 ac_site_file2=NONE
2494 if test -n "$CONFIG_SITE"; then
2495   ac_site_file1=$CONFIG_SITE
2496 elif test "x$prefix" != xNONE; then
2497   ac_site_file1=$prefix/share/config.site
2498   ac_site_file2=$prefix/etc/config.site
2499 else
2500   ac_site_file1=$ac_default_prefix/share/config.site
2501   ac_site_file2=$ac_default_prefix/etc/config.site
2502 fi
2503 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2504 do
2505   test "x$ac_site_file" = xNONE && continue
2506   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2507     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2508 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2509     sed 's/^/| /' "$ac_site_file" >&5
2510     . "$ac_site_file"
2511   fi
2512 done
2513
2514 if test -r "$cache_file"; then
2515   # Some versions of bash will fail to source /dev/null (special files
2516   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2517   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2518     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2519 $as_echo "$as_me: loading cache $cache_file" >&6;}
2520     case $cache_file in
2521       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522       *)                      . "./$cache_file";;
2523     esac
2524   fi
2525 else
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527 $as_echo "$as_me: creating cache $cache_file" >&6;}
2528   >$cache_file
2529 fi
2530
2531 as_fn_append ac_header_list " stdlib.h"
2532 as_fn_append ac_header_list " unistd.h"
2533 as_fn_append ac_header_list " sys/param.h"
2534 # Check that the precious variables saved in the cache have kept the same
2535 # value.
2536 ac_cache_corrupted=false
2537 for ac_var in $ac_precious_vars; do
2538   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2539   eval ac_new_set=\$ac_env_${ac_var}_set
2540   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2541   eval ac_new_val=\$ac_env_${ac_var}_value
2542   case $ac_old_set,$ac_new_set in
2543     set,)
2544       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2545 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2546       ac_cache_corrupted=: ;;
2547     ,set)
2548       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2549 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2550       ac_cache_corrupted=: ;;
2551     ,);;
2552     *)
2553       if test "x$ac_old_val" != "x$ac_new_val"; then
2554         # differences in whitespace do not lead to failure.
2555         ac_old_val_w=`echo x $ac_old_val`
2556         ac_new_val_w=`echo x $ac_new_val`
2557         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2558           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2559 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2560           ac_cache_corrupted=:
2561         else
2562           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2563 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2564           eval $ac_var=\$ac_old_val
2565         fi
2566         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2567 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2568         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2569 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2570       fi;;
2571   esac
2572   # Pass precious variables to config.status.
2573   if test "$ac_new_set" = set; then
2574     case $ac_new_val in
2575     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2576     *) ac_arg=$ac_var=$ac_new_val ;;
2577     esac
2578     case " $ac_configure_args " in
2579       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2580       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2581     esac
2582   fi
2583 done
2584 if $ac_cache_corrupted; then
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2588 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2589   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2590 fi
2591 ## -------------------- ##
2592 ## Main body of script. ##
2593 ## -------------------- ##
2594
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600
2601
2602
2603 ac_aux_dir=
2604 for ac_dir in config "$srcdir"/config; do
2605   for ac_t in install-sh install.sh shtool; do
2606     if test -f "$ac_dir/$ac_t"; then
2607       ac_aux_dir=$ac_dir
2608       ac_install_sh="$ac_aux_dir/$ac_t -c"
2609       break 2
2610     fi
2611   done
2612 done
2613 if test -z "$ac_aux_dir"; then
2614   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2615 fi
2616
2617 # These three variables are undocumented and unsupported,
2618 # and are intended to be withdrawn in a future Autoconf release.
2619 # They can cause serious problems if a builder's source tree is in a directory
2620 # whose full name contains unusual characters.
2621 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2622 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2623 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2624
2625
2626 MCONFIG=./MCONFIG
2627
2628 BINARY_TYPE=bin
2629 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2630         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2631 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2632         | tr \" " "`
2633 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2634 MONTH=`echo $DATE | awk -F- '{print $2}'`
2635 YEAR=`echo $DATE | awk -F- '{print $3}'`
2636
2637 if expr $YEAR ">" 1900 > /dev/null ; then
2638         E2FSPROGS_YEAR=$YEAR
2639 elif expr $YEAR ">" 90 >/dev/null ; then
2640         E2FSPROGS_YEAR=19$YEAR
2641 else
2642         E2FSPROGS_YEAR=20$YEAR
2643 fi
2644
2645 case $MONTH in
2646 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2647 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2648 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2649 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2650 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2651 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2652 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2653 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2654 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2655 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2656 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2657 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2658 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2659 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2660 esac
2661
2662 base_ver=`echo $E2FSPROGS_VERSION | \
2663                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2664
2665 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2666
2667 case $E2FSPROGS_VERSION in
2668 *-WIP|pre-*)
2669         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2670         ;;
2671 *)
2672         E2FSPROGS_PKGVER="$base_ver"
2673         ;;
2674 esac
2675
2676 unset DATE MONTH YEAR base_ver pre_vers date_spec
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2678 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2680 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2681
2682
2683
2684
2685
2686 # Make sure we can run config.sub.
2687 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2688   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2691 $as_echo_n "checking build system type... " >&6; }
2692 if test "${ac_cv_build+set}" = set; then :
2693   $as_echo_n "(cached) " >&6
2694 else
2695   ac_build_alias=$build_alias
2696 test "x$ac_build_alias" = x &&
2697   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2698 test "x$ac_build_alias" = x &&
2699   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2700 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2701   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2702
2703 fi
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2705 $as_echo "$ac_cv_build" >&6; }
2706 case $ac_cv_build in
2707 *-*-*) ;;
2708 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2709 esac
2710 build=$ac_cv_build
2711 ac_save_IFS=$IFS; IFS='-'
2712 set x $ac_cv_build
2713 shift
2714 build_cpu=$1
2715 build_vendor=$2
2716 shift; shift
2717 # Remember, the first character of IFS is used to create $*,
2718 # except with old shells:
2719 build_os=$*
2720 IFS=$ac_save_IFS
2721 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2722
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2725 $as_echo_n "checking host system type... " >&6; }
2726 if test "${ac_cv_host+set}" = set; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   if test "x$host_alias" = x; then
2730   ac_cv_host=$ac_cv_build
2731 else
2732   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2733     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2734 fi
2735
2736 fi
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2738 $as_echo "$ac_cv_host" >&6; }
2739 case $ac_cv_host in
2740 *-*-*) ;;
2741 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2742 esac
2743 host=$ac_cv_host
2744 ac_save_IFS=$IFS; IFS='-'
2745 set x $ac_cv_host
2746 shift
2747 host_cpu=$1
2748 host_vendor=$2
2749 shift; shift
2750 # Remember, the first character of IFS is used to create $*,
2751 # except with old shells:
2752 host_os=$*
2753 IFS=$ac_save_IFS
2754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2755
2756
2757 DLOPEN_LIB=''
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 if test -n "$ac_tool_prefix"; then
2764   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if test "${ac_cv_prog_CC+set}" = set; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   if test -n "$CC"; then
2772   ac_cv_prog_CC="$CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     for ac_exec_ext in '' $ac_executable_extensions; do
2780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783     break 2
2784   fi
2785 done
2786   done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 if test -z "$ac_cv_prog_CC"; then
2803   ac_ct_CC=$CC
2804   # Extract the first word of "gcc", so it can be a program name with args.
2805 set dummy gcc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   if test -n "$ac_ct_CC"; then
2812   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819     for ac_exec_ext in '' $ac_executable_extensions; do
2820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821     ac_cv_prog_ac_ct_CC="gcc"
2822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823     break 2
2824   fi
2825 done
2826   done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2834 $as_echo "$ac_ct_CC" >&6; }
2835 else
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840   if test "x$ac_ct_CC" = x; then
2841     CC=""
2842   else
2843     case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849     CC=$ac_ct_CC
2850   fi
2851 else
2852   CC="$ac_cv_prog_CC"
2853 fi
2854
2855 if test -z "$CC"; then
2856           if test -n "$ac_tool_prefix"; then
2857     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}cc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   if test -n "$CC"; then
2865   ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872     for ac_exec_ext in '' $ac_executable_extensions; do
2873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874     ac_cv_prog_CC="${ac_tool_prefix}cc"
2875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879   done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 CC=$ac_cv_prog_CC
2885 if test -n "$CC"; then
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2888 else
2889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2891 fi
2892
2893
2894   fi
2895 fi
2896 if test -z "$CC"; then
2897   # Extract the first word of "cc", so it can be a program name with args.
2898 set dummy cc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then :
2902   $as_echo_n "(cached) " >&6
2903 else
2904   if test -n "$CC"; then
2905   ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907   ac_prog_rejected=no
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911   IFS=$as_save_IFS
2912   test -z "$as_dir" && as_dir=.
2913     for ac_exec_ext in '' $ac_executable_extensions; do
2914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916        ac_prog_rejected=yes
2917        continue
2918      fi
2919     ac_cv_prog_CC="cc"
2920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921     break 2
2922   fi
2923 done
2924   done
2925 IFS=$as_save_IFS
2926
2927 if test $ac_prog_rejected = yes; then
2928   # We found a bogon in the path, so make sure we never use it.
2929   set dummy $ac_cv_prog_CC
2930   shift
2931   if test $# != 0; then
2932     # We chose a different compiler from the bogus one.
2933     # However, it has the same basename, so the bogon will be chosen
2934     # first if we set CC to just the basename; use the full file name.
2935     shift
2936     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2937   fi
2938 fi
2939 fi
2940 fi
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2945 else
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951 fi
2952 if test -z "$CC"; then
2953   if test -n "$ac_tool_prefix"; then
2954   for ac_prog in cl.exe
2955   do
2956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if test "${ac_cv_prog_CC+set}" = set; then :
2961   $as_echo_n "(cached) " >&6
2962 else
2963   if test -n "$CC"; then
2964   ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969   IFS=$as_save_IFS
2970   test -z "$as_dir" && as_dir=.
2971     for ac_exec_ext in '' $ac_executable_extensions; do
2972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975     break 2
2976   fi
2977 done
2978   done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993     test -n "$CC" && break
2994   done
2995 fi
2996 if test -z "$CC"; then
2997   ac_ct_CC=$CC
2998   for ac_prog in cl.exe
2999 do
3000   # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   if test -n "$ac_ct_CC"; then
3008   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     for ac_exec_ext in '' $ac_executable_extensions; do
3016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017     ac_cv_prog_ac_ct_CC="$ac_prog"
3018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022   done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037   test -n "$ac_ct_CC" && break
3038 done
3039
3040   if test "x$ac_ct_CC" = x; then
3041     CC=""
3042   else
3043     case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049     CC=$ac_ct_CC
3050   fi
3051 fi
3052
3053 fi
3054
3055
3056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error "no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details." "$LINENO" 5; }
3060
3061 # Provide some information about the compiler.
3062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3063 set X $ac_compile
3064 ac_compiler=$2
3065 for ac_option in --version -v -V -qversion; do
3066   { { ac_try="$ac_compiler $ac_option >&5"
3067 case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3074   ac_status=$?
3075   if test -s conftest.err; then
3076     sed '10a\
3077 ... rest of stderr output deleted ...
3078          10q' conftest.err >conftest.er1
3079     cat conftest.er1 >&5
3080   fi
3081   rm -f conftest.er1 conftest.err
3082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083   test $ac_status = 0; }
3084 done
3085
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 ac_clean_files_save=$ac_clean_files
3098 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3099 # Try to create an executable without -o first, disregard a.out.
3100 # It will help us diagnose broken compilers, and finding out an intuition
3101 # of exeext.
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3103 $as_echo_n "checking whether the C compiler works... " >&6; }
3104 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105
3106 # The possible output files:
3107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3108
3109 ac_rmfiles=
3110 for ac_file in $ac_files
3111 do
3112   case $ac_file in
3113     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3115   esac
3116 done
3117 rm -f $ac_rmfiles
3118
3119 if { { ac_try="$ac_link_default"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126   (eval "$ac_link_default") 2>&5
3127   ac_status=$?
3128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129   test $ac_status = 0; }; then :
3130   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3132 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3133 # so that the user can short-circuit this test for compilers unknown to
3134 # Autoconf.
3135 for ac_file in $ac_files ''
3136 do
3137   test -f "$ac_file" || continue
3138   case $ac_file in
3139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3140         ;;
3141     [ab].out )
3142         # We found the default executable, but exeext='' is most
3143         # certainly right.
3144         break;;
3145     *.* )
3146         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3147         then :; else
3148            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149         fi
3150         # We set ac_cv_exeext here because the later test for it is not
3151         # safe: cross compilers may not add the suffix if given an `-o'
3152         # argument, so we may need to know it at that point already.
3153         # Even if this section looks crufty: it has the advantage of
3154         # actually working.
3155         break;;
3156     * )
3157         break;;
3158   esac
3159 done
3160 test "$ac_cv_exeext" = no && ac_cv_exeext=
3161
3162 else
3163   ac_file=''
3164 fi
3165 if test -z "$ac_file"; then :
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 $as_echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 { as_fn_set_status 77
3174 as_fn_error "C compiler cannot create executables
3175 See \`config.log' for more details." "$LINENO" 5; }; }
3176 else
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3178 $as_echo "yes" >&6; }
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3181 $as_echo_n "checking for C compiler default output file name... " >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3183 $as_echo "$ac_file" >&6; }
3184 ac_exeext=$ac_cv_exeext
3185
3186 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3187 ac_clean_files=$ac_clean_files_save
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3189 $as_echo_n "checking for suffix of executables... " >&6; }
3190 if { { ac_try="$ac_link"
3191 case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197   (eval "$ac_link") 2>&5
3198   ac_status=$?
3199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200   test $ac_status = 0; }; then :
3201   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3202 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3203 # work properly (i.e., refer to `conftest.exe'), while it won't with
3204 # `rm'.
3205 for ac_file in conftest.exe conftest conftest.*; do
3206   test -f "$ac_file" || continue
3207   case $ac_file in
3208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3210           break;;
3211     * ) break;;
3212   esac
3213 done
3214 else
3215   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error "cannot compute suffix of executables: cannot compile and link
3218 See \`config.log' for more details." "$LINENO" 5; }
3219 fi
3220 rm -f conftest conftest$ac_cv_exeext
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3222 $as_echo "$ac_cv_exeext" >&6; }
3223
3224 rm -f conftest.$ac_ext
3225 EXEEXT=$ac_cv_exeext
3226 ac_exeext=$EXEEXT
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h.  */
3229 #include <stdio.h>
3230 int
3231 main ()
3232 {
3233 FILE *f = fopen ("conftest.out", "w");
3234  return ferror (f) || fclose (f) != 0;
3235
3236   ;
3237   return 0;
3238 }
3239 _ACEOF
3240 ac_clean_files="$ac_clean_files conftest.out"
3241 # Check that the compiler produces executables we can run.  If not, either
3242 # the compiler is broken, or we cross compile.
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3244 $as_echo_n "checking whether we are cross compiling... " >&6; }
3245 if test "$cross_compiling" != yes; then
3246   { { ac_try="$ac_link"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253   (eval "$ac_link") 2>&5
3254   ac_status=$?
3255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256   test $ac_status = 0; }
3257   if { ac_try='./conftest$ac_cv_exeext'
3258   { { case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264   (eval "$ac_try") 2>&5
3265   ac_status=$?
3266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267   test $ac_status = 0; }; }; then
3268     cross_compiling=no
3269   else
3270     if test "$cross_compiling" = maybe; then
3271         cross_compiling=yes
3272     else
3273         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error "cannot run C compiled programs.
3276 If you meant to cross compile, use \`--host'.
3277 See \`config.log' for more details." "$LINENO" 5; }
3278     fi
3279   fi
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3282 $as_echo "$cross_compiling" >&6; }
3283
3284 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3285 ac_clean_files=$ac_clean_files_save
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3287 $as_echo_n "checking for suffix of object files... " >&6; }
3288 if test "${ac_cv_objext+set}" = set; then :
3289   $as_echo_n "(cached) " >&6
3290 else
3291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h.  */
3293
3294 int
3295 main ()
3296 {
3297
3298   ;
3299   return 0;
3300 }
3301 _ACEOF
3302 rm -f conftest.o conftest.obj
3303 if { { ac_try="$ac_compile"
3304 case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310   (eval "$ac_compile") 2>&5
3311   ac_status=$?
3312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313   test $ac_status = 0; }; then :
3314   for ac_file in conftest.o conftest.obj conftest.*; do
3315   test -f "$ac_file" || continue;
3316   case $ac_file in
3317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3318     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3319        break;;
3320   esac
3321 done
3322 else
3323   $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error "cannot compute suffix of object files: cannot compile
3329 See \`config.log' for more details." "$LINENO" 5; }
3330 fi
3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3334 $as_echo "$ac_cv_objext" >&6; }
3335 OBJEXT=$ac_cv_objext
3336 ac_objext=$OBJEXT
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3338 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3339 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h.  */
3344
3345 int
3346 main ()
3347 {
3348 #ifndef __GNUC__
3349        choke me
3350 #endif
3351
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357   ac_compiler_gnu=yes
3358 else
3359   ac_compiler_gnu=no
3360 fi
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3366 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3367 if test $ac_compiler_gnu = yes; then
3368   GCC=yes
3369 else
3370   GCC=
3371 fi
3372 ac_test_CFLAGS=${CFLAGS+set}
3373 ac_save_CFLAGS=$CFLAGS
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3375 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3376 if test "${ac_cv_prog_cc_g+set}" = set; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   ac_save_c_werror_flag=$ac_c_werror_flag
3380    ac_c_werror_flag=yes
3381    ac_cv_prog_cc_g=no
3382    CFLAGS="-g"
3383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h.  */
3385
3386 int
3387 main ()
3388 {
3389
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395   ac_cv_prog_cc_g=yes
3396 else
3397   CFLAGS=""
3398       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h.  */
3400
3401 int
3402 main ()
3403 {
3404
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410
3411 else
3412   ac_c_werror_flag=$ac_save_c_werror_flag
3413          CFLAGS="-g"
3414          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416
3417 int
3418 main ()
3419 {
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426   ac_cv_prog_cc_g=yes
3427 fi
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433    ac_c_werror_flag=$ac_save_c_werror_flag
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3436 $as_echo "$ac_cv_prog_cc_g" >&6; }
3437 if test "$ac_test_CFLAGS" = set; then
3438   CFLAGS=$ac_save_CFLAGS
3439 elif test $ac_cv_prog_cc_g = yes; then
3440   if test "$GCC" = yes; then
3441     CFLAGS="-g -O2"
3442   else
3443     CFLAGS="-g"
3444   fi
3445 else
3446   if test "$GCC" = yes; then
3447     CFLAGS="-O2"
3448   else
3449     CFLAGS=
3450   fi
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3453 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3454 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3455   $as_echo_n "(cached) " >&6
3456 else
3457   ac_cv_prog_cc_c89=no
3458 ac_save_CC=$CC
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461 #include <stdarg.h>
3462 #include <stdio.h>
3463 #include <sys/types.h>
3464 #include <sys/stat.h>
3465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3466 struct buf { int x; };
3467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468 static char *e (p, i)
3469      char **p;
3470      int i;
3471 {
3472   return p[i];
3473 }
3474 static char *f (char * (*g) (char **, int), char **p, ...)
3475 {
3476   char *s;
3477   va_list v;
3478   va_start (v,p);
3479   s = g (p, va_arg (v,int));
3480   va_end (v);
3481   return s;
3482 }
3483
3484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3485    function prototypes and stuff, but not '\xHH' hex character constants.
3486    These don't provoke an error unfortunately, instead are silently treated
3487    as 'x'.  The following induces an error, until -std is added to get
3488    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3489    array size at least.  It's necessary to write '\x00'==0 to get something
3490    that's true only with -std.  */
3491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3492
3493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494    inside strings and character constants.  */
3495 #define FOO(x) 'x'
3496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3497
3498 int test (int i, double x);
3499 struct s1 {int (*f) (int a);};
3500 struct s2 {int (*f) (double a);};
3501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3502 int argc;
3503 char **argv;
3504 int
3505 main ()
3506 {
3507 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3514 do
3515   CC="$ac_save_CC $ac_arg"
3516   if ac_fn_c_try_compile "$LINENO"; then :
3517   ac_cv_prog_cc_c89=$ac_arg
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext
3520   test "x$ac_cv_prog_cc_c89" != "xno" && break
3521 done
3522 rm -f conftest.$ac_ext
3523 CC=$ac_save_CC
3524
3525 fi
3526 # AC_CACHE_VAL
3527 case "x$ac_cv_prog_cc_c89" in
3528   x)
3529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3530 $as_echo "none needed" >&6; } ;;
3531   xno)
3532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3533 $as_echo "unsupported" >&6; } ;;
3534   *)
3535     CC="$CC $ac_cv_prog_cc_c89"
3536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3537 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3538 esac
3539 if test "x$ac_cv_prog_cc_c89" != xno; then :
3540
3541 fi
3542
3543 ac_ext=c
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548
3549
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3551 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3553   $as_echo_n "(cached) " >&6
3554 else
3555   ac_check_lib_save_LIBS=$LIBS
3556 LIBS="-ldl  $LIBS"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h.  */
3559
3560 /* Override any GCC internal prototype to avoid an error.
3561    Use char because int might match the return type of a GCC
3562    builtin and then its argument prototype would still apply.  */
3563 #ifdef __cplusplus
3564 extern "C"
3565 #endif
3566 char dlopen ();
3567 int
3568 main ()
3569 {
3570 return dlopen ();
3571   ;
3572   return 0;
3573 }
3574 _ACEOF
3575 if ac_fn_c_try_link "$LINENO"; then :
3576   ac_cv_lib_dl_dlopen=yes
3577 else
3578   ac_cv_lib_dl_dlopen=no
3579 fi
3580 rm -f core conftest.err conftest.$ac_objext \
3581     conftest$ac_exeext conftest.$ac_ext
3582 LIBS=$ac_check_lib_save_LIBS
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3585 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3586 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3587   DLOPEN_LIB=-ldl
3588 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3589
3590 fi
3591
3592
3593 WITH_DIET_LIBC=
3594
3595 # Check whether --with-diet-libc was given.
3596 if test "${with_diet_libc+set}" = set; then :
3597   withval=$with_diet_libc; CC="diet cc -nostdinc"
3598 WITH_DIET_LIBC=yes
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3600 $as_echo "CC=$CC" >&6; }
3601 fi
3602
3603 # Check whether --with-cc was given.
3604 if test "${with_cc+set}" = set; then :
3605   withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3606 fi
3607
3608
3609 # Check whether --with-ccopts was given.
3610 if test "${with_ccopts+set}" = set; then :
3611   withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3612 fi
3613
3614
3615 # Check whether --with-ldopts was given.
3616 if test "${with_ldopts+set}" = set; then :
3617   withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3618 fi
3619
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 if test -n "$ac_tool_prefix"; then
3626   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631   $as_echo_n "(cached) " >&6
3632 else
3633   if test -n "$CC"; then
3634   ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641     for ac_exec_ext in '' $ac_executable_extensions; do
3642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648   done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 CC=$ac_cv_prog_CC
3654 if test -n "$CC"; then
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3657 else
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 fi
3661
3662
3663 fi
3664 if test -z "$ac_cv_prog_CC"; then
3665   ac_ct_CC=$CC
3666   # Extract the first word of "gcc", so it can be a program name with args.
3667 set dummy gcc; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3671   $as_echo_n "(cached) " >&6
3672 else
3673   if test -n "$ac_ct_CC"; then
3674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681     for ac_exec_ext in '' $ac_executable_extensions; do
3682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683     ac_cv_prog_ac_ct_CC="gcc"
3684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688   done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694 if test -n "$ac_ct_CC"; then
3695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3696 $as_echo "$ac_ct_CC" >&6; }
3697 else
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3700 fi
3701
3702   if test "x$ac_ct_CC" = x; then
3703     CC=""
3704   else
3705     case $cross_compiling:$ac_tool_warned in
3706 yes:)
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709 ac_tool_warned=yes ;;
3710 esac
3711     CC=$ac_ct_CC
3712   fi
3713 else
3714   CC="$ac_cv_prog_CC"
3715 fi
3716
3717 if test -z "$CC"; then
3718           if test -n "$ac_tool_prefix"; then
3719     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}cc; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_CC+set}" = set; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   if test -n "$CC"; then
3727   ac_cv_prog_CC="$CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734     for ac_exec_ext in '' $ac_executable_extensions; do
3735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736     ac_cv_prog_CC="${ac_tool_prefix}cc"
3737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741   done
3742 IFS=$as_save_IFS
3743
3744 fi
3745 fi
3746 CC=$ac_cv_prog_CC
3747 if test -n "$CC"; then
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3750 else
3751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3753 fi
3754
3755
3756   fi
3757 fi
3758 if test -z "$CC"; then
3759   # Extract the first word of "cc", so it can be a program name with args.
3760 set dummy cc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_CC+set}" = set; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   if test -n "$CC"; then
3767   ac_cv_prog_CC="$CC" # Let the user override the test.
3768 else
3769   ac_prog_rejected=no
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773   IFS=$as_save_IFS
3774   test -z "$as_dir" && as_dir=.
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3778        ac_prog_rejected=yes
3779        continue
3780      fi
3781     ac_cv_prog_CC="cc"
3782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783     break 2
3784   fi
3785 done
3786   done
3787 IFS=$as_save_IFS
3788
3789 if test $ac_prog_rejected = yes; then
3790   # We found a bogon in the path, so make sure we never use it.
3791   set dummy $ac_cv_prog_CC
3792   shift
3793   if test $# != 0; then
3794     # We chose a different compiler from the bogus one.
3795     # However, it has the same basename, so the bogon will be chosen
3796     # first if we set CC to just the basename; use the full file name.
3797     shift
3798     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3799   fi
3800 fi
3801 fi
3802 fi
3803 CC=$ac_cv_prog_CC
3804 if test -n "$CC"; then
3805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806 $as_echo "$CC" >&6; }
3807 else
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 fi
3811
3812
3813 fi
3814 if test -z "$CC"; then
3815   if test -n "$ac_tool_prefix"; then
3816   for ac_prog in cl.exe
3817   do
3818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_CC+set}" = set; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   if test -n "$CC"; then
3826   ac_cv_prog_CC="$CC" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833     for ac_exec_ext in '' $ac_executable_extensions; do
3834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840   done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 CC=$ac_cv_prog_CC
3846 if test -n "$CC"; then
3847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848 $as_echo "$CC" >&6; }
3849 else
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3853
3854
3855     test -n "$CC" && break
3856   done
3857 fi
3858 if test -z "$CC"; then
3859   ac_ct_CC=$CC
3860   for ac_prog in cl.exe
3861 do
3862   # Extract the first word of "$ac_prog", so it can be a program name with args.
3863 set dummy $ac_prog; ac_word=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3867   $as_echo_n "(cached) " >&6
3868 else
3869   if test -n "$ac_ct_CC"; then
3870   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877     for ac_exec_ext in '' $ac_executable_extensions; do
3878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3879     ac_cv_prog_ac_ct_CC="$ac_prog"
3880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881     break 2
3882   fi
3883 done
3884   done
3885 IFS=$as_save_IFS
3886
3887 fi
3888 fi
3889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3890 if test -n "$ac_ct_CC"; then
3891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3892 $as_echo "$ac_ct_CC" >&6; }
3893 else
3894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3896 fi
3897
3898
3899   test -n "$ac_ct_CC" && break
3900 done
3901
3902   if test "x$ac_ct_CC" = x; then
3903     CC=""
3904   else
3905     case $cross_compiling:$ac_tool_warned in
3906 yes:)
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3909 ac_tool_warned=yes ;;
3910 esac
3911     CC=$ac_ct_CC
3912   fi
3913 fi
3914
3915 fi
3916
3917
3918 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error "no acceptable C compiler found in \$PATH
3921 See \`config.log' for more details." "$LINENO" 5; }
3922
3923 # Provide some information about the compiler.
3924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3925 set X $ac_compile
3926 ac_compiler=$2
3927 for ac_option in --version -v -V -qversion; do
3928   { { ac_try="$ac_compiler $ac_option >&5"
3929 case "(($ac_try" in
3930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931   *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3936   ac_status=$?
3937   if test -s conftest.err; then
3938     sed '10a\
3939 ... rest of stderr output deleted ...
3940          10q' conftest.err >conftest.er1
3941     cat conftest.er1 >&5
3942   fi
3943   rm -f conftest.er1 conftest.err
3944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945   test $ac_status = 0; }
3946 done
3947
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3949 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3950 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3951   $as_echo_n "(cached) " >&6
3952 else
3953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959 #ifndef __GNUC__
3960        choke me
3961 #endif
3962
3963   ;
3964   return 0;
3965 }
3966 _ACEOF
3967 if ac_fn_c_try_compile "$LINENO"; then :
3968   ac_compiler_gnu=yes
3969 else
3970   ac_compiler_gnu=no
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3974
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3977 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3978 if test $ac_compiler_gnu = yes; then
3979   GCC=yes
3980 else
3981   GCC=
3982 fi
3983 ac_test_CFLAGS=${CFLAGS+set}
3984 ac_save_CFLAGS=$CFLAGS
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3986 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3987 if test "${ac_cv_prog_cc_g+set}" = set; then :
3988   $as_echo_n "(cached) " >&6
3989 else
3990   ac_save_c_werror_flag=$ac_c_werror_flag
3991    ac_c_werror_flag=yes
3992    ac_cv_prog_cc_g=no
3993    CFLAGS="-g"
3994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h.  */
3996
3997 int
3998 main ()
3999 {
4000
4001   ;
4002   return 0;
4003 }
4004 _ACEOF
4005 if ac_fn_c_try_compile "$LINENO"; then :
4006   ac_cv_prog_cc_g=yes
4007 else
4008   CFLAGS=""
4009       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h.  */
4011
4012 int
4013 main ()
4014 {
4015
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021
4022 else
4023   ac_c_werror_flag=$ac_save_c_werror_flag
4024          CFLAGS="-g"
4025          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h.  */
4027
4028 int
4029 main ()
4030 {
4031
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037   ac_cv_prog_cc_g=yes
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 fi
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044    ac_c_werror_flag=$ac_save_c_werror_flag
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4047 $as_echo "$ac_cv_prog_cc_g" >&6; }
4048 if test "$ac_test_CFLAGS" = set; then
4049   CFLAGS=$ac_save_CFLAGS
4050 elif test $ac_cv_prog_cc_g = yes; then
4051   if test "$GCC" = yes; then
4052     CFLAGS="-g -O2"
4053   else
4054     CFLAGS="-g"
4055   fi
4056 else
4057   if test "$GCC" = yes; then
4058     CFLAGS="-O2"
4059   else
4060     CFLAGS=
4061   fi
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4064 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4065 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4066   $as_echo_n "(cached) " >&6
4067 else
4068   ac_cv_prog_cc_c89=no
4069 ac_save_CC=$CC
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h.  */
4072 #include <stdarg.h>
4073 #include <stdio.h>
4074 #include <sys/types.h>
4075 #include <sys/stat.h>
4076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4077 struct buf { int x; };
4078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4079 static char *e (p, i)
4080      char **p;
4081      int i;
4082 {
4083   return p[i];
4084 }
4085 static char *f (char * (*g) (char **, int), char **p, ...)
4086 {
4087   char *s;
4088   va_list v;
4089   va_start (v,p);
4090   s = g (p, va_arg (v,int));
4091   va_end (v);
4092   return s;
4093 }
4094
4095 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4096    function prototypes and stuff, but not '\xHH' hex character constants.
4097    These don't provoke an error unfortunately, instead are silently treated
4098    as 'x'.  The following induces an error, until -std is added to get
4099    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4100    array size at least.  It's necessary to write '\x00'==0 to get something
4101    that's true only with -std.  */
4102 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4103
4104 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4105    inside strings and character constants.  */
4106 #define FOO(x) 'x'
4107 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4108
4109 int test (int i, double x);
4110 struct s1 {int (*f) (int a);};
4111 struct s2 {int (*f) (double a);};
4112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4113 int argc;
4114 char **argv;
4115 int
4116 main ()
4117 {
4118 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4124         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4125 do
4126   CC="$ac_save_CC $ac_arg"
4127   if ac_fn_c_try_compile "$LINENO"; then :
4128   ac_cv_prog_cc_c89=$ac_arg
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext
4131   test "x$ac_cv_prog_cc_c89" != "xno" && break
4132 done
4133 rm -f conftest.$ac_ext
4134 CC=$ac_save_CC
4135
4136 fi
4137 # AC_CACHE_VAL
4138 case "x$ac_cv_prog_cc_c89" in
4139   x)
4140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4141 $as_echo "none needed" >&6; } ;;
4142   xno)
4143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4144 $as_echo "unsupported" >&6; } ;;
4145   *)
4146     CC="$CC $ac_cv_prog_cc_c89"
4147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4148 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4149 esac
4150 if test "x$ac_cv_prog_cc_c89" != xno; then :
4151
4152 fi
4153
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4166 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4167 # On Suns, sometimes $CPP names a directory.
4168 if test -n "$CPP" && test -d "$CPP"; then
4169   CPP=
4170 fi
4171 if test -z "$CPP"; then
4172   if test "${ac_cv_prog_CPP+set}" = set; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175       # Double quotes because CPP needs to be expanded
4176     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4177     do
4178       ac_preproc_ok=false
4179 for ac_c_preproc_warn_flag in '' yes
4180 do
4181   # Use a header file that comes with gcc, so configuring glibc
4182   # with a fresh cross-compiler works.
4183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184   # <limits.h> exists even on freestanding compilers.
4185   # On the NeXT, cc -E runs the code through the compiler's parser,
4186   # not just through cpp. "Syntax error" is here to catch this case.
4187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h.  */
4189 #ifdef __STDC__
4190 # include <limits.h>
4191 #else
4192 # include <assert.h>
4193 #endif
4194                      Syntax error
4195 _ACEOF
4196 if ac_fn_c_try_cpp "$LINENO"; then :
4197
4198 else
4199   # Broken: fails on valid input.
4200 continue
4201 fi
4202 rm -f conftest.err conftest.$ac_ext
4203
4204   # OK, works on sane cases.  Now check whether nonexistent headers
4205   # can be detected and how.
4206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h.  */
4208 #include <ac_nonexistent.h>
4209 _ACEOF
4210 if ac_fn_c_try_cpp "$LINENO"; then :
4211   # Broken: success on invalid input.
4212 continue
4213 else
4214   # Passes both tests.
4215 ac_preproc_ok=:
4216 break
4217 fi
4218 rm -f conftest.err conftest.$ac_ext
4219
4220 done
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then :
4224   break
4225 fi
4226
4227     done
4228     ac_cv_prog_CPP=$CPP
4229
4230 fi
4231   CPP=$ac_cv_prog_CPP
4232 else
4233   ac_cv_prog_CPP=$CPP
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4236 $as_echo "$CPP" >&6; }
4237 ac_preproc_ok=false
4238 for ac_c_preproc_warn_flag in '' yes
4239 do
4240   # Use a header file that comes with gcc, so configuring glibc
4241   # with a fresh cross-compiler works.
4242   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4243   # <limits.h> exists even on freestanding compilers.
4244   # On the NeXT, cc -E runs the code through the compiler's parser,
4245   # not just through cpp. "Syntax error" is here to catch this case.
4246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h.  */
4248 #ifdef __STDC__
4249 # include <limits.h>
4250 #else
4251 # include <assert.h>
4252 #endif
4253                      Syntax error
4254 _ACEOF
4255 if ac_fn_c_try_cpp "$LINENO"; then :
4256
4257 else
4258   # Broken: fails on valid input.
4259 continue
4260 fi
4261 rm -f conftest.err conftest.$ac_ext
4262
4263   # OK, works on sane cases.  Now check whether nonexistent headers
4264   # can be detected and how.
4265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267 #include <ac_nonexistent.h>
4268 _ACEOF
4269 if ac_fn_c_try_cpp "$LINENO"; then :
4270   # Broken: success on invalid input.
4271 continue
4272 else
4273   # Passes both tests.
4274 ac_preproc_ok=:
4275 break
4276 fi
4277 rm -f conftest.err conftest.$ac_ext
4278
4279 done
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then :
4283
4284 else
4285   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4288 See \`config.log' for more details." "$LINENO" 5; }
4289 fi
4290
4291 ac_ext=c
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4299 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4300 if test "${ac_cv_path_GREP+set}" = set; then :
4301   $as_echo_n "(cached) " >&6
4302 else
4303   if test -z "$GREP"; then
4304   ac_path_GREP_found=false
4305   # Loop through the user's path and test for each of PROGNAME-LIST
4306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311     for ac_prog in grep ggrep; do
4312     for ac_exec_ext in '' $ac_executable_extensions; do
4313       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4314       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4315 # Check for GNU ac_path_GREP and select it if it is found.
4316   # Check for GNU $ac_path_GREP
4317 case `"$ac_path_GREP" --version 2>&1` in
4318 *GNU*)
4319   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4320 *)
4321   ac_count=0
4322   $as_echo_n 0123456789 >"conftest.in"
4323   while :
4324   do
4325     cat "conftest.in" "conftest.in" >"conftest.tmp"
4326     mv "conftest.tmp" "conftest.in"
4327     cp "conftest.in" "conftest.nl"
4328     $as_echo 'GREP' >> "conftest.nl"
4329     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4330     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4331     as_fn_arith $ac_count + 1 && ac_count=$as_val
4332     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4333       # Best one so far, save it but keep looking for a better one
4334       ac_cv_path_GREP="$ac_path_GREP"
4335       ac_path_GREP_max=$ac_count
4336     fi
4337     # 10*(2^10) chars as input seems more than enough
4338     test $ac_count -gt 10 && break
4339   done
4340   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4341 esac
4342
4343       $ac_path_GREP_found && break 3
4344     done
4345   done
4346   done
4347 IFS=$as_save_IFS
4348   if test -z "$ac_cv_path_GREP"; then
4349     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4350   fi
4351 else
4352   ac_cv_path_GREP=$GREP
4353 fi
4354
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4357 $as_echo "$ac_cv_path_GREP" >&6; }
4358  GREP="$ac_cv_path_GREP"
4359
4360
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4362 $as_echo_n "checking for egrep... " >&6; }
4363 if test "${ac_cv_path_EGREP+set}" = set; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4367    then ac_cv_path_EGREP="$GREP -E"
4368    else
4369      if test -z "$EGREP"; then
4370   ac_path_EGREP_found=false
4371   # Loop through the user's path and test for each of PROGNAME-LIST
4372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4374 do
4375   IFS=$as_save_IFS
4376   test -z "$as_dir" && as_dir=.
4377     for ac_prog in egrep; do
4378     for ac_exec_ext in '' $ac_executable_extensions; do
4379       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4380       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4381 # Check for GNU ac_path_EGREP and select it if it is found.
4382   # Check for GNU $ac_path_EGREP
4383 case `"$ac_path_EGREP" --version 2>&1` in
4384 *GNU*)
4385   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4386 *)
4387   ac_count=0
4388   $as_echo_n 0123456789 >"conftest.in"
4389   while :
4390   do
4391     cat "conftest.in" "conftest.in" >"conftest.tmp"
4392     mv "conftest.tmp" "conftest.in"
4393     cp "conftest.in" "conftest.nl"
4394     $as_echo 'EGREP' >> "conftest.nl"
4395     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4396     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4397     as_fn_arith $ac_count + 1 && ac_count=$as_val
4398     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4399       # Best one so far, save it but keep looking for a better one
4400       ac_cv_path_EGREP="$ac_path_EGREP"
4401       ac_path_EGREP_max=$ac_count
4402     fi
4403     # 10*(2^10) chars as input seems more than enough
4404     test $ac_count -gt 10 && break
4405   done
4406   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4407 esac
4408
4409       $ac_path_EGREP_found && break 3
4410     done
4411   done
4412   done
4413 IFS=$as_save_IFS
4414   if test -z "$ac_cv_path_EGREP"; then
4415     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4416   fi
4417 else
4418   ac_cv_path_EGREP=$EGREP
4419 fi
4420
4421    fi
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4424 $as_echo "$ac_cv_path_EGREP" >&6; }
4425  EGREP="$ac_cv_path_EGREP"
4426
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4429 $as_echo_n "checking for ANSI C header files... " >&6; }
4430 if test "${ac_cv_header_stdc+set}" = set; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h.  */
4435 #include <stdlib.h>
4436 #include <stdarg.h>
4437 #include <string.h>
4438 #include <float.h>
4439
4440 int
4441 main ()
4442 {
4443
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449   ac_cv_header_stdc=yes
4450 else
4451   ac_cv_header_stdc=no
4452 fi
4453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454
4455 if test $ac_cv_header_stdc = yes; then
4456   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459 #include <string.h>
4460
4461 _ACEOF
4462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4463   $EGREP "memchr" >/dev/null 2>&1; then :
4464
4465 else
4466   ac_cv_header_stdc=no
4467 fi
4468 rm -f conftest*
4469
4470 fi
4471
4472 if test $ac_cv_header_stdc = yes; then
4473   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h.  */
4476 #include <stdlib.h>
4477
4478 _ACEOF
4479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4480   $EGREP "free" >/dev/null 2>&1; then :
4481
4482 else
4483   ac_cv_header_stdc=no
4484 fi
4485 rm -f conftest*
4486
4487 fi
4488
4489 if test $ac_cv_header_stdc = yes; then
4490   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4491   if test "$cross_compiling" = yes; then :
4492   :
4493 else
4494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h.  */
4496 #include <ctype.h>
4497 #include <stdlib.h>
4498 #if ((' ' & 0x0FF) == 0x020)
4499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4501 #else
4502 # define ISLOWER(c) \
4503                    (('a' <= (c) && (c) <= 'i') \
4504                      || ('j' <= (c) && (c) <= 'r') \
4505                      || ('s' <= (c) && (c) <= 'z'))
4506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4507 #endif
4508
4509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4510 int
4511 main ()
4512 {
4513   int i;
4514   for (i = 0; i < 256; i++)
4515     if (XOR (islower (i), ISLOWER (i))
4516         || toupper (i) != TOUPPER (i))
4517       return 2;
4518   return 0;
4519 }
4520 _ACEOF
4521 if ac_fn_c_try_run "$LINENO"; then :
4522
4523 else
4524   ac_cv_header_stdc=no
4525 fi
4526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4527   conftest.$ac_objext conftest.beam conftest.$ac_ext
4528 fi
4529
4530 fi
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4533 $as_echo "$ac_cv_header_stdc" >&6; }
4534 if test $ac_cv_header_stdc = yes; then
4535
4536 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4537
4538 fi
4539
4540 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4541 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4542                   inttypes.h stdint.h unistd.h
4543 do :
4544   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4545 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4546 "
4547 eval as_val=\$$as_ac_Header
4548    if test "x$as_val" = x""yes; then :
4549   cat >>confdefs.h <<_ACEOF
4550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551 _ACEOF
4552
4553 fi
4554
4555 done
4556
4557
4558 ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4559 if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
4560   linux_headers=yes
4561 else
4562   linux_headers=no
4563 fi
4564
4565
4566 if test "$linux_headers" != yes; then
4567   LINUX_INCLUDE='-I$(top_builddir)/include'
4568 fi
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4571 $as_echo_n "checking for additional special compiler flags... " >&6; }
4572 if test "$GCC" = yes
4573 then
4574     case "$host_cpu" in
4575         alpha)          addcflags="-mieee" ;;
4576     esac
4577 fi
4578 if test "x$addcflags" != x
4579 then
4580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4581 $as_echo "$addcflags" >&6; }
4582     CFLAGS="$addcflags $CFLAGS"
4583 else
4584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4585 $as_echo "(none)" >&6; }
4586 fi
4587 LIB_EXT=.a
4588 STATIC_LIB_EXT=.a
4589 PROFILED_LIB_EXT=.a
4590
4591 # Check whether --with-root-prefix was given.
4592 if test "${with_root_prefix+set}" = set; then :
4593   withval=$with_root_prefix; root_prefix=$withval
4594 else
4595   root_prefix=NONE
4596 fi
4597 # Check whether --enable-maintainer-mode was given.
4598 if test "${enable_maintainer_mode+set}" = set; then :
4599   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4600 then
4601         MAINTAINER_CMT=#
4602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4603 $as_echo "Disabling maintainer mode" >&6; }
4604 else
4605         MAINTAINER_CMT=
4606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4607 $as_echo "Enabling maintainer mode" >&6; }
4608 fi
4609
4610 else
4611   MAINTAINER_CMT=#
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4613 $as_echo "Disabling maintainer mode by default" >&6; }
4614
4615 fi
4616
4617
4618 # Check whether --enable-symlink-install was given.
4619 if test "${enable_symlink_install+set}" = set; then :
4620   enableval=$enable_symlink_install; if test "$enableval" = "no"
4621 then
4622         LINK_INSTALL_FLAGS=-f
4623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4624 $as_echo "Disabling symlinks for install" >&6; }
4625 else
4626         LINK_INSTALL_FLAGS=-sf
4627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4628 $as_echo "Enabling symlinks for install" >&6; }
4629 fi
4630
4631 else
4632   LINK_INSTALL_FLAGS=-f
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4634 $as_echo "Disabling symlinks for install" >&6; }
4635
4636 fi
4637
4638
4639 # Check whether --enable-symlink-build was given.
4640 if test "${enable_symlink_build+set}" = set; then :
4641   enableval=$enable_symlink_build; if test "$enableval" = "no"
4642 then
4643         LINK_BUILD_FLAGS=
4644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4645 $as_echo "Disabling symlinks for build" >&6; }
4646 else
4647         LINK_BUILD_FLAGS=-s
4648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4649 $as_echo "Enabling symlinks for build" >&6; }
4650 fi
4651
4652 else
4653   LINK_BUILD_FLAGS=
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4655 $as_echo "Disabling symlinks for build" >&6; }
4656
4657 fi
4658
4659
4660 # Check whether --enable-verbose-makecmds was given.
4661 if test "${enable_verbose_makecmds+set}" = set; then :
4662   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4663 then
4664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4665 $as_echo "Disabling verbose make commands" >&6; }
4666         E=@echo
4667         Q=@
4668 else
4669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4670 $as_echo "Enabling verbose make commands" >&6; }
4671         E=@\\#
4672         Q=
4673 fi
4674
4675 else
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4677 $as_echo "Disabling verbose make commands" >&6; }
4678 E=@echo
4679 Q=@
4680
4681 fi
4682
4683
4684
4685 # Check whether --enable-compression was given.
4686 if test "${enable_compression+set}" = set; then :
4687   enableval=$enable_compression; if test "$enableval" = "no"
4688 then
4689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4690 $as_echo "Disabling compression support" >&6; }
4691 else
4692         $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4693
4694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4695 $as_echo "Enabling compression support" >&6; }
4696         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4697 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4698 fi
4699
4700 else
4701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4702 $as_echo "Disabling compression support by default" >&6; }
4703
4704 fi
4705
4706 # Check whether --enable-htree was given.
4707 if test "${enable_htree+set}" = set; then :
4708   enableval=$enable_htree; if test "$enableval" = "no"
4709 then
4710         HTREE_CMT=#
4711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4712 $as_echo "Disabling htree directory support" >&6; }
4713 else
4714         HTREE_CMT=
4715         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4716
4717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4718 $as_echo "Enabling htree directory support" >&6; }
4719 fi
4720
4721 else
4722   HTREE_CMT=
4723 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4726 $as_echo "Enabling htree directory support by default" >&6; }
4727
4728 fi
4729
4730
4731 E2_PKG_CONFIG_STATIC=--static
4732 LDFLAG_DYNAMIC=
4733 PRIVATE_LIBS_CMT=
4734 # Check whether --enable-elf-shlibs was given.
4735 if test "${enable_elf_shlibs+set}" = set; then :
4736   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4737 then
4738         ELF_CMT=#
4739         MAKEFILE_ELF=/dev/null
4740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4741 $as_echo "Disabling ELF shared libraries" >&6; }
4742 else
4743         E2_PKG_CONFIG_STATIC=
4744         ELF_CMT=
4745         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4746         case "$host_os" in
4747         solaris2.*)
4748                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4749         ;;
4750         esac
4751         BINARY_TYPE=elfbin
4752         LIB_EXT=.so
4753         PRIVATE_LIBS_CMT=#
4754         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4756 $as_echo "Enabling ELF shared libraries" >&6; }
4757 fi
4758
4759 else
4760   MAKEFILE_ELF=/dev/null
4761 ELF_CMT=#
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4763 $as_echo "Disabling ELF shared libraries by default" >&6; }
4764
4765 fi
4766
4767
4768
4769 # Check whether --enable-bsd-shlibs was given.
4770 if test "${enable_bsd_shlibs+set}" = set; then :
4771   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4772 then
4773         BSDLIB_CMT=#
4774         MAKEFILE_BSDLIB=/dev/null
4775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4776 $as_echo "Disabling BSD shared libraries" >&6; }
4777 else
4778         E2_PKG_CONFIG_STATIC=
4779         BSDLIB_CMT=
4780         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4781         LIB_EXT=.so
4782         case "$host_os" in
4783         darwin*)
4784                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4785                 LIB_EXT=.dylib
4786         ;;
4787         esac
4788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4789 $as_echo "Enabling BSD shared libraries" >&6; }
4790 fi
4791
4792 else
4793   MAKEFILE_BSDLIB=/dev/null
4794 BSDLIB_CMT=#
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4796 $as_echo "Disabling BSD shared libraries by default" >&6; }
4797
4798 fi
4799
4800
4801
4802 # Check whether --enable-profile was given.
4803 if test "${enable_profile+set}" = set; then :
4804   enableval=$enable_profile; if test "$enableval" = "no"
4805 then
4806         PROFILE_CMT=#
4807         MAKEFILE_PROFILE=/dev/null
4808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4809 $as_echo "Disabling profiling libraries" >&6; }
4810 else
4811         PROFILE_CMT=
4812         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4813         PROFILED_LIB_EXT=_p.a
4814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4815 $as_echo "Building profiling libraries" >&6; }
4816 fi
4817
4818 else
4819   PROFILE_CMT=#
4820 MAKEFILE_PROFILE=/dev/null
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4822 $as_echo "Disabling profiling libraries by default" >&6; }
4823
4824 fi
4825
4826
4827
4828 # Check whether --enable-checker was given.
4829 if test "${enable_checker+set}" = set; then :
4830   enableval=$enable_checker; if test "$enableval" = "no"
4831 then
4832         CHECKER_CMT=#
4833         MAKEFILE_CHECKER=/dev/null
4834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4835 $as_echo "Disabling checker libraries" >&6; }
4836 else
4837         CHECKER_CMT=
4838         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4840 $as_echo "Building checker libraries" >&6; }
4841 fi
4842
4843 else
4844   CHECKER_CMT=#
4845 MAKEFILE_CHECKER=/dev/null
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4847 $as_echo "Disabling checker libraries by default" >&6; }
4848
4849 fi
4850
4851
4852
4853
4854
4855
4856
4857
4858 # Check whether --enable-jbd-debug was given.
4859 if test "${enable_jbd_debug+set}" = set; then :
4860   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4861 then
4862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4863 $as_echo "Disabling journal debugging" >&6; }
4864 else
4865         $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4866
4867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4868 $as_echo "Enabling journal debugging" >&6; }
4869 fi
4870
4871 else
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4873 $as_echo "Disabling journal debugging by default" >&6; }
4874
4875 fi
4876
4877 # Check whether --enable-blkid-debug was given.
4878 if test "${enable_blkid_debug+set}" = set; then :
4879   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4880 then
4881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4882 $as_echo "Disabling blkid debugging" >&6; }
4883 else
4884         $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4885
4886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4887 $as_echo "Enabling blkid debugging" >&6; }
4888 fi
4889
4890 else
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4892 $as_echo "Disabling blkid debugging by default" >&6; }
4893
4894 fi
4895
4896 # Check whether --enable-testio-debug was given.
4897 if test "${enable_testio_debug+set}" = set; then :
4898   enableval=$enable_testio_debug; if test "$enableval" = "no"
4899 then
4900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4901 $as_echo "Disabling testio debugging" >&6; }
4902         TEST_IO_CMT="#"
4903 else
4904         TEST_IO_CMT=
4905         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4906
4907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4908 $as_echo "Enabling testio debugging" >&6; }
4909 fi
4910
4911 else
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4913 $as_echo "Enabling testio debugging by default" >&6; }
4914 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4915
4916 TEST_IO_CMT=
4917
4918 fi
4919
4920
4921
4922
4923 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4924         if test -n "$ac_tool_prefix"; then
4925   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4926 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   case $PKG_CONFIG in
4933   [\\/]* | ?:[\\/]*)
4934   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4935   ;;
4936   *)
4937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940   IFS=$as_save_IFS
4941   test -z "$as_dir" && as_dir=.
4942     for ac_exec_ext in '' $ac_executable_extensions; do
4943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946     break 2
4947   fi
4948 done
4949   done
4950 IFS=$as_save_IFS
4951
4952   ;;
4953 esac
4954 fi
4955 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4956 if test -n "$PKG_CONFIG"; then
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4958 $as_echo "$PKG_CONFIG" >&6; }
4959 else
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964
4965 fi
4966 if test -z "$ac_cv_path_PKG_CONFIG"; then
4967   ac_pt_PKG_CONFIG=$PKG_CONFIG
4968   # Extract the first word of "pkg-config", so it can be a program name with args.
4969 set dummy pkg-config; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975   case $ac_pt_PKG_CONFIG in
4976   [\\/]* | ?:[\\/]*)
4977   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4978   ;;
4979   *)
4980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985     for ac_exec_ext in '' $ac_executable_extensions; do
4986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989     break 2
4990   fi
4991 done
4992   done
4993 IFS=$as_save_IFS
4994
4995   ;;
4996 esac
4997 fi
4998 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4999 if test -n "$ac_pt_PKG_CONFIG"; then
5000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5001 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5002 else
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 fi
5006
5007   if test "x$ac_pt_PKG_CONFIG" = x; then
5008     PKG_CONFIG=""
5009   else
5010     case $cross_compiling:$ac_tool_warned in
5011 yes:)
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016     PKG_CONFIG=$ac_pt_PKG_CONFIG
5017   fi
5018 else
5019   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5020 fi
5021
5022 fi
5023 if test -n "$PKG_CONFIG"; then
5024         _pkg_min_version=0.9.0
5025         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5026 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5027         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5028                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5029 $as_echo "yes" >&6; }
5030         else
5031                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033                 PKG_CONFIG=""
5034         fi
5035
5036 fi
5037 LIBUUID=
5038 DEPLIBUUID=
5039 STATIC_LIBUUID=
5040 DEPSTATIC_LIBUUID=
5041 PROFILED_LIBUUID=
5042 DEPPROFILED_LIBUUID=
5043 UUID_CMT=
5044 # Check whether --enable-libuuid was given.
5045 if test "${enable_libuuid+set}" = set; then :
5046   enableval=$enable_libuuid; if test "$enableval" = "no"
5047 then
5048         if test -z "$PKG_CONFIG"; then
5049                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5050         fi
5051
5052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5053 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5054 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
5055   $as_echo_n "(cached) " >&6
5056 else
5057   ac_check_lib_save_LIBS=$LIBS
5058 LIBS="-luuid $LIBUUID $LIBS"
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h.  */
5061
5062 /* Override any GCC internal prototype to avoid an error.
5063    Use char because int might match the return type of a GCC
5064    builtin and then its argument prototype would still apply.  */
5065 #ifdef __cplusplus
5066 extern "C"
5067 #endif
5068 char uuid_generate ();
5069 int
5070 main ()
5071 {
5072 return uuid_generate ();
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 if ac_fn_c_try_link "$LINENO"; then :
5078   ac_cv_lib_uuid_uuid_generate=yes
5079 else
5080   ac_cv_lib_uuid_uuid_generate=no
5081 fi
5082 rm -f core conftest.err conftest.$ac_objext \
5083     conftest$ac_exeext conftest.$ac_ext
5084 LIBS=$ac_check_lib_save_LIBS
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5087 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5088 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
5089   LIBUUID=`$PKG_CONFIG --libs uuid`;
5090                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5091 else
5092   as_fn_error "external uuid library not found" "$LINENO" 5
5093 fi
5094
5095         UUID_CMT=#
5096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5097 $as_echo "Disabling private uuid library" >&6; }
5098 else
5099         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5100         DEPLIBUUID=$LIBUUID
5101         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5102         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5103         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5104         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5106 $as_echo "Enabling private uuid library" >&6; }
5107 fi
5108
5109 else
5110   LIBUUID='$(LIB)/libuuid'$LIB_EXT
5111 DEPLIBUUID=$LIBUUID
5112 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5113 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5114 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5115 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5117 $as_echo "Enabling private uuid library by default" >&6; }
5118
5119 fi
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5131         if test -n "$ac_tool_prefix"; then
5132   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5137   $as_echo_n "(cached) " >&6
5138 else
5139   case $PKG_CONFIG in
5140   [\\/]* | ?:[\\/]*)
5141   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5142   ;;
5143   *)
5144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147   IFS=$as_save_IFS
5148   test -z "$as_dir" && as_dir=.
5149     for ac_exec_ext in '' $ac_executable_extensions; do
5150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153     break 2
5154   fi
5155 done
5156   done
5157 IFS=$as_save_IFS
5158
5159   ;;
5160 esac
5161 fi
5162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5163 if test -n "$PKG_CONFIG"; then
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5165 $as_echo "$PKG_CONFIG" >&6; }
5166 else
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171
5172 fi
5173 if test -z "$ac_cv_path_PKG_CONFIG"; then
5174   ac_pt_PKG_CONFIG=$PKG_CONFIG
5175   # Extract the first word of "pkg-config", so it can be a program name with args.
5176 set dummy pkg-config; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   case $ac_pt_PKG_CONFIG in
5183   [\\/]* | ?:[\\/]*)
5184   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5185   ;;
5186   *)
5187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192     for ac_exec_ext in '' $ac_executable_extensions; do
5193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199   done
5200 IFS=$as_save_IFS
5201
5202   ;;
5203 esac
5204 fi
5205 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5206 if test -n "$ac_pt_PKG_CONFIG"; then
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5208 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5209 else
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214   if test "x$ac_pt_PKG_CONFIG" = x; then
5215     PKG_CONFIG=""
5216   else
5217     case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223     PKG_CONFIG=$ac_pt_PKG_CONFIG
5224   fi
5225 else
5226   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5227 fi
5228
5229 fi
5230 if test -n "$PKG_CONFIG"; then
5231         _pkg_min_version=0.9.0
5232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5233 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5234         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5235                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5236 $as_echo "yes" >&6; }
5237         else
5238                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5240                 PKG_CONFIG=""
5241         fi
5242
5243 fi
5244 LIBBLKID=
5245 DEPLIBBLKID=
5246 STATIC_LIBBLKID=
5247 DEPSTATIC_LIBBLKID=
5248 PROFILED_LIBBLKID=
5249 DEPPROFILED_LIBBLKID=
5250 BLKID_CMT=
5251 # Check whether --enable-libblkid was given.
5252 if test "${enable_libblkid+set}" = set; then :
5253   enableval=$enable_libblkid; if test "$enableval" = "no"
5254 then
5255         if test -z "$PKG_CONFIG"; then
5256                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5257         fi
5258
5259         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5260 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5261 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   ac_check_lib_save_LIBS=$LIBS
5265 LIBS="-lblkid $LIBBLKID $LIBS"
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h.  */
5268
5269 /* Override any GCC internal prototype to avoid an error.
5270    Use char because int might match the return type of a GCC
5271    builtin and then its argument prototype would still apply.  */
5272 #ifdef __cplusplus
5273 extern "C"
5274 #endif
5275 char blkid_get_cache ();
5276 int
5277 main ()
5278 {
5279 return blkid_get_cache ();
5280   ;
5281   return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_c_try_link "$LINENO"; then :
5285   ac_cv_lib_blkid_blkid_get_cache=yes
5286 else
5287   ac_cv_lib_blkid_blkid_get_cache=no
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext \
5290     conftest$ac_exeext conftest.$ac_ext
5291 LIBS=$ac_check_lib_save_LIBS
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5294 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5295 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5296   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5297                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5298 else
5299   as_fn_error "external blkid library not found" "$LINENO" 5
5300 fi
5301
5302         BLKID_CMT=#
5303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5304 $as_echo "Disabling private blkid library" >&6; }
5305 else
5306         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5307         DEPLIBBLKID=$LIBBLKID
5308         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5309         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5310         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5311         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5312         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5313
5314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5315 $as_echo "Enabling private blkid library" >&6; }
5316 fi
5317
5318 else
5319   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5320 DEPLIBBLKID=$LIBBLKID
5321 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5322 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5323 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5324 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5325 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5328 $as_echo "Enabling private blkid library by default" >&6; }
5329
5330 fi
5331
5332
5333
5334
5335
5336
5337
5338
5339 # Check whether --enable-debugfs was given.
5340 if test "${enable_debugfs+set}" = set; then :
5341   enableval=$enable_debugfs; if test "$enableval" = "no"
5342 then
5343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5344 $as_echo "Disabling debugfs support" >&6; }
5345         DEBUGFS_CMT="#"
5346 else
5347         DEBUGFS_CMT=
5348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5349 $as_echo "Enabling debugfs support" >&6; }
5350 fi
5351
5352 else
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5354 $as_echo "Enabling debugfs support by default" >&6; }
5355 DEBUGFS_CMT=
5356
5357 fi
5358
5359
5360 # Check whether --enable-imager was given.
5361 if test "${enable_imager+set}" = set; then :
5362   enableval=$enable_imager; if test "$enableval" = "no"
5363 then
5364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5365 $as_echo "Disabling e2image support" >&6; }
5366         IMAGER_CMT="#"
5367 else
5368         IMAGER_CMT=
5369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5370 $as_echo "Enabling e2image support" >&6; }
5371 fi
5372
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5375 $as_echo "Enabling e2image support by default" >&6; }
5376 IMAGER_CMT=
5377
5378 fi
5379
5380
5381 # Check whether --enable-resizer was given.
5382 if test "${enable_resizer+set}" = set; then :
5383   enableval=$enable_resizer; if test "$enableval" = "no"
5384 then
5385         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5386 $as_echo "Disabling e2resize support" >&6; }
5387         RESIZER_CMT="#"
5388 else
5389         RESIZER_CMT=
5390         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5391 $as_echo "Enabling e2resize support" >&6; }
5392 fi
5393
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5396 $as_echo "Enabling e2resize support by default" >&6; }
5397 RESIZER_CMT=
5398
5399 fi
5400
5401
5402 # Check whether --enable-defrag was given.
5403 if test "${enable_defrag+set}" = set; then :
5404   enableval=$enable_defrag; if test "$enableval" = "no"
5405 then
5406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5407 $as_echo "Disabling e4defrag support" >&6; }
5408         DEFRAG_CMT="#"
5409 else
5410         DEFRAG_CMT=
5411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5412 $as_echo "Enabling e4defrag support" >&6; }
5413 fi
5414
5415 else
5416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5417 $as_echo "Enabling e4defrag support by default" >&6; }
5418 DEFRAG_CMT=
5419
5420 fi
5421
5422
5423 # Check whether --enable-fsck was given.
5424 if test "${enable_fsck+set}" = set; then :
5425   enableval=$enable_fsck; if test "$enableval" = "no"
5426 then
5427         FSCK_PROG='' FSCK_MAN=''
5428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5429 $as_echo "Not building fsck wrapper" >&6; }
5430 else
5431         FSCK_PROG=fsck FSCK_MAN=fsck.8
5432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5433 $as_echo "Building fsck wrapper" >&6; }
5434 fi
5435
5436 else
5437   case "$host_os" in
5438   gnu*)
5439     FSCK_PROG='' FSCK_MAN=''
5440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5441 $as_echo "Not building fsck wrapper by default" >&6; }
5442     ;;
5443   *)
5444     FSCK_PROG=fsck FSCK_MAN=fsck.8
5445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5446 $as_echo "Building fsck wrapper by default" >&6; }
5447 esac
5448
5449 fi
5450
5451
5452
5453 # Check whether --enable-e2initrd-helper was given.
5454 if test "${enable_e2initrd_helper+set}" = set; then :
5455   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5456 then
5457         E2INITRD_PROG='' E2INITRD_MAN=''
5458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5459 $as_echo "Not building e2initrd helper" >&6; }
5460 else
5461         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5463 $as_echo "Building e2initrd helper" >&6; }
5464 fi
5465
5466 else
5467   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5469 $as_echo "Building e2initrd helper by default" >&6; }
5470
5471 fi
5472
5473
5474
5475 # Check whether --enable-tls was given.
5476 if test "${enable_tls+set}" = set; then :
5477   enableval=$enable_tls; if test "$enableval" = "no"
5478 then
5479         try_tls=""
5480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5481 $as_echo "Disabling thread local support" >&6; }
5482 else
5483         try_tls="yes"
5484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5485 $as_echo "Enabling thread local support" >&6; }
5486 fi
5487
5488 else
5489   if test -n "$WITH_DIET_LIBC"
5490 then
5491         try_tls=""
5492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5493 $as_echo "Diet libc does not support thread local support" >&6; }
5494 else
5495         try_tls="yes"
5496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5497 $as_echo "Try using thread local support by default" >&6; }
5498 fi
5499
5500 fi
5501
5502 if test "$try_tls" = "yes"
5503 then
5504
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5506 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5507   if test "${ac_cv_tls+set}" = set; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510
5511     ax_tls_keywords="__thread __declspec(thread) none"
5512     for ax_tls_keyword in $ax_tls_keywords; do
5513        case $ax_tls_keyword in
5514           none) ac_cv_tls=none ; break ;;
5515           *)
5516              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h.  */
5518 #include <stdlib.h>
5519                  static void
5520                  foo(void) {
5521                  static  $ax_tls_keyword  int bar;
5522                  exit(1);
5523                  }
5524 int
5525 main ()
5526 {
5527
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533   ac_cv_tls=$ax_tls_keyword ; break
5534 else
5535   ac_cv_tls=none
5536
5537 fi
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539           esac
5540     done
5541
5542 fi
5543
5544
5545   if test "$ac_cv_tls" != "none"; then
5546
5547 cat >>confdefs.h <<_ACEOF
5548 #define TLS $ac_cv_tls
5549 _ACEOF
5550
5551   fi
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5553 $as_echo "$ac_cv_tls" >&6; }
5554
5555 fi
5556 # Check whether --enable-uuidd was given.
5557 if test "${enable_uuidd+set}" = set; then :
5558   enableval=$enable_uuidd; if test "$enableval" = "no"
5559 then
5560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5561 $as_echo "Not building uuidd" >&6; }
5562         UUIDD_CMT="#"
5563 else
5564         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5565
5566         UUIDD_CMT=""
5567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5568 $as_echo "Building uuidd" >&6; }
5569 fi
5570
5571 else
5572   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5573
5574 UUIDD_CMT=""
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5576 $as_echo "Building uuidd by default" >&6; }
5577
5578 fi
5579
5580
5581 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5582
5583 GETTEXT_PACKAGE=e2fsprogs
5584 PACKAGE=e2fsprogs
5585 VERSION="$E2FSPROGS_VERSION"
5586 VERSION=0.14.1
5587 cat >>confdefs.h <<_ACEOF
5588 #define PACKAGE "$PACKAGE"
5589 _ACEOF
5590
5591 cat >>confdefs.h <<_ACEOF
5592 #define VERSION "$VERSION"
5593 _ACEOF
5594
5595
5596
5597
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5600 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5601 set x ${MAKE-make}
5602 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5603 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   cat >conftest.make <<\_ACEOF
5607 SHELL = /bin/sh
5608 all:
5609         @echo '@@@%%%=$(MAKE)=@@@%%%'
5610 _ACEOF
5611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5612 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5613   *@@@%%%=?*=@@@%%%*)
5614     eval ac_cv_prog_make_${ac_make}_set=yes;;
5615   *)
5616     eval ac_cv_prog_make_${ac_make}_set=no;;
5617 esac
5618 rm -f conftest.make
5619 fi
5620 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5622 $as_echo "yes" >&6; }
5623   SET_MAKE=
5624 else
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5627   SET_MAKE="MAKE=${MAKE-make}"
5628 fi
5629
5630 # Find a good install program.  We prefer a C program (faster),
5631 # so one script is as good as another.  But avoid the broken or
5632 # incompatible versions:
5633 # SysV /etc/install, /usr/sbin/install
5634 # SunOS /usr/etc/install
5635 # IRIX /sbin/install
5636 # AIX /bin/install
5637 # AmigaOS /C/install, which installs bootblocks on floppy discs
5638 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5641 # OS/2's system install, which has a completely different semantic
5642 # ./install, which can be erroneously created by make from ./install.sh.
5643 # Reject install programs that cannot install multiple files.
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5645 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5646 if test -z "$INSTALL"; then
5647 if test "${ac_cv_path_install+set}" = set; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653   IFS=$as_save_IFS
5654   test -z "$as_dir" && as_dir=.
5655     # Account for people who put trailing slashes in PATH elements.
5656 case $as_dir/ in #((
5657   ./ | .// | /[cC]/* | \
5658   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5659   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5660   /usr/ucb/* ) ;;
5661   *)
5662     # OSF1 and SCO ODT 3.0 have their own names for install.
5663     # Don't use installbsd from OSF since it installs stuff as root
5664     # by default.
5665     for ac_prog in ginstall scoinst install; do
5666       for ac_exec_ext in '' $ac_executable_extensions; do
5667         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5668           if test $ac_prog = install &&
5669             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5670             # AIX install.  It has an incompatible calling convention.
5671             :
5672           elif test $ac_prog = install &&
5673             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5674             # program-specific install script used by HP pwplus--don't use.
5675             :
5676           else
5677             rm -rf conftest.one conftest.two conftest.dir
5678             echo one > conftest.one
5679             echo two > conftest.two
5680             mkdir conftest.dir
5681             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5682               test -s conftest.one && test -s conftest.two &&
5683               test -s conftest.dir/conftest.one &&
5684               test -s conftest.dir/conftest.two
5685             then
5686               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5687               break 3
5688             fi
5689           fi
5690         fi
5691       done
5692     done
5693     ;;
5694 esac
5695
5696   done
5697 IFS=$as_save_IFS
5698
5699 rm -rf conftest.one conftest.two conftest.dir
5700
5701 fi
5702   if test "${ac_cv_path_install+set}" = set; then
5703     INSTALL=$ac_cv_path_install
5704   else
5705     # As a last resort, use the slow shell script.  Don't cache a
5706     # value for INSTALL within a source directory, because that will
5707     # break other packages using the cache if that directory is
5708     # removed, or if the value is a relative name.
5709     INSTALL=$ac_install_sh
5710   fi
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5713 $as_echo "$INSTALL" >&6; }
5714
5715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5716 # It thinks the first close brace ends the variable substitution.
5717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5718
5719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5720
5721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5722
5723
5724         MKINSTALLDIRS=
5725   if test -n "$ac_aux_dir"; then
5726     case "$ac_aux_dir" in
5727       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5728       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5729     esac
5730   fi
5731   if test -z "$MKINSTALLDIRS"; then
5732     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5733   fi
5734
5735
5736
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5738 $as_echo_n "checking whether NLS is requested... " >&6; }
5739     # Check whether --enable-nls was given.
5740 if test "${enable_nls+set}" = set; then :
5741   enableval=$enable_nls; USE_NLS=$enableval
5742 else
5743   USE_NLS=yes
5744 fi
5745
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5747 $as_echo "$USE_NLS" >&6; }
5748
5749
5750
5751
5752
5753
5754 # Prepare PATH_SEPARATOR.
5755 # The user is always right.
5756 if test "${PATH_SEPARATOR+set}" != set; then
5757   echo "#! /bin/sh" >conf$$.sh
5758   echo  "exit 0"   >>conf$$.sh
5759   chmod +x conf$$.sh
5760   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5761     PATH_SEPARATOR=';'
5762   else
5763     PATH_SEPARATOR=:
5764   fi
5765   rm -f conf$$.sh
5766 fi
5767
5768 # Find out how to test for executable files. Don't use a zero-byte file,
5769 # as systems may use methods other than mode bits to determine executability.
5770 cat >conf$$.file <<_ASEOF
5771 #! /bin/sh
5772 exit 0
5773 _ASEOF
5774 chmod +x conf$$.file
5775 if test -x conf$$.file >/dev/null 2>&1; then
5776   ac_executable_p="test -x"
5777 else
5778   ac_executable_p="test -f"
5779 fi
5780 rm -f conf$$.file
5781
5782 # Extract the first word of "msgfmt", so it can be a program name with args.
5783 set dummy msgfmt; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5787   $as_echo_n "(cached) " >&6
5788 else
5789   case "$MSGFMT" in
5790   [\\/]* | ?:[\\/]*)
5791     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5792     ;;
5793   *)
5794     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5795     for ac_dir in $PATH; do
5796       IFS="$ac_save_IFS"
5797       test -z "$ac_dir" && ac_dir=.
5798       for ac_exec_ext in '' $ac_executable_extensions; do
5799         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5800           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5801      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5802             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5803             break 2
5804           fi
5805         fi
5806       done
5807     done
5808     IFS="$ac_save_IFS"
5809   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5810     ;;
5811 esac
5812 fi
5813 MSGFMT="$ac_cv_path_MSGFMT"
5814 if test "$MSGFMT" != ":"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5816 $as_echo "$MSGFMT" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5823 set dummy gmsgfmt; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5827   $as_echo_n "(cached) " >&6
5828 else
5829   case $GMSGFMT in
5830   [\\/]* | ?:[\\/]*)
5831   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5832   ;;
5833   *)
5834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839     for ac_exec_ext in '' $ac_executable_extensions; do
5840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846   done
5847 IFS=$as_save_IFS
5848
5849   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5850   ;;
5851 esac
5852 fi
5853 GMSGFMT=$ac_cv_path_GMSGFMT
5854 if test -n "$GMSGFMT"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5856 $as_echo "$GMSGFMT" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862
5863
5864
5865 # Prepare PATH_SEPARATOR.
5866 # The user is always right.
5867 if test "${PATH_SEPARATOR+set}" != set; then
5868   echo "#! /bin/sh" >conf$$.sh
5869   echo  "exit 0"   >>conf$$.sh
5870   chmod +x conf$$.sh
5871   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5872     PATH_SEPARATOR=';'
5873   else
5874     PATH_SEPARATOR=:
5875   fi
5876   rm -f conf$$.sh
5877 fi
5878
5879 # Find out how to test for executable files. Don't use a zero-byte file,
5880 # as systems may use methods other than mode bits to determine executability.
5881 cat >conf$$.file <<_ASEOF
5882 #! /bin/sh
5883 exit 0
5884 _ASEOF
5885 chmod +x conf$$.file
5886 if test -x conf$$.file >/dev/null 2>&1; then
5887   ac_executable_p="test -x"
5888 else
5889   ac_executable_p="test -f"
5890 fi
5891 rm -f conf$$.file
5892
5893 # Extract the first word of "xgettext", so it can be a program name with args.
5894 set dummy xgettext; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   case "$XGETTEXT" in
5901   [\\/]* | ?:[\\/]*)
5902     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5903     ;;
5904   *)
5905     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5906     for ac_dir in $PATH; do
5907       IFS="$ac_save_IFS"
5908       test -z "$ac_dir" && ac_dir=.
5909       for ac_exec_ext in '' $ac_executable_extensions; do
5910         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5911           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5912      (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
5913             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5914             break 2
5915           fi
5916         fi
5917       done
5918     done
5919     IFS="$ac_save_IFS"
5920   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5921     ;;
5922 esac
5923 fi
5924 XGETTEXT="$ac_cv_path_XGETTEXT"
5925 if test "$XGETTEXT" != ":"; then
5926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5927 $as_echo "$XGETTEXT" >&6; }
5928 else
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933     rm -f messages.po
5934
5935
5936 # Prepare PATH_SEPARATOR.
5937 # The user is always right.
5938 if test "${PATH_SEPARATOR+set}" != set; then
5939   echo "#! /bin/sh" >conf$$.sh
5940   echo  "exit 0"   >>conf$$.sh
5941   chmod +x conf$$.sh
5942   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5943     PATH_SEPARATOR=';'
5944   else
5945     PATH_SEPARATOR=:
5946   fi
5947   rm -f conf$$.sh
5948 fi
5949
5950 # Find out how to test for executable files. Don't use a zero-byte file,
5951 # as systems may use methods other than mode bits to determine executability.
5952 cat >conf$$.file <<_ASEOF
5953 #! /bin/sh
5954 exit 0
5955 _ASEOF
5956 chmod +x conf$$.file
5957 if test -x conf$$.file >/dev/null 2>&1; then
5958   ac_executable_p="test -x"
5959 else
5960   ac_executable_p="test -f"
5961 fi
5962 rm -f conf$$.file
5963
5964 # Extract the first word of "msgmerge", so it can be a program name with args.
5965 set dummy msgmerge; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   case "$MSGMERGE" in
5972   [\\/]* | ?:[\\/]*)
5973     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5974     ;;
5975   *)
5976     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5977     for ac_dir in $PATH; do
5978       IFS="$ac_save_IFS"
5979       test -z "$ac_dir" && ac_dir=.
5980       for ac_exec_ext in '' $ac_executable_extensions; do
5981         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5982           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5983             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5984             break 2
5985           fi
5986         fi
5987       done
5988     done
5989     IFS="$ac_save_IFS"
5990   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5991     ;;
5992 esac
5993 fi
5994 MSGMERGE="$ac_cv_path_MSGMERGE"
5995 if test "$MSGMERGE" != ":"; then
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5997 $as_echo "$MSGMERGE" >&6; }
5998 else
5999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6001 fi
6002
6003
6004       if test "$GMSGFMT" != ":"; then
6005             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6006        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6007       : ;
6008     else
6009       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6010       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6011 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6012       GMSGFMT=":"
6013     fi
6014   fi
6015
6016       if test "$XGETTEXT" != ":"; then
6017             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6018        (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
6019       : ;
6020     else
6021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6022 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6023       XGETTEXT=":"
6024     fi
6025         rm -f messages.po
6026   fi
6027
6028   ac_config_commands="$ac_config_commands default-1"
6029
6030
6031 if test -n "$ac_tool_prefix"; then
6032   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6037   $as_echo_n "(cached) " >&6
6038 else
6039   if test -n "$RANLIB"; then
6040   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045   IFS=$as_save_IFS
6046   test -z "$as_dir" && as_dir=.
6047     for ac_exec_ext in '' $ac_executable_extensions; do
6048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051     break 2
6052   fi
6053 done
6054   done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 RANLIB=$ac_cv_prog_RANLIB
6060 if test -n "$RANLIB"; then
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6062 $as_echo "$RANLIB" >&6; }
6063 else
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068
6069 fi
6070 if test -z "$ac_cv_prog_RANLIB"; then
6071   ac_ct_RANLIB=$RANLIB
6072   # Extract the first word of "ranlib", so it can be a program name with args.
6073 set dummy ranlib; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   if test -n "$ac_ct_RANLIB"; then
6080   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087     for ac_exec_ext in '' $ac_executable_extensions; do
6088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089     ac_cv_prog_ac_ct_RANLIB="ranlib"
6090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094   done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6100 if test -n "$ac_ct_RANLIB"; then
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6102 $as_echo "$ac_ct_RANLIB" >&6; }
6103 else
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108   if test "x$ac_ct_RANLIB" = x; then
6109     RANLIB=":"
6110   else
6111     case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117     RANLIB=$ac_ct_RANLIB
6118   fi
6119 else
6120   RANLIB="$ac_cv_prog_RANLIB"
6121 fi
6122
6123
6124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6125 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6126 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   ac_check_lib_save_LIBS=$LIBS
6130 LIBS="-lcposix  $LIBS"
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h.  */
6133
6134 /* Override any GCC internal prototype to avoid an error.
6135    Use char because int might match the return type of a GCC
6136    builtin and then its argument prototype would still apply.  */
6137 #ifdef __cplusplus
6138 extern "C"
6139 #endif
6140 char strerror ();
6141 int
6142 main ()
6143 {
6144 return strerror ();
6145   ;
6146   return 0;
6147 }
6148 _ACEOF
6149 if ac_fn_c_try_link "$LINENO"; then :
6150   ac_cv_lib_cposix_strerror=yes
6151 else
6152   ac_cv_lib_cposix_strerror=no
6153 fi
6154 rm -f core conftest.err conftest.$ac_objext \
6155     conftest$ac_exeext conftest.$ac_ext
6156 LIBS=$ac_check_lib_save_LIBS
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6159 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6160 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6161   LIBS="$LIBS -lcposix"
6162 fi
6163
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6167 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6168 if test "${ac_cv_c_const+set}" = set; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h.  */
6173
6174 int
6175 main ()
6176 {
6177 /* FIXME: Include the comments suggested by Paul. */
6178 #ifndef __cplusplus
6179   /* Ultrix mips cc rejects this.  */
6180   typedef int charset[2];
6181   const charset cs;
6182   /* SunOS 4.1.1 cc rejects this.  */
6183   char const *const *pcpcc;
6184   char **ppc;
6185   /* NEC SVR4.0.2 mips cc rejects this.  */
6186   struct point {int x, y;};
6187   static struct point const zero = {0,0};
6188   /* AIX XL C 1.02.0.0 rejects this.
6189      It does not let you subtract one const X* pointer from another in
6190      an arm of an if-expression whose if-part is not a constant
6191      expression */
6192   const char *g = "string";
6193   pcpcc = &g + (g ? g-g : 0);
6194   /* HPUX 7.0 cc rejects these. */
6195   ++pcpcc;
6196   ppc = (char**) pcpcc;
6197   pcpcc = (char const *const *) ppc;
6198   { /* SCO 3.2v4 cc rejects this.  */
6199     char *t;
6200     char const *s = 0 ? (char *) 0 : (char const *) 0;
6201
6202     *t++ = 0;
6203     if (s) return 0;
6204   }
6205   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6206     int x[] = {25, 17};
6207     const int *foo = &x[0];
6208     ++foo;
6209   }
6210   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6211     typedef const int *iptr;
6212     iptr p = 0;
6213     ++p;
6214   }
6215   { /* AIX XL C 1.02.0.0 rejects this saying
6216        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6217     struct s { int j; const int *ap[3]; };
6218     struct s *b; b->j = 5;
6219   }
6220   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6221     const int foo = 10;
6222     if (!foo) return 0;
6223   }
6224   return !cs[0] && !zero.x;
6225 #endif
6226
6227   ;
6228   return 0;
6229 }
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"; then :
6232   ac_cv_c_const=yes
6233 else
6234   ac_cv_c_const=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6239 $as_echo "$ac_cv_c_const" >&6; }
6240 if test $ac_cv_c_const = no; then
6241
6242 $as_echo "#define const /**/" >>confdefs.h
6243
6244 fi
6245
6246
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6248 $as_echo_n "checking for signed... " >&6; }
6249 if test "${bh_cv_c_signed+set}" = set; then :
6250   $as_echo_n "(cached) " >&6
6251 else
6252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h.  */
6254
6255 int
6256 main ()
6257 {
6258 signed char x;
6259   ;
6260   return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_c_try_compile "$LINENO"; then :
6264   bh_cv_c_signed=yes
6265 else
6266   bh_cv_c_signed=no
6267 fi
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6271 $as_echo "$bh_cv_c_signed" >&6; }
6272   if test $bh_cv_c_signed = no; then
6273
6274 $as_echo "#define signed /**/" >>confdefs.h
6275
6276   fi
6277
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6279 $as_echo_n "checking for inline... " >&6; }
6280 if test "${ac_cv_c_inline+set}" = set; then :
6281   $as_echo_n "(cached) " >&6
6282 else
6283   ac_cv_c_inline=no
6284 for ac_kw in inline __inline__ __inline; do
6285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h.  */
6287 #ifndef __cplusplus
6288 typedef int foo_t;
6289 static $ac_kw foo_t static_foo () {return 0; }
6290 $ac_kw foo_t foo () {return 0; }
6291 #endif
6292
6293 _ACEOF
6294 if ac_fn_c_try_compile "$LINENO"; then :
6295   ac_cv_c_inline=$ac_kw
6296 fi
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298   test "$ac_cv_c_inline" != no && break
6299 done
6300
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6303 $as_echo "$ac_cv_c_inline" >&6; }
6304
6305 case $ac_cv_c_inline in
6306   inline | yes) ;;
6307   *)
6308     case $ac_cv_c_inline in
6309       no) ac_val=;;
6310       *) ac_val=$ac_cv_c_inline;;
6311     esac
6312     cat >>confdefs.h <<_ACEOF
6313 #ifndef __cplusplus
6314 #define inline $ac_val
6315 #endif
6316 _ACEOF
6317     ;;
6318 esac
6319
6320 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6321 if test "x$ac_cv_type_off_t" = x""yes; then :
6322
6323 else
6324
6325 cat >>confdefs.h <<_ACEOF
6326 #define off_t long int
6327 _ACEOF
6328
6329 fi
6330
6331 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6332 if test "x$ac_cv_type_size_t" = x""yes; then :
6333
6334 else
6335
6336 cat >>confdefs.h <<_ACEOF
6337 #define size_t unsigned int
6338 _ACEOF
6339
6340 fi
6341
6342
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6344 $as_echo_n "checking for long long... " >&6; }
6345 if test "${ac_cv_type_long_long+set}" = set; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h.  */
6350 long long ll = 1LL; int i = 63;
6351 int
6352 main ()
6353 {
6354 long long llmax = (long long) -1;
6355      return ll << i | ll >> i | llmax / ll | llmax % ll;
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"; then :
6361   ac_cv_type_long_long=yes
6362 else
6363   ac_cv_type_long_long=no
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext \
6366     conftest$ac_exeext conftest.$ac_ext
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6369 $as_echo "$ac_cv_type_long_long" >&6; }
6370   if test $ac_cv_type_long_long = yes; then
6371
6372 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6373
6374   fi
6375
6376
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6378 $as_echo_n "checking for long double... " >&6; }
6379 if test "${gt_cv_c_long_double+set}" = set; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   if test "$GCC" = yes; then
6383        gt_cv_c_long_double=yes
6384      else
6385        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h.  */
6387
6388          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6389          long double foo = 0.0;
6390          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6391          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6392
6393 int
6394 main ()
6395 {
6396
6397   ;
6398   return 0;
6399 }
6400 _ACEOF
6401 if ac_fn_c_try_compile "$LINENO"; then :
6402   gt_cv_c_long_double=yes
6403 else
6404   gt_cv_c_long_double=no
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407      fi
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6410 $as_echo "$gt_cv_c_long_double" >&6; }
6411   if test $gt_cv_c_long_double = yes; then
6412
6413 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6414
6415   fi
6416
6417
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6419 $as_echo_n "checking for wchar_t... " >&6; }
6420 if test "${gt_cv_c_wchar_t+set}" = set; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h.  */
6425 #include <stddef.h>
6426        wchar_t foo = (wchar_t)'\0';
6427 int
6428 main ()
6429 {
6430
6431   ;
6432   return 0;
6433 }
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436   gt_cv_c_wchar_t=yes
6437 else
6438   gt_cv_c_wchar_t=no
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 fi
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6443 $as_echo "$gt_cv_c_wchar_t" >&6; }
6444   if test $gt_cv_c_wchar_t = yes; then
6445
6446 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6447
6448   fi
6449
6450
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6452 $as_echo_n "checking for wint_t... " >&6; }
6453 if test "${gt_cv_c_wint_t+set}" = set; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h.  */
6458 #include <wchar.h>
6459        wint_t foo = (wchar_t)'\0';
6460 int
6461 main ()
6462 {
6463
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469   gt_cv_c_wint_t=yes
6470 else
6471   gt_cv_c_wint_t=no
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 fi
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6476 $as_echo "$gt_cv_c_wint_t" >&6; }
6477   if test $gt_cv_c_wint_t = yes; then
6478
6479 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6480
6481   fi
6482
6483
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6485 $as_echo_n "checking for inttypes.h... " >&6; }
6486 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h.  */
6491 #include <sys/types.h>
6492 #include <inttypes.h>
6493 int
6494 main ()
6495 {
6496 uintmax_t i = (uintmax_t) -1;
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502   jm_ac_cv_header_inttypes_h=yes
6503 else
6504   jm_ac_cv_header_inttypes_h=no
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6509 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6510   if test $jm_ac_cv_header_inttypes_h = yes; then
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6514 _ACEOF
6515
6516   fi
6517
6518
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6520 $as_echo_n "checking for stdint.h... " >&6; }
6521 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h.  */
6526 #include <sys/types.h>
6527 #include <stdint.h>
6528 int
6529 main ()
6530 {
6531 uintmax_t i = (uintmax_t) -1;
6532   ;
6533   return 0;
6534 }
6535 _ACEOF
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537   jm_ac_cv_header_stdint_h=yes
6538 else
6539   jm_ac_cv_header_stdint_h=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6544 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6545   if test $jm_ac_cv_header_stdint_h = yes; then
6546
6547 cat >>confdefs.h <<_ACEOF
6548 #define HAVE_STDINT_H_WITH_UINTMAX 1
6549 _ACEOF
6550
6551   fi
6552
6553
6554
6555
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6557 $as_echo_n "checking for intmax_t... " >&6; }
6558 if test "${gt_cv_c_intmax_t+set}" = set; then :
6559   $as_echo_n "(cached) " >&6
6560 else
6561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h.  */
6563
6564 #include <stddef.h>
6565 #include <stdlib.h>
6566 #if HAVE_STDINT_H_WITH_UINTMAX
6567 #include <stdint.h>
6568 #endif
6569 #if HAVE_INTTYPES_H_WITH_UINTMAX
6570 #include <inttypes.h>
6571 #endif
6572
6573 int
6574 main ()
6575 {
6576 intmax_t x = -1;
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582   gt_cv_c_intmax_t=yes
6583 else
6584   gt_cv_c_intmax_t=no
6585 fi
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 fi
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6589 $as_echo "$gt_cv_c_intmax_t" >&6; }
6590   if test $gt_cv_c_intmax_t = yes; then
6591
6592 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6593
6594   fi
6595
6596
6597
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6599 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6600 if test "${gt_cv_func_printf_posix+set}" = set; then :
6601   $as_echo_n "(cached) " >&6
6602 else
6603
6604       if test "$cross_compiling" = yes; then :
6605
6606         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h.  */
6608
6609 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6610   notposix
6611 #endif
6612
6613 _ACEOF
6614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6615   $EGREP "notposix" >/dev/null 2>&1; then :
6616   gt_cv_func_printf_posix="guessing no"
6617 else
6618   gt_cv_func_printf_posix="guessing yes"
6619 fi
6620 rm -f conftest*
6621
6622
6623 else
6624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h.  */
6626
6627 #include <stdio.h>
6628 #include <string.h>
6629 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6630    dollar expansion (possibly an autoconf bug).  */
6631 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6632 static char buf[100];
6633 int main ()
6634 {
6635   sprintf (buf, format, 33, 55);
6636   return (strcmp (buf, "55 33") != 0);
6637 }
6638 _ACEOF
6639 if ac_fn_c_try_run "$LINENO"; then :
6640   gt_cv_func_printf_posix=yes
6641 else
6642   gt_cv_func_printf_posix=no
6643 fi
6644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6645   conftest.$ac_objext conftest.beam conftest.$ac_ext
6646 fi
6647
6648
6649 fi
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6651 $as_echo "$gt_cv_func_printf_posix" >&6; }
6652   case $gt_cv_func_printf_posix in
6653     *yes)
6654
6655 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6656
6657       ;;
6658   esac
6659
6660 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6661 # for constant arguments.  Useless!
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6663 $as_echo_n "checking for working alloca.h... " >&6; }
6664 if test "${ac_cv_working_alloca_h+set}" = set; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h.  */
6669 #include <alloca.h>
6670 int
6671 main ()
6672 {
6673 char *p = (char *) alloca (2 * sizeof (int));
6674                           if (p) return 0;
6675   ;
6676   return 0;
6677 }
6678 _ACEOF
6679 if ac_fn_c_try_link "$LINENO"; then :
6680   ac_cv_working_alloca_h=yes
6681 else
6682   ac_cv_working_alloca_h=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext \
6685     conftest$ac_exeext conftest.$ac_ext
6686 fi
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6688 $as_echo "$ac_cv_working_alloca_h" >&6; }
6689 if test $ac_cv_working_alloca_h = yes; then
6690
6691 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6692
6693 fi
6694
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6696 $as_echo_n "checking for alloca... " >&6; }
6697 if test "${ac_cv_func_alloca_works+set}" = set; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h.  */
6702 #ifdef __GNUC__
6703 # define alloca __builtin_alloca
6704 #else
6705 # ifdef _MSC_VER
6706 #  include <malloc.h>
6707 #  define alloca _alloca
6708 # else
6709 #  ifdef HAVE_ALLOCA_H
6710 #   include <alloca.h>
6711 #  else
6712 #   ifdef _AIX
6713  #pragma alloca
6714 #   else
6715 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6716 char *alloca ();
6717 #    endif
6718 #   endif
6719 #  endif
6720 # endif
6721 #endif
6722
6723 int
6724 main ()
6725 {
6726 char *p = (char *) alloca (1);
6727                                     if (p) return 0;
6728   ;
6729   return 0;
6730 }
6731 _ACEOF
6732 if ac_fn_c_try_link "$LINENO"; then :
6733   ac_cv_func_alloca_works=yes
6734 else
6735   ac_cv_func_alloca_works=no
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext \
6738     conftest$ac_exeext conftest.$ac_ext
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6741 $as_echo "$ac_cv_func_alloca_works" >&6; }
6742
6743 if test $ac_cv_func_alloca_works = yes; then
6744
6745 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6746
6747 else
6748   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6749 # that cause trouble.  Some versions do not even contain alloca or
6750 # contain a buggy version.  If you still want to use their alloca,
6751 # use ar to extract alloca.o from them instead of compiling alloca.c.
6752
6753 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6754
6755 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6756
6757
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6759 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6760 if test "${ac_cv_os_cray+set}" = set; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h.  */
6765 #if defined CRAY && ! defined CRAY2
6766 webecray
6767 #else
6768 wenotbecray
6769 #endif
6770
6771 _ACEOF
6772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6773   $EGREP "webecray" >/dev/null 2>&1; then :
6774   ac_cv_os_cray=yes
6775 else
6776   ac_cv_os_cray=no
6777 fi
6778 rm -f conftest*
6779
6780 fi
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6782 $as_echo "$ac_cv_os_cray" >&6; }
6783 if test $ac_cv_os_cray = yes; then
6784   for ac_func in _getb67 GETB67 getb67; do
6785     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6787 eval as_val=\$$as_ac_var
6788    if test "x$as_val" = x""yes; then :
6789
6790 cat >>confdefs.h <<_ACEOF
6791 #define CRAY_STACKSEG_END $ac_func
6792 _ACEOF
6793
6794     break
6795 fi
6796
6797   done
6798 fi
6799
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6801 $as_echo_n "checking stack direction for C alloca... " >&6; }
6802 if test "${ac_cv_c_stack_direction+set}" = set; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   if test "$cross_compiling" = yes; then :
6806   ac_cv_c_stack_direction=0
6807 else
6808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h.  */
6810 $ac_includes_default
6811 int
6812 find_stack_direction ()
6813 {
6814   static char *addr = 0;
6815   auto char dummy;
6816   if (addr == 0)
6817     {
6818       addr = &dummy;
6819       return find_stack_direction ();
6820     }
6821   else
6822     return (&dummy > addr) ? 1 : -1;
6823 }
6824
6825 int
6826 main ()
6827 {
6828   return find_stack_direction () < 0;
6829 }
6830 _ACEOF
6831 if ac_fn_c_try_run "$LINENO"; then :
6832   ac_cv_c_stack_direction=1
6833 else
6834   ac_cv_c_stack_direction=-1
6835 fi
6836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6837   conftest.$ac_objext conftest.beam conftest.$ac_ext
6838 fi
6839
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6842 $as_echo "$ac_cv_c_stack_direction" >&6; }
6843 cat >>confdefs.h <<_ACEOF
6844 #define STACK_DIRECTION $ac_cv_c_stack_direction
6845 _ACEOF
6846
6847
6848 fi
6849
6850
6851
6852
6853   for ac_header in $ac_header_list
6854 do :
6855   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6856 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6857 "
6858 eval as_val=\$$as_ac_Header
6859    if test "x$as_val" = x""yes; then :
6860   cat >>confdefs.h <<_ACEOF
6861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6862 _ACEOF
6863
6864 fi
6865
6866 done
6867
6868
6869
6870
6871
6872
6873
6874
6875 for ac_func in getpagesize
6876 do :
6877   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6878 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6879   cat >>confdefs.h <<_ACEOF
6880 #define HAVE_GETPAGESIZE 1
6881 _ACEOF
6882
6883 fi
6884 done
6885
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6887 $as_echo_n "checking for working mmap... " >&6; }
6888 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   if test "$cross_compiling" = yes; then :
6892   ac_cv_func_mmap_fixed_mapped=no
6893 else
6894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h.  */
6896 $ac_includes_default
6897 /* malloc might have been renamed as rpl_malloc. */
6898 #undef malloc
6899
6900 /* Thanks to Mike Haertel and Jim Avera for this test.
6901    Here is a matrix of mmap possibilities:
6902         mmap private not fixed
6903         mmap private fixed at somewhere currently unmapped
6904         mmap private fixed at somewhere already mapped
6905         mmap shared not fixed
6906         mmap shared fixed at somewhere currently unmapped
6907         mmap shared fixed at somewhere already mapped
6908    For private mappings, we should verify that changes cannot be read()
6909    back from the file, nor mmap's back from the file at a different
6910    address.  (There have been systems where private was not correctly
6911    implemented like the infamous i386 svr4.0, and systems where the
6912    VM page cache was not coherent with the file system buffer cache
6913    like early versions of FreeBSD and possibly contemporary NetBSD.)
6914    For shared mappings, we should conversely verify that changes get
6915    propagated back to all the places they're supposed to be.
6916
6917    Grep wants private fixed already mapped.
6918    The main things grep needs to know about mmap are:
6919    * does it exist and is it safe to write into the mmap'd area
6920    * how to use it (BSD variants)  */
6921
6922 #include <fcntl.h>
6923 #include <sys/mman.h>
6924
6925 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6926 char *malloc ();
6927 #endif
6928
6929 /* This mess was copied from the GNU getpagesize.h.  */
6930 #ifndef HAVE_GETPAGESIZE
6931 # ifdef _SC_PAGESIZE
6932 #  define getpagesize() sysconf(_SC_PAGESIZE)
6933 # else /* no _SC_PAGESIZE */
6934 #  ifdef HAVE_SYS_PARAM_H
6935 #   include <sys/param.h>
6936 #   ifdef EXEC_PAGESIZE
6937 #    define getpagesize() EXEC_PAGESIZE
6938 #   else /* no EXEC_PAGESIZE */
6939 #    ifdef NBPG
6940 #     define getpagesize() NBPG * CLSIZE
6941 #     ifndef CLSIZE
6942 #      define CLSIZE 1
6943 #     endif /* no CLSIZE */
6944 #    else /* no NBPG */
6945 #     ifdef NBPC
6946 #      define getpagesize() NBPC
6947 #     else /* no NBPC */
6948 #      ifdef PAGESIZE
6949 #       define getpagesize() PAGESIZE
6950 #      endif /* PAGESIZE */
6951 #     endif /* no NBPC */
6952 #    endif /* no NBPG */
6953 #   endif /* no EXEC_PAGESIZE */
6954 #  else /* no HAVE_SYS_PARAM_H */
6955 #   define getpagesize() 8192   /* punt totally */
6956 #  endif /* no HAVE_SYS_PARAM_H */
6957 # endif /* no _SC_PAGESIZE */
6958
6959 #endif /* no HAVE_GETPAGESIZE */
6960
6961 int
6962 main ()
6963 {
6964   char *data, *data2, *data3;
6965   const char *cdata2;
6966   int i, pagesize;
6967   int fd, fd2;
6968
6969   pagesize = getpagesize ();
6970
6971   /* First, make a file with some known garbage in it. */
6972   data = (char *) malloc (pagesize);
6973   if (!data)
6974     return 1;
6975   for (i = 0; i < pagesize; ++i)
6976     *(data + i) = rand ();
6977   umask (0);
6978   fd = creat ("conftest.mmap", 0600);
6979   if (fd < 0)
6980     return 2;
6981   if (write (fd, data, pagesize) != pagesize)
6982     return 3;
6983   close (fd);
6984
6985   /* Next, check that the tail of a page is zero-filled.  File must have
6986      non-zero length, otherwise we risk SIGBUS for entire page.  */
6987   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6988   if (fd2 < 0)
6989     return 4;
6990   cdata2 = "";
6991   if (write (fd2, cdata2, 1) != 1)
6992     return 5;
6993   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6994   if (data2 == MAP_FAILED)
6995     return 6;
6996   for (i = 0; i < pagesize; ++i)
6997     if (*(data2 + i))
6998       return 7;
6999   close (fd2);
7000   if (munmap (data2, pagesize))
7001     return 8;
7002
7003   /* Next, try to mmap the file at a fixed address which already has
7004      something else allocated at it.  If we can, also make sure that
7005      we see the same garbage.  */
7006   fd = open ("conftest.mmap", O_RDWR);
7007   if (fd < 0)
7008     return 9;
7009   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7010                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7011     return 10;
7012   for (i = 0; i < pagesize; ++i)
7013     if (*(data + i) != *(data2 + i))
7014       return 11;
7015
7016   /* Finally, make sure that changes to the mapped area do not
7017      percolate back to the file as seen by read().  (This is a bug on
7018      some variants of i386 svr4.0.)  */
7019   for (i = 0; i < pagesize; ++i)
7020     *(data2 + i) = *(data2 + i) + 1;
7021   data3 = (char *) malloc (pagesize);
7022   if (!data3)
7023     return 12;
7024   if (read (fd, data3, pagesize) != pagesize)
7025     return 13;
7026   for (i = 0; i < pagesize; ++i)
7027     if (*(data + i) != *(data3 + i))
7028       return 14;
7029   close (fd);
7030   return 0;
7031 }
7032 _ACEOF
7033 if ac_fn_c_try_run "$LINENO"; then :
7034   ac_cv_func_mmap_fixed_mapped=yes
7035 else
7036   ac_cv_func_mmap_fixed_mapped=no
7037 fi
7038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7039   conftest.$ac_objext conftest.beam conftest.$ac_ext
7040 fi
7041
7042 fi
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7044 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7045 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7046
7047 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7048
7049 fi
7050 rm -f conftest.mmap conftest.txt
7051
7052
7053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7054 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7055 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7056   $as_echo_n "(cached) " >&6
7057 else
7058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h.  */
7060
7061 #include <features.h>
7062 #ifdef __GNU_LIBRARY__
7063  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7064   Lucky GNU user
7065  #endif
7066 #endif
7067
7068 _ACEOF
7069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7070   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7071   ac_cv_gnu_library_2_1=yes
7072 else
7073   ac_cv_gnu_library_2_1=no
7074 fi
7075 rm -f conftest*
7076
7077
7078
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7081 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7082
7083     GLIBC21="$ac_cv_gnu_library_2_1"
7084
7085
7086
7087
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7089 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7090 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7091   $as_echo_n "(cached) " >&6
7092 else
7093
7094       if test "$cross_compiling" = yes; then :
7095
7096           # Guess based on the CPU.
7097           case "$host_cpu" in
7098             alpha* | i3456786 | m68k | s390*)
7099               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7100             *)
7101               gt_cv_int_divbyzero_sigfpe="guessing no";;
7102           esac
7103
7104 else
7105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h.  */
7107
7108 #include <stdlib.h>
7109 #include <signal.h>
7110
7111 static void
7112 #ifdef __cplusplus
7113 sigfpe_handler (int sig)
7114 #else
7115 sigfpe_handler (sig) int sig;
7116 #endif
7117 {
7118   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7119   exit (sig != SIGFPE);
7120 }
7121
7122 int x = 1;
7123 int y = 0;
7124 int z;
7125 int nan;
7126
7127 int main ()
7128 {
7129   signal (SIGFPE, sigfpe_handler);
7130 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7131 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7132   signal (SIGTRAP, sigfpe_handler);
7133 #endif
7134 /* Linux/SPARC yields signal SIGILL.  */
7135 #if defined (__sparc__) && defined (__linux__)
7136   signal (SIGILL, sigfpe_handler);
7137 #endif
7138
7139   z = x / y;
7140   nan = y / y;
7141   exit (1);
7142 }
7143
7144 _ACEOF
7145 if ac_fn_c_try_run "$LINENO"; then :
7146   gt_cv_int_divbyzero_sigfpe=yes
7147 else
7148   gt_cv_int_divbyzero_sigfpe=no
7149 fi
7150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7151   conftest.$ac_objext conftest.beam conftest.$ac_ext
7152 fi
7153
7154
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7157 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7158   case "$gt_cv_int_divbyzero_sigfpe" in
7159     *yes) value=1;;
7160     *) value=0;;
7161   esac
7162
7163 cat >>confdefs.h <<_ACEOF
7164 #define INTDIV0_RAISES_SIGFPE $value
7165 _ACEOF
7166
7167
7168
7169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7170 $as_echo_n "checking for unsigned long long... " >&6; }
7171 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h.  */
7176 unsigned long long ull = 1ULL; int i = 63;
7177 int
7178 main ()
7179 {
7180 unsigned long long ullmax = (unsigned long long) -1;
7181      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 if ac_fn_c_try_link "$LINENO"; then :
7187   ac_cv_type_unsigned_long_long=yes
7188 else
7189   ac_cv_type_unsigned_long_long=no
7190 fi
7191 rm -f core conftest.err conftest.$ac_objext \
7192     conftest$ac_exeext conftest.$ac_ext
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7195 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7196   if test $ac_cv_type_unsigned_long_long = yes; then
7197
7198 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7199
7200   fi
7201
7202
7203
7204
7205   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7206
7207     test $ac_cv_type_unsigned_long_long = yes \
7208       && ac_type='unsigned long long' \
7209       || ac_type='unsigned long'
7210
7211 cat >>confdefs.h <<_ACEOF
7212 #define uintmax_t $ac_type
7213 _ACEOF
7214
7215   else
7216
7217 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7218
7219   fi
7220
7221
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7223 $as_echo_n "checking for inttypes.h... " >&6; }
7224 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7225   $as_echo_n "(cached) " >&6
7226 else
7227
7228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h.  */
7230 #include <sys/types.h>
7231 #include <inttypes.h>
7232 int
7233 main ()
7234 {
7235
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 if ac_fn_c_try_compile "$LINENO"; then :
7241   gt_cv_header_inttypes_h=yes
7242 else
7243   gt_cv_header_inttypes_h=no
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7249 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7250   if test $gt_cv_header_inttypes_h = yes; then
7251
7252 cat >>confdefs.h <<_ACEOF
7253 #define HAVE_INTTYPES_H 1
7254 _ACEOF
7255
7256   fi
7257
7258
7259
7260   if test $gt_cv_header_inttypes_h = yes; then
7261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7262 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7263 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266
7267         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h.  */
7269 #include <inttypes.h>
7270 #ifdef PRId32
7271 char *p = PRId32;
7272 #endif
7273
7274 int
7275 main ()
7276 {
7277
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 if ac_fn_c_try_compile "$LINENO"; then :
7283   gt_cv_inttypes_pri_broken=no
7284 else
7285   gt_cv_inttypes_pri_broken=yes
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288
7289 fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7291 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7292   fi
7293   if test "$gt_cv_inttypes_pri_broken" = yes; then
7294
7295 cat >>confdefs.h <<_ACEOF
7296 #define PRI_MACROS_BROKEN 1
7297 _ACEOF
7298
7299   fi
7300
7301
7302   for ac_header in stdint.h
7303 do :
7304   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7305 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7306   cat >>confdefs.h <<_ACEOF
7307 #define HAVE_STDINT_H 1
7308 _ACEOF
7309
7310 fi
7311
7312 done
7313
7314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7315 $as_echo_n "checking for SIZE_MAX... " >&6; }
7316   result=
7317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h.  */
7319
7320 #include <limits.h>
7321 #if HAVE_STDINT_H
7322 #include <stdint.h>
7323 #endif
7324 #ifdef SIZE_MAX
7325 Found it
7326 #endif
7327
7328 _ACEOF
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330   $EGREP "Found it" >/dev/null 2>&1; then :
7331   result=yes
7332 fi
7333 rm -f conftest*
7334
7335   if test -z "$result"; then
7336                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7337
7338 else
7339   result=?
7340 fi
7341
7342
7343     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7344
7345 else
7346   result=?
7347 fi
7348
7349
7350     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7351
7352 else
7353   result=?
7354 fi
7355
7356
7357     if test "$fits_in_uint" = 1; then
7358                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h.  */
7360 #include <stddef.h>
7361         extern size_t foo;
7362         extern unsigned long foo;
7363
7364 int
7365 main ()
7366 {
7367
7368   ;
7369   return 0;
7370 }
7371 _ACEOF
7372 if ac_fn_c_try_compile "$LINENO"; then :
7373   fits_in_uint=0
7374 fi
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376     fi
7377     if test -z "$result"; then
7378       if test "$fits_in_uint" = 1; then
7379         result="$res_hi$res_lo"U
7380       else
7381         result="$res_hi$res_lo"UL
7382       fi
7383     else
7384             result='~(size_t)0'
7385     fi
7386   fi
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7388 $as_echo "$result" >&6; }
7389   if test "$result" != yes; then
7390
7391 cat >>confdefs.h <<_ACEOF
7392 #define SIZE_MAX $result
7393 _ACEOF
7394
7395   fi
7396
7397
7398
7399   for ac_header in stdint.h
7400 do :
7401   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7402 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7403   cat >>confdefs.h <<_ACEOF
7404 #define HAVE_STDINT_H 1
7405 _ACEOF
7406
7407 fi
7408
7409 done
7410
7411
7412
7413       if test "X$prefix" = "XNONE"; then
7414     acl_final_prefix="$ac_default_prefix"
7415   else
7416     acl_final_prefix="$prefix"
7417   fi
7418   if test "X$exec_prefix" = "XNONE"; then
7419     acl_final_exec_prefix='${prefix}'
7420   else
7421     acl_final_exec_prefix="$exec_prefix"
7422   fi
7423   acl_save_prefix="$prefix"
7424   prefix="$acl_final_prefix"
7425   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7426   prefix="$acl_save_prefix"
7427
7428
7429 # Check whether --with-gnu-ld was given.
7430 if test "${with_gnu_ld+set}" = set; then :
7431   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7432 else
7433   with_gnu_ld=no
7434 fi
7435
7436 # Prepare PATH_SEPARATOR.
7437 # The user is always right.
7438 if test "${PATH_SEPARATOR+set}" != set; then
7439   echo "#! /bin/sh" >conf$$.sh
7440   echo  "exit 0"   >>conf$$.sh
7441   chmod +x conf$$.sh
7442   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7443     PATH_SEPARATOR=';'
7444   else
7445     PATH_SEPARATOR=:
7446   fi
7447   rm -f conf$$.sh
7448 fi
7449 ac_prog=ld
7450 if test "$GCC" = yes; then
7451   # Check if gcc -print-prog-name=ld gives a path.
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7453 $as_echo_n "checking for ld used by GCC... " >&6; }
7454   case $host in
7455   *-*-mingw*)
7456     # gcc leaves a trailing carriage return which upsets mingw
7457     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7458   *)
7459     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7460   esac
7461   case $ac_prog in
7462     # Accept absolute paths.
7463     [\\/]* | [A-Za-z]:[\\/]*)
7464       re_direlt='/[^/][^/]*/\.\./'
7465       # Canonicalize the path of ld
7466       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7467       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7468         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7469       done
7470       test -z "$LD" && LD="$ac_prog"
7471       ;;
7472   "")
7473     # If it fails, then pretend we aren't using GCC.
7474     ac_prog=ld
7475     ;;
7476   *)
7477     # If it is relative, then search for the first ld in PATH.
7478     with_gnu_ld=unknown
7479     ;;
7480   esac
7481 elif test "$with_gnu_ld" = yes; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7483 $as_echo_n "checking for GNU ld... " >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7486 $as_echo_n "checking for non-GNU ld... " >&6; }
7487 fi
7488 if test "${acl_cv_path_LD+set}" = set; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   if test -z "$LD"; then
7492   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7493   for ac_dir in $PATH; do
7494     test -z "$ac_dir" && ac_dir=.
7495     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7496       acl_cv_path_LD="$ac_dir/$ac_prog"
7497       # Check to see if the program is GNU ld.  I'd rather use --version,
7498       # but apparently some GNU ld's only accept -v.
7499       # Break only if it was the GNU/non-GNU ld that we prefer.
7500       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7501       *GNU* | *'with BFD'*)
7502         test "$with_gnu_ld" != no && break ;;
7503       *)
7504         test "$with_gnu_ld" != yes && break ;;
7505       esac
7506     fi
7507   done
7508   IFS="$ac_save_ifs"
7509 else
7510   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7511 fi
7512 fi
7513
7514 LD="$acl_cv_path_LD"
7515 if test -n "$LD"; then
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7517 $as_echo "$LD" >&6; }
7518 else
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7524 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7525 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7529 case `$LD -v 2>&1 </dev/null` in
7530 *GNU* | *'with BFD'*)
7531   acl_cv_prog_gnu_ld=yes ;;
7532 *)
7533   acl_cv_prog_gnu_ld=no ;;
7534 esac
7535 fi
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7537 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7538 with_gnu_ld=$acl_cv_prog_gnu_ld
7539
7540
7541
7542                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7543 $as_echo_n "checking for shared library run path origin... " >&6; }
7544 if test "${acl_cv_rpath+set}" = set; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547
7548     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7549     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7550     . ./conftest.sh
7551     rm -f ./conftest.sh
7552     acl_cv_rpath=done
7553
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7556 $as_echo "$acl_cv_rpath" >&6; }
7557   wl="$acl_cv_wl"
7558   libext="$acl_cv_libext"
7559   shlibext="$acl_cv_shlibext"
7560   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7561   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7562   hardcode_direct="$acl_cv_hardcode_direct"
7563   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7564     # Check whether --enable-rpath was given.
7565 if test "${enable_rpath+set}" = set; then :
7566   enableval=$enable_rpath; :
7567 else
7568   enable_rpath=yes
7569 fi
7570
7571
7572
7573
7574
7575
7576
7577
7578     use_additional=yes
7579
7580   acl_save_prefix="$prefix"
7581   prefix="$acl_final_prefix"
7582   acl_save_exec_prefix="$exec_prefix"
7583   exec_prefix="$acl_final_exec_prefix"
7584
7585     eval additional_includedir=\"$includedir\"
7586     eval additional_libdir=\"$libdir\"
7587
7588   exec_prefix="$acl_save_exec_prefix"
7589   prefix="$acl_save_prefix"
7590
7591
7592 # Check whether --with-libiconv-prefix was given.
7593 if test "${with_libiconv_prefix+set}" = set; then :
7594   withval=$with_libiconv_prefix;
7595     if test "X$withval" = "Xno"; then
7596       use_additional=no
7597     else
7598       if test "X$withval" = "X"; then
7599
7600   acl_save_prefix="$prefix"
7601   prefix="$acl_final_prefix"
7602   acl_save_exec_prefix="$exec_prefix"
7603   exec_prefix="$acl_final_exec_prefix"
7604
7605           eval additional_includedir=\"$includedir\"
7606           eval additional_libdir=\"$libdir\"
7607
7608   exec_prefix="$acl_save_exec_prefix"
7609   prefix="$acl_save_prefix"
7610
7611       else
7612         additional_includedir="$withval/include"
7613         additional_libdir="$withval/lib"
7614       fi
7615     fi
7616
7617 fi
7618
7619       LIBICONV=
7620   LTLIBICONV=
7621   INCICONV=
7622   rpathdirs=
7623   ltrpathdirs=
7624   names_already_handled=
7625   names_next_round='iconv '
7626   while test -n "$names_next_round"; do
7627     names_this_round="$names_next_round"
7628     names_next_round=
7629     for name in $names_this_round; do
7630       already_handled=
7631       for n in $names_already_handled; do
7632         if test "$n" = "$name"; then
7633           already_handled=yes
7634           break
7635         fi
7636       done
7637       if test -z "$already_handled"; then
7638         names_already_handled="$names_already_handled $name"
7639                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7640         eval value=\"\$HAVE_LIB$uppername\"
7641         if test -n "$value"; then
7642           if test "$value" = yes; then
7643             eval value=\"\$LIB$uppername\"
7644             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7645             eval value=\"\$LTLIB$uppername\"
7646             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7647           else
7648                                     :
7649           fi
7650         else
7651                               found_dir=
7652           found_la=
7653           found_so=
7654           found_a=
7655           if test $use_additional = yes; then
7656             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7657               found_dir="$additional_libdir"
7658               found_so="$additional_libdir/lib$name.$shlibext"
7659               if test -f "$additional_libdir/lib$name.la"; then
7660                 found_la="$additional_libdir/lib$name.la"
7661               fi
7662             else
7663               if test -f "$additional_libdir/lib$name.$libext"; then
7664                 found_dir="$additional_libdir"
7665                 found_a="$additional_libdir/lib$name.$libext"
7666                 if test -f "$additional_libdir/lib$name.la"; then
7667                   found_la="$additional_libdir/lib$name.la"
7668                 fi
7669               fi
7670             fi
7671           fi
7672           if test "X$found_dir" = "X"; then
7673             for x in $LDFLAGS $LTLIBICONV; do
7674
7675   acl_save_prefix="$prefix"
7676   prefix="$acl_final_prefix"
7677   acl_save_exec_prefix="$exec_prefix"
7678   exec_prefix="$acl_final_exec_prefix"
7679   eval x=\"$x\"
7680   exec_prefix="$acl_save_exec_prefix"
7681   prefix="$acl_save_prefix"
7682
7683               case "$x" in
7684                 -L*)
7685                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7686                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7687                     found_dir="$dir"
7688                     found_so="$dir/lib$name.$shlibext"
7689                     if test -f "$dir/lib$name.la"; then
7690                       found_la="$dir/lib$name.la"
7691                     fi
7692                   else
7693                     if test -f "$dir/lib$name.$libext"; then
7694                       found_dir="$dir"
7695                       found_a="$dir/lib$name.$libext"
7696                       if test -f "$dir/lib$name.la"; then
7697                         found_la="$dir/lib$name.la"
7698                       fi
7699                     fi
7700                   fi
7701                   ;;
7702               esac
7703               if test "X$found_dir" != "X"; then
7704                 break
7705               fi
7706             done
7707           fi
7708           if test "X$found_dir" != "X"; then
7709                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7710             if test "X$found_so" != "X"; then
7711                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7712                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7713               else
7714                                                                                 haveit=
7715                 for x in $ltrpathdirs; do
7716                   if test "X$x" = "X$found_dir"; then
7717                     haveit=yes
7718                     break
7719                   fi
7720                 done
7721                 if test -z "$haveit"; then
7722                   ltrpathdirs="$ltrpathdirs $found_dir"
7723                 fi
7724                                 if test "$hardcode_direct" = yes; then
7725                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7726                 else
7727                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7728                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7729                                                             haveit=
7730                     for x in $rpathdirs; do
7731                       if test "X$x" = "X$found_dir"; then
7732                         haveit=yes
7733                         break
7734                       fi
7735                     done
7736                     if test -z "$haveit"; then
7737                       rpathdirs="$rpathdirs $found_dir"
7738                     fi
7739                   else
7740                                                                                 haveit=
7741                     for x in $LDFLAGS $LIBICONV; do
7742
7743   acl_save_prefix="$prefix"
7744   prefix="$acl_final_prefix"
7745   acl_save_exec_prefix="$exec_prefix"
7746   exec_prefix="$acl_final_exec_prefix"
7747   eval x=\"$x\"
7748   exec_prefix="$acl_save_exec_prefix"
7749   prefix="$acl_save_prefix"
7750
7751                       if test "X$x" = "X-L$found_dir"; then
7752                         haveit=yes
7753                         break
7754                       fi
7755                     done
7756                     if test -z "$haveit"; then
7757                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7758                     fi
7759                     if test "$hardcode_minus_L" != no; then
7760                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7761                     else
7762                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7763                     fi
7764                   fi
7765                 fi
7766               fi
7767             else
7768               if test "X$found_a" != "X"; then
7769                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7770               else
7771                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7772               fi
7773             fi
7774                         additional_includedir=
7775             case "$found_dir" in
7776               */lib | */lib/)
7777                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7778                 additional_includedir="$basedir/include"
7779                 ;;
7780             esac
7781             if test "X$additional_includedir" != "X"; then
7782                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7783                 haveit=
7784                 if test "X$additional_includedir" = "X/usr/local/include"; then
7785                   if test -n "$GCC"; then
7786                     case $host_os in
7787                       linux*) haveit=yes;;
7788                     esac
7789                   fi
7790                 fi
7791                 if test -z "$haveit"; then
7792                   for x in $CPPFLAGS $INCICONV; do
7793
7794   acl_save_prefix="$prefix"
7795   prefix="$acl_final_prefix"
7796   acl_save_exec_prefix="$exec_prefix"
7797   exec_prefix="$acl_final_exec_prefix"
7798   eval x=\"$x\"
7799   exec_prefix="$acl_save_exec_prefix"
7800   prefix="$acl_save_prefix"
7801
7802                     if test "X$x" = "X-I$additional_includedir"; then
7803                       haveit=yes
7804                       break
7805                     fi
7806                   done
7807                   if test -z "$haveit"; then
7808                     if test -d "$additional_includedir"; then
7809                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7810                     fi
7811                   fi
7812                 fi
7813               fi
7814             fi
7815                         if test -n "$found_la"; then
7816                                                         save_libdir="$libdir"
7817               case "$found_la" in
7818                 */* | *\\*) . "$found_la" ;;
7819                 *) . "./$found_la" ;;
7820               esac
7821               libdir="$save_libdir"
7822                             for dep in $dependency_libs; do
7823                 case "$dep" in
7824                   -L*)
7825                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7826                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7827                       haveit=
7828                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7829                         if test -n "$GCC"; then
7830                           case $host_os in
7831                             linux*) haveit=yes;;
7832                           esac
7833                         fi
7834                       fi
7835                       if test -z "$haveit"; then
7836                         haveit=
7837                         for x in $LDFLAGS $LIBICONV; do
7838
7839   acl_save_prefix="$prefix"
7840   prefix="$acl_final_prefix"
7841   acl_save_exec_prefix="$exec_prefix"
7842   exec_prefix="$acl_final_exec_prefix"
7843   eval x=\"$x\"
7844   exec_prefix="$acl_save_exec_prefix"
7845   prefix="$acl_save_prefix"
7846
7847                           if test "X$x" = "X-L$additional_libdir"; then
7848                             haveit=yes
7849                             break
7850                           fi
7851                         done
7852                         if test -z "$haveit"; then
7853                           if test -d "$additional_libdir"; then
7854                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7855                           fi
7856                         fi
7857                         haveit=
7858                         for x in $LDFLAGS $LTLIBICONV; do
7859
7860   acl_save_prefix="$prefix"
7861   prefix="$acl_final_prefix"
7862   acl_save_exec_prefix="$exec_prefix"
7863   exec_prefix="$acl_final_exec_prefix"
7864   eval x=\"$x\"
7865   exec_prefix="$acl_save_exec_prefix"
7866   prefix="$acl_save_prefix"
7867
7868                           if test "X$x" = "X-L$additional_libdir"; then
7869                             haveit=yes
7870                             break
7871                           fi
7872                         done
7873                         if test -z "$haveit"; then
7874                           if test -d "$additional_libdir"; then
7875                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7876                           fi
7877                         fi
7878                       fi
7879                     fi
7880                     ;;
7881                   -R*)
7882                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7883                     if test "$enable_rpath" != no; then
7884                                                                   haveit=
7885                       for x in $rpathdirs; do
7886                         if test "X$x" = "X$dir"; then
7887                           haveit=yes
7888                           break
7889                         fi
7890                       done
7891                       if test -z "$haveit"; then
7892                         rpathdirs="$rpathdirs $dir"
7893                       fi
7894                                                                   haveit=
7895                       for x in $ltrpathdirs; do
7896                         if test "X$x" = "X$dir"; then
7897                           haveit=yes
7898                           break
7899                         fi
7900                       done
7901                       if test -z "$haveit"; then
7902                         ltrpathdirs="$ltrpathdirs $dir"
7903                       fi
7904                     fi
7905                     ;;
7906                   -l*)
7907                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7908                     ;;
7909                   *.la)
7910                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7911                     ;;
7912                   *)
7913                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7914                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7915                     ;;
7916                 esac
7917               done
7918             fi
7919           else
7920                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7921             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7922           fi
7923         fi
7924       fi
7925     done
7926   done
7927   if test "X$rpathdirs" != "X"; then
7928     if test -n "$hardcode_libdir_separator"; then
7929                         alldirs=
7930       for found_dir in $rpathdirs; do
7931         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7932       done
7933             acl_save_libdir="$libdir"
7934       libdir="$alldirs"
7935       eval flag=\"$hardcode_libdir_flag_spec\"
7936       libdir="$acl_save_libdir"
7937       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7938     else
7939             for found_dir in $rpathdirs; do
7940         acl_save_libdir="$libdir"
7941         libdir="$found_dir"
7942         eval flag=\"$hardcode_libdir_flag_spec\"
7943         libdir="$acl_save_libdir"
7944         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7945       done
7946     fi
7947   fi
7948   if test "X$ltrpathdirs" != "X"; then
7949             for found_dir in $ltrpathdirs; do
7950       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7951     done
7952   fi
7953
7954
7955
7956
7957
7958
7959
7960
7961   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7962 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
7963
7964 else
7965
7966 $as_echo "#define ptrdiff_t long" >>confdefs.h
7967
7968
7969 fi
7970
7971   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7972 stdlib.h string.h unistd.h sys/param.h
7973 do :
7974   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7976 eval as_val=\$$as_ac_Header
7977    if test "x$as_val" = x""yes; then :
7978   cat >>confdefs.h <<_ACEOF
7979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7980 _ACEOF
7981
7982 fi
7983
7984 done
7985
7986   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
7987 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7988 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7989 __fsetlocking
7990 do :
7991   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7992 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7993 eval as_val=\$$as_ac_var
7994    if test "x$as_val" = x""yes; then :
7995   cat >>confdefs.h <<_ACEOF
7996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7997 _ACEOF
7998
7999 fi
8000 done
8001
8002
8003
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8005 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8006 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8007   $as_echo_n "(cached) " >&6
8008 else
8009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h.  */
8011 #include <stdio.h>
8012 int
8013 main ()
8014 {
8015
8016 #ifndef _snprintf
8017   char *p = (char *) _snprintf;
8018 #endif
8019
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025   ac_cv_have_decl__snprintf=yes
8026 else
8027   ac_cv_have_decl__snprintf=no
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8032 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8033   if test $ac_cv_have_decl__snprintf = yes; then
8034     gt_value=1
8035   else
8036     gt_value=0
8037   fi
8038
8039 cat >>confdefs.h <<_ACEOF
8040 #define HAVE_DECL__SNPRINTF $gt_value
8041 _ACEOF
8042
8043
8044
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8046 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8047 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8048   $as_echo_n "(cached) " >&6
8049 else
8050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h.  */
8052 #include <stdio.h>
8053 int
8054 main ()
8055 {
8056
8057 #ifndef _snwprintf
8058   char *p = (char *) _snwprintf;
8059 #endif
8060
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066   ac_cv_have_decl__snwprintf=yes
8067 else
8068   ac_cv_have_decl__snwprintf=no
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 fi
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8073 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8074   if test $ac_cv_have_decl__snwprintf = yes; then
8075     gt_value=1
8076   else
8077     gt_value=0
8078   fi
8079
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_DECL__SNWPRINTF $gt_value
8082 _ACEOF
8083
8084
8085
8086
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8088 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8089 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h.  */
8094 #include <stdio.h>
8095 int
8096 main ()
8097 {
8098
8099 #ifndef feof_unlocked
8100   char *p = (char *) feof_unlocked;
8101 #endif
8102
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108   ac_cv_have_decl_feof_unlocked=yes
8109 else
8110   ac_cv_have_decl_feof_unlocked=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8115 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8116   if test $ac_cv_have_decl_feof_unlocked = yes; then
8117     gt_value=1
8118   else
8119     gt_value=0
8120   fi
8121
8122 cat >>confdefs.h <<_ACEOF
8123 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8124 _ACEOF
8125
8126
8127
8128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8129 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8130 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h.  */
8135 #include <stdio.h>
8136 int
8137 main ()
8138 {
8139
8140 #ifndef fgets_unlocked
8141   char *p = (char *) fgets_unlocked;
8142 #endif
8143
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 if ac_fn_c_try_compile "$LINENO"; then :
8149   ac_cv_have_decl_fgets_unlocked=yes
8150 else
8151   ac_cv_have_decl_fgets_unlocked=no
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8156 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8157   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8158     gt_value=1
8159   else
8160     gt_value=0
8161   fi
8162
8163 cat >>confdefs.h <<_ACEOF
8164 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8165 _ACEOF
8166
8167
8168
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8170 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8171 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8172   $as_echo_n "(cached) " >&6
8173 else
8174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h.  */
8176 #include <stdio.h>
8177 int
8178 main ()
8179 {
8180
8181 #ifndef getc_unlocked
8182   char *p = (char *) getc_unlocked;
8183 #endif
8184
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 if ac_fn_c_try_compile "$LINENO"; then :
8190   ac_cv_have_decl_getc_unlocked=yes
8191 else
8192   ac_cv_have_decl_getc_unlocked=no
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8197 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8198   if test $ac_cv_have_decl_getc_unlocked = yes; then
8199     gt_value=1
8200   else
8201     gt_value=0
8202   fi
8203
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8206 _ACEOF
8207
8208
8209
8210   case $gt_cv_func_printf_posix in
8211     *yes) HAVE_POSIX_PRINTF=1 ;;
8212     *) HAVE_POSIX_PRINTF=0 ;;
8213   esac
8214
8215   if test "$ac_cv_func_asprintf" = yes; then
8216     HAVE_ASPRINTF=1
8217   else
8218     HAVE_ASPRINTF=0
8219   fi
8220
8221   if test "$ac_cv_func_snprintf" = yes; then
8222     HAVE_SNPRINTF=1
8223   else
8224     HAVE_SNPRINTF=0
8225   fi
8226
8227   if test "$ac_cv_func_wprintf" = yes; then
8228     HAVE_WPRINTF=1
8229   else
8230     HAVE_WPRINTF=0
8231   fi
8232
8233
8234
8235
8236
8237
8238
8239           am_save_CPPFLAGS="$CPPFLAGS"
8240
8241   for element in $INCICONV; do
8242     haveit=
8243     for x in $CPPFLAGS; do
8244
8245   acl_save_prefix="$prefix"
8246   prefix="$acl_final_prefix"
8247   acl_save_exec_prefix="$exec_prefix"
8248   exec_prefix="$acl_final_exec_prefix"
8249   eval x=\"$x\"
8250   exec_prefix="$acl_save_exec_prefix"
8251   prefix="$acl_save_prefix"
8252
8253       if test "X$x" = "X$element"; then
8254         haveit=yes
8255         break
8256       fi
8257     done
8258     if test -z "$haveit"; then
8259       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8260     fi
8261   done
8262
8263
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8265 $as_echo_n "checking for iconv... " >&6; }
8266 if test "${am_cv_func_iconv+set}" = set; then :
8267   $as_echo_n "(cached) " >&6
8268 else
8269
8270     am_cv_func_iconv="no, consider installing GNU libiconv"
8271     am_cv_lib_iconv=no
8272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h.  */
8274 #include <stdlib.h>
8275 #include <iconv.h>
8276 int
8277 main ()
8278 {
8279 iconv_t cd = iconv_open("","");
8280        iconv(cd,NULL,NULL,NULL,NULL);
8281        iconv_close(cd);
8282   ;
8283   return 0;
8284 }
8285 _ACEOF
8286 if ac_fn_c_try_link "$LINENO"; then :
8287   am_cv_func_iconv=yes
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext \
8290     conftest$ac_exeext conftest.$ac_ext
8291     if test "$am_cv_func_iconv" != yes; then
8292       am_save_LIBS="$LIBS"
8293       LIBS="$LIBS $LIBICONV"
8294       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h.  */
8296 #include <stdlib.h>
8297 #include <iconv.h>
8298 int
8299 main ()
8300 {
8301 iconv_t cd = iconv_open("","");
8302          iconv(cd,NULL,NULL,NULL,NULL);
8303          iconv_close(cd);
8304   ;
8305   return 0;
8306 }
8307 _ACEOF
8308 if ac_fn_c_try_link "$LINENO"; then :
8309   am_cv_lib_iconv=yes
8310         am_cv_func_iconv=yes
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext \
8313     conftest$ac_exeext conftest.$ac_ext
8314       LIBS="$am_save_LIBS"
8315     fi
8316
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8319 $as_echo "$am_cv_func_iconv" >&6; }
8320   if test "$am_cv_func_iconv" = yes; then
8321
8322 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8323
8324   fi
8325   if test "$am_cv_lib_iconv" = yes; then
8326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8327 $as_echo_n "checking how to link with libiconv... " >&6; }
8328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8329 $as_echo "$LIBICONV" >&6; }
8330   else
8331             CPPFLAGS="$am_save_CPPFLAGS"
8332     LIBICONV=
8333     LTLIBICONV=
8334   fi
8335
8336
8337
8338   if test "$am_cv_func_iconv" = yes; then
8339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8340 $as_echo_n "checking for iconv declaration... " >&6; }
8341     if test "${am_cv_proto_iconv+set}" = set; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344
8345       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h.  */
8347
8348 #include <stdlib.h>
8349 #include <iconv.h>
8350 extern
8351 #ifdef __cplusplus
8352 "C"
8353 #endif
8354 #if defined(__STDC__) || defined(__cplusplus)
8355 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8356 #else
8357 size_t iconv();
8358 #endif
8359
8360 int
8361 main ()
8362 {
8363
8364   ;
8365   return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369   am_cv_proto_iconv_arg1=""
8370 else
8371   am_cv_proto_iconv_arg1="const"
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374       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);"
8375 fi
8376
8377     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8379          }$am_cv_proto_iconv" >&5
8380 $as_echo "${ac_t:-
8381          }$am_cv_proto_iconv" >&6; }
8382
8383 cat >>confdefs.h <<_ACEOF
8384 #define ICONV_CONST $am_cv_proto_iconv_arg1
8385 _ACEOF
8386
8387   fi
8388
8389
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8391 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8392 if test "${am_cv_langinfo_codeset+set}" = set; then :
8393   $as_echo_n "(cached) " >&6
8394 else
8395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h.  */
8397 #include <langinfo.h>
8398 int
8399 main ()
8400 {
8401 char* cs = nl_langinfo(CODESET);
8402   ;
8403   return 0;
8404 }
8405 _ACEOF
8406 if ac_fn_c_try_link "$LINENO"; then :
8407   am_cv_langinfo_codeset=yes
8408 else
8409   am_cv_langinfo_codeset=no
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext \
8412     conftest$ac_exeext conftest.$ac_ext
8413
8414 fi
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8416 $as_echo "$am_cv_langinfo_codeset" >&6; }
8417   if test $am_cv_langinfo_codeset = yes; then
8418
8419 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8420
8421   fi
8422
8423   if test $ac_cv_header_locale_h = yes; then
8424
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8426 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8427 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8428   $as_echo_n "(cached) " >&6
8429 else
8430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h.  */
8432 #include <locale.h>
8433 int
8434 main ()
8435 {
8436 return LC_MESSAGES
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 if ac_fn_c_try_link "$LINENO"; then :
8442   am_cv_val_LC_MESSAGES=yes
8443 else
8444   am_cv_val_LC_MESSAGES=no
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext \
8447     conftest$ac_exeext conftest.$ac_ext
8448 fi
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8450 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8451   if test $am_cv_val_LC_MESSAGES = yes; then
8452
8453 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8454
8455   fi
8456
8457   fi
8458
8459                       for ac_prog in bison
8460 do
8461   # Extract the first word of "$ac_prog", so it can be a program name with args.
8462 set dummy $ac_prog; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   if test -n "$INTLBISON"; then
8469   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8470 else
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474   IFS=$as_save_IFS
8475   test -z "$as_dir" && as_dir=.
8476     for ac_exec_ext in '' $ac_executable_extensions; do
8477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8478     ac_cv_prog_INTLBISON="$ac_prog"
8479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480     break 2
8481   fi
8482 done
8483   done
8484 IFS=$as_save_IFS
8485
8486 fi
8487 fi
8488 INTLBISON=$ac_cv_prog_INTLBISON
8489 if test -n "$INTLBISON"; then
8490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8491 $as_echo "$INTLBISON" >&6; }
8492 else
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494 $as_echo "no" >&6; }
8495 fi
8496
8497
8498   test -n "$INTLBISON" && break
8499 done
8500
8501   if test -z "$INTLBISON"; then
8502     ac_verc_fail=yes
8503   else
8504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8505 $as_echo_n "checking version of bison... " >&6; }
8506     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8507     case $ac_prog_version in
8508       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8509       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8510          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8511       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8512     esac
8513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8514 $as_echo "$ac_prog_version" >&6; }
8515   fi
8516   if test $ac_verc_fail = yes; then
8517     INTLBISON=:
8518   fi
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8536 $as_echo_n "checking whether NLS is requested... " >&6; }
8537     # Check whether --enable-nls was given.
8538 if test "${enable_nls+set}" = set; then :
8539   enableval=$enable_nls; USE_NLS=$enableval
8540 else
8541   USE_NLS=yes
8542 fi
8543
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8545 $as_echo "$USE_NLS" >&6; }
8546
8547
8548
8549
8550     BUILD_INCLUDED_LIBINTL=no
8551     USE_INCLUDED_LIBINTL=no
8552
8553   LIBINTL=
8554   LTLIBINTL=
8555   POSUB=
8556
8557     if test "$USE_NLS" = "yes"; then
8558     gt_use_preinstalled_gnugettext=no
8559
8560       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8561 $as_echo_n "checking whether included gettext is requested... " >&6; }
8562
8563 # Check whether --with-included-gettext was given.
8564 if test "${with_included_gettext+set}" = set; then :
8565   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8566 else
8567   nls_cv_force_use_gnu_gettext=no
8568 fi
8569
8570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8571 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8572
8573       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8574       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8575
8576
8577
8578
8579
8580
8581         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8582 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8583 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8584   $as_echo_n "(cached) " >&6
8585 else
8586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h.  */
8588 #include <libintl.h>
8589 extern int _nl_msg_cat_cntr;
8590 extern int *_nl_domain_bindings;
8591 int
8592 main ()
8593 {
8594 bindtextdomain ("", "");
8595 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 if ac_fn_c_try_link "$LINENO"; then :
8601   gt_cv_func_gnugettext1_libc=yes
8602 else
8603   gt_cv_func_gnugettext1_libc=no
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext \
8606     conftest$ac_exeext conftest.$ac_ext
8607 fi
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8609 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8610
8611         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8612
8613
8614
8615     use_additional=yes
8616
8617   acl_save_prefix="$prefix"
8618   prefix="$acl_final_prefix"
8619   acl_save_exec_prefix="$exec_prefix"
8620   exec_prefix="$acl_final_exec_prefix"
8621
8622     eval additional_includedir=\"$includedir\"
8623     eval additional_libdir=\"$libdir\"
8624
8625   exec_prefix="$acl_save_exec_prefix"
8626   prefix="$acl_save_prefix"
8627
8628
8629 # Check whether --with-libintl-prefix was given.
8630 if test "${with_libintl_prefix+set}" = set; then :
8631   withval=$with_libintl_prefix;
8632     if test "X$withval" = "Xno"; then
8633       use_additional=no
8634     else
8635       if test "X$withval" = "X"; then
8636
8637   acl_save_prefix="$prefix"
8638   prefix="$acl_final_prefix"
8639   acl_save_exec_prefix="$exec_prefix"
8640   exec_prefix="$acl_final_exec_prefix"
8641
8642           eval additional_includedir=\"$includedir\"
8643           eval additional_libdir=\"$libdir\"
8644
8645   exec_prefix="$acl_save_exec_prefix"
8646   prefix="$acl_save_prefix"
8647
8648       else
8649         additional_includedir="$withval/include"
8650         additional_libdir="$withval/lib"
8651       fi
8652     fi
8653
8654 fi
8655
8656       LIBINTL=
8657   LTLIBINTL=
8658   INCINTL=
8659   rpathdirs=
8660   ltrpathdirs=
8661   names_already_handled=
8662   names_next_round='intl '
8663   while test -n "$names_next_round"; do
8664     names_this_round="$names_next_round"
8665     names_next_round=
8666     for name in $names_this_round; do
8667       already_handled=
8668       for n in $names_already_handled; do
8669         if test "$n" = "$name"; then
8670           already_handled=yes
8671           break
8672         fi
8673       done
8674       if test -z "$already_handled"; then
8675         names_already_handled="$names_already_handled $name"
8676                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8677         eval value=\"\$HAVE_LIB$uppername\"
8678         if test -n "$value"; then
8679           if test "$value" = yes; then
8680             eval value=\"\$LIB$uppername\"
8681             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8682             eval value=\"\$LTLIB$uppername\"
8683             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8684           else
8685                                     :
8686           fi
8687         else
8688                               found_dir=
8689           found_la=
8690           found_so=
8691           found_a=
8692           if test $use_additional = yes; then
8693             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8694               found_dir="$additional_libdir"
8695               found_so="$additional_libdir/lib$name.$shlibext"
8696               if test -f "$additional_libdir/lib$name.la"; then
8697                 found_la="$additional_libdir/lib$name.la"
8698               fi
8699             else
8700               if test -f "$additional_libdir/lib$name.$libext"; then
8701                 found_dir="$additional_libdir"
8702                 found_a="$additional_libdir/lib$name.$libext"
8703                 if test -f "$additional_libdir/lib$name.la"; then
8704                   found_la="$additional_libdir/lib$name.la"
8705                 fi
8706               fi
8707             fi
8708           fi
8709           if test "X$found_dir" = "X"; then
8710             for x in $LDFLAGS $LTLIBINTL; do
8711
8712   acl_save_prefix="$prefix"
8713   prefix="$acl_final_prefix"
8714   acl_save_exec_prefix="$exec_prefix"
8715   exec_prefix="$acl_final_exec_prefix"
8716   eval x=\"$x\"
8717   exec_prefix="$acl_save_exec_prefix"
8718   prefix="$acl_save_prefix"
8719
8720               case "$x" in
8721                 -L*)
8722                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8723                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8724                     found_dir="$dir"
8725                     found_so="$dir/lib$name.$shlibext"
8726                     if test -f "$dir/lib$name.la"; then
8727                       found_la="$dir/lib$name.la"
8728                     fi
8729                   else
8730                     if test -f "$dir/lib$name.$libext"; then
8731                       found_dir="$dir"
8732                       found_a="$dir/lib$name.$libext"
8733                       if test -f "$dir/lib$name.la"; then
8734                         found_la="$dir/lib$name.la"
8735                       fi
8736                     fi
8737                   fi
8738                   ;;
8739               esac
8740               if test "X$found_dir" != "X"; then
8741                 break
8742               fi
8743             done
8744           fi
8745           if test "X$found_dir" != "X"; then
8746                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8747             if test "X$found_so" != "X"; then
8748                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8749                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8750               else
8751                                                                                 haveit=
8752                 for x in $ltrpathdirs; do
8753                   if test "X$x" = "X$found_dir"; then
8754                     haveit=yes
8755                     break
8756                   fi
8757                 done
8758                 if test -z "$haveit"; then
8759                   ltrpathdirs="$ltrpathdirs $found_dir"
8760                 fi
8761                                 if test "$hardcode_direct" = yes; then
8762                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8763                 else
8764                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8765                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8766                                                             haveit=
8767                     for x in $rpathdirs; do
8768                       if test "X$x" = "X$found_dir"; then
8769                         haveit=yes
8770                         break
8771                       fi
8772                     done
8773                     if test -z "$haveit"; then
8774                       rpathdirs="$rpathdirs $found_dir"
8775                     fi
8776                   else
8777                                                                                 haveit=
8778                     for x in $LDFLAGS $LIBINTL; do
8779
8780   acl_save_prefix="$prefix"
8781   prefix="$acl_final_prefix"
8782   acl_save_exec_prefix="$exec_prefix"
8783   exec_prefix="$acl_final_exec_prefix"
8784   eval x=\"$x\"
8785   exec_prefix="$acl_save_exec_prefix"
8786   prefix="$acl_save_prefix"
8787
8788                       if test "X$x" = "X-L$found_dir"; then
8789                         haveit=yes
8790                         break
8791                       fi
8792                     done
8793                     if test -z "$haveit"; then
8794                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8795                     fi
8796                     if test "$hardcode_minus_L" != no; then
8797                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8798                     else
8799                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8800                     fi
8801                   fi
8802                 fi
8803               fi
8804             else
8805               if test "X$found_a" != "X"; then
8806                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8807               else
8808                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8809               fi
8810             fi
8811                         additional_includedir=
8812             case "$found_dir" in
8813               */lib | */lib/)
8814                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8815                 additional_includedir="$basedir/include"
8816                 ;;
8817             esac
8818             if test "X$additional_includedir" != "X"; then
8819                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8820                 haveit=
8821                 if test "X$additional_includedir" = "X/usr/local/include"; then
8822                   if test -n "$GCC"; then
8823                     case $host_os in
8824                       linux*) haveit=yes;;
8825                     esac
8826                   fi
8827                 fi
8828                 if test -z "$haveit"; then
8829                   for x in $CPPFLAGS $INCINTL; do
8830
8831   acl_save_prefix="$prefix"
8832   prefix="$acl_final_prefix"
8833   acl_save_exec_prefix="$exec_prefix"
8834   exec_prefix="$acl_final_exec_prefix"
8835   eval x=\"$x\"
8836   exec_prefix="$acl_save_exec_prefix"
8837   prefix="$acl_save_prefix"
8838
8839                     if test "X$x" = "X-I$additional_includedir"; then
8840                       haveit=yes
8841                       break
8842                     fi
8843                   done
8844                   if test -z "$haveit"; then
8845                     if test -d "$additional_includedir"; then
8846                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8847                     fi
8848                   fi
8849                 fi
8850               fi
8851             fi
8852                         if test -n "$found_la"; then
8853                                                         save_libdir="$libdir"
8854               case "$found_la" in
8855                 */* | *\\*) . "$found_la" ;;
8856                 *) . "./$found_la" ;;
8857               esac
8858               libdir="$save_libdir"
8859                             for dep in $dependency_libs; do
8860                 case "$dep" in
8861                   -L*)
8862                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8863                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8864                       haveit=
8865                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8866                         if test -n "$GCC"; then
8867                           case $host_os in
8868                             linux*) haveit=yes;;
8869                           esac
8870                         fi
8871                       fi
8872                       if test -z "$haveit"; then
8873                         haveit=
8874                         for x in $LDFLAGS $LIBINTL; do
8875
8876   acl_save_prefix="$prefix"
8877   prefix="$acl_final_prefix"
8878   acl_save_exec_prefix="$exec_prefix"
8879   exec_prefix="$acl_final_exec_prefix"
8880   eval x=\"$x\"
8881   exec_prefix="$acl_save_exec_prefix"
8882   prefix="$acl_save_prefix"
8883
8884                           if test "X$x" = "X-L$additional_libdir"; then
8885                             haveit=yes
8886                             break
8887                           fi
8888                         done
8889                         if test -z "$haveit"; then
8890                           if test -d "$additional_libdir"; then
8891                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8892                           fi
8893                         fi
8894                         haveit=
8895                         for x in $LDFLAGS $LTLIBINTL; do
8896
8897   acl_save_prefix="$prefix"
8898   prefix="$acl_final_prefix"
8899   acl_save_exec_prefix="$exec_prefix"
8900   exec_prefix="$acl_final_exec_prefix"
8901   eval x=\"$x\"
8902   exec_prefix="$acl_save_exec_prefix"
8903   prefix="$acl_save_prefix"
8904
8905                           if test "X$x" = "X-L$additional_libdir"; then
8906                             haveit=yes
8907                             break
8908                           fi
8909                         done
8910                         if test -z "$haveit"; then
8911                           if test -d "$additional_libdir"; then
8912                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8913                           fi
8914                         fi
8915                       fi
8916                     fi
8917                     ;;
8918                   -R*)
8919                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8920                     if test "$enable_rpath" != no; then
8921                                                                   haveit=
8922                       for x in $rpathdirs; do
8923                         if test "X$x" = "X$dir"; then
8924                           haveit=yes
8925                           break
8926                         fi
8927                       done
8928                       if test -z "$haveit"; then
8929                         rpathdirs="$rpathdirs $dir"
8930                       fi
8931                                                                   haveit=
8932                       for x in $ltrpathdirs; do
8933                         if test "X$x" = "X$dir"; then
8934                           haveit=yes
8935                           break
8936                         fi
8937                       done
8938                       if test -z "$haveit"; then
8939                         ltrpathdirs="$ltrpathdirs $dir"
8940                       fi
8941                     fi
8942                     ;;
8943                   -l*)
8944                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8945                     ;;
8946                   *.la)
8947                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8948                     ;;
8949                   *)
8950                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8951                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8952                     ;;
8953                 esac
8954               done
8955             fi
8956           else
8957                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8958             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8959           fi
8960         fi
8961       fi
8962     done
8963   done
8964   if test "X$rpathdirs" != "X"; then
8965     if test -n "$hardcode_libdir_separator"; then
8966                         alldirs=
8967       for found_dir in $rpathdirs; do
8968         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8969       done
8970             acl_save_libdir="$libdir"
8971       libdir="$alldirs"
8972       eval flag=\"$hardcode_libdir_flag_spec\"
8973       libdir="$acl_save_libdir"
8974       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8975     else
8976             for found_dir in $rpathdirs; do
8977         acl_save_libdir="$libdir"
8978         libdir="$found_dir"
8979         eval flag=\"$hardcode_libdir_flag_spec\"
8980         libdir="$acl_save_libdir"
8981         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8982       done
8983     fi
8984   fi
8985   if test "X$ltrpathdirs" != "X"; then
8986             for found_dir in $ltrpathdirs; do
8987       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8988     done
8989   fi
8990
8991           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8992 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8993 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   gt_save_CPPFLAGS="$CPPFLAGS"
8997             CPPFLAGS="$CPPFLAGS $INCINTL"
8998             gt_save_LIBS="$LIBS"
8999             LIBS="$LIBS $LIBINTL"
9000                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h.  */
9002 #include <libintl.h>
9003 extern int _nl_msg_cat_cntr;
9004 extern
9005 #ifdef __cplusplus
9006 "C"
9007 #endif
9008 const char *_nl_expand_alias ();
9009 int
9010 main ()
9011 {
9012 bindtextdomain ("", "");
9013 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9014   ;
9015   return 0;
9016 }
9017 _ACEOF
9018 if ac_fn_c_try_link "$LINENO"; then :
9019   gt_cv_func_gnugettext1_libintl=yes
9020 else
9021   gt_cv_func_gnugettext1_libintl=no
9022 fi
9023 rm -f core conftest.err conftest.$ac_objext \
9024     conftest$ac_exeext conftest.$ac_ext
9025                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9026               LIBS="$LIBS $LIBICONV"
9027               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h.  */
9029 #include <libintl.h>
9030 extern int _nl_msg_cat_cntr;
9031 extern
9032 #ifdef __cplusplus
9033 "C"
9034 #endif
9035 const char *_nl_expand_alias ();
9036 int
9037 main ()
9038 {
9039 bindtextdomain ("", "");
9040 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9041   ;
9042   return 0;
9043 }
9044 _ACEOF
9045 if ac_fn_c_try_link "$LINENO"; then :
9046   LIBINTL="$LIBINTL $LIBICONV"
9047                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9048                 gt_cv_func_gnugettext1_libintl=yes
9049
9050 fi
9051 rm -f core conftest.err conftest.$ac_objext \
9052     conftest$ac_exeext conftest.$ac_ext
9053             fi
9054             CPPFLAGS="$gt_save_CPPFLAGS"
9055             LIBS="$gt_save_LIBS"
9056 fi
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9058 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9059         fi
9060
9061                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9062            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9063                 && test "$PACKAGE" != gettext-runtime \
9064                 && test "$PACKAGE" != gettext-tools; }; then
9065           gt_use_preinstalled_gnugettext=yes
9066         else
9067                     LIBINTL=
9068           LTLIBINTL=
9069           INCINTL=
9070         fi
9071
9072
9073         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9074                               nls_cv_use_gnu_gettext=yes
9075         fi
9076       fi
9077
9078       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9079                 BUILD_INCLUDED_LIBINTL=yes
9080         USE_INCLUDED_LIBINTL=yes
9081         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9082         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9083         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9084       fi
9085
9086       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9087          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9088                 CATOBJEXT=.gmo
9089       fi
9090
9091
9092     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9093        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9094
9095 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9096
9097     else
9098       USE_NLS=no
9099     fi
9100   fi
9101
9102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9103 $as_echo_n "checking whether to use NLS... " >&6; }
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9105 $as_echo "$USE_NLS" >&6; }
9106   if test "$USE_NLS" = "yes"; then
9107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9108 $as_echo_n "checking where the gettext function comes from... " >&6; }
9109     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9110       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9111         gt_source="external libintl"
9112       else
9113         gt_source="libc"
9114       fi
9115     else
9116       gt_source="included intl directory"
9117     fi
9118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9119 $as_echo "$gt_source" >&6; }
9120   fi
9121
9122   if test "$USE_NLS" = "yes"; then
9123
9124     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9125       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9126         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9127 $as_echo_n "checking how to link with libintl... " >&6; }
9128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9129 $as_echo "$LIBINTL" >&6; }
9130
9131   for element in $INCINTL; do
9132     haveit=
9133     for x in $CPPFLAGS; do
9134
9135   acl_save_prefix="$prefix"
9136   prefix="$acl_final_prefix"
9137   acl_save_exec_prefix="$exec_prefix"
9138   exec_prefix="$acl_final_exec_prefix"
9139   eval x=\"$x\"
9140   exec_prefix="$acl_save_exec_prefix"
9141   prefix="$acl_save_prefix"
9142
9143       if test "X$x" = "X$element"; then
9144         haveit=yes
9145         break
9146       fi
9147     done
9148     if test -z "$haveit"; then
9149       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9150     fi
9151   done
9152
9153       fi
9154
9155
9156 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9157
9158
9159 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9160
9161     fi
9162
9163         POSUB=po
9164   fi
9165
9166
9167             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9168       BUILD_INCLUDED_LIBINTL=yes
9169     fi
9170
9171
9172
9173
9174
9175         nls_cv_header_intl=
9176     nls_cv_header_libgt=
9177
9178         DATADIRNAME=share
9179
9180
9181         INSTOBJEXT=.mo
9182
9183
9184         GENCAT=gencat
9185
9186
9187         if test "$USE_INCLUDED_LIBINTL" = yes; then
9188       INTLOBJS="\$(GETTOBJS)"
9189     fi
9190
9191
9192         INTL_LIBTOOL_SUFFIX_PREFIX=
9193
9194
9195
9196     INTLLIBS="$LIBINTL"
9197
9198
9199
9200
9201
9202
9203
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9206 set x ${MAKE-make}
9207 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9209   $as_echo_n "(cached) " >&6
9210 else
9211   cat >conftest.make <<\_ACEOF
9212 SHELL = /bin/sh
9213 all:
9214         @echo '@@@%%%=$(MAKE)=@@@%%%'
9215 _ACEOF
9216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9218   *@@@%%%=?*=@@@%%%*)
9219     eval ac_cv_prog_make_${ac_make}_set=yes;;
9220   *)
9221     eval ac_cv_prog_make_${ac_make}_set=no;;
9222 esac
9223 rm -f conftest.make
9224 fi
9225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9227 $as_echo "yes" >&6; }
9228   SET_MAKE=
9229 else
9230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232   SET_MAKE="MAKE=${MAKE-make}"
9233 fi
9234
9235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9236 $as_echo_n "checking for GNU make... " >&6; }
9237 if test "${_cv_gnu_make_command+set}" = set; then :
9238   $as_echo_n "(cached) " >&6
9239 else
9240   _cv_gnu_make_command='' ;
9241                 for a in "$MAKE" make gmake gnumake ; do
9242                         if test -z "$a" ; then continue ; fi ;
9243                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9244                                 _cv_gnu_make_command=$a ;
9245                                 break;
9246                         fi
9247                 done ;
9248
9249 fi
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9251 $as_echo "$_cv_gnu_make_command" >&6; } ;
9252         if test  "x$_cv_gnu_make_command" != "x"  ; then
9253                 ifGNUmake='' ;
9254                 ifNotGNUmake='#' ;
9255         else
9256                 ifGNUmake='#' ;
9257                 ifNotGNUmake='' ;
9258                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9259 $as_echo "\"Not found\"" >&6; };
9260         fi
9261
9262
9263
9264 # Extract the first word of "ln", so it can be a program name with args.
9265 set dummy ln; ac_word=$2
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9267 $as_echo_n "checking for $ac_word... " >&6; }
9268 if test "${ac_cv_path_LN+set}" = set; then :
9269   $as_echo_n "(cached) " >&6
9270 else
9271   case $LN in
9272   [\\/]* | ?:[\\/]*)
9273   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9274   ;;
9275   *)
9276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9278 do
9279   IFS=$as_save_IFS
9280   test -z "$as_dir" && as_dir=.
9281     for ac_exec_ext in '' $ac_executable_extensions; do
9282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9283     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285     break 2
9286   fi
9287 done
9288   done
9289 IFS=$as_save_IFS
9290
9291   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9292   ;;
9293 esac
9294 fi
9295 LN=$ac_cv_path_LN
9296 if test -n "$LN"; then
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9298 $as_echo "$LN" >&6; }
9299 else
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9302 fi
9303
9304
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9306 $as_echo_n "checking whether ln -s works... " >&6; }
9307 LN_S=$as_ln_s
9308 if test "$LN_S" = "ln -s"; then
9309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9310 $as_echo "yes" >&6; }
9311 else
9312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9313 $as_echo "no, using $LN_S" >&6; }
9314 fi
9315
9316 # Extract the first word of "mv", so it can be a program name with args.
9317 set dummy mv; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if test "${ac_cv_path_MV+set}" = set; then :
9321   $as_echo_n "(cached) " >&6
9322 else
9323   case $MV in
9324   [\\/]* | ?:[\\/]*)
9325   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9326   ;;
9327   *)
9328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in $PATH
9330 do
9331   IFS=$as_save_IFS
9332   test -z "$as_dir" && as_dir=.
9333     for ac_exec_ext in '' $ac_executable_extensions; do
9334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9335     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337     break 2
9338   fi
9339 done
9340   done
9341 IFS=$as_save_IFS
9342
9343   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9344   ;;
9345 esac
9346 fi
9347 MV=$ac_cv_path_MV
9348 if test -n "$MV"; then
9349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9350 $as_echo "$MV" >&6; }
9351 else
9352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9354 fi
9355
9356
9357 # Extract the first word of "cp", so it can be a program name with args.
9358 set dummy cp; ac_word=$2
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if test "${ac_cv_path_CP+set}" = set; then :
9362   $as_echo_n "(cached) " >&6
9363 else
9364   case $CP in
9365   [\\/]* | ?:[\\/]*)
9366   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9367   ;;
9368   *)
9369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370 for as_dir in $PATH
9371 do
9372   IFS=$as_save_IFS
9373   test -z "$as_dir" && as_dir=.
9374     for ac_exec_ext in '' $ac_executable_extensions; do
9375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378     break 2
9379   fi
9380 done
9381   done
9382 IFS=$as_save_IFS
9383
9384   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9385   ;;
9386 esac
9387 fi
9388 CP=$ac_cv_path_CP
9389 if test -n "$CP"; then
9390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9391 $as_echo "$CP" >&6; }
9392 else
9393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9395 fi
9396
9397
9398 # Extract the first word of "rm", so it can be a program name with args.
9399 set dummy rm; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if test "${ac_cv_path_RM+set}" = set; then :
9403   $as_echo_n "(cached) " >&6
9404 else
9405   case $RM in
9406   [\\/]* | ?:[\\/]*)
9407   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9408   ;;
9409   *)
9410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9412 do
9413   IFS=$as_save_IFS
9414   test -z "$as_dir" && as_dir=.
9415     for ac_exec_ext in '' $ac_executable_extensions; do
9416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9417     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419     break 2
9420   fi
9421 done
9422   done
9423 IFS=$as_save_IFS
9424
9425   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9426   ;;
9427 esac
9428 fi
9429 RM=$ac_cv_path_RM
9430 if test -n "$RM"; then
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9432 $as_echo "$RM" >&6; }
9433 else
9434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9436 fi
9437
9438
9439 # Extract the first word of "chmod", so it can be a program name with args.
9440 set dummy chmod; ac_word=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if test "${ac_cv_path_CHMOD+set}" = set; then :
9444   $as_echo_n "(cached) " >&6
9445 else
9446   case $CHMOD in
9447   [\\/]* | ?:[\\/]*)
9448   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9449   ;;
9450   *)
9451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452 for as_dir in $PATH
9453 do
9454   IFS=$as_save_IFS
9455   test -z "$as_dir" && as_dir=.
9456     for ac_exec_ext in '' $ac_executable_extensions; do
9457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9458     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9460     break 2
9461   fi
9462 done
9463   done
9464 IFS=$as_save_IFS
9465
9466   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9467   ;;
9468 esac
9469 fi
9470 CHMOD=$ac_cv_path_CHMOD
9471 if test -n "$CHMOD"; then
9472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9473 $as_echo "$CHMOD" >&6; }
9474 else
9475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9477 fi
9478
9479
9480 for ac_prog in gawk mawk nawk awk
9481 do
9482   # Extract the first word of "$ac_prog", so it can be a program name with args.
9483 set dummy $ac_prog; ac_word=$2
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485 $as_echo_n "checking for $ac_word... " >&6; }
9486 if test "${ac_cv_prog_AWK+set}" = set; then :
9487   $as_echo_n "(cached) " >&6
9488 else
9489   if test -n "$AWK"; then
9490   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9491 else
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 for as_dir in $PATH
9494 do
9495   IFS=$as_save_IFS
9496   test -z "$as_dir" && as_dir=.
9497     for ac_exec_ext in '' $ac_executable_extensions; do
9498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9499     ac_cv_prog_AWK="$ac_prog"
9500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501     break 2
9502   fi
9503 done
9504   done
9505 IFS=$as_save_IFS
9506
9507 fi
9508 fi
9509 AWK=$ac_cv_prog_AWK
9510 if test -n "$AWK"; then
9511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9512 $as_echo "$AWK" >&6; }
9513 else
9514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; }
9516 fi
9517
9518
9519   test -n "$AWK" && break
9520 done
9521
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9523 $as_echo_n "checking for egrep... " >&6; }
9524 if test "${ac_cv_path_EGREP+set}" = set; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9528    then ac_cv_path_EGREP="$GREP -E"
9529    else
9530      if test -z "$EGREP"; then
9531   ac_path_EGREP_found=false
9532   # Loop through the user's path and test for each of PROGNAME-LIST
9533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9535 do
9536   IFS=$as_save_IFS
9537   test -z "$as_dir" && as_dir=.
9538     for ac_prog in egrep; do
9539     for ac_exec_ext in '' $ac_executable_extensions; do
9540       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9541       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9542 # Check for GNU ac_path_EGREP and select it if it is found.
9543   # Check for GNU $ac_path_EGREP
9544 case `"$ac_path_EGREP" --version 2>&1` in
9545 *GNU*)
9546   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9547 *)
9548   ac_count=0
9549   $as_echo_n 0123456789 >"conftest.in"
9550   while :
9551   do
9552     cat "conftest.in" "conftest.in" >"conftest.tmp"
9553     mv "conftest.tmp" "conftest.in"
9554     cp "conftest.in" "conftest.nl"
9555     $as_echo 'EGREP' >> "conftest.nl"
9556     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9557     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9558     as_fn_arith $ac_count + 1 && ac_count=$as_val
9559     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9560       # Best one so far, save it but keep looking for a better one
9561       ac_cv_path_EGREP="$ac_path_EGREP"
9562       ac_path_EGREP_max=$ac_count
9563     fi
9564     # 10*(2^10) chars as input seems more than enough
9565     test $ac_count -gt 10 && break
9566   done
9567   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9568 esac
9569
9570       $ac_path_EGREP_found && break 3
9571     done
9572   done
9573   done
9574 IFS=$as_save_IFS
9575   if test -z "$ac_cv_path_EGREP"; then
9576     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9577   fi
9578 else
9579   ac_cv_path_EGREP=$EGREP
9580 fi
9581
9582    fi
9583 fi
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9585 $as_echo "$ac_cv_path_EGREP" >&6; }
9586  EGREP="$ac_cv_path_EGREP"
9587
9588
9589 # Extract the first word of "sed", so it can be a program name with args.
9590 set dummy sed; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if test "${ac_cv_path_SED+set}" = set; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   case $SED in
9597   [\\/]* | ?:[\\/]*)
9598   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9599   ;;
9600   *)
9601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9603 do
9604   IFS=$as_save_IFS
9605   test -z "$as_dir" && as_dir=.
9606     for ac_exec_ext in '' $ac_executable_extensions; do
9607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610     break 2
9611   fi
9612 done
9613   done
9614 IFS=$as_save_IFS
9615
9616   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9617   ;;
9618 esac
9619 fi
9620 SED=$ac_cv_path_SED
9621 if test -n "$SED"; then
9622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9623 $as_echo "$SED" >&6; }
9624 else
9625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9627 fi
9628
9629
9630 # Extract the first word of "perl", so it can be a program name with args.
9631 set dummy perl; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if test "${ac_cv_path_PERL+set}" = set; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   case $PERL in
9638   [\\/]* | ?:[\\/]*)
9639   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9640   ;;
9641   *)
9642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 for as_dir in $PATH
9644 do
9645   IFS=$as_save_IFS
9646   test -z "$as_dir" && as_dir=.
9647     for ac_exec_ext in '' $ac_executable_extensions; do
9648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9649     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651     break 2
9652   fi
9653 done
9654   done
9655 IFS=$as_save_IFS
9656
9657   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9658   ;;
9659 esac
9660 fi
9661 PERL=$ac_cv_path_PERL
9662 if test -n "$PERL"; then
9663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9664 $as_echo "$PERL" >&6; }
9665 else
9666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9668 fi
9669
9670
9671 # Extract the first word of "ldconfig", so it can be a program name with args.
9672 set dummy ldconfig; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9676   $as_echo_n "(cached) " >&6
9677 else
9678   case $LDCONFIG in
9679   [\\/]* | ?:[\\/]*)
9680   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9681   ;;
9682   *)
9683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 for as_dir in $PATH
9685 do
9686   IFS=$as_save_IFS
9687   test -z "$as_dir" && as_dir=.
9688     for ac_exec_ext in '' $ac_executable_extensions; do
9689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9690     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692     break 2
9693   fi
9694 done
9695   done
9696 IFS=$as_save_IFS
9697
9698   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9699   ;;
9700 esac
9701 fi
9702 LDCONFIG=$ac_cv_path_LDCONFIG
9703 if test -n "$LDCONFIG"; then
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9705 $as_echo "$LDCONFIG" >&6; }
9706 else
9707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9709 fi
9710
9711
9712 if test -n "$ac_tool_prefix"; then
9713   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9714 set dummy ${ac_tool_prefix}ar; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if test "${ac_cv_prog_AR+set}" = set; then :
9718   $as_echo_n "(cached) " >&6
9719 else
9720   if test -n "$AR"; then
9721   ac_cv_prog_AR="$AR" # Let the user override the test.
9722 else
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9725 do
9726   IFS=$as_save_IFS
9727   test -z "$as_dir" && as_dir=.
9728     for ac_exec_ext in '' $ac_executable_extensions; do
9729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730     ac_cv_prog_AR="${ac_tool_prefix}ar"
9731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732     break 2
9733   fi
9734 done
9735   done
9736 IFS=$as_save_IFS
9737
9738 fi
9739 fi
9740 AR=$ac_cv_prog_AR
9741 if test -n "$AR"; then
9742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9743 $as_echo "$AR" >&6; }
9744 else
9745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9747 fi
9748
9749
9750 fi
9751 if test -z "$ac_cv_prog_AR"; then
9752   ac_ct_AR=$AR
9753   # Extract the first word of "ar", so it can be a program name with args.
9754 set dummy ar; ac_word=$2
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756 $as_echo_n "checking for $ac_word... " >&6; }
9757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9758   $as_echo_n "(cached) " >&6
9759 else
9760   if test -n "$ac_ct_AR"; then
9761   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9762 else
9763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764 for as_dir in $PATH
9765 do
9766   IFS=$as_save_IFS
9767   test -z "$as_dir" && as_dir=.
9768     for ac_exec_ext in '' $ac_executable_extensions; do
9769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9770     ac_cv_prog_ac_ct_AR="ar"
9771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9772     break 2
9773   fi
9774 done
9775   done
9776 IFS=$as_save_IFS
9777
9778 fi
9779 fi
9780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9781 if test -n "$ac_ct_AR"; then
9782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9783 $as_echo "$ac_ct_AR" >&6; }
9784 else
9785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 $as_echo "no" >&6; }
9787 fi
9788
9789   if test "x$ac_ct_AR" = x; then
9790     AR="ar"
9791   else
9792     case $cross_compiling:$ac_tool_warned in
9793 yes:)
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9796 ac_tool_warned=yes ;;
9797 esac
9798     AR=$ac_ct_AR
9799   fi
9800 else
9801   AR="$ac_cv_prog_AR"
9802 fi
9803
9804 if test -n "$ac_tool_prefix"; then
9805   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9806 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   if test -n "$RANLIB"; then
9813   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9814 else
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 for as_dir in $PATH
9817 do
9818   IFS=$as_save_IFS
9819   test -z "$as_dir" && as_dir=.
9820     for ac_exec_ext in '' $ac_executable_extensions; do
9821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9822     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824     break 2
9825   fi
9826 done
9827   done
9828 IFS=$as_save_IFS
9829
9830 fi
9831 fi
9832 RANLIB=$ac_cv_prog_RANLIB
9833 if test -n "$RANLIB"; then
9834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9835 $as_echo "$RANLIB" >&6; }
9836 else
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9839 fi
9840
9841
9842 fi
9843 if test -z "$ac_cv_prog_RANLIB"; then
9844   ac_ct_RANLIB=$RANLIB
9845   # Extract the first word of "ranlib", so it can be a program name with args.
9846 set dummy ranlib; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   if test -n "$ac_ct_RANLIB"; then
9853   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9854 else
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9857 do
9858   IFS=$as_save_IFS
9859   test -z "$as_dir" && as_dir=.
9860     for ac_exec_ext in '' $ac_executable_extensions; do
9861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9862     ac_cv_prog_ac_ct_RANLIB="ranlib"
9863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864     break 2
9865   fi
9866 done
9867   done
9868 IFS=$as_save_IFS
9869
9870 fi
9871 fi
9872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9873 if test -n "$ac_ct_RANLIB"; then
9874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9875 $as_echo "$ac_ct_RANLIB" >&6; }
9876 else
9877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9879 fi
9880
9881   if test "x$ac_ct_RANLIB" = x; then
9882     RANLIB=":"
9883   else
9884     case $cross_compiling:$ac_tool_warned in
9885 yes:)
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9888 ac_tool_warned=yes ;;
9889 esac
9890     RANLIB=$ac_ct_RANLIB
9891   fi
9892 else
9893   RANLIB="$ac_cv_prog_RANLIB"
9894 fi
9895
9896 if test -n "$ac_tool_prefix"; then
9897   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9898 set dummy ${ac_tool_prefix}strip; ac_word=$2
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900 $as_echo_n "checking for $ac_word... " >&6; }
9901 if test "${ac_cv_prog_STRIP+set}" = set; then :
9902   $as_echo_n "(cached) " >&6
9903 else
9904   if test -n "$STRIP"; then
9905   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9906 else
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in $PATH
9909 do
9910   IFS=$as_save_IFS
9911   test -z "$as_dir" && as_dir=.
9912     for ac_exec_ext in '' $ac_executable_extensions; do
9913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9914     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916     break 2
9917   fi
9918 done
9919   done
9920 IFS=$as_save_IFS
9921
9922 fi
9923 fi
9924 STRIP=$ac_cv_prog_STRIP
9925 if test -n "$STRIP"; then
9926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9927 $as_echo "$STRIP" >&6; }
9928 else
9929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9931 fi
9932
9933
9934 fi
9935 if test -z "$ac_cv_prog_STRIP"; then
9936   ac_ct_STRIP=$STRIP
9937   # Extract the first word of "strip", so it can be a program name with args.
9938 set dummy strip; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9942   $as_echo_n "(cached) " >&6
9943 else
9944   if test -n "$ac_ct_STRIP"; then
9945   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9946 else
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9949 do
9950   IFS=$as_save_IFS
9951   test -z "$as_dir" && as_dir=.
9952     for ac_exec_ext in '' $ac_executable_extensions; do
9953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9954     ac_cv_prog_ac_ct_STRIP="strip"
9955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956     break 2
9957   fi
9958 done
9959   done
9960 IFS=$as_save_IFS
9961
9962 fi
9963 fi
9964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9965 if test -n "$ac_ct_STRIP"; then
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9967 $as_echo "$ac_ct_STRIP" >&6; }
9968 else
9969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9971 fi
9972
9973   if test "x$ac_ct_STRIP" = x; then
9974     STRIP=":"
9975   else
9976     case $cross_compiling:$ac_tool_warned in
9977 yes:)
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9980 ac_tool_warned=yes ;;
9981 esac
9982     STRIP=$ac_ct_STRIP
9983   fi
9984 else
9985   STRIP="$ac_cv_prog_STRIP"
9986 fi
9987
9988 # Extract the first word of "makeinfo", so it can be a program name with args.
9989 set dummy makeinfo; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   if test -n "$MAKEINFO"; then
9996   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9997 else
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 for as_dir in $PATH
10000 do
10001   IFS=$as_save_IFS
10002   test -z "$as_dir" && as_dir=.
10003     for ac_exec_ext in '' $ac_executable_extensions; do
10004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10005     ac_cv_prog_MAKEINFO="makeinfo"
10006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007     break 2
10008   fi
10009 done
10010   done
10011 IFS=$as_save_IFS
10012
10013 fi
10014 fi
10015 MAKEINFO=$ac_cv_prog_MAKEINFO
10016 if test -n "$MAKEINFO"; then
10017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10018 $as_echo "$MAKEINFO" >&6; }
10019 else
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10022 fi
10023
10024
10025 if test "_$MAKEINFO" = "_"; then
10026     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10027 else
10028     case "$MAKEINFO" in
10029       */missing.*)
10030         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10031 *** Makeinfo is missing. Info documentation will not be built." >&5
10032 $as_echo "$as_me: WARNING:
10033 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10034         ;;
10035       *)
10036         ;;
10037     esac
10038 fi
10039
10040
10041 # See if we need a separate native compiler.
10042 if test $cross_compiling = no; then
10043   BUILD_CC="$CC"
10044
10045 else
10046   for ac_prog in gcc cc
10047 do
10048   # Extract the first word of "$ac_prog", so it can be a program name with args.
10049 set dummy $ac_prog; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10053   $as_echo_n "(cached) " >&6
10054 else
10055   if test -n "$BUILD_CC"; then
10056   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10057 else
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061   IFS=$as_save_IFS
10062   test -z "$as_dir" && as_dir=.
10063     for ac_exec_ext in '' $ac_executable_extensions; do
10064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065     ac_cv_prog_BUILD_CC="$ac_prog"
10066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067     break 2
10068   fi
10069 done
10070   done
10071 IFS=$as_save_IFS
10072
10073 fi
10074 fi
10075 BUILD_CC=$ac_cv_prog_BUILD_CC
10076 if test -n "$BUILD_CC"; then
10077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10078 $as_echo "$BUILD_CC" >&6; }
10079 else
10080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 $as_echo "no" >&6; }
10082 fi
10083
10084
10085   test -n "$BUILD_CC" && break
10086 done
10087
10088 fi
10089 for ac_header in dirent.h errno.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/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10090 do :
10091   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10092 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10093 eval as_val=\$$as_ac_Header
10094    if test "x$as_val" = x""yes; then :
10095   cat >>confdefs.h <<_ACEOF
10096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10097 _ACEOF
10098
10099 fi
10100
10101 done
10102
10103 for ac_header in sys/disk.h sys/mount.h
10104 do :
10105   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10107 #if HAVE_SYS_QUEUE_H
10108 #include <sys/queue.h>
10109 #endif
10110
10111 "
10112 eval as_val=\$$as_ac_Header
10113    if test "x$as_val" = x""yes; then :
10114   cat >>confdefs.h <<_ACEOF
10115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10116 _ACEOF
10117
10118 fi
10119
10120 done
10121
10122 for ac_header in net/if.h
10123 do :
10124   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10125 #if HAVE_SYS_TYPES_H
10126 #include <sys/types.h>
10127 #endif
10128 #if HAVE_SYS_SOCKET
10129 #include <sys/socket.h>
10130 #endif
10131
10132 "
10133 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10134   cat >>confdefs.h <<_ACEOF
10135 #define HAVE_NET_IF_H 1
10136 _ACEOF
10137
10138 fi
10139
10140 done
10141
10142 for ac_func in vprintf
10143 do :
10144   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10145 if test "x$ac_cv_func_vprintf" = x""yes; then :
10146   cat >>confdefs.h <<_ACEOF
10147 #define HAVE_VPRINTF 1
10148 _ACEOF
10149
10150 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10151 if test "x$ac_cv_func__doprnt" = x""yes; then :
10152
10153 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10154
10155 fi
10156
10157 fi
10158 done
10159
10160
10161 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10162 "
10163 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10164   $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10165
10166 fi
10167
10168 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10169 "
10170 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10171   $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10172
10173 fi
10174
10175 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10176 "
10177 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10178   $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10179
10180 fi
10181
10182 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10183                  #define _LARGEFILE64_SOURCE
10184                  #include <unistd.h>
10185 "
10186 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10187   $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10188
10189 fi
10190
10191 # The cast to long int works around a bug in the HP C Compiler
10192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10194 # This bug is HP SR number 8606223364.
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10196 $as_echo_n "checking size of short... " >&6; }
10197 if test "${ac_cv_sizeof_short+set}" = set; then :
10198   $as_echo_n "(cached) " >&6
10199 else
10200   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10201
10202 else
10203   if test "$ac_cv_type_short" = yes; then
10204      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10206 { as_fn_set_status 77
10207 as_fn_error "cannot compute sizeof (short)
10208 See \`config.log' for more details." "$LINENO" 5; }; }
10209    else
10210      ac_cv_sizeof_short=0
10211    fi
10212 fi
10213
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10216 $as_echo "$ac_cv_sizeof_short" >&6; }
10217
10218
10219
10220 cat >>confdefs.h <<_ACEOF
10221 #define SIZEOF_SHORT $ac_cv_sizeof_short
10222 _ACEOF
10223
10224
10225 # The cast to long int works around a bug in the HP C Compiler
10226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10228 # This bug is HP SR number 8606223364.
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10230 $as_echo_n "checking size of int... " >&6; }
10231 if test "${ac_cv_sizeof_int+set}" = set; then :
10232   $as_echo_n "(cached) " >&6
10233 else
10234   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10235
10236 else
10237   if test "$ac_cv_type_int" = yes; then
10238      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10240 { as_fn_set_status 77
10241 as_fn_error "cannot compute sizeof (int)
10242 See \`config.log' for more details." "$LINENO" 5; }; }
10243    else
10244      ac_cv_sizeof_int=0
10245    fi
10246 fi
10247
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10250 $as_echo "$ac_cv_sizeof_int" >&6; }
10251
10252
10253
10254 cat >>confdefs.h <<_ACEOF
10255 #define SIZEOF_INT $ac_cv_sizeof_int
10256 _ACEOF
10257
10258
10259 # The cast to long int works around a bug in the HP C Compiler
10260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10262 # This bug is HP SR number 8606223364.
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10264 $as_echo_n "checking size of long... " >&6; }
10265 if test "${ac_cv_sizeof_long+set}" = set; then :
10266   $as_echo_n "(cached) " >&6
10267 else
10268   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10269
10270 else
10271   if test "$ac_cv_type_long" = yes; then
10272      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10274 { as_fn_set_status 77
10275 as_fn_error "cannot compute sizeof (long)
10276 See \`config.log' for more details." "$LINENO" 5; }; }
10277    else
10278      ac_cv_sizeof_long=0
10279    fi
10280 fi
10281
10282 fi
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10284 $as_echo "$ac_cv_sizeof_long" >&6; }
10285
10286
10287
10288 cat >>confdefs.h <<_ACEOF
10289 #define SIZEOF_LONG $ac_cv_sizeof_long
10290 _ACEOF
10291
10292
10293 # The cast to long int works around a bug in the HP C Compiler
10294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10296 # This bug is HP SR number 8606223364.
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10298 $as_echo_n "checking size of long long... " >&6; }
10299 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10300   $as_echo_n "(cached) " >&6
10301 else
10302   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10303
10304 else
10305   if test "$ac_cv_type_long_long" = yes; then
10306      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10308 { as_fn_set_status 77
10309 as_fn_error "cannot compute sizeof (long long)
10310 See \`config.log' for more details." "$LINENO" 5; }; }
10311    else
10312      ac_cv_sizeof_long_long=0
10313    fi
10314 fi
10315
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10318 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10319
10320
10321
10322 cat >>confdefs.h <<_ACEOF
10323 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10324 _ACEOF
10325
10326
10327 SIZEOF_SHORT=$ac_cv_sizeof_short
10328 SIZEOF_INT=$ac_cv_sizeof_int
10329 SIZEOF_LONG=$ac_cv_sizeof_long
10330 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10331
10332
10333
10334
10335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10336 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10337 if test "${ac_cv_c_bigendian+set}" = set; then :
10338   $as_echo_n "(cached) " >&6
10339 else
10340   ac_cv_c_bigendian=unknown
10341     # See if we're dealing with a universal compiler.
10342     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h.  */
10344 #ifndef __APPLE_CC__
10345                not a universal capable compiler
10346              #endif
10347              typedef int dummy;
10348
10349 _ACEOF
10350 if ac_fn_c_try_compile "$LINENO"; then :
10351
10352         # Check for potential -arch flags.  It is not universal unless
10353         # there are at least two -arch flags with different values.
10354         ac_arch=
10355         ac_prev=
10356         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10357          if test -n "$ac_prev"; then
10358            case $ac_word in
10359              i?86 | x86_64 | ppc | ppc64)
10360                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10361                  ac_arch=$ac_word
10362                else
10363                  ac_cv_c_bigendian=universal
10364                  break
10365                fi
10366                ;;
10367            esac
10368            ac_prev=
10369          elif test "x$ac_word" = "x-arch"; then
10370            ac_prev=arch
10371          fi
10372        done
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375     if test $ac_cv_c_bigendian = unknown; then
10376       # See if sys/param.h defines the BYTE_ORDER macro.
10377       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h.  */
10379 #include <sys/types.h>
10380              #include <sys/param.h>
10381
10382 int
10383 main ()
10384 {
10385 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10386                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10387                      && LITTLE_ENDIAN)
10388               bogus endian macros
10389              #endif
10390
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 if ac_fn_c_try_compile "$LINENO"; then :
10396   # It does; now see whether it defined to BIG_ENDIAN or not.
10397          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h.  */
10399 #include <sys/types.h>
10400                 #include <sys/param.h>
10401
10402 int
10403 main ()
10404 {
10405 #if BYTE_ORDER != BIG_ENDIAN
10406                  not big endian
10407                 #endif
10408
10409   ;
10410   return 0;
10411 }
10412 _ACEOF
10413 if ac_fn_c_try_compile "$LINENO"; then :
10414   ac_cv_c_bigendian=yes
10415 else
10416   ac_cv_c_bigendian=no
10417 fi
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421     fi
10422     if test $ac_cv_c_bigendian = unknown; then
10423       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10424       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h.  */
10426 #include <limits.h>
10427
10428 int
10429 main ()
10430 {
10431 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10432               bogus endian macros
10433              #endif
10434
10435   ;
10436   return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_compile "$LINENO"; then :
10440   # It does; now see whether it defined to _BIG_ENDIAN or not.
10441          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h.  */
10443 #include <limits.h>
10444
10445 int
10446 main ()
10447 {
10448 #ifndef _BIG_ENDIAN
10449                  not big endian
10450                 #endif
10451
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 if ac_fn_c_try_compile "$LINENO"; then :
10457   ac_cv_c_bigendian=yes
10458 else
10459   ac_cv_c_bigendian=no
10460 fi
10461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464     fi
10465     if test $ac_cv_c_bigendian = unknown; then
10466       # Compile a test program.
10467       if test "$cross_compiling" = yes; then :
10468   # Try to guess by grepping values from an object file.
10469          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h.  */
10471 short int ascii_mm[] =
10472                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10473                 short int ascii_ii[] =
10474                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10475                 int use_ascii (int i) {
10476                   return ascii_mm[i] + ascii_ii[i];
10477                 }
10478                 short int ebcdic_ii[] =
10479                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10480                 short int ebcdic_mm[] =
10481                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10482                 int use_ebcdic (int i) {
10483                   return ebcdic_mm[i] + ebcdic_ii[i];
10484                 }
10485                 extern int foo;
10486
10487 int
10488 main ()
10489 {
10490 return use_ascii (foo) == use_ebcdic (foo);
10491   ;
10492   return 0;
10493 }
10494 _ACEOF
10495 if ac_fn_c_try_compile "$LINENO"; then :
10496   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10497               ac_cv_c_bigendian=yes
10498             fi
10499             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10500               if test "$ac_cv_c_bigendian" = unknown; then
10501                 ac_cv_c_bigendian=no
10502               else
10503                 # finding both strings is unlikely to happen, but who knows?
10504                 ac_cv_c_bigendian=unknown
10505               fi
10506             fi
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509 else
10510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h.  */
10512 $ac_includes_default
10513 int
10514 main ()
10515 {
10516
10517              /* Are we little or big endian?  From Harbison&Steele.  */
10518              union
10519              {
10520                long int l;
10521                char c[sizeof (long int)];
10522              } u;
10523              u.l = 1;
10524              return u.c[sizeof (long int) - 1] == 1;
10525
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_run "$LINENO"; then :
10531   ac_cv_c_bigendian=no
10532 else
10533   ac_cv_c_bigendian=yes
10534 fi
10535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10536   conftest.$ac_objext conftest.beam conftest.$ac_ext
10537 fi
10538
10539     fi
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10542 $as_echo "$ac_cv_c_bigendian" >&6; }
10543  case $ac_cv_c_bigendian in #(
10544    yes)
10545      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10546 ;; #(
10547    no)
10548       ;; #(
10549    universal)
10550
10551 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10552
10553      ;; #(
10554    *)
10555      as_fn_error "unknown endianness
10556  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10557  esac
10558
10559 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10560 ASM_TYPES_HEADER=./asm_types.h
10561
10562 echo "/* These defines are needed for the public ext2fs.h header file */" \
10563      > public_config.h
10564 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10565   uniq tmp_config.$$ >> public_config.h
10566 else
10567   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10568 fi
10569 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10570   uniq tmp_config.$$ >> public_config.h
10571 else
10572   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10573 fi
10574 rm -f tmp_config.$$
10575 PUBLIC_CONFIG_HEADER=./public_config.h
10576
10577 for ac_header in inttypes.h
10578 do :
10579   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10580 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10581   cat >>confdefs.h <<_ACEOF
10582 #define HAVE_INTTYPES_H 1
10583 _ACEOF
10584
10585 fi
10586
10587 done
10588
10589 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10590 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10591
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_INTPTR_T 1
10594 _ACEOF
10595
10596
10597 fi
10598
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10600 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10601 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10602   $as_echo_n "(cached) " >&6
10603 else
10604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h.  */
10606 #include <sys/stat.h>
10607 int
10608 main ()
10609 {
10610 struct stat stat; stat.st_flags = 0;
10611   ;
10612   return 0;
10613 }
10614 _ACEOF
10615 if ac_fn_c_try_compile "$LINENO"; then :
10616   e2fsprogs_cv_struct_st_flags=yes
10617 else
10618   e2fsprogs_cv_struct_st_flags=no
10619 fi
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10621 fi
10622
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10624 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10625 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10627 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10628   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10629   $as_echo_n "(cached) " >&6
10630 else
10631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h.  */
10633 #include <sys/stat.h>
10634 int
10635 main ()
10636 {
10637 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 if ac_fn_c_try_compile "$LINENO"; then :
10643   e2fsprogs_cv_struct_st_flags_immut=yes
10644 else
10645   e2fsprogs_cv_struct_st_flags_immut=no
10646 fi
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648 fi
10649
10650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10651 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10652   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10653           $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10654
10655   fi
10656 fi
10657 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10658          #include <sys/socket.h>
10659 "
10660 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10661
10662 cat >>confdefs.h <<_ACEOF
10663 #define HAVE_SA_LEN 1
10664 _ACEOF
10665
10666 fi
10667
10668 if test -n "$BLKID_CMT"; then
10669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10670 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10671 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10672   $as_echo_n "(cached) " >&6
10673 else
10674   ac_func_search_save_LIBS=$LIBS
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h.  */
10677
10678 /* Override any GCC internal prototype to avoid an error.
10679    Use char because int might match the return type of a GCC
10680    builtin and then its argument prototype would still apply.  */
10681 #ifdef __cplusplus
10682 extern "C"
10683 #endif
10684 char blkid_probe_all ();
10685 int
10686 main ()
10687 {
10688 return blkid_probe_all ();
10689   ;
10690   return 0;
10691 }
10692 _ACEOF
10693 for ac_lib in '' blkid; do
10694   if test -z "$ac_lib"; then
10695     ac_res="none required"
10696   else
10697     ac_res=-l$ac_lib
10698     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10699   fi
10700   if ac_fn_c_try_link "$LINENO"; then :
10701   ac_cv_search_blkid_probe_all=$ac_res
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext \
10704     conftest$ac_exeext
10705   if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10706   break
10707 fi
10708 done
10709 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10710
10711 else
10712   ac_cv_search_blkid_probe_all=no
10713 fi
10714 rm conftest.$ac_ext
10715 LIBS=$ac_func_search_save_LIBS
10716 fi
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10718 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10719 ac_res=$ac_cv_search_blkid_probe_all
10720 if test "$ac_res" != no; then :
10721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10722
10723 fi
10724
10725 fi
10726 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit sync_file_range posix_fadvise fallocate fallocate64 blkid_probe_get_topology mbstowcs
10727 do :
10728   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10730 eval as_val=\$$as_ac_var
10731    if test "x$as_val" = x""yes; then :
10732   cat >>confdefs.h <<_ACEOF
10733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10734 _ACEOF
10735
10736 fi
10737 done
10738
10739 SOCKET_LIB=''
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10741 $as_echo_n "checking for socket in -lsocket... " >&6; }
10742 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10743   $as_echo_n "(cached) " >&6
10744 else
10745   ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-lsocket  $LIBS"
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h.  */
10749
10750 /* Override any GCC internal prototype to avoid an error.
10751    Use char because int might match the return type of a GCC
10752    builtin and then its argument prototype would still apply.  */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 char socket ();
10757 int
10758 main ()
10759 {
10760 return socket ();
10761   ;
10762   return 0;
10763 }
10764 _ACEOF
10765 if ac_fn_c_try_link "$LINENO"; then :
10766   ac_cv_lib_socket_socket=yes
10767 else
10768   ac_cv_lib_socket_socket=no
10769 fi
10770 rm -f core conftest.err conftest.$ac_objext \
10771     conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10775 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10776 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10777   SOCKET_LIB=-lsocket
10778 fi
10779
10780
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10782 $as_echo_n "checking for optreset... " >&6; }
10783 if test "${ac_cv_have_optreset+set}" = set; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h.  */
10788 #include <unistd.h>
10789
10790 _ACEOF
10791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10792   $EGREP "optreset" >/dev/null 2>&1; then :
10793   ac_cv_have_optreset=yes
10794 else
10795   ac_cv_have_optreset=no
10796 fi
10797 rm -f conftest*
10798
10799 fi
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10801 $as_echo "$ac_cv_have_optreset" >&6; }
10802 if test $ac_cv_have_optreset = yes; then
10803   $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
10804
10805 fi
10806 SEM_INIT_LIB=''
10807 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10808 if test "x$ac_cv_func_sem_init" = x""yes; then :
10809
10810 else
10811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
10812 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
10813 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
10814   $as_echo_n "(cached) " >&6
10815 else
10816   ac_check_lib_save_LIBS=$LIBS
10817 LIBS="-lpthread  $LIBS"
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h.  */
10820
10821 /* Override any GCC internal prototype to avoid an error.
10822    Use char because int might match the return type of a GCC
10823    builtin and then its argument prototype would still apply.  */
10824 #ifdef __cplusplus
10825 extern "C"
10826 #endif
10827 char sem_init ();
10828 int
10829 main ()
10830 {
10831 return sem_init ();
10832   ;
10833   return 0;
10834 }
10835 _ACEOF
10836 if ac_fn_c_try_link "$LINENO"; then :
10837   ac_cv_lib_pthread_sem_init=yes
10838 else
10839   ac_cv_lib_pthread_sem_init=no
10840 fi
10841 rm -f core conftest.err conftest.$ac_objext \
10842     conftest$ac_exeext conftest.$ac_ext
10843 LIBS=$ac_check_lib_save_LIBS
10844 fi
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
10846 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
10847 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10848   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10849
10850         SEM_INIT_LIB=-lpthread
10851 else
10852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
10853 $as_echo_n "checking for sem_init in -lrt... " >&6; }
10854 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
10855   $as_echo_n "(cached) " >&6
10856 else
10857   ac_check_lib_save_LIBS=$LIBS
10858 LIBS="-lrt  $LIBS"
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h.  */
10861
10862 /* Override any GCC internal prototype to avoid an error.
10863    Use char because int might match the return type of a GCC
10864    builtin and then its argument prototype would still apply.  */
10865 #ifdef __cplusplus
10866 extern "C"
10867 #endif
10868 char sem_init ();
10869 int
10870 main ()
10871 {
10872 return sem_init ();
10873   ;
10874   return 0;
10875 }
10876 _ACEOF
10877 if ac_fn_c_try_link "$LINENO"; then :
10878   ac_cv_lib_rt_sem_init=yes
10879 else
10880   ac_cv_lib_rt_sem_init=no
10881 fi
10882 rm -f core conftest.err conftest.$ac_objext \
10883     conftest$ac_exeext conftest.$ac_ext
10884 LIBS=$ac_check_lib_save_LIBS
10885 fi
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
10887 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
10888 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10889   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10890
10891         SEM_INIT_LIB=-lrt
10892 else
10893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
10894 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
10895 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
10896   $as_echo_n "(cached) " >&6
10897 else
10898   ac_check_lib_save_LIBS=$LIBS
10899 LIBS="-lposix4  $LIBS"
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h.  */
10902
10903 /* Override any GCC internal prototype to avoid an error.
10904    Use char because int might match the return type of a GCC
10905    builtin and then its argument prototype would still apply.  */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char sem_init ();
10910 int
10911 main ()
10912 {
10913 return sem_init ();
10914   ;
10915   return 0;
10916 }
10917 _ACEOF
10918 if ac_fn_c_try_link "$LINENO"; then :
10919   ac_cv_lib_posix4_sem_init=yes
10920 else
10921   ac_cv_lib_posix4_sem_init=no
10922 fi
10923 rm -f core conftest.err conftest.$ac_objext \
10924     conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10926 fi
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
10928 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
10929 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10930   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10931
10932         SEM_INIT_LIB=-lposix4
10933 fi
10934
10935 fi
10936
10937 fi
10938
10939 fi
10940
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
10942 $as_echo_n "checking for unified diff option... " >&6; }
10943 if diff -u $0 $0 > /dev/null 2>&1 ; then
10944    UNI_DIFF_OPTS=-u
10945 else
10946    UNI_DIFF_OPTS=-c
10947 fi
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
10949 $as_echo "$UNI_DIFF_OPTS" >&6; }
10950
10951 case "$host_os" in
10952 linux*)
10953         $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
10954
10955         ;;
10956 esac
10957 LINUX_CMT="#"
10958 CYGWIN_CMT="#"
10959 UNIX_CMT=
10960 case "$host_os" in
10961 linux*)
10962         LINUX_CMT=
10963         ;;
10964 cygwin)
10965         CYGWIN_CMT=
10966         UNIX_CMT="#"
10967         ;;
10968 esac
10969
10970
10971
10972 case "$host_os" in
10973 linux* | gnu* | k*bsd*-gnu)
10974         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10975                 root_prefix="";
10976                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
10977 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
10978         fi
10979         ;;
10980 esac
10981 case "$host_os" in
10982 linux* | gnu* | k*bsd*-gnu)
10983         if test "$prefix" = NONE ; then
10984                 prefix="/usr";
10985                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
10986 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
10987                 if test "$mandir" = '${prefix}/man' ; then
10988                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
10989 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
10990                         mandir=/usr/share/man
10991                 fi
10992         fi
10993 ;;
10994 esac
10995 if test "$root_prefix" = NONE ; then
10996         if test "$prefix" = NONE ; then
10997                 root_prefix="$ac_default_prefix"
10998         else
10999                 root_prefix="$prefix"
11000         fi
11001         root_bindir=$bindir
11002         root_sbindir=$sbindir
11003         root_libdir=$libdir
11004         root_sysconfdir=$sysconfdir
11005 else
11006         root_bindir='${root_prefix}/bin'
11007         root_sbindir='${root_prefix}/sbin'
11008         root_libdir='${root_prefix}/lib'
11009         root_sysconfdir='${root_prefix}/etc'
11010 fi
11011 if test "$bindir" != '${exec_prefix}/bin'; then
11012     root_bindir=$bindir
11013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11014 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11015 fi
11016 if test "$sbindir" != '${exec_prefix}/sbin'; then
11017     root_sbindir=$sbindir
11018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11019 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11020 fi
11021 if test "$libdir" != '${exec_prefix}/lib'; then
11022     root_libdir=$libdir
11023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11024 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11025 fi
11026 if test "$sysconfdir" != '${prefix}/etc'; then
11027     root_sysconfdir=$sysconfdir
11028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11029 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11030 fi
11031
11032
11033
11034
11035
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11037 $as_echo_n "checking whether linker accepts -static... " >&6; }
11038 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11039   $as_echo_n "(cached) " >&6
11040 else
11041   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h.  */
11044 #include <stdio.h>
11045 int
11046 main ()
11047 {
11048 fflush(stdout);
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054   ac_cv_e2fsprogs_use_static=yes
11055 else
11056   ac_cv_e2fsprogs_use_static=no
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext \
11059     conftest$ac_exeext conftest.$ac_ext
11060 LDFLAGS=$SAVE_LDFLAGS
11061 fi
11062
11063 case "$host_os" in
11064 solaris2.*)
11065         ac_cv_e2fsprogs_use_static=no
11066 ;;
11067 esac
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11069 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11070 LDFLAG_STATIC=
11071 if test $ac_cv_e2fsprogs_use_static = yes; then
11072         LDFLAG_STATIC=-static
11073 fi
11074
11075 case "$host_os" in
11076 darwin*)
11077         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11078 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11079         $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11080
11081         ;;
11082 esac
11083 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11084 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11085
11086
11087 if test "$cross_compiling" = yes ; then
11088   DO_TEST_SUITE=
11089 else
11090   DO_TEST_SUITE=check
11091 fi
11092
11093 INTL_FLAGS=
11094 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11095         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
11096 fi
11097
11098 if test $cross_compiling = no; then
11099    BUILD_CFLAGS="$CFLAGS"
11100    BUILD_LDFLAGS="$LDFLAGS"
11101 else
11102    BUILD_CFLAGS=
11103    BUILD_LDFLAGS=
11104 fi
11105
11106
11107 test -d lib || mkdir lib
11108 test -d include || mkdir include
11109 test -d include/linux || mkdir include/linux
11110 test -d include/asm || mkdir include/asm
11111 for i in MCONFIG Makefile e2fsprogs.spec \
11112         util/Makefile util/subst.conf util/gen-tarball \
11113         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11114         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11115         lib/uuid/Makefile lib/uuid/uuid_types.h \
11116         lib/blkid/Makefile lib/blkid/blkid_types.h \
11117         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11118         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11119         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11120         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11121         resize/Makefile doc/Makefile intl/Makefile \
11122         intl/libgnuintl.h po/Makefile.in ; do
11123         if test -d `dirname ${srcdir}/$i` ; then
11124                 outlist="$outlist $i"
11125         fi
11126 done
11127 ac_config_files="$ac_config_files $outlist"
11128
11129 cat >confcache <<\_ACEOF
11130 # This file is a shell script that caches the results of configure
11131 # tests run on this system so they can be shared between configure
11132 # scripts and configure runs, see configure's option --config-cache.
11133 # It is not useful on other systems.  If it contains results you don't
11134 # want to keep, you may remove or edit it.
11135 #
11136 # config.status only pays attention to the cache file if you give it
11137 # the --recheck option to rerun configure.
11138 #
11139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11141 # following values.
11142
11143 _ACEOF
11144
11145 # The following way of writing the cache mishandles newlines in values,
11146 # but we know of no workaround that is simple, portable, and efficient.
11147 # So, we kill variables containing newlines.
11148 # Ultrix sh set writes to stderr and can't be redirected directly,
11149 # and sets the high bit in the cache file unless we assign to the vars.
11150 (
11151   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11152     eval ac_val=\$$ac_var
11153     case $ac_val in #(
11154     *${as_nl}*)
11155       case $ac_var in #(
11156       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11158       esac
11159       case $ac_var in #(
11160       _ | IFS | as_nl) ;; #(
11161       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11162       *) { eval $ac_var=; unset $ac_var;} ;;
11163       esac ;;
11164     esac
11165   done
11166
11167   (set) 2>&1 |
11168     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11169     *${as_nl}ac_space=\ *)
11170       # `set' does not quote correctly, so add quotes: double-quote
11171       # substitution turns \\\\ into \\, and sed turns \\ into \.
11172       sed -n \
11173         "s/'/'\\\\''/g;
11174           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11175       ;; #(
11176     *)
11177       # `set' quotes correctly as required by POSIX, so do not add quotes.
11178       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11179       ;;
11180     esac |
11181     sort
11182 ) |
11183   sed '
11184      /^ac_cv_env_/b end
11185      t clear
11186      :clear
11187      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11188      t end
11189      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11190      :end' >>confcache
11191 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11192   if test -w "$cache_file"; then
11193     test "x$cache_file" != "x/dev/null" &&
11194       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11195 $as_echo "$as_me: updating cache $cache_file" >&6;}
11196     cat confcache >$cache_file
11197   else
11198     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11199 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11200   fi
11201 fi
11202 rm -f confcache
11203
11204 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11205 # Let make expand exec_prefix.
11206 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11207
11208 # Transform confdefs.h into DEFS.
11209 # Protect against shell expansion while executing Makefile rules.
11210 # Protect against Makefile macro expansion.
11211 #
11212 # If the first sed substitution is executed (which looks for macros that
11213 # take arguments), then branch to the quote section.  Otherwise,
11214 # look for a macro that doesn't take arguments.
11215 ac_script='
11216 :mline
11217 /\\$/{
11218  N
11219  s,\\\n,,
11220  b mline
11221 }
11222 t clear
11223 :clear
11224 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11225 t quote
11226 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11227 t quote
11228 b any
11229 :quote
11230 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11231 s/\[/\\&/g
11232 s/\]/\\&/g
11233 s/\$/$$/g
11234 H
11235 :any
11236 ${
11237         g
11238         s/^\n//
11239         s/\n/ /g
11240         p
11241 }
11242 '
11243 DEFS=`sed -n "$ac_script" confdefs.h`
11244
11245
11246 ac_libobjs=
11247 ac_ltlibobjs=
11248 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11249   # 1. Remove the extension, and $U if already installed.
11250   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11251   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11252   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11253   #    will be set to the directory where LIBOBJS objects are built.
11254   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11255   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11256 done
11257 LIBOBJS=$ac_libobjs
11258
11259 LTLIBOBJS=$ac_ltlibobjs
11260
11261
11262
11263
11264 : ${CONFIG_STATUS=./config.status}
11265 ac_write_fail=0
11266 ac_clean_files_save=$ac_clean_files
11267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11269 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11270 as_write_fail=0
11271 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11272 #! $SHELL
11273 # Generated by $as_me.
11274 # Run this file to recreate the current configuration.
11275 # Compiler output produced by configure, useful for debugging
11276 # configure, is in config.log if it exists.
11277
11278 debug=false
11279 ac_cs_recheck=false
11280 ac_cs_silent=false
11281
11282 SHELL=\${CONFIG_SHELL-$SHELL}
11283 export SHELL
11284 _ASEOF
11285 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11286 ## -------------------- ##
11287 ## M4sh Initialization. ##
11288 ## -------------------- ##
11289
11290 # Be more Bourne compatible
11291 DUALCASE=1; export DUALCASE # for MKS sh
11292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11293   emulate sh
11294   NULLCMD=:
11295   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11296   # is contrary to our usage.  Disable this feature.
11297   alias -g '${1+"$@"}'='"$@"'
11298   setopt NO_GLOB_SUBST
11299 else
11300   case `(set -o) 2>/dev/null` in #(
11301   *posix*) :
11302     set -o posix ;; #(
11303   *) :
11304      ;;
11305 esac
11306 fi
11307
11308
11309 as_nl='
11310 '
11311 export as_nl
11312 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11313 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11316 # Prefer a ksh shell builtin over an external printf program on Solaris,
11317 # but without wasting forks for bash or zsh.
11318 if test -z "$BASH_VERSION$ZSH_VERSION" \
11319     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11320   as_echo='print -r --'
11321   as_echo_n='print -rn --'
11322 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11323   as_echo='printf %s\n'
11324   as_echo_n='printf %s'
11325 else
11326   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11327     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11328     as_echo_n='/usr/ucb/echo -n'
11329   else
11330     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11331     as_echo_n_body='eval
11332       arg=$1;
11333       case $arg in #(
11334       *"$as_nl"*)
11335         expr "X$arg" : "X\\(.*\\)$as_nl";
11336         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11337       esac;
11338       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11339     '
11340     export as_echo_n_body
11341     as_echo_n='sh -c $as_echo_n_body as_echo'
11342   fi
11343   export as_echo_body
11344   as_echo='sh -c $as_echo_body as_echo'
11345 fi
11346
11347 # The user is always right.
11348 if test "${PATH_SEPARATOR+set}" != set; then
11349   PATH_SEPARATOR=:
11350   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11351     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11352       PATH_SEPARATOR=';'
11353   }
11354 fi
11355
11356
11357 # IFS
11358 # We need space, tab and new line, in precisely that order.  Quoting is
11359 # there to prevent editors from complaining about space-tab.
11360 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11361 # splitting by setting IFS to empty value.)
11362 IFS=" ""        $as_nl"
11363
11364 # Find who we are.  Look in the path if we contain no directory separator.
11365 case $0 in #((
11366   *[\\/]* ) as_myself=$0 ;;
11367   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11369 do
11370   IFS=$as_save_IFS
11371   test -z "$as_dir" && as_dir=.
11372     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11373   done
11374 IFS=$as_save_IFS
11375
11376      ;;
11377 esac
11378 # We did not find ourselves, most probably we were run as `sh COMMAND'
11379 # in which case we are not to be found in the path.
11380 if test "x$as_myself" = x; then
11381   as_myself=$0
11382 fi
11383 if test ! -f "$as_myself"; then
11384   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11385   exit 1
11386 fi
11387
11388 # Unset variables that we do not need and which cause bugs (e.g. in
11389 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11390 # suppresses any "Segmentation fault" message there.  '((' could
11391 # trigger a bug in pdksh 5.2.14.
11392 for as_var in BASH_ENV ENV MAIL MAILPATH
11393 do eval test x\${$as_var+set} = xset \
11394   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11395 done
11396 PS1='$ '
11397 PS2='> '
11398 PS4='+ '
11399
11400 # NLS nuisances.
11401 LC_ALL=C
11402 export LC_ALL
11403 LANGUAGE=C
11404 export LANGUAGE
11405
11406 # CDPATH.
11407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11408
11409
11410 # as_fn_error ERROR [LINENO LOG_FD]
11411 # ---------------------------------
11412 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11413 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11414 # script with status $?, using 1 if that was 0.
11415 as_fn_error ()
11416 {
11417   as_status=$?; test $as_status -eq 0 && as_status=1
11418   if test "$3"; then
11419     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11420     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11421   fi
11422   $as_echo "$as_me: error: $1" >&2
11423   as_fn_exit $as_status
11424 } # as_fn_error
11425
11426
11427 # as_fn_set_status STATUS
11428 # -----------------------
11429 # Set $? to STATUS, without forking.
11430 as_fn_set_status ()
11431 {
11432   return $1
11433 } # as_fn_set_status
11434
11435 # as_fn_exit STATUS
11436 # -----------------
11437 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11438 as_fn_exit ()
11439 {
11440   set +e
11441   as_fn_set_status $1
11442   exit $1
11443 } # as_fn_exit
11444
11445 # as_fn_unset VAR
11446 # ---------------
11447 # Portably unset VAR.
11448 as_fn_unset ()
11449 {
11450   { eval $1=; unset $1;}
11451 }
11452 as_unset=as_fn_unset
11453 # as_fn_append VAR VALUE
11454 # ----------------------
11455 # Append the text in VALUE to the end of the definition contained in VAR. Take
11456 # advantage of any shell optimizations that allow amortized linear growth over
11457 # repeated appends, instead of the typical quadratic growth present in naive
11458 # implementations.
11459 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11460   eval 'as_fn_append ()
11461   {
11462     eval $1+=\$2
11463   }'
11464 else
11465   as_fn_append ()
11466   {
11467     eval $1=\$$1\$2
11468   }
11469 fi # as_fn_append
11470
11471 # as_fn_arith ARG...
11472 # ------------------
11473 # Perform arithmetic evaluation on the ARGs, and store the result in the
11474 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11475 # must be portable across $(()) and expr.
11476 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11477   eval 'as_fn_arith ()
11478   {
11479     as_val=$(( $* ))
11480   }'
11481 else
11482   as_fn_arith ()
11483   {
11484     as_val=`expr "$@" || test $? -eq 1`
11485   }
11486 fi # as_fn_arith
11487
11488
11489 if expr a : '\(a\)' >/dev/null 2>&1 &&
11490    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11491   as_expr=expr
11492 else
11493   as_expr=false
11494 fi
11495
11496 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11497   as_basename=basename
11498 else
11499   as_basename=false
11500 fi
11501
11502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11503   as_dirname=dirname
11504 else
11505   as_dirname=false
11506 fi
11507
11508 as_me=`$as_basename -- "$0" ||
11509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11510          X"$0" : 'X\(//\)$' \| \
11511          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11512 $as_echo X/"$0" |
11513     sed '/^.*\/\([^/][^/]*\)\/*$/{
11514             s//\1/
11515             q
11516           }
11517           /^X\/\(\/\/\)$/{
11518             s//\1/
11519             q
11520           }
11521           /^X\/\(\/\).*/{
11522             s//\1/
11523             q
11524           }
11525           s/.*/./; q'`
11526
11527 # Avoid depending upon Character Ranges.
11528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11531 as_cr_digits='0123456789'
11532 as_cr_alnum=$as_cr_Letters$as_cr_digits
11533
11534 ECHO_C= ECHO_N= ECHO_T=
11535 case `echo -n x` in #(((((
11536 -n*)
11537   case `echo 'xy\c'` in
11538   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11539   xy)  ECHO_C='\c';;
11540   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11541        ECHO_T=' ';;
11542   esac;;
11543 *)
11544   ECHO_N='-n';;
11545 esac
11546
11547 rm -f conf$$ conf$$.exe conf$$.file
11548 if test -d conf$$.dir; then
11549   rm -f conf$$.dir/conf$$.file
11550 else
11551   rm -f conf$$.dir
11552   mkdir conf$$.dir 2>/dev/null
11553 fi
11554 if (echo >conf$$.file) 2>/dev/null; then
11555   if ln -s conf$$.file conf$$ 2>/dev/null; then
11556     as_ln_s='ln -s'
11557     # ... but there are two gotchas:
11558     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11559     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11560     # In both cases, we have to default to `cp -p'.
11561     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11562       as_ln_s='cp -p'
11563   elif ln conf$$.file conf$$ 2>/dev/null; then
11564     as_ln_s=ln
11565   else
11566     as_ln_s='cp -p'
11567   fi
11568 else
11569   as_ln_s='cp -p'
11570 fi
11571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11572 rmdir conf$$.dir 2>/dev/null
11573
11574
11575 # as_fn_mkdir_p
11576 # -------------
11577 # Create "$as_dir" as a directory, including parents if necessary.
11578 as_fn_mkdir_p ()
11579 {
11580
11581   case $as_dir in #(
11582   -*) as_dir=./$as_dir;;
11583   esac
11584   test -d "$as_dir" || eval $as_mkdir_p || {
11585     as_dirs=
11586     while :; do
11587       case $as_dir in #(
11588       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11589       *) as_qdir=$as_dir;;
11590       esac
11591       as_dirs="'$as_qdir' $as_dirs"
11592       as_dir=`$as_dirname -- "$as_dir" ||
11593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11594          X"$as_dir" : 'X\(//\)[^/]' \| \
11595          X"$as_dir" : 'X\(//\)$' \| \
11596          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11597 $as_echo X"$as_dir" |
11598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11599             s//\1/
11600             q
11601           }
11602           /^X\(\/\/\)[^/].*/{
11603             s//\1/
11604             q
11605           }
11606           /^X\(\/\/\)$/{
11607             s//\1/
11608             q
11609           }
11610           /^X\(\/\).*/{
11611             s//\1/
11612             q
11613           }
11614           s/.*/./; q'`
11615       test -d "$as_dir" && break
11616     done
11617     test -z "$as_dirs" || eval "mkdir $as_dirs"
11618   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11619
11620
11621 } # as_fn_mkdir_p
11622 if mkdir -p . 2>/dev/null; then
11623   as_mkdir_p='mkdir -p "$as_dir"'
11624 else
11625   test -d ./-p && rmdir ./-p
11626   as_mkdir_p=false
11627 fi
11628
11629 if test -x / >/dev/null 2>&1; then
11630   as_test_x='test -x'
11631 else
11632   if ls -dL / >/dev/null 2>&1; then
11633     as_ls_L_option=L
11634   else
11635     as_ls_L_option=
11636   fi
11637   as_test_x='
11638     eval sh -c '\''
11639       if test -d "$1"; then
11640         test -d "$1/.";
11641       else
11642         case $1 in #(
11643         -*)set "./$1";;
11644         esac;
11645         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11646         ???[sx]*):;;*)false;;esac;fi
11647     '\'' sh
11648   '
11649 fi
11650 as_executable_p=$as_test_x
11651
11652 # Sed expression to map a string onto a valid CPP name.
11653 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11654
11655 # Sed expression to map a string onto a valid variable name.
11656 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11657
11658
11659 exec 6>&1
11660 ## ----------------------------------- ##
11661 ## Main body of $CONFIG_STATUS script. ##
11662 ## ----------------------------------- ##
11663 _ASEOF
11664 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11665
11666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11667 # Save the log message, to keep $0 and so on meaningful, and to
11668 # report actual input values of CONFIG_FILES etc. instead of their
11669 # values after options handling.
11670 ac_log="
11671 This file was extended by $as_me, which was
11672 generated by GNU Autoconf 2.65.  Invocation command line was
11673
11674   CONFIG_FILES    = $CONFIG_FILES
11675   CONFIG_HEADERS  = $CONFIG_HEADERS
11676   CONFIG_LINKS    = $CONFIG_LINKS
11677   CONFIG_COMMANDS = $CONFIG_COMMANDS
11678   $ $0 $@
11679
11680 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11681 "
11682
11683 _ACEOF
11684
11685 case $ac_config_files in *"
11686 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11687 esac
11688
11689
11690
11691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11692 # Files that config.status was made for.
11693 config_files="$ac_config_files"
11694 config_commands="$ac_config_commands"
11695
11696 _ACEOF
11697
11698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11699 ac_cs_usage="\
11700 \`$as_me' instantiates files and other configuration actions
11701 from templates according to the current configuration.  Unless the files
11702 and actions are specified as TAGs, all are instantiated by default.
11703
11704 Usage: $0 [OPTION]... [TAG]...
11705
11706   -h, --help       print this help, then exit
11707   -V, --version    print version number and configuration settings, then exit
11708       --config     print configuration, then exit
11709   -q, --quiet, --silent
11710                    do not print progress messages
11711   -d, --debug      don't remove temporary files
11712       --recheck    update $as_me by reconfiguring in the same conditions
11713       --file=FILE[:TEMPLATE]
11714                    instantiate the configuration file FILE
11715
11716 Configuration files:
11717 $config_files
11718
11719 Configuration commands:
11720 $config_commands
11721
11722 Report bugs to the package provider."
11723
11724 _ACEOF
11725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11726 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11727 ac_cs_version="\\
11728 config.status
11729 configured by $0, generated by GNU Autoconf 2.65,
11730   with options \\"\$ac_cs_config\\"
11731
11732 Copyright (C) 2009 Free Software Foundation, Inc.
11733 This config.status script is free software; the Free Software Foundation
11734 gives unlimited permission to copy, distribute and modify it."
11735
11736 ac_pwd='$ac_pwd'
11737 srcdir='$srcdir'
11738 INSTALL='$INSTALL'
11739 AWK='$AWK'
11740 test -n "\$AWK" || AWK=awk
11741 _ACEOF
11742
11743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11744 # The default lists apply if the user does not specify any file.
11745 ac_need_defaults=:
11746 while test $# != 0
11747 do
11748   case $1 in
11749   --*=*)
11750     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11751     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11752     ac_shift=:
11753     ;;
11754   *)
11755     ac_option=$1
11756     ac_optarg=$2
11757     ac_shift=shift
11758     ;;
11759   esac
11760
11761   case $ac_option in
11762   # Handling of the options.
11763   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11764     ac_cs_recheck=: ;;
11765   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11766     $as_echo "$ac_cs_version"; exit ;;
11767   --config | --confi | --conf | --con | --co | --c )
11768     $as_echo "$ac_cs_config"; exit ;;
11769   --debug | --debu | --deb | --de | --d | -d )
11770     debug=: ;;
11771   --file | --fil | --fi | --f )
11772     $ac_shift
11773     case $ac_optarg in
11774     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11775     esac
11776     as_fn_append CONFIG_FILES " '$ac_optarg'"
11777     ac_need_defaults=false;;
11778   --he | --h |  --help | --hel | -h )
11779     $as_echo "$ac_cs_usage"; exit ;;
11780   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11781   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11782     ac_cs_silent=: ;;
11783
11784   # This is an error.
11785   -*) as_fn_error "unrecognized option: \`$1'
11786 Try \`$0 --help' for more information." ;;
11787
11788   *) as_fn_append ac_config_targets " $1"
11789      ac_need_defaults=false ;;
11790
11791   esac
11792   shift
11793 done
11794
11795 ac_configure_extra_args=
11796
11797 if $ac_cs_silent; then
11798   exec 6>/dev/null
11799   ac_configure_extra_args="$ac_configure_extra_args --silent"
11800 fi
11801
11802 _ACEOF
11803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11804 if \$ac_cs_recheck; then
11805   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11806   shift
11807   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11808   CONFIG_SHELL='$SHELL'
11809   export CONFIG_SHELL
11810   exec "\$@"
11811 fi
11812
11813 _ACEOF
11814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11815 exec 5>>config.log
11816 {
11817   echo
11818   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11819 ## Running $as_me. ##
11820 _ASBOX
11821   $as_echo "$ac_log"
11822 } >&5
11823
11824 _ACEOF
11825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11826 #
11827 # INIT-COMMANDS
11828 #
11829 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11830     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11831     # from automake.
11832     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11833     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11834     LINGUAS="${LINGUAS-%UNSET%}"
11835
11836
11837 _ACEOF
11838
11839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11840
11841 # Handling of arguments.
11842 for ac_config_target in $ac_config_targets
11843 do
11844   case $ac_config_target in
11845     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11846     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11847
11848   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11849   esac
11850 done
11851
11852
11853 # If the user did not use the arguments to specify the items to instantiate,
11854 # then the envvar interface is used.  Set only those that are not.
11855 # We use the long form for the default assignment because of an extremely
11856 # bizarre bug on SunOS 4.1.3.
11857 if $ac_need_defaults; then
11858   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11859   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11860 fi
11861
11862 # Have a temporary directory for convenience.  Make it in the build tree
11863 # simply because there is no reason against having it here, and in addition,
11864 # creating and moving files from /tmp can sometimes cause problems.
11865 # Hook for its removal unless debugging.
11866 # Note that there is a small window in which the directory will not be cleaned:
11867 # after its creation but before its name has been assigned to `$tmp'.
11868 $debug ||
11869 {
11870   tmp=
11871   trap 'exit_status=$?
11872   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11873 ' 0
11874   trap 'as_fn_exit 1' 1 2 13 15
11875 }
11876 # Create a (secure) tmp directory for tmp files.
11877
11878 {
11879   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11880   test -n "$tmp" && test -d "$tmp"
11881 }  ||
11882 {
11883   tmp=./conf$$-$RANDOM
11884   (umask 077 && mkdir "$tmp")
11885 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11886
11887 # Set up the scripts for CONFIG_FILES section.
11888 # No need to generate them if there are no CONFIG_FILES.
11889 # This happens for instance with `./config.status config.h'.
11890 if test -n "$CONFIG_FILES"; then
11891
11892 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11893   ac_cs_awk_getline=:
11894   ac_cs_awk_pipe_init=
11895   ac_cs_awk_read_file='
11896       while ((getline aline < (F[key])) > 0)
11897         print(aline)
11898       close(F[key])'
11899   ac_cs_awk_pipe_fini=
11900 else
11901   ac_cs_awk_getline=false
11902   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11903   ac_cs_awk_read_file='
11904       print "|#_!!_#|"
11905       print "cat " F[key] " &&"
11906       '$ac_cs_awk_pipe_init
11907   # The final `:' finishes the AND list.
11908   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11909 fi
11910 ac_cr=`echo X | tr X '\015'`
11911 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11912 # But we know of no other shell where ac_cr would be empty at this
11913 # point, so we can use a bashism as a fallback.
11914 if test "x$ac_cr" = x; then
11915   eval ac_cr=\$\'\\r\'
11916 fi
11917 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11918 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11919   ac_cs_awk_cr='\r'
11920 else
11921   ac_cs_awk_cr=$ac_cr
11922 fi
11923
11924 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11925 _ACEOF
11926
11927 # Create commands to substitute file output variables.
11928 {
11929   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11930   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11931   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11932   echo "_ACAWK" &&
11933   echo "_ACEOF"
11934 } >conf$$files.sh &&
11935 . ./conf$$files.sh ||
11936   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11937 rm -f conf$$files.sh
11938
11939 {
11940   echo "cat >conf$$subs.awk <<_ACEOF" &&
11941   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11942   echo "_ACEOF"
11943 } >conf$$subs.sh ||
11944   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11946 ac_delim='%!_!# '
11947 for ac_last_try in false false false false false :; do
11948   . ./conf$$subs.sh ||
11949     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11950
11951   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11952   if test $ac_delim_n = $ac_delim_num; then
11953     break
11954   elif $ac_last_try; then
11955     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11956   else
11957     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11958   fi
11959 done
11960 rm -f conf$$subs.sh
11961
11962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11963 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11964 _ACEOF
11965 sed -n '
11966 h
11967 s/^/S["/; s/!.*/"]=/
11968 p
11969 g
11970 s/^[^!]*!//
11971 :repl
11972 t repl
11973 s/'"$ac_delim"'$//
11974 t delim
11975 :nl
11976 h
11977 s/\(.\{148\}\)..*/\1/
11978 t more1
11979 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11980 p
11981 n
11982 b repl
11983 :more1
11984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11985 p
11986 g
11987 s/.\{148\}//
11988 t nl
11989 :delim
11990 h
11991 s/\(.\{148\}\)..*/\1/
11992 t more2
11993 s/["\\]/\\&/g; s/^/"/; s/$/"/
11994 p
11995 b
11996 :more2
11997 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11998 p
11999 g
12000 s/.\{148\}//
12001 t delim
12002 ' <conf$$subs.awk | sed '
12003 /^[^""]/{
12004   N
12005   s/\n//
12006 }
12007 ' >>$CONFIG_STATUS || ac_write_fail=1
12008 rm -f conf$$subs.awk
12009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12010 _ACAWK
12011 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12012   for (key in S) S_is_set[key] = 1
12013   FS = "\a"
12014   \$ac_cs_awk_pipe_init
12015 }
12016 {
12017   line = $ 0
12018   nfields = split(line, field, "@")
12019   substed = 0
12020   len = length(field[1])
12021   for (i = 2; i < nfields; i++) {
12022     key = field[i]
12023     keylen = length(key)
12024     if (S_is_set[key]) {
12025       value = S[key]
12026       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12027       len += length(value) + length(field[++i])
12028       substed = 1
12029     } else
12030       len += 1 + keylen
12031   }
12032   if (nfields == 3 && !substed) {
12033     key = field[2]
12034     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12035       \$ac_cs_awk_read_file
12036       next
12037     }
12038   }
12039   print line
12040 }
12041 \$ac_cs_awk_pipe_fini
12042 _ACAWK
12043 _ACEOF
12044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12046   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12047 else
12048   cat
12049 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12050   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12051 _ACEOF
12052
12053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12055 # trailing colons and then remove the whole line if VPATH becomes empty
12056 # (actually we leave an empty line to preserve line numbers).
12057 if test "x$srcdir" = x.; then
12058   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12059 s/:*\$(srcdir):*/:/
12060 s/:*\${srcdir}:*/:/
12061 s/:*@srcdir@:*/:/
12062 s/^\([^=]*=[     ]*\):*/\1/
12063 s/:*$//
12064 s/^[^=]*=[       ]*$//
12065 }'
12066 fi
12067
12068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12069 fi # test -n "$CONFIG_FILES"
12070
12071
12072 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12073 shift
12074 for ac_tag
12075 do
12076   case $ac_tag in
12077   :[FHLC]) ac_mode=$ac_tag; continue;;
12078   esac
12079   case $ac_mode$ac_tag in
12080   :[FHL]*:*);;
12081   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12082   :[FH]-) ac_tag=-:-;;
12083   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12084   esac
12085   ac_save_IFS=$IFS
12086   IFS=:
12087   set x $ac_tag
12088   IFS=$ac_save_IFS
12089   shift
12090   ac_file=$1
12091   shift
12092
12093   case $ac_mode in
12094   :L) ac_source=$1;;
12095   :[FH])
12096     ac_file_inputs=
12097     for ac_f
12098     do
12099       case $ac_f in
12100       -) ac_f="$tmp/stdin";;
12101       *) # Look for the file first in the build tree, then in the source tree
12102          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12103          # because $ac_f cannot contain `:'.
12104          test -f "$ac_f" ||
12105            case $ac_f in
12106            [\\/$]*) false;;
12107            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12108            esac ||
12109            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12110       esac
12111       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12112       as_fn_append ac_file_inputs " '$ac_f'"
12113     done
12114
12115     # Let's still pretend it is `configure' which instantiates (i.e., don't
12116     # use $as_me), people would be surprised to read:
12117     #    /* config.h.  Generated by config.status.  */
12118     configure_input='Generated from '`
12119           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12120         `' by configure.'
12121     if test x"$ac_file" != x-; then
12122       configure_input="$ac_file.  $configure_input"
12123       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12124 $as_echo "$as_me: creating $ac_file" >&6;}
12125     fi
12126     # Neutralize special characters interpreted by sed in replacement strings.
12127     case $configure_input in #(
12128     *\&* | *\|* | *\\* )
12129        ac_sed_conf_input=`$as_echo "$configure_input" |
12130        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12131     *) ac_sed_conf_input=$configure_input;;
12132     esac
12133
12134     case $ac_tag in
12135     *:-:* | *:-) cat >"$tmp/stdin" \
12136       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12137     esac
12138     ;;
12139   esac
12140
12141   ac_dir=`$as_dirname -- "$ac_file" ||
12142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12143          X"$ac_file" : 'X\(//\)[^/]' \| \
12144          X"$ac_file" : 'X\(//\)$' \| \
12145          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12146 $as_echo X"$ac_file" |
12147     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12148             s//\1/
12149             q
12150           }
12151           /^X\(\/\/\)[^/].*/{
12152             s//\1/
12153             q
12154           }
12155           /^X\(\/\/\)$/{
12156             s//\1/
12157             q
12158           }
12159           /^X\(\/\).*/{
12160             s//\1/
12161             q
12162           }
12163           s/.*/./; q'`
12164   as_dir="$ac_dir"; as_fn_mkdir_p
12165   ac_builddir=.
12166
12167 case "$ac_dir" in
12168 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12169 *)
12170   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12171   # A ".." for each directory in $ac_dir_suffix.
12172   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12173   case $ac_top_builddir_sub in
12174   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12175   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12176   esac ;;
12177 esac
12178 ac_abs_top_builddir=$ac_pwd
12179 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12180 # for backward compatibility:
12181 ac_top_builddir=$ac_top_build_prefix
12182
12183 case $srcdir in
12184   .)  # We are building in place.
12185     ac_srcdir=.
12186     ac_top_srcdir=$ac_top_builddir_sub
12187     ac_abs_top_srcdir=$ac_pwd ;;
12188   [\\/]* | ?:[\\/]* )  # Absolute name.
12189     ac_srcdir=$srcdir$ac_dir_suffix;
12190     ac_top_srcdir=$srcdir
12191     ac_abs_top_srcdir=$srcdir ;;
12192   *) # Relative name.
12193     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12194     ac_top_srcdir=$ac_top_build_prefix$srcdir
12195     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12196 esac
12197 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12198
12199
12200   case $ac_mode in
12201   :F)
12202   #
12203   # CONFIG_FILE
12204   #
12205
12206   case $INSTALL in
12207   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12208   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12209   esac
12210 _ACEOF
12211
12212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12213 # If the template does not know about datarootdir, expand it.
12214 # FIXME: This hack should be removed a few years after 2.60.
12215 ac_datarootdir_hack=; ac_datarootdir_seen=
12216 ac_sed_dataroot='
12217 /datarootdir/ {
12218   p
12219   q
12220 }
12221 /@datadir@/p
12222 /@docdir@/p
12223 /@infodir@/p
12224 /@localedir@/p
12225 /@mandir@/p'
12226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12227 *datarootdir*) ac_datarootdir_seen=yes;;
12228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12230 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12231 _ACEOF
12232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12233   ac_datarootdir_hack='
12234   s&@datadir@&$datadir&g
12235   s&@docdir@&$docdir&g
12236   s&@infodir@&$infodir&g
12237   s&@localedir@&$localedir&g
12238   s&@mandir@&$mandir&g
12239   s&\\\${datarootdir}&$datarootdir&g' ;;
12240 esac
12241 _ACEOF
12242
12243 # Neutralize VPATH when `$srcdir' = `.'.
12244 # Shell code in configure.ac might set extrasub.
12245 # FIXME: do we really want to maintain this feature?
12246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12247 ac_sed_extra="$ac_vpsub
12248 $extrasub
12249 _ACEOF
12250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12251 :t
12252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12253 s|@configure_input@|$ac_sed_conf_input|;t t
12254 s&@top_builddir@&$ac_top_builddir_sub&;t t
12255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12256 s&@srcdir@&$ac_srcdir&;t t
12257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12258 s&@top_srcdir@&$ac_top_srcdir&;t t
12259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12260 s&@builddir@&$ac_builddir&;t t
12261 s&@abs_builddir@&$ac_abs_builddir&;t t
12262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12263 s&@INSTALL@&$ac_INSTALL&;t t
12264 $ac_datarootdir_hack
12265 "
12266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12267 if $ac_cs_awk_getline; then
12268   $AWK -f "$tmp/subs.awk"
12269 else
12270   $AWK -f "$tmp/subs.awk" | $SHELL
12271 fi >$tmp/out \
12272   || as_fn_error "could not create $ac_file" "$LINENO" 5
12273
12274 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12275   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12276   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12278 which seems to be undefined.  Please make sure it is defined." >&5
12279 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12280 which seems to be undefined.  Please make sure it is defined." >&2;}
12281
12282   rm -f "$tmp/stdin"
12283   case $ac_file in
12284   -) cat "$tmp/out" && rm -f "$tmp/out";;
12285   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12286   esac \
12287   || as_fn_error "could not create $ac_file" "$LINENO" 5
12288  ;;
12289
12290
12291   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12292 $as_echo "$as_me: executing $ac_file commands" >&6;}
12293  ;;
12294   esac
12295
12296
12297   case $ac_file$ac_mode in
12298     "default-1":C)
12299     for ac_file in $CONFIG_FILES; do
12300       # Support "outfile[:infile[:infile...]]"
12301       case "$ac_file" in
12302         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12303       esac
12304       # PO directories have a Makefile.in generated from Makefile.in.in.
12305       case "$ac_file" in */Makefile.in)
12306         # Adjust a relative srcdir.
12307         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12308         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12309         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12310         # In autoconf-2.13 it is called $ac_given_srcdir.
12311         # In autoconf-2.50 it is called $srcdir.
12312         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12313         case "$ac_given_srcdir" in
12314           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12315           /*) top_srcdir="$ac_given_srcdir" ;;
12316           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12317         esac
12318         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12319           rm -f "$ac_dir/POTFILES"
12320           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12321           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12322           POMAKEFILEDEPS="POTFILES.in"
12323           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12324           # on $ac_dir but don't depend on user-specified configuration
12325           # parameters.
12326           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12327             # The LINGUAS file contains the set of available languages.
12328             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12329               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12330             fi
12331             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12332             # Hide the ALL_LINGUAS assigment from automake.
12333             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12334             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12335           else
12336             # The set of available languages was given in configure.in.
12337             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12338           fi
12339           # Compute POFILES
12340           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12341           # Compute UPDATEPOFILES
12342           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12343           # Compute DUMMYPOFILES
12344           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12345           # Compute GMOFILES
12346           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12347           case "$ac_given_srcdir" in
12348             .) srcdirpre= ;;
12349             *) srcdirpre='$(srcdir)/' ;;
12350           esac
12351           POFILES=
12352           UPDATEPOFILES=
12353           DUMMYPOFILES=
12354           GMOFILES=
12355           for lang in $ALL_LINGUAS; do
12356             POFILES="$POFILES $srcdirpre$lang.po"
12357             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12358             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12359             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12360           done
12361           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12362           # environment variable.
12363           INST_LINGUAS=
12364           if test -n "$ALL_LINGUAS"; then
12365             for presentlang in $ALL_LINGUAS; do
12366               useit=no
12367               if test "%UNSET%" != "$LINGUAS"; then
12368                 desiredlanguages="$LINGUAS"
12369               else
12370                 desiredlanguages="$ALL_LINGUAS"
12371               fi
12372               for desiredlang in $desiredlanguages; do
12373                 # Use the presentlang catalog if desiredlang is
12374                 #   a. equal to presentlang, or
12375                 #   b. a variant of presentlang (because in this case,
12376                 #      presentlang can be used as a fallback for messages
12377                 #      which are not translated in the desiredlang catalog).
12378                 case "$desiredlang" in
12379                   "$presentlang"*) useit=yes;;
12380                 esac
12381               done
12382               if test $useit = yes; then
12383                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12384               fi
12385             done
12386           fi
12387           CATALOGS=
12388           if test -n "$INST_LINGUAS"; then
12389             for lang in $INST_LINGUAS; do
12390               CATALOGS="$CATALOGS $lang.gmo"
12391             done
12392           fi
12393           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12394           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"
12395           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12396             if test -f "$f"; then
12397               case "$f" in
12398                 *.orig | *.bak | *~) ;;
12399                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12400               esac
12401             fi
12402           done
12403         fi
12404         ;;
12405       esac
12406     done ;;
12407
12408   esac
12409 done # for ac_tag
12410
12411
12412 as_fn_exit 0
12413 _ACEOF
12414 ac_clean_files=$ac_clean_files_save
12415
12416 test $ac_write_fail = 0 ||
12417   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12418
12419
12420 # configure is writing to config.log, and then calls config.status.
12421 # config.status does its own redirection, appending to config.log.
12422 # Unfortunately, on DOS this fails, as config.log is still kept open
12423 # by configure, so config.status won't be able to write to it; its
12424 # output is simply discarded.  So we exec the FD to /dev/null,
12425 # effectively closing config.log, so it can be properly (re)opened and
12426 # appended to by config.status.  When coming back to configure, we
12427 # need to make the FD available again.
12428 if test "$no_create" != yes; then
12429   ac_cs_success=:
12430   ac_config_status_args=
12431   test "$silent" = yes &&
12432     ac_config_status_args="$ac_config_status_args --quiet"
12433   exec 5>/dev/null
12434   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12435   exec 5>>config.log
12436   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12437   # would make configure fail if this is the last instruction.
12438   $ac_cs_success || as_fn_exit $?
12439 fi
12440 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12441   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12442 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12443 fi
12444
12445 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi