Whamcloud - gitweb
Merge branch 'maint' into next
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 gt_needs=
623 ac_header_list=
624 gl_use_threads_default=
625 ac_func_list=
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 BUILD_LDFLAGS
629 BUILD_CFLAGS
630 MKINSTALLDIRS
631 INCLUDES
632 DO_TEST_SUITE
633 ET_DIR
634 SS_DIR
635 LDFLAG_STATIC
636 root_sysconfdir
637 root_libdir
638 root_sbindir
639 root_bindir
640 root_prefix
641 UNIX_CMT
642 CYGWIN_CMT
643 LINUX_CMT
644 UNI_DIFF_OPTS
645 SEM_INIT_LIB
646 SOCKET_LIB
647 SIZEOF_OFF_T
648 SIZEOF_LONG_LONG
649 SIZEOF_LONG
650 SIZEOF_INT
651 SIZEOF_SHORT
652 BUILD_CC
653 MAKEINFO
654 STRIP
655 AR
656 LDCONFIG
657 PERL
658 AWK
659 CHMOD
660 RM
661 CP
662 MV
663 LN_S
664 LN
665 ifNotGNUmake
666 ifGNUmake
667 BINARY_TYPE
668 POSUB
669 LTLIBINTL
670 LIBINTL
671 INTLLIBS
672 INTL_LIBTOOL_SUFFIX_PREFIX
673 INTLOBJS
674 GENCAT
675 INSTOBJEXT
676 DATADIRNAME
677 CATOBJEXT
678 USE_INCLUDED_LIBINTL
679 BUILD_INCLUDED_LIBINTL
680 LTLIBC
681 WINDRES
682 WOE32
683 WOE32DLL
684 HAVE_WPRINTF
685 HAVE_NEWLOCALE
686 HAVE_SNPRINTF
687 HAVE_ASPRINTF
688 HAVE_POSIX_PRINTF
689 INTL_DEFAULT_VERBOSITY
690 INTL_MACOSX_LIBS
691 GLIBC21
692 INTLBISON
693 LTLIBICONV
694 LIBICONV
695 LTLIBMULTITHREAD
696 LIBMULTITHREAD
697 LTLIBTHREAD
698 LIBTHREAD
699 LIBPTH_PREFIX
700 LTLIBPTH
701 LIBPTH
702 PRI_MACROS_BROKEN
703 ALLOCA
704 HAVE_VISIBILITY
705 CFLAG_VISIBILITY
706 RANLIB
707 GLIBC2
708 XGETTEXT_EXTRA_OPTIONS
709 MSGMERGE
710 XGETTEXT_015
711 XGETTEXT
712 GMSGFMT_015
713 MSGFMT_015
714 GMSGFMT
715 MSGFMT
716 GETTEXT_MACRO_VERSION
717 USE_NLS
718 SED
719 MKDIR_P
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 SET_MAKE
724 VERSION
725 PACKAGE
726 GETTEXT_PACKAGE
727 UUIDD_CMT
728 E2INITRD_MAN
729 E2INITRD_PROG
730 FSCK_MAN
731 FSCK_PROG
732 DEFRAG_CMT
733 RESIZER_CMT
734 IMAGER_CMT
735 DEBUGFS_CMT
736 QUOTA_CMT
737 DEPPROFILED_LIBQUOTA
738 PROFILED_LIBQUOTA
739 DEPSTATIC_LIBQUOTA
740 STATIC_LIBQUOTA
741 DEPLIBQUOTA
742 LIBQUOTA
743 QUOTA_MAN_COMMENT
744 BLKID_CMT
745 DEPPROFILED_LIBBLKID
746 PROFILED_LIBBLKID
747 DEPSTATIC_LIBBLKID
748 STATIC_LIBBLKID
749 DEPLIBBLKID
750 LIBBLKID
751 UUID_CMT
752 DEPPROFILED_LIBUUID
753 PROFILED_LIBUUID
754 DEPSTATIC_LIBUUID
755 STATIC_LIBUUID
756 DEPLIBUUID
757 LIBUUID
758 PKG_CONFIG_LIBDIR
759 PKG_CONFIG_PATH
760 PKG_CONFIG
761 TEST_IO_CMT
762 PRIVATE_LIBS_CMT
763 LDFLAG_DYNAMIC
764 PROFILED_LIB_EXT
765 STATIC_LIB_EXT
766 LIB_EXT
767 PROFILE_CMT
768 BSDLIB_CMT
769 ELF_CMT
770 HTREE_CMT
771 Q
772 ES
773 E
774 LINK_BUILD_FLAGS
775 SYMLINK_RELATIVE
776 LINK_INSTALL_FLAGS
777 MAINTAINER_CMT
778 EGREP
779 GREP
780 CPP
781 RDYNAMIC
782 DLOPEN_LIB
783 OBJEXT
784 EXEEXT
785 ac_ct_CC
786 CPPFLAGS
787 LDFLAGS
788 CFLAGS
789 CC
790 host_os
791 host_vendor
792 host_cpu
793 host
794 build_os
795 build_vendor
796 build_cpu
797 build
798 E2FSPROGS_PKGVER
799 E2FSPROGS_VERSION
800 E2FSPROGS_DAY
801 E2FSPROGS_MONTH
802 E2FSPROGS_YEAR
803 target_alias
804 host_alias
805 build_alias
806 LIBS
807 ECHO_T
808 ECHO_N
809 ECHO_C
810 DEFS
811 mandir
812 localedir
813 libdir
814 psdir
815 pdfdir
816 dvidir
817 htmldir
818 infodir
819 docdir
820 oldincludedir
821 includedir
822 localstatedir
823 sharedstatedir
824 sysconfdir
825 datadir
826 datarootdir
827 libexecdir
828 sbindir
829 bindir
830 program_transform_name
831 prefix
832 exec_prefix
833 PACKAGE_URL
834 PACKAGE_BUGREPORT
835 PACKAGE_STRING
836 PACKAGE_VERSION
837 PACKAGE_TARNAME
838 PACKAGE_NAME
839 PATH_SEPARATOR
840 SHELL'
841 ac_subst_files='MCONFIG
842 MAKEFILE_ELF
843 MAKEFILE_BSDLIB
844 MAKEFILE_PROFILE
845 MAKEFILE_LIBRARY
846 ASM_TYPES_HEADER
847 PUBLIC_CONFIG_HEADER'
848 ac_user_opts='
849 enable_option_checking
850 with_diet_libc
851 with_cc
852 with_ccopts
853 with_ldopts
854 with_root_prefix
855 enable_maintainer_mode
856 enable_symlink_install
857 enable_relative_symlinks
858 enable_symlink_relative_symlinks
859 enable_symlink_build
860 enable_verbose_makecmds
861 enable_compression
862 enable_htree
863 enable_elf_shlibs
864 enable_bsd_shlibs
865 enable_profile
866 enable_gcov
867 enable_jbd_debug
868 enable_blkid_debug
869 enable_testio_debug
870 enable_libuuid
871 enable_libblkid
872 enable_quota
873 enable_backtrace
874 enable_debugfs
875 enable_imager
876 enable_resizer
877 enable_defrag
878 enable_fsck
879 enable_e2initrd_helper
880 enable_tls
881 enable_uuidd
882 enable_mmp
883 enable_bmap_stats
884 enable_bmap_stats_ops
885 enable_nls
886 enable_threads
887 with_gnu_ld
888 enable_rpath
889 with_libpth_prefix
890 with_libiconv_prefix
891 with_included_gettext
892 with_libintl_prefix
893 with_multiarch
894 '
895       ac_precious_vars='build_alias
896 host_alias
897 target_alias
898 CC
899 CFLAGS
900 LDFLAGS
901 LIBS
902 CPPFLAGS
903 CPP
904 PKG_CONFIG
905 PKG_CONFIG_PATH
906 PKG_CONFIG_LIBDIR'
907
908
909 # Initialize some variables set by options.
910 ac_init_help=
911 ac_init_version=false
912 ac_unrecognized_opts=
913 ac_unrecognized_sep=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961   # If the previous option needs an argument, assign it.
962   if test -n "$ac_prev"; then
963     eval $ac_prev=\$ac_option
964     ac_prev=
965     continue
966   fi
967
968   case $ac_option in
969   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970   *=)   ac_optarg= ;;
971   *)    ac_optarg=yes ;;
972   esac
973
974   # Accept the important Cygnus configure options, so we can diagnose typos.
975
976   case $ac_dashdash$ac_option in
977   --)
978     ac_dashdash=yes ;;
979
980   -bindir | --bindir | --bindi | --bind | --bin | --bi)
981     ac_prev=bindir ;;
982   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983     bindir=$ac_optarg ;;
984
985   -build | --build | --buil | --bui | --bu)
986     ac_prev=build_alias ;;
987   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988     build_alias=$ac_optarg ;;
989
990   -cache-file | --cache-file | --cache-fil | --cache-fi \
991   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992     ac_prev=cache_file ;;
993   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995     cache_file=$ac_optarg ;;
996
997   --config-cache | -C)
998     cache_file=config.cache ;;
999
1000   -datadir | --datadir | --datadi | --datad)
1001     ac_prev=datadir ;;
1002   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003     datadir=$ac_optarg ;;
1004
1005   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006   | --dataroo | --dataro | --datar)
1007     ac_prev=datarootdir ;;
1008   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010     datarootdir=$ac_optarg ;;
1011
1012   -disable-* | --disable-*)
1013     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016       as_fn_error $? "invalid feature name: $ac_useropt"
1017     ac_useropt_orig=$ac_useropt
1018     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019     case $ac_user_opts in
1020       *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024          ac_unrecognized_sep=', ';;
1025     esac
1026     eval enable_$ac_useropt=no ;;
1027
1028   -docdir | --docdir | --docdi | --doc | --do)
1029     ac_prev=docdir ;;
1030   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031     docdir=$ac_optarg ;;
1032
1033   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034     ac_prev=dvidir ;;
1035   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036     dvidir=$ac_optarg ;;
1037
1038   -enable-* | --enable-*)
1039     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040     # Reject names that are not valid shell variable names.
1041     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042       as_fn_error $? "invalid feature name: $ac_useropt"
1043     ac_useropt_orig=$ac_useropt
1044     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045     case $ac_user_opts in
1046       *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050          ac_unrecognized_sep=', ';;
1051     esac
1052     eval enable_$ac_useropt=\$ac_optarg ;;
1053
1054   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056   | --exec | --exe | --ex)
1057     ac_prev=exec_prefix ;;
1058   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060   | --exec=* | --exe=* | --ex=*)
1061     exec_prefix=$ac_optarg ;;
1062
1063   -gas | --gas | --ga | --g)
1064     # Obsolete; use --with-gas.
1065     with_gas=yes ;;
1066
1067   -help | --help | --hel | --he | -h)
1068     ac_init_help=long ;;
1069   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070     ac_init_help=recursive ;;
1071   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072     ac_init_help=short ;;
1073
1074   -host | --host | --hos | --ho)
1075     ac_prev=host_alias ;;
1076   -host=* | --host=* | --hos=* | --ho=*)
1077     host_alias=$ac_optarg ;;
1078
1079   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080     ac_prev=htmldir ;;
1081   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082   | --ht=*)
1083     htmldir=$ac_optarg ;;
1084
1085   -includedir | --includedir | --includedi | --included | --include \
1086   | --includ | --inclu | --incl | --inc)
1087     ac_prev=includedir ;;
1088   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089   | --includ=* | --inclu=* | --incl=* | --inc=*)
1090     includedir=$ac_optarg ;;
1091
1092   -infodir | --infodir | --infodi | --infod | --info | --inf)
1093     ac_prev=infodir ;;
1094   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095     infodir=$ac_optarg ;;
1096
1097   -libdir | --libdir | --libdi | --libd)
1098     ac_prev=libdir ;;
1099   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100     libdir=$ac_optarg ;;
1101
1102   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103   | --libexe | --libex | --libe)
1104     ac_prev=libexecdir ;;
1105   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106   | --libexe=* | --libex=* | --libe=*)
1107     libexecdir=$ac_optarg ;;
1108
1109   -localedir | --localedir | --localedi | --localed | --locale)
1110     ac_prev=localedir ;;
1111   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112     localedir=$ac_optarg ;;
1113
1114   -localstatedir | --localstatedir | --localstatedi | --localstated \
1115   | --localstate | --localstat | --localsta | --localst | --locals)
1116     ac_prev=localstatedir ;;
1117   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119     localstatedir=$ac_optarg ;;
1120
1121   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122     ac_prev=mandir ;;
1123   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124     mandir=$ac_optarg ;;
1125
1126   -nfp | --nfp | --nf)
1127     # Obsolete; use --without-fp.
1128     with_fp=no ;;
1129
1130   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131   | --no-cr | --no-c | -n)
1132     no_create=yes ;;
1133
1134   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136     no_recursion=yes ;;
1137
1138   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140   | --oldin | --oldi | --old | --ol | --o)
1141     ac_prev=oldincludedir ;;
1142   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145     oldincludedir=$ac_optarg ;;
1146
1147   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148     ac_prev=prefix ;;
1149   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150     prefix=$ac_optarg ;;
1151
1152   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153   | --program-pre | --program-pr | --program-p)
1154     ac_prev=program_prefix ;;
1155   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157     program_prefix=$ac_optarg ;;
1158
1159   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160   | --program-suf | --program-su | --program-s)
1161     ac_prev=program_suffix ;;
1162   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164     program_suffix=$ac_optarg ;;
1165
1166   -program-transform-name | --program-transform-name \
1167   | --program-transform-nam | --program-transform-na \
1168   | --program-transform-n | --program-transform- \
1169   | --program-transform | --program-transfor \
1170   | --program-transfo | --program-transf \
1171   | --program-trans | --program-tran \
1172   | --progr-tra | --program-tr | --program-t)
1173     ac_prev=program_transform_name ;;
1174   -program-transform-name=* | --program-transform-name=* \
1175   | --program-transform-nam=* | --program-transform-na=* \
1176   | --program-transform-n=* | --program-transform-=* \
1177   | --program-transform=* | --program-transfor=* \
1178   | --program-transfo=* | --program-transf=* \
1179   | --program-trans=* | --program-tran=* \
1180   | --progr-tra=* | --program-tr=* | --program-t=*)
1181     program_transform_name=$ac_optarg ;;
1182
1183   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184     ac_prev=pdfdir ;;
1185   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186     pdfdir=$ac_optarg ;;
1187
1188   -psdir | --psdir | --psdi | --psd | --ps)
1189     ac_prev=psdir ;;
1190   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191     psdir=$ac_optarg ;;
1192
1193   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194   | -silent | --silent | --silen | --sile | --sil)
1195     silent=yes ;;
1196
1197   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198     ac_prev=sbindir ;;
1199   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200   | --sbi=* | --sb=*)
1201     sbindir=$ac_optarg ;;
1202
1203   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205   | --sharedst | --shareds | --shared | --share | --shar \
1206   | --sha | --sh)
1207     ac_prev=sharedstatedir ;;
1208   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211   | --sha=* | --sh=*)
1212     sharedstatedir=$ac_optarg ;;
1213
1214   -site | --site | --sit)
1215     ac_prev=site ;;
1216   -site=* | --site=* | --sit=*)
1217     site=$ac_optarg ;;
1218
1219   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220     ac_prev=srcdir ;;
1221   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222     srcdir=$ac_optarg ;;
1223
1224   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225   | --syscon | --sysco | --sysc | --sys | --sy)
1226     ac_prev=sysconfdir ;;
1227   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229     sysconfdir=$ac_optarg ;;
1230
1231   -target | --target | --targe | --targ | --tar | --ta | --t)
1232     ac_prev=target_alias ;;
1233   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234     target_alias=$ac_optarg ;;
1235
1236   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237     verbose=yes ;;
1238
1239   -version | --version | --versio | --versi | --vers | -V)
1240     ac_init_version=: ;;
1241
1242   -with-* | --with-*)
1243     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246       as_fn_error $? "invalid package name: $ac_useropt"
1247     ac_useropt_orig=$ac_useropt
1248     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249     case $ac_user_opts in
1250       *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254          ac_unrecognized_sep=', ';;
1255     esac
1256     eval with_$ac_useropt=\$ac_optarg ;;
1257
1258   -without-* | --without-*)
1259     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260     # Reject names that are not valid shell variable names.
1261     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262       as_fn_error $? "invalid package name: $ac_useropt"
1263     ac_useropt_orig=$ac_useropt
1264     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265     case $ac_user_opts in
1266       *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270          ac_unrecognized_sep=', ';;
1271     esac
1272     eval with_$ac_useropt=no ;;
1273
1274   --x)
1275     # Obsolete; use --with-x.
1276     with_x=yes ;;
1277
1278   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279   | --x-incl | --x-inc | --x-in | --x-i)
1280     ac_prev=x_includes ;;
1281   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283     x_includes=$ac_optarg ;;
1284
1285   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287     ac_prev=x_libraries ;;
1288   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290     x_libraries=$ac_optarg ;;
1291
1292   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1294     ;;
1295
1296   *=*)
1297     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298     # Reject names that are not valid shell variable names.
1299     case $ac_envvar in #(
1300       '' | [0-9]* | *[!_$as_cr_alnum]* )
1301       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1302     esac
1303     eval $ac_envvar=\$ac_optarg
1304     export $ac_envvar ;;
1305
1306   *)
1307     # FIXME: should be removed in autoconf 3.0.
1308     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312     ;;
1313
1314   esac
1315 done
1316
1317 if test -n "$ac_prev"; then
1318   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319   as_fn_error $? "missing argument to $ac_option"
1320 fi
1321
1322 if test -n "$ac_unrecognized_opts"; then
1323   case $enable_option_checking in
1324     no) ;;
1325     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327   esac
1328 fi
1329
1330 # Check all directory arguments for consistency.
1331 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332                 datadir sysconfdir sharedstatedir localstatedir includedir \
1333                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334                 libdir localedir mandir
1335 do
1336   eval ac_val=\$$ac_var
1337   # Remove trailing slashes.
1338   case $ac_val in
1339     */ )
1340       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341       eval $ac_var=\$ac_val;;
1342   esac
1343   # Be sure to have absolute directory names.
1344   case $ac_val in
1345     [\\/$]* | ?:[\\/]* )  continue;;
1346     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347   esac
1348   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360   if test "x$build_alias" = x; then
1361     cross_compiling=maybe
1362   elif test "x$build_alias" != "x$host_alias"; then
1363     cross_compiling=yes
1364   fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376   as_fn_error $? "working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378   as_fn_error $? "pwd does not report name of working directory"
1379
1380
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383   ac_srcdir_defaulted=yes
1384   # Try the directory containing this script, then the parent directory.
1385   ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387          X"$as_myself" : 'X\(//\)[^/]' \| \
1388          X"$as_myself" : 'X\(//\)$' \| \
1389          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)[^/].*/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\/\)$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\).*/{
1404             s//\1/
1405             q
1406           }
1407           s/.*/./; q'`
1408   srcdir=$ac_confdir
1409   if test ! -r "$srcdir/$ac_unique_file"; then
1410     srcdir=..
1411   fi
1412 else
1413   ac_srcdir_defaulted=no
1414 fi
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422         pwd)`
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425   srcdir=.
1426 fi
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1430 case $srcdir in
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 esac
1433 for ac_var in $ac_precious_vars; do
1434   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435   eval ac_env_${ac_var}_value=\$${ac_var}
1436   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438 done
1439
1440 #
1441 # Report the --help message.
1442 #
1443 if test "$ac_init_help" = "long"; then
1444   # Omit some internal or obsolete options to make the list less imposing.
1445   # This message is too long to be a string in the A/UX 3.1 sh.
1446   cat <<_ACEOF
1447 \`configure' configures this package to adapt to many kinds of systems.
1448
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE.  See below for descriptions of some of the useful variables.
1453
1454 Defaults for the options are specified in brackets.
1455
1456 Configuration:
1457   -h, --help              display this help and exit
1458       --help=short        display options specific to this package
1459       --help=recursive    display the short help of all the included packages
1460   -V, --version           display version information and exit
1461   -q, --quiet, --silent   do not print \`checking ...' messages
1462       --cache-file=FILE   cache test results in FILE [disabled]
1463   -C, --config-cache      alias for \`--cache-file=config.cache'
1464   -n, --no-create         do not create output files
1465       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1466
1467 Installation directories:
1468   --prefix=PREFIX         install architecture-independent files in PREFIX
1469                           [$ac_default_prefix]
1470   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1471                           [PREFIX]
1472
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1477
1478 For better control, use the options below.
1479
1480 Fine tuning of the installation directories:
1481   --bindir=DIR            user executables [EPREFIX/bin]
1482   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1483   --libexecdir=DIR        program executables [EPREFIX/libexec]
1484   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1485   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1486   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1487   --libdir=DIR            object code libraries [EPREFIX/lib]
1488   --includedir=DIR        C header files [PREFIX/include]
1489   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1490   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1491   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1492   --infodir=DIR           info documentation [DATAROOTDIR/info]
1493   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1494   --mandir=DIR            man documentation [DATAROOTDIR/man]
1495   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1496   --htmldir=DIR           html documentation [DOCDIR]
1497   --dvidir=DIR            dvi documentation [DOCDIR]
1498   --pdfdir=DIR            pdf documentation [DOCDIR]
1499   --psdir=DIR             ps documentation [DOCDIR]
1500 _ACEOF
1501
1502   cat <<\_ACEOF
1503
1504 System types:
1505   --build=BUILD     configure for building on BUILD [guessed]
1506   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1507 _ACEOF
1508 fi
1509
1510 if test -n "$ac_init_help"; then
1511
1512   cat <<\_ACEOF
1513
1514 Optional Features:
1515   --disable-option-checking  ignore unrecognized --enable/--with options
1516   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518   --enable-maintainer-mode enable makefile rules useful for maintainers
1519   --enable-symlink-install use symlinks when installing instead of hard links
1520   --enable-relative-symlinks use relative symlinks when installing
1521
1522   --enable-symlink-build  use symlinks while building instead of hard links
1523   --enable-verbose-makecmds enable verbose make command output
1524   --enable-compression    enable EXPERIMENTAL compression support
1525   --enable-htree          enable EXPERIMENTAL htree directory support
1526   --enable-elf-shlibs     select ELF shared libraries
1527   --enable-bsd-shlibs     select BSD shared libraries
1528   --enable-profile        build profiling libraries
1529   --enable-gcov           build for coverage testing using gcov
1530   --enable-jbd-debug      enable journal debugging
1531   --enable-blkid-debug    enable blkid debugging
1532   --disable-testio-debug  disable the use of the test I/O manager for debugging
1533   --disable-libuuid       do not build private uuid library
1534   --disable-libblkid      do not build private blkid library
1535   --enable-quota          enable quota support
1536   --disable-backtrace     disable use backtrace
1537   --disable-debugfs       disable support of debugfs program
1538   --disable-imager        disable support of e2image program
1539   --disable-resizer       disable support of e2resize program
1540   --disable-defrag        disable support of e4defrag program
1541   --enable-fsck           build fsck wrapper program
1542   --enable-e2initrd-helper build e2initrd-helper program
1543   --disable-tls           disable use of thread local support
1544   --disable-uuidd         disable building the uuid daemon
1545   --disable-mmp           disable support mmp, Multi Mount Protection
1546   --disable-bmap-stats    disable collection of bitmap stats.
1547   --enable-bmap-stats-ops enable collection of additional bitmap stats
1548   --disable-nls           do not use Native Language Support
1549   --enable-threads={posix|solaris|pth|windows}
1550                           specify multithreading API
1551   --disable-threads       build without multithread safety
1552   --disable-rpath         do not hardcode runtime library paths
1553
1554 Optional Packages:
1555   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557   --with-diet-libc        use diet libc
1558   --with-cc               no longer supported, use CC= instead
1559   --with-ccopts           no longer supported, use CFLAGS= instead
1560   --with-ldopts           no longer supported, use LDFLAGS= instead
1561   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1562   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1564   --without-libpth-prefix     don't search for libpth in includedir and libdir
1565   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1566   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1567   --with-included-gettext use the GNU gettext library included here
1568   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1569   --without-libintl-prefix     don't search for libintl in includedir and libdir
1570   --with-multiarch=ARCH specify the multiarch triplet
1571
1572 Some influential environment variables:
1573   CC          C compiler command
1574   CFLAGS      C compiler flags
1575   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1576               nonstandard directory <lib dir>
1577   LIBS        libraries to pass to the linker, e.g. -l<library>
1578   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579               you have headers in a nonstandard directory <include dir>
1580   CPP         C preprocessor
1581   PKG_CONFIG  path to pkg-config utility
1582   PKG_CONFIG_PATH
1583               directories to add to pkg-config's search path
1584   PKG_CONFIG_LIBDIR
1585               path overriding pkg-config's built-in search path
1586
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1589
1590 Report bugs to the package provider.
1591 _ACEOF
1592 ac_status=$?
1593 fi
1594
1595 if test "$ac_init_help" = "recursive"; then
1596   # If there are subdirs, report their specific --help.
1597   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598     test -d "$ac_dir" ||
1599       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600       continue
1601     ac_builddir=.
1602
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *)
1606   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607   # A ".." for each directory in $ac_dir_suffix.
1608   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609   case $ac_top_builddir_sub in
1610   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612   esac ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1618
1619 case $srcdir in
1620   .)  # We are building in place.
1621     ac_srcdir=.
1622     ac_top_srcdir=$ac_top_builddir_sub
1623     ac_abs_top_srcdir=$ac_pwd ;;
1624   [\\/]* | ?:[\\/]* )  # Absolute name.
1625     ac_srcdir=$srcdir$ac_dir_suffix;
1626     ac_top_srcdir=$srcdir
1627     ac_abs_top_srcdir=$srcdir ;;
1628   *) # Relative name.
1629     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630     ac_top_srcdir=$ac_top_build_prefix$srcdir
1631     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 esac
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635     cd "$ac_dir" || { ac_status=$?; continue; }
1636     # Check for guested configure.
1637     if test -f "$ac_srcdir/configure.gnu"; then
1638       echo &&
1639       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640     elif test -f "$ac_srcdir/configure"; then
1641       echo &&
1642       $SHELL "$ac_srcdir/configure" --help=recursive
1643     else
1644       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645     fi || ac_status=$?
1646     cd "$ac_pwd" || { ac_status=$?; break; }
1647   done
1648 fi
1649
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1652   cat <<\_ACEOF
1653 configure
1654 generated by GNU Autoconf 2.69
1655
1656 Copyright (C) 2012 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1659 _ACEOF
1660   exit
1661 fi
1662
1663 ## ------------------------ ##
1664 ## Autoconf initialization. ##
1665 ## ------------------------ ##
1666
1667 # ac_fn_c_try_compile LINENO
1668 # --------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_compile ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   rm -f conftest.$ac_objext
1674   if { { ac_try="$ac_compile"
1675 case "(($ac_try" in
1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677   *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681   (eval "$ac_compile") 2>conftest.err
1682   ac_status=$?
1683   if test -s conftest.err; then
1684     grep -v '^ *+' conftest.err >conftest.er1
1685     cat conftest.er1 >&5
1686     mv -f conftest.er1 conftest.err
1687   fi
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; } && {
1690          test -z "$ac_c_werror_flag" ||
1691          test ! -s conftest.err
1692        } && test -s conftest.$ac_objext; then :
1693   ac_retval=0
1694 else
1695   $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698         ac_retval=1
1699 fi
1700   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701   as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_compile
1704
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_link ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   rm -f conftest.$ac_objext conftest$ac_exeext
1712   if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_link") 2>conftest.err
1720   ac_status=$?
1721   if test -s conftest.err; then
1722     grep -v '^ *+' conftest.err >conftest.er1
1723     cat conftest.er1 >&5
1724     mv -f conftest.er1 conftest.err
1725   fi
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && {
1728          test -z "$ac_c_werror_flag" ||
1729          test ! -s conftest.err
1730        } && test -s conftest$ac_exeext && {
1731          test "$cross_compiling" = yes ||
1732          test -x conftest$ac_exeext
1733        }; then :
1734   ac_retval=0
1735 else
1736   $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739         ac_retval=1
1740 fi
1741   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743   # interfere with the next link command; also delete a directory that is
1744   # left behind by Apple's compiler.  We do this before executing the actions.
1745   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_link
1750
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_cpp ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   if { { ac_try="$ac_cpp conftest.$ac_ext"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765   ac_status=$?
1766   if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770   fi
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } > conftest.i && {
1773          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774          test ! -s conftest.err
1775        }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781     ac_retval=1
1782 fi
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784   as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_cpp
1787
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1792 # accordingly.
1793 ac_fn_c_check_header_mongrel ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   if eval \${$3+:} false; then :
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800   $as_echo_n "(cached) " >&6
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 else
1806   # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815   ac_header_compiler=yes
1816 else
1817   ac_header_compiler=no
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1822
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h.  */
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831   ac_header_preproc=yes
1832 else
1833   ac_header_preproc=no
1834 fi
1835 rm -f conftest.err conftest.i conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1838
1839 # So?  What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841   yes:no: )
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846     ;;
1847   no:yes:* )
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858     ;;
1859 esac
1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863   $as_echo_n "(cached) " >&6
1864 else
1865   eval "$3=\$ac_header_compiler"
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 fi
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_mongrel
1874
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1879 ac_fn_c_try_run ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885   *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889   (eval "$ac_link") 2>&5
1890   ac_status=$?
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893   { { case "(($ac_try" in
1894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895   *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899   (eval "$ac_try") 2>&5
1900   ac_status=$?
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; }; }; then :
1903   ac_retval=0
1904 else
1905   $as_echo "$as_me: program exited with status $ac_status" >&5
1906        $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909        ac_retval=$ac_status
1910 fi
1911   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913   as_fn_set_status $ac_retval
1914
1915 } # ac_fn_c_try_run
1916
1917 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists and can be compiled using the include files in
1920 # INCLUDES, setting the cache variable VAR accordingly.
1921 ac_fn_c_check_header_compile ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927   $as_echo_n "(cached) " >&6
1928 else
1929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 $4
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935   eval "$3=yes"
1936 else
1937   eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 eval ac_res=\$$3
1942                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946 } # ac_fn_c_check_header_compile
1947
1948 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1949 # -------------------------------------------
1950 # Tests whether TYPE exists after having included INCLUDES, setting cache
1951 # variable VAR accordingly.
1952 ac_fn_c_check_type ()
1953 {
1954   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval \${$3+:} false; then :
1958   $as_echo_n "(cached) " >&6
1959 else
1960   eval "$3=no"
1961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h.  */
1963 $4
1964 int
1965 main ()
1966 {
1967 if (sizeof ($2))
1968          return 0;
1969   ;
1970   return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 int
1978 main ()
1979 {
1980 if (sizeof (($2)))
1981             return 0;
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987
1988 else
1989   eval "$3=yes"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$3
1996                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_type
2001
2002 # ac_fn_c_check_func LINENO FUNC VAR
2003 # ----------------------------------
2004 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2005 ac_fn_c_check_func ()
2006 {
2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011   $as_echo_n "(cached) " >&6
2012 else
2013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2017 #define $2 innocuous_$2
2018
2019 /* System header to define __stub macros and hopefully few prototypes,
2020     which can conflict with char $2 (); below.
2021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2022     <limits.h> exists even on freestanding compilers.  */
2023
2024 #ifdef __STDC__
2025 # include <limits.h>
2026 #else
2027 # include <assert.h>
2028 #endif
2029
2030 #undef $2
2031
2032 /* Override any GCC internal prototype to avoid an error.
2033    Use char because int might match the return type of a GCC
2034    builtin and then its argument prototype would still apply.  */
2035 #ifdef __cplusplus
2036 extern "C"
2037 #endif
2038 char $2 ();
2039 /* The GNU C library defines this for functions which it implements
2040     to always fail with ENOSYS.  Some functions are actually named
2041     something starting with __ and the normal name is an alias.  */
2042 #if defined __stub_$2 || defined __stub___$2
2043 choke me
2044 #endif
2045
2046 int
2047 main ()
2048 {
2049 return $2 ();
2050   ;
2051   return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_link "$LINENO"; then :
2055   eval "$3=yes"
2056 else
2057   eval "$3=no"
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext \
2060     conftest$ac_exeext conftest.$ac_ext
2061 fi
2062 eval ac_res=\$$3
2063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067 } # ac_fn_c_check_func
2068
2069 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2070 # ---------------------------------------------
2071 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2072 # accordingly.
2073 ac_fn_c_check_decl ()
2074 {
2075   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076   as_decl_name=`echo $2|sed 's/ *(.*//'`
2077   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2079 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2080 if eval \${$3+:} false; then :
2081   $as_echo_n "(cached) " >&6
2082 else
2083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h.  */
2085 $4
2086 int
2087 main ()
2088 {
2089 #ifndef $as_decl_name
2090 #ifdef __cplusplus
2091   (void) $as_decl_use;
2092 #else
2093   (void) $as_decl_name;
2094 #endif
2095 #endif
2096
2097   ;
2098   return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102   eval "$3=yes"
2103 else
2104   eval "$3=no"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 eval ac_res=\$$3
2109                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113 } # ac_fn_c_check_decl
2114
2115 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116 # --------------------------------------------
2117 # Tries to find the compile-time value of EXPR in a program that includes
2118 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2119 # computed
2120 ac_fn_c_compute_int ()
2121 {
2122   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123   if test "$cross_compiling" = yes; then
2124     # Depending upon the size, compute the lo and hi bounds.
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h.  */
2127 $4
2128 int
2129 main ()
2130 {
2131 static int test_array [1 - 2 * !(($2) >= 0)];
2132 test_array [0] = 0;
2133 return test_array [0];
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140   ac_lo=0 ac_mid=0
2141   while :; do
2142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h.  */
2144 $4
2145 int
2146 main ()
2147 {
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 test_array [0] = 0;
2150 return test_array [0];
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157   ac_hi=$ac_mid; break
2158 else
2159   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2160                         if test $ac_lo -le $ac_mid; then
2161                           ac_lo= ac_hi=
2162                           break
2163                         fi
2164                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167   done
2168 else
2169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h.  */
2171 $4
2172 int
2173 main ()
2174 {
2175 static int test_array [1 - 2 * !(($2) < 0)];
2176 test_array [0] = 0;
2177 return test_array [0];
2178
2179   ;
2180   return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184   ac_hi=-1 ac_mid=-1
2185   while :; do
2186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h.  */
2188 $4
2189 int
2190 main ()
2191 {
2192 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2193 test_array [0] = 0;
2194 return test_array [0];
2195
2196   ;
2197   return 0;
2198 }
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201   ac_lo=$ac_mid; break
2202 else
2203   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2204                         if test $ac_mid -le $ac_hi; then
2205                           ac_lo= ac_hi=
2206                           break
2207                         fi
2208                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211   done
2212 else
2213   ac_lo= ac_hi=
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 # Binary search between lo and hi bounds.
2219 while test "x$ac_lo" != "x$ac_hi"; do
2220   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 int
2225 main ()
2226 {
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228 test_array [0] = 0;
2229 return test_array [0];
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236   ac_hi=$ac_mid
2237 else
2238   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 done
2242 case $ac_lo in #((
2243 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2244 '') ac_retval=1 ;;
2245 esac
2246   else
2247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $4
2250 static long int longval () { return $2; }
2251 static unsigned long int ulongval () { return $2; }
2252 #include <stdio.h>
2253 #include <stdlib.h>
2254 int
2255 main ()
2256 {
2257
2258   FILE *f = fopen ("conftest.val", "w");
2259   if (! f)
2260     return 1;
2261   if (($2) < 0)
2262     {
2263       long int i = longval ();
2264       if (i != ($2))
2265         return 1;
2266       fprintf (f, "%ld", i);
2267     }
2268   else
2269     {
2270       unsigned long int i = ulongval ();
2271       if (i != ($2))
2272         return 1;
2273       fprintf (f, "%lu", i);
2274     }
2275   /* Do not output a trailing newline, as this causes \r\n confusion
2276      on some platforms.  */
2277   return ferror (f) || fclose (f) != 0;
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_run "$LINENO"; then :
2284   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2285 else
2286   ac_retval=1
2287 fi
2288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2289   conftest.$ac_objext conftest.beam conftest.$ac_ext
2290 rm -f conftest.val
2291
2292   fi
2293   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294   as_fn_set_status $ac_retval
2295
2296 } # ac_fn_c_compute_int
2297
2298 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2299 # ----------------------------------------------------
2300 # Tries to find if the field MEMBER exists in type AGGR, after including
2301 # INCLUDES, setting cache variable VAR accordingly.
2302 ac_fn_c_check_member ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2306 $as_echo_n "checking for $2.$3... " >&6; }
2307 if eval \${$4+:} false; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h.  */
2312 $5
2313 int
2314 main ()
2315 {
2316 static $2 ac_aggr;
2317 if (ac_aggr.$3)
2318 return 0;
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324   eval "$4=yes"
2325 else
2326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h.  */
2328 $5
2329 int
2330 main ()
2331 {
2332 static $2 ac_aggr;
2333 if (sizeof ac_aggr.$3)
2334 return 0;
2335   ;
2336   return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_c_try_compile "$LINENO"; then :
2340   eval "$4=yes"
2341 else
2342   eval "$4=no"
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 fi
2348 eval ac_res=\$$4
2349                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352
2353 } # ac_fn_c_check_member
2354 cat >config.log <<_ACEOF
2355 This file contains any messages produced by compilers while
2356 running configure, to aid debugging if configure makes a mistake.
2357
2358 It was created by $as_me, which was
2359 generated by GNU Autoconf 2.69.  Invocation command line was
2360
2361   $ $0 $@
2362
2363 _ACEOF
2364 exec 5>>config.log
2365 {
2366 cat <<_ASUNAME
2367 ## --------- ##
2368 ## Platform. ##
2369 ## --------- ##
2370
2371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376
2377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2379
2380 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2381 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2383 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2384 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2385 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2386 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2387
2388 _ASUNAME
2389
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395     $as_echo "PATH: $as_dir"
2396   done
2397 IFS=$as_save_IFS
2398
2399 } >&5
2400
2401 cat >&5 <<_ACEOF
2402
2403
2404 ## ----------- ##
2405 ## Core tests. ##
2406 ## ----------- ##
2407
2408 _ACEOF
2409
2410
2411 # Keep a trace of the command line.
2412 # Strip out --no-create and --no-recursion so they do not pile up.
2413 # Strip out --silent because we don't want to record it for future runs.
2414 # Also quote any args containing shell meta-characters.
2415 # Make two passes to allow for proper duplicate-argument suppression.
2416 ac_configure_args=
2417 ac_configure_args0=
2418 ac_configure_args1=
2419 ac_must_keep_next=false
2420 for ac_pass in 1 2
2421 do
2422   for ac_arg
2423   do
2424     case $ac_arg in
2425     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427     | -silent | --silent | --silen | --sile | --sil)
2428       continue ;;
2429     *\'*)
2430       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2431     esac
2432     case $ac_pass in
2433     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2434     2)
2435       as_fn_append ac_configure_args1 " '$ac_arg'"
2436       if test $ac_must_keep_next = true; then
2437         ac_must_keep_next=false # Got value, back to normal.
2438       else
2439         case $ac_arg in
2440           *=* | --config-cache | -C | -disable-* | --disable-* \
2441           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443           | -with-* | --with-* | -without-* | --without-* | --x)
2444             case "$ac_configure_args0 " in
2445               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2446             esac
2447             ;;
2448           -* ) ac_must_keep_next=true ;;
2449         esac
2450       fi
2451       as_fn_append ac_configure_args " '$ac_arg'"
2452       ;;
2453     esac
2454   done
2455 done
2456 { ac_configure_args0=; unset ac_configure_args0;}
2457 { ac_configure_args1=; unset ac_configure_args1;}
2458
2459 # When interrupted or exit'd, cleanup temporary files, and complete
2460 # config.log.  We remove comments because anyway the quotes in there
2461 # would cause problems or look ugly.
2462 # WARNING: Use '\'' to represent an apostrophe within the trap.
2463 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2464 trap 'exit_status=$?
2465   # Save into config.log some information that might help in debugging.
2466   {
2467     echo
2468
2469     $as_echo "## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##"
2472     echo
2473     # The following way of writing the cache mishandles newlines in values,
2474 (
2475   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2476     eval ac_val=\$$ac_var
2477     case $ac_val in #(
2478     *${as_nl}*)
2479       case $ac_var in #(
2480       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2482       esac
2483       case $ac_var in #(
2484       _ | IFS | as_nl) ;; #(
2485       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2486       *) { eval $ac_var=; unset $ac_var;} ;;
2487       esac ;;
2488     esac
2489   done
2490   (set) 2>&1 |
2491     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2492     *${as_nl}ac_space=\ *)
2493       sed -n \
2494         "s/'\''/'\''\\\\'\'''\''/g;
2495           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2496       ;; #(
2497     *)
2498       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2499       ;;
2500     esac |
2501     sort
2502 )
2503     echo
2504
2505     $as_echo "## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##"
2508     echo
2509     for ac_var in $ac_subst_vars
2510     do
2511       eval ac_val=\$$ac_var
2512       case $ac_val in
2513       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514       esac
2515       $as_echo "$ac_var='\''$ac_val'\''"
2516     done | sort
2517     echo
2518
2519     if test -n "$ac_subst_files"; then
2520       $as_echo "## ------------------- ##
2521 ## File substitutions. ##
2522 ## ------------------- ##"
2523       echo
2524       for ac_var in $ac_subst_files
2525       do
2526         eval ac_val=\$$ac_var
2527         case $ac_val in
2528         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529         esac
2530         $as_echo "$ac_var='\''$ac_val'\''"
2531       done | sort
2532       echo
2533     fi
2534
2535     if test -s confdefs.h; then
2536       $as_echo "## ----------- ##
2537 ## confdefs.h. ##
2538 ## ----------- ##"
2539       echo
2540       cat confdefs.h
2541       echo
2542     fi
2543     test "$ac_signal" != 0 &&
2544       $as_echo "$as_me: caught signal $ac_signal"
2545     $as_echo "$as_me: exit $exit_status"
2546   } >&5
2547   rm -f core *.core core.conftest.* &&
2548     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2549     exit $exit_status
2550 ' 0
2551 for ac_signal in 1 2 13 15; do
2552   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2553 done
2554 ac_signal=0
2555
2556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2557 rm -f -r conftest* confdefs.h
2558
2559 $as_echo "/* confdefs.h */" > confdefs.h
2560
2561 # Predefined preprocessor variables.
2562
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_NAME "$PACKAGE_NAME"
2565 _ACEOF
2566
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2569 _ACEOF
2570
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2573 _ACEOF
2574
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_STRING "$PACKAGE_STRING"
2577 _ACEOF
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2581 _ACEOF
2582
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_URL "$PACKAGE_URL"
2585 _ACEOF
2586
2587
2588 # Let the site file select an alternate cache file if it wants to.
2589 # Prefer an explicitly selected file to automatically selected ones.
2590 ac_site_file1=NONE
2591 ac_site_file2=NONE
2592 if test -n "$CONFIG_SITE"; then
2593   # We do not want a PATH search for config.site.
2594   case $CONFIG_SITE in #((
2595     -*)  ac_site_file1=./$CONFIG_SITE;;
2596     */*) ac_site_file1=$CONFIG_SITE;;
2597     *)   ac_site_file1=./$CONFIG_SITE;;
2598   esac
2599 elif test "x$prefix" != xNONE; then
2600   ac_site_file1=$prefix/share/config.site
2601   ac_site_file2=$prefix/etc/config.site
2602 else
2603   ac_site_file1=$ac_default_prefix/share/config.site
2604   ac_site_file2=$ac_default_prefix/etc/config.site
2605 fi
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2607 do
2608   test "x$ac_site_file" = xNONE && continue
2609   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2610     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612     sed 's/^/| /' "$ac_site_file" >&5
2613     . "$ac_site_file" \
2614       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 as_fn_error $? "failed to load site script $ac_site_file
2617 See \`config.log' for more details" "$LINENO" 5; }
2618   fi
2619 done
2620
2621 if test -r "$cache_file"; then
2622   # Some versions of bash will fail to source /dev/null (special files
2623   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2624   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2626 $as_echo "$as_me: loading cache $cache_file" >&6;}
2627     case $cache_file in
2628       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629       *)                      . "./$cache_file";;
2630     esac
2631   fi
2632 else
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2634 $as_echo "$as_me: creating cache $cache_file" >&6;}
2635   >$cache_file
2636 fi
2637
2638 gt_needs="$gt_needs "
2639 as_fn_append ac_header_list " stdlib.h"
2640 as_fn_append ac_header_list " unistd.h"
2641 as_fn_append ac_header_list " sys/param.h"
2642 as_fn_append ac_func_list " symlink"
2643 # Check that the precious variables saved in the cache have kept the same
2644 # value.
2645 ac_cache_corrupted=false
2646 for ac_var in $ac_precious_vars; do
2647   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648   eval ac_new_set=\$ac_env_${ac_var}_set
2649   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650   eval ac_new_val=\$ac_env_${ac_var}_value
2651   case $ac_old_set,$ac_new_set in
2652     set,)
2653       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2655       ac_cache_corrupted=: ;;
2656     ,set)
2657       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2658 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2659       ac_cache_corrupted=: ;;
2660     ,);;
2661     *)
2662       if test "x$ac_old_val" != "x$ac_new_val"; then
2663         # differences in whitespace do not lead to failure.
2664         ac_old_val_w=`echo x $ac_old_val`
2665         ac_new_val_w=`echo x $ac_new_val`
2666         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2668 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669           ac_cache_corrupted=:
2670         else
2671           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2672 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673           eval $ac_var=\$ac_old_val
2674         fi
2675         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2676 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2677         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2678 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2679       fi;;
2680   esac
2681   # Pass precious variables to config.status.
2682   if test "$ac_new_set" = set; then
2683     case $ac_new_val in
2684     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685     *) ac_arg=$ac_var=$ac_new_val ;;
2686     esac
2687     case " $ac_configure_args " in
2688       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2689       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690     esac
2691   fi
2692 done
2693 if $ac_cache_corrupted; then
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2698   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2699 fi
2700 ## -------------------- ##
2701 ## Main body of script. ##
2702 ## -------------------- ##
2703
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710
2711
2712 ac_aux_dir=
2713 for ac_dir in config "$srcdir"/config; do
2714   if test -f "$ac_dir/install-sh"; then
2715     ac_aux_dir=$ac_dir
2716     ac_install_sh="$ac_aux_dir/install-sh -c"
2717     break
2718   elif test -f "$ac_dir/install.sh"; then
2719     ac_aux_dir=$ac_dir
2720     ac_install_sh="$ac_aux_dir/install.sh -c"
2721     break
2722   elif test -f "$ac_dir/shtool"; then
2723     ac_aux_dir=$ac_dir
2724     ac_install_sh="$ac_aux_dir/shtool install -c"
2725     break
2726   fi
2727 done
2728 if test -z "$ac_aux_dir"; then
2729   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2730 fi
2731
2732 # These three variables are undocumented and unsupported,
2733 # and are intended to be withdrawn in a future Autoconf release.
2734 # They can cause serious problems if a builder's source tree is in a directory
2735 # whose full name contains unusual characters.
2736 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2737 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2738 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2739
2740
2741 ac_config_headers="$ac_config_headers lib/config.h"
2742
2743
2744 MCONFIG=./MCONFIG
2745
2746 BINARY_TYPE=bin
2747 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2748         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2749 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2750         | tr \" " "`
2751 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2752 MONTH=`echo $DATE | awk -F- '{print $2}'`
2753 YEAR=`echo $DATE | awk -F- '{print $3}'`
2754
2755 if expr $YEAR ">" 1900 > /dev/null ; then
2756         E2FSPROGS_YEAR=$YEAR
2757 elif expr $YEAR ">" 90 >/dev/null ; then
2758         E2FSPROGS_YEAR=19$YEAR
2759 else
2760         E2FSPROGS_YEAR=20$YEAR
2761 fi
2762
2763 case $MONTH in
2764 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2765 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2766 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2767 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2768 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2769 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2770 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2771 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2772 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2773 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2774 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2775 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2776 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2777 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2778 esac
2779
2780 base_ver=`echo $E2FSPROGS_VERSION | \
2781                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2782
2783 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2784
2785 case $E2FSPROGS_VERSION in
2786 *-WIP|pre-*)
2787         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2788         ;;
2789 *)
2790         E2FSPROGS_PKGVER="$base_ver"
2791         ;;
2792 esac
2793
2794 unset DATE MONTH YEAR base_ver pre_vers date_spec
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2796 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2798 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2799
2800
2801
2802
2803
2804 WITH_DIET_LIBC=
2805
2806 # Check whether --with-diet-libc was given.
2807 if test "${with_diet_libc+set}" = set; then :
2808   withval=$with_diet_libc; CC="diet cc -nostdinc"
2809 WITH_DIET_LIBC=yes
2810 if test -z "$LIBS"
2811 then
2812         LIBS="-lcompat"
2813 else
2814         LIBS="$LIBS -lcompat"
2815 fi
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2817 $as_echo "CC=$CC" >&6; }
2818 fi
2819 # Make sure we can run config.sub.
2820 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2821   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2824 $as_echo_n "checking build system type... " >&6; }
2825 if ${ac_cv_build+:} false; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   ac_build_alias=$build_alias
2829 test "x$ac_build_alias" = x &&
2830   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2831 test "x$ac_build_alias" = x &&
2832   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2833 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2834   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2835
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2838 $as_echo "$ac_cv_build" >&6; }
2839 case $ac_cv_build in
2840 *-*-*) ;;
2841 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2842 esac
2843 build=$ac_cv_build
2844 ac_save_IFS=$IFS; IFS='-'
2845 set x $ac_cv_build
2846 shift
2847 build_cpu=$1
2848 build_vendor=$2
2849 shift; shift
2850 # Remember, the first character of IFS is used to create $*,
2851 # except with old shells:
2852 build_os=$*
2853 IFS=$ac_save_IFS
2854 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2855
2856
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2858 $as_echo_n "checking host system type... " >&6; }
2859 if ${ac_cv_host+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test "x$host_alias" = x; then
2863   ac_cv_host=$ac_cv_build
2864 else
2865   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2866     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2867 fi
2868
2869 fi
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2871 $as_echo "$ac_cv_host" >&6; }
2872 case $ac_cv_host in
2873 *-*-*) ;;
2874 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2875 esac
2876 host=$ac_cv_host
2877 ac_save_IFS=$IFS; IFS='-'
2878 set x $ac_cv_host
2879 shift
2880 host_cpu=$1
2881 host_vendor=$2
2882 shift; shift
2883 # Remember, the first character of IFS is used to create $*,
2884 # except with old shells:
2885 host_os=$*
2886 IFS=$ac_save_IFS
2887 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2888
2889
2890 DLOPEN_LIB=''
2891 ac_ext=c
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896 if test -n "$ac_tool_prefix"; then
2897   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}gcc; 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 ${ac_cv_prog_CC+:} false; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910   IFS=$as_save_IFS
2911   test -z "$as_dir" && as_dir=.
2912     for ac_exec_ext in '' $ac_executable_extensions; do
2913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916     break 2
2917   fi
2918 done
2919   done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2928 else
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934 fi
2935 if test -z "$ac_cv_prog_CC"; then
2936   ac_ct_CC=$CC
2937   # Extract the first word of "gcc", so it can be a program name with args.
2938 set dummy gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2942   $as_echo_n "(cached) " >&6
2943 else
2944   if test -n "$ac_ct_CC"; then
2945   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952     for ac_exec_ext in '' $ac_executable_extensions; do
2953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954     ac_cv_prog_ac_ct_CC="gcc"
2955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959   done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965 if test -n "$ac_ct_CC"; then
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2967 $as_echo "$ac_ct_CC" >&6; }
2968 else
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973   if test "x$ac_ct_CC" = x; then
2974     CC=""
2975   else
2976     case $cross_compiling:$ac_tool_warned in
2977 yes:)
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2981 esac
2982     CC=$ac_ct_CC
2983   fi
2984 else
2985   CC="$ac_cv_prog_CC"
2986 fi
2987
2988 if test -z "$CC"; then
2989           if test -n "$ac_tool_prefix"; then
2990     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}cc; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_CC+:} false; then :
2995   $as_echo_n "(cached) " >&6
2996 else
2997   if test -n "$CC"; then
2998   ac_cv_prog_CC="$CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003   IFS=$as_save_IFS
3004   test -z "$as_dir" && as_dir=.
3005     for ac_exec_ext in '' $ac_executable_extensions; do
3006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007     ac_cv_prog_CC="${ac_tool_prefix}cc"
3008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009     break 2
3010   fi
3011 done
3012   done
3013 IFS=$as_save_IFS
3014
3015 fi
3016 fi
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3021 else
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 fi
3025
3026
3027   fi
3028 fi
3029 if test -z "$CC"; then
3030   # Extract the first word of "cc", so it can be a program name with args.
3031 set dummy cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035   $as_echo_n "(cached) " >&6
3036 else
3037   if test -n "$CC"; then
3038   ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040   ac_prog_rejected=no
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046     for ac_exec_ext in '' $ac_executable_extensions; do
3047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3049        ac_prog_rejected=yes
3050        continue
3051      fi
3052     ac_cv_prog_CC="cc"
3053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057   done
3058 IFS=$as_save_IFS
3059
3060 if test $ac_prog_rejected = yes; then
3061   # We found a bogon in the path, so make sure we never use it.
3062   set dummy $ac_cv_prog_CC
3063   shift
3064   if test $# != 0; then
3065     # We chose a different compiler from the bogus one.
3066     # However, it has the same basename, so the bogon will be chosen
3067     # first if we set CC to just the basename; use the full file name.
3068     shift
3069     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3070   fi
3071 fi
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084 fi
3085 if test -z "$CC"; then
3086   if test -n "$ac_tool_prefix"; then
3087   for ac_prog in cl.exe
3088   do
3089     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094   $as_echo_n "(cached) " >&6
3095 else
3096   if test -n "$CC"; then
3097   ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104     for ac_exec_ext in '' $ac_executable_extensions; do
3105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111   done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126     test -n "$CC" && break
3127   done
3128 fi
3129 if test -z "$CC"; then
3130   ac_ct_CC=$CC
3131   for ac_prog in cl.exe
3132 do
3133   # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy $ac_prog; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$ac_ct_CC"; then
3141   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148     for ac_exec_ext in '' $ac_executable_extensions; do
3149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150     ac_cv_prog_ac_ct_CC="$ac_prog"
3151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155   done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3164 else
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170   test -n "$ac_ct_CC" && break
3171 done
3172
3173   if test "x$ac_ct_CC" = x; then
3174     CC=""
3175   else
3176     case $cross_compiling:$ac_tool_warned in
3177 yes:)
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned=yes ;;
3181 esac
3182     CC=$ac_ct_CC
3183   fi
3184 fi
3185
3186 fi
3187
3188
3189 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "no acceptable C compiler found in \$PATH
3192 See \`config.log' for more details" "$LINENO" 5; }
3193
3194 # Provide some information about the compiler.
3195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3196 set X $ac_compile
3197 ac_compiler=$2
3198 for ac_option in --version -v -V -qversion; do
3199   { { ac_try="$ac_compiler $ac_option >&5"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3207   ac_status=$?
3208   if test -s conftest.err; then
3209     sed '10a\
3210 ... rest of stderr output deleted ...
3211          10q' conftest.err >conftest.er1
3212     cat conftest.er1 >&5
3213   fi
3214   rm -f conftest.er1 conftest.err
3215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216   test $ac_status = 0; }
3217 done
3218
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 ac_clean_files_save=$ac_clean_files
3231 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3232 # Try to create an executable without -o first, disregard a.out.
3233 # It will help us diagnose broken compilers, and finding out an intuition
3234 # of exeext.
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3236 $as_echo_n "checking whether the C compiler works... " >&6; }
3237 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3238
3239 # The possible output files:
3240 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3241
3242 ac_rmfiles=
3243 for ac_file in $ac_files
3244 do
3245   case $ac_file in
3246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3247     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3248   esac
3249 done
3250 rm -f $ac_rmfiles
3251
3252 if { { ac_try="$ac_link_default"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259   (eval "$ac_link_default") 2>&5
3260   ac_status=$?
3261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262   test $ac_status = 0; }; then :
3263   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3266 # so that the user can short-circuit this test for compilers unknown to
3267 # Autoconf.
3268 for ac_file in $ac_files ''
3269 do
3270   test -f "$ac_file" || continue
3271   case $ac_file in
3272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3273         ;;
3274     [ab].out )
3275         # We found the default executable, but exeext='' is most
3276         # certainly right.
3277         break;;
3278     *.* )
3279         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3280         then :; else
3281            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282         fi
3283         # We set ac_cv_exeext here because the later test for it is not
3284         # safe: cross compilers may not add the suffix if given an `-o'
3285         # argument, so we may need to know it at that point already.
3286         # Even if this section looks crufty: it has the advantage of
3287         # actually working.
3288         break;;
3289     * )
3290         break;;
3291   esac
3292 done
3293 test "$ac_cv_exeext" = no && ac_cv_exeext=
3294
3295 else
3296   ac_file=''
3297 fi
3298 if test -z "$ac_file"; then :
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 $as_echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error 77 "C compiler cannot create executables
3307 See \`config.log' for more details" "$LINENO" 5; }
3308 else
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3313 $as_echo_n "checking for C compiler default output file name... " >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 ac_exeext=$ac_cv_exeext
3317
3318 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3319 ac_clean_files=$ac_clean_files_save
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3321 $as_echo_n "checking for suffix of executables... " >&6; }
3322 if { { ac_try="$ac_link"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329   (eval "$ac_link") 2>&5
3330   ac_status=$?
3331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332   test $ac_status = 0; }; then :
3333   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3334 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3335 # work properly (i.e., refer to `conftest.exe'), while it won't with
3336 # `rm'.
3337 for ac_file in conftest.exe conftest conftest.*; do
3338   test -f "$ac_file" || continue
3339   case $ac_file in
3340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3341     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342           break;;
3343     * ) break;;
3344   esac
3345 done
3346 else
3347   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3350 See \`config.log' for more details" "$LINENO" 5; }
3351 fi
3352 rm -f conftest conftest$ac_cv_exeext
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3354 $as_echo "$ac_cv_exeext" >&6; }
3355
3356 rm -f conftest.$ac_ext
3357 EXEEXT=$ac_cv_exeext
3358 ac_exeext=$EXEEXT
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h.  */
3361 #include <stdio.h>
3362 int
3363 main ()
3364 {
3365 FILE *f = fopen ("conftest.out", "w");
3366  return ferror (f) || fclose (f) != 0;
3367
3368   ;
3369   return 0;
3370 }
3371 _ACEOF
3372 ac_clean_files="$ac_clean_files conftest.out"
3373 # Check that the compiler produces executables we can run.  If not, either
3374 # the compiler is broken, or we cross compile.
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3376 $as_echo_n "checking whether we are cross compiling... " >&6; }
3377 if test "$cross_compiling" != yes; then
3378   { { ac_try="$ac_link"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385   (eval "$ac_link") 2>&5
3386   ac_status=$?
3387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388   test $ac_status = 0; }
3389   if { ac_try='./conftest$ac_cv_exeext'
3390   { { case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396   (eval "$ac_try") 2>&5
3397   ac_status=$?
3398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399   test $ac_status = 0; }; }; then
3400     cross_compiling=no
3401   else
3402     if test "$cross_compiling" = maybe; then
3403         cross_compiling=yes
3404     else
3405         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error $? "cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details" "$LINENO" 5; }
3410     fi
3411   fi
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414 $as_echo "$cross_compiling" >&6; }
3415
3416 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3417 ac_clean_files=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3419 $as_echo_n "checking for suffix of object files... " >&6; }
3420 if ${ac_cv_objext+:} false; then :
3421   $as_echo_n "(cached) " >&6
3422 else
3423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h.  */
3425
3426 int
3427 main ()
3428 {
3429
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.o conftest.obj
3435 if { { ac_try="$ac_compile"
3436 case "(($ac_try" in
3437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438   *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442   (eval "$ac_compile") 2>&5
3443   ac_status=$?
3444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445   test $ac_status = 0; }; then :
3446   for ac_file in conftest.o conftest.obj conftest.*; do
3447   test -f "$ac_file" || continue;
3448   case $ac_file in
3449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3451        break;;
3452   esac
3453 done
3454 else
3455   $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $? "cannot compute suffix of object files: cannot compile
3461 See \`config.log' for more details" "$LINENO" 5; }
3462 fi
3463 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3466 $as_echo "$ac_cv_objext" >&6; }
3467 OBJEXT=$ac_cv_objext
3468 ac_objext=$OBJEXT
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3470 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3471 if ${ac_cv_c_compiler_gnu+:} false; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h.  */
3476
3477 int
3478 main ()
3479 {
3480 #ifndef __GNUC__
3481        choke me
3482 #endif
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489   ac_compiler_gnu=yes
3490 else
3491   ac_compiler_gnu=no
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3495
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3498 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3499 if test $ac_compiler_gnu = yes; then
3500   GCC=yes
3501 else
3502   GCC=
3503 fi
3504 ac_test_CFLAGS=${CFLAGS+set}
3505 ac_save_CFLAGS=$CFLAGS
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3507 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3508 if ${ac_cv_prog_cc_g+:} false; then :
3509   $as_echo_n "(cached) " >&6
3510 else
3511   ac_save_c_werror_flag=$ac_c_werror_flag
3512    ac_c_werror_flag=yes
3513    ac_cv_prog_cc_g=no
3514    CFLAGS="-g"
3515    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h.  */
3517
3518 int
3519 main ()
3520 {
3521
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527   ac_cv_prog_cc_g=yes
3528 else
3529   CFLAGS=""
3530       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3542
3543 else
3544   ac_c_werror_flag=$ac_save_c_werror_flag
3545          CFLAGS="-g"
3546          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h.  */
3548
3549 int
3550 main ()
3551 {
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558   ac_cv_prog_cc_g=yes
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565    ac_c_werror_flag=$ac_save_c_werror_flag
3566 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3568 $as_echo "$ac_cv_prog_cc_g" >&6; }
3569 if test "$ac_test_CFLAGS" = set; then
3570   CFLAGS=$ac_save_CFLAGS
3571 elif test $ac_cv_prog_cc_g = yes; then
3572   if test "$GCC" = yes; then
3573     CFLAGS="-g -O2"
3574   else
3575     CFLAGS="-g"
3576   fi
3577 else
3578   if test "$GCC" = yes; then
3579     CFLAGS="-O2"
3580   else
3581     CFLAGS=
3582   fi
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3585 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3586 if ${ac_cv_prog_cc_c89+:} false; then :
3587   $as_echo_n "(cached) " >&6
3588 else
3589   ac_cv_prog_cc_c89=no
3590 ac_save_CC=$CC
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593 #include <stdarg.h>
3594 #include <stdio.h>
3595 struct stat;
3596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3597 struct buf { int x; };
3598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599 static char *e (p, i)
3600      char **p;
3601      int i;
3602 {
3603   return p[i];
3604 }
3605 static char *f (char * (*g) (char **, int), char **p, ...)
3606 {
3607   char *s;
3608   va_list v;
3609   va_start (v,p);
3610   s = g (p, va_arg (v,int));
3611   va_end (v);
3612   return s;
3613 }
3614
3615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3616    function prototypes and stuff, but not '\xHH' hex character constants.
3617    These don't provoke an error unfortunately, instead are silently treated
3618    as 'x'.  The following induces an error, until -std is added to get
3619    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3620    array size at least.  It's necessary to write '\x00'==0 to get something
3621    that's true only with -std.  */
3622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3623
3624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625    inside strings and character constants.  */
3626 #define FOO(x) 'x'
3627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3628
3629 int test (int i, double x);
3630 struct s1 {int (*f) (int a);};
3631 struct s2 {int (*f) (double a);};
3632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3633 int argc;
3634 char **argv;
3635 int
3636 main ()
3637 {
3638 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3639   ;
3640   return 0;
3641 }
3642 _ACEOF
3643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3645 do
3646   CC="$ac_save_CC $ac_arg"
3647   if ac_fn_c_try_compile "$LINENO"; then :
3648   ac_cv_prog_cc_c89=$ac_arg
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext
3651   test "x$ac_cv_prog_cc_c89" != "xno" && break
3652 done
3653 rm -f conftest.$ac_ext
3654 CC=$ac_save_CC
3655
3656 fi
3657 # AC_CACHE_VAL
3658 case "x$ac_cv_prog_cc_c89" in
3659   x)
3660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3661 $as_echo "none needed" >&6; } ;;
3662   xno)
3663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664 $as_echo "unsupported" >&6; } ;;
3665   *)
3666     CC="$CC $ac_cv_prog_cc_c89"
3667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3668 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3669 esac
3670 if test "x$ac_cv_prog_cc_c89" != xno; then :
3671
3672 fi
3673
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3682 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3683 if ${ac_cv_lib_dl_dlopen+:} false; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   ac_check_lib_save_LIBS=$LIBS
3687 LIBS="-ldl  $LIBS"
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h.  */
3690
3691 /* Override any GCC internal prototype to avoid an error.
3692    Use char because int might match the return type of a GCC
3693    builtin and then its argument prototype would still apply.  */
3694 #ifdef __cplusplus
3695 extern "C"
3696 #endif
3697 char dlopen ();
3698 int
3699 main ()
3700 {
3701 return dlopen ();
3702   ;
3703   return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_link "$LINENO"; then :
3707   ac_cv_lib_dl_dlopen=yes
3708 else
3709   ac_cv_lib_dl_dlopen=no
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext \
3712     conftest$ac_exeext conftest.$ac_ext
3713 LIBS=$ac_check_lib_save_LIBS
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3716 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3717 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3718   DLOPEN_LIB=-ldl
3719
3720 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3721
3722 fi
3723
3724
3725
3726 # Check whether --with-cc was given.
3727 if test "${with_cc+set}" = set; then :
3728   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3729 fi
3730
3731
3732 # Check whether --with-ccopts was given.
3733 if test "${with_ccopts+set}" = set; then :
3734   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3735 fi
3736
3737
3738 # Check whether --with-ldopts was given.
3739 if test "${with_ldopts+set}" = set; then :
3740   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3741 fi
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 if test -n "$ac_tool_prefix"; then
3749   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_CC+:} false; then :
3754   $as_echo_n "(cached) " >&6
3755 else
3756   if test -n "$CC"; then
3757   ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762   IFS=$as_save_IFS
3763   test -z "$as_dir" && as_dir=.
3764     for ac_exec_ext in '' $ac_executable_extensions; do
3765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768     break 2
3769   fi
3770 done
3771   done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 CC=$ac_cv_prog_CC
3777 if test -n "$CC"; then
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779 $as_echo "$CC" >&6; }
3780 else
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 fi
3784
3785
3786 fi
3787 if test -z "$ac_cv_prog_CC"; then
3788   ac_ct_CC=$CC
3789   # Extract the first word of "gcc", so it can be a program name with args.
3790 set dummy gcc; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3794   $as_echo_n "(cached) " >&6
3795 else
3796   if test -n "$ac_ct_CC"; then
3797   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804     for ac_exec_ext in '' $ac_executable_extensions; do
3805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806     ac_cv_prog_ac_ct_CC="gcc"
3807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808     break 2
3809   fi
3810 done
3811   done
3812 IFS=$as_save_IFS
3813
3814 fi
3815 fi
3816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3817 if test -n "$ac_ct_CC"; then
3818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3819 $as_echo "$ac_ct_CC" >&6; }
3820 else
3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 fi
3824
3825   if test "x$ac_ct_CC" = x; then
3826     CC=""
3827   else
3828     case $cross_compiling:$ac_tool_warned in
3829 yes:)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned=yes ;;
3833 esac
3834     CC=$ac_ct_CC
3835   fi
3836 else
3837   CC="$ac_cv_prog_CC"
3838 fi
3839
3840 if test -z "$CC"; then
3841           if test -n "$ac_tool_prefix"; then
3842     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}cc; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_CC+:} false; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   if test -n "$CC"; then
3850   ac_cv_prog_CC="$CC" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857     for ac_exec_ext in '' $ac_executable_extensions; do
3858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859     ac_cv_prog_CC="${ac_tool_prefix}cc"
3860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864   done
3865 IFS=$as_save_IFS
3866
3867 fi
3868 fi
3869 CC=$ac_cv_prog_CC
3870 if test -n "$CC"; then
3871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872 $as_echo "$CC" >&6; }
3873 else
3874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 fi
3877
3878
3879   fi
3880 fi
3881 if test -z "$CC"; then
3882   # Extract the first word of "cc", so it can be a program name with args.
3883 set dummy cc; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_prog_CC+:} false; then :
3887   $as_echo_n "(cached) " >&6
3888 else
3889   if test -n "$CC"; then
3890   ac_cv_prog_CC="$CC" # Let the user override the test.
3891 else
3892   ac_prog_rejected=no
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898     for ac_exec_ext in '' $ac_executable_extensions; do
3899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3901        ac_prog_rejected=yes
3902        continue
3903      fi
3904     ac_cv_prog_CC="cc"
3905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906     break 2
3907   fi
3908 done
3909   done
3910 IFS=$as_save_IFS
3911
3912 if test $ac_prog_rejected = yes; then
3913   # We found a bogon in the path, so make sure we never use it.
3914   set dummy $ac_cv_prog_CC
3915   shift
3916   if test $# != 0; then
3917     # We chose a different compiler from the bogus one.
3918     # However, it has the same basename, so the bogon will be chosen
3919     # first if we set CC to just the basename; use the full file name.
3920     shift
3921     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3922   fi
3923 fi
3924 fi
3925 fi
3926 CC=$ac_cv_prog_CC
3927 if test -n "$CC"; then
3928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929 $as_echo "$CC" >&6; }
3930 else
3931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 fi
3934
3935
3936 fi
3937 if test -z "$CC"; then
3938   if test -n "$ac_tool_prefix"; then
3939   for ac_prog in cl.exe
3940   do
3941     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if ${ac_cv_prog_CC+:} false; then :
3946   $as_echo_n "(cached) " >&6
3947 else
3948   if test -n "$CC"; then
3949   ac_cv_prog_CC="$CC" # Let the user override the test.
3950 else
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954   IFS=$as_save_IFS
3955   test -z "$as_dir" && as_dir=.
3956     for ac_exec_ext in '' $ac_executable_extensions; do
3957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960     break 2
3961   fi
3962 done
3963   done
3964 IFS=$as_save_IFS
3965
3966 fi
3967 fi
3968 CC=$ac_cv_prog_CC
3969 if test -n "$CC"; then
3970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3971 $as_echo "$CC" >&6; }
3972 else
3973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3975 fi
3976
3977
3978     test -n "$CC" && break
3979   done
3980 fi
3981 if test -z "$CC"; then
3982   ac_ct_CC=$CC
3983   for ac_prog in cl.exe
3984 do
3985   # Extract the first word of "$ac_prog", so it can be a program name with args.
3986 set dummy $ac_prog; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   if test -n "$ac_ct_CC"; then
3993   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000     for ac_exec_ext in '' $ac_executable_extensions; do
4001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002     ac_cv_prog_ac_ct_CC="$ac_prog"
4003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004     break 2
4005   fi
4006 done
4007   done
4008 IFS=$as_save_IFS
4009
4010 fi
4011 fi
4012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4013 if test -n "$ac_ct_CC"; then
4014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4015 $as_echo "$ac_ct_CC" >&6; }
4016 else
4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4020
4021
4022   test -n "$ac_ct_CC" && break
4023 done
4024
4025   if test "x$ac_ct_CC" = x; then
4026     CC=""
4027   else
4028     case $cross_compiling:$ac_tool_warned in
4029 yes:)
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032 ac_tool_warned=yes ;;
4033 esac
4034     CC=$ac_ct_CC
4035   fi
4036 fi
4037
4038 fi
4039
4040
4041 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4043 as_fn_error $? "no acceptable C compiler found in \$PATH
4044 See \`config.log' for more details" "$LINENO" 5; }
4045
4046 # Provide some information about the compiler.
4047 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4048 set X $ac_compile
4049 ac_compiler=$2
4050 for ac_option in --version -v -V -qversion; do
4051   { { ac_try="$ac_compiler $ac_option >&5"
4052 case "(($ac_try" in
4053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054   *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4059   ac_status=$?
4060   if test -s conftest.err; then
4061     sed '10a\
4062 ... rest of stderr output deleted ...
4063          10q' conftest.err >conftest.er1
4064     cat conftest.er1 >&5
4065   fi
4066   rm -f conftest.er1 conftest.err
4067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068   test $ac_status = 0; }
4069 done
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4072 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4073 if ${ac_cv_c_compiler_gnu+:} false; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078
4079 int
4080 main ()
4081 {
4082 #ifndef __GNUC__
4083        choke me
4084 #endif
4085
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 if ac_fn_c_try_compile "$LINENO"; then :
4091   ac_compiler_gnu=yes
4092 else
4093   ac_compiler_gnu=no
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4097
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4100 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4101 if test $ac_compiler_gnu = yes; then
4102   GCC=yes
4103 else
4104   GCC=
4105 fi
4106 ac_test_CFLAGS=${CFLAGS+set}
4107 ac_save_CFLAGS=$CFLAGS
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4109 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4110 if ${ac_cv_prog_cc_g+:} false; then :
4111   $as_echo_n "(cached) " >&6
4112 else
4113   ac_save_c_werror_flag=$ac_c_werror_flag
4114    ac_c_werror_flag=yes
4115    ac_cv_prog_cc_g=no
4116    CFLAGS="-g"
4117    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h.  */
4119
4120 int
4121 main ()
4122 {
4123
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129   ac_cv_prog_cc_g=yes
4130 else
4131   CFLAGS=""
4132       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h.  */
4134
4135 int
4136 main ()
4137 {
4138
4139   ;
4140   return 0;
4141 }
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144
4145 else
4146   ac_c_werror_flag=$ac_save_c_werror_flag
4147          CFLAGS="-g"
4148          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h.  */
4150
4151 int
4152 main ()
4153 {
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160   ac_cv_prog_cc_g=yes
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167    ac_c_werror_flag=$ac_save_c_werror_flag
4168 fi
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4170 $as_echo "$ac_cv_prog_cc_g" >&6; }
4171 if test "$ac_test_CFLAGS" = set; then
4172   CFLAGS=$ac_save_CFLAGS
4173 elif test $ac_cv_prog_cc_g = yes; then
4174   if test "$GCC" = yes; then
4175     CFLAGS="-g -O2"
4176   else
4177     CFLAGS="-g"
4178   fi
4179 else
4180   if test "$GCC" = yes; then
4181     CFLAGS="-O2"
4182   else
4183     CFLAGS=
4184   fi
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4187 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4188 if ${ac_cv_prog_cc_c89+:} false; then :
4189   $as_echo_n "(cached) " >&6
4190 else
4191   ac_cv_prog_cc_c89=no
4192 ac_save_CC=$CC
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h.  */
4195 #include <stdarg.h>
4196 #include <stdio.h>
4197 struct stat;
4198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4199 struct buf { int x; };
4200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4201 static char *e (p, i)
4202      char **p;
4203      int i;
4204 {
4205   return p[i];
4206 }
4207 static char *f (char * (*g) (char **, int), char **p, ...)
4208 {
4209   char *s;
4210   va_list v;
4211   va_start (v,p);
4212   s = g (p, va_arg (v,int));
4213   va_end (v);
4214   return s;
4215 }
4216
4217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4218    function prototypes and stuff, but not '\xHH' hex character constants.
4219    These don't provoke an error unfortunately, instead are silently treated
4220    as 'x'.  The following induces an error, until -std is added to get
4221    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4222    array size at least.  It's necessary to write '\x00'==0 to get something
4223    that's true only with -std.  */
4224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4225
4226 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4227    inside strings and character constants.  */
4228 #define FOO(x) 'x'
4229 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4230
4231 int test (int i, double x);
4232 struct s1 {int (*f) (int a);};
4233 struct s2 {int (*f) (double a);};
4234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4235 int argc;
4236 char **argv;
4237 int
4238 main ()
4239 {
4240 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4246         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4247 do
4248   CC="$ac_save_CC $ac_arg"
4249   if ac_fn_c_try_compile "$LINENO"; then :
4250   ac_cv_prog_cc_c89=$ac_arg
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext
4253   test "x$ac_cv_prog_cc_c89" != "xno" && break
4254 done
4255 rm -f conftest.$ac_ext
4256 CC=$ac_save_CC
4257
4258 fi
4259 # AC_CACHE_VAL
4260 case "x$ac_cv_prog_cc_c89" in
4261   x)
4262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263 $as_echo "none needed" >&6; } ;;
4264   xno)
4265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4266 $as_echo "unsupported" >&6; } ;;
4267   *)
4268     CC="$CC $ac_cv_prog_cc_c89"
4269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4270 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4271 esac
4272 if test "x$ac_cv_prog_cc_c89" != xno; then :
4273
4274 fi
4275
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
4282 if test "$GCC" = yes; then
4283    RDYNAMIC="-rdynamic"
4284
4285 fi
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4292 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4293 # On Suns, sometimes $CPP names a directory.
4294 if test -n "$CPP" && test -d "$CPP"; then
4295   CPP=
4296 fi
4297 if test -z "$CPP"; then
4298   if ${ac_cv_prog_CPP+:} false; then :
4299   $as_echo_n "(cached) " >&6
4300 else
4301       # Double quotes because CPP needs to be expanded
4302     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4303     do
4304       ac_preproc_ok=false
4305 for ac_c_preproc_warn_flag in '' yes
4306 do
4307   # Use a header file that comes with gcc, so configuring glibc
4308   # with a fresh cross-compiler works.
4309   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4310   # <limits.h> exists even on freestanding compilers.
4311   # On the NeXT, cc -E runs the code through the compiler's parser,
4312   # not just through cpp. "Syntax error" is here to catch this case.
4313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h.  */
4315 #ifdef __STDC__
4316 # include <limits.h>
4317 #else
4318 # include <assert.h>
4319 #endif
4320                      Syntax error
4321 _ACEOF
4322 if ac_fn_c_try_cpp "$LINENO"; then :
4323
4324 else
4325   # Broken: fails on valid input.
4326 continue
4327 fi
4328 rm -f conftest.err conftest.i conftest.$ac_ext
4329
4330   # OK, works on sane cases.  Now check whether nonexistent headers
4331   # can be detected and how.
4332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334 #include <ac_nonexistent.h>
4335 _ACEOF
4336 if ac_fn_c_try_cpp "$LINENO"; then :
4337   # Broken: success on invalid input.
4338 continue
4339 else
4340   # Passes both tests.
4341 ac_preproc_ok=:
4342 break
4343 fi
4344 rm -f conftest.err conftest.i conftest.$ac_ext
4345
4346 done
4347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4348 rm -f conftest.i conftest.err conftest.$ac_ext
4349 if $ac_preproc_ok; then :
4350   break
4351 fi
4352
4353     done
4354     ac_cv_prog_CPP=$CPP
4355
4356 fi
4357   CPP=$ac_cv_prog_CPP
4358 else
4359   ac_cv_prog_CPP=$CPP
4360 fi
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4362 $as_echo "$CPP" >&6; }
4363 ac_preproc_ok=false
4364 for ac_c_preproc_warn_flag in '' yes
4365 do
4366   # Use a header file that comes with gcc, so configuring glibc
4367   # with a fresh cross-compiler works.
4368   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4369   # <limits.h> exists even on freestanding compilers.
4370   # On the NeXT, cc -E runs the code through the compiler's parser,
4371   # not just through cpp. "Syntax error" is here to catch this case.
4372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h.  */
4374 #ifdef __STDC__
4375 # include <limits.h>
4376 #else
4377 # include <assert.h>
4378 #endif
4379                      Syntax error
4380 _ACEOF
4381 if ac_fn_c_try_cpp "$LINENO"; then :
4382
4383 else
4384   # Broken: fails on valid input.
4385 continue
4386 fi
4387 rm -f conftest.err conftest.i conftest.$ac_ext
4388
4389   # OK, works on sane cases.  Now check whether nonexistent headers
4390   # can be detected and how.
4391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h.  */
4393 #include <ac_nonexistent.h>
4394 _ACEOF
4395 if ac_fn_c_try_cpp "$LINENO"; then :
4396   # Broken: success on invalid input.
4397 continue
4398 else
4399   # Passes both tests.
4400 ac_preproc_ok=:
4401 break
4402 fi
4403 rm -f conftest.err conftest.i conftest.$ac_ext
4404
4405 done
4406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4407 rm -f conftest.i conftest.err conftest.$ac_ext
4408 if $ac_preproc_ok; then :
4409
4410 else
4411   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4413 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4414 See \`config.log' for more details" "$LINENO" 5; }
4415 fi
4416
4417 ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4424 $as_echo_n "checking for additional special compiler flags... " >&6; }
4425 if test "$GCC" = yes
4426 then
4427     case "$host_cpu" in
4428         alpha)          addcflags="-mieee" ;;
4429     esac
4430 fi
4431 if test "x$addcflags" != x
4432 then
4433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4434 $as_echo "$addcflags" >&6; }
4435     CFLAGS="$addcflags $CFLAGS"
4436 else
4437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4438 $as_echo "(none)" >&6; }
4439 fi
4440
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4442 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4443 if ${ac_cv_path_GREP+:} false; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   if test -z "$GREP"; then
4447   ac_path_GREP_found=false
4448   # Loop through the user's path and test for each of PROGNAME-LIST
4449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454     for ac_prog in grep ggrep; do
4455     for ac_exec_ext in '' $ac_executable_extensions; do
4456       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4457       as_fn_executable_p "$ac_path_GREP" || continue
4458 # Check for GNU ac_path_GREP and select it if it is found.
4459   # Check for GNU $ac_path_GREP
4460 case `"$ac_path_GREP" --version 2>&1` in
4461 *GNU*)
4462   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4463 *)
4464   ac_count=0
4465   $as_echo_n 0123456789 >"conftest.in"
4466   while :
4467   do
4468     cat "conftest.in" "conftest.in" >"conftest.tmp"
4469     mv "conftest.tmp" "conftest.in"
4470     cp "conftest.in" "conftest.nl"
4471     $as_echo 'GREP' >> "conftest.nl"
4472     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474     as_fn_arith $ac_count + 1 && ac_count=$as_val
4475     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4476       # Best one so far, save it but keep looking for a better one
4477       ac_cv_path_GREP="$ac_path_GREP"
4478       ac_path_GREP_max=$ac_count
4479     fi
4480     # 10*(2^10) chars as input seems more than enough
4481     test $ac_count -gt 10 && break
4482   done
4483   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484 esac
4485
4486       $ac_path_GREP_found && break 3
4487     done
4488   done
4489   done
4490 IFS=$as_save_IFS
4491   if test -z "$ac_cv_path_GREP"; then
4492     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493   fi
4494 else
4495   ac_cv_path_GREP=$GREP
4496 fi
4497
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4500 $as_echo "$ac_cv_path_GREP" >&6; }
4501  GREP="$ac_cv_path_GREP"
4502
4503
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4505 $as_echo_n "checking for egrep... " >&6; }
4506 if ${ac_cv_path_EGREP+:} false; then :
4507   $as_echo_n "(cached) " >&6
4508 else
4509   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4510    then ac_cv_path_EGREP="$GREP -E"
4511    else
4512      if test -z "$EGREP"; then
4513   ac_path_EGREP_found=false
4514   # Loop through the user's path and test for each of PROGNAME-LIST
4515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4517 do
4518   IFS=$as_save_IFS
4519   test -z "$as_dir" && as_dir=.
4520     for ac_prog in egrep; do
4521     for ac_exec_ext in '' $ac_executable_extensions; do
4522       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4523       as_fn_executable_p "$ac_path_EGREP" || continue
4524 # Check for GNU ac_path_EGREP and select it if it is found.
4525   # Check for GNU $ac_path_EGREP
4526 case `"$ac_path_EGREP" --version 2>&1` in
4527 *GNU*)
4528   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4529 *)
4530   ac_count=0
4531   $as_echo_n 0123456789 >"conftest.in"
4532   while :
4533   do
4534     cat "conftest.in" "conftest.in" >"conftest.tmp"
4535     mv "conftest.tmp" "conftest.in"
4536     cp "conftest.in" "conftest.nl"
4537     $as_echo 'EGREP' >> "conftest.nl"
4538     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4539     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4540     as_fn_arith $ac_count + 1 && ac_count=$as_val
4541     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4542       # Best one so far, save it but keep looking for a better one
4543       ac_cv_path_EGREP="$ac_path_EGREP"
4544       ac_path_EGREP_max=$ac_count
4545     fi
4546     # 10*(2^10) chars as input seems more than enough
4547     test $ac_count -gt 10 && break
4548   done
4549   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4550 esac
4551
4552       $ac_path_EGREP_found && break 3
4553     done
4554   done
4555   done
4556 IFS=$as_save_IFS
4557   if test -z "$ac_cv_path_EGREP"; then
4558     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4559   fi
4560 else
4561   ac_cv_path_EGREP=$EGREP
4562 fi
4563
4564    fi
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4567 $as_echo "$ac_cv_path_EGREP" >&6; }
4568  EGREP="$ac_cv_path_EGREP"
4569
4570
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4572 $as_echo_n "checking for ANSI C header files... " >&6; }
4573 if ${ac_cv_header_stdc+:} false; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h.  */
4578 #include <stdlib.h>
4579 #include <stdarg.h>
4580 #include <string.h>
4581 #include <float.h>
4582
4583 int
4584 main ()
4585 {
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_c_try_compile "$LINENO"; then :
4592   ac_cv_header_stdc=yes
4593 else
4594   ac_cv_header_stdc=no
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597
4598 if test $ac_cv_header_stdc = yes; then
4599   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602 #include <string.h>
4603
4604 _ACEOF
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606   $EGREP "memchr" >/dev/null 2>&1; then :
4607
4608 else
4609   ac_cv_header_stdc=no
4610 fi
4611 rm -f conftest*
4612
4613 fi
4614
4615 if test $ac_cv_header_stdc = yes; then
4616   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h.  */
4619 #include <stdlib.h>
4620
4621 _ACEOF
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623   $EGREP "free" >/dev/null 2>&1; then :
4624
4625 else
4626   ac_cv_header_stdc=no
4627 fi
4628 rm -f conftest*
4629
4630 fi
4631
4632 if test $ac_cv_header_stdc = yes; then
4633   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4634   if test "$cross_compiling" = yes; then :
4635   :
4636 else
4637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h.  */
4639 #include <ctype.h>
4640 #include <stdlib.h>
4641 #if ((' ' & 0x0FF) == 0x020)
4642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4644 #else
4645 # define ISLOWER(c) \
4646                    (('a' <= (c) && (c) <= 'i') \
4647                      || ('j' <= (c) && (c) <= 'r') \
4648                      || ('s' <= (c) && (c) <= 'z'))
4649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4650 #endif
4651
4652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4653 int
4654 main ()
4655 {
4656   int i;
4657   for (i = 0; i < 256; i++)
4658     if (XOR (islower (i), ISLOWER (i))
4659         || toupper (i) != TOUPPER (i))
4660       return 2;
4661   return 0;
4662 }
4663 _ACEOF
4664 if ac_fn_c_try_run "$LINENO"; then :
4665
4666 else
4667   ac_cv_header_stdc=no
4668 fi
4669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4670   conftest.$ac_objext conftest.beam conftest.$ac_ext
4671 fi
4672
4673 fi
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4676 $as_echo "$ac_cv_header_stdc" >&6; }
4677 if test $ac_cv_header_stdc = yes; then
4678
4679 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4680
4681 fi
4682
4683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4684 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4685                   inttypes.h stdint.h unistd.h
4686 do :
4687   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4688 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4689 "
4690 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4691   cat >>confdefs.h <<_ACEOF
4692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4693 _ACEOF
4694
4695 fi
4696
4697 done
4698
4699
4700
4701   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4702 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4703   MINIX=yes
4704 else
4705   MINIX=
4706 fi
4707
4708
4709   if test "$MINIX" = yes; then
4710
4711 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4712
4713
4714 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4715
4716
4717 $as_echo "#define _MINIX 1" >>confdefs.h
4718
4719   fi
4720
4721
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4723 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4724 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729
4730 #         define __EXTENSIONS__ 1
4731           $ac_includes_default
4732 int
4733 main ()
4734 {
4735
4736   ;
4737   return 0;
4738 }
4739 _ACEOF
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741   ac_cv_safe_to_define___extensions__=yes
4742 else
4743   ac_cv_safe_to_define___extensions__=no
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4748 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4749   test $ac_cv_safe_to_define___extensions__ = yes &&
4750     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4751
4752   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4753
4754   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4755
4756   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4757
4758   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4759
4760
4761 LIB_EXT=.a
4762 STATIC_LIB_EXT=.a
4763 PROFILED_LIB_EXT=.a
4764
4765 # Check whether --with-root-prefix was given.
4766 if test "${with_root_prefix+set}" = set; then :
4767   withval=$with_root_prefix; root_prefix=$withval
4768 else
4769   root_prefix=NONE
4770 fi
4771 # Check whether --enable-maintainer-mode was given.
4772 if test "${enable_maintainer_mode+set}" = set; then :
4773   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4774 then
4775         MAINTAINER_CMT=#
4776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4777 $as_echo "Disabling maintainer mode" >&6; }
4778 else
4779         MAINTAINER_CMT=
4780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4781 $as_echo "Enabling maintainer mode" >&6; }
4782 fi
4783
4784 else
4785   MAINTAINER_CMT=#
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4787 $as_echo "Disabling maintainer mode by default" >&6; }
4788
4789 fi
4790
4791
4792 # Check whether --enable-symlink-install was given.
4793 if test "${enable_symlink_install+set}" = set; then :
4794   enableval=$enable_symlink_install; if test "$enableval" = "no"
4795 then
4796         LINK_INSTALL_FLAGS=-f
4797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4798 $as_echo "Disabling symlinks for install" >&6; }
4799 else
4800         LINK_INSTALL_FLAGS=-sf
4801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4802 $as_echo "Enabling symlinks for install" >&6; }
4803 fi
4804
4805 else
4806   LINK_INSTALL_FLAGS=-f
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4808 $as_echo "Disabling symlinks for install by default" >&6; }
4809
4810 fi
4811
4812
4813 relative_symlink_defined=
4814 # Check whether --enable-relative-symlinks was given.
4815 if test "${enable_relative_symlinks+set}" = set; then :
4816   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4817 then
4818         SYMLINK_RELATIVE=
4819         relative_symlink_defined=yes
4820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4821 $as_echo "Disabling relative symlinks for install" >&6; }
4822 else
4823         SYMLINK_RELATIVE=--relative
4824         relative_symlink_defined=yes
4825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4826 $as_echo "Enabling relative symlinks for install" >&6; }
4827 fi
4828 fi
4829
4830 # Check whether --enable-symlink-relative-symlinks was given.
4831 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4832   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4833 then
4834         SYMLINK_RELATIVE=yes
4835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4836 $as_echo "Disabling relative symlinks for install" >&6; }
4837 else
4838         SYMLINK_RELATIVE=--relative
4839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4840 $as_echo "Enabling relative symlinks for install" >&6; }
4841 fi
4842
4843 else
4844   if test -z "$relative_symlink_defined"
4845 then
4846         SYMLINK_RELATIVE=
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4848 $as_echo "Disabling relative symlinks for install by default" >&6; }
4849 fi
4850
4851 fi
4852
4853
4854 # Check whether --enable-symlink-build was given.
4855 if test "${enable_symlink_build+set}" = set; then :
4856   enableval=$enable_symlink_build; if test "$enableval" = "no"
4857 then
4858         LINK_BUILD_FLAGS=
4859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4860 $as_echo "Disabling symlinks for build" >&6; }
4861 else
4862         LINK_BUILD_FLAGS=-s
4863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4864 $as_echo "Enabling symlinks for build" >&6; }
4865 fi
4866
4867 else
4868   LINK_BUILD_FLAGS=
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4870 $as_echo "Disabling symlinks for build by default" >&6; }
4871
4872 fi
4873
4874
4875 # Check whether --enable-verbose-makecmds was given.
4876 if test "${enable_verbose_makecmds+set}" = set; then :
4877   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4878 then
4879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4880 $as_echo "Disabling verbose make commands" >&6; }
4881         E=@echo
4882         ES=echo
4883         Q=@
4884 else
4885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4886 $as_echo "Enabling verbose make commands" >&6; }
4887         E=@\\#
4888         ES=\\#
4889         Q=
4890 fi
4891
4892 else
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4894 $as_echo "Disabling verbose make commands" >&6; }
4895 E=@echo
4896 ES=echo
4897 Q=@
4898
4899 fi
4900
4901
4902
4903
4904 # Check whether --enable-compression was given.
4905 if test "${enable_compression+set}" = set; then :
4906   enableval=$enable_compression; if test "$enableval" = "no"
4907 then
4908         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4909 $as_echo "Disabling compression support" >&6; }
4910 else
4911
4912 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4913
4914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4915 $as_echo "Enabling compression support" >&6; }
4916         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4917 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4918 fi
4919
4920 else
4921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4922 $as_echo "Disabling compression support by default" >&6; }
4923
4924 fi
4925
4926
4927 # Check whether --enable-htree was given.
4928 if test "${enable_htree+set}" = set; then :
4929   enableval=$enable_htree; if test "$enableval" = "no"
4930 then
4931         HTREE_CMT=#
4932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4933 $as_echo "Disabling htree directory support" >&6; }
4934 else
4935         HTREE_CMT=
4936         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4937
4938         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4939 $as_echo "Enabling htree directory support" >&6; }
4940 fi
4941
4942 else
4943   HTREE_CMT=
4944 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4947 $as_echo "Enabling htree directory support by default" >&6; }
4948
4949 fi
4950
4951
4952 E2_PKG_CONFIG_STATIC=--static
4953 LDFLAG_DYNAMIC=
4954 PRIVATE_LIBS_CMT=
4955 # Check whether --enable-elf-shlibs was given.
4956 if test "${enable_elf_shlibs+set}" = set; then :
4957   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4958 then
4959         ELF_CMT=#
4960         MAKEFILE_ELF=/dev/null
4961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4962 $as_echo "Disabling ELF shared libraries" >&6; }
4963 else
4964         E2_PKG_CONFIG_STATIC=
4965         ELF_CMT=
4966         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4967         case "$host_os" in
4968         solaris2.*)
4969                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4970         ;;
4971         esac
4972         BINARY_TYPE=elfbin
4973         LIB_EXT=.so
4974         PRIVATE_LIBS_CMT=#
4975         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4977 $as_echo "Enabling ELF shared libraries" >&6; }
4978 fi
4979
4980 else
4981   MAKEFILE_ELF=/dev/null
4982 ELF_CMT=#
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4984 $as_echo "Disabling ELF shared libraries by default" >&6; }
4985
4986 fi
4987
4988
4989
4990 # Check whether --enable-bsd-shlibs was given.
4991 if test "${enable_bsd_shlibs+set}" = set; then :
4992   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4993 then
4994         BSDLIB_CMT=#
4995         MAKEFILE_BSDLIB=/dev/null
4996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4997 $as_echo "Disabling BSD shared libraries" >&6; }
4998 else
4999         E2_PKG_CONFIG_STATIC=
5000         BSDLIB_CMT=
5001         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5002         LIB_EXT=.so
5003         case "$host_os" in
5004         darwin*)
5005                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5006                 LIB_EXT=.dylib
5007         ;;
5008         esac
5009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5010 $as_echo "Enabling BSD shared libraries" >&6; }
5011 fi
5012
5013 else
5014   MAKEFILE_BSDLIB=/dev/null
5015 BSDLIB_CMT=#
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5017 $as_echo "Disabling BSD shared libraries by default" >&6; }
5018
5019 fi
5020
5021
5022
5023 # Check whether --enable-profile was given.
5024 if test "${enable_profile+set}" = set; then :
5025   enableval=$enable_profile; if test "$enableval" = "no"
5026 then
5027         PROFILE_CMT=#
5028         MAKEFILE_PROFILE=/dev/null
5029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5030 $as_echo "Disabling profiling libraries" >&6; }
5031 else
5032         PROFILE_CMT=
5033         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5034         PROFILED_LIB_EXT=_p.a
5035         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5036 $as_echo "Building profiling libraries" >&6; }
5037 fi
5038
5039 else
5040   PROFILE_CMT=#
5041 MAKEFILE_PROFILE=/dev/null
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5043 $as_echo "Disabling profiling libraries by default" >&6; }
5044
5045 fi
5046
5047
5048
5049 # Check whether --enable-gcov was given.
5050 if test "${enable_gcov+set}" = set; then :
5051   enableval=$enable_gcov; if test "$enableval" = "yes"
5052 then
5053         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5054         LDFLAGS="-fprofile-arcs -ftest-coverage"
5055         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5056 $as_echo "Enabling gcov support" >&6; }
5057 fi
5058
5059 fi
5060
5061
5062
5063
5064
5065
5066
5067 # Check whether --enable-jbd-debug was given.
5068 if test "${enable_jbd_debug+set}" = set; then :
5069   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5070 then
5071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5072 $as_echo "Disabling journal debugging" >&6; }
5073 else
5074
5075 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5076
5077         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5078 $as_echo "Enabling journal debugging" >&6; }
5079 fi
5080
5081 else
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5083 $as_echo "Disabling journal debugging by default" >&6; }
5084
5085 fi
5086
5087 # Check whether --enable-blkid-debug was given.
5088 if test "${enable_blkid_debug+set}" = set; then :
5089   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5090 then
5091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5092 $as_echo "Disabling blkid debugging" >&6; }
5093 else
5094
5095 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5096
5097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5098 $as_echo "Enabling blkid debugging" >&6; }
5099 fi
5100
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5103 $as_echo "Disabling blkid debugging by default" >&6; }
5104
5105 fi
5106
5107 # Check whether --enable-testio-debug was given.
5108 if test "${enable_testio_debug+set}" = set; then :
5109   enableval=$enable_testio_debug;
5110 if test "$enableval" = "no"
5111 then
5112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5113 $as_echo "Disabling testio debugging" >&6; }
5114         TEST_IO_CMT="#"
5115 else
5116         TEST_IO_CMT=
5117         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5118
5119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5120 $as_echo "Enabling testio debugging" >&6; }
5121 fi
5122
5123 else
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5125 $as_echo "Enabling testio debugging by default" >&6; }
5126 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5127
5128 TEST_IO_CMT=
5129
5130 fi
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5141         if test -n "$ac_tool_prefix"; then
5142   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5143 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   case $PKG_CONFIG in
5150   [\\/]* | ?:[\\/]*)
5151   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5152   ;;
5153   *)
5154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159     for ac_exec_ext in '' $ac_executable_extensions; do
5160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166   done
5167 IFS=$as_save_IFS
5168
5169   ;;
5170 esac
5171 fi
5172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5173 if test -n "$PKG_CONFIG"; then
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5175 $as_echo "$PKG_CONFIG" >&6; }
5176 else
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182 fi
5183 if test -z "$ac_cv_path_PKG_CONFIG"; then
5184   ac_pt_PKG_CONFIG=$PKG_CONFIG
5185   # Extract the first word of "pkg-config", so it can be a program name with args.
5186 set dummy pkg-config; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   case $ac_pt_PKG_CONFIG in
5193   [\\/]* | ?:[\\/]*)
5194   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5195   ;;
5196   *)
5197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202     for ac_exec_ext in '' $ac_executable_extensions; do
5203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209   done
5210 IFS=$as_save_IFS
5211
5212   ;;
5213 esac
5214 fi
5215 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5216 if test -n "$ac_pt_PKG_CONFIG"; then
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5218 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5219 else
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 fi
5223
5224   if test "x$ac_pt_PKG_CONFIG" = x; then
5225     PKG_CONFIG=""
5226   else
5227     case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233     PKG_CONFIG=$ac_pt_PKG_CONFIG
5234   fi
5235 else
5236   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5237 fi
5238
5239 fi
5240 if test -n "$PKG_CONFIG"; then
5241         _pkg_min_version=0.9.0
5242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5243 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5244         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5245                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5246 $as_echo "yes" >&6; }
5247         else
5248                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250                 PKG_CONFIG=""
5251         fi
5252 fi
5253 LIBUUID=
5254 DEPLIBUUID=
5255 STATIC_LIBUUID=
5256 DEPSTATIC_LIBUUID=
5257 PROFILED_LIBUUID=
5258 DEPPROFILED_LIBUUID=
5259 UUID_CMT=
5260 # Check whether --enable-libuuid was given.
5261 if test "${enable_libuuid+set}" = set; then :
5262   enableval=$enable_libuuid; if test "$enableval" = "no"
5263 then
5264         if test -z "$PKG_CONFIG"; then
5265                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5266         fi
5267
5268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5269 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5270 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   ac_check_lib_save_LIBS=$LIBS
5274 LIBS="-luuid  $LIBS"
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h.  */
5277
5278 /* Override any GCC internal prototype to avoid an error.
5279    Use char because int might match the return type of a GCC
5280    builtin and then its argument prototype would still apply.  */
5281 #ifdef __cplusplus
5282 extern "C"
5283 #endif
5284 char uuid_generate ();
5285 int
5286 main ()
5287 {
5288 return uuid_generate ();
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_c_try_link "$LINENO"; then :
5294   ac_cv_lib_uuid_uuid_generate=yes
5295 else
5296   ac_cv_lib_uuid_uuid_generate=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext \
5299     conftest$ac_exeext conftest.$ac_ext
5300 LIBS=$ac_check_lib_save_LIBS
5301 fi
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5303 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5304 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5305   LIBUUID=`$PKG_CONFIG --libs uuid`;
5306                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5307 else
5308   as_fn_error $? "external uuid library not found" "$LINENO" 5
5309 fi
5310
5311         PROFILED_LIBUUID=$LIBUUID
5312         UUID_CMT=#
5313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5314 $as_echo "Disabling private uuid library" >&6; }
5315 else
5316         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5317         DEPLIBUUID=$LIBUUID
5318         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5319         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5320         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5321         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5323 $as_echo "Enabling private uuid library" >&6; }
5324 fi
5325
5326 else
5327   LIBUUID='$(LIB)/libuuid'$LIB_EXT
5328 DEPLIBUUID=$LIBUUID
5329 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5330 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5331 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5332 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5334 $as_echo "Enabling private uuid library by default" >&6; }
5335
5336 fi
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5353         if test -n "$ac_tool_prefix"; then
5354   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5359   $as_echo_n "(cached) " >&6
5360 else
5361   case $PKG_CONFIG in
5362   [\\/]* | ?:[\\/]*)
5363   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5364   ;;
5365   *)
5366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369   IFS=$as_save_IFS
5370   test -z "$as_dir" && as_dir=.
5371     for ac_exec_ext in '' $ac_executable_extensions; do
5372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378   done
5379 IFS=$as_save_IFS
5380
5381   ;;
5382 esac
5383 fi
5384 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5385 if test -n "$PKG_CONFIG"; then
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5387 $as_echo "$PKG_CONFIG" >&6; }
5388 else
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 fi
5395 if test -z "$ac_cv_path_PKG_CONFIG"; then
5396   ac_pt_PKG_CONFIG=$PKG_CONFIG
5397   # Extract the first word of "pkg-config", so it can be a program name with args.
5398 set dummy pkg-config; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   case $ac_pt_PKG_CONFIG in
5405   [\\/]* | ?:[\\/]*)
5406   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5407   ;;
5408   *)
5409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412   IFS=$as_save_IFS
5413   test -z "$as_dir" && as_dir=.
5414     for ac_exec_ext in '' $ac_executable_extensions; do
5415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418     break 2
5419   fi
5420 done
5421   done
5422 IFS=$as_save_IFS
5423
5424   ;;
5425 esac
5426 fi
5427 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5428 if test -n "$ac_pt_PKG_CONFIG"; then
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5430 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5431 else
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436   if test "x$ac_pt_PKG_CONFIG" = x; then
5437     PKG_CONFIG=""
5438   else
5439     case $cross_compiling:$ac_tool_warned in
5440 yes:)
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5443 ac_tool_warned=yes ;;
5444 esac
5445     PKG_CONFIG=$ac_pt_PKG_CONFIG
5446   fi
5447 else
5448   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5449 fi
5450
5451 fi
5452 if test -n "$PKG_CONFIG"; then
5453         _pkg_min_version=0.9.0
5454         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5455 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5456         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5457                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459         else
5460                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462                 PKG_CONFIG=""
5463         fi
5464 fi
5465 LIBBLKID=
5466 DEPLIBBLKID=
5467 STATIC_LIBBLKID=
5468 DEPSTATIC_LIBBLKID=
5469 PROFILED_LIBBLKID=
5470 DEPPROFILED_LIBBLKID=
5471 BLKID_CMT=
5472
5473 # Check whether --enable-libblkid was given.
5474 if test "${enable_libblkid+set}" = set; then :
5475   enableval=$enable_libblkid; if test "$enableval" = "no"
5476 then
5477         if test -z "$PKG_CONFIG"; then
5478                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5479         fi
5480
5481         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5482 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5483 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   ac_check_lib_save_LIBS=$LIBS
5487 LIBS="-lblkid -luuid $LIBS"
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h.  */
5490
5491 /* Override any GCC internal prototype to avoid an error.
5492    Use char because int might match the return type of a GCC
5493    builtin and then its argument prototype would still apply.  */
5494 #ifdef __cplusplus
5495 extern "C"
5496 #endif
5497 char blkid_get_cache ();
5498 int
5499 main ()
5500 {
5501 return blkid_get_cache ();
5502   ;
5503   return 0;
5504 }
5505 _ACEOF
5506 if ac_fn_c_try_link "$LINENO"; then :
5507   ac_cv_lib_blkid_blkid_get_cache=yes
5508 else
5509   ac_cv_lib_blkid_blkid_get_cache=no
5510 fi
5511 rm -f core conftest.err conftest.$ac_objext \
5512     conftest$ac_exeext conftest.$ac_ext
5513 LIBS=$ac_check_lib_save_LIBS
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5516 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5517 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5518   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5519                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5520 else
5521   as_fn_error $? "external blkid library not found" "$LINENO" 5
5522 fi
5523
5524         BLKID_CMT=#
5525         PROFILED_LIBBLKID=$LIBBLKID
5526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5527 $as_echo "Disabling private blkid library" >&6; }
5528 else
5529         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5530         DEPLIBBLKID=$LIBBLKID
5531         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5532         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5533         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5534         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5535         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5536
5537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5538 $as_echo "Enabling private blkid library" >&6; }
5539 fi
5540
5541 else
5542   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5543 DEPLIBBLKID=$LIBBLKID
5544 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5545 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5546 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5547 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5548 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5551 $as_echo "Enabling private blkid library by default" >&6; }
5552
5553 fi
5554
5555
5556
5557
5558
5559
5560
5561
5562 QUOTA_MAN_COMMENT='.\"'
5563 QUOTA_CMT=
5564
5565
5566
5567
5568
5569
5570
5571
5572 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5573         if test -n "$ac_tool_prefix"; then
5574   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   case $PKG_CONFIG in
5582   [\\/]* | ?:[\\/]*)
5583   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5584   ;;
5585   *)
5586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591     for ac_exec_ext in '' $ac_executable_extensions; do
5592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598   done
5599 IFS=$as_save_IFS
5600
5601   ;;
5602 esac
5603 fi
5604 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5605 if test -n "$PKG_CONFIG"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5607 $as_echo "$PKG_CONFIG" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613
5614 fi
5615 if test -z "$ac_cv_path_PKG_CONFIG"; then
5616   ac_pt_PKG_CONFIG=$PKG_CONFIG
5617   # Extract the first word of "pkg-config", so it can be a program name with args.
5618 set dummy pkg-config; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   case $ac_pt_PKG_CONFIG in
5625   [\\/]* | ?:[\\/]*)
5626   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5627   ;;
5628   *)
5629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634     for ac_exec_ext in '' $ac_executable_extensions; do
5635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641   done
5642 IFS=$as_save_IFS
5643
5644   ;;
5645 esac
5646 fi
5647 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5648 if test -n "$ac_pt_PKG_CONFIG"; then
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5650 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5651 else
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656   if test "x$ac_pt_PKG_CONFIG" = x; then
5657     PKG_CONFIG=""
5658   else
5659     case $cross_compiling:$ac_tool_warned in
5660 yes:)
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663 ac_tool_warned=yes ;;
5664 esac
5665     PKG_CONFIG=$ac_pt_PKG_CONFIG
5666   fi
5667 else
5668   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5669 fi
5670
5671 fi
5672 if test -n "$PKG_CONFIG"; then
5673         _pkg_min_version=0.9.0
5674         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5675 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5676         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5677                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5679         else
5680                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682                 PKG_CONFIG=""
5683         fi
5684 fi
5685
5686 # Check whether --enable-quota was given.
5687 if test "${enable_quota+set}" = set; then :
5688   enableval=$enable_quota; if test "$enableval" = "no"
5689 then
5690         QUOTA_CMT=#
5691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5692 $as_echo "Disabling quota support" >&6; }
5693 else
5694         QUOTA_CMT=
5695         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5696
5697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5698 $as_echo "Enabling quota support" >&6; }
5699         QUOTA_MAN_COMMENT=""
5700
5701 fi
5702
5703 else
5704   QUOTA_CMT=#
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5706 $as_echo "Disabling quota support by default" >&6; }
5707
5708 fi
5709
5710 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5711 DEPLIBQUOTA=$LIBQUOTA
5712 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5713 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5714 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5715 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5716
5717
5718
5719
5720
5721
5722
5723
5724 # Check whether --enable-backtrace was given.
5725 if test "${enable_backtrace+set}" = set; then :
5726   enableval=$enable_backtrace; if test "$enableval" = "no"
5727 then
5728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5729 $as_echo "Disabling use of backtrace" >&6; }
5730         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5731
5732 else
5733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5734 $as_echo "Enabling use of backtrace" >&6; }
5735 fi
5736
5737 else
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5739 $as_echo "Enabling use of backtrace by default" >&6; }
5740
5741 fi
5742
5743 # Check whether --enable-debugfs was given.
5744 if test "${enable_debugfs+set}" = set; then :
5745   enableval=$enable_debugfs; if test "$enableval" = "no"
5746 then
5747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5748 $as_echo "Disabling debugfs support" >&6; }
5749         DEBUGFS_CMT="#"
5750 else
5751         DEBUGFS_CMT=
5752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5753 $as_echo "Enabling debugfs support" >&6; }
5754 fi
5755
5756 else
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5758 $as_echo "Enabling debugfs support by default" >&6; }
5759 DEBUGFS_CMT=
5760
5761 fi
5762
5763
5764 # Check whether --enable-imager was given.
5765 if test "${enable_imager+set}" = set; then :
5766   enableval=$enable_imager; if test "$enableval" = "no"
5767 then
5768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5769 $as_echo "Disabling e2image support" >&6; }
5770         IMAGER_CMT="#"
5771 else
5772         IMAGER_CMT=
5773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5774 $as_echo "Enabling e2image support" >&6; }
5775 fi
5776
5777 else
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5779 $as_echo "Enabling e2image support by default" >&6; }
5780 IMAGER_CMT=
5781
5782 fi
5783
5784
5785 # Check whether --enable-resizer was given.
5786 if test "${enable_resizer+set}" = set; then :
5787   enableval=$enable_resizer; if test "$enableval" = "no"
5788 then
5789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5790 $as_echo "Disabling e2resize support" >&6; }
5791         RESIZER_CMT="#"
5792 else
5793         RESIZER_CMT=
5794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5795 $as_echo "Enabling e2resize support" >&6; }
5796 fi
5797
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5800 $as_echo "Enabling e2resize support by default" >&6; }
5801 RESIZER_CMT=
5802
5803 fi
5804
5805
5806 # Check whether --enable-defrag was given.
5807 if test "${enable_defrag+set}" = set; then :
5808   enableval=$enable_defrag; if test "$enableval" = "no"
5809 then
5810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5811 $as_echo "Disabling e4defrag support" >&6; }
5812         DEFRAG_CMT="#"
5813 else
5814         DEFRAG_CMT=
5815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5816 $as_echo "Enabling e4defrag support" >&6; }
5817 fi
5818
5819 else
5820   if test -z "$WITH_DIET_LIBC"
5821 then
5822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5823 $as_echo "Enabling e4defrag support by default" >&6; }
5824         DEFRAG_CMT=
5825 else
5826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5827 $as_echo "Disabling e4defrag support by default" >&6; }
5828         DEFRAG_CMT="#"
5829 fi
5830
5831 fi
5832
5833
5834 # Check whether --enable-fsck was given.
5835 if test "${enable_fsck+set}" = set; then :
5836   enableval=$enable_fsck; if test "$enableval" = "no"
5837 then
5838         FSCK_PROG='' FSCK_MAN=''
5839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5840 $as_echo "Not building fsck wrapper" >&6; }
5841 else
5842         FSCK_PROG=fsck FSCK_MAN=fsck.8
5843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5844 $as_echo "Building fsck wrapper" >&6; }
5845 fi
5846
5847 else
5848   case "$host_os" in
5849   gnu*)
5850     FSCK_PROG='' FSCK_MAN=''
5851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5852 $as_echo "Not building fsck wrapper by default" >&6; }
5853     ;;
5854   *)
5855     FSCK_PROG=fsck FSCK_MAN=fsck.8
5856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5857 $as_echo "Building fsck wrapper by default" >&6; }
5858 esac
5859
5860 fi
5861
5862
5863
5864 # Check whether --enable-e2initrd-helper was given.
5865 if test "${enable_e2initrd_helper+set}" = set; then :
5866   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5867 then
5868         E2INITRD_PROG='' E2INITRD_MAN=''
5869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5870 $as_echo "Not building e2initrd helper" >&6; }
5871 else
5872         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5874 $as_echo "Building e2initrd helper" >&6; }
5875 fi
5876
5877 else
5878   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5880 $as_echo "Building e2initrd helper by default" >&6; }
5881
5882 fi
5883
5884
5885
5886 # Check whether --enable-tls was given.
5887 if test "${enable_tls+set}" = set; then :
5888   enableval=$enable_tls; if test "$enableval" = "no"
5889 then
5890         try_tls=""
5891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5892 $as_echo "Disabling thread local support" >&6; }
5893 else
5894         try_tls="yes"
5895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5896 $as_echo "Enabling thread local support" >&6; }
5897 fi
5898
5899 else
5900   if test -n "$WITH_DIET_LIBC"
5901 then
5902         try_tls=""
5903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5904 $as_echo "Diet libc does not support thread local support" >&6; }
5905 else
5906         try_tls="yes"
5907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5908 $as_echo "Try using thread local support by default" >&6; }
5909 fi
5910
5911 fi
5912
5913 if test "$try_tls" = "yes"
5914 then
5915
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5917 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5918   if ${ac_cv_tls+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921
5922     ax_tls_keywords="__thread __declspec(thread) none"
5923     for ax_tls_keyword in $ax_tls_keywords; do
5924        case $ax_tls_keyword in
5925           none) ac_cv_tls=none ; break ;;
5926           *)
5927              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h.  */
5929 #include <stdlib.h>
5930                  static void
5931                  foo(void) {
5932                  static  $ax_tls_keyword  int bar;
5933                  exit(1);
5934                  }
5935 int
5936 main ()
5937 {
5938
5939   ;
5940   return 0;
5941 }
5942 _ACEOF
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944   ac_cv_tls=$ax_tls_keyword ; break
5945 else
5946   ac_cv_tls=none
5947
5948 fi
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950           esac
5951     done
5952
5953 fi
5954
5955
5956   if test "$ac_cv_tls" != "none"; then
5957
5958 cat >>confdefs.h <<_ACEOF
5959 #define TLS $ac_cv_tls
5960 _ACEOF
5961
5962   fi
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5964 $as_echo "$ac_cv_tls" >&6; }
5965
5966 fi
5967
5968 # Check whether --enable-uuidd was given.
5969 if test "${enable_uuidd+set}" = set; then :
5970   enableval=$enable_uuidd; if test "$enableval" = "no"
5971 then
5972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5973 $as_echo "Not building uuidd" >&6; }
5974         UUIDD_CMT="#"
5975 else
5976         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5977
5978         UUIDD_CMT=""
5979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5980 $as_echo "Building uuidd" >&6; }
5981 fi
5982
5983 else
5984   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5985
5986 UUIDD_CMT=""
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5988 $as_echo "Building uuidd by default" >&6; }
5989
5990 fi
5991
5992
5993
5994 # Check whether --enable-mmp was given.
5995 if test "${enable_mmp+set}" = set; then :
5996   enableval=$enable_mmp; if test "$enableval" = "no"
5997 then
5998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5999 $as_echo "Disabling mmp support" >&6; }
6000 else
6001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6002 $as_echo "Enabling mmp support" >&6; }
6003         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6004
6005 fi
6006
6007 else
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6009 $as_echo "Enabling mmp support by default" >&6; }
6010 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6011
6012
6013 fi
6014
6015
6016 # Check whether --enable-bmap-stats was given.
6017 if test "${enable_bmap_stats+set}" = set; then :
6018   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6019 then
6020         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6021 $as_echo "Disabling bitmap statistics support" >&6; }
6022 else
6023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6024 $as_echo "Enabling bitmap statistics support" >&6; }
6025         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6026
6027 fi
6028
6029 else
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6031 $as_echo "Enabling bitmap statistics support by default" >&6; }
6032 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6033
6034
6035 fi
6036
6037
6038 # Check whether --enable-bmap-stats-ops was given.
6039 if test "${enable_bmap_stats_ops+set}" = set; then :
6040   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6041 then
6042         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6043 $as_echo "Disabling additional bitmap statistics" >&6; }
6044 else
6045                 if test "x${enable_bmap_stats}" = "xno"; then :
6046   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6048 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6049 See \`config.log' for more details" "$LINENO" 5; }
6050 fi
6051
6052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6053 $as_echo "Enabling additional bitmap statistics" >&6; }
6054         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6055
6056 fi
6057
6058 else
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6060 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6061
6062 fi
6063
6064 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6065
6066 GETTEXT_PACKAGE=e2fsprogs
6067 PACKAGE=e2fsprogs
6068 VERSION="$E2FSPROGS_VERSION"
6069 VERSION=0.14.1
6070
6071 cat >>confdefs.h <<_ACEOF
6072 #define PACKAGE "$PACKAGE"
6073 _ACEOF
6074
6075
6076 cat >>confdefs.h <<_ACEOF
6077 #define VERSION "$VERSION"
6078 _ACEOF
6079
6080
6081
6082
6083
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6085 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6086 set x ${MAKE-make}
6087 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6088 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6089   $as_echo_n "(cached) " >&6
6090 else
6091   cat >conftest.make <<\_ACEOF
6092 SHELL = /bin/sh
6093 all:
6094         @echo '@@@%%%=$(MAKE)=@@@%%%'
6095 _ACEOF
6096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6098   *@@@%%%=?*=@@@%%%*)
6099     eval ac_cv_prog_make_${ac_make}_set=yes;;
6100   *)
6101     eval ac_cv_prog_make_${ac_make}_set=no;;
6102 esac
6103 rm -f conftest.make
6104 fi
6105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6107 $as_echo "yes" >&6; }
6108   SET_MAKE=
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112   SET_MAKE="MAKE=${MAKE-make}"
6113 fi
6114
6115 # Find a good install program.  We prefer a C program (faster),
6116 # so one script is as good as another.  But avoid the broken or
6117 # incompatible versions:
6118 # SysV /etc/install, /usr/sbin/install
6119 # SunOS /usr/etc/install
6120 # IRIX /sbin/install
6121 # AIX /bin/install
6122 # AmigaOS /C/install, which installs bootblocks on floppy discs
6123 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6124 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6125 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6126 # OS/2's system install, which has a completely different semantic
6127 # ./install, which can be erroneously created by make from ./install.sh.
6128 # Reject install programs that cannot install multiple files.
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6130 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6131 if test -z "$INSTALL"; then
6132 if ${ac_cv_path_install+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138   IFS=$as_save_IFS
6139   test -z "$as_dir" && as_dir=.
6140     # Account for people who put trailing slashes in PATH elements.
6141 case $as_dir/ in #((
6142   ./ | .// | /[cC]/* | \
6143   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6144   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6145   /usr/ucb/* ) ;;
6146   *)
6147     # OSF1 and SCO ODT 3.0 have their own names for install.
6148     # Don't use installbsd from OSF since it installs stuff as root
6149     # by default.
6150     for ac_prog in ginstall scoinst install; do
6151       for ac_exec_ext in '' $ac_executable_extensions; do
6152         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6153           if test $ac_prog = install &&
6154             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6155             # AIX install.  It has an incompatible calling convention.
6156             :
6157           elif test $ac_prog = install &&
6158             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6159             # program-specific install script used by HP pwplus--don't use.
6160             :
6161           else
6162             rm -rf conftest.one conftest.two conftest.dir
6163             echo one > conftest.one
6164             echo two > conftest.two
6165             mkdir conftest.dir
6166             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6167               test -s conftest.one && test -s conftest.two &&
6168               test -s conftest.dir/conftest.one &&
6169               test -s conftest.dir/conftest.two
6170             then
6171               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6172               break 3
6173             fi
6174           fi
6175         fi
6176       done
6177     done
6178     ;;
6179 esac
6180
6181   done
6182 IFS=$as_save_IFS
6183
6184 rm -rf conftest.one conftest.two conftest.dir
6185
6186 fi
6187   if test "${ac_cv_path_install+set}" = set; then
6188     INSTALL=$ac_cv_path_install
6189   else
6190     # As a last resort, use the slow shell script.  Don't cache a
6191     # value for INSTALL within a source directory, because that will
6192     # break other packages using the cache if that directory is
6193     # removed, or if the value is a relative name.
6194     INSTALL=$ac_install_sh
6195   fi
6196 fi
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6198 $as_echo "$INSTALL" >&6; }
6199
6200 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6201 # It thinks the first close brace ends the variable substitution.
6202 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6203
6204 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6205
6206 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6209 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6210 if test -z "$MKDIR_P"; then
6211   if ${ac_cv_path_mkdir+:} false; then :
6212   $as_echo_n "(cached) " >&6
6213 else
6214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6216 do
6217   IFS=$as_save_IFS
6218   test -z "$as_dir" && as_dir=.
6219     for ac_prog in mkdir gmkdir; do
6220          for ac_exec_ext in '' $ac_executable_extensions; do
6221            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6222            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6223              'mkdir (GNU coreutils) '* | \
6224              'mkdir (coreutils) '* | \
6225              'mkdir (fileutils) '4.1*)
6226                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6227                break 3;;
6228            esac
6229          done
6230        done
6231   done
6232 IFS=$as_save_IFS
6233
6234 fi
6235
6236   test -d ./--version && rmdir ./--version
6237   if test "${ac_cv_path_mkdir+set}" = set; then
6238     MKDIR_P="$ac_cv_path_mkdir -p"
6239   else
6240     # As a last resort, use the slow shell script.  Don't cache a
6241     # value for MKDIR_P within a source directory, because that will
6242     # break other packages using the cache if that directory is
6243     # removed, or if the value is a relative name.
6244     MKDIR_P="$ac_install_sh -d"
6245   fi
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6248 $as_echo "$MKDIR_P" >&6; }
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6251 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6252 if ${ac_cv_path_SED+:} false; then :
6253   $as_echo_n "(cached) " >&6
6254 else
6255             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6256      for ac_i in 1 2 3 4 5 6 7; do
6257        ac_script="$ac_script$as_nl$ac_script"
6258      done
6259      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6260      { ac_script=; unset ac_script;}
6261      if test -z "$SED"; then
6262   ac_path_SED_found=false
6263   # Loop through the user's path and test for each of PROGNAME-LIST
6264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269     for ac_prog in sed gsed; do
6270     for ac_exec_ext in '' $ac_executable_extensions; do
6271       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6272       as_fn_executable_p "$ac_path_SED" || continue
6273 # Check for GNU ac_path_SED and select it if it is found.
6274   # Check for GNU $ac_path_SED
6275 case `"$ac_path_SED" --version 2>&1` in
6276 *GNU*)
6277   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6278 *)
6279   ac_count=0
6280   $as_echo_n 0123456789 >"conftest.in"
6281   while :
6282   do
6283     cat "conftest.in" "conftest.in" >"conftest.tmp"
6284     mv "conftest.tmp" "conftest.in"
6285     cp "conftest.in" "conftest.nl"
6286     $as_echo '' >> "conftest.nl"
6287     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6288     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6289     as_fn_arith $ac_count + 1 && ac_count=$as_val
6290     if test $ac_count -gt ${ac_path_SED_max-0}; then
6291       # Best one so far, save it but keep looking for a better one
6292       ac_cv_path_SED="$ac_path_SED"
6293       ac_path_SED_max=$ac_count
6294     fi
6295     # 10*(2^10) chars as input seems more than enough
6296     test $ac_count -gt 10 && break
6297   done
6298   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6299 esac
6300
6301       $ac_path_SED_found && break 3
6302     done
6303   done
6304   done
6305 IFS=$as_save_IFS
6306   if test -z "$ac_cv_path_SED"; then
6307     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6308   fi
6309 else
6310   ac_cv_path_SED=$SED
6311 fi
6312
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6315 $as_echo "$ac_cv_path_SED" >&6; }
6316  SED="$ac_cv_path_SED"
6317   rm -f conftest.sed
6318
6319
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6321 $as_echo_n "checking whether NLS is requested... " >&6; }
6322     # Check whether --enable-nls was given.
6323 if test "${enable_nls+set}" = set; then :
6324   enableval=$enable_nls; USE_NLS=$enableval
6325 else
6326   USE_NLS=yes
6327 fi
6328
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6330 $as_echo "$USE_NLS" >&6; }
6331
6332
6333
6334
6335       GETTEXT_MACRO_VERSION=0.18
6336
6337
6338
6339
6340 # Prepare PATH_SEPARATOR.
6341 # The user is always right.
6342 if test "${PATH_SEPARATOR+set}" != set; then
6343   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6344   # contains only /bin. Note that ksh looks also at the FPATH variable,
6345   # so we have to set that as well for the test.
6346   PATH_SEPARATOR=:
6347   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6348     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6349            || PATH_SEPARATOR=';'
6350        }
6351 fi
6352
6353 # Find out how to test for executable files. Don't use a zero-byte file,
6354 # as systems may use methods other than mode bits to determine executability.
6355 cat >conf$$.file <<_ASEOF
6356 #! /bin/sh
6357 exit 0
6358 _ASEOF
6359 chmod +x conf$$.file
6360 if test -x conf$$.file >/dev/null 2>&1; then
6361   ac_executable_p="test -x"
6362 else
6363   ac_executable_p="test -f"
6364 fi
6365 rm -f conf$$.file
6366
6367 # Extract the first word of "msgfmt", so it can be a program name with args.
6368 set dummy msgfmt; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_path_MSGFMT+:} false; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   case "$MSGFMT" in
6375   [\\/]* | ?:[\\/]*)
6376     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6377     ;;
6378   *)
6379     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6380     for ac_dir in $PATH; do
6381       IFS="$ac_save_IFS"
6382       test -z "$ac_dir" && ac_dir=.
6383       for ac_exec_ext in '' $ac_executable_extensions; do
6384         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6385           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6386           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6387      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6388             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6389             break 2
6390           fi
6391         fi
6392       done
6393     done
6394     IFS="$ac_save_IFS"
6395   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6396     ;;
6397 esac
6398 fi
6399 MSGFMT="$ac_cv_path_MSGFMT"
6400 if test "$MSGFMT" != ":"; then
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6402 $as_echo "$MSGFMT" >&6; }
6403 else
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6409 set dummy gmsgfmt; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_path_GMSGFMT+:} false; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   case $GMSGFMT in
6416   [\\/]* | ?:[\\/]*)
6417   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6418   ;;
6419   *)
6420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425     for ac_exec_ext in '' $ac_executable_extensions; do
6426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432   done
6433 IFS=$as_save_IFS
6434
6435   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6436   ;;
6437 esac
6438 fi
6439 GMSGFMT=$ac_cv_path_GMSGFMT
6440 if test -n "$GMSGFMT"; then
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6442 $as_echo "$GMSGFMT" >&6; }
6443 else
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6447
6448
6449
6450     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6451     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6452     *) MSGFMT_015=$MSGFMT ;;
6453   esac
6454
6455   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6456     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6457     *) GMSGFMT_015=$GMSGFMT ;;
6458   esac
6459
6460
6461
6462 # Prepare PATH_SEPARATOR.
6463 # The user is always right.
6464 if test "${PATH_SEPARATOR+set}" != set; then
6465   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6466   # contains only /bin. Note that ksh looks also at the FPATH variable,
6467   # so we have to set that as well for the test.
6468   PATH_SEPARATOR=:
6469   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6470     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6471            || PATH_SEPARATOR=';'
6472        }
6473 fi
6474
6475 # Find out how to test for executable files. Don't use a zero-byte file,
6476 # as systems may use methods other than mode bits to determine executability.
6477 cat >conf$$.file <<_ASEOF
6478 #! /bin/sh
6479 exit 0
6480 _ASEOF
6481 chmod +x conf$$.file
6482 if test -x conf$$.file >/dev/null 2>&1; then
6483   ac_executable_p="test -x"
6484 else
6485   ac_executable_p="test -f"
6486 fi
6487 rm -f conf$$.file
6488
6489 # Extract the first word of "xgettext", so it can be a program name with args.
6490 set dummy xgettext; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_path_XGETTEXT+:} false; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   case "$XGETTEXT" in
6497   [\\/]* | ?:[\\/]*)
6498     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6499     ;;
6500   *)
6501     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6502     for ac_dir in $PATH; do
6503       IFS="$ac_save_IFS"
6504       test -z "$ac_dir" && ac_dir=.
6505       for ac_exec_ext in '' $ac_executable_extensions; do
6506         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6507           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6508           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6509      (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
6510             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6511             break 2
6512           fi
6513         fi
6514       done
6515     done
6516     IFS="$ac_save_IFS"
6517   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6518     ;;
6519 esac
6520 fi
6521 XGETTEXT="$ac_cv_path_XGETTEXT"
6522 if test "$XGETTEXT" != ":"; then
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6524 $as_echo "$XGETTEXT" >&6; }
6525 else
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530     rm -f messages.po
6531
6532     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6533     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6534     *) XGETTEXT_015=$XGETTEXT ;;
6535   esac
6536
6537
6538
6539 # Prepare PATH_SEPARATOR.
6540 # The user is always right.
6541 if test "${PATH_SEPARATOR+set}" != set; then
6542   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6543   # contains only /bin. Note that ksh looks also at the FPATH variable,
6544   # so we have to set that as well for the test.
6545   PATH_SEPARATOR=:
6546   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6547     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6548            || PATH_SEPARATOR=';'
6549        }
6550 fi
6551
6552 # Find out how to test for executable files. Don't use a zero-byte file,
6553 # as systems may use methods other than mode bits to determine executability.
6554 cat >conf$$.file <<_ASEOF
6555 #! /bin/sh
6556 exit 0
6557 _ASEOF
6558 chmod +x conf$$.file
6559 if test -x conf$$.file >/dev/null 2>&1; then
6560   ac_executable_p="test -x"
6561 else
6562   ac_executable_p="test -f"
6563 fi
6564 rm -f conf$$.file
6565
6566 # Extract the first word of "msgmerge", so it can be a program name with args.
6567 set dummy msgmerge; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_path_MSGMERGE+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   case "$MSGMERGE" in
6574   [\\/]* | ?:[\\/]*)
6575     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6576     ;;
6577   *)
6578     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6579     for ac_dir in $PATH; do
6580       IFS="$ac_save_IFS"
6581       test -z "$ac_dir" && ac_dir=.
6582       for ac_exec_ext in '' $ac_executable_extensions; do
6583         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6584           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6585           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6586             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6587             break 2
6588           fi
6589         fi
6590       done
6591     done
6592     IFS="$ac_save_IFS"
6593   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6594     ;;
6595 esac
6596 fi
6597 MSGMERGE="$ac_cv_path_MSGMERGE"
6598 if test "$MSGMERGE" != ":"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6600 $as_echo "$MSGMERGE" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606
6607         test -n "$localedir" || localedir='${datadir}/locale'
6608
6609
6610     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6611
6612
6613   ac_config_commands="$ac_config_commands po-directories"
6614
6615
6616
6617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6618 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6619 if ${ac_cv_gnu_library_2+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h.  */
6624
6625 #include <features.h>
6626 #ifdef __GNU_LIBRARY__
6627  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6628   Lucky GNU user
6629  #endif
6630 #endif
6631
6632 _ACEOF
6633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6635   ac_cv_gnu_library_2=yes
6636 else
6637   ac_cv_gnu_library_2=no
6638 fi
6639 rm -f conftest*
6640
6641
6642
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6645 $as_echo "$ac_cv_gnu_library_2" >&6; }
6646
6647     GLIBC2="$ac_cv_gnu_library_2"
6648
6649
6650 if test -n "$ac_tool_prefix"; then
6651   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_RANLIB+:} false; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   if test -n "$RANLIB"; then
6659   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664   IFS=$as_save_IFS
6665   test -z "$as_dir" && as_dir=.
6666     for ac_exec_ext in '' $ac_executable_extensions; do
6667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670     break 2
6671   fi
6672 done
6673   done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 RANLIB=$ac_cv_prog_RANLIB
6679 if test -n "$RANLIB"; then
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6681 $as_echo "$RANLIB" >&6; }
6682 else
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 fi
6686
6687
6688 fi
6689 if test -z "$ac_cv_prog_RANLIB"; then
6690   ac_ct_RANLIB=$RANLIB
6691   # Extract the first word of "ranlib", so it can be a program name with args.
6692 set dummy ranlib; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6696   $as_echo_n "(cached) " >&6
6697 else
6698   if test -n "$ac_ct_RANLIB"; then
6699   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706     for ac_exec_ext in '' $ac_executable_extensions; do
6707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708     ac_cv_prog_ac_ct_RANLIB="ranlib"
6709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713   done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6719 if test -n "$ac_ct_RANLIB"; then
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6721 $as_echo "$ac_ct_RANLIB" >&6; }
6722 else
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727   if test "x$ac_ct_RANLIB" = x; then
6728     RANLIB=":"
6729   else
6730     case $cross_compiling:$ac_tool_warned in
6731 yes:)
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734 ac_tool_warned=yes ;;
6735 esac
6736     RANLIB=$ac_ct_RANLIB
6737   fi
6738 else
6739   RANLIB="$ac_cv_prog_RANLIB"
6740 fi
6741
6742
6743
6744   CFLAG_VISIBILITY=
6745   HAVE_VISIBILITY=0
6746   if test -n "$GCC"; then
6747                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6748 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6749     if ${gl_cv_cc_vis_werror+:} false; then :
6750   $as_echo_n "(cached) " >&6
6751 else
6752
6753       gl_save_CFLAGS="$CFLAGS"
6754       CFLAGS="$CFLAGS -Werror"
6755       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h.  */
6757
6758 int
6759 main ()
6760 {
6761
6762   ;
6763   return 0;
6764 }
6765 _ACEOF
6766 if ac_fn_c_try_compile "$LINENO"; then :
6767   gl_cv_cc_vis_werror=yes
6768 else
6769   gl_cv_cc_vis_werror=no
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772       CFLAGS="$gl_save_CFLAGS"
6773 fi
6774
6775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6776 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6778 $as_echo_n "checking for simple visibility declarations... " >&6; }
6779     if ${gl_cv_cc_visibility+:} false; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782
6783       gl_save_CFLAGS="$CFLAGS"
6784       CFLAGS="$CFLAGS -fvisibility=hidden"
6785                                     if test $gl_cv_cc_vis_werror = yes; then
6786         CFLAGS="$CFLAGS -Werror"
6787       fi
6788       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h.  */
6790 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6791              extern __attribute__((__visibility__("default"))) int exportedvar;
6792              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6793              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6794              void dummyfunc (void) {}
6795
6796 int
6797 main ()
6798 {
6799
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805   gl_cv_cc_visibility=yes
6806 else
6807   gl_cv_cc_visibility=no
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810       CFLAGS="$gl_save_CFLAGS"
6811 fi
6812
6813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6814 $as_echo "$gl_cv_cc_visibility" >&6; }
6815     if test $gl_cv_cc_visibility = yes; then
6816       CFLAG_VISIBILITY="-fvisibility=hidden"
6817       HAVE_VISIBILITY=1
6818     fi
6819   fi
6820
6821
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6825 _ACEOF
6826
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6829 $as_echo_n "checking for inline... " >&6; }
6830 if ${ac_cv_c_inline+:} false; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   ac_cv_c_inline=no
6834 for ac_kw in inline __inline__ __inline; do
6835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h.  */
6837 #ifndef __cplusplus
6838 typedef int foo_t;
6839 static $ac_kw foo_t static_foo () {return 0; }
6840 $ac_kw foo_t foo () {return 0; }
6841 #endif
6842
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845   ac_cv_c_inline=$ac_kw
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848   test "$ac_cv_c_inline" != no && break
6849 done
6850
6851 fi
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6853 $as_echo "$ac_cv_c_inline" >&6; }
6854
6855 case $ac_cv_c_inline in
6856   inline | yes) ;;
6857   *)
6858     case $ac_cv_c_inline in
6859       no) ac_val=;;
6860       *) ac_val=$ac_cv_c_inline;;
6861     esac
6862     cat >>confdefs.h <<_ACEOF
6863 #ifndef __cplusplus
6864 #define inline $ac_val
6865 #endif
6866 _ACEOF
6867     ;;
6868 esac
6869
6870 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6871 if test "x$ac_cv_type_size_t" = xyes; then :
6872
6873 else
6874
6875 cat >>confdefs.h <<_ACEOF
6876 #define size_t unsigned int
6877 _ACEOF
6878
6879 fi
6880
6881
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6883 $as_echo_n "checking for stdint.h... " >&6; }
6884 if ${gl_cv_header_stdint_h+:} false; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h.  */
6889 #include <sys/types.h>
6890             #include <stdint.h>
6891 int
6892 main ()
6893 {
6894 uintmax_t i = (uintmax_t) -1; return !i;
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900   gl_cv_header_stdint_h=yes
6901 else
6902   gl_cv_header_stdint_h=no
6903 fi
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6907 $as_echo "$gl_cv_header_stdint_h" >&6; }
6908   if test $gl_cv_header_stdint_h = yes; then
6909
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_STDINT_H_WITH_UINTMAX 1
6912 _ACEOF
6913
6914   fi
6915
6916 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6917 # for constant arguments.  Useless!
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6919 $as_echo_n "checking for working alloca.h... " >&6; }
6920 if ${ac_cv_working_alloca_h+:} false; then :
6921   $as_echo_n "(cached) " >&6
6922 else
6923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h.  */
6925 #include <alloca.h>
6926 int
6927 main ()
6928 {
6929 char *p = (char *) alloca (2 * sizeof (int));
6930                           if (p) return 0;
6931   ;
6932   return 0;
6933 }
6934 _ACEOF
6935 if ac_fn_c_try_link "$LINENO"; then :
6936   ac_cv_working_alloca_h=yes
6937 else
6938   ac_cv_working_alloca_h=no
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext \
6941     conftest$ac_exeext conftest.$ac_ext
6942 fi
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6944 $as_echo "$ac_cv_working_alloca_h" >&6; }
6945 if test $ac_cv_working_alloca_h = yes; then
6946
6947 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6948
6949 fi
6950
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6952 $as_echo_n "checking for alloca... " >&6; }
6953 if ${ac_cv_func_alloca_works+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h.  */
6958 #ifdef __GNUC__
6959 # define alloca __builtin_alloca
6960 #else
6961 # ifdef _MSC_VER
6962 #  include <malloc.h>
6963 #  define alloca _alloca
6964 # else
6965 #  ifdef HAVE_ALLOCA_H
6966 #   include <alloca.h>
6967 #  else
6968 #   ifdef _AIX
6969  #pragma alloca
6970 #   else
6971 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6972 void *alloca (size_t);
6973 #    endif
6974 #   endif
6975 #  endif
6976 # endif
6977 #endif
6978
6979 int
6980 main ()
6981 {
6982 char *p = (char *) alloca (1);
6983                                     if (p) return 0;
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 if ac_fn_c_try_link "$LINENO"; then :
6989   ac_cv_func_alloca_works=yes
6990 else
6991   ac_cv_func_alloca_works=no
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext \
6994     conftest$ac_exeext conftest.$ac_ext
6995 fi
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6997 $as_echo "$ac_cv_func_alloca_works" >&6; }
6998
6999 if test $ac_cv_func_alloca_works = yes; then
7000
7001 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7002
7003 else
7004   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7005 # that cause trouble.  Some versions do not even contain alloca or
7006 # contain a buggy version.  If you still want to use their alloca,
7007 # use ar to extract alloca.o from them instead of compiling alloca.c.
7008
7009 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7010
7011 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7012
7013
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7015 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7016 if ${ac_cv_os_cray+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h.  */
7021 #if defined CRAY && ! defined CRAY2
7022 webecray
7023 #else
7024 wenotbecray
7025 #endif
7026
7027 _ACEOF
7028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029   $EGREP "webecray" >/dev/null 2>&1; then :
7030   ac_cv_os_cray=yes
7031 else
7032   ac_cv_os_cray=no
7033 fi
7034 rm -f conftest*
7035
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7038 $as_echo "$ac_cv_os_cray" >&6; }
7039 if test $ac_cv_os_cray = yes; then
7040   for ac_func in _getb67 GETB67 getb67; do
7041     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7043 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7044
7045 cat >>confdefs.h <<_ACEOF
7046 #define CRAY_STACKSEG_END $ac_func
7047 _ACEOF
7048
7049     break
7050 fi
7051
7052   done
7053 fi
7054
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7056 $as_echo_n "checking stack direction for C alloca... " >&6; }
7057 if ${ac_cv_c_stack_direction+:} false; then :
7058   $as_echo_n "(cached) " >&6
7059 else
7060   if test "$cross_compiling" = yes; then :
7061   ac_cv_c_stack_direction=0
7062 else
7063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h.  */
7065 $ac_includes_default
7066 int
7067 find_stack_direction (int *addr, int depth)
7068 {
7069   int dir, dummy = 0;
7070   if (! addr)
7071     addr = &dummy;
7072   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7073   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7074   return dir + dummy;
7075 }
7076
7077 int
7078 main (int argc, char **argv)
7079 {
7080   return find_stack_direction (0, argc + !argv + 20) < 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_run "$LINENO"; then :
7084   ac_cv_c_stack_direction=1
7085 else
7086   ac_cv_c_stack_direction=-1
7087 fi
7088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7089   conftest.$ac_objext conftest.beam conftest.$ac_ext
7090 fi
7091
7092 fi
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7094 $as_echo "$ac_cv_c_stack_direction" >&6; }
7095 cat >>confdefs.h <<_ACEOF
7096 #define STACK_DIRECTION $ac_cv_c_stack_direction
7097 _ACEOF
7098
7099
7100 fi
7101
7102
7103
7104
7105   for ac_header in $ac_header_list
7106 do :
7107   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7108 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7109 "
7110 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7111   cat >>confdefs.h <<_ACEOF
7112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7113 _ACEOF
7114
7115 fi
7116
7117 done
7118
7119
7120
7121
7122
7123
7124
7125
7126 for ac_func in getpagesize
7127 do :
7128   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7129 if test "x$ac_cv_func_getpagesize" = xyes; then :
7130   cat >>confdefs.h <<_ACEOF
7131 #define HAVE_GETPAGESIZE 1
7132 _ACEOF
7133
7134 fi
7135 done
7136
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7138 $as_echo_n "checking for working mmap... " >&6; }
7139 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   if test "$cross_compiling" = yes; then :
7143   ac_cv_func_mmap_fixed_mapped=no
7144 else
7145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h.  */
7147 $ac_includes_default
7148 /* malloc might have been renamed as rpl_malloc. */
7149 #undef malloc
7150
7151 /* Thanks to Mike Haertel and Jim Avera for this test.
7152    Here is a matrix of mmap possibilities:
7153         mmap private not fixed
7154         mmap private fixed at somewhere currently unmapped
7155         mmap private fixed at somewhere already mapped
7156         mmap shared not fixed
7157         mmap shared fixed at somewhere currently unmapped
7158         mmap shared fixed at somewhere already mapped
7159    For private mappings, we should verify that changes cannot be read()
7160    back from the file, nor mmap's back from the file at a different
7161    address.  (There have been systems where private was not correctly
7162    implemented like the infamous i386 svr4.0, and systems where the
7163    VM page cache was not coherent with the file system buffer cache
7164    like early versions of FreeBSD and possibly contemporary NetBSD.)
7165    For shared mappings, we should conversely verify that changes get
7166    propagated back to all the places they're supposed to be.
7167
7168    Grep wants private fixed already mapped.
7169    The main things grep needs to know about mmap are:
7170    * does it exist and is it safe to write into the mmap'd area
7171    * how to use it (BSD variants)  */
7172
7173 #include <fcntl.h>
7174 #include <sys/mman.h>
7175
7176 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7177 char *malloc ();
7178 #endif
7179
7180 /* This mess was copied from the GNU getpagesize.h.  */
7181 #ifndef HAVE_GETPAGESIZE
7182 # ifdef _SC_PAGESIZE
7183 #  define getpagesize() sysconf(_SC_PAGESIZE)
7184 # else /* no _SC_PAGESIZE */
7185 #  ifdef HAVE_SYS_PARAM_H
7186 #   include <sys/param.h>
7187 #   ifdef EXEC_PAGESIZE
7188 #    define getpagesize() EXEC_PAGESIZE
7189 #   else /* no EXEC_PAGESIZE */
7190 #    ifdef NBPG
7191 #     define getpagesize() NBPG * CLSIZE
7192 #     ifndef CLSIZE
7193 #      define CLSIZE 1
7194 #     endif /* no CLSIZE */
7195 #    else /* no NBPG */
7196 #     ifdef NBPC
7197 #      define getpagesize() NBPC
7198 #     else /* no NBPC */
7199 #      ifdef PAGESIZE
7200 #       define getpagesize() PAGESIZE
7201 #      endif /* PAGESIZE */
7202 #     endif /* no NBPC */
7203 #    endif /* no NBPG */
7204 #   endif /* no EXEC_PAGESIZE */
7205 #  else /* no HAVE_SYS_PARAM_H */
7206 #   define getpagesize() 8192   /* punt totally */
7207 #  endif /* no HAVE_SYS_PARAM_H */
7208 # endif /* no _SC_PAGESIZE */
7209
7210 #endif /* no HAVE_GETPAGESIZE */
7211
7212 int
7213 main ()
7214 {
7215   char *data, *data2, *data3;
7216   const char *cdata2;
7217   int i, pagesize;
7218   int fd, fd2;
7219
7220   pagesize = getpagesize ();
7221
7222   /* First, make a file with some known garbage in it. */
7223   data = (char *) malloc (pagesize);
7224   if (!data)
7225     return 1;
7226   for (i = 0; i < pagesize; ++i)
7227     *(data + i) = rand ();
7228   umask (0);
7229   fd = creat ("conftest.mmap", 0600);
7230   if (fd < 0)
7231     return 2;
7232   if (write (fd, data, pagesize) != pagesize)
7233     return 3;
7234   close (fd);
7235
7236   /* Next, check that the tail of a page is zero-filled.  File must have
7237      non-zero length, otherwise we risk SIGBUS for entire page.  */
7238   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7239   if (fd2 < 0)
7240     return 4;
7241   cdata2 = "";
7242   if (write (fd2, cdata2, 1) != 1)
7243     return 5;
7244   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7245   if (data2 == MAP_FAILED)
7246     return 6;
7247   for (i = 0; i < pagesize; ++i)
7248     if (*(data2 + i))
7249       return 7;
7250   close (fd2);
7251   if (munmap (data2, pagesize))
7252     return 8;
7253
7254   /* Next, try to mmap the file at a fixed address which already has
7255      something else allocated at it.  If we can, also make sure that
7256      we see the same garbage.  */
7257   fd = open ("conftest.mmap", O_RDWR);
7258   if (fd < 0)
7259     return 9;
7260   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7261                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7262     return 10;
7263   for (i = 0; i < pagesize; ++i)
7264     if (*(data + i) != *(data2 + i))
7265       return 11;
7266
7267   /* Finally, make sure that changes to the mapped area do not
7268      percolate back to the file as seen by read().  (This is a bug on
7269      some variants of i386 svr4.0.)  */
7270   for (i = 0; i < pagesize; ++i)
7271     *(data2 + i) = *(data2 + i) + 1;
7272   data3 = (char *) malloc (pagesize);
7273   if (!data3)
7274     return 12;
7275   if (read (fd, data3, pagesize) != pagesize)
7276     return 13;
7277   for (i = 0; i < pagesize; ++i)
7278     if (*(data + i) != *(data3 + i))
7279       return 14;
7280   close (fd);
7281   return 0;
7282 }
7283 _ACEOF
7284 if ac_fn_c_try_run "$LINENO"; then :
7285   ac_cv_func_mmap_fixed_mapped=yes
7286 else
7287   ac_cv_func_mmap_fixed_mapped=no
7288 fi
7289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7290   conftest.$ac_objext conftest.beam conftest.$ac_ext
7291 fi
7292
7293 fi
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7295 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7296 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7297
7298 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7299
7300 fi
7301 rm -f conftest.mmap conftest.txt
7302
7303
7304
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7306 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7307 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310
7311       gt_cv_int_divbyzero_sigfpe=
7312       case "$host_os" in
7313         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7314           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7315           # compiling. If we were to perform the real test, 1 Crash Report
7316           # dialog window would pop up.
7317           case "$host_cpu" in
7318             i[34567]86 | x86_64)
7319               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7320           esac
7321           ;;
7322       esac
7323       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7324         if test "$cross_compiling" = yes; then :
7325
7326             # Guess based on the CPU.
7327             case "$host_cpu" in
7328               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7329                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7330               *)
7331                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7332             esac
7333
7334 else
7335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h.  */
7337
7338 #include <stdlib.h>
7339 #include <signal.h>
7340
7341 static void
7342 sigfpe_handler (int sig)
7343 {
7344   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7345   exit (sig != SIGFPE);
7346 }
7347
7348 int x = 1;
7349 int y = 0;
7350 int z;
7351 int nan;
7352
7353 int main ()
7354 {
7355   signal (SIGFPE, sigfpe_handler);
7356 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7357 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7358   signal (SIGTRAP, sigfpe_handler);
7359 #endif
7360 /* Linux/SPARC yields signal SIGILL.  */
7361 #if defined (__sparc__) && defined (__linux__)
7362   signal (SIGILL, sigfpe_handler);
7363 #endif
7364
7365   z = x / y;
7366   nan = y / y;
7367   exit (2);
7368 }
7369
7370 _ACEOF
7371 if ac_fn_c_try_run "$LINENO"; then :
7372   gt_cv_int_divbyzero_sigfpe=yes
7373 else
7374   gt_cv_int_divbyzero_sigfpe=no
7375 fi
7376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7377   conftest.$ac_objext conftest.beam conftest.$ac_ext
7378 fi
7379
7380       fi
7381
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7384 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7385   case "$gt_cv_int_divbyzero_sigfpe" in
7386     *yes) value=1;;
7387     *) value=0;;
7388   esac
7389
7390 cat >>confdefs.h <<_ACEOF
7391 #define INTDIV0_RAISES_SIGFPE $value
7392 _ACEOF
7393
7394
7395
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7397 $as_echo_n "checking for inttypes.h... " >&6; }
7398 if ${gl_cv_header_inttypes_h+:} false; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h.  */
7403
7404 #include <sys/types.h>
7405 #include <inttypes.h>
7406
7407 int
7408 main ()
7409 {
7410 uintmax_t i = (uintmax_t) -1; return !i;
7411   ;
7412   return 0;
7413 }
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416   gl_cv_header_inttypes_h=yes
7417 else
7418   gl_cv_header_inttypes_h=no
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7423 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7424   if test $gl_cv_header_inttypes_h = yes; then
7425
7426 cat >>confdefs.h <<_ACEOF
7427 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7428 _ACEOF
7429
7430   fi
7431
7432
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7434 $as_echo_n "checking for unsigned long long int... " >&6; }
7435 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   ac_cv_type_unsigned_long_long_int=yes
7439      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7440        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h.  */
7442
7443   /* For now, do not test the preprocessor; as of 2007 there are too many
7444          implementations with broken preprocessors.  Perhaps this can
7445          be revisited in 2012.  In the meantime, code should not expect
7446          #if to work with literals wider than 32 bits.  */
7447       /* Test literals.  */
7448       long long int ll = 9223372036854775807ll;
7449       long long int nll = -9223372036854775807LL;
7450       unsigned long long int ull = 18446744073709551615ULL;
7451       /* Test constant expressions.   */
7452       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7453                      ? 1 : -1)];
7454       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7455                      ? 1 : -1)];
7456       int i = 63;
7457 int
7458 main ()
7459 {
7460 /* Test availability of runtime routines for shift and division.  */
7461       long long int llmax = 9223372036854775807ll;
7462       unsigned long long int ullmax = 18446744073709551615ull;
7463       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7464               | (llmax / ll) | (llmax % ll)
7465               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7466               | (ullmax / ull) | (ullmax % ull));
7467   ;
7468   return 0;
7469 }
7470
7471 _ACEOF
7472 if ac_fn_c_try_link "$LINENO"; then :
7473
7474 else
7475   ac_cv_type_unsigned_long_long_int=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext \
7478     conftest$ac_exeext conftest.$ac_ext
7479      fi
7480 fi
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7482 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7483   if test $ac_cv_type_unsigned_long_long_int = yes; then
7484
7485 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7486
7487   fi
7488
7489
7490
7491
7492   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7493
7494     test $ac_cv_type_unsigned_long_long_int = yes \
7495       && ac_type='unsigned long long' \
7496       || ac_type='unsigned long'
7497
7498 cat >>confdefs.h <<_ACEOF
7499 #define uintmax_t $ac_type
7500 _ACEOF
7501
7502   else
7503
7504 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7505
7506   fi
7507
7508
7509   for ac_header in inttypes.h
7510 do :
7511   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7512 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7513   cat >>confdefs.h <<_ACEOF
7514 #define HAVE_INTTYPES_H 1
7515 _ACEOF
7516
7517 fi
7518
7519 done
7520
7521   if test $ac_cv_header_inttypes_h = yes; then
7522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7523 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7524 if ${gt_cv_inttypes_pri_broken+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527
7528         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h.  */
7530
7531 #include <inttypes.h>
7532 #ifdef PRId32
7533 char *p = PRId32;
7534 #endif
7535
7536 int
7537 main ()
7538 {
7539
7540   ;
7541   return 0;
7542 }
7543 _ACEOF
7544 if ac_fn_c_try_compile "$LINENO"; then :
7545   gt_cv_inttypes_pri_broken=no
7546 else
7547   gt_cv_inttypes_pri_broken=yes
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7553 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7554   fi
7555   if test "$gt_cv_inttypes_pri_broken" = yes; then
7556
7557 cat >>confdefs.h <<_ACEOF
7558 #define PRI_MACROS_BROKEN 1
7559 _ACEOF
7560
7561     PRI_MACROS_BROKEN=1
7562   else
7563     PRI_MACROS_BROKEN=0
7564   fi
7565
7566
7567
7568
7569
7570
7571
7572   # Check whether --enable-threads was given.
7573 if test "${enable_threads+set}" = set; then :
7574   enableval=$enable_threads; gl_use_threads=$enableval
7575 else
7576   if test -n "$gl_use_threads_default"; then
7577        gl_use_threads="$gl_use_threads_default"
7578      else
7579        case "$host_os" in
7580                                                                osf*) gl_use_threads=no ;;
7581          cygwin*)
7582                case `uname -r` in
7583                  1.[0-5].*) gl_use_threads=no ;;
7584                  *)         gl_use_threads=yes ;;
7585                esac
7586                ;;
7587          *)    gl_use_threads=yes ;;
7588        esac
7589      fi
7590
7591 fi
7592
7593   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7594     # For using <pthread.h>:
7595     case "$host_os" in
7596       osf*)
7597         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7598         # groks <pthread.h>. cc also understands the flag -pthread, but
7599         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7600         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7601         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7602         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7603         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7604         ;;
7605     esac
7606     # Some systems optimize for single-threaded programs by default, and
7607     # need special flags to disable these optimizations. For example, the
7608     # definition of 'errno' in <errno.h>.
7609     case "$host_os" in
7610       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7611       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7612     esac
7613   fi
7614
7615
7616
7617
7618
7619       if test "X$prefix" = "XNONE"; then
7620     acl_final_prefix="$ac_default_prefix"
7621   else
7622     acl_final_prefix="$prefix"
7623   fi
7624   if test "X$exec_prefix" = "XNONE"; then
7625     acl_final_exec_prefix='${prefix}'
7626   else
7627     acl_final_exec_prefix="$exec_prefix"
7628   fi
7629   acl_save_prefix="$prefix"
7630   prefix="$acl_final_prefix"
7631   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7632   prefix="$acl_save_prefix"
7633
7634
7635
7636 # Check whether --with-gnu-ld was given.
7637 if test "${with_gnu_ld+set}" = set; then :
7638   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7639 else
7640   with_gnu_ld=no
7641 fi
7642
7643 # Prepare PATH_SEPARATOR.
7644 # The user is always right.
7645 if test "${PATH_SEPARATOR+set}" != set; then
7646   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7647   # contains only /bin. Note that ksh looks also at the FPATH variable,
7648   # so we have to set that as well for the test.
7649   PATH_SEPARATOR=:
7650   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7651     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7652            || PATH_SEPARATOR=';'
7653        }
7654 fi
7655
7656 ac_prog=ld
7657 if test "$GCC" = yes; then
7658   # Check if gcc -print-prog-name=ld gives a path.
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7660 $as_echo_n "checking for ld used by $CC... " >&6; }
7661   case $host in
7662   *-*-mingw*)
7663     # gcc leaves a trailing carriage return which upsets mingw
7664     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7665   *)
7666     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7667   esac
7668   case $ac_prog in
7669     # Accept absolute paths.
7670     [\\/]* | ?:[\\/]*)
7671       re_direlt='/[^/][^/]*/\.\./'
7672       # Canonicalize the pathname of ld
7673       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7674       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7675         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7676       done
7677       test -z "$LD" && LD="$ac_prog"
7678       ;;
7679   "")
7680     # If it fails, then pretend we aren't using GCC.
7681     ac_prog=ld
7682     ;;
7683   *)
7684     # If it is relative, then search for the first ld in PATH.
7685     with_gnu_ld=unknown
7686     ;;
7687   esac
7688 elif test "$with_gnu_ld" = yes; then
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7690 $as_echo_n "checking for GNU ld... " >&6; }
7691 else
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7693 $as_echo_n "checking for non-GNU ld... " >&6; }
7694 fi
7695 if ${acl_cv_path_LD+:} false; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   if test -z "$LD"; then
7699   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7700   for ac_dir in $PATH; do
7701     IFS="$acl_save_ifs"
7702     test -z "$ac_dir" && ac_dir=.
7703     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7704       acl_cv_path_LD="$ac_dir/$ac_prog"
7705       # Check to see if the program is GNU ld.  I'd rather use --version,
7706       # but apparently some variants of GNU ld only accept -v.
7707       # Break only if it was the GNU/non-GNU ld that we prefer.
7708       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7709       *GNU* | *'with BFD'*)
7710         test "$with_gnu_ld" != no && break
7711         ;;
7712       *)
7713         test "$with_gnu_ld" != yes && break
7714         ;;
7715       esac
7716     fi
7717   done
7718   IFS="$acl_save_ifs"
7719 else
7720   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7721 fi
7722 fi
7723
7724 LD="$acl_cv_path_LD"
7725 if test -n "$LD"; then
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7727 $as_echo "$LD" >&6; }
7728 else
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7734 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7735 if ${acl_cv_prog_gnu_ld+:} false; then :
7736   $as_echo_n "(cached) " >&6
7737 else
7738   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7739 case `$LD -v 2>&1 </dev/null` in
7740 *GNU* | *'with BFD'*)
7741   acl_cv_prog_gnu_ld=yes
7742   ;;
7743 *)
7744   acl_cv_prog_gnu_ld=no
7745   ;;
7746 esac
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7749 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7750 with_gnu_ld=$acl_cv_prog_gnu_ld
7751
7752
7753
7754
7755                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7756 $as_echo_n "checking for shared library run path origin... " >&6; }
7757 if ${acl_cv_rpath+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760
7761     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7762     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7763     . ./conftest.sh
7764     rm -f ./conftest.sh
7765     acl_cv_rpath=done
7766
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7769 $as_echo "$acl_cv_rpath" >&6; }
7770   wl="$acl_cv_wl"
7771   acl_libext="$acl_cv_libext"
7772   acl_shlibext="$acl_cv_shlibext"
7773   acl_libname_spec="$acl_cv_libname_spec"
7774   acl_library_names_spec="$acl_cv_library_names_spec"
7775   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7776   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7777   acl_hardcode_direct="$acl_cv_hardcode_direct"
7778   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7779     # Check whether --enable-rpath was given.
7780 if test "${enable_rpath+set}" = set; then :
7781   enableval=$enable_rpath; :
7782 else
7783   enable_rpath=yes
7784 fi
7785
7786
7787
7788
7789   acl_libdirstem=lib
7790   acl_libdirstem2=
7791   case "$host_os" in
7792     solaris*)
7793                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7794 $as_echo_n "checking for 64-bit host... " >&6; }
7795 if ${gl_cv_solaris_64bit+:} false; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h.  */
7800
7801 #ifdef _LP64
7802 sixtyfour bits
7803 #endif
7804
7805 _ACEOF
7806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7807   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7808   gl_cv_solaris_64bit=yes
7809 else
7810   gl_cv_solaris_64bit=no
7811 fi
7812 rm -f conftest*
7813
7814
7815 fi
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7817 $as_echo "$gl_cv_solaris_64bit" >&6; }
7818       if test $gl_cv_solaris_64bit = yes; then
7819         acl_libdirstem=lib/64
7820         case "$host_cpu" in
7821           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7822           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7823         esac
7824       fi
7825       ;;
7826     *)
7827       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7828       if test -n "$searchpath"; then
7829         acl_save_IFS="${IFS=    }"; IFS=":"
7830         for searchdir in $searchpath; do
7831           if test -d "$searchdir"; then
7832             case "$searchdir" in
7833               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7834               */../ | */.. )
7835                 # Better ignore directories of this form. They are misleading.
7836                 ;;
7837               *) searchdir=`cd "$searchdir" && pwd`
7838                  case "$searchdir" in
7839                    */lib64 ) acl_libdirstem=lib64 ;;
7840                  esac ;;
7841             esac
7842           fi
7843         done
7844         IFS="$acl_save_IFS"
7845       fi
7846       ;;
7847   esac
7848   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7849
7850
7851
7852   gl_threads_api=none
7853   LIBTHREAD=
7854   LTLIBTHREAD=
7855   LIBMULTITHREAD=
7856   LTLIBMULTITHREAD=
7857   if test "$gl_use_threads" != no; then
7858         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7859 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7860 if ${gl_cv_have_weak+:} false; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   gl_cv_have_weak=no
7864               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h.  */
7866 extern void xyzzy ();
7867 #pragma weak xyzzy
7868 int
7869 main ()
7870 {
7871 xyzzy();
7872   ;
7873   return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877   gl_cv_have_weak=maybe
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext \
7880     conftest$ac_exeext conftest.$ac_ext
7881        if test $gl_cv_have_weak = maybe; then
7882                            if test "$cross_compiling" = yes; then :
7883                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h.  */
7885 #ifdef __ELF__
7886                Extensible Linking Format
7887                #endif
7888
7889 _ACEOF
7890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7892   gl_cv_have_weak="guessing yes"
7893 else
7894   gl_cv_have_weak="guessing no"
7895 fi
7896 rm -f conftest*
7897
7898
7899 else
7900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h.  */
7902
7903 #include <stdio.h>
7904 #pragma weak fputs
7905 int main ()
7906 {
7907   return (fputs == NULL);
7908 }
7909 _ACEOF
7910 if ac_fn_c_try_run "$LINENO"; then :
7911   gl_cv_have_weak=yes
7912 else
7913   gl_cv_have_weak=no
7914 fi
7915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7916   conftest.$ac_objext conftest.beam conftest.$ac_ext
7917 fi
7918
7919        fi
7920
7921 fi
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7923 $as_echo "$gl_cv_have_weak" >&6; }
7924     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7925       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7926       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7927       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7928 if test "x$ac_cv_header_pthread_h" = xyes; then :
7929   gl_have_pthread_h=yes
7930 else
7931   gl_have_pthread_h=no
7932 fi
7933
7934
7935       if test "$gl_have_pthread_h" = yes; then
7936         # Other possible tests:
7937         #   -lpthreads (FSU threads, PCthreads)
7938         #   -lgthreads
7939         gl_have_pthread=
7940         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7941         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7942         # the second one only in libpthread, and lock.c needs it.
7943         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h.  */
7945 #include <pthread.h>
7946 int
7947 main ()
7948 {
7949 pthread_mutex_lock((pthread_mutex_t*)0);
7950                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 if ac_fn_c_try_link "$LINENO"; then :
7956   gl_have_pthread=yes
7957 fi
7958 rm -f core conftest.err conftest.$ac_objext \
7959     conftest$ac_exeext conftest.$ac_ext
7960         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7961         # since it is defined as a macro on OSF/1.)
7962         if test -n "$gl_have_pthread"; then
7963           # The program links fine without libpthread. But it may actually
7964           # need to link with libpthread in order to create multiple threads.
7965           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7966 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7967 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7968   $as_echo_n "(cached) " >&6
7969 else
7970   ac_check_lib_save_LIBS=$LIBS
7971 LIBS="-lpthread  $LIBS"
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h.  */
7974
7975 /* Override any GCC internal prototype to avoid an error.
7976    Use char because int might match the return type of a GCC
7977    builtin and then its argument prototype would still apply.  */
7978 #ifdef __cplusplus
7979 extern "C"
7980 #endif
7981 char pthread_kill ();
7982 int
7983 main ()
7984 {
7985 return pthread_kill ();
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 if ac_fn_c_try_link "$LINENO"; then :
7991   ac_cv_lib_pthread_pthread_kill=yes
7992 else
7993   ac_cv_lib_pthread_pthread_kill=no
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext \
7996     conftest$ac_exeext conftest.$ac_ext
7997 LIBS=$ac_check_lib_save_LIBS
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8000 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8001 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8002   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8003              # On Solaris and HP-UX, most pthread functions exist also in libc.
8004              # Therefore pthread_in_use() needs to actually try to create a
8005              # thread: pthread_create from libc will fail, whereas
8006              # pthread_create will actually create a thread.
8007              case "$host_os" in
8008                solaris* | hpux*)
8009
8010 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8011
8012              esac
8013
8014 fi
8015
8016         else
8017           # Some library is needed. Try libpthread and libc_r.
8018           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8019 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8020 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   ac_check_lib_save_LIBS=$LIBS
8024 LIBS="-lpthread  $LIBS"
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h.  */
8027
8028 /* Override any GCC internal prototype to avoid an error.
8029    Use char because int might match the return type of a GCC
8030    builtin and then its argument prototype would still apply.  */
8031 #ifdef __cplusplus
8032 extern "C"
8033 #endif
8034 char pthread_kill ();
8035 int
8036 main ()
8037 {
8038 return pthread_kill ();
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 if ac_fn_c_try_link "$LINENO"; then :
8044   ac_cv_lib_pthread_pthread_kill=yes
8045 else
8046   ac_cv_lib_pthread_pthread_kill=no
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext \
8049     conftest$ac_exeext conftest.$ac_ext
8050 LIBS=$ac_check_lib_save_LIBS
8051 fi
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8053 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8054 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8055   gl_have_pthread=yes
8056              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8057              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8058 fi
8059
8060           if test -z "$gl_have_pthread"; then
8061             # For FreeBSD 4.
8062             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8063 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8064 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8065   $as_echo_n "(cached) " >&6
8066 else
8067   ac_check_lib_save_LIBS=$LIBS
8068 LIBS="-lc_r  $LIBS"
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h.  */
8071
8072 /* Override any GCC internal prototype to avoid an error.
8073    Use char because int might match the return type of a GCC
8074    builtin and then its argument prototype would still apply.  */
8075 #ifdef __cplusplus
8076 extern "C"
8077 #endif
8078 char pthread_kill ();
8079 int
8080 main ()
8081 {
8082 return pthread_kill ();
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 if ac_fn_c_try_link "$LINENO"; then :
8088   ac_cv_lib_c_r_pthread_kill=yes
8089 else
8090   ac_cv_lib_c_r_pthread_kill=no
8091 fi
8092 rm -f core conftest.err conftest.$ac_objext \
8093     conftest$ac_exeext conftest.$ac_ext
8094 LIBS=$ac_check_lib_save_LIBS
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8097 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8098 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8099   gl_have_pthread=yes
8100                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8101                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8102 fi
8103
8104           fi
8105         fi
8106         if test -n "$gl_have_pthread"; then
8107           gl_threads_api=posix
8108
8109 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8110
8111           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8112             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8113
8114 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8115
8116               LIBTHREAD=
8117               LTLIBTHREAD=
8118             fi
8119           fi
8120         fi
8121       fi
8122     fi
8123     if test -z "$gl_have_pthread"; then
8124       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8125         gl_have_solaristhread=
8126         gl_save_LIBS="$LIBS"
8127         LIBS="$LIBS -lthread"
8128         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h.  */
8130
8131 #include <thread.h>
8132 #include <synch.h>
8133
8134 int
8135 main ()
8136 {
8137 thr_self();
8138   ;
8139   return 0;
8140 }
8141 _ACEOF
8142 if ac_fn_c_try_link "$LINENO"; then :
8143   gl_have_solaristhread=yes
8144 fi
8145 rm -f core conftest.err conftest.$ac_objext \
8146     conftest$ac_exeext conftest.$ac_ext
8147         LIBS="$gl_save_LIBS"
8148         if test -n "$gl_have_solaristhread"; then
8149           gl_threads_api=solaris
8150           LIBTHREAD=-lthread
8151           LTLIBTHREAD=-lthread
8152           LIBMULTITHREAD="$LIBTHREAD"
8153           LTLIBMULTITHREAD="$LTLIBTHREAD"
8154
8155 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8156
8157           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8158
8159 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8160
8161             LIBTHREAD=
8162             LTLIBTHREAD=
8163           fi
8164         fi
8165       fi
8166     fi
8167     if test "$gl_use_threads" = pth; then
8168       gl_save_CPPFLAGS="$CPPFLAGS"
8169
8170
8171
8172
8173
8174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8175 $as_echo_n "checking how to link with libpth... " >&6; }
8176 if ${ac_cv_libpth_libs+:} false; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179
8180
8181
8182
8183
8184
8185
8186
8187     use_additional=yes
8188
8189   acl_save_prefix="$prefix"
8190   prefix="$acl_final_prefix"
8191   acl_save_exec_prefix="$exec_prefix"
8192   exec_prefix="$acl_final_exec_prefix"
8193
8194     eval additional_includedir=\"$includedir\"
8195     eval additional_libdir=\"$libdir\"
8196
8197   exec_prefix="$acl_save_exec_prefix"
8198   prefix="$acl_save_prefix"
8199
8200
8201 # Check whether --with-libpth-prefix was given.
8202 if test "${with_libpth_prefix+set}" = set; then :
8203   withval=$with_libpth_prefix;
8204     if test "X$withval" = "Xno"; then
8205       use_additional=no
8206     else
8207       if test "X$withval" = "X"; then
8208
8209   acl_save_prefix="$prefix"
8210   prefix="$acl_final_prefix"
8211   acl_save_exec_prefix="$exec_prefix"
8212   exec_prefix="$acl_final_exec_prefix"
8213
8214           eval additional_includedir=\"$includedir\"
8215           eval additional_libdir=\"$libdir\"
8216
8217   exec_prefix="$acl_save_exec_prefix"
8218   prefix="$acl_save_prefix"
8219
8220       else
8221         additional_includedir="$withval/include"
8222         additional_libdir="$withval/$acl_libdirstem"
8223         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8224            && ! test -d "$withval/$acl_libdirstem"; then
8225           additional_libdir="$withval/$acl_libdirstem2"
8226         fi
8227       fi
8228     fi
8229
8230 fi
8231
8232       LIBPTH=
8233   LTLIBPTH=
8234   INCPTH=
8235   LIBPTH_PREFIX=
8236       HAVE_LIBPTH=
8237   rpathdirs=
8238   ltrpathdirs=
8239   names_already_handled=
8240   names_next_round='pth '
8241   while test -n "$names_next_round"; do
8242     names_this_round="$names_next_round"
8243     names_next_round=
8244     for name in $names_this_round; do
8245       already_handled=
8246       for n in $names_already_handled; do
8247         if test "$n" = "$name"; then
8248           already_handled=yes
8249           break
8250         fi
8251       done
8252       if test -z "$already_handled"; then
8253         names_already_handled="$names_already_handled $name"
8254                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8255         eval value=\"\$HAVE_LIB$uppername\"
8256         if test -n "$value"; then
8257           if test "$value" = yes; then
8258             eval value=\"\$LIB$uppername\"
8259             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8260             eval value=\"\$LTLIB$uppername\"
8261             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8262           else
8263                                     :
8264           fi
8265         else
8266                               found_dir=
8267           found_la=
8268           found_so=
8269           found_a=
8270           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8271           if test -n "$acl_shlibext"; then
8272             shrext=".$acl_shlibext"             # typically: shrext=.so
8273           else
8274             shrext=
8275           fi
8276           if test $use_additional = yes; then
8277             dir="$additional_libdir"
8278                                     if test -n "$acl_shlibext"; then
8279               if test -f "$dir/$libname$shrext"; then
8280                 found_dir="$dir"
8281                 found_so="$dir/$libname$shrext"
8282               else
8283                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8284                   ver=`(cd "$dir" && \
8285                         for f in "$libname$shrext".*; do echo "$f"; done \
8286                         | sed -e "s,^$libname$shrext\\\\.,," \
8287                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8288                         | sed 1q ) 2>/dev/null`
8289                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8290                     found_dir="$dir"
8291                     found_so="$dir/$libname$shrext.$ver"
8292                   fi
8293                 else
8294                   eval library_names=\"$acl_library_names_spec\"
8295                   for f in $library_names; do
8296                     if test -f "$dir/$f"; then
8297                       found_dir="$dir"
8298                       found_so="$dir/$f"
8299                       break
8300                     fi
8301                   done
8302                 fi
8303               fi
8304             fi
8305                         if test "X$found_dir" = "X"; then
8306               if test -f "$dir/$libname.$acl_libext"; then
8307                 found_dir="$dir"
8308                 found_a="$dir/$libname.$acl_libext"
8309               fi
8310             fi
8311             if test "X$found_dir" != "X"; then
8312               if test -f "$dir/$libname.la"; then
8313                 found_la="$dir/$libname.la"
8314               fi
8315             fi
8316           fi
8317           if test "X$found_dir" = "X"; then
8318             for x in $LDFLAGS $LTLIBPTH; do
8319
8320   acl_save_prefix="$prefix"
8321   prefix="$acl_final_prefix"
8322   acl_save_exec_prefix="$exec_prefix"
8323   exec_prefix="$acl_final_exec_prefix"
8324   eval x=\"$x\"
8325   exec_prefix="$acl_save_exec_prefix"
8326   prefix="$acl_save_prefix"
8327
8328               case "$x" in
8329                 -L*)
8330                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8331                                     if test -n "$acl_shlibext"; then
8332                     if test -f "$dir/$libname$shrext"; then
8333                       found_dir="$dir"
8334                       found_so="$dir/$libname$shrext"
8335                     else
8336                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8337                         ver=`(cd "$dir" && \
8338                               for f in "$libname$shrext".*; do echo "$f"; done \
8339                               | sed -e "s,^$libname$shrext\\\\.,," \
8340                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8341                               | sed 1q ) 2>/dev/null`
8342                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8343                           found_dir="$dir"
8344                           found_so="$dir/$libname$shrext.$ver"
8345                         fi
8346                       else
8347                         eval library_names=\"$acl_library_names_spec\"
8348                         for f in $library_names; do
8349                           if test -f "$dir/$f"; then
8350                             found_dir="$dir"
8351                             found_so="$dir/$f"
8352                             break
8353                           fi
8354                         done
8355                       fi
8356                     fi
8357                   fi
8358                                     if test "X$found_dir" = "X"; then
8359                     if test -f "$dir/$libname.$acl_libext"; then
8360                       found_dir="$dir"
8361                       found_a="$dir/$libname.$acl_libext"
8362                     fi
8363                   fi
8364                   if test "X$found_dir" != "X"; then
8365                     if test -f "$dir/$libname.la"; then
8366                       found_la="$dir/$libname.la"
8367                     fi
8368                   fi
8369                   ;;
8370               esac
8371               if test "X$found_dir" != "X"; then
8372                 break
8373               fi
8374             done
8375           fi
8376           if test "X$found_dir" != "X"; then
8377                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8378             if test "X$found_so" != "X"; then
8379                                                         if test "$enable_rpath" = no \
8380                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8381                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8382                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8383               else
8384                                                                                 haveit=
8385                 for x in $ltrpathdirs; do
8386                   if test "X$x" = "X$found_dir"; then
8387                     haveit=yes
8388                     break
8389                   fi
8390                 done
8391                 if test -z "$haveit"; then
8392                   ltrpathdirs="$ltrpathdirs $found_dir"
8393                 fi
8394                                 if test "$acl_hardcode_direct" = yes; then
8395                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8396                 else
8397                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8398                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8399                                                             haveit=
8400                     for x in $rpathdirs; do
8401                       if test "X$x" = "X$found_dir"; then
8402                         haveit=yes
8403                         break
8404                       fi
8405                     done
8406                     if test -z "$haveit"; then
8407                       rpathdirs="$rpathdirs $found_dir"
8408                     fi
8409                   else
8410                                                                                 haveit=
8411                     for x in $LDFLAGS $LIBPTH; do
8412
8413   acl_save_prefix="$prefix"
8414   prefix="$acl_final_prefix"
8415   acl_save_exec_prefix="$exec_prefix"
8416   exec_prefix="$acl_final_exec_prefix"
8417   eval x=\"$x\"
8418   exec_prefix="$acl_save_exec_prefix"
8419   prefix="$acl_save_prefix"
8420
8421                       if test "X$x" = "X-L$found_dir"; then
8422                         haveit=yes
8423                         break
8424                       fi
8425                     done
8426                     if test -z "$haveit"; then
8427                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8428                     fi
8429                     if test "$acl_hardcode_minus_L" != no; then
8430                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8431                     else
8432                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8433                     fi
8434                   fi
8435                 fi
8436               fi
8437             else
8438               if test "X$found_a" != "X"; then
8439                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8440               else
8441                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8442               fi
8443             fi
8444                         additional_includedir=
8445             case "$found_dir" in
8446               */$acl_libdirstem | */$acl_libdirstem/)
8447                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8448                 if test "$name" = 'pth'; then
8449                   LIBPTH_PREFIX="$basedir"
8450                 fi
8451                 additional_includedir="$basedir/include"
8452                 ;;
8453               */$acl_libdirstem2 | */$acl_libdirstem2/)
8454                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8455                 if test "$name" = 'pth'; then
8456                   LIBPTH_PREFIX="$basedir"
8457                 fi
8458                 additional_includedir="$basedir/include"
8459                 ;;
8460             esac
8461             if test "X$additional_includedir" != "X"; then
8462                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8463                 haveit=
8464                 if test "X$additional_includedir" = "X/usr/local/include"; then
8465                   if test -n "$GCC"; then
8466                     case $host_os in
8467                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8468                     esac
8469                   fi
8470                 fi
8471                 if test -z "$haveit"; then
8472                   for x in $CPPFLAGS $INCPTH; do
8473
8474   acl_save_prefix="$prefix"
8475   prefix="$acl_final_prefix"
8476   acl_save_exec_prefix="$exec_prefix"
8477   exec_prefix="$acl_final_exec_prefix"
8478   eval x=\"$x\"
8479   exec_prefix="$acl_save_exec_prefix"
8480   prefix="$acl_save_prefix"
8481
8482                     if test "X$x" = "X-I$additional_includedir"; then
8483                       haveit=yes
8484                       break
8485                     fi
8486                   done
8487                   if test -z "$haveit"; then
8488                     if test -d "$additional_includedir"; then
8489                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8490                     fi
8491                   fi
8492                 fi
8493               fi
8494             fi
8495                         if test -n "$found_la"; then
8496                                                         save_libdir="$libdir"
8497               case "$found_la" in
8498                 */* | *\\*) . "$found_la" ;;
8499                 *) . "./$found_la" ;;
8500               esac
8501               libdir="$save_libdir"
8502                             for dep in $dependency_libs; do
8503                 case "$dep" in
8504                   -L*)
8505                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8506                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8507                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8508                       haveit=
8509                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8510                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8511                         if test -n "$GCC"; then
8512                           case $host_os in
8513                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8514                           esac
8515                         fi
8516                       fi
8517                       if test -z "$haveit"; then
8518                         haveit=
8519                         for x in $LDFLAGS $LIBPTH; do
8520
8521   acl_save_prefix="$prefix"
8522   prefix="$acl_final_prefix"
8523   acl_save_exec_prefix="$exec_prefix"
8524   exec_prefix="$acl_final_exec_prefix"
8525   eval x=\"$x\"
8526   exec_prefix="$acl_save_exec_prefix"
8527   prefix="$acl_save_prefix"
8528
8529                           if test "X$x" = "X-L$additional_libdir"; then
8530                             haveit=yes
8531                             break
8532                           fi
8533                         done
8534                         if test -z "$haveit"; then
8535                           if test -d "$additional_libdir"; then
8536                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8537                           fi
8538                         fi
8539                         haveit=
8540                         for x in $LDFLAGS $LTLIBPTH; do
8541
8542   acl_save_prefix="$prefix"
8543   prefix="$acl_final_prefix"
8544   acl_save_exec_prefix="$exec_prefix"
8545   exec_prefix="$acl_final_exec_prefix"
8546   eval x=\"$x\"
8547   exec_prefix="$acl_save_exec_prefix"
8548   prefix="$acl_save_prefix"
8549
8550                           if test "X$x" = "X-L$additional_libdir"; then
8551                             haveit=yes
8552                             break
8553                           fi
8554                         done
8555                         if test -z "$haveit"; then
8556                           if test -d "$additional_libdir"; then
8557                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8558                           fi
8559                         fi
8560                       fi
8561                     fi
8562                     ;;
8563                   -R*)
8564                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8565                     if test "$enable_rpath" != no; then
8566                                                                   haveit=
8567                       for x in $rpathdirs; do
8568                         if test "X$x" = "X$dir"; then
8569                           haveit=yes
8570                           break
8571                         fi
8572                       done
8573                       if test -z "$haveit"; then
8574                         rpathdirs="$rpathdirs $dir"
8575                       fi
8576                                                                   haveit=
8577                       for x in $ltrpathdirs; do
8578                         if test "X$x" = "X$dir"; then
8579                           haveit=yes
8580                           break
8581                         fi
8582                       done
8583                       if test -z "$haveit"; then
8584                         ltrpathdirs="$ltrpathdirs $dir"
8585                       fi
8586                     fi
8587                     ;;
8588                   -l*)
8589                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8590                     ;;
8591                   *.la)
8592                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8593                     ;;
8594                   *)
8595                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8596                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8597                     ;;
8598                 esac
8599               done
8600             fi
8601           else
8602                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8603             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8604           fi
8605         fi
8606       fi
8607     done
8608   done
8609   if test "X$rpathdirs" != "X"; then
8610     if test -n "$acl_hardcode_libdir_separator"; then
8611                         alldirs=
8612       for found_dir in $rpathdirs; do
8613         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8614       done
8615             acl_save_libdir="$libdir"
8616       libdir="$alldirs"
8617       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8618       libdir="$acl_save_libdir"
8619       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8620     else
8621             for found_dir in $rpathdirs; do
8622         acl_save_libdir="$libdir"
8623         libdir="$found_dir"
8624         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8625         libdir="$acl_save_libdir"
8626         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8627       done
8628     fi
8629   fi
8630   if test "X$ltrpathdirs" != "X"; then
8631             for found_dir in $ltrpathdirs; do
8632       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8633     done
8634   fi
8635
8636
8637
8638
8639
8640
8641     ac_cv_libpth_libs="$LIBPTH"
8642     ac_cv_libpth_ltlibs="$LTLIBPTH"
8643     ac_cv_libpth_cppflags="$INCPTH"
8644     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8645
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8648 $as_echo "$ac_cv_libpth_libs" >&6; }
8649   LIBPTH="$ac_cv_libpth_libs"
8650   LTLIBPTH="$ac_cv_libpth_ltlibs"
8651   INCPTH="$ac_cv_libpth_cppflags"
8652   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8653
8654   for element in $INCPTH; do
8655     haveit=
8656     for x in $CPPFLAGS; do
8657
8658   acl_save_prefix="$prefix"
8659   prefix="$acl_final_prefix"
8660   acl_save_exec_prefix="$exec_prefix"
8661   exec_prefix="$acl_final_exec_prefix"
8662   eval x=\"$x\"
8663   exec_prefix="$acl_save_exec_prefix"
8664   prefix="$acl_save_prefix"
8665
8666       if test "X$x" = "X$element"; then
8667         haveit=yes
8668         break
8669       fi
8670     done
8671     if test -z "$haveit"; then
8672       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8673     fi
8674   done
8675
8676
8677
8678
8679       HAVE_LIBPTH=yes
8680
8681
8682
8683       gl_have_pth=
8684       gl_save_LIBS="$LIBS"
8685       LIBS="$LIBS $LIBPTH"
8686       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h.  */
8688 #include <pth.h>
8689 int
8690 main ()
8691 {
8692 pth_self();
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 if ac_fn_c_try_link "$LINENO"; then :
8698   gl_have_pth=yes
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext \
8701     conftest$ac_exeext conftest.$ac_ext
8702       LIBS="$gl_save_LIBS"
8703       if test -n "$gl_have_pth"; then
8704         gl_threads_api=pth
8705         LIBTHREAD="$LIBPTH"
8706         LTLIBTHREAD="$LTLIBPTH"
8707         LIBMULTITHREAD="$LIBTHREAD"
8708         LTLIBMULTITHREAD="$LTLIBTHREAD"
8709
8710 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8711
8712         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8713           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8714
8715 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8716
8717             LIBTHREAD=
8718             LTLIBTHREAD=
8719           fi
8720         fi
8721       else
8722         CPPFLAGS="$gl_save_CPPFLAGS"
8723       fi
8724     fi
8725     if test -z "$gl_have_pthread"; then
8726       case "$gl_use_threads" in
8727         yes | windows | win32) # The 'win32' is for backward compatibility.
8728           if { case "$host_os" in
8729                  mingw*) true;;
8730                  *) false;;
8731                esac
8732              }; then
8733             gl_threads_api=windows
8734
8735 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8736
8737           fi
8738           ;;
8739       esac
8740     fi
8741   fi
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8743 $as_echo_n "checking for multithread API to use... " >&6; }
8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8745 $as_echo "$gl_threads_api" >&6; }
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757   if test "$gl_threads_api" = posix; then
8758     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8759     # pthread_rwlock_* functions.
8760     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8761 "
8762 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8763
8764 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8765
8766 fi
8767
8768     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8769     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h.  */
8771
8772       #include <pthread.h>
8773 int
8774 main ()
8775 {
8776
8777 #if __FreeBSD__ == 4
8778 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8779 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8780        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8781 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8782 #else
8783 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8784 return !x;
8785 #endif
8786
8787   ;
8788   return 0;
8789 }
8790 _ACEOF
8791 if ac_fn_c_try_compile "$LINENO"; then :
8792
8793 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8794
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797   fi
8798   :
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811     use_additional=yes
8812
8813   acl_save_prefix="$prefix"
8814   prefix="$acl_final_prefix"
8815   acl_save_exec_prefix="$exec_prefix"
8816   exec_prefix="$acl_final_exec_prefix"
8817
8818     eval additional_includedir=\"$includedir\"
8819     eval additional_libdir=\"$libdir\"
8820
8821   exec_prefix="$acl_save_exec_prefix"
8822   prefix="$acl_save_prefix"
8823
8824
8825 # Check whether --with-libiconv-prefix was given.
8826 if test "${with_libiconv_prefix+set}" = set; then :
8827   withval=$with_libiconv_prefix;
8828     if test "X$withval" = "Xno"; then
8829       use_additional=no
8830     else
8831       if test "X$withval" = "X"; then
8832
8833   acl_save_prefix="$prefix"
8834   prefix="$acl_final_prefix"
8835   acl_save_exec_prefix="$exec_prefix"
8836   exec_prefix="$acl_final_exec_prefix"
8837
8838           eval additional_includedir=\"$includedir\"
8839           eval additional_libdir=\"$libdir\"
8840
8841   exec_prefix="$acl_save_exec_prefix"
8842   prefix="$acl_save_prefix"
8843
8844       else
8845         additional_includedir="$withval/include"
8846         additional_libdir="$withval/$acl_libdirstem"
8847         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8848            && ! test -d "$withval/$acl_libdirstem"; then
8849           additional_libdir="$withval/$acl_libdirstem2"
8850         fi
8851       fi
8852     fi
8853
8854 fi
8855
8856       LIBICONV=
8857   LTLIBICONV=
8858   INCICONV=
8859   LIBICONV_PREFIX=
8860       HAVE_LIBICONV=
8861   rpathdirs=
8862   ltrpathdirs=
8863   names_already_handled=
8864   names_next_round='iconv '
8865   while test -n "$names_next_round"; do
8866     names_this_round="$names_next_round"
8867     names_next_round=
8868     for name in $names_this_round; do
8869       already_handled=
8870       for n in $names_already_handled; do
8871         if test "$n" = "$name"; then
8872           already_handled=yes
8873           break
8874         fi
8875       done
8876       if test -z "$already_handled"; then
8877         names_already_handled="$names_already_handled $name"
8878                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8879         eval value=\"\$HAVE_LIB$uppername\"
8880         if test -n "$value"; then
8881           if test "$value" = yes; then
8882             eval value=\"\$LIB$uppername\"
8883             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8884             eval value=\"\$LTLIB$uppername\"
8885             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8886           else
8887                                     :
8888           fi
8889         else
8890                               found_dir=
8891           found_la=
8892           found_so=
8893           found_a=
8894           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8895           if test -n "$acl_shlibext"; then
8896             shrext=".$acl_shlibext"             # typically: shrext=.so
8897           else
8898             shrext=
8899           fi
8900           if test $use_additional = yes; then
8901             dir="$additional_libdir"
8902                                     if test -n "$acl_shlibext"; then
8903               if test -f "$dir/$libname$shrext"; then
8904                 found_dir="$dir"
8905                 found_so="$dir/$libname$shrext"
8906               else
8907                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8908                   ver=`(cd "$dir" && \
8909                         for f in "$libname$shrext".*; do echo "$f"; done \
8910                         | sed -e "s,^$libname$shrext\\\\.,," \
8911                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8912                         | sed 1q ) 2>/dev/null`
8913                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8914                     found_dir="$dir"
8915                     found_so="$dir/$libname$shrext.$ver"
8916                   fi
8917                 else
8918                   eval library_names=\"$acl_library_names_spec\"
8919                   for f in $library_names; do
8920                     if test -f "$dir/$f"; then
8921                       found_dir="$dir"
8922                       found_so="$dir/$f"
8923                       break
8924                     fi
8925                   done
8926                 fi
8927               fi
8928             fi
8929                         if test "X$found_dir" = "X"; then
8930               if test -f "$dir/$libname.$acl_libext"; then
8931                 found_dir="$dir"
8932                 found_a="$dir/$libname.$acl_libext"
8933               fi
8934             fi
8935             if test "X$found_dir" != "X"; then
8936               if test -f "$dir/$libname.la"; then
8937                 found_la="$dir/$libname.la"
8938               fi
8939             fi
8940           fi
8941           if test "X$found_dir" = "X"; then
8942             for x in $LDFLAGS $LTLIBICONV; do
8943
8944   acl_save_prefix="$prefix"
8945   prefix="$acl_final_prefix"
8946   acl_save_exec_prefix="$exec_prefix"
8947   exec_prefix="$acl_final_exec_prefix"
8948   eval x=\"$x\"
8949   exec_prefix="$acl_save_exec_prefix"
8950   prefix="$acl_save_prefix"
8951
8952               case "$x" in
8953                 -L*)
8954                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8955                                     if test -n "$acl_shlibext"; then
8956                     if test -f "$dir/$libname$shrext"; then
8957                       found_dir="$dir"
8958                       found_so="$dir/$libname$shrext"
8959                     else
8960                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8961                         ver=`(cd "$dir" && \
8962                               for f in "$libname$shrext".*; do echo "$f"; done \
8963                               | sed -e "s,^$libname$shrext\\\\.,," \
8964                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8965                               | sed 1q ) 2>/dev/null`
8966                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8967                           found_dir="$dir"
8968                           found_so="$dir/$libname$shrext.$ver"
8969                         fi
8970                       else
8971                         eval library_names=\"$acl_library_names_spec\"
8972                         for f in $library_names; do
8973                           if test -f "$dir/$f"; then
8974                             found_dir="$dir"
8975                             found_so="$dir/$f"
8976                             break
8977                           fi
8978                         done
8979                       fi
8980                     fi
8981                   fi
8982                                     if test "X$found_dir" = "X"; then
8983                     if test -f "$dir/$libname.$acl_libext"; then
8984                       found_dir="$dir"
8985                       found_a="$dir/$libname.$acl_libext"
8986                     fi
8987                   fi
8988                   if test "X$found_dir" != "X"; then
8989                     if test -f "$dir/$libname.la"; then
8990                       found_la="$dir/$libname.la"
8991                     fi
8992                   fi
8993                   ;;
8994               esac
8995               if test "X$found_dir" != "X"; then
8996                 break
8997               fi
8998             done
8999           fi
9000           if test "X$found_dir" != "X"; then
9001                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9002             if test "X$found_so" != "X"; then
9003                                                         if test "$enable_rpath" = no \
9004                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9005                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9006                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9007               else
9008                                                                                 haveit=
9009                 for x in $ltrpathdirs; do
9010                   if test "X$x" = "X$found_dir"; then
9011                     haveit=yes
9012                     break
9013                   fi
9014                 done
9015                 if test -z "$haveit"; then
9016                   ltrpathdirs="$ltrpathdirs $found_dir"
9017                 fi
9018                                 if test "$acl_hardcode_direct" = yes; then
9019                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9020                 else
9021                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9022                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9023                                                             haveit=
9024                     for x in $rpathdirs; do
9025                       if test "X$x" = "X$found_dir"; then
9026                         haveit=yes
9027                         break
9028                       fi
9029                     done
9030                     if test -z "$haveit"; then
9031                       rpathdirs="$rpathdirs $found_dir"
9032                     fi
9033                   else
9034                                                                                 haveit=
9035                     for x in $LDFLAGS $LIBICONV; do
9036
9037   acl_save_prefix="$prefix"
9038   prefix="$acl_final_prefix"
9039   acl_save_exec_prefix="$exec_prefix"
9040   exec_prefix="$acl_final_exec_prefix"
9041   eval x=\"$x\"
9042   exec_prefix="$acl_save_exec_prefix"
9043   prefix="$acl_save_prefix"
9044
9045                       if test "X$x" = "X-L$found_dir"; then
9046                         haveit=yes
9047                         break
9048                       fi
9049                     done
9050                     if test -z "$haveit"; then
9051                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9052                     fi
9053                     if test "$acl_hardcode_minus_L" != no; then
9054                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9055                     else
9056                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9057                     fi
9058                   fi
9059                 fi
9060               fi
9061             else
9062               if test "X$found_a" != "X"; then
9063                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9064               else
9065                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9066               fi
9067             fi
9068                         additional_includedir=
9069             case "$found_dir" in
9070               */$acl_libdirstem | */$acl_libdirstem/)
9071                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9072                 if test "$name" = 'iconv'; then
9073                   LIBICONV_PREFIX="$basedir"
9074                 fi
9075                 additional_includedir="$basedir/include"
9076                 ;;
9077               */$acl_libdirstem2 | */$acl_libdirstem2/)
9078                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9079                 if test "$name" = 'iconv'; then
9080                   LIBICONV_PREFIX="$basedir"
9081                 fi
9082                 additional_includedir="$basedir/include"
9083                 ;;
9084             esac
9085             if test "X$additional_includedir" != "X"; then
9086                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9087                 haveit=
9088                 if test "X$additional_includedir" = "X/usr/local/include"; then
9089                   if test -n "$GCC"; then
9090                     case $host_os in
9091                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9092                     esac
9093                   fi
9094                 fi
9095                 if test -z "$haveit"; then
9096                   for x in $CPPFLAGS $INCICONV; do
9097
9098   acl_save_prefix="$prefix"
9099   prefix="$acl_final_prefix"
9100   acl_save_exec_prefix="$exec_prefix"
9101   exec_prefix="$acl_final_exec_prefix"
9102   eval x=\"$x\"
9103   exec_prefix="$acl_save_exec_prefix"
9104   prefix="$acl_save_prefix"
9105
9106                     if test "X$x" = "X-I$additional_includedir"; then
9107                       haveit=yes
9108                       break
9109                     fi
9110                   done
9111                   if test -z "$haveit"; then
9112                     if test -d "$additional_includedir"; then
9113                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9114                     fi
9115                   fi
9116                 fi
9117               fi
9118             fi
9119                         if test -n "$found_la"; then
9120                                                         save_libdir="$libdir"
9121               case "$found_la" in
9122                 */* | *\\*) . "$found_la" ;;
9123                 *) . "./$found_la" ;;
9124               esac
9125               libdir="$save_libdir"
9126                             for dep in $dependency_libs; do
9127                 case "$dep" in
9128                   -L*)
9129                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9130                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9131                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9132                       haveit=
9133                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9134                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9135                         if test -n "$GCC"; then
9136                           case $host_os in
9137                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9138                           esac
9139                         fi
9140                       fi
9141                       if test -z "$haveit"; then
9142                         haveit=
9143                         for x in $LDFLAGS $LIBICONV; do
9144
9145   acl_save_prefix="$prefix"
9146   prefix="$acl_final_prefix"
9147   acl_save_exec_prefix="$exec_prefix"
9148   exec_prefix="$acl_final_exec_prefix"
9149   eval x=\"$x\"
9150   exec_prefix="$acl_save_exec_prefix"
9151   prefix="$acl_save_prefix"
9152
9153                           if test "X$x" = "X-L$additional_libdir"; then
9154                             haveit=yes
9155                             break
9156                           fi
9157                         done
9158                         if test -z "$haveit"; then
9159                           if test -d "$additional_libdir"; then
9160                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9161                           fi
9162                         fi
9163                         haveit=
9164                         for x in $LDFLAGS $LTLIBICONV; do
9165
9166   acl_save_prefix="$prefix"
9167   prefix="$acl_final_prefix"
9168   acl_save_exec_prefix="$exec_prefix"
9169   exec_prefix="$acl_final_exec_prefix"
9170   eval x=\"$x\"
9171   exec_prefix="$acl_save_exec_prefix"
9172   prefix="$acl_save_prefix"
9173
9174                           if test "X$x" = "X-L$additional_libdir"; then
9175                             haveit=yes
9176                             break
9177                           fi
9178                         done
9179                         if test -z "$haveit"; then
9180                           if test -d "$additional_libdir"; then
9181                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9182                           fi
9183                         fi
9184                       fi
9185                     fi
9186                     ;;
9187                   -R*)
9188                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9189                     if test "$enable_rpath" != no; then
9190                                                                   haveit=
9191                       for x in $rpathdirs; do
9192                         if test "X$x" = "X$dir"; then
9193                           haveit=yes
9194                           break
9195                         fi
9196                       done
9197                       if test -z "$haveit"; then
9198                         rpathdirs="$rpathdirs $dir"
9199                       fi
9200                                                                   haveit=
9201                       for x in $ltrpathdirs; do
9202                         if test "X$x" = "X$dir"; then
9203                           haveit=yes
9204                           break
9205                         fi
9206                       done
9207                       if test -z "$haveit"; then
9208                         ltrpathdirs="$ltrpathdirs $dir"
9209                       fi
9210                     fi
9211                     ;;
9212                   -l*)
9213                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9214                     ;;
9215                   *.la)
9216                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9217                     ;;
9218                   *)
9219                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9220                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9221                     ;;
9222                 esac
9223               done
9224             fi
9225           else
9226                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9227             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9228           fi
9229         fi
9230       fi
9231     done
9232   done
9233   if test "X$rpathdirs" != "X"; then
9234     if test -n "$acl_hardcode_libdir_separator"; then
9235                         alldirs=
9236       for found_dir in $rpathdirs; do
9237         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9238       done
9239             acl_save_libdir="$libdir"
9240       libdir="$alldirs"
9241       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9242       libdir="$acl_save_libdir"
9243       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9244     else
9245             for found_dir in $rpathdirs; do
9246         acl_save_libdir="$libdir"
9247         libdir="$found_dir"
9248         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9249         libdir="$acl_save_libdir"
9250         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9251       done
9252     fi
9253   fi
9254   if test "X$ltrpathdirs" != "X"; then
9255             for found_dir in $ltrpathdirs; do
9256       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9257     done
9258   fi
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271           am_save_CPPFLAGS="$CPPFLAGS"
9272
9273   for element in $INCICONV; do
9274     haveit=
9275     for x in $CPPFLAGS; do
9276
9277   acl_save_prefix="$prefix"
9278   prefix="$acl_final_prefix"
9279   acl_save_exec_prefix="$exec_prefix"
9280   exec_prefix="$acl_final_exec_prefix"
9281   eval x=\"$x\"
9282   exec_prefix="$acl_save_exec_prefix"
9283   prefix="$acl_save_prefix"
9284
9285       if test "X$x" = "X$element"; then
9286         haveit=yes
9287         break
9288       fi
9289     done
9290     if test -z "$haveit"; then
9291       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9292     fi
9293   done
9294
9295
9296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9297 $as_echo_n "checking for iconv... " >&6; }
9298 if ${am_cv_func_iconv+:} false; then :
9299   $as_echo_n "(cached) " >&6
9300 else
9301
9302     am_cv_func_iconv="no, consider installing GNU libiconv"
9303     am_cv_lib_iconv=no
9304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h.  */
9306
9307 #include <stdlib.h>
9308 #include <iconv.h>
9309
9310 int
9311 main ()
9312 {
9313 iconv_t cd = iconv_open("","");
9314            iconv(cd,NULL,NULL,NULL,NULL);
9315            iconv_close(cd);
9316   ;
9317   return 0;
9318 }
9319 _ACEOF
9320 if ac_fn_c_try_link "$LINENO"; then :
9321   am_cv_func_iconv=yes
9322 fi
9323 rm -f core conftest.err conftest.$ac_objext \
9324     conftest$ac_exeext conftest.$ac_ext
9325     if test "$am_cv_func_iconv" != yes; then
9326       am_save_LIBS="$LIBS"
9327       LIBS="$LIBS $LIBICONV"
9328       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h.  */
9330
9331 #include <stdlib.h>
9332 #include <iconv.h>
9333
9334 int
9335 main ()
9336 {
9337 iconv_t cd = iconv_open("","");
9338              iconv(cd,NULL,NULL,NULL,NULL);
9339              iconv_close(cd);
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9345   am_cv_lib_iconv=yes
9346         am_cv_func_iconv=yes
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext \
9349     conftest$ac_exeext conftest.$ac_ext
9350       LIBS="$am_save_LIBS"
9351     fi
9352
9353 fi
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9355 $as_echo "$am_cv_func_iconv" >&6; }
9356   if test "$am_cv_func_iconv" = yes; then
9357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9358 $as_echo_n "checking for working iconv... " >&6; }
9359 if ${am_cv_func_iconv_works+:} false; then :
9360   $as_echo_n "(cached) " >&6
9361 else
9362
9363                   am_save_LIBS="$LIBS"
9364       if test $am_cv_lib_iconv = yes; then
9365         LIBS="$LIBS $LIBICONV"
9366       fi
9367       if test "$cross_compiling" = yes; then :
9368
9369          case "$host_os" in
9370            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9371            *)            am_cv_func_iconv_works="guessing yes" ;;
9372          esac
9373
9374 else
9375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h.  */
9377
9378 #include <iconv.h>
9379 #include <string.h>
9380 int main ()
9381 {
9382   int result = 0;
9383   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9384      returns.  */
9385   {
9386     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9387     if (cd_utf8_to_88591 != (iconv_t)(-1))
9388       {
9389         static const char input[] = "\342\202\254"; /* EURO SIGN */
9390         char buf[10];
9391         const char *inptr = input;
9392         size_t inbytesleft = strlen (input);
9393         char *outptr = buf;
9394         size_t outbytesleft = sizeof (buf);
9395         size_t res = iconv (cd_utf8_to_88591,
9396                             (char **) &inptr, &inbytesleft,
9397                             &outptr, &outbytesleft);
9398         if (res == 0)
9399           result |= 1;
9400         iconv_close (cd_utf8_to_88591);
9401       }
9402   }
9403   /* Test against Solaris 10 bug: Failures are not distinguishable from
9404      successful returns.  */
9405   {
9406     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9407     if (cd_ascii_to_88591 != (iconv_t)(-1))
9408       {
9409         static const char input[] = "\263";
9410         char buf[10];
9411         const char *inptr = input;
9412         size_t inbytesleft = strlen (input);
9413         char *outptr = buf;
9414         size_t outbytesleft = sizeof (buf);
9415         size_t res = iconv (cd_ascii_to_88591,
9416                             (char **) &inptr, &inbytesleft,
9417                             &outptr, &outbytesleft);
9418         if (res == 0)
9419           result |= 2;
9420         iconv_close (cd_ascii_to_88591);
9421       }
9422   }
9423   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9424   {
9425     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9426     if (cd_88591_to_utf8 != (iconv_t)(-1))
9427       {
9428         static const char input[] = "\304";
9429         static char buf[2] = { (char)0xDE, (char)0xAD };
9430         const char *inptr = input;
9431         size_t inbytesleft = 1;
9432         char *outptr = buf;
9433         size_t outbytesleft = 1;
9434         size_t res = iconv (cd_88591_to_utf8,
9435                             (char **) &inptr, &inbytesleft,
9436                             &outptr, &outbytesleft);
9437         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9438           result |= 4;
9439         iconv_close (cd_88591_to_utf8);
9440       }
9441   }
9442 #if 0 /* This bug could be worked around by the caller.  */
9443   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9444   {
9445     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9446     if (cd_88591_to_utf8 != (iconv_t)(-1))
9447       {
9448         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9449         char buf[50];
9450         const char *inptr = input;
9451         size_t inbytesleft = strlen (input);
9452         char *outptr = buf;
9453         size_t outbytesleft = sizeof (buf);
9454         size_t res = iconv (cd_88591_to_utf8,
9455                             (char **) &inptr, &inbytesleft,
9456                             &outptr, &outbytesleft);
9457         if ((int)res > 0)
9458           result |= 8;
9459         iconv_close (cd_88591_to_utf8);
9460       }
9461   }
9462 #endif
9463   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9464      provided.  */
9465   if (/* Try standardized names.  */
9466       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9467       /* Try IRIX, OSF/1 names.  */
9468       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9469       /* Try AIX names.  */
9470       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9471       /* Try HP-UX names.  */
9472       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9473     result |= 16;
9474   return result;
9475 }
9476 _ACEOF
9477 if ac_fn_c_try_run "$LINENO"; then :
9478   am_cv_func_iconv_works=yes
9479 else
9480   am_cv_func_iconv_works=no
9481 fi
9482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9483   conftest.$ac_objext conftest.beam conftest.$ac_ext
9484 fi
9485
9486       LIBS="$am_save_LIBS"
9487
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9490 $as_echo "$am_cv_func_iconv_works" >&6; }
9491     case "$am_cv_func_iconv_works" in
9492       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9493       *)   am_func_iconv=yes ;;
9494     esac
9495   else
9496     am_func_iconv=no am_cv_lib_iconv=no
9497   fi
9498   if test "$am_func_iconv" = yes; then
9499
9500 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9501
9502   fi
9503   if test "$am_cv_lib_iconv" = yes; then
9504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9505 $as_echo_n "checking how to link with libiconv... " >&6; }
9506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9507 $as_echo "$LIBICONV" >&6; }
9508   else
9509             CPPFLAGS="$am_save_CPPFLAGS"
9510     LIBICONV=
9511     LTLIBICONV=
9512   fi
9513
9514
9515
9516   if test "$am_cv_func_iconv" = yes; then
9517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9518 $as_echo_n "checking for iconv declaration... " >&6; }
9519     if ${am_cv_proto_iconv+:} false; then :
9520   $as_echo_n "(cached) " >&6
9521 else
9522
9523       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h.  */
9525
9526 #include <stdlib.h>
9527 #include <iconv.h>
9528 extern
9529 #ifdef __cplusplus
9530 "C"
9531 #endif
9532 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9533 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9534 #else
9535 size_t iconv();
9536 #endif
9537
9538 int
9539 main ()
9540 {
9541
9542   ;
9543   return 0;
9544 }
9545 _ACEOF
9546 if ac_fn_c_try_compile "$LINENO"; then :
9547   am_cv_proto_iconv_arg1=""
9548 else
9549   am_cv_proto_iconv_arg1="const"
9550 fi
9551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9552       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);"
9553 fi
9554
9555     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9556     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9557          $am_cv_proto_iconv" >&5
9558 $as_echo "
9559          $am_cv_proto_iconv" >&6; }
9560
9561 cat >>confdefs.h <<_ACEOF
9562 #define ICONV_CONST $am_cv_proto_iconv_arg1
9563 _ACEOF
9564
9565
9566   fi
9567
9568
9569
9570
9571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h.  */
9573 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9574 int
9575 main ()
9576 {
9577
9578   ;
9579   return 0;
9580 }
9581 _ACEOF
9582 if ac_fn_c_try_link "$LINENO"; then :
9583
9584 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9585
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588     conftest$ac_exeext conftest.$ac_ext
9589
9590   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9591 do :
9592   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9593 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9594 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9595   cat >>confdefs.h <<_ACEOF
9596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9597 _ACEOF
9598
9599 fi
9600
9601 done
9602
9603   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9604     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9605     argz_stringify argz_next __fsetlocking
9606 do :
9607   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9610   cat >>confdefs.h <<_ACEOF
9611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9612 _ACEOF
9613
9614 fi
9615 done
9616
9617
9618           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9619 "
9620 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9621   ac_have_decl=1
9622 else
9623   ac_have_decl=0
9624 fi
9625
9626 cat >>confdefs.h <<_ACEOF
9627 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9628 _ACEOF
9629 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9630 "
9631 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9632   ac_have_decl=1
9633 else
9634   ac_have_decl=0
9635 fi
9636
9637 cat >>confdefs.h <<_ACEOF
9638 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9639 _ACEOF
9640
9641
9642
9643
9644                       for ac_prog in bison
9645 do
9646   # Extract the first word of "$ac_prog", so it can be a program name with args.
9647 set dummy $ac_prog; ac_word=$2
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649 $as_echo_n "checking for $ac_word... " >&6; }
9650 if ${ac_cv_prog_INTLBISON+:} false; then :
9651   $as_echo_n "(cached) " >&6
9652 else
9653   if test -n "$INTLBISON"; then
9654   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9655 else
9656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657 for as_dir in $PATH
9658 do
9659   IFS=$as_save_IFS
9660   test -z "$as_dir" && as_dir=.
9661     for ac_exec_ext in '' $ac_executable_extensions; do
9662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9663     ac_cv_prog_INTLBISON="$ac_prog"
9664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9665     break 2
9666   fi
9667 done
9668   done
9669 IFS=$as_save_IFS
9670
9671 fi
9672 fi
9673 INTLBISON=$ac_cv_prog_INTLBISON
9674 if test -n "$INTLBISON"; then
9675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9676 $as_echo "$INTLBISON" >&6; }
9677 else
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9680 fi
9681
9682
9683   test -n "$INTLBISON" && break
9684 done
9685
9686   if test -z "$INTLBISON"; then
9687     ac_verc_fail=yes
9688   else
9689         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9690 $as_echo_n "checking version of bison... " >&6; }
9691     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9692     case $ac_prog_version in
9693       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9694       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9695          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9696       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9697     esac
9698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9699 $as_echo "$ac_prog_version" >&6; }
9700   fi
9701   if test $ac_verc_fail = yes; then
9702     INTLBISON=:
9703   fi
9704
9705
9706
9707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9708 $as_echo_n "checking for long long int... " >&6; }
9709 if ${ac_cv_type_long_long_int+:} false; then :
9710   $as_echo_n "(cached) " >&6
9711 else
9712   ac_cv_type_long_long_int=yes
9713       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9714         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9715         if test $ac_cv_type_long_long_int = yes; then
9716                                         if test "$cross_compiling" = yes; then :
9717   :
9718 else
9719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h.  */
9721 #include <limits.h>
9722                  #ifndef LLONG_MAX
9723                  # define HALF \
9724                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9725                  # define LLONG_MAX (HALF - 1 + HALF)
9726                  #endif
9727 int
9728 main ()
9729 {
9730 long long int n = 1;
9731                  int i;
9732                  for (i = 0; ; i++)
9733                    {
9734                      long long int m = n << i;
9735                      if (m >> i != n)
9736                        return 1;
9737                      if (LLONG_MAX / 2 < m)
9738                        break;
9739                    }
9740                  return 0;
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_c_try_run "$LINENO"; then :
9746
9747 else
9748   ac_cv_type_long_long_int=no
9749 fi
9750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9751   conftest.$ac_objext conftest.beam conftest.$ac_ext
9752 fi
9753
9754         fi
9755       fi
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9758 $as_echo "$ac_cv_type_long_long_int" >&6; }
9759   if test $ac_cv_type_long_long_int = yes; then
9760
9761 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9762
9763   fi
9764
9765
9766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9767 $as_echo_n "checking for wchar_t... " >&6; }
9768 if ${gt_cv_c_wchar_t+:} false; then :
9769   $as_echo_n "(cached) " >&6
9770 else
9771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772 /* end confdefs.h.  */
9773 #include <stddef.h>
9774             wchar_t foo = (wchar_t)'\0';
9775 int
9776 main ()
9777 {
9778
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 if ac_fn_c_try_compile "$LINENO"; then :
9784   gt_cv_c_wchar_t=yes
9785 else
9786   gt_cv_c_wchar_t=no
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9791 $as_echo "$gt_cv_c_wchar_t" >&6; }
9792   if test $gt_cv_c_wchar_t = yes; then
9793
9794 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9795
9796   fi
9797
9798
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9800 $as_echo_n "checking for wint_t... " >&6; }
9801 if ${gt_cv_c_wint_t+:} false; then :
9802   $as_echo_n "(cached) " >&6
9803 else
9804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h.  */
9806
9807 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9808    <wchar.h>.
9809    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9810    before <wchar.h>.  */
9811 #include <stddef.h>
9812 #include <stdio.h>
9813 #include <time.h>
9814 #include <wchar.h>
9815             wint_t foo = (wchar_t)'\0';
9816 int
9817 main ()
9818 {
9819
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 if ac_fn_c_try_compile "$LINENO"; then :
9825   gt_cv_c_wint_t=yes
9826 else
9827   gt_cv_c_wint_t=no
9828 fi
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830 fi
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9832 $as_echo "$gt_cv_c_wint_t" >&6; }
9833   if test $gt_cv_c_wint_t = yes; then
9834
9835 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9836
9837   fi
9838
9839
9840
9841
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9843 $as_echo_n "checking for intmax_t... " >&6; }
9844 if ${gt_cv_c_intmax_t+:} false; then :
9845   $as_echo_n "(cached) " >&6
9846 else
9847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h.  */
9849
9850 #include <stddef.h>
9851 #include <stdlib.h>
9852 #if HAVE_STDINT_H_WITH_UINTMAX
9853 #include <stdint.h>
9854 #endif
9855 #if HAVE_INTTYPES_H_WITH_UINTMAX
9856 #include <inttypes.h>
9857 #endif
9858
9859 int
9860 main ()
9861 {
9862 intmax_t x = -1;
9863             return !x;
9864   ;
9865   return 0;
9866 }
9867 _ACEOF
9868 if ac_fn_c_try_compile "$LINENO"; then :
9869   gt_cv_c_intmax_t=yes
9870 else
9871   gt_cv_c_intmax_t=no
9872 fi
9873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9874 fi
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9876 $as_echo "$gt_cv_c_intmax_t" >&6; }
9877   if test $gt_cv_c_intmax_t = yes; then
9878
9879 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9880
9881   fi
9882
9883
9884
9885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9886 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9887 if ${gt_cv_func_printf_posix+:} false; then :
9888   $as_echo_n "(cached) " >&6
9889 else
9890
9891       if test "$cross_compiling" = yes; then :
9892
9893           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h.  */
9895
9896 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9897   notposix
9898 #endif
9899
9900 _ACEOF
9901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9902   $EGREP "notposix" >/dev/null 2>&1; then :
9903   gt_cv_func_printf_posix="guessing no"
9904 else
9905   gt_cv_func_printf_posix="guessing yes"
9906 fi
9907 rm -f conftest*
9908
9909
9910 else
9911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h.  */
9913
9914 #include <stdio.h>
9915 #include <string.h>
9916 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9917    dollar expansion (possibly an autoconf bug).  */
9918 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9919 static char buf[100];
9920 int main ()
9921 {
9922   sprintf (buf, format, 33, 55);
9923   return (strcmp (buf, "55 33") != 0);
9924 }
9925 _ACEOF
9926 if ac_fn_c_try_run "$LINENO"; then :
9927   gt_cv_func_printf_posix=yes
9928 else
9929   gt_cv_func_printf_posix=no
9930 fi
9931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9932   conftest.$ac_objext conftest.beam conftest.$ac_ext
9933 fi
9934
9935
9936 fi
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9938 $as_echo "$gt_cv_func_printf_posix" >&6; }
9939   case $gt_cv_func_printf_posix in
9940     *yes)
9941
9942 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9943
9944       ;;
9945   esac
9946
9947
9948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9949 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9950 if ${ac_cv_gnu_library_2_1+:} false; then :
9951   $as_echo_n "(cached) " >&6
9952 else
9953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h.  */
9955
9956 #include <features.h>
9957 #ifdef __GNU_LIBRARY__
9958  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9959   Lucky GNU user
9960  #endif
9961 #endif
9962 #ifdef __UCLIBC__
9963  Lucky user
9964 #endif
9965
9966 _ACEOF
9967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9968   $EGREP "Lucky" >/dev/null 2>&1; then :
9969   ac_cv_gnu_library_2_1=yes
9970 else
9971   ac_cv_gnu_library_2_1=no
9972 fi
9973 rm -f conftest*
9974
9975
9976
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9979 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9980
9981     GLIBC21="$ac_cv_gnu_library_2_1"
9982
9983
9984
9985   for ac_header in stdint.h
9986 do :
9987   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9988 if test "x$ac_cv_header_stdint_h" = xyes; then :
9989   cat >>confdefs.h <<_ACEOF
9990 #define HAVE_STDINT_H 1
9991 _ACEOF
9992
9993 fi
9994
9995 done
9996
9997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9998 $as_echo_n "checking for SIZE_MAX... " >&6; }
9999 if ${gl_cv_size_max+:} false; then :
10000   $as_echo_n "(cached) " >&6
10001 else
10002
10003     gl_cv_size_max=
10004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h.  */
10006
10007 #include <limits.h>
10008 #if HAVE_STDINT_H
10009 #include <stdint.h>
10010 #endif
10011 #ifdef SIZE_MAX
10012 Found it
10013 #endif
10014
10015 _ACEOF
10016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10017   $EGREP "Found it" >/dev/null 2>&1; then :
10018   gl_cv_size_max=yes
10019 fi
10020 rm -f conftest*
10021
10022     if test -z "$gl_cv_size_max"; then
10023                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
10024 #include <limits.h>"; then :
10025
10026 else
10027   size_t_bits_minus_1=
10028 fi
10029
10030       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10031
10032 else
10033   fits_in_uint=
10034 fi
10035
10036       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10037         if test $fits_in_uint = 1; then
10038                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h.  */
10040 #include <stddef.h>
10041                  extern size_t foo;
10042                  extern unsigned long foo;
10043
10044 int
10045 main ()
10046 {
10047
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 if ac_fn_c_try_compile "$LINENO"; then :
10053   fits_in_uint=0
10054 fi
10055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10056         fi
10057                                 if test $fits_in_uint = 1; then
10058           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10059         else
10060           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10061         fi
10062       else
10063                 gl_cv_size_max='((size_t)~(size_t)0)'
10064       fi
10065     fi
10066
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10069 $as_echo "$gl_cv_size_max" >&6; }
10070   if test "$gl_cv_size_max" != yes; then
10071
10072 cat >>confdefs.h <<_ACEOF
10073 #define SIZE_MAX $gl_cv_size_max
10074 _ACEOF
10075
10076   fi
10077
10078
10079
10080
10081   for ac_header in stdint.h
10082 do :
10083   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10084 if test "x$ac_cv_header_stdint_h" = xyes; then :
10085   cat >>confdefs.h <<_ACEOF
10086 #define HAVE_STDINT_H 1
10087 _ACEOF
10088
10089 fi
10090
10091 done
10092
10093
10094
10095
10096
10097   for ac_func in $ac_func_list
10098 do :
10099   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10100 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10101 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10102   cat >>confdefs.h <<_ACEOF
10103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10104 _ACEOF
10105
10106 fi
10107 done
10108
10109
10110
10111
10112
10113
10114
10115
10116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10117 $as_echo_n "checking for working fcntl.h... " >&6; }
10118 if ${gl_cv_header_working_fcntl_h+:} false; then :
10119   $as_echo_n "(cached) " >&6
10120 else
10121   if test "$cross_compiling" = yes; then :
10122   gl_cv_header_working_fcntl_h=cross-compiling
10123 else
10124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h.  */
10126 #include <sys/types.h>
10127            #include <sys/stat.h>
10128            #if HAVE_UNISTD_H
10129            # include <unistd.h>
10130            #else /* on Windows with MSVC */
10131            # include <io.h>
10132            # include <stdlib.h>
10133            # defined sleep(n) _sleep ((n) * 1000)
10134            #endif
10135            #include <fcntl.h>
10136            #ifndef O_NOATIME
10137             #define O_NOATIME 0
10138            #endif
10139            #ifndef O_NOFOLLOW
10140             #define O_NOFOLLOW 0
10141            #endif
10142            static int const constants[] =
10143             {
10144               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10145               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10146             };
10147
10148 int
10149 main ()
10150 {
10151
10152             int result = !constants;
10153             #if HAVE_SYMLINK
10154             {
10155               static char const sym[] = "conftest.sym";
10156               if (symlink ("/dev/null", sym) != 0)
10157                 result |= 2;
10158               else
10159                 {
10160                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10161                   if (fd >= 0)
10162                     {
10163                       close (fd);
10164                       result |= 4;
10165                     }
10166                 }
10167               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10168                 result |= 2;
10169               else
10170                 {
10171                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10172                   if (fd >= 0)
10173                     {
10174                       close (fd);
10175                       result |= 4;
10176                     }
10177                 }
10178               unlink (sym);
10179             }
10180             #endif
10181             {
10182               static char const file[] = "confdefs.h";
10183               int fd = open (file, O_RDONLY | O_NOATIME);
10184               if (fd < 0)
10185                 result |= 8;
10186               else
10187                 {
10188                   struct stat st0;
10189                   if (fstat (fd, &st0) != 0)
10190                     result |= 16;
10191                   else
10192                     {
10193                       char c;
10194                       sleep (1);
10195                       if (read (fd, &c, 1) != 1)
10196                         result |= 24;
10197                       else
10198                         {
10199                           if (close (fd) != 0)
10200                             result |= 32;
10201                           else
10202                             {
10203                               struct stat st1;
10204                               if (stat (file, &st1) != 0)
10205                                 result |= 40;
10206                               else
10207                                 if (st0.st_atime != st1.st_atime)
10208                                   result |= 64;
10209                             }
10210                         }
10211                     }
10212                 }
10213             }
10214             return result;
10215   ;
10216   return 0;
10217 }
10218 _ACEOF
10219 if ac_fn_c_try_run "$LINENO"; then :
10220   gl_cv_header_working_fcntl_h=yes
10221 else
10222   case $? in #(
10223         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10224         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10225         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10226          *) gl_cv_header_working_fcntl_h='no';;
10227         esac
10228 fi
10229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10230   conftest.$ac_objext conftest.beam conftest.$ac_ext
10231 fi
10232
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10235 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10236
10237   case $gl_cv_header_working_fcntl_h in #(
10238   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10239   *) ac_val=1;;
10240   esac
10241
10242 cat >>confdefs.h <<_ACEOF
10243 #define HAVE_WORKING_O_NOATIME $ac_val
10244 _ACEOF
10245
10246
10247   case $gl_cv_header_working_fcntl_h in #(
10248   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10249   *) ac_val=1;;
10250   esac
10251
10252 cat >>confdefs.h <<_ACEOF
10253 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10254 _ACEOF
10255
10256
10257
10258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10259 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10260 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10261   $as_echo_n "(cached) " >&6
10262 else
10263   gt_save_LIBS="$LIBS"
10264      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10265      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h.  */
10267 #include <CoreFoundation/CFPreferences.h>
10268 int
10269 main ()
10270 {
10271 CFPreferencesCopyAppValue(NULL, NULL)
10272   ;
10273   return 0;
10274 }
10275 _ACEOF
10276 if ac_fn_c_try_link "$LINENO"; then :
10277   gt_cv_func_CFPreferencesCopyAppValue=yes
10278 else
10279   gt_cv_func_CFPreferencesCopyAppValue=no
10280 fi
10281 rm -f core conftest.err conftest.$ac_objext \
10282     conftest$ac_exeext conftest.$ac_ext
10283      LIBS="$gt_save_LIBS"
10284 fi
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10286 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10287   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10288
10289 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10290
10291   fi
10292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10293 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10294 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10295   $as_echo_n "(cached) " >&6
10296 else
10297   gt_save_LIBS="$LIBS"
10298      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10299      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h.  */
10301 #include <CoreFoundation/CFLocale.h>
10302 int
10303 main ()
10304 {
10305 CFLocaleCopyCurrent();
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 if ac_fn_c_try_link "$LINENO"; then :
10311   gt_cv_func_CFLocaleCopyCurrent=yes
10312 else
10313   gt_cv_func_CFLocaleCopyCurrent=no
10314 fi
10315 rm -f core conftest.err conftest.$ac_objext \
10316     conftest$ac_exeext conftest.$ac_ext
10317      LIBS="$gt_save_LIBS"
10318 fi
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10320 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10321   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10322
10323 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10324
10325   fi
10326   INTL_MACOSX_LIBS=
10327   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10328     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10329   fi
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340     case "$enable_silent_rules" in
10341     yes) INTL_DEFAULT_VERBOSITY=0;;
10342     no)  INTL_DEFAULT_VERBOSITY=1;;
10343     *)   INTL_DEFAULT_VERBOSITY=1;;
10344   esac
10345
10346
10347   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10348 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10349
10350 else
10351
10352 $as_echo "#define ptrdiff_t long" >>confdefs.h
10353
10354
10355 fi
10356
10357   for ac_header in features.h stddef.h stdlib.h string.h
10358 do :
10359   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10360 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10362   cat >>confdefs.h <<_ACEOF
10363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10364 _ACEOF
10365
10366 fi
10367
10368 done
10369
10370   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10371     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10372 do :
10373   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10374 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10375 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10376   cat >>confdefs.h <<_ACEOF
10377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10378 _ACEOF
10379
10380 fi
10381 done
10382
10383
10384       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10385 "
10386 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10387   ac_have_decl=1
10388 else
10389   ac_have_decl=0
10390 fi
10391
10392 cat >>confdefs.h <<_ACEOF
10393 #define HAVE_DECL__SNPRINTF $ac_have_decl
10394 _ACEOF
10395 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10396 "
10397 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10398   ac_have_decl=1
10399 else
10400   ac_have_decl=0
10401 fi
10402
10403 cat >>confdefs.h <<_ACEOF
10404 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10405 _ACEOF
10406
10407
10408           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10409 "
10410 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10411   ac_have_decl=1
10412 else
10413   ac_have_decl=0
10414 fi
10415
10416 cat >>confdefs.h <<_ACEOF
10417 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10418 _ACEOF
10419
10420
10421   case $gt_cv_func_printf_posix in
10422     *yes) HAVE_POSIX_PRINTF=1 ;;
10423     *) HAVE_POSIX_PRINTF=0 ;;
10424   esac
10425
10426   if test "$ac_cv_func_asprintf" = yes; then
10427     HAVE_ASPRINTF=1
10428   else
10429     HAVE_ASPRINTF=0
10430   fi
10431
10432   if test "$ac_cv_func_snprintf" = yes; then
10433     HAVE_SNPRINTF=1
10434   else
10435     HAVE_SNPRINTF=0
10436   fi
10437
10438   if test "$ac_cv_func_newlocale" = yes; then
10439     HAVE_NEWLOCALE=1
10440   else
10441     HAVE_NEWLOCALE=0
10442   fi
10443
10444   if test "$ac_cv_func_wprintf" = yes; then
10445     HAVE_WPRINTF=1
10446   else
10447     HAVE_WPRINTF=0
10448   fi
10449
10450
10451
10452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10453 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10454 if ${am_cv_langinfo_codeset+:} false; then :
10455   $as_echo_n "(cached) " >&6
10456 else
10457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h.  */
10459 #include <langinfo.h>
10460 int
10461 main ()
10462 {
10463 char* cs = nl_langinfo(CODESET); return !cs;
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469   am_cv_langinfo_codeset=yes
10470 else
10471   am_cv_langinfo_codeset=no
10472 fi
10473 rm -f core conftest.err conftest.$ac_objext \
10474     conftest$ac_exeext conftest.$ac_ext
10475
10476 fi
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10478 $as_echo "$am_cv_langinfo_codeset" >&6; }
10479   if test $am_cv_langinfo_codeset = yes; then
10480
10481 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10482
10483   fi
10484
10485
10486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10487 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10488 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10489   $as_echo_n "(cached) " >&6
10490 else
10491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h.  */
10493 #include <locale.h>
10494 int
10495 main ()
10496 {
10497 return LC_MESSAGES
10498   ;
10499   return 0;
10500 }
10501 _ACEOF
10502 if ac_fn_c_try_link "$LINENO"; then :
10503   gt_cv_val_LC_MESSAGES=yes
10504 else
10505   gt_cv_val_LC_MESSAGES=no
10506 fi
10507 rm -f core conftest.err conftest.$ac_objext \
10508     conftest$ac_exeext conftest.$ac_ext
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10511 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10512   if test $gt_cv_val_LC_MESSAGES = yes; then
10513
10514 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10515
10516   fi
10517
10518
10519                 if test "$enable_shared" = yes; then
10520     case "$host_os" in
10521       mingw* | cygwin*) is_woe32dll=yes ;;
10522       *) is_woe32dll=no ;;
10523     esac
10524   else
10525     is_woe32dll=no
10526   fi
10527   WOE32DLL=$is_woe32dll
10528
10529
10530       case "$host_os" in
10531     mingw* | cygwin*) is_woe32=yes ;;
10532     *) is_woe32=no ;;
10533   esac
10534   WOE32=$is_woe32
10535
10536   if test $WOE32 = yes; then
10537         if test -n "$ac_tool_prefix"; then
10538   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10539 set dummy ${ac_tool_prefix}windres; ac_word=$2
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541 $as_echo_n "checking for $ac_word... " >&6; }
10542 if ${ac_cv_prog_WINDRES+:} false; then :
10543   $as_echo_n "(cached) " >&6
10544 else
10545   if test -n "$WINDRES"; then
10546   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10547 else
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10550 do
10551   IFS=$as_save_IFS
10552   test -z "$as_dir" && as_dir=.
10553     for ac_exec_ext in '' $ac_executable_extensions; do
10554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557     break 2
10558   fi
10559 done
10560   done
10561 IFS=$as_save_IFS
10562
10563 fi
10564 fi
10565 WINDRES=$ac_cv_prog_WINDRES
10566 if test -n "$WINDRES"; then
10567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10568 $as_echo "$WINDRES" >&6; }
10569 else
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10572 fi
10573
10574
10575 fi
10576 if test -z "$ac_cv_prog_WINDRES"; then
10577   ac_ct_WINDRES=$WINDRES
10578   # Extract the first word of "windres", so it can be a program name with args.
10579 set dummy windres; ac_word=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10583   $as_echo_n "(cached) " >&6
10584 else
10585   if test -n "$ac_ct_WINDRES"; then
10586   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10587 else
10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10590 do
10591   IFS=$as_save_IFS
10592   test -z "$as_dir" && as_dir=.
10593     for ac_exec_ext in '' $ac_executable_extensions; do
10594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595     ac_cv_prog_ac_ct_WINDRES="windres"
10596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10597     break 2
10598   fi
10599 done
10600   done
10601 IFS=$as_save_IFS
10602
10603 fi
10604 fi
10605 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10606 if test -n "$ac_ct_WINDRES"; then
10607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10608 $as_echo "$ac_ct_WINDRES" >&6; }
10609 else
10610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10612 fi
10613
10614   if test "x$ac_ct_WINDRES" = x; then
10615     WINDRES=""
10616   else
10617     case $cross_compiling:$ac_tool_warned in
10618 yes:)
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10621 ac_tool_warned=yes ;;
10622 esac
10623     WINDRES=$ac_ct_WINDRES
10624   fi
10625 else
10626   WINDRES="$ac_cv_prog_WINDRES"
10627 fi
10628
10629   fi
10630
10631               case "$host_os" in
10632     hpux*) LTLIBC="" ;;
10633     *)     LTLIBC="-lc" ;;
10634   esac
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10663 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10664 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10665   $as_echo_n "(cached) " >&6
10666 else
10667   gt_save_LIBS="$LIBS"
10668      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10669      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h.  */
10671 #include <CoreFoundation/CFPreferences.h>
10672 int
10673 main ()
10674 {
10675 CFPreferencesCopyAppValue(NULL, NULL)
10676   ;
10677   return 0;
10678 }
10679 _ACEOF
10680 if ac_fn_c_try_link "$LINENO"; then :
10681   gt_cv_func_CFPreferencesCopyAppValue=yes
10682 else
10683   gt_cv_func_CFPreferencesCopyAppValue=no
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext \
10686     conftest$ac_exeext conftest.$ac_ext
10687      LIBS="$gt_save_LIBS"
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10690 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10691   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10692
10693 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10694
10695   fi
10696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10697 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10698 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10699   $as_echo_n "(cached) " >&6
10700 else
10701   gt_save_LIBS="$LIBS"
10702      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10703      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h.  */
10705 #include <CoreFoundation/CFLocale.h>
10706 int
10707 main ()
10708 {
10709 CFLocaleCopyCurrent();
10710   ;
10711   return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715   gt_cv_func_CFLocaleCopyCurrent=yes
10716 else
10717   gt_cv_func_CFLocaleCopyCurrent=no
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext \
10720     conftest$ac_exeext conftest.$ac_ext
10721      LIBS="$gt_save_LIBS"
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10724 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10725   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10726
10727 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10728
10729   fi
10730   INTL_MACOSX_LIBS=
10731   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10732     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10733   fi
10734
10735
10736
10737
10738
10739
10740     BUILD_INCLUDED_LIBINTL=no
10741     USE_INCLUDED_LIBINTL=no
10742
10743   LIBINTL=
10744   LTLIBINTL=
10745   POSUB=
10746
10747     case " $gt_needs " in
10748     *" need-formatstring-macros "*) gt_api_version=3 ;;
10749     *" need-ngettext "*) gt_api_version=2 ;;
10750     *) gt_api_version=1 ;;
10751   esac
10752   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10753   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10754
10755     if test "$USE_NLS" = "yes"; then
10756     gt_use_preinstalled_gnugettext=no
10757
10758       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10759 $as_echo_n "checking whether included gettext is requested... " >&6; }
10760
10761 # Check whether --with-included-gettext was given.
10762 if test "${with_included_gettext+set}" = set; then :
10763   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10764 else
10765   nls_cv_force_use_gnu_gettext=no
10766 fi
10767
10768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10769 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10770
10771       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10772       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10773
10774
10775         if test $gt_api_version -ge 3; then
10776           gt_revision_test_code='
10777 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10778 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10779 #endif
10780 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10781 '
10782         else
10783           gt_revision_test_code=
10784         fi
10785         if test $gt_api_version -ge 2; then
10786           gt_expression_test_code=' + * ngettext ("", "", 0)'
10787         else
10788           gt_expression_test_code=
10789         fi
10790
10791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10792 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10793 if eval \${$gt_func_gnugettext_libc+:} false; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h.  */
10798
10799 #include <libintl.h>
10800 $gt_revision_test_code
10801 extern int _nl_msg_cat_cntr;
10802 extern int *_nl_domain_bindings;
10803
10804 int
10805 main ()
10806 {
10807
10808 bindtextdomain ("", "");
10809 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10810
10811   ;
10812   return 0;
10813 }
10814 _ACEOF
10815 if ac_fn_c_try_link "$LINENO"; then :
10816   eval "$gt_func_gnugettext_libc=yes"
10817 else
10818   eval "$gt_func_gnugettext_libc=no"
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext \
10821     conftest$ac_exeext conftest.$ac_ext
10822 fi
10823 eval ac_res=\$$gt_func_gnugettext_libc
10824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10825 $as_echo "$ac_res" >&6; }
10826
10827         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10828
10829
10830
10831
10832
10833
10834
10835
10836     use_additional=yes
10837
10838   acl_save_prefix="$prefix"
10839   prefix="$acl_final_prefix"
10840   acl_save_exec_prefix="$exec_prefix"
10841   exec_prefix="$acl_final_exec_prefix"
10842
10843     eval additional_includedir=\"$includedir\"
10844     eval additional_libdir=\"$libdir\"
10845
10846   exec_prefix="$acl_save_exec_prefix"
10847   prefix="$acl_save_prefix"
10848
10849
10850 # Check whether --with-libintl-prefix was given.
10851 if test "${with_libintl_prefix+set}" = set; then :
10852   withval=$with_libintl_prefix;
10853     if test "X$withval" = "Xno"; then
10854       use_additional=no
10855     else
10856       if test "X$withval" = "X"; then
10857
10858   acl_save_prefix="$prefix"
10859   prefix="$acl_final_prefix"
10860   acl_save_exec_prefix="$exec_prefix"
10861   exec_prefix="$acl_final_exec_prefix"
10862
10863           eval additional_includedir=\"$includedir\"
10864           eval additional_libdir=\"$libdir\"
10865
10866   exec_prefix="$acl_save_exec_prefix"
10867   prefix="$acl_save_prefix"
10868
10869       else
10870         additional_includedir="$withval/include"
10871         additional_libdir="$withval/$acl_libdirstem"
10872         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10873            && ! test -d "$withval/$acl_libdirstem"; then
10874           additional_libdir="$withval/$acl_libdirstem2"
10875         fi
10876       fi
10877     fi
10878
10879 fi
10880
10881       LIBINTL=
10882   LTLIBINTL=
10883   INCINTL=
10884   LIBINTL_PREFIX=
10885       HAVE_LIBINTL=
10886   rpathdirs=
10887   ltrpathdirs=
10888   names_already_handled=
10889   names_next_round='intl '
10890   while test -n "$names_next_round"; do
10891     names_this_round="$names_next_round"
10892     names_next_round=
10893     for name in $names_this_round; do
10894       already_handled=
10895       for n in $names_already_handled; do
10896         if test "$n" = "$name"; then
10897           already_handled=yes
10898           break
10899         fi
10900       done
10901       if test -z "$already_handled"; then
10902         names_already_handled="$names_already_handled $name"
10903                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10904         eval value=\"\$HAVE_LIB$uppername\"
10905         if test -n "$value"; then
10906           if test "$value" = yes; then
10907             eval value=\"\$LIB$uppername\"
10908             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10909             eval value=\"\$LTLIB$uppername\"
10910             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10911           else
10912                                     :
10913           fi
10914         else
10915                               found_dir=
10916           found_la=
10917           found_so=
10918           found_a=
10919           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10920           if test -n "$acl_shlibext"; then
10921             shrext=".$acl_shlibext"             # typically: shrext=.so
10922           else
10923             shrext=
10924           fi
10925           if test $use_additional = yes; then
10926             dir="$additional_libdir"
10927                                     if test -n "$acl_shlibext"; then
10928               if test -f "$dir/$libname$shrext"; then
10929                 found_dir="$dir"
10930                 found_so="$dir/$libname$shrext"
10931               else
10932                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10933                   ver=`(cd "$dir" && \
10934                         for f in "$libname$shrext".*; do echo "$f"; done \
10935                         | sed -e "s,^$libname$shrext\\\\.,," \
10936                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10937                         | sed 1q ) 2>/dev/null`
10938                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10939                     found_dir="$dir"
10940                     found_so="$dir/$libname$shrext.$ver"
10941                   fi
10942                 else
10943                   eval library_names=\"$acl_library_names_spec\"
10944                   for f in $library_names; do
10945                     if test -f "$dir/$f"; then
10946                       found_dir="$dir"
10947                       found_so="$dir/$f"
10948                       break
10949                     fi
10950                   done
10951                 fi
10952               fi
10953             fi
10954                         if test "X$found_dir" = "X"; then
10955               if test -f "$dir/$libname.$acl_libext"; then
10956                 found_dir="$dir"
10957                 found_a="$dir/$libname.$acl_libext"
10958               fi
10959             fi
10960             if test "X$found_dir" != "X"; then
10961               if test -f "$dir/$libname.la"; then
10962                 found_la="$dir/$libname.la"
10963               fi
10964             fi
10965           fi
10966           if test "X$found_dir" = "X"; then
10967             for x in $LDFLAGS $LTLIBINTL; do
10968
10969   acl_save_prefix="$prefix"
10970   prefix="$acl_final_prefix"
10971   acl_save_exec_prefix="$exec_prefix"
10972   exec_prefix="$acl_final_exec_prefix"
10973   eval x=\"$x\"
10974   exec_prefix="$acl_save_exec_prefix"
10975   prefix="$acl_save_prefix"
10976
10977               case "$x" in
10978                 -L*)
10979                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10980                                     if test -n "$acl_shlibext"; then
10981                     if test -f "$dir/$libname$shrext"; then
10982                       found_dir="$dir"
10983                       found_so="$dir/$libname$shrext"
10984                     else
10985                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10986                         ver=`(cd "$dir" && \
10987                               for f in "$libname$shrext".*; do echo "$f"; done \
10988                               | sed -e "s,^$libname$shrext\\\\.,," \
10989                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10990                               | sed 1q ) 2>/dev/null`
10991                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10992                           found_dir="$dir"
10993                           found_so="$dir/$libname$shrext.$ver"
10994                         fi
10995                       else
10996                         eval library_names=\"$acl_library_names_spec\"
10997                         for f in $library_names; do
10998                           if test -f "$dir/$f"; then
10999                             found_dir="$dir"
11000                             found_so="$dir/$f"
11001                             break
11002                           fi
11003                         done
11004                       fi
11005                     fi
11006                   fi
11007                                     if test "X$found_dir" = "X"; then
11008                     if test -f "$dir/$libname.$acl_libext"; then
11009                       found_dir="$dir"
11010                       found_a="$dir/$libname.$acl_libext"
11011                     fi
11012                   fi
11013                   if test "X$found_dir" != "X"; then
11014                     if test -f "$dir/$libname.la"; then
11015                       found_la="$dir/$libname.la"
11016                     fi
11017                   fi
11018                   ;;
11019               esac
11020               if test "X$found_dir" != "X"; then
11021                 break
11022               fi
11023             done
11024           fi
11025           if test "X$found_dir" != "X"; then
11026                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11027             if test "X$found_so" != "X"; then
11028                                                         if test "$enable_rpath" = no \
11029                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11030                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11031                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11032               else
11033                                                                                 haveit=
11034                 for x in $ltrpathdirs; do
11035                   if test "X$x" = "X$found_dir"; then
11036                     haveit=yes
11037                     break
11038                   fi
11039                 done
11040                 if test -z "$haveit"; then
11041                   ltrpathdirs="$ltrpathdirs $found_dir"
11042                 fi
11043                                 if test "$acl_hardcode_direct" = yes; then
11044                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11045                 else
11046                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11047                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11048                                                             haveit=
11049                     for x in $rpathdirs; do
11050                       if test "X$x" = "X$found_dir"; then
11051                         haveit=yes
11052                         break
11053                       fi
11054                     done
11055                     if test -z "$haveit"; then
11056                       rpathdirs="$rpathdirs $found_dir"
11057                     fi
11058                   else
11059                                                                                 haveit=
11060                     for x in $LDFLAGS $LIBINTL; do
11061
11062   acl_save_prefix="$prefix"
11063   prefix="$acl_final_prefix"
11064   acl_save_exec_prefix="$exec_prefix"
11065   exec_prefix="$acl_final_exec_prefix"
11066   eval x=\"$x\"
11067   exec_prefix="$acl_save_exec_prefix"
11068   prefix="$acl_save_prefix"
11069
11070                       if test "X$x" = "X-L$found_dir"; then
11071                         haveit=yes
11072                         break
11073                       fi
11074                     done
11075                     if test -z "$haveit"; then
11076                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11077                     fi
11078                     if test "$acl_hardcode_minus_L" != no; then
11079                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11080                     else
11081                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11082                     fi
11083                   fi
11084                 fi
11085               fi
11086             else
11087               if test "X$found_a" != "X"; then
11088                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11089               else
11090                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11091               fi
11092             fi
11093                         additional_includedir=
11094             case "$found_dir" in
11095               */$acl_libdirstem | */$acl_libdirstem/)
11096                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11097                 if test "$name" = 'intl'; then
11098                   LIBINTL_PREFIX="$basedir"
11099                 fi
11100                 additional_includedir="$basedir/include"
11101                 ;;
11102               */$acl_libdirstem2 | */$acl_libdirstem2/)
11103                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11104                 if test "$name" = 'intl'; then
11105                   LIBINTL_PREFIX="$basedir"
11106                 fi
11107                 additional_includedir="$basedir/include"
11108                 ;;
11109             esac
11110             if test "X$additional_includedir" != "X"; then
11111                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11112                 haveit=
11113                 if test "X$additional_includedir" = "X/usr/local/include"; then
11114                   if test -n "$GCC"; then
11115                     case $host_os in
11116                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11117                     esac
11118                   fi
11119                 fi
11120                 if test -z "$haveit"; then
11121                   for x in $CPPFLAGS $INCINTL; do
11122
11123   acl_save_prefix="$prefix"
11124   prefix="$acl_final_prefix"
11125   acl_save_exec_prefix="$exec_prefix"
11126   exec_prefix="$acl_final_exec_prefix"
11127   eval x=\"$x\"
11128   exec_prefix="$acl_save_exec_prefix"
11129   prefix="$acl_save_prefix"
11130
11131                     if test "X$x" = "X-I$additional_includedir"; then
11132                       haveit=yes
11133                       break
11134                     fi
11135                   done
11136                   if test -z "$haveit"; then
11137                     if test -d "$additional_includedir"; then
11138                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11139                     fi
11140                   fi
11141                 fi
11142               fi
11143             fi
11144                         if test -n "$found_la"; then
11145                                                         save_libdir="$libdir"
11146               case "$found_la" in
11147                 */* | *\\*) . "$found_la" ;;
11148                 *) . "./$found_la" ;;
11149               esac
11150               libdir="$save_libdir"
11151                             for dep in $dependency_libs; do
11152                 case "$dep" in
11153                   -L*)
11154                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11155                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11156                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11157                       haveit=
11158                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11159                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11160                         if test -n "$GCC"; then
11161                           case $host_os in
11162                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11163                           esac
11164                         fi
11165                       fi
11166                       if test -z "$haveit"; then
11167                         haveit=
11168                         for x in $LDFLAGS $LIBINTL; do
11169
11170   acl_save_prefix="$prefix"
11171   prefix="$acl_final_prefix"
11172   acl_save_exec_prefix="$exec_prefix"
11173   exec_prefix="$acl_final_exec_prefix"
11174   eval x=\"$x\"
11175   exec_prefix="$acl_save_exec_prefix"
11176   prefix="$acl_save_prefix"
11177
11178                           if test "X$x" = "X-L$additional_libdir"; then
11179                             haveit=yes
11180                             break
11181                           fi
11182                         done
11183                         if test -z "$haveit"; then
11184                           if test -d "$additional_libdir"; then
11185                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11186                           fi
11187                         fi
11188                         haveit=
11189                         for x in $LDFLAGS $LTLIBINTL; do
11190
11191   acl_save_prefix="$prefix"
11192   prefix="$acl_final_prefix"
11193   acl_save_exec_prefix="$exec_prefix"
11194   exec_prefix="$acl_final_exec_prefix"
11195   eval x=\"$x\"
11196   exec_prefix="$acl_save_exec_prefix"
11197   prefix="$acl_save_prefix"
11198
11199                           if test "X$x" = "X-L$additional_libdir"; then
11200                             haveit=yes
11201                             break
11202                           fi
11203                         done
11204                         if test -z "$haveit"; then
11205                           if test -d "$additional_libdir"; then
11206                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11207                           fi
11208                         fi
11209                       fi
11210                     fi
11211                     ;;
11212                   -R*)
11213                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11214                     if test "$enable_rpath" != no; then
11215                                                                   haveit=
11216                       for x in $rpathdirs; do
11217                         if test "X$x" = "X$dir"; then
11218                           haveit=yes
11219                           break
11220                         fi
11221                       done
11222                       if test -z "$haveit"; then
11223                         rpathdirs="$rpathdirs $dir"
11224                       fi
11225                                                                   haveit=
11226                       for x in $ltrpathdirs; do
11227                         if test "X$x" = "X$dir"; then
11228                           haveit=yes
11229                           break
11230                         fi
11231                       done
11232                       if test -z "$haveit"; then
11233                         ltrpathdirs="$ltrpathdirs $dir"
11234                       fi
11235                     fi
11236                     ;;
11237                   -l*)
11238                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11239                     ;;
11240                   *.la)
11241                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11242                     ;;
11243                   *)
11244                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11245                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11246                     ;;
11247                 esac
11248               done
11249             fi
11250           else
11251                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11252             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11253           fi
11254         fi
11255       fi
11256     done
11257   done
11258   if test "X$rpathdirs" != "X"; then
11259     if test -n "$acl_hardcode_libdir_separator"; then
11260                         alldirs=
11261       for found_dir in $rpathdirs; do
11262         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11263       done
11264             acl_save_libdir="$libdir"
11265       libdir="$alldirs"
11266       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11267       libdir="$acl_save_libdir"
11268       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11269     else
11270             for found_dir in $rpathdirs; do
11271         acl_save_libdir="$libdir"
11272         libdir="$found_dir"
11273         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11274         libdir="$acl_save_libdir"
11275         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11276       done
11277     fi
11278   fi
11279   if test "X$ltrpathdirs" != "X"; then
11280             for found_dir in $ltrpathdirs; do
11281       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11282     done
11283   fi
11284
11285
11286
11287
11288
11289
11290           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11291 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11292 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   gt_save_CPPFLAGS="$CPPFLAGS"
11296             CPPFLAGS="$CPPFLAGS $INCINTL"
11297             gt_save_LIBS="$LIBS"
11298             LIBS="$LIBS $LIBINTL"
11299                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h.  */
11301
11302 #include <libintl.h>
11303 $gt_revision_test_code
11304 extern int _nl_msg_cat_cntr;
11305 extern
11306 #ifdef __cplusplus
11307 "C"
11308 #endif
11309 const char *_nl_expand_alias (const char *);
11310
11311 int
11312 main ()
11313 {
11314
11315 bindtextdomain ("", "");
11316 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11317
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_c_try_link "$LINENO"; then :
11323   eval "$gt_func_gnugettext_libintl=yes"
11324 else
11325   eval "$gt_func_gnugettext_libintl=no"
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext \
11328     conftest$ac_exeext conftest.$ac_ext
11329                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11330               LIBS="$LIBS $LIBICONV"
11331               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h.  */
11333
11334 #include <libintl.h>
11335 $gt_revision_test_code
11336 extern int _nl_msg_cat_cntr;
11337 extern
11338 #ifdef __cplusplus
11339 "C"
11340 #endif
11341 const char *_nl_expand_alias (const char *);
11342
11343 int
11344 main ()
11345 {
11346
11347 bindtextdomain ("", "");
11348 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11349
11350   ;
11351   return 0;
11352 }
11353 _ACEOF
11354 if ac_fn_c_try_link "$LINENO"; then :
11355   LIBINTL="$LIBINTL $LIBICONV"
11356                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11357                  eval "$gt_func_gnugettext_libintl=yes"
11358
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext \
11361     conftest$ac_exeext conftest.$ac_ext
11362             fi
11363             CPPFLAGS="$gt_save_CPPFLAGS"
11364             LIBS="$gt_save_LIBS"
11365 fi
11366 eval ac_res=\$$gt_func_gnugettext_libintl
11367                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11368 $as_echo "$ac_res" >&6; }
11369         fi
11370
11371                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11372            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11373                 && test "$PACKAGE" != gettext-runtime \
11374                 && test "$PACKAGE" != gettext-tools; }; then
11375           gt_use_preinstalled_gnugettext=yes
11376         else
11377                     LIBINTL=
11378           LTLIBINTL=
11379           INCINTL=
11380         fi
11381
11382
11383         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11384                               nls_cv_use_gnu_gettext=yes
11385         fi
11386       fi
11387
11388       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11389                 BUILD_INCLUDED_LIBINTL=yes
11390         USE_INCLUDED_LIBINTL=yes
11391         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11392         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11393         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11394       fi
11395
11396       CATOBJEXT=
11397       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11398          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11399                 CATOBJEXT=.gmo
11400       fi
11401
11402
11403     if test -n "$INTL_MACOSX_LIBS"; then
11404       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11405          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11406                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11407         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11408       fi
11409     fi
11410
11411     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11412        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11413
11414 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11415
11416     else
11417       USE_NLS=no
11418     fi
11419   fi
11420
11421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11422 $as_echo_n "checking whether to use NLS... " >&6; }
11423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11424 $as_echo "$USE_NLS" >&6; }
11425   if test "$USE_NLS" = "yes"; then
11426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11427 $as_echo_n "checking where the gettext function comes from... " >&6; }
11428     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11429       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11430         gt_source="external libintl"
11431       else
11432         gt_source="libc"
11433       fi
11434     else
11435       gt_source="included intl directory"
11436     fi
11437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11438 $as_echo "$gt_source" >&6; }
11439   fi
11440
11441   if test "$USE_NLS" = "yes"; then
11442
11443     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11444       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11446 $as_echo_n "checking how to link with libintl... " >&6; }
11447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11448 $as_echo "$LIBINTL" >&6; }
11449
11450   for element in $INCINTL; do
11451     haveit=
11452     for x in $CPPFLAGS; do
11453
11454   acl_save_prefix="$prefix"
11455   prefix="$acl_final_prefix"
11456   acl_save_exec_prefix="$exec_prefix"
11457   exec_prefix="$acl_final_exec_prefix"
11458   eval x=\"$x\"
11459   exec_prefix="$acl_save_exec_prefix"
11460   prefix="$acl_save_prefix"
11461
11462       if test "X$x" = "X$element"; then
11463         haveit=yes
11464         break
11465       fi
11466     done
11467     if test -z "$haveit"; then
11468       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11469     fi
11470   done
11471
11472       fi
11473
11474
11475 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11476
11477
11478 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11479
11480     fi
11481
11482         POSUB=po
11483   fi
11484
11485
11486             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11487       BUILD_INCLUDED_LIBINTL=yes
11488     fi
11489
11490
11491
11492
11493
11494         nls_cv_header_intl=
11495     nls_cv_header_libgt=
11496
11497         DATADIRNAME=share
11498
11499
11500         INSTOBJEXT=.mo
11501
11502
11503         GENCAT=gencat
11504
11505
11506         INTLOBJS=
11507     if test "$USE_INCLUDED_LIBINTL" = yes; then
11508       INTLOBJS="\$(GETTOBJS)"
11509     fi
11510
11511
11512         INTL_LIBTOOL_SUFFIX_PREFIX=
11513
11514
11515
11516     INTLLIBS="$LIBINTL"
11517
11518
11519
11520
11521
11522
11523
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11525 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11526 set x ${MAKE-make}
11527 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11528 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11529   $as_echo_n "(cached) " >&6
11530 else
11531   cat >conftest.make <<\_ACEOF
11532 SHELL = /bin/sh
11533 all:
11534         @echo '@@@%%%=$(MAKE)=@@@%%%'
11535 _ACEOF
11536 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11537 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11538   *@@@%%%=?*=@@@%%%*)
11539     eval ac_cv_prog_make_${ac_make}_set=yes;;
11540   *)
11541     eval ac_cv_prog_make_${ac_make}_set=no;;
11542 esac
11543 rm -f conftest.make
11544 fi
11545 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11547 $as_echo "yes" >&6; }
11548   SET_MAKE=
11549 else
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552   SET_MAKE="MAKE=${MAKE-make}"
11553 fi
11554
11555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11556 $as_echo_n "checking for GNU make... " >&6; }
11557 if ${_cv_gnu_make_command+:} false; then :
11558   $as_echo_n "(cached) " >&6
11559 else
11560   _cv_gnu_make_command='' ;
11561                 for a in "$MAKE" make gmake gnumake ; do
11562                         if test -z "$a" ; then continue ; fi ;
11563                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11564                                 _cv_gnu_make_command=$a ;
11565                                 break;
11566                         fi
11567                 done ;
11568
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11571 $as_echo "$_cv_gnu_make_command" >&6; } ;
11572         if test  "x$_cv_gnu_make_command" != "x"  ; then
11573                 ifGNUmake='' ;
11574                 ifNotGNUmake='#' ;
11575         else
11576                 ifGNUmake='#' ;
11577                 ifNotGNUmake='' ;
11578                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11579 $as_echo "\"Not found\"" >&6; };
11580         fi
11581
11582
11583
11584 # Extract the first word of "ln", so it can be a program name with args.
11585 set dummy ln; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if ${ac_cv_path_LN+:} false; then :
11589   $as_echo_n "(cached) " >&6
11590 else
11591   case $LN in
11592   [\\/]* | ?:[\\/]*)
11593   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11594   ;;
11595   *)
11596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11598 do
11599   IFS=$as_save_IFS
11600   test -z "$as_dir" && as_dir=.
11601     for ac_exec_ext in '' $ac_executable_extensions; do
11602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605     break 2
11606   fi
11607 done
11608   done
11609 IFS=$as_save_IFS
11610
11611   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11612   ;;
11613 esac
11614 fi
11615 LN=$ac_cv_path_LN
11616 if test -n "$LN"; then
11617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11618 $as_echo "$LN" >&6; }
11619 else
11620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11622 fi
11623
11624
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11626 $as_echo_n "checking whether ln -s works... " >&6; }
11627 LN_S=$as_ln_s
11628 if test "$LN_S" = "ln -s"; then
11629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11630 $as_echo "yes" >&6; }
11631 else
11632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11633 $as_echo "no, using $LN_S" >&6; }
11634 fi
11635
11636 # Extract the first word of "mv", so it can be a program name with args.
11637 set dummy mv; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_path_MV+:} false; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   case $MV in
11644   [\\/]* | ?:[\\/]*)
11645   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11646   ;;
11647   *)
11648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11650 do
11651   IFS=$as_save_IFS
11652   test -z "$as_dir" && as_dir=.
11653     for ac_exec_ext in '' $ac_executable_extensions; do
11654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657     break 2
11658   fi
11659 done
11660   done
11661 IFS=$as_save_IFS
11662
11663   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11664   ;;
11665 esac
11666 fi
11667 MV=$ac_cv_path_MV
11668 if test -n "$MV"; then
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11670 $as_echo "$MV" >&6; }
11671 else
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11674 fi
11675
11676
11677 # Extract the first word of "cp", so it can be a program name with args.
11678 set dummy cp; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_path_CP+:} false; then :
11682   $as_echo_n "(cached) " >&6
11683 else
11684   case $CP in
11685   [\\/]* | ?:[\\/]*)
11686   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11687   ;;
11688   *)
11689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692   IFS=$as_save_IFS
11693   test -z "$as_dir" && as_dir=.
11694     for ac_exec_ext in '' $ac_executable_extensions; do
11695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11696     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698     break 2
11699   fi
11700 done
11701   done
11702 IFS=$as_save_IFS
11703
11704   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11705   ;;
11706 esac
11707 fi
11708 CP=$ac_cv_path_CP
11709 if test -n "$CP"; then
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11711 $as_echo "$CP" >&6; }
11712 else
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11715 fi
11716
11717
11718 # Extract the first word of "rm", so it can be a program name with args.
11719 set dummy rm; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_path_RM+:} false; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725   case $RM in
11726   [\\/]* | ?:[\\/]*)
11727   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11728   ;;
11729   *)
11730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11732 do
11733   IFS=$as_save_IFS
11734   test -z "$as_dir" && as_dir=.
11735     for ac_exec_ext in '' $ac_executable_extensions; do
11736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739     break 2
11740   fi
11741 done
11742   done
11743 IFS=$as_save_IFS
11744
11745   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11746   ;;
11747 esac
11748 fi
11749 RM=$ac_cv_path_RM
11750 if test -n "$RM"; then
11751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11752 $as_echo "$RM" >&6; }
11753 else
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756 fi
11757
11758
11759 # Extract the first word of "chmod", so it can be a program name with args.
11760 set dummy chmod; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if ${ac_cv_path_CHMOD+:} false; then :
11764   $as_echo_n "(cached) " >&6
11765 else
11766   case $CHMOD in
11767   [\\/]* | ?:[\\/]*)
11768   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11769   ;;
11770   *)
11771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11773 do
11774   IFS=$as_save_IFS
11775   test -z "$as_dir" && as_dir=.
11776     for ac_exec_ext in '' $ac_executable_extensions; do
11777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780     break 2
11781   fi
11782 done
11783   done
11784 IFS=$as_save_IFS
11785
11786   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11787   ;;
11788 esac
11789 fi
11790 CHMOD=$ac_cv_path_CHMOD
11791 if test -n "$CHMOD"; then
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11793 $as_echo "$CHMOD" >&6; }
11794 else
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797 fi
11798
11799
11800 for ac_prog in gawk mawk nawk awk
11801 do
11802   # Extract the first word of "$ac_prog", so it can be a program name with args.
11803 set dummy $ac_prog; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if ${ac_cv_prog_AWK+:} false; then :
11807   $as_echo_n "(cached) " >&6
11808 else
11809   if test -n "$AWK"; then
11810   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11811 else
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11814 do
11815   IFS=$as_save_IFS
11816   test -z "$as_dir" && as_dir=.
11817     for ac_exec_ext in '' $ac_executable_extensions; do
11818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11819     ac_cv_prog_AWK="$ac_prog"
11820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821     break 2
11822   fi
11823 done
11824   done
11825 IFS=$as_save_IFS
11826
11827 fi
11828 fi
11829 AWK=$ac_cv_prog_AWK
11830 if test -n "$AWK"; then
11831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11832 $as_echo "$AWK" >&6; }
11833 else
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 fi
11837
11838
11839   test -n "$AWK" && break
11840 done
11841
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11843 $as_echo_n "checking for egrep... " >&6; }
11844 if ${ac_cv_path_EGREP+:} false; then :
11845   $as_echo_n "(cached) " >&6
11846 else
11847   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11848    then ac_cv_path_EGREP="$GREP -E"
11849    else
11850      if test -z "$EGREP"; then
11851   ac_path_EGREP_found=false
11852   # Loop through the user's path and test for each of PROGNAME-LIST
11853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11855 do
11856   IFS=$as_save_IFS
11857   test -z "$as_dir" && as_dir=.
11858     for ac_prog in egrep; do
11859     for ac_exec_ext in '' $ac_executable_extensions; do
11860       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11861       as_fn_executable_p "$ac_path_EGREP" || continue
11862 # Check for GNU ac_path_EGREP and select it if it is found.
11863   # Check for GNU $ac_path_EGREP
11864 case `"$ac_path_EGREP" --version 2>&1` in
11865 *GNU*)
11866   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11867 *)
11868   ac_count=0
11869   $as_echo_n 0123456789 >"conftest.in"
11870   while :
11871   do
11872     cat "conftest.in" "conftest.in" >"conftest.tmp"
11873     mv "conftest.tmp" "conftest.in"
11874     cp "conftest.in" "conftest.nl"
11875     $as_echo 'EGREP' >> "conftest.nl"
11876     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11877     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11878     as_fn_arith $ac_count + 1 && ac_count=$as_val
11879     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11880       # Best one so far, save it but keep looking for a better one
11881       ac_cv_path_EGREP="$ac_path_EGREP"
11882       ac_path_EGREP_max=$ac_count
11883     fi
11884     # 10*(2^10) chars as input seems more than enough
11885     test $ac_count -gt 10 && break
11886   done
11887   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11888 esac
11889
11890       $ac_path_EGREP_found && break 3
11891     done
11892   done
11893   done
11894 IFS=$as_save_IFS
11895   if test -z "$ac_cv_path_EGREP"; then
11896     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11897   fi
11898 else
11899   ac_cv_path_EGREP=$EGREP
11900 fi
11901
11902    fi
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11905 $as_echo "$ac_cv_path_EGREP" >&6; }
11906  EGREP="$ac_cv_path_EGREP"
11907
11908
11909 # Extract the first word of "sed", so it can be a program name with args.
11910 set dummy sed; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if ${ac_cv_path_SED+:} false; then :
11914   $as_echo_n "(cached) " >&6
11915 else
11916   case $SED in
11917   [\\/]* | ?:[\\/]*)
11918   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11919   ;;
11920   *)
11921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924   IFS=$as_save_IFS
11925   test -z "$as_dir" && as_dir=.
11926     for ac_exec_ext in '' $ac_executable_extensions; do
11927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930     break 2
11931   fi
11932 done
11933   done
11934 IFS=$as_save_IFS
11935
11936   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11937   ;;
11938 esac
11939 fi
11940 SED=$ac_cv_path_SED
11941 if test -n "$SED"; then
11942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11943 $as_echo "$SED" >&6; }
11944 else
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 $as_echo "no" >&6; }
11947 fi
11948
11949
11950 # Extract the first word of "perl", so it can be a program name with args.
11951 set dummy perl; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_path_PERL+:} false; then :
11955   $as_echo_n "(cached) " >&6
11956 else
11957   case $PERL in
11958   [\\/]* | ?:[\\/]*)
11959   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11960   ;;
11961   *)
11962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965   IFS=$as_save_IFS
11966   test -z "$as_dir" && as_dir=.
11967     for ac_exec_ext in '' $ac_executable_extensions; do
11968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971     break 2
11972   fi
11973 done
11974   done
11975 IFS=$as_save_IFS
11976
11977   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11978   ;;
11979 esac
11980 fi
11981 PERL=$ac_cv_path_PERL
11982 if test -n "$PERL"; then
11983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11984 $as_echo "$PERL" >&6; }
11985 else
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11988 fi
11989
11990
11991 # Extract the first word of "ldconfig", so it can be a program name with args.
11992 set dummy ldconfig; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_path_LDCONFIG+:} false; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998   case $LDCONFIG in
11999   [\\/]* | ?:[\\/]*)
12000   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12001   ;;
12002   *)
12003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12005 do
12006   IFS=$as_save_IFS
12007   test -z "$as_dir" && as_dir=.
12008     for ac_exec_ext in '' $ac_executable_extensions; do
12009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012     break 2
12013   fi
12014 done
12015   done
12016 IFS=$as_save_IFS
12017
12018   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12019   ;;
12020 esac
12021 fi
12022 LDCONFIG=$ac_cv_path_LDCONFIG
12023 if test -n "$LDCONFIG"; then
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12025 $as_echo "$LDCONFIG" >&6; }
12026 else
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029 fi
12030
12031
12032 if test -n "$ac_tool_prefix"; then
12033   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12034 set dummy ${ac_tool_prefix}ar; ac_word=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if ${ac_cv_prog_AR+:} false; then :
12038   $as_echo_n "(cached) " >&6
12039 else
12040   if test -n "$AR"; then
12041   ac_cv_prog_AR="$AR" # Let the user override the test.
12042 else
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12045 do
12046   IFS=$as_save_IFS
12047   test -z "$as_dir" && as_dir=.
12048     for ac_exec_ext in '' $ac_executable_extensions; do
12049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12050     ac_cv_prog_AR="${ac_tool_prefix}ar"
12051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052     break 2
12053   fi
12054 done
12055   done
12056 IFS=$as_save_IFS
12057
12058 fi
12059 fi
12060 AR=$ac_cv_prog_AR
12061 if test -n "$AR"; then
12062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12063 $as_echo "$AR" >&6; }
12064 else
12065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12067 fi
12068
12069
12070 fi
12071 if test -z "$ac_cv_prog_AR"; then
12072   ac_ct_AR=$AR
12073   # Extract the first word of "ar", so it can be a program name with args.
12074 set dummy ar; ac_word=$2
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076 $as_echo_n "checking for $ac_word... " >&6; }
12077 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12078   $as_echo_n "(cached) " >&6
12079 else
12080   if test -n "$ac_ct_AR"; then
12081   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12082 else
12083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084 for as_dir in $PATH
12085 do
12086   IFS=$as_save_IFS
12087   test -z "$as_dir" && as_dir=.
12088     for ac_exec_ext in '' $ac_executable_extensions; do
12089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090     ac_cv_prog_ac_ct_AR="ar"
12091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092     break 2
12093   fi
12094 done
12095   done
12096 IFS=$as_save_IFS
12097
12098 fi
12099 fi
12100 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12101 if test -n "$ac_ct_AR"; then
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12103 $as_echo "$ac_ct_AR" >&6; }
12104 else
12105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12107 fi
12108
12109   if test "x$ac_ct_AR" = x; then
12110     AR="ar"
12111   else
12112     case $cross_compiling:$ac_tool_warned in
12113 yes:)
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12116 ac_tool_warned=yes ;;
12117 esac
12118     AR=$ac_ct_AR
12119   fi
12120 else
12121   AR="$ac_cv_prog_AR"
12122 fi
12123
12124 if test -n "$ac_tool_prefix"; then
12125   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if ${ac_cv_prog_RANLIB+:} false; then :
12130   $as_echo_n "(cached) " >&6
12131 else
12132   if test -n "$RANLIB"; then
12133   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12134 else
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12137 do
12138   IFS=$as_save_IFS
12139   test -z "$as_dir" && as_dir=.
12140     for ac_exec_ext in '' $ac_executable_extensions; do
12141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12142     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144     break 2
12145   fi
12146 done
12147   done
12148 IFS=$as_save_IFS
12149
12150 fi
12151 fi
12152 RANLIB=$ac_cv_prog_RANLIB
12153 if test -n "$RANLIB"; then
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12155 $as_echo "$RANLIB" >&6; }
12156 else
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12159 fi
12160
12161
12162 fi
12163 if test -z "$ac_cv_prog_RANLIB"; then
12164   ac_ct_RANLIB=$RANLIB
12165   # Extract the first word of "ranlib", so it can be a program name with args.
12166 set dummy ranlib; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   if test -n "$ac_ct_RANLIB"; then
12173   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12174 else
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12177 do
12178   IFS=$as_save_IFS
12179   test -z "$as_dir" && as_dir=.
12180     for ac_exec_ext in '' $ac_executable_extensions; do
12181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182     ac_cv_prog_ac_ct_RANLIB="ranlib"
12183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184     break 2
12185   fi
12186 done
12187   done
12188 IFS=$as_save_IFS
12189
12190 fi
12191 fi
12192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12193 if test -n "$ac_ct_RANLIB"; then
12194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12195 $as_echo "$ac_ct_RANLIB" >&6; }
12196 else
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199 fi
12200
12201   if test "x$ac_ct_RANLIB" = x; then
12202     RANLIB=":"
12203   else
12204     case $cross_compiling:$ac_tool_warned in
12205 yes:)
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12208 ac_tool_warned=yes ;;
12209 esac
12210     RANLIB=$ac_ct_RANLIB
12211   fi
12212 else
12213   RANLIB="$ac_cv_prog_RANLIB"
12214 fi
12215
12216 if test -n "$ac_tool_prefix"; then
12217   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12218 set dummy ${ac_tool_prefix}strip; ac_word=$2
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12220 $as_echo_n "checking for $ac_word... " >&6; }
12221 if ${ac_cv_prog_STRIP+:} false; then :
12222   $as_echo_n "(cached) " >&6
12223 else
12224   if test -n "$STRIP"; then
12225   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12226 else
12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228 for as_dir in $PATH
12229 do
12230   IFS=$as_save_IFS
12231   test -z "$as_dir" && as_dir=.
12232     for ac_exec_ext in '' $ac_executable_extensions; do
12233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12234     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12236     break 2
12237   fi
12238 done
12239   done
12240 IFS=$as_save_IFS
12241
12242 fi
12243 fi
12244 STRIP=$ac_cv_prog_STRIP
12245 if test -n "$STRIP"; then
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12247 $as_echo "$STRIP" >&6; }
12248 else
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12251 fi
12252
12253
12254 fi
12255 if test -z "$ac_cv_prog_STRIP"; then
12256   ac_ct_STRIP=$STRIP
12257   # Extract the first word of "strip", so it can be a program name with args.
12258 set dummy strip; ac_word=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12262   $as_echo_n "(cached) " >&6
12263 else
12264   if test -n "$ac_ct_STRIP"; then
12265   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12266 else
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12269 do
12270   IFS=$as_save_IFS
12271   test -z "$as_dir" && as_dir=.
12272     for ac_exec_ext in '' $ac_executable_extensions; do
12273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12274     ac_cv_prog_ac_ct_STRIP="strip"
12275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12276     break 2
12277   fi
12278 done
12279   done
12280 IFS=$as_save_IFS
12281
12282 fi
12283 fi
12284 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12285 if test -n "$ac_ct_STRIP"; then
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12287 $as_echo "$ac_ct_STRIP" >&6; }
12288 else
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12291 fi
12292
12293   if test "x$ac_ct_STRIP" = x; then
12294     STRIP=":"
12295   else
12296     case $cross_compiling:$ac_tool_warned in
12297 yes:)
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12300 ac_tool_warned=yes ;;
12301 esac
12302     STRIP=$ac_ct_STRIP
12303   fi
12304 else
12305   STRIP="$ac_cv_prog_STRIP"
12306 fi
12307
12308 # Extract the first word of "makeinfo", so it can be a program name with args.
12309 set dummy makeinfo; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_prog_MAKEINFO+:} false; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315   if test -n "$MAKEINFO"; then
12316   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12317 else
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12320 do
12321   IFS=$as_save_IFS
12322   test -z "$as_dir" && as_dir=.
12323     for ac_exec_ext in '' $ac_executable_extensions; do
12324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325     ac_cv_prog_MAKEINFO="makeinfo"
12326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327     break 2
12328   fi
12329 done
12330   done
12331 IFS=$as_save_IFS
12332
12333 fi
12334 fi
12335 MAKEINFO=$ac_cv_prog_MAKEINFO
12336 if test -n "$MAKEINFO"; then
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12338 $as_echo "$MAKEINFO" >&6; }
12339 else
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12342 fi
12343
12344
12345 if test "_$MAKEINFO" = "_"; then
12346     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12347 else
12348     case "$MAKEINFO" in
12349       */missing.*)
12350         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12351 *** Makeinfo is missing. Info documentation will not be built." >&5
12352 $as_echo "$as_me: WARNING:
12353 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12354         ;;
12355       *)
12356         ;;
12357     esac
12358 fi
12359
12360
12361 # See if we need a separate native compiler.
12362 if test $cross_compiling = no; then
12363   BUILD_CC="$CC"
12364
12365 else
12366   for ac_prog in gcc cc
12367 do
12368   # Extract the first word of "$ac_prog", so it can be a program name with args.
12369 set dummy $ac_prog; ac_word=$2
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371 $as_echo_n "checking for $ac_word... " >&6; }
12372 if ${ac_cv_prog_BUILD_CC+:} false; then :
12373   $as_echo_n "(cached) " >&6
12374 else
12375   if test -n "$BUILD_CC"; then
12376   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12377 else
12378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379 for as_dir in $PATH
12380 do
12381   IFS=$as_save_IFS
12382   test -z "$as_dir" && as_dir=.
12383     for ac_exec_ext in '' $ac_executable_extensions; do
12384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12385     ac_cv_prog_BUILD_CC="$ac_prog"
12386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12387     break 2
12388   fi
12389 done
12390   done
12391 IFS=$as_save_IFS
12392
12393 fi
12394 fi
12395 BUILD_CC=$ac_cv_prog_BUILD_CC
12396 if test -n "$BUILD_CC"; then
12397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12398 $as_echo "$BUILD_CC" >&6; }
12399 else
12400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401 $as_echo "no" >&6; }
12402 fi
12403
12404
12405   test -n "$BUILD_CC" && break
12406 done
12407
12408 fi
12409 for ac_header in        dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         attr/xattr.h    linux/falloc.h  linux/fd.h      linux/major.h   linux/loop.h    net/if_dl.h     netinet/in.h    sys/disklabel.h         sys/disk.h      sys/file.h      sys/ioctl.h     sys/mkdev.h     sys/mman.h      sys/mount.h     sys/prctl.h     sys/resource.h  sys/select.h    sys/socket.h    sys/sockio.h    sys/stat.h      sys/syscall.h   sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h
12410 do :
12411   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12412 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12414   cat >>confdefs.h <<_ACEOF
12415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12416 _ACEOF
12417
12418 fi
12419
12420 done
12421
12422 for ac_header in net/if.h
12423 do :
12424   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12425 #if HAVE_SYS_TYPES_H
12426 #include <sys/types.h>
12427 #endif
12428 #if HAVE_SYS_SOCKET
12429 #include <sys/socket.h>
12430 #endif
12431
12432 "
12433 if test "x$ac_cv_header_net_if_h" = xyes; then :
12434   cat >>confdefs.h <<_ACEOF
12435 #define HAVE_NET_IF_H 1
12436 _ACEOF
12437
12438 fi
12439
12440 done
12441
12442 for ac_func in vprintf
12443 do :
12444   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12445 if test "x$ac_cv_func_vprintf" = xyes; then :
12446   cat >>confdefs.h <<_ACEOF
12447 #define HAVE_VPRINTF 1
12448 _ACEOF
12449
12450 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12451 if test "x$ac_cv_func__doprnt" = xyes; then :
12452
12453 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12454
12455 fi
12456
12457 fi
12458 done
12459
12460
12461 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12462 "
12463 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12464
12465 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12466
12467 fi
12468
12469 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12470 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12471
12472 cat >>confdefs.h <<_ACEOF
12473 #define HAVE_STRUCT_STAT_ST_ATIM 1
12474 _ACEOF
12475
12476
12477 fi
12478
12479 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12480 "
12481 if test "x$ac_cv_type_ssize_t" = xyes; then :
12482
12483 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12484
12485 fi
12486
12487 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12488 "
12489 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12490
12491 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12492
12493 fi
12494
12495 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12496                  #define _LARGEFILE64_SOURCE
12497                  #include <unistd.h>
12498 "
12499 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12500
12501 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12502
12503 fi
12504
12505 # The cast to long int works around a bug in the HP C Compiler
12506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12508 # This bug is HP SR number 8606223364.
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12510 $as_echo_n "checking size of short... " >&6; }
12511 if ${ac_cv_sizeof_short+:} false; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12515
12516 else
12517   if test "$ac_cv_type_short" = yes; then
12518      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12520 as_fn_error 77 "cannot compute sizeof (short)
12521 See \`config.log' for more details" "$LINENO" 5; }
12522    else
12523      ac_cv_sizeof_short=0
12524    fi
12525 fi
12526
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12529 $as_echo "$ac_cv_sizeof_short" >&6; }
12530
12531
12532
12533 cat >>confdefs.h <<_ACEOF
12534 #define SIZEOF_SHORT $ac_cv_sizeof_short
12535 _ACEOF
12536
12537
12538 # The cast to long int works around a bug in the HP C Compiler
12539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12541 # This bug is HP SR number 8606223364.
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12543 $as_echo_n "checking size of int... " >&6; }
12544 if ${ac_cv_sizeof_int+:} false; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12548
12549 else
12550   if test "$ac_cv_type_int" = yes; then
12551      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12553 as_fn_error 77 "cannot compute sizeof (int)
12554 See \`config.log' for more details" "$LINENO" 5; }
12555    else
12556      ac_cv_sizeof_int=0
12557    fi
12558 fi
12559
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12562 $as_echo "$ac_cv_sizeof_int" >&6; }
12563
12564
12565
12566 cat >>confdefs.h <<_ACEOF
12567 #define SIZEOF_INT $ac_cv_sizeof_int
12568 _ACEOF
12569
12570
12571 # The cast to long int works around a bug in the HP C Compiler
12572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12574 # This bug is HP SR number 8606223364.
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12576 $as_echo_n "checking size of long... " >&6; }
12577 if ${ac_cv_sizeof_long+:} false; then :
12578   $as_echo_n "(cached) " >&6
12579 else
12580   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12581
12582 else
12583   if test "$ac_cv_type_long" = yes; then
12584      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12586 as_fn_error 77 "cannot compute sizeof (long)
12587 See \`config.log' for more details" "$LINENO" 5; }
12588    else
12589      ac_cv_sizeof_long=0
12590    fi
12591 fi
12592
12593 fi
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12595 $as_echo "$ac_cv_sizeof_long" >&6; }
12596
12597
12598
12599 cat >>confdefs.h <<_ACEOF
12600 #define SIZEOF_LONG $ac_cv_sizeof_long
12601 _ACEOF
12602
12603
12604 # The cast to long int works around a bug in the HP C Compiler
12605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12607 # This bug is HP SR number 8606223364.
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12609 $as_echo_n "checking size of long long... " >&6; }
12610 if ${ac_cv_sizeof_long_long+:} false; then :
12611   $as_echo_n "(cached) " >&6
12612 else
12613   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12614
12615 else
12616   if test "$ac_cv_type_long_long" = yes; then
12617      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12619 as_fn_error 77 "cannot compute sizeof (long long)
12620 See \`config.log' for more details" "$LINENO" 5; }
12621    else
12622      ac_cv_sizeof_long_long=0
12623    fi
12624 fi
12625
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12628 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12629
12630
12631
12632 cat >>confdefs.h <<_ACEOF
12633 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12634 _ACEOF
12635
12636
12637 # The cast to long int works around a bug in the HP C Compiler
12638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12640 # This bug is HP SR number 8606223364.
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12642 $as_echo_n "checking size of off_t... " >&6; }
12643 if ${ac_cv_sizeof_off_t+:} false; then :
12644   $as_echo_n "(cached) " >&6
12645 else
12646   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12647
12648 else
12649   if test "$ac_cv_type_off_t" = yes; then
12650      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12652 as_fn_error 77 "cannot compute sizeof (off_t)
12653 See \`config.log' for more details" "$LINENO" 5; }
12654    else
12655      ac_cv_sizeof_off_t=0
12656    fi
12657 fi
12658
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12661 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12662
12663
12664
12665 cat >>confdefs.h <<_ACEOF
12666 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12667 _ACEOF
12668
12669
12670 SIZEOF_SHORT=$ac_cv_sizeof_short
12671 SIZEOF_INT=$ac_cv_sizeof_int
12672 SIZEOF_LONG=$ac_cv_sizeof_long
12673 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12674 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12675
12676
12677
12678
12679
12680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12681 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12682 if ${ac_cv_c_bigendian+:} false; then :
12683   $as_echo_n "(cached) " >&6
12684 else
12685   ac_cv_c_bigendian=unknown
12686     # See if we're dealing with a universal compiler.
12687     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h.  */
12689 #ifndef __APPLE_CC__
12690                not a universal capable compiler
12691              #endif
12692              typedef int dummy;
12693
12694 _ACEOF
12695 if ac_fn_c_try_compile "$LINENO"; then :
12696
12697         # Check for potential -arch flags.  It is not universal unless
12698         # there are at least two -arch flags with different values.
12699         ac_arch=
12700         ac_prev=
12701         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12702          if test -n "$ac_prev"; then
12703            case $ac_word in
12704              i?86 | x86_64 | ppc | ppc64)
12705                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12706                  ac_arch=$ac_word
12707                else
12708                  ac_cv_c_bigendian=universal
12709                  break
12710                fi
12711                ;;
12712            esac
12713            ac_prev=
12714          elif test "x$ac_word" = "x-arch"; then
12715            ac_prev=arch
12716          fi
12717        done
12718 fi
12719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720     if test $ac_cv_c_bigendian = unknown; then
12721       # See if sys/param.h defines the BYTE_ORDER macro.
12722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h.  */
12724 #include <sys/types.h>
12725              #include <sys/param.h>
12726
12727 int
12728 main ()
12729 {
12730 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12731                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12732                      && LITTLE_ENDIAN)
12733               bogus endian macros
12734              #endif
12735
12736   ;
12737   return 0;
12738 }
12739 _ACEOF
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741   # It does; now see whether it defined to BIG_ENDIAN or not.
12742          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h.  */
12744 #include <sys/types.h>
12745                 #include <sys/param.h>
12746
12747 int
12748 main ()
12749 {
12750 #if BYTE_ORDER != BIG_ENDIAN
12751                  not big endian
12752                 #endif
12753
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 if ac_fn_c_try_compile "$LINENO"; then :
12759   ac_cv_c_bigendian=yes
12760 else
12761   ac_cv_c_bigendian=no
12762 fi
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766     fi
12767     if test $ac_cv_c_bigendian = unknown; then
12768       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12769       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h.  */
12771 #include <limits.h>
12772
12773 int
12774 main ()
12775 {
12776 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12777               bogus endian macros
12778              #endif
12779
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 if ac_fn_c_try_compile "$LINENO"; then :
12785   # It does; now see whether it defined to _BIG_ENDIAN or not.
12786          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h.  */
12788 #include <limits.h>
12789
12790 int
12791 main ()
12792 {
12793 #ifndef _BIG_ENDIAN
12794                  not big endian
12795                 #endif
12796
12797   ;
12798   return 0;
12799 }
12800 _ACEOF
12801 if ac_fn_c_try_compile "$LINENO"; then :
12802   ac_cv_c_bigendian=yes
12803 else
12804   ac_cv_c_bigendian=no
12805 fi
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 fi
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12809     fi
12810     if test $ac_cv_c_bigendian = unknown; then
12811       # Compile a test program.
12812       if test "$cross_compiling" = yes; then :
12813   # Try to guess by grepping values from an object file.
12814          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h.  */
12816 short int ascii_mm[] =
12817                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12818                 short int ascii_ii[] =
12819                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12820                 int use_ascii (int i) {
12821                   return ascii_mm[i] + ascii_ii[i];
12822                 }
12823                 short int ebcdic_ii[] =
12824                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12825                 short int ebcdic_mm[] =
12826                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12827                 int use_ebcdic (int i) {
12828                   return ebcdic_mm[i] + ebcdic_ii[i];
12829                 }
12830                 extern int foo;
12831
12832 int
12833 main ()
12834 {
12835 return use_ascii (foo) == use_ebcdic (foo);
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_compile "$LINENO"; then :
12841   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12842               ac_cv_c_bigendian=yes
12843             fi
12844             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12845               if test "$ac_cv_c_bigendian" = unknown; then
12846                 ac_cv_c_bigendian=no
12847               else
12848                 # finding both strings is unlikely to happen, but who knows?
12849                 ac_cv_c_bigendian=unknown
12850               fi
12851             fi
12852 fi
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854 else
12855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h.  */
12857 $ac_includes_default
12858 int
12859 main ()
12860 {
12861
12862              /* Are we little or big endian?  From Harbison&Steele.  */
12863              union
12864              {
12865                long int l;
12866                char c[sizeof (long int)];
12867              } u;
12868              u.l = 1;
12869              return u.c[sizeof (long int) - 1] == 1;
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_c_try_run "$LINENO"; then :
12876   ac_cv_c_bigendian=no
12877 else
12878   ac_cv_c_bigendian=yes
12879 fi
12880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12881   conftest.$ac_objext conftest.beam conftest.$ac_ext
12882 fi
12883
12884     fi
12885 fi
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12887 $as_echo "$ac_cv_c_bigendian" >&6; }
12888  case $ac_cv_c_bigendian in #(
12889    yes)
12890      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12891 ;; #(
12892    no)
12893       ;; #(
12894    universal)
12895
12896 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12897
12898      ;; #(
12899    *)
12900      as_fn_error $? "unknown endianness
12901  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12902  esac
12903
12904 if test $cross_compiling = no; then
12905   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12906 else
12907   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12908 fi
12909 ASM_TYPES_HEADER=./asm_types.h
12910
12911 echo "/* These defines are needed for the public ext2fs.h header file */" \
12912      > public_config.h
12913 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12914   uniq tmp_config.$$ >> public_config.h
12915 else
12916   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12917 fi
12918 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12919   uniq tmp_config.$$ >> public_config.h
12920 else
12921   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12922 fi
12923 rm -f tmp_config.$$
12924 PUBLIC_CONFIG_HEADER=./public_config.h
12925
12926 for ac_header in inttypes.h
12927 do :
12928   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12929 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12930   cat >>confdefs.h <<_ACEOF
12931 #define HAVE_INTTYPES_H 1
12932 _ACEOF
12933
12934 fi
12935
12936 done
12937
12938 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12939 if test "x$ac_cv_type_intptr_t" = xyes; then :
12940
12941 cat >>confdefs.h <<_ACEOF
12942 #define HAVE_INTPTR_T 1
12943 _ACEOF
12944
12945
12946 fi
12947
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12949 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12950 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h.  */
12955 #include <sys/stat.h>
12956 int
12957 main ()
12958 {
12959 struct stat stat; stat.st_flags = 0;
12960   ;
12961   return 0;
12962 }
12963 _ACEOF
12964 if ac_fn_c_try_compile "$LINENO"; then :
12965   e2fsprogs_cv_struct_st_flags=yes
12966 else
12967   e2fsprogs_cv_struct_st_flags=no
12968 fi
12969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12970 fi
12971
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12973 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12974 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12976 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12977   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12978   $as_echo_n "(cached) " >&6
12979 else
12980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h.  */
12982 #include <sys/stat.h>
12983 int
12984 main ()
12985 {
12986 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12987   ;
12988   return 0;
12989 }
12990 _ACEOF
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992   e2fsprogs_cv_struct_st_flags_immut=yes
12993 else
12994   e2fsprogs_cv_struct_st_flags_immut=no
12995 fi
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 fi
12998
12999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13000 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13001   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13002
13003 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13004
13005   fi
13006 fi
13007 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13008          #include <sys/socket.h>
13009 "
13010 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13011
13012 cat >>confdefs.h <<_ACEOF
13013 #define HAVE_SA_LEN 1
13014 _ACEOF
13015
13016 fi
13017
13018 if test -n "$BLKID_CMT"; then
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13020 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13021 if ${ac_cv_search_blkid_probe_all+:} false; then :
13022   $as_echo_n "(cached) " >&6
13023 else
13024   ac_func_search_save_LIBS=$LIBS
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h.  */
13027
13028 /* Override any GCC internal prototype to avoid an error.
13029    Use char because int might match the return type of a GCC
13030    builtin and then its argument prototype would still apply.  */
13031 #ifdef __cplusplus
13032 extern "C"
13033 #endif
13034 char blkid_probe_all ();
13035 int
13036 main ()
13037 {
13038 return blkid_probe_all ();
13039   ;
13040   return 0;
13041 }
13042 _ACEOF
13043 for ac_lib in '' blkid; do
13044   if test -z "$ac_lib"; then
13045     ac_res="none required"
13046   else
13047     ac_res=-l$ac_lib
13048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13049   fi
13050   if ac_fn_c_try_link "$LINENO"; then :
13051   ac_cv_search_blkid_probe_all=$ac_res
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext \
13054     conftest$ac_exeext
13055   if ${ac_cv_search_blkid_probe_all+:} false; then :
13056   break
13057 fi
13058 done
13059 if ${ac_cv_search_blkid_probe_all+:} false; then :
13060
13061 else
13062   ac_cv_search_blkid_probe_all=no
13063 fi
13064 rm conftest.$ac_ext
13065 LIBS=$ac_func_search_save_LIBS
13066 fi
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13068 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13069 ac_res=$ac_cv_search_blkid_probe_all
13070 if test "$ac_res" != no; then :
13071   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13072
13073 fi
13074
13075 fi
13076 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        blkid_probe_enable_partitions   chflags         fadvise64       fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     futimes         getcwd  getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llistxattr      llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   pread   pwrite  pread64         pwrite64        secure_getenv   setmntent       setresgid       setresuid       snprintf        srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   valloc
13077 do :
13078   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13081   cat >>confdefs.h <<_ACEOF
13082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13083 _ACEOF
13084
13085 fi
13086 done
13087
13088 SOCKET_LIB=''
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13090 $as_echo_n "checking for socket in -lsocket... " >&6; }
13091 if ${ac_cv_lib_socket_socket+:} false; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094   ac_check_lib_save_LIBS=$LIBS
13095 LIBS="-lsocket  $LIBS"
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h.  */
13098
13099 /* Override any GCC internal prototype to avoid an error.
13100    Use char because int might match the return type of a GCC
13101    builtin and then its argument prototype would still apply.  */
13102 #ifdef __cplusplus
13103 extern "C"
13104 #endif
13105 char socket ();
13106 int
13107 main ()
13108 {
13109 return socket ();
13110   ;
13111   return 0;
13112 }
13113 _ACEOF
13114 if ac_fn_c_try_link "$LINENO"; then :
13115   ac_cv_lib_socket_socket=yes
13116 else
13117   ac_cv_lib_socket_socket=no
13118 fi
13119 rm -f core conftest.err conftest.$ac_objext \
13120     conftest$ac_exeext conftest.$ac_ext
13121 LIBS=$ac_check_lib_save_LIBS
13122 fi
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13124 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13125 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13126   SOCKET_LIB=-lsocket
13127 fi
13128
13129
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13131 $as_echo_n "checking for optreset... " >&6; }
13132 if ${ac_cv_have_optreset+:} false; then :
13133   $as_echo_n "(cached) " >&6
13134 else
13135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h.  */
13137 #include <unistd.h>
13138
13139 _ACEOF
13140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13141   $EGREP "optreset" >/dev/null 2>&1; then :
13142   ac_cv_have_optreset=yes
13143 else
13144   ac_cv_have_optreset=no
13145 fi
13146 rm -f conftest*
13147
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13150 $as_echo "$ac_cv_have_optreset" >&6; }
13151 if test $ac_cv_have_optreset = yes; then
13152
13153 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13154
13155 fi
13156
13157 SEM_INIT_LIB=''
13158 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13159 if test "x$ac_cv_func_sem_init" = xyes; then :
13160
13161 else
13162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13163 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13164 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13165   $as_echo_n "(cached) " >&6
13166 else
13167   ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lpthread  $LIBS"
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h.  */
13171
13172 /* Override any GCC internal prototype to avoid an error.
13173    Use char because int might match the return type of a GCC
13174    builtin and then its argument prototype would still apply.  */
13175 #ifdef __cplusplus
13176 extern "C"
13177 #endif
13178 char sem_init ();
13179 int
13180 main ()
13181 {
13182 return sem_init ();
13183   ;
13184   return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_link "$LINENO"; then :
13188   ac_cv_lib_pthread_sem_init=yes
13189 else
13190   ac_cv_lib_pthread_sem_init=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext \
13193     conftest$ac_exeext conftest.$ac_ext
13194 LIBS=$ac_check_lib_save_LIBS
13195 fi
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13197 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13198 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13199   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13200
13201         SEM_INIT_LIB=-lpthread
13202 else
13203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13204 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13205 if ${ac_cv_lib_rt_sem_init+:} false; then :
13206   $as_echo_n "(cached) " >&6
13207 else
13208   ac_check_lib_save_LIBS=$LIBS
13209 LIBS="-lrt  $LIBS"
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h.  */
13212
13213 /* Override any GCC internal prototype to avoid an error.
13214    Use char because int might match the return type of a GCC
13215    builtin and then its argument prototype would still apply.  */
13216 #ifdef __cplusplus
13217 extern "C"
13218 #endif
13219 char sem_init ();
13220 int
13221 main ()
13222 {
13223 return sem_init ();
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 if ac_fn_c_try_link "$LINENO"; then :
13229   ac_cv_lib_rt_sem_init=yes
13230 else
13231   ac_cv_lib_rt_sem_init=no
13232 fi
13233 rm -f core conftest.err conftest.$ac_objext \
13234     conftest$ac_exeext conftest.$ac_ext
13235 LIBS=$ac_check_lib_save_LIBS
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13238 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13239 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13240   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13241
13242         SEM_INIT_LIB=-lrt
13243 else
13244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13245 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13246 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13247   $as_echo_n "(cached) " >&6
13248 else
13249   ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lposix4  $LIBS"
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h.  */
13253
13254 /* Override any GCC internal prototype to avoid an error.
13255    Use char because int might match the return type of a GCC
13256    builtin and then its argument prototype would still apply.  */
13257 #ifdef __cplusplus
13258 extern "C"
13259 #endif
13260 char sem_init ();
13261 int
13262 main ()
13263 {
13264 return sem_init ();
13265   ;
13266   return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"; then :
13270   ac_cv_lib_posix4_sem_init=yes
13271 else
13272   ac_cv_lib_posix4_sem_init=no
13273 fi
13274 rm -f core conftest.err conftest.$ac_objext \
13275     conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13279 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13280 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13281   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13282
13283         SEM_INIT_LIB=-lposix4
13284 fi
13285
13286 fi
13287
13288 fi
13289
13290 fi
13291
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13293 $as_echo_n "checking for unified diff option... " >&6; }
13294 if diff -u $0 $0 > /dev/null 2>&1 ; then
13295    UNI_DIFF_OPTS=-u
13296 else
13297    UNI_DIFF_OPTS=-c
13298 fi
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13300 $as_echo "$UNI_DIFF_OPTS" >&6; }
13301
13302 case "$host_os" in
13303 linux*)
13304
13305 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13306
13307         ;;
13308 esac
13309 LINUX_CMT="#"
13310 CYGWIN_CMT="#"
13311 UNIX_CMT=
13312 case "$host_os" in
13313 linux*)
13314         LINUX_CMT=
13315         ;;
13316 cygwin)
13317         CYGWIN_CMT=
13318         UNIX_CMT="#"
13319         ;;
13320 esac
13321
13322
13323
13324 case "$host_os" in
13325 linux* | gnu* | k*bsd*-gnu)
13326         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13327                 root_prefix="";
13328                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13329 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13330         fi
13331         ;;
13332 esac
13333 case "$host_os" in
13334 linux* | gnu* | k*bsd*-gnu)
13335         if test "$prefix" = NONE ; then
13336                 prefix="/usr";
13337                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13338 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13339                 if test "$mandir" = '${prefix}/man' ; then
13340                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13341 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13342                         mandir=/usr/share/man
13343                 fi
13344         fi
13345 ;;
13346 esac
13347 if test "$root_prefix" = NONE ; then
13348         if test "$prefix" = NONE ; then
13349                 root_prefix="$ac_default_prefix"
13350         else
13351                 root_prefix="$prefix"
13352         fi
13353         root_bindir=$bindir
13354         root_sbindir=$sbindir
13355         root_libdir=$libdir
13356         root_sysconfdir=$sysconfdir
13357 else
13358         root_bindir='${root_prefix}/bin'
13359         root_sbindir='${root_prefix}/sbin'
13360         root_libdir='${root_prefix}/lib'
13361         root_sysconfdir='${root_prefix}/etc'
13362 fi
13363 if test "$bindir" != '${exec_prefix}/bin'; then
13364     root_bindir=$bindir
13365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13366 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13367 fi
13368 if test "$sbindir" != '${exec_prefix}/sbin'; then
13369     root_sbindir=$sbindir
13370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13371 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13372 fi
13373 if test "$libdir" != '${exec_prefix}/lib'; then
13374     root_libdir=$libdir
13375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13376 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13377 fi
13378 if test "$sysconfdir" != '${prefix}/etc'; then
13379     root_sysconfdir=$sysconfdir
13380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13381 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13382 fi
13383
13384
13385
13386
13387
13388
13389 # Check whether --with-multiarch was given.
13390 if test "${with_multiarch+set}" = set; then :
13391   withval=$with_multiarch; if test "$withval" = "lib64"; then
13392     libdir=/usr/lib64
13393     root_libdir=/lib64
13394 else
13395     libdir=$libdir/$withval
13396     root_libdir=$root_libdir/$withval
13397 fi
13398
13399 fi
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13401 $as_echo_n "checking whether we can link with -static... " >&6; }
13402 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13403   $as_echo_n "(cached) " >&6
13404 else
13405   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h.  */
13408 #include <stdio.h>
13409 int
13410 main ()
13411 {
13412 fflush(stdout);
13413   ;
13414   return 0;
13415 }
13416 _ACEOF
13417 if ac_fn_c_try_link "$LINENO"; then :
13418   ac_cv_e2fsprogs_use_static=yes
13419 else
13420   ac_cv_e2fsprogs_use_static=no
13421 fi
13422 rm -f core conftest.err conftest.$ac_objext \
13423     conftest$ac_exeext conftest.$ac_ext
13424 LDFLAGS=$SAVE_LDFLAGS
13425 fi
13426
13427 case "$host_os" in
13428 solaris2.*)
13429         ac_cv_e2fsprogs_use_static=no
13430 ;;
13431 esac
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13433 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13434 LDFLAG_STATIC=
13435 if test $ac_cv_e2fsprogs_use_static = yes; then
13436         LDFLAG_STATIC=-static
13437 fi
13438
13439 case "$host_os" in
13440 darwin*)
13441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13442 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13443
13444 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13445
13446         ;;
13447 esac
13448 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13449 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13450
13451
13452 if test "$cross_compiling" = yes ; then
13453   DO_TEST_SUITE=
13454 else
13455   DO_TEST_SUITE=check
13456 fi
13457
13458 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13459 if test -n "$CPPFLAGS" ; then
13460         INCLUDES="$INCLUDES $CPPFLAGS"
13461 fi
13462 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13463         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13464 fi
13465 if test -n "$WITH_DIET_LIBC" ; then
13466         INCLUDES="$INCLUDES -D_REENTRANT"
13467 fi
13468
13469
13470         MKINSTALLDIRS=
13471   if test -n "$ac_aux_dir"; then
13472     case "$ac_aux_dir" in
13473       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13474       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13475     esac
13476   fi
13477   if test -z "$MKINSTALLDIRS"; then
13478     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13479   fi
13480
13481
13482 if test $cross_compiling = no; then
13483    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13484    BUILD_LDFLAGS="$LDFLAGS"
13485 fi
13486
13487
13488 test -d lib || mkdir lib
13489 test -d include || mkdir include
13490 test -d include/linux || mkdir include/linux
13491 test -d include/asm || mkdir include/asm
13492 for i in MCONFIG Makefile e2fsprogs.spec \
13493         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13494         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13495         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13496         lib/uuid/Makefile lib/uuid/uuid_types.h \
13497         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
13498         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13499         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
13500         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13501         debugfs/Makefile tests/Makefile tests/progs/Makefile \
13502         resize/Makefile doc/Makefile intl/Makefile \
13503         intl/libgnuintl.h po/Makefile.in ; do
13504         if test -d `dirname ${srcdir}/$i` ; then
13505                 outlist="$outlist $i"
13506         fi
13507 done
13508 ac_config_files="$ac_config_files $outlist"
13509
13510 cat >confcache <<\_ACEOF
13511 # This file is a shell script that caches the results of configure
13512 # tests run on this system so they can be shared between configure
13513 # scripts and configure runs, see configure's option --config-cache.
13514 # It is not useful on other systems.  If it contains results you don't
13515 # want to keep, you may remove or edit it.
13516 #
13517 # config.status only pays attention to the cache file if you give it
13518 # the --recheck option to rerun configure.
13519 #
13520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13522 # following values.
13523
13524 _ACEOF
13525
13526 # The following way of writing the cache mishandles newlines in values,
13527 # but we know of no workaround that is simple, portable, and efficient.
13528 # So, we kill variables containing newlines.
13529 # Ultrix sh set writes to stderr and can't be redirected directly,
13530 # and sets the high bit in the cache file unless we assign to the vars.
13531 (
13532   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13533     eval ac_val=\$$ac_var
13534     case $ac_val in #(
13535     *${as_nl}*)
13536       case $ac_var in #(
13537       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13539       esac
13540       case $ac_var in #(
13541       _ | IFS | as_nl) ;; #(
13542       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13543       *) { eval $ac_var=; unset $ac_var;} ;;
13544       esac ;;
13545     esac
13546   done
13547
13548   (set) 2>&1 |
13549     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13550     *${as_nl}ac_space=\ *)
13551       # `set' does not quote correctly, so add quotes: double-quote
13552       # substitution turns \\\\ into \\, and sed turns \\ into \.
13553       sed -n \
13554         "s/'/'\\\\''/g;
13555           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13556       ;; #(
13557     *)
13558       # `set' quotes correctly as required by POSIX, so do not add quotes.
13559       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13560       ;;
13561     esac |
13562     sort
13563 ) |
13564   sed '
13565      /^ac_cv_env_/b end
13566      t clear
13567      :clear
13568      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13569      t end
13570      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13571      :end' >>confcache
13572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13573   if test -w "$cache_file"; then
13574     if test "x$cache_file" != "x/dev/null"; then
13575       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13576 $as_echo "$as_me: updating cache $cache_file" >&6;}
13577       if test ! -f "$cache_file" || test -h "$cache_file"; then
13578         cat confcache >"$cache_file"
13579       else
13580         case $cache_file in #(
13581         */* | ?:*)
13582           mv -f confcache "$cache_file"$$ &&
13583           mv -f "$cache_file"$$ "$cache_file" ;; #(
13584         *)
13585           mv -f confcache "$cache_file" ;;
13586         esac
13587       fi
13588     fi
13589   else
13590     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13591 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13592   fi
13593 fi
13594 rm -f confcache
13595
13596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13597 # Let make expand exec_prefix.
13598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13599
13600 DEFS=-DHAVE_CONFIG_H
13601
13602 ac_libobjs=
13603 ac_ltlibobjs=
13604 U=
13605 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13606   # 1. Remove the extension, and $U if already installed.
13607   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13608   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13609   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13610   #    will be set to the directory where LIBOBJS objects are built.
13611   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13612   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13613 done
13614 LIBOBJS=$ac_libobjs
13615
13616 LTLIBOBJS=$ac_ltlibobjs
13617
13618
13619
13620
13621 : "${CONFIG_STATUS=./config.status}"
13622 ac_write_fail=0
13623 ac_clean_files_save=$ac_clean_files
13624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13626 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13627 as_write_fail=0
13628 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13629 #! $SHELL
13630 # Generated by $as_me.
13631 # Run this file to recreate the current configuration.
13632 # Compiler output produced by configure, useful for debugging
13633 # configure, is in config.log if it exists.
13634
13635 debug=false
13636 ac_cs_recheck=false
13637 ac_cs_silent=false
13638
13639 SHELL=\${CONFIG_SHELL-$SHELL}
13640 export SHELL
13641 _ASEOF
13642 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13643 ## -------------------- ##
13644 ## M4sh Initialization. ##
13645 ## -------------------- ##
13646
13647 # Be more Bourne compatible
13648 DUALCASE=1; export DUALCASE # for MKS sh
13649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13650   emulate sh
13651   NULLCMD=:
13652   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13653   # is contrary to our usage.  Disable this feature.
13654   alias -g '${1+"$@"}'='"$@"'
13655   setopt NO_GLOB_SUBST
13656 else
13657   case `(set -o) 2>/dev/null` in #(
13658   *posix*) :
13659     set -o posix ;; #(
13660   *) :
13661      ;;
13662 esac
13663 fi
13664
13665
13666 as_nl='
13667 '
13668 export as_nl
13669 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13670 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13673 # Prefer a ksh shell builtin over an external printf program on Solaris,
13674 # but without wasting forks for bash or zsh.
13675 if test -z "$BASH_VERSION$ZSH_VERSION" \
13676     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13677   as_echo='print -r --'
13678   as_echo_n='print -rn --'
13679 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13680   as_echo='printf %s\n'
13681   as_echo_n='printf %s'
13682 else
13683   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13684     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13685     as_echo_n='/usr/ucb/echo -n'
13686   else
13687     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13688     as_echo_n_body='eval
13689       arg=$1;
13690       case $arg in #(
13691       *"$as_nl"*)
13692         expr "X$arg" : "X\\(.*\\)$as_nl";
13693         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13694       esac;
13695       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13696     '
13697     export as_echo_n_body
13698     as_echo_n='sh -c $as_echo_n_body as_echo'
13699   fi
13700   export as_echo_body
13701   as_echo='sh -c $as_echo_body as_echo'
13702 fi
13703
13704 # The user is always right.
13705 if test "${PATH_SEPARATOR+set}" != set; then
13706   PATH_SEPARATOR=:
13707   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13708     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13709       PATH_SEPARATOR=';'
13710   }
13711 fi
13712
13713
13714 # IFS
13715 # We need space, tab and new line, in precisely that order.  Quoting is
13716 # there to prevent editors from complaining about space-tab.
13717 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13718 # splitting by setting IFS to empty value.)
13719 IFS=" ""        $as_nl"
13720
13721 # Find who we are.  Look in the path if we contain no directory separator.
13722 as_myself=
13723 case $0 in #((
13724   *[\\/]* ) as_myself=$0 ;;
13725   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728   IFS=$as_save_IFS
13729   test -z "$as_dir" && as_dir=.
13730     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13731   done
13732 IFS=$as_save_IFS
13733
13734      ;;
13735 esac
13736 # We did not find ourselves, most probably we were run as `sh COMMAND'
13737 # in which case we are not to be found in the path.
13738 if test "x$as_myself" = x; then
13739   as_myself=$0
13740 fi
13741 if test ! -f "$as_myself"; then
13742   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13743   exit 1
13744 fi
13745
13746 # Unset variables that we do not need and which cause bugs (e.g. in
13747 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13748 # suppresses any "Segmentation fault" message there.  '((' could
13749 # trigger a bug in pdksh 5.2.14.
13750 for as_var in BASH_ENV ENV MAIL MAILPATH
13751 do eval test x\${$as_var+set} = xset \
13752   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13753 done
13754 PS1='$ '
13755 PS2='> '
13756 PS4='+ '
13757
13758 # NLS nuisances.
13759 LC_ALL=C
13760 export LC_ALL
13761 LANGUAGE=C
13762 export LANGUAGE
13763
13764 # CDPATH.
13765 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13766
13767
13768 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13769 # ----------------------------------------
13770 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13771 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13772 # script with STATUS, using 1 if that was 0.
13773 as_fn_error ()
13774 {
13775   as_status=$1; test $as_status -eq 0 && as_status=1
13776   if test "$4"; then
13777     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13778     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13779   fi
13780   $as_echo "$as_me: error: $2" >&2
13781   as_fn_exit $as_status
13782 } # as_fn_error
13783
13784
13785 # as_fn_set_status STATUS
13786 # -----------------------
13787 # Set $? to STATUS, without forking.
13788 as_fn_set_status ()
13789 {
13790   return $1
13791 } # as_fn_set_status
13792
13793 # as_fn_exit STATUS
13794 # -----------------
13795 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13796 as_fn_exit ()
13797 {
13798   set +e
13799   as_fn_set_status $1
13800   exit $1
13801 } # as_fn_exit
13802
13803 # as_fn_unset VAR
13804 # ---------------
13805 # Portably unset VAR.
13806 as_fn_unset ()
13807 {
13808   { eval $1=; unset $1;}
13809 }
13810 as_unset=as_fn_unset
13811 # as_fn_append VAR VALUE
13812 # ----------------------
13813 # Append the text in VALUE to the end of the definition contained in VAR. Take
13814 # advantage of any shell optimizations that allow amortized linear growth over
13815 # repeated appends, instead of the typical quadratic growth present in naive
13816 # implementations.
13817 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13818   eval 'as_fn_append ()
13819   {
13820     eval $1+=\$2
13821   }'
13822 else
13823   as_fn_append ()
13824   {
13825     eval $1=\$$1\$2
13826   }
13827 fi # as_fn_append
13828
13829 # as_fn_arith ARG...
13830 # ------------------
13831 # Perform arithmetic evaluation on the ARGs, and store the result in the
13832 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13833 # must be portable across $(()) and expr.
13834 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13835   eval 'as_fn_arith ()
13836   {
13837     as_val=$(( $* ))
13838   }'
13839 else
13840   as_fn_arith ()
13841   {
13842     as_val=`expr "$@" || test $? -eq 1`
13843   }
13844 fi # as_fn_arith
13845
13846
13847 if expr a : '\(a\)' >/dev/null 2>&1 &&
13848    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13849   as_expr=expr
13850 else
13851   as_expr=false
13852 fi
13853
13854 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13855   as_basename=basename
13856 else
13857   as_basename=false
13858 fi
13859
13860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13861   as_dirname=dirname
13862 else
13863   as_dirname=false
13864 fi
13865
13866 as_me=`$as_basename -- "$0" ||
13867 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13868          X"$0" : 'X\(//\)$' \| \
13869          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13870 $as_echo X/"$0" |
13871     sed '/^.*\/\([^/][^/]*\)\/*$/{
13872             s//\1/
13873             q
13874           }
13875           /^X\/\(\/\/\)$/{
13876             s//\1/
13877             q
13878           }
13879           /^X\/\(\/\).*/{
13880             s//\1/
13881             q
13882           }
13883           s/.*/./; q'`
13884
13885 # Avoid depending upon Character Ranges.
13886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13889 as_cr_digits='0123456789'
13890 as_cr_alnum=$as_cr_Letters$as_cr_digits
13891
13892 ECHO_C= ECHO_N= ECHO_T=
13893 case `echo -n x` in #(((((
13894 -n*)
13895   case `echo 'xy\c'` in
13896   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13897   xy)  ECHO_C='\c';;
13898   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13899        ECHO_T=' ';;
13900   esac;;
13901 *)
13902   ECHO_N='-n';;
13903 esac
13904
13905 rm -f conf$$ conf$$.exe conf$$.file
13906 if test -d conf$$.dir; then
13907   rm -f conf$$.dir/conf$$.file
13908 else
13909   rm -f conf$$.dir
13910   mkdir conf$$.dir 2>/dev/null
13911 fi
13912 if (echo >conf$$.file) 2>/dev/null; then
13913   if ln -s conf$$.file conf$$ 2>/dev/null; then
13914     as_ln_s='ln -s'
13915     # ... but there are two gotchas:
13916     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13917     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13918     # In both cases, we have to default to `cp -pR'.
13919     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13920       as_ln_s='cp -pR'
13921   elif ln conf$$.file conf$$ 2>/dev/null; then
13922     as_ln_s=ln
13923   else
13924     as_ln_s='cp -pR'
13925   fi
13926 else
13927   as_ln_s='cp -pR'
13928 fi
13929 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13930 rmdir conf$$.dir 2>/dev/null
13931
13932
13933 # as_fn_mkdir_p
13934 # -------------
13935 # Create "$as_dir" as a directory, including parents if necessary.
13936 as_fn_mkdir_p ()
13937 {
13938
13939   case $as_dir in #(
13940   -*) as_dir=./$as_dir;;
13941   esac
13942   test -d "$as_dir" || eval $as_mkdir_p || {
13943     as_dirs=
13944     while :; do
13945       case $as_dir in #(
13946       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13947       *) as_qdir=$as_dir;;
13948       esac
13949       as_dirs="'$as_qdir' $as_dirs"
13950       as_dir=`$as_dirname -- "$as_dir" ||
13951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13952          X"$as_dir" : 'X\(//\)[^/]' \| \
13953          X"$as_dir" : 'X\(//\)$' \| \
13954          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13955 $as_echo X"$as_dir" |
13956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13957             s//\1/
13958             q
13959           }
13960           /^X\(\/\/\)[^/].*/{
13961             s//\1/
13962             q
13963           }
13964           /^X\(\/\/\)$/{
13965             s//\1/
13966             q
13967           }
13968           /^X\(\/\).*/{
13969             s//\1/
13970             q
13971           }
13972           s/.*/./; q'`
13973       test -d "$as_dir" && break
13974     done
13975     test -z "$as_dirs" || eval "mkdir $as_dirs"
13976   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13977
13978
13979 } # as_fn_mkdir_p
13980 if mkdir -p . 2>/dev/null; then
13981   as_mkdir_p='mkdir -p "$as_dir"'
13982 else
13983   test -d ./-p && rmdir ./-p
13984   as_mkdir_p=false
13985 fi
13986
13987
13988 # as_fn_executable_p FILE
13989 # -----------------------
13990 # Test if FILE is an executable regular file.
13991 as_fn_executable_p ()
13992 {
13993   test -f "$1" && test -x "$1"
13994 } # as_fn_executable_p
13995 as_test_x='test -x'
13996 as_executable_p=as_fn_executable_p
13997
13998 # Sed expression to map a string onto a valid CPP name.
13999 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14000
14001 # Sed expression to map a string onto a valid variable name.
14002 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14003
14004
14005 exec 6>&1
14006 ## ----------------------------------- ##
14007 ## Main body of $CONFIG_STATUS script. ##
14008 ## ----------------------------------- ##
14009 _ASEOF
14010 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14011
14012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14013 # Save the log message, to keep $0 and so on meaningful, and to
14014 # report actual input values of CONFIG_FILES etc. instead of their
14015 # values after options handling.
14016 ac_log="
14017 This file was extended by $as_me, which was
14018 generated by GNU Autoconf 2.69.  Invocation command line was
14019
14020   CONFIG_FILES    = $CONFIG_FILES
14021   CONFIG_HEADERS  = $CONFIG_HEADERS
14022   CONFIG_LINKS    = $CONFIG_LINKS
14023   CONFIG_COMMANDS = $CONFIG_COMMANDS
14024   $ $0 $@
14025
14026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14027 "
14028
14029 _ACEOF
14030
14031 case $ac_config_files in *"
14032 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14033 esac
14034
14035 case $ac_config_headers in *"
14036 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14037 esac
14038
14039
14040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14041 # Files that config.status was made for.
14042 config_files="$ac_config_files"
14043 config_headers="$ac_config_headers"
14044 config_commands="$ac_config_commands"
14045
14046 _ACEOF
14047
14048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14049 ac_cs_usage="\
14050 \`$as_me' instantiates files and other configuration actions
14051 from templates according to the current configuration.  Unless the files
14052 and actions are specified as TAGs, all are instantiated by default.
14053
14054 Usage: $0 [OPTION]... [TAG]...
14055
14056   -h, --help       print this help, then exit
14057   -V, --version    print version number and configuration settings, then exit
14058       --config     print configuration, then exit
14059   -q, --quiet, --silent
14060                    do not print progress messages
14061   -d, --debug      don't remove temporary files
14062       --recheck    update $as_me by reconfiguring in the same conditions
14063       --file=FILE[:TEMPLATE]
14064                    instantiate the configuration file FILE
14065       --header=FILE[:TEMPLATE]
14066                    instantiate the configuration header FILE
14067
14068 Configuration files:
14069 $config_files
14070
14071 Configuration headers:
14072 $config_headers
14073
14074 Configuration commands:
14075 $config_commands
14076
14077 Report bugs to the package provider."
14078
14079 _ACEOF
14080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14082 ac_cs_version="\\
14083 config.status
14084 configured by $0, generated by GNU Autoconf 2.69,
14085   with options \\"\$ac_cs_config\\"
14086
14087 Copyright (C) 2012 Free Software Foundation, Inc.
14088 This config.status script is free software; the Free Software Foundation
14089 gives unlimited permission to copy, distribute and modify it."
14090
14091 ac_pwd='$ac_pwd'
14092 srcdir='$srcdir'
14093 INSTALL='$INSTALL'
14094 MKDIR_P='$MKDIR_P'
14095 AWK='$AWK'
14096 test -n "\$AWK" || AWK=awk
14097 _ACEOF
14098
14099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14100 # The default lists apply if the user does not specify any file.
14101 ac_need_defaults=:
14102 while test $# != 0
14103 do
14104   case $1 in
14105   --*=?*)
14106     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14107     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14108     ac_shift=:
14109     ;;
14110   --*=)
14111     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14112     ac_optarg=
14113     ac_shift=:
14114     ;;
14115   *)
14116     ac_option=$1
14117     ac_optarg=$2
14118     ac_shift=shift
14119     ;;
14120   esac
14121
14122   case $ac_option in
14123   # Handling of the options.
14124   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14125     ac_cs_recheck=: ;;
14126   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14127     $as_echo "$ac_cs_version"; exit ;;
14128   --config | --confi | --conf | --con | --co | --c )
14129     $as_echo "$ac_cs_config"; exit ;;
14130   --debug | --debu | --deb | --de | --d | -d )
14131     debug=: ;;
14132   --file | --fil | --fi | --f )
14133     $ac_shift
14134     case $ac_optarg in
14135     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14136     '') as_fn_error $? "missing file argument" ;;
14137     esac
14138     as_fn_append CONFIG_FILES " '$ac_optarg'"
14139     ac_need_defaults=false;;
14140   --header | --heade | --head | --hea )
14141     $ac_shift
14142     case $ac_optarg in
14143     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14144     esac
14145     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14146     ac_need_defaults=false;;
14147   --he | --h)
14148     # Conflict between --help and --header
14149     as_fn_error $? "ambiguous option: \`$1'
14150 Try \`$0 --help' for more information.";;
14151   --help | --hel | -h )
14152     $as_echo "$ac_cs_usage"; exit ;;
14153   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14154   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14155     ac_cs_silent=: ;;
14156
14157   # This is an error.
14158   -*) as_fn_error $? "unrecognized option: \`$1'
14159 Try \`$0 --help' for more information." ;;
14160
14161   *) as_fn_append ac_config_targets " $1"
14162      ac_need_defaults=false ;;
14163
14164   esac
14165   shift
14166 done
14167
14168 ac_configure_extra_args=
14169
14170 if $ac_cs_silent; then
14171   exec 6>/dev/null
14172   ac_configure_extra_args="$ac_configure_extra_args --silent"
14173 fi
14174
14175 _ACEOF
14176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14177 if \$ac_cs_recheck; then
14178   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14179   shift
14180   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14181   CONFIG_SHELL='$SHELL'
14182   export CONFIG_SHELL
14183   exec "\$@"
14184 fi
14185
14186 _ACEOF
14187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14188 exec 5>>config.log
14189 {
14190   echo
14191   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14192 ## Running $as_me. ##
14193 _ASBOX
14194   $as_echo "$ac_log"
14195 } >&5
14196
14197 _ACEOF
14198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14199 #
14200 # INIT-COMMANDS
14201 #
14202 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14203     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14204     # from automake < 1.5.
14205     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14206     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14207     LINGUAS="${LINGUAS-%UNSET%}"
14208
14209
14210 _ACEOF
14211
14212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14213
14214 # Handling of arguments.
14215 for ac_config_target in $ac_config_targets
14216 do
14217   case $ac_config_target in
14218     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14219     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14220     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14221
14222   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14223   esac
14224 done
14225
14226
14227 # If the user did not use the arguments to specify the items to instantiate,
14228 # then the envvar interface is used.  Set only those that are not.
14229 # We use the long form for the default assignment because of an extremely
14230 # bizarre bug on SunOS 4.1.3.
14231 if $ac_need_defaults; then
14232   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14233   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14234   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14235 fi
14236
14237 # Have a temporary directory for convenience.  Make it in the build tree
14238 # simply because there is no reason against having it here, and in addition,
14239 # creating and moving files from /tmp can sometimes cause problems.
14240 # Hook for its removal unless debugging.
14241 # Note that there is a small window in which the directory will not be cleaned:
14242 # after its creation but before its name has been assigned to `$tmp'.
14243 $debug ||
14244 {
14245   tmp= ac_tmp=
14246   trap 'exit_status=$?
14247   : "${ac_tmp:=$tmp}"
14248   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14249 ' 0
14250   trap 'as_fn_exit 1' 1 2 13 15
14251 }
14252 # Create a (secure) tmp directory for tmp files.
14253
14254 {
14255   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14256   test -d "$tmp"
14257 }  ||
14258 {
14259   tmp=./conf$$-$RANDOM
14260   (umask 077 && mkdir "$tmp")
14261 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14262 ac_tmp=$tmp
14263
14264 # Set up the scripts for CONFIG_FILES section.
14265 # No need to generate them if there are no CONFIG_FILES.
14266 # This happens for instance with `./config.status config.h'.
14267 if test -n "$CONFIG_FILES"; then
14268
14269 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14270   ac_cs_awk_getline=:
14271   ac_cs_awk_pipe_init=
14272   ac_cs_awk_read_file='
14273       while ((getline aline < (F[key])) > 0)
14274         print(aline)
14275       close(F[key])'
14276   ac_cs_awk_pipe_fini=
14277 else
14278   ac_cs_awk_getline=false
14279   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14280   ac_cs_awk_read_file='
14281       print "|#_!!_#|"
14282       print "cat " F[key] " &&"
14283       '$ac_cs_awk_pipe_init
14284   # The final `:' finishes the AND list.
14285   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14286 fi
14287 ac_cr=`echo X | tr X '\015'`
14288 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14289 # But we know of no other shell where ac_cr would be empty at this
14290 # point, so we can use a bashism as a fallback.
14291 if test "x$ac_cr" = x; then
14292   eval ac_cr=\$\'\\r\'
14293 fi
14294 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14295 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14296   ac_cs_awk_cr='\\r'
14297 else
14298   ac_cs_awk_cr=$ac_cr
14299 fi
14300
14301 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14302 _ACEOF
14303
14304 # Create commands to substitute file output variables.
14305 {
14306   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14307   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14308   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14309   echo "_ACAWK" &&
14310   echo "_ACEOF"
14311 } >conf$$files.sh &&
14312 . ./conf$$files.sh ||
14313   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14314 rm -f conf$$files.sh
14315
14316 {
14317   echo "cat >conf$$subs.awk <<_ACEOF" &&
14318   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14319   echo "_ACEOF"
14320 } >conf$$subs.sh ||
14321   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14322 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14323 ac_delim='%!_!# '
14324 for ac_last_try in false false false false false :; do
14325   . ./conf$$subs.sh ||
14326     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14327
14328   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14329   if test $ac_delim_n = $ac_delim_num; then
14330     break
14331   elif $ac_last_try; then
14332     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14333   else
14334     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14335   fi
14336 done
14337 rm -f conf$$subs.sh
14338
14339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14340 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14341 _ACEOF
14342 sed -n '
14343 h
14344 s/^/S["/; s/!.*/"]=/
14345 p
14346 g
14347 s/^[^!]*!//
14348 :repl
14349 t repl
14350 s/'"$ac_delim"'$//
14351 t delim
14352 :nl
14353 h
14354 s/\(.\{148\}\)..*/\1/
14355 t more1
14356 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14357 p
14358 n
14359 b repl
14360 :more1
14361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14362 p
14363 g
14364 s/.\{148\}//
14365 t nl
14366 :delim
14367 h
14368 s/\(.\{148\}\)..*/\1/
14369 t more2
14370 s/["\\]/\\&/g; s/^/"/; s/$/"/
14371 p
14372 b
14373 :more2
14374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14375 p
14376 g
14377 s/.\{148\}//
14378 t delim
14379 ' <conf$$subs.awk | sed '
14380 /^[^""]/{
14381   N
14382   s/\n//
14383 }
14384 ' >>$CONFIG_STATUS || ac_write_fail=1
14385 rm -f conf$$subs.awk
14386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387 _ACAWK
14388 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14389   for (key in S) S_is_set[key] = 1
14390   FS = "\a"
14391   \$ac_cs_awk_pipe_init
14392 }
14393 {
14394   line = $ 0
14395   nfields = split(line, field, "@")
14396   substed = 0
14397   len = length(field[1])
14398   for (i = 2; i < nfields; i++) {
14399     key = field[i]
14400     keylen = length(key)
14401     if (S_is_set[key]) {
14402       value = S[key]
14403       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14404       len += length(value) + length(field[++i])
14405       substed = 1
14406     } else
14407       len += 1 + keylen
14408   }
14409   if (nfields == 3 && !substed) {
14410     key = field[2]
14411     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14412       \$ac_cs_awk_read_file
14413       next
14414     }
14415   }
14416   print line
14417 }
14418 \$ac_cs_awk_pipe_fini
14419 _ACAWK
14420 _ACEOF
14421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14422 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14423   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14424 else
14425   cat
14426 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14427   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14428 _ACEOF
14429
14430 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14431 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14432 # trailing colons and then remove the whole line if VPATH becomes empty
14433 # (actually we leave an empty line to preserve line numbers).
14434 if test "x$srcdir" = x.; then
14435   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14436 h
14437 s///
14438 s/^/:/
14439 s/[      ]*$/:/
14440 s/:\$(srcdir):/:/g
14441 s/:\${srcdir}:/:/g
14442 s/:@srcdir@:/:/g
14443 s/^:*//
14444 s/:*$//
14445 x
14446 s/\(=[   ]*\).*/\1/
14447 G
14448 s/\n//
14449 s/^[^=]*=[       ]*$//
14450 }'
14451 fi
14452
14453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14454 fi # test -n "$CONFIG_FILES"
14455
14456 # Set up the scripts for CONFIG_HEADERS section.
14457 # No need to generate them if there are no CONFIG_HEADERS.
14458 # This happens for instance with `./config.status Makefile'.
14459 if test -n "$CONFIG_HEADERS"; then
14460 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14461 BEGIN {
14462 _ACEOF
14463
14464 # Transform confdefs.h into an awk script `defines.awk', embedded as
14465 # here-document in config.status, that substitutes the proper values into
14466 # config.h.in to produce config.h.
14467
14468 # Create a delimiter string that does not exist in confdefs.h, to ease
14469 # handling of long lines.
14470 ac_delim='%!_!# '
14471 for ac_last_try in false false :; do
14472   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14473   if test -z "$ac_tt"; then
14474     break
14475   elif $ac_last_try; then
14476     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14477   else
14478     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14479   fi
14480 done
14481
14482 # For the awk script, D is an array of macro values keyed by name,
14483 # likewise P contains macro parameters if any.  Preserve backslash
14484 # newline sequences.
14485
14486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14487 sed -n '
14488 s/.\{148\}/&'"$ac_delim"'/g
14489 t rset
14490 :rset
14491 s/^[     ]*#[    ]*define[       ][      ]*/ /
14492 t def
14493 d
14494 :def
14495 s/\\$//
14496 t bsnl
14497 s/["\\]/\\&/g
14498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14499 D["\1"]=" \3"/p
14500 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14501 d
14502 :bsnl
14503 s/["\\]/\\&/g
14504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14505 D["\1"]=" \3\\\\\\n"\\/p
14506 t cont
14507 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14508 t cont
14509 d
14510 :cont
14511 n
14512 s/.\{148\}/&'"$ac_delim"'/g
14513 t clear
14514 :clear
14515 s/\\$//
14516 t bsnlc
14517 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14518 d
14519 :bsnlc
14520 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14521 b cont
14522 ' <confdefs.h | sed '
14523 s/'"$ac_delim"'/"\\\
14524 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14525
14526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14527   for (key in D) D_is_set[key] = 1
14528   FS = "\a"
14529 }
14530 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14531   line = \$ 0
14532   split(line, arg, " ")
14533   if (arg[1] == "#") {
14534     defundef = arg[2]
14535     mac1 = arg[3]
14536   } else {
14537     defundef = substr(arg[1], 2)
14538     mac1 = arg[2]
14539   }
14540   split(mac1, mac2, "(") #)
14541   macro = mac2[1]
14542   prefix = substr(line, 1, index(line, defundef) - 1)
14543   if (D_is_set[macro]) {
14544     # Preserve the white space surrounding the "#".
14545     print prefix "define", macro P[macro] D[macro]
14546     next
14547   } else {
14548     # Replace #undef with comments.  This is necessary, for example,
14549     # in the case of _POSIX_SOURCE, which is predefined and required
14550     # on some systems where configure will not decide to define it.
14551     if (defundef == "undef") {
14552       print "/*", prefix defundef, macro, "*/"
14553       next
14554     }
14555   }
14556 }
14557 { print }
14558 _ACAWK
14559 _ACEOF
14560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14562 fi # test -n "$CONFIG_HEADERS"
14563
14564
14565 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14566 shift
14567 for ac_tag
14568 do
14569   case $ac_tag in
14570   :[FHLC]) ac_mode=$ac_tag; continue;;
14571   esac
14572   case $ac_mode$ac_tag in
14573   :[FHL]*:*);;
14574   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14575   :[FH]-) ac_tag=-:-;;
14576   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14577   esac
14578   ac_save_IFS=$IFS
14579   IFS=:
14580   set x $ac_tag
14581   IFS=$ac_save_IFS
14582   shift
14583   ac_file=$1
14584   shift
14585
14586   case $ac_mode in
14587   :L) ac_source=$1;;
14588   :[FH])
14589     ac_file_inputs=
14590     for ac_f
14591     do
14592       case $ac_f in
14593       -) ac_f="$ac_tmp/stdin";;
14594       *) # Look for the file first in the build tree, then in the source tree
14595          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14596          # because $ac_f cannot contain `:'.
14597          test -f "$ac_f" ||
14598            case $ac_f in
14599            [\\/$]*) false;;
14600            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14601            esac ||
14602            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14603       esac
14604       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14605       as_fn_append ac_file_inputs " '$ac_f'"
14606     done
14607
14608     # Let's still pretend it is `configure' which instantiates (i.e., don't
14609     # use $as_me), people would be surprised to read:
14610     #    /* config.h.  Generated by config.status.  */
14611     configure_input='Generated from '`
14612           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14613         `' by configure.'
14614     if test x"$ac_file" != x-; then
14615       configure_input="$ac_file.  $configure_input"
14616       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14617 $as_echo "$as_me: creating $ac_file" >&6;}
14618     fi
14619     # Neutralize special characters interpreted by sed in replacement strings.
14620     case $configure_input in #(
14621     *\&* | *\|* | *\\* )
14622        ac_sed_conf_input=`$as_echo "$configure_input" |
14623        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14624     *) ac_sed_conf_input=$configure_input;;
14625     esac
14626
14627     case $ac_tag in
14628     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14629       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14630     esac
14631     ;;
14632   esac
14633
14634   ac_dir=`$as_dirname -- "$ac_file" ||
14635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14636          X"$ac_file" : 'X\(//\)[^/]' \| \
14637          X"$ac_file" : 'X\(//\)$' \| \
14638          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14639 $as_echo X"$ac_file" |
14640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14641             s//\1/
14642             q
14643           }
14644           /^X\(\/\/\)[^/].*/{
14645             s//\1/
14646             q
14647           }
14648           /^X\(\/\/\)$/{
14649             s//\1/
14650             q
14651           }
14652           /^X\(\/\).*/{
14653             s//\1/
14654             q
14655           }
14656           s/.*/./; q'`
14657   as_dir="$ac_dir"; as_fn_mkdir_p
14658   ac_builddir=.
14659
14660 case "$ac_dir" in
14661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14662 *)
14663   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14664   # A ".." for each directory in $ac_dir_suffix.
14665   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14666   case $ac_top_builddir_sub in
14667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14669   esac ;;
14670 esac
14671 ac_abs_top_builddir=$ac_pwd
14672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14673 # for backward compatibility:
14674 ac_top_builddir=$ac_top_build_prefix
14675
14676 case $srcdir in
14677   .)  # We are building in place.
14678     ac_srcdir=.
14679     ac_top_srcdir=$ac_top_builddir_sub
14680     ac_abs_top_srcdir=$ac_pwd ;;
14681   [\\/]* | ?:[\\/]* )  # Absolute name.
14682     ac_srcdir=$srcdir$ac_dir_suffix;
14683     ac_top_srcdir=$srcdir
14684     ac_abs_top_srcdir=$srcdir ;;
14685   *) # Relative name.
14686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14687     ac_top_srcdir=$ac_top_build_prefix$srcdir
14688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14689 esac
14690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14691
14692
14693   case $ac_mode in
14694   :F)
14695   #
14696   # CONFIG_FILE
14697   #
14698
14699   case $INSTALL in
14700   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14701   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14702   esac
14703   ac_MKDIR_P=$MKDIR_P
14704   case $MKDIR_P in
14705   [\\/$]* | ?:[\\/]* ) ;;
14706   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14707   esac
14708 _ACEOF
14709
14710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14711 # If the template does not know about datarootdir, expand it.
14712 # FIXME: This hack should be removed a few years after 2.60.
14713 ac_datarootdir_hack=; ac_datarootdir_seen=
14714 ac_sed_dataroot='
14715 /datarootdir/ {
14716   p
14717   q
14718 }
14719 /@datadir@/p
14720 /@docdir@/p
14721 /@infodir@/p
14722 /@localedir@/p
14723 /@mandir@/p'
14724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14725 *datarootdir*) ac_datarootdir_seen=yes;;
14726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14727   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14729 _ACEOF
14730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14731   ac_datarootdir_hack='
14732   s&@datadir@&$datadir&g
14733   s&@docdir@&$docdir&g
14734   s&@infodir@&$infodir&g
14735   s&@localedir@&$localedir&g
14736   s&@mandir@&$mandir&g
14737   s&\\\${datarootdir}&$datarootdir&g' ;;
14738 esac
14739 _ACEOF
14740
14741 # Neutralize VPATH when `$srcdir' = `.'.
14742 # Shell code in configure.ac might set extrasub.
14743 # FIXME: do we really want to maintain this feature?
14744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14745 ac_sed_extra="$ac_vpsub
14746 $extrasub
14747 _ACEOF
14748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14749 :t
14750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14751 s|@configure_input@|$ac_sed_conf_input|;t t
14752 s&@top_builddir@&$ac_top_builddir_sub&;t t
14753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14754 s&@srcdir@&$ac_srcdir&;t t
14755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14756 s&@top_srcdir@&$ac_top_srcdir&;t t
14757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14758 s&@builddir@&$ac_builddir&;t t
14759 s&@abs_builddir@&$ac_abs_builddir&;t t
14760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14761 s&@INSTALL@&$ac_INSTALL&;t t
14762 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14763 $ac_datarootdir_hack
14764 "
14765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14766 if $ac_cs_awk_getline; then
14767   $AWK -f "$ac_tmp/subs.awk"
14768 else
14769   $AWK -f "$ac_tmp/subs.awk" | $SHELL
14770 fi \
14771   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14772
14773 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14774   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14775   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14776       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14777   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14778 which seems to be undefined.  Please make sure it is defined" >&5
14779 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14780 which seems to be undefined.  Please make sure it is defined" >&2;}
14781
14782   rm -f "$ac_tmp/stdin"
14783   case $ac_file in
14784   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14785   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14786   esac \
14787   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14788  ;;
14789   :H)
14790   #
14791   # CONFIG_HEADER
14792   #
14793   if test x"$ac_file" != x-; then
14794     {
14795       $as_echo "/* $configure_input  */" \
14796       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14797     } >"$ac_tmp/config.h" \
14798       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14799     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14800       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14801 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14802     else
14803       rm -f "$ac_file"
14804       mv "$ac_tmp/config.h" "$ac_file" \
14805         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14806     fi
14807   else
14808     $as_echo "/* $configure_input  */" \
14809       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14810       || as_fn_error $? "could not create -" "$LINENO" 5
14811   fi
14812  ;;
14813
14814   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14815 $as_echo "$as_me: executing $ac_file commands" >&6;}
14816  ;;
14817   esac
14818
14819
14820   case $ac_file$ac_mode in
14821     "po-directories":C)
14822     for ac_file in $CONFIG_FILES; do
14823       # Support "outfile[:infile[:infile...]]"
14824       case "$ac_file" in
14825         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14826       esac
14827       # PO directories have a Makefile.in generated from Makefile.in.in.
14828       case "$ac_file" in */Makefile.in)
14829         # Adjust a relative srcdir.
14830         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14831         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14832         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14833         # In autoconf-2.13 it is called $ac_given_srcdir.
14834         # In autoconf-2.50 it is called $srcdir.
14835         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14836         case "$ac_given_srcdir" in
14837           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14838           /*) top_srcdir="$ac_given_srcdir" ;;
14839           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14840         esac
14841         # Treat a directory as a PO directory if and only if it has a
14842         # POTFILES.in file. This allows packages to have multiple PO
14843         # directories under different names or in different locations.
14844         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14845           rm -f "$ac_dir/POTFILES"
14846           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14847           gt_tab=`printf '\t'`
14848           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14849           POMAKEFILEDEPS="POTFILES.in"
14850           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14851           # on $ac_dir but don't depend on user-specified configuration
14852           # parameters.
14853           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14854             # The LINGUAS file contains the set of available languages.
14855             if test -n "$OBSOLETE_ALL_LINGUAS"; then
14856               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14857             fi
14858             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14859             # Hide the ALL_LINGUAS assignment from automake < 1.5.
14860             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14861             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14862           else
14863             # The set of available languages was given in configure.in.
14864             # Hide the ALL_LINGUAS assignment from automake < 1.5.
14865             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14866           fi
14867           # Compute POFILES
14868           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14869           # Compute UPDATEPOFILES
14870           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14871           # Compute DUMMYPOFILES
14872           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14873           # Compute GMOFILES
14874           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14875           case "$ac_given_srcdir" in
14876             .) srcdirpre= ;;
14877             *) srcdirpre='$(srcdir)/' ;;
14878           esac
14879           POFILES=
14880           UPDATEPOFILES=
14881           DUMMYPOFILES=
14882           GMOFILES=
14883           for lang in $ALL_LINGUAS; do
14884             POFILES="$POFILES $srcdirpre$lang.po"
14885             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14886             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14887             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14888           done
14889           # CATALOGS depends on both $ac_dir and the user's LINGUAS
14890           # environment variable.
14891           INST_LINGUAS=
14892           if test -n "$ALL_LINGUAS"; then
14893             for presentlang in $ALL_LINGUAS; do
14894               useit=no
14895               if test "%UNSET%" != "$LINGUAS"; then
14896                 desiredlanguages="$LINGUAS"
14897               else
14898                 desiredlanguages="$ALL_LINGUAS"
14899               fi
14900               for desiredlang in $desiredlanguages; do
14901                 # Use the presentlang catalog if desiredlang is
14902                 #   a. equal to presentlang, or
14903                 #   b. a variant of presentlang (because in this case,
14904                 #      presentlang can be used as a fallback for messages
14905                 #      which are not translated in the desiredlang catalog).
14906                 case "$desiredlang" in
14907                   "$presentlang"*) useit=yes;;
14908                 esac
14909               done
14910               if test $useit = yes; then
14911                 INST_LINGUAS="$INST_LINGUAS $presentlang"
14912               fi
14913             done
14914           fi
14915           CATALOGS=
14916           if test -n "$INST_LINGUAS"; then
14917             for lang in $INST_LINGUAS; do
14918               CATALOGS="$CATALOGS $lang.gmo"
14919             done
14920           fi
14921           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14922           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"
14923           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14924             if test -f "$f"; then
14925               case "$f" in
14926                 *.orig | *.bak | *~) ;;
14927                 *) cat "$f" >> "$ac_dir/Makefile" ;;
14928               esac
14929             fi
14930           done
14931         fi
14932         ;;
14933       esac
14934     done ;;
14935
14936   esac
14937 done # for ac_tag
14938
14939
14940 as_fn_exit 0
14941 _ACEOF
14942 ac_clean_files=$ac_clean_files_save
14943
14944 test $ac_write_fail = 0 ||
14945   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14946
14947
14948 # configure is writing to config.log, and then calls config.status.
14949 # config.status does its own redirection, appending to config.log.
14950 # Unfortunately, on DOS this fails, as config.log is still kept open
14951 # by configure, so config.status won't be able to write to it; its
14952 # output is simply discarded.  So we exec the FD to /dev/null,
14953 # effectively closing config.log, so it can be properly (re)opened and
14954 # appended to by config.status.  When coming back to configure, we
14955 # need to make the FD available again.
14956 if test "$no_create" != yes; then
14957   ac_cs_success=:
14958   ac_config_status_args=
14959   test "$silent" = yes &&
14960     ac_config_status_args="$ac_config_status_args --quiet"
14961   exec 5>/dev/null
14962   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14963   exec 5>>config.log
14964   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14965   # would make configure fail if this is the last instruction.
14966   $ac_cs_success || as_fn_exit 1
14967 fi
14968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14971 fi
14972
14973 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi