Whamcloud - gitweb
81aafddb991504a0131800f9b1ba5e7b8cbd910a
[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 FUSE_CMT
647 FUSE_LIB
648 MAGIC_LIB
649 SOCKET_LIB
650 SIZEOF_OFF_T
651 SIZEOF_LONG_LONG
652 SIZEOF_LONG
653 SIZEOF_INT
654 SIZEOF_SHORT
655 BUILD_CC
656 MAKEINFO
657 STRIP
658 AR
659 LDCONFIG
660 PERL
661 AWK
662 CHMOD
663 RM
664 CP
665 MV
666 LN_S
667 LN
668 ifNotGNUmake
669 ifGNUmake
670 BINARY_TYPE
671 POSUB
672 LTLIBINTL
673 LIBINTL
674 INTLLIBS
675 INTL_LIBTOOL_SUFFIX_PREFIX
676 INTLOBJS
677 GENCAT
678 INSTOBJEXT
679 DATADIRNAME
680 CATOBJEXT
681 USE_INCLUDED_LIBINTL
682 BUILD_INCLUDED_LIBINTL
683 LTLIBC
684 WINDRES
685 WOE32
686 WOE32DLL
687 HAVE_WPRINTF
688 HAVE_NEWLOCALE
689 HAVE_SNPRINTF
690 HAVE_ASPRINTF
691 HAVE_POSIX_PRINTF
692 INTL_DEFAULT_VERBOSITY
693 INTL_MACOSX_LIBS
694 GLIBC21
695 INTLBISON
696 LTLIBICONV
697 LIBICONV
698 LTLIBMULTITHREAD
699 LIBMULTITHREAD
700 LTLIBTHREAD
701 LIBTHREAD
702 LIBPTH_PREFIX
703 LTLIBPTH
704 LIBPTH
705 PRI_MACROS_BROKEN
706 ALLOCA
707 HAVE_VISIBILITY
708 CFLAG_VISIBILITY
709 RANLIB
710 GLIBC2
711 XGETTEXT_EXTRA_OPTIONS
712 MSGMERGE
713 XGETTEXT_015
714 XGETTEXT
715 GMSGFMT_015
716 MSGFMT_015
717 GMSGFMT
718 MSGFMT
719 GETTEXT_MACRO_VERSION
720 USE_NLS
721 SED
722 MKDIR_P
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 SET_MAKE
727 VERSION
728 PACKAGE
729 GETTEXT_PACKAGE
730 UUIDD_CMT
731 E2INITRD_MAN
732 E2INITRD_PROG
733 FSCK_MAN
734 FSCK_PROG
735 DEFRAG_CMT
736 RESIZER_CMT
737 IMAGER_CMT
738 DEBUGFS_CMT
739 QUOTA_CMT
740 DEPPROFILED_LIBQUOTA
741 PROFILED_LIBQUOTA
742 DEPSTATIC_LIBQUOTA
743 STATIC_LIBQUOTA
744 DEPLIBQUOTA
745 LIBQUOTA
746 QUOTA_MAN_COMMENT
747 BLKID_CMT
748 DEPPROFILED_LIBBLKID
749 PROFILED_LIBBLKID
750 DEPSTATIC_LIBBLKID
751 STATIC_LIBBLKID
752 DEPLIBBLKID
753 LIBBLKID
754 UUID_CMT
755 DEPPROFILED_LIBUUID
756 PROFILED_LIBUUID
757 DEPSTATIC_LIBUUID
758 STATIC_LIBUUID
759 DEPLIBUUID
760 LIBUUID
761 PKG_CONFIG_LIBDIR
762 PKG_CONFIG_PATH
763 PKG_CONFIG
764 TEST_IO_CMT
765 PRIVATE_LIBS_CMT
766 LDFLAG_DYNAMIC
767 PROFILED_LIB_EXT
768 STATIC_LIB_EXT
769 LIB_EXT
770 PROFILE_CMT
771 BSDLIB_CMT
772 ELF_CMT
773 Q
774 ES
775 E
776 LINK_BUILD_FLAGS
777 SYMLINK_RELATIVE
778 LINK_INSTALL_FLAGS
779 MAINTAINER_CMT
780 EGREP
781 GREP
782 CPP
783 RDYNAMIC
784 DLOPEN_LIB
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
791 CC
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 E2FSPROGS_PKGVER
801 E2FSPROGS_VERSION
802 E2FSPROGS_DAY
803 E2FSPROGS_MONTH
804 E2FSPROGS_YEAR
805 target_alias
806 host_alias
807 build_alias
808 LIBS
809 ECHO_T
810 ECHO_N
811 ECHO_C
812 DEFS
813 mandir
814 localedir
815 libdir
816 psdir
817 pdfdir
818 dvidir
819 htmldir
820 infodir
821 docdir
822 oldincludedir
823 includedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL'
843 ac_subst_files='MCONFIG
844 MAKEFILE_ELF
845 MAKEFILE_BSDLIB
846 MAKEFILE_PROFILE
847 MAKEFILE_LIBRARY
848 ASM_TYPES_HEADER
849 PUBLIC_CONFIG_HEADER'
850 ac_user_opts='
851 enable_option_checking
852 with_diet_libc
853 with_cc
854 with_ccopts
855 with_ldopts
856 with_root_prefix
857 enable_maintainer_mode
858 enable_symlink_install
859 enable_relative_symlinks
860 enable_symlink_relative_symlinks
861 enable_symlink_build
862 enable_verbose_makecmds
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 enable_fuse2fs
894 with_multiarch
895 '
896       ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 CC
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
904 CPP
905 PKG_CONFIG
906 PKG_CONFIG_PATH
907 PKG_CONFIG_LIBDIR'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 ac_unrecognized_opts=
914 ac_unrecognized_sep=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
917 cache_file=/dev/null
918 exec_prefix=NONE
919 no_create=
920 no_recursion=
921 prefix=NONE
922 program_prefix=NONE
923 program_suffix=NONE
924 program_transform_name=s,x,x,
925 silent=
926 site=
927 srcdir=
928 verbose=
929 x_includes=NONE
930 x_libraries=NONE
931
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE}'
949 infodir='${datarootdir}/info'
950 htmldir='${docdir}'
951 dvidir='${docdir}'
952 pdfdir='${docdir}'
953 psdir='${docdir}'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
957
958 ac_prev=
959 ac_dashdash=
960 for ac_option
961 do
962   # If the previous option needs an argument, assign it.
963   if test -n "$ac_prev"; then
964     eval $ac_prev=\$ac_option
965     ac_prev=
966     continue
967   fi
968
969   case $ac_option in
970   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971   *=)   ac_optarg= ;;
972   *)    ac_optarg=yes ;;
973   esac
974
975   # Accept the important Cygnus configure options, so we can diagnose typos.
976
977   case $ac_dashdash$ac_option in
978   --)
979     ac_dashdash=yes ;;
980
981   -bindir | --bindir | --bindi | --bind | --bin | --bi)
982     ac_prev=bindir ;;
983   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984     bindir=$ac_optarg ;;
985
986   -build | --build | --buil | --bui | --bu)
987     ac_prev=build_alias ;;
988   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989     build_alias=$ac_optarg ;;
990
991   -cache-file | --cache-file | --cache-fil | --cache-fi \
992   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993     ac_prev=cache_file ;;
994   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996     cache_file=$ac_optarg ;;
997
998   --config-cache | -C)
999     cache_file=config.cache ;;
1000
1001   -datadir | --datadir | --datadi | --datad)
1002     ac_prev=datadir ;;
1003   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004     datadir=$ac_optarg ;;
1005
1006   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007   | --dataroo | --dataro | --datar)
1008     ac_prev=datarootdir ;;
1009   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011     datarootdir=$ac_optarg ;;
1012
1013   -disable-* | --disable-*)
1014     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017       as_fn_error $? "invalid feature name: $ac_useropt"
1018     ac_useropt_orig=$ac_useropt
1019     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020     case $ac_user_opts in
1021       *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025          ac_unrecognized_sep=', ';;
1026     esac
1027     eval enable_$ac_useropt=no ;;
1028
1029   -docdir | --docdir | --docdi | --doc | --do)
1030     ac_prev=docdir ;;
1031   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032     docdir=$ac_optarg ;;
1033
1034   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035     ac_prev=dvidir ;;
1036   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037     dvidir=$ac_optarg ;;
1038
1039   -enable-* | --enable-*)
1040     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043       as_fn_error $? "invalid feature name: $ac_useropt"
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=\$ac_optarg ;;
1054
1055   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057   | --exec | --exe | --ex)
1058     ac_prev=exec_prefix ;;
1059   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061   | --exec=* | --exe=* | --ex=*)
1062     exec_prefix=$ac_optarg ;;
1063
1064   -gas | --gas | --ga | --g)
1065     # Obsolete; use --with-gas.
1066     with_gas=yes ;;
1067
1068   -help | --help | --hel | --he | -h)
1069     ac_init_help=long ;;
1070   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071     ac_init_help=recursive ;;
1072   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073     ac_init_help=short ;;
1074
1075   -host | --host | --hos | --ho)
1076     ac_prev=host_alias ;;
1077   -host=* | --host=* | --hos=* | --ho=*)
1078     host_alias=$ac_optarg ;;
1079
1080   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081     ac_prev=htmldir ;;
1082   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083   | --ht=*)
1084     htmldir=$ac_optarg ;;
1085
1086   -includedir | --includedir | --includedi | --included | --include \
1087   | --includ | --inclu | --incl | --inc)
1088     ac_prev=includedir ;;
1089   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090   | --includ=* | --inclu=* | --incl=* | --inc=*)
1091     includedir=$ac_optarg ;;
1092
1093   -infodir | --infodir | --infodi | --infod | --info | --inf)
1094     ac_prev=infodir ;;
1095   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096     infodir=$ac_optarg ;;
1097
1098   -libdir | --libdir | --libdi | --libd)
1099     ac_prev=libdir ;;
1100   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101     libdir=$ac_optarg ;;
1102
1103   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104   | --libexe | --libex | --libe)
1105     ac_prev=libexecdir ;;
1106   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107   | --libexe=* | --libex=* | --libe=*)
1108     libexecdir=$ac_optarg ;;
1109
1110   -localedir | --localedir | --localedi | --localed | --locale)
1111     ac_prev=localedir ;;
1112   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113     localedir=$ac_optarg ;;
1114
1115   -localstatedir | --localstatedir | --localstatedi | --localstated \
1116   | --localstate | --localstat | --localsta | --localst | --locals)
1117     ac_prev=localstatedir ;;
1118   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120     localstatedir=$ac_optarg ;;
1121
1122   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123     ac_prev=mandir ;;
1124   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125     mandir=$ac_optarg ;;
1126
1127   -nfp | --nfp | --nf)
1128     # Obsolete; use --without-fp.
1129     with_fp=no ;;
1130
1131   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132   | --no-cr | --no-c | -n)
1133     no_create=yes ;;
1134
1135   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137     no_recursion=yes ;;
1138
1139   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141   | --oldin | --oldi | --old | --ol | --o)
1142     ac_prev=oldincludedir ;;
1143   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146     oldincludedir=$ac_optarg ;;
1147
1148   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149     ac_prev=prefix ;;
1150   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151     prefix=$ac_optarg ;;
1152
1153   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154   | --program-pre | --program-pr | --program-p)
1155     ac_prev=program_prefix ;;
1156   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158     program_prefix=$ac_optarg ;;
1159
1160   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161   | --program-suf | --program-su | --program-s)
1162     ac_prev=program_suffix ;;
1163   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165     program_suffix=$ac_optarg ;;
1166
1167   -program-transform-name | --program-transform-name \
1168   | --program-transform-nam | --program-transform-na \
1169   | --program-transform-n | --program-transform- \
1170   | --program-transform | --program-transfor \
1171   | --program-transfo | --program-transf \
1172   | --program-trans | --program-tran \
1173   | --progr-tra | --program-tr | --program-t)
1174     ac_prev=program_transform_name ;;
1175   -program-transform-name=* | --program-transform-name=* \
1176   | --program-transform-nam=* | --program-transform-na=* \
1177   | --program-transform-n=* | --program-transform-=* \
1178   | --program-transform=* | --program-transfor=* \
1179   | --program-transfo=* | --program-transf=* \
1180   | --program-trans=* | --program-tran=* \
1181   | --progr-tra=* | --program-tr=* | --program-t=*)
1182     program_transform_name=$ac_optarg ;;
1183
1184   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185     ac_prev=pdfdir ;;
1186   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187     pdfdir=$ac_optarg ;;
1188
1189   -psdir | --psdir | --psdi | --psd | --ps)
1190     ac_prev=psdir ;;
1191   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192     psdir=$ac_optarg ;;
1193
1194   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195   | -silent | --silent | --silen | --sile | --sil)
1196     silent=yes ;;
1197
1198   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199     ac_prev=sbindir ;;
1200   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201   | --sbi=* | --sb=*)
1202     sbindir=$ac_optarg ;;
1203
1204   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206   | --sharedst | --shareds | --shared | --share | --shar \
1207   | --sha | --sh)
1208     ac_prev=sharedstatedir ;;
1209   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212   | --sha=* | --sh=*)
1213     sharedstatedir=$ac_optarg ;;
1214
1215   -site | --site | --sit)
1216     ac_prev=site ;;
1217   -site=* | --site=* | --sit=*)
1218     site=$ac_optarg ;;
1219
1220   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221     ac_prev=srcdir ;;
1222   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223     srcdir=$ac_optarg ;;
1224
1225   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226   | --syscon | --sysco | --sysc | --sys | --sy)
1227     ac_prev=sysconfdir ;;
1228   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230     sysconfdir=$ac_optarg ;;
1231
1232   -target | --target | --targe | --targ | --tar | --ta | --t)
1233     ac_prev=target_alias ;;
1234   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235     target_alias=$ac_optarg ;;
1236
1237   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238     verbose=yes ;;
1239
1240   -version | --version | --versio | --versi | --vers | -V)
1241     ac_init_version=: ;;
1242
1243   -with-* | --with-*)
1244     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247       as_fn_error $? "invalid package name: $ac_useropt"
1248     ac_useropt_orig=$ac_useropt
1249     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250     case $ac_user_opts in
1251       *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255          ac_unrecognized_sep=', ';;
1256     esac
1257     eval with_$ac_useropt=\$ac_optarg ;;
1258
1259   -without-* | --without-*)
1260     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263       as_fn_error $? "invalid package name: $ac_useropt"
1264     ac_useropt_orig=$ac_useropt
1265     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266     case $ac_user_opts in
1267       *"
1268 "with_$ac_useropt"
1269 "*) ;;
1270       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271          ac_unrecognized_sep=', ';;
1272     esac
1273     eval with_$ac_useropt=no ;;
1274
1275   --x)
1276     # Obsolete; use --with-x.
1277     with_x=yes ;;
1278
1279   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280   | --x-incl | --x-inc | --x-in | --x-i)
1281     ac_prev=x_includes ;;
1282   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284     x_includes=$ac_optarg ;;
1285
1286   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288     ac_prev=x_libraries ;;
1289   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291     x_libraries=$ac_optarg ;;
1292
1293   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1295     ;;
1296
1297   *=*)
1298     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299     # Reject names that are not valid shell variable names.
1300     case $ac_envvar in #(
1301       '' | [0-9]* | *[!_$as_cr_alnum]* )
1302       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1303     esac
1304     eval $ac_envvar=\$ac_optarg
1305     export $ac_envvar ;;
1306
1307   *)
1308     # FIXME: should be removed in autoconf 3.0.
1309     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1313     ;;
1314
1315   esac
1316 done
1317
1318 if test -n "$ac_prev"; then
1319   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320   as_fn_error $? "missing argument to $ac_option"
1321 fi
1322
1323 if test -n "$ac_unrecognized_opts"; then
1324   case $enable_option_checking in
1325     no) ;;
1326     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1327     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328   esac
1329 fi
1330
1331 # Check all directory arguments for consistency.
1332 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333                 datadir sysconfdir sharedstatedir localstatedir includedir \
1334                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335                 libdir localedir mandir
1336 do
1337   eval ac_val=\$$ac_var
1338   # Remove trailing slashes.
1339   case $ac_val in
1340     */ )
1341       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342       eval $ac_var=\$ac_val;;
1343   esac
1344   # Be sure to have absolute directory names.
1345   case $ac_val in
1346     [\\/$]* | ?:[\\/]* )  continue;;
1347     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348   esac
1349   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1350 done
1351
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1355 build=$build_alias
1356 host=$host_alias
1357 target=$target_alias
1358
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361   if test "x$build_alias" = x; then
1362     cross_compiling=maybe
1363   elif test "x$build_alias" != "x$host_alias"; then
1364     cross_compiling=yes
1365   fi
1366 fi
1367
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371 test "$silent" = yes && exec 6>/dev/null
1372
1373
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377   as_fn_error $? "working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379   as_fn_error $? "pwd does not report name of working directory"
1380
1381
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384   ac_srcdir_defaulted=yes
1385   # Try the directory containing this script, then the parent directory.
1386   ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388          X"$as_myself" : 'X\(//\)[^/]' \| \
1389          X"$as_myself" : 'X\(//\)$' \| \
1390          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\/\)[^/].*/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\/\)$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\).*/{
1405             s//\1/
1406             q
1407           }
1408           s/.*/./; q'`
1409   srcdir=$ac_confdir
1410   if test ! -r "$srcdir/$ac_unique_file"; then
1411     srcdir=..
1412   fi
1413 else
1414   ac_srcdir_defaulted=no
1415 fi
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1419 fi
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 ac_abs_confdir=`(
1422         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423         pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426   srcdir=.
1427 fi
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_env_${ac_var}_value=\$${ac_var}
1437   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445   # Omit some internal or obsolete options to make the list less imposing.
1446   # This message is too long to be a string in the A/UX 3.1 sh.
1447   cat <<_ACEOF
1448 \`configure' configures this package to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE.  See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458   -h, --help              display this help and exit
1459       --help=short        display options specific to this package
1460       --help=recursive    display the short help of all the included packages
1461   -V, --version           display version information and exit
1462   -q, --quiet, --silent   do not print \`checking ...' messages
1463       --cache-file=FILE   cache test results in FILE [disabled]
1464   -C, --config-cache      alias for \`--cache-file=config.cache'
1465   -n, --no-create         do not create output files
1466       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469   --prefix=PREFIX         install architecture-independent files in PREFIX
1470                           [$ac_default_prefix]
1471   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1472                           [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482   --bindir=DIR            user executables [EPREFIX/bin]
1483   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1484   --libexecdir=DIR        program executables [EPREFIX/libexec]
1485   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1486   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1487   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1488   --libdir=DIR            object code libraries [EPREFIX/lib]
1489   --includedir=DIR        C header files [PREFIX/include]
1490   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1491   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1492   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1493   --infodir=DIR           info documentation [DATAROOTDIR/info]
1494   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1495   --mandir=DIR            man documentation [DATAROOTDIR/man]
1496   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1497   --htmldir=DIR           html documentation [DOCDIR]
1498   --dvidir=DIR            dvi documentation [DOCDIR]
1499   --pdfdir=DIR            pdf documentation [DOCDIR]
1500   --psdir=DIR             ps documentation [DOCDIR]
1501 _ACEOF
1502
1503   cat <<\_ACEOF
1504
1505 System types:
1506   --build=BUILD     configure for building on BUILD [guessed]
1507   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1508 _ACEOF
1509 fi
1510
1511 if test -n "$ac_init_help"; then
1512
1513   cat <<\_ACEOF
1514
1515 Optional Features:
1516   --disable-option-checking  ignore unrecognized --enable/--with options
1517   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1518   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1519   --enable-maintainer-mode enable makefile rules useful for maintainers
1520   --enable-symlink-install use symlinks when installing instead of hard links
1521   --enable-relative-symlinks use relative symlinks when installing
1522
1523   --enable-symlink-build  use symlinks while building instead of hard links
1524   --enable-verbose-makecmds enable verbose make command output
1525   --enable-elf-shlibs     select ELF shared libraries
1526   --enable-bsd-shlibs     select BSD shared libraries
1527   --enable-profile        build profiling libraries
1528   --enable-gcov           build for coverage testing using gcov
1529   --enable-jbd-debug      enable journal debugging
1530   --enable-blkid-debug    enable blkid debugging
1531   --disable-testio-debug  disable the use of the test I/O manager for debugging
1532   --enable-libuuid        build and use private uuid library
1533   --enable-libblkid       build and use private blkid library
1534   --disable-quota         disable quota support
1535   --disable-backtrace     disable use backtrace
1536   --disable-debugfs       disable support of debugfs program
1537   --disable-imager        disable support of e2image program
1538   --disable-resizer       disable support of e2resize program
1539   --disable-defrag        disable support of e4defrag program
1540   --enable-fsck           build fsck wrapper program
1541   --enable-e2initrd-helper build e2initrd-helper program
1542   --disable-tls           disable use of thread local support
1543   --disable-uuidd         disable building the uuid daemon
1544   --disable-mmp           disable support mmp, Multi Mount Protection
1545   --disable-bmap-stats    disable collection of bitmap stats.
1546   --enable-bmap-stats-ops enable collection of additional bitmap stats
1547   --disable-nls           do not use Native Language Support
1548   --enable-threads={posix|solaris|pth|windows}
1549                           specify multithreading API
1550   --disable-threads       build without multithread safety
1551   --disable-rpath         do not hardcode runtime library paths
1552   --disable-fuse2fs       do not build fuse2fs
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 E2_PKG_CONFIG_STATIC=--static
4905 LDFLAG_DYNAMIC=
4906 PRIVATE_LIBS_CMT=
4907 # Check whether --enable-elf-shlibs was given.
4908 if test "${enable_elf_shlibs+set}" = set; then :
4909   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4910 then
4911         ELF_CMT=#
4912         MAKEFILE_ELF=/dev/null
4913         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4914 $as_echo "Disabling ELF shared libraries" >&6; }
4915 else
4916         E2_PKG_CONFIG_STATIC=
4917         ELF_CMT=
4918         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4919         case "$host_os" in
4920         solaris2.*)
4921                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4922         ;;
4923         esac
4924         BINARY_TYPE=elfbin
4925         LIB_EXT=.so
4926         PRIVATE_LIBS_CMT=#
4927         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4929 $as_echo "Enabling ELF shared libraries" >&6; }
4930 fi
4931
4932 else
4933   MAKEFILE_ELF=/dev/null
4934 ELF_CMT=#
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4936 $as_echo "Disabling ELF shared libraries by default" >&6; }
4937
4938 fi
4939
4940
4941
4942 # Check whether --enable-bsd-shlibs was given.
4943 if test "${enable_bsd_shlibs+set}" = set; then :
4944   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4945 then
4946         BSDLIB_CMT=#
4947         MAKEFILE_BSDLIB=/dev/null
4948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4949 $as_echo "Disabling BSD shared libraries" >&6; }
4950 else
4951         E2_PKG_CONFIG_STATIC=
4952         BSDLIB_CMT=
4953         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4954         LIB_EXT=.so
4955         case "$host_os" in
4956         darwin*)
4957                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4958                 LIB_EXT=.dylib
4959         ;;
4960         esac
4961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4962 $as_echo "Enabling BSD shared libraries" >&6; }
4963 fi
4964
4965 else
4966   MAKEFILE_BSDLIB=/dev/null
4967 BSDLIB_CMT=#
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4969 $as_echo "Disabling BSD shared libraries by default" >&6; }
4970
4971 fi
4972
4973
4974
4975 # Check whether --enable-profile was given.
4976 if test "${enable_profile+set}" = set; then :
4977   enableval=$enable_profile; if test "$enableval" = "no"
4978 then
4979         PROFILE_CMT=#
4980         MAKEFILE_PROFILE=/dev/null
4981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4982 $as_echo "Disabling profiling libraries" >&6; }
4983 else
4984         PROFILE_CMT=
4985         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4986         PROFILED_LIB_EXT=_p.a
4987         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4988 $as_echo "Building profiling libraries" >&6; }
4989 fi
4990
4991 else
4992   PROFILE_CMT=#
4993 MAKEFILE_PROFILE=/dev/null
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4995 $as_echo "Disabling profiling libraries by default" >&6; }
4996
4997 fi
4998
4999
5000
5001 # Check whether --enable-gcov was given.
5002 if test "${enable_gcov+set}" = set; then :
5003   enableval=$enable_gcov; if test "$enableval" = "yes"
5004 then
5005         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5006         LDFLAGS="-fprofile-arcs -ftest-coverage"
5007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5008 $as_echo "Enabling gcov support" >&6; }
5009 fi
5010
5011 fi
5012
5013
5014
5015
5016
5017
5018
5019 # Check whether --enable-jbd-debug was given.
5020 if test "${enable_jbd_debug+set}" = set; then :
5021   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5022 then
5023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5024 $as_echo "Disabling journal debugging" >&6; }
5025 else
5026
5027 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5028
5029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5030 $as_echo "Enabling journal debugging" >&6; }
5031 fi
5032
5033 else
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5035 $as_echo "Disabling journal debugging by default" >&6; }
5036
5037 fi
5038
5039 # Check whether --enable-blkid-debug was given.
5040 if test "${enable_blkid_debug+set}" = set; then :
5041   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5042 then
5043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5044 $as_echo "Disabling blkid debugging" >&6; }
5045 else
5046
5047 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5048
5049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5050 $as_echo "Enabling blkid debugging" >&6; }
5051 fi
5052
5053 else
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5055 $as_echo "Disabling blkid debugging by default" >&6; }
5056
5057 fi
5058
5059 # Check whether --enable-testio-debug was given.
5060 if test "${enable_testio_debug+set}" = set; then :
5061   enableval=$enable_testio_debug;
5062 if test "$enableval" = "no"
5063 then
5064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5065 $as_echo "Disabling testio debugging" >&6; }
5066         TEST_IO_CMT="#"
5067 else
5068         TEST_IO_CMT=
5069         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5070
5071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5072 $as_echo "Enabling testio debugging" >&6; }
5073 fi
5074
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5077 $as_echo "Enabling testio debugging by default" >&6; }
5078 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5079
5080 TEST_IO_CMT=
5081
5082 fi
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5093         if test -n "$ac_tool_prefix"; then
5094   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5095 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5099   $as_echo_n "(cached) " >&6
5100 else
5101   case $PKG_CONFIG in
5102   [\\/]* | ?:[\\/]*)
5103   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5104   ;;
5105   *)
5106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109   IFS=$as_save_IFS
5110   test -z "$as_dir" && as_dir=.
5111     for ac_exec_ext in '' $ac_executable_extensions; do
5112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115     break 2
5116   fi
5117 done
5118   done
5119 IFS=$as_save_IFS
5120
5121   ;;
5122 esac
5123 fi
5124 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5125 if test -n "$PKG_CONFIG"; then
5126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5127 $as_echo "$PKG_CONFIG" >&6; }
5128 else
5129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5131 fi
5132
5133
5134 fi
5135 if test -z "$ac_cv_path_PKG_CONFIG"; then
5136   ac_pt_PKG_CONFIG=$PKG_CONFIG
5137   # Extract the first word of "pkg-config", so it can be a program name with args.
5138 set dummy pkg-config; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   case $ac_pt_PKG_CONFIG in
5145   [\\/]* | ?:[\\/]*)
5146   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5147   ;;
5148   *)
5149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152   IFS=$as_save_IFS
5153   test -z "$as_dir" && as_dir=.
5154     for ac_exec_ext in '' $ac_executable_extensions; do
5155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158     break 2
5159   fi
5160 done
5161   done
5162 IFS=$as_save_IFS
5163
5164   ;;
5165 esac
5166 fi
5167 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5168 if test -n "$ac_pt_PKG_CONFIG"; then
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5170 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5171 else
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5175
5176   if test "x$ac_pt_PKG_CONFIG" = x; then
5177     PKG_CONFIG=""
5178   else
5179     case $cross_compiling:$ac_tool_warned in
5180 yes:)
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5183 ac_tool_warned=yes ;;
5184 esac
5185     PKG_CONFIG=$ac_pt_PKG_CONFIG
5186   fi
5187 else
5188   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5189 fi
5190
5191 fi
5192 if test -n "$PKG_CONFIG"; then
5193         _pkg_min_version=0.9.0
5194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5195 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5196         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5197                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5198 $as_echo "yes" >&6; }
5199         else
5200                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202                 PKG_CONFIG=""
5203         fi
5204 fi
5205 LIBUUID=
5206 DEPLIBUUID=
5207 STATIC_LIBUUID=
5208 DEPSTATIC_LIBUUID=
5209 PROFILED_LIBUUID=
5210 DEPPROFILED_LIBUUID=
5211 UUID_CMT=
5212 # Check whether --enable-libuuid was given.
5213 if test "${enable_libuuid+set}" = set; then :
5214   enableval=$enable_libuuid; if test "$enableval" = "no"
5215 then
5216         if test -z "$PKG_CONFIG"; then
5217                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5218         fi
5219
5220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5221 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5222 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-luuid  $LIBS"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h.  */
5229
5230 /* Override any GCC internal prototype to avoid an error.
5231    Use char because int might match the return type of a GCC
5232    builtin and then its argument prototype would still apply.  */
5233 #ifdef __cplusplus
5234 extern "C"
5235 #endif
5236 char uuid_generate ();
5237 int
5238 main ()
5239 {
5240 return uuid_generate ();
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_link "$LINENO"; then :
5246   ac_cv_lib_uuid_uuid_generate=yes
5247 else
5248   ac_cv_lib_uuid_uuid_generate=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext \
5251     conftest$ac_exeext conftest.$ac_ext
5252 LIBS=$ac_check_lib_save_LIBS
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5255 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5256 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5257   LIBUUID=`$PKG_CONFIG --libs uuid`;
5258                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5259 else
5260   as_fn_error $? "external uuid library not found" "$LINENO" 5
5261 fi
5262
5263         PROFILED_LIBUUID=$LIBUUID
5264         UUID_CMT=#
5265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5266 $as_echo "Disabling private uuid library" >&6; }
5267 else
5268         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5269         DEPLIBUUID=$LIBUUID
5270         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5271         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5272         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5273         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5275 $as_echo "Enabling private uuid library" >&6; }
5276 fi
5277
5278 else
5279   if test -n "$PKG_CONFIG"; then
5280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5281 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5282 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5283   $as_echo_n "(cached) " >&6
5284 else
5285   ac_check_lib_save_LIBS=$LIBS
5286 LIBS="-luuid  $LIBS"
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h.  */
5289
5290 /* Override any GCC internal prototype to avoid an error.
5291    Use char because int might match the return type of a GCC
5292    builtin and then its argument prototype would still apply.  */
5293 #ifdef __cplusplus
5294 extern "C"
5295 #endif
5296 char uuid_generate ();
5297 int
5298 main ()
5299 {
5300 return uuid_generate ();
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_link "$LINENO"; then :
5306   ac_cv_lib_uuid_uuid_generate=yes
5307 else
5308   ac_cv_lib_uuid_uuid_generate=no
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext \
5311     conftest$ac_exeext conftest.$ac_ext
5312 LIBS=$ac_check_lib_save_LIBS
5313 fi
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5315 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5316 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5317   LIBUUID=`$PKG_CONFIG --libs uuid`;
5318                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5319 fi
5320
5321 fi
5322 if test -n "$LIBUUID"; then
5323         PROFILED_LIBUUID=$LIBUUID
5324         UUID_CMT=#
5325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5326 $as_echo "Using system uuid by default" >&6; }
5327 else
5328         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5329         DEPLIBUUID=$LIBUUID
5330         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5331         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5332         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5333         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5335 $as_echo "Enabling private uuid library by default" >&6; }
5336 fi
5337
5338 fi
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5355         if test -n "$ac_tool_prefix"; then
5356   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   case $PKG_CONFIG in
5364   [\\/]* | ?:[\\/]*)
5365   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5366   ;;
5367   *)
5368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373     for ac_exec_ext in '' $ac_executable_extensions; do
5374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380   done
5381 IFS=$as_save_IFS
5382
5383   ;;
5384 esac
5385 fi
5386 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5387 if test -n "$PKG_CONFIG"; then
5388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5389 $as_echo "$PKG_CONFIG" >&6; }
5390 else
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5393 fi
5394
5395
5396 fi
5397 if test -z "$ac_cv_path_PKG_CONFIG"; then
5398   ac_pt_PKG_CONFIG=$PKG_CONFIG
5399   # Extract the first word of "pkg-config", so it can be a program name with args.
5400 set dummy pkg-config; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   case $ac_pt_PKG_CONFIG in
5407   [\\/]* | ?:[\\/]*)
5408   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5409   ;;
5410   *)
5411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416     for ac_exec_ext in '' $ac_executable_extensions; do
5417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423   done
5424 IFS=$as_save_IFS
5425
5426   ;;
5427 esac
5428 fi
5429 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5430 if test -n "$ac_pt_PKG_CONFIG"; then
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5432 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5433 else
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438   if test "x$ac_pt_PKG_CONFIG" = x; then
5439     PKG_CONFIG=""
5440   else
5441     case $cross_compiling:$ac_tool_warned in
5442 yes:)
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5445 ac_tool_warned=yes ;;
5446 esac
5447     PKG_CONFIG=$ac_pt_PKG_CONFIG
5448   fi
5449 else
5450   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5451 fi
5452
5453 fi
5454 if test -n "$PKG_CONFIG"; then
5455         _pkg_min_version=0.9.0
5456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5457 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5458         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5459                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5460 $as_echo "yes" >&6; }
5461         else
5462                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464                 PKG_CONFIG=""
5465         fi
5466 fi
5467 LIBBLKID=
5468 DEPLIBBLKID=
5469 STATIC_LIBBLKID=
5470 DEPSTATIC_LIBBLKID=
5471 PROFILED_LIBBLKID=
5472 DEPPROFILED_LIBBLKID=
5473 BLKID_CMT=
5474
5475 # Check whether --enable-libblkid was given.
5476 if test "${enable_libblkid+set}" = set; then :
5477   enableval=$enable_libblkid; if test "$enableval" = "no"
5478 then
5479         if test -z "$PKG_CONFIG"; then
5480                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5481         fi
5482
5483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5484 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5485 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   ac_check_lib_save_LIBS=$LIBS
5489 LIBS="-lblkid -luuid $LIBS"
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h.  */
5492
5493 /* Override any GCC internal prototype to avoid an error.
5494    Use char because int might match the return type of a GCC
5495    builtin and then its argument prototype would still apply.  */
5496 #ifdef __cplusplus
5497 extern "C"
5498 #endif
5499 char blkid_get_cache ();
5500 int
5501 main ()
5502 {
5503 return blkid_get_cache ();
5504   ;
5505   return 0;
5506 }
5507 _ACEOF
5508 if ac_fn_c_try_link "$LINENO"; then :
5509   ac_cv_lib_blkid_blkid_get_cache=yes
5510 else
5511   ac_cv_lib_blkid_blkid_get_cache=no
5512 fi
5513 rm -f core conftest.err conftest.$ac_objext \
5514     conftest$ac_exeext conftest.$ac_ext
5515 LIBS=$ac_check_lib_save_LIBS
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5518 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5519 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5520   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5521                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5522 else
5523   as_fn_error $? "external blkid library not found" "$LINENO" 5
5524 fi
5525
5526         BLKID_CMT=#
5527         PROFILED_LIBBLKID=$LIBBLKID
5528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5529 $as_echo "Disabling private blkid library" >&6; }
5530 else
5531         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5532         DEPLIBBLKID=$LIBBLKID
5533         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5534         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5535         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5536         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5537         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5538
5539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5540 $as_echo "Enabling private blkid library" >&6; }
5541 fi
5542
5543 else
5544   if test -n "$PKG_CONFIG"; then
5545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5546 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5547 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   ac_check_lib_save_LIBS=$LIBS
5551 LIBS="-lblkid  $LIBS"
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h.  */
5554
5555 /* Override any GCC internal prototype to avoid an error.
5556    Use char because int might match the return type of a GCC
5557    builtin and then its argument prototype would still apply.  */
5558 #ifdef __cplusplus
5559 extern "C"
5560 #endif
5561 char blkid_get_cache ();
5562 int
5563 main ()
5564 {
5565 return blkid_get_cache ();
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 if ac_fn_c_try_link "$LINENO"; then :
5571   ac_cv_lib_blkid_blkid_get_cache=yes
5572 else
5573   ac_cv_lib_blkid_blkid_get_cache=no
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext \
5576     conftest$ac_exeext conftest.$ac_ext
5577 LIBS=$ac_check_lib_save_LIBS
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5580 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5581 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5582   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5583                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5584 fi
5585
5586 fi
5587 if test -n "$LIBBLKID"; then
5588         BLKID_CMT=#
5589         PROFILED_LIBBLKID=$LIBBLKID
5590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5591 $as_echo "Using system blkid library by default" >&6; }
5592 else
5593         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5594         DEPLIBBLKID=$LIBBLKID
5595         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5596         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5597         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5598         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5599         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5600
5601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5602 $as_echo "Enabling private blkid library by default" >&6; }
5603 fi
5604
5605 fi
5606
5607
5608
5609
5610
5611
5612
5613
5614 QUOTA_MAN_COMMENT='.\"'
5615 QUOTA_CMT=
5616
5617
5618
5619
5620
5621
5622
5623
5624 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5625         if test -n "$ac_tool_prefix"; then
5626   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5627 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   case $PKG_CONFIG in
5634   [\\/]* | ?:[\\/]*)
5635   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5636   ;;
5637   *)
5638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641   IFS=$as_save_IFS
5642   test -z "$as_dir" && as_dir=.
5643     for ac_exec_ext in '' $ac_executable_extensions; do
5644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647     break 2
5648   fi
5649 done
5650   done
5651 IFS=$as_save_IFS
5652
5653   ;;
5654 esac
5655 fi
5656 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5657 if test -n "$PKG_CONFIG"; then
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5659 $as_echo "$PKG_CONFIG" >&6; }
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if test -z "$ac_cv_path_PKG_CONFIG"; then
5668   ac_pt_PKG_CONFIG=$PKG_CONFIG
5669   # Extract the first word of "pkg-config", so it can be a program name with args.
5670 set dummy pkg-config; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   case $ac_pt_PKG_CONFIG in
5677   [\\/]* | ?:[\\/]*)
5678   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5679   ;;
5680   *)
5681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686     for ac_exec_ext in '' $ac_executable_extensions; do
5687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693   done
5694 IFS=$as_save_IFS
5695
5696   ;;
5697 esac
5698 fi
5699 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5700 if test -n "$ac_pt_PKG_CONFIG"; then
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5702 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5703 else
5704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5706 fi
5707
5708   if test "x$ac_pt_PKG_CONFIG" = x; then
5709     PKG_CONFIG=""
5710   else
5711     case $cross_compiling:$ac_tool_warned in
5712 yes:)
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5715 ac_tool_warned=yes ;;
5716 esac
5717     PKG_CONFIG=$ac_pt_PKG_CONFIG
5718   fi
5719 else
5720   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5721 fi
5722
5723 fi
5724 if test -n "$PKG_CONFIG"; then
5725         _pkg_min_version=0.9.0
5726         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5727 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5728         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5729                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5730 $as_echo "yes" >&6; }
5731         else
5732                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734                 PKG_CONFIG=""
5735         fi
5736 fi
5737
5738 # Check whether --enable-quota was given.
5739 if test "${enable_quota+set}" = set; then :
5740   enableval=$enable_quota; if test "$enableval" = "no"
5741 then
5742         QUOTA_CMT=#
5743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5744 $as_echo "Disabling quota support" >&6; }
5745 else
5746         QUOTA_CMT=
5747         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5748
5749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5750 $as_echo "Enabling quota support" >&6; }
5751         QUOTA_MAN_COMMENT=""
5752 fi
5753
5754 else
5755   QUOTA_CMT=
5756 QUOTA_MAN_COMMENT=""
5757 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support by default" >&5
5760 $as_echo "Enabling quota support by default" >&6; }
5761
5762 fi
5763
5764 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5765 DEPLIBQUOTA=$LIBQUOTA
5766 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5767 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5768 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5769 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5770
5771
5772
5773
5774
5775
5776
5777
5778 # Check whether --enable-backtrace was given.
5779 if test "${enable_backtrace+set}" = set; then :
5780   enableval=$enable_backtrace; if test "$enableval" = "no"
5781 then
5782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5783 $as_echo "Disabling use of backtrace" >&6; }
5784         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5785
5786 else
5787         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5788 $as_echo "Enabling use of backtrace" >&6; }
5789 fi
5790
5791 else
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5793 $as_echo "Enabling use of backtrace by default" >&6; }
5794
5795 fi
5796
5797 # Check whether --enable-debugfs was given.
5798 if test "${enable_debugfs+set}" = set; then :
5799   enableval=$enable_debugfs; if test "$enableval" = "no"
5800 then
5801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5802 $as_echo "Disabling debugfs support" >&6; }
5803         DEBUGFS_CMT="#"
5804 else
5805         DEBUGFS_CMT=
5806         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5807 $as_echo "Enabling debugfs support" >&6; }
5808 fi
5809
5810 else
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5812 $as_echo "Enabling debugfs support by default" >&6; }
5813 DEBUGFS_CMT=
5814
5815 fi
5816
5817
5818 # Check whether --enable-imager was given.
5819 if test "${enable_imager+set}" = set; then :
5820   enableval=$enable_imager; if test "$enableval" = "no"
5821 then
5822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5823 $as_echo "Disabling e2image support" >&6; }
5824         IMAGER_CMT="#"
5825 else
5826         IMAGER_CMT=
5827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5828 $as_echo "Enabling e2image support" >&6; }
5829 fi
5830
5831 else
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5833 $as_echo "Enabling e2image support by default" >&6; }
5834 IMAGER_CMT=
5835
5836 fi
5837
5838
5839 # Check whether --enable-resizer was given.
5840 if test "${enable_resizer+set}" = set; then :
5841   enableval=$enable_resizer; if test "$enableval" = "no"
5842 then
5843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5844 $as_echo "Disabling e2resize support" >&6; }
5845         RESIZER_CMT="#"
5846 else
5847         RESIZER_CMT=
5848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5849 $as_echo "Enabling e2resize support" >&6; }
5850 fi
5851
5852 else
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5854 $as_echo "Enabling e2resize support by default" >&6; }
5855 RESIZER_CMT=
5856
5857 fi
5858
5859
5860 # Check whether --enable-defrag was given.
5861 if test "${enable_defrag+set}" = set; then :
5862   enableval=$enable_defrag; if test "$enableval" = "no"
5863 then
5864         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5865 $as_echo "Disabling e4defrag support" >&6; }
5866         DEFRAG_CMT="#"
5867 else
5868         DEFRAG_CMT=
5869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5870 $as_echo "Enabling e4defrag support" >&6; }
5871 fi
5872
5873 else
5874   if test -z "$WITH_DIET_LIBC"
5875 then
5876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5877 $as_echo "Enabling e4defrag support by default" >&6; }
5878         DEFRAG_CMT=
5879 else
5880         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5881 $as_echo "Disabling e4defrag support by default" >&6; }
5882         DEFRAG_CMT="#"
5883 fi
5884
5885 fi
5886
5887
5888 # Check whether --enable-fsck was given.
5889 if test "${enable_fsck+set}" = set; then :
5890   enableval=$enable_fsck; if test "$enableval" = "no"
5891 then
5892         FSCK_PROG='' FSCK_MAN=''
5893         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5894 $as_echo "Not building fsck wrapper" >&6; }
5895 else
5896         FSCK_PROG=fsck FSCK_MAN=fsck.8
5897         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5898 $as_echo "Building fsck wrapper" >&6; }
5899 fi
5900
5901 else
5902   case "$host_os" in
5903   gnu*)
5904     FSCK_PROG='' FSCK_MAN=''
5905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5906 $as_echo "Not building fsck wrapper by default" >&6; }
5907     ;;
5908   *)
5909     FSCK_PROG=fsck FSCK_MAN=fsck.8
5910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5911 $as_echo "Building fsck wrapper by default" >&6; }
5912 esac
5913
5914 fi
5915
5916
5917
5918 # Check whether --enable-e2initrd-helper was given.
5919 if test "${enable_e2initrd_helper+set}" = set; then :
5920   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5921 then
5922         E2INITRD_PROG='' E2INITRD_MAN=''
5923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5924 $as_echo "Not building e2initrd helper" >&6; }
5925 else
5926         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5928 $as_echo "Building e2initrd helper" >&6; }
5929 fi
5930
5931 else
5932   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5934 $as_echo "Building e2initrd helper by default" >&6; }
5935
5936 fi
5937
5938
5939
5940 # Check whether --enable-tls was given.
5941 if test "${enable_tls+set}" = set; then :
5942   enableval=$enable_tls; if test "$enableval" = "no"
5943 then
5944         try_tls=""
5945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5946 $as_echo "Disabling thread local support" >&6; }
5947 else
5948         try_tls="yes"
5949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5950 $as_echo "Enabling thread local support" >&6; }
5951 fi
5952
5953 else
5954   if test -n "$WITH_DIET_LIBC"
5955 then
5956         try_tls=""
5957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5958 $as_echo "Diet libc does not support thread local support" >&6; }
5959 else
5960         try_tls="yes"
5961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5962 $as_echo "Try using thread local support by default" >&6; }
5963 fi
5964
5965 fi
5966
5967 if test "$try_tls" = "yes"
5968 then
5969
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5971 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5972   if ${ac_cv_tls+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975
5976     ax_tls_keywords="__thread __declspec(thread) none"
5977     for ax_tls_keyword in $ax_tls_keywords; do
5978        case $ax_tls_keyword in
5979           none) ac_cv_tls=none ; break ;;
5980           *)
5981              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h.  */
5983 #include <stdlib.h>
5984                  static void
5985                  foo(void) {
5986                  static  $ax_tls_keyword  int bar;
5987                  exit(1);
5988                  }
5989 int
5990 main ()
5991 {
5992
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_compile "$LINENO"; then :
5998   ac_cv_tls=$ax_tls_keyword ; break
5999 else
6000   ac_cv_tls=none
6001
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004           esac
6005     done
6006
6007 fi
6008
6009
6010   if test "$ac_cv_tls" != "none"; then
6011
6012 cat >>confdefs.h <<_ACEOF
6013 #define TLS $ac_cv_tls
6014 _ACEOF
6015
6016   fi
6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6018 $as_echo "$ac_cv_tls" >&6; }
6019
6020 fi
6021
6022 # Check whether --enable-uuidd was given.
6023 if test "${enable_uuidd+set}" = set; then :
6024   enableval=$enable_uuidd; if test "$enableval" = "no"
6025 then
6026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6027 $as_echo "Not building uuidd" >&6; }
6028         UUIDD_CMT="#"
6029 else
6030         $as_echo "#define USE_UUIDD 1" >>confdefs.h
6031
6032         UUIDD_CMT=""
6033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6034 $as_echo "Building uuidd" >&6; }
6035 fi
6036
6037 else
6038   $as_echo "#define USE_UUIDD 1" >>confdefs.h
6039
6040 if test -z "$UUID_CMT"
6041 then
6042         UUIDD_CMT=""
6043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6044 $as_echo "Building uuidd by default" >&6; }
6045 else
6046         UUIDD_CMT="#"
6047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6048 $as_echo "Disabling uuidd by default" >&6; }
6049 fi
6050
6051 fi
6052
6053
6054
6055 # Check whether --enable-mmp was given.
6056 if test "${enable_mmp+set}" = set; then :
6057   enableval=$enable_mmp; if test "$enableval" = "no"
6058 then
6059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6060 $as_echo "Disabling mmp support" >&6; }
6061 else
6062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6063 $as_echo "Enabling mmp support" >&6; }
6064         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6065
6066 fi
6067
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6070 $as_echo "Enabling mmp support by default" >&6; }
6071 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6072
6073
6074 fi
6075
6076
6077 # Check whether --enable-bmap-stats was given.
6078 if test "${enable_bmap_stats+set}" = set; then :
6079   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6080 then
6081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6082 $as_echo "Disabling bitmap statistics support" >&6; }
6083 else
6084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6085 $as_echo "Enabling bitmap statistics support" >&6; }
6086         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6087
6088 fi
6089
6090 else
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6092 $as_echo "Enabling bitmap statistics support by default" >&6; }
6093 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6094
6095
6096 fi
6097
6098
6099 # Check whether --enable-bmap-stats-ops was given.
6100 if test "${enable_bmap_stats_ops+set}" = set; then :
6101   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6102 then
6103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6104 $as_echo "Disabling additional bitmap statistics" >&6; }
6105 else
6106                 if test "x${enable_bmap_stats}" = "xno"; then :
6107   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6109 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6110 See \`config.log' for more details" "$LINENO" 5; }
6111 fi
6112
6113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6114 $as_echo "Enabling additional bitmap statistics" >&6; }
6115         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6116
6117 fi
6118
6119 else
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6121 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6122
6123 fi
6124
6125 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6126
6127 GETTEXT_PACKAGE=e2fsprogs
6128 PACKAGE=e2fsprogs
6129 VERSION="$E2FSPROGS_VERSION"
6130 VERSION=0.14.1
6131
6132 cat >>confdefs.h <<_ACEOF
6133 #define PACKAGE "$PACKAGE"
6134 _ACEOF
6135
6136
6137 cat >>confdefs.h <<_ACEOF
6138 #define VERSION "$VERSION"
6139 _ACEOF
6140
6141
6142
6143
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6146 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6147 set x ${MAKE-make}
6148 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6149 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6150   $as_echo_n "(cached) " >&6
6151 else
6152   cat >conftest.make <<\_ACEOF
6153 SHELL = /bin/sh
6154 all:
6155         @echo '@@@%%%=$(MAKE)=@@@%%%'
6156 _ACEOF
6157 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6158 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6159   *@@@%%%=?*=@@@%%%*)
6160     eval ac_cv_prog_make_${ac_make}_set=yes;;
6161   *)
6162     eval ac_cv_prog_make_${ac_make}_set=no;;
6163 esac
6164 rm -f conftest.make
6165 fi
6166 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6168 $as_echo "yes" >&6; }
6169   SET_MAKE=
6170 else
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173   SET_MAKE="MAKE=${MAKE-make}"
6174 fi
6175
6176 # Find a good install program.  We prefer a C program (faster),
6177 # so one script is as good as another.  But avoid the broken or
6178 # incompatible versions:
6179 # SysV /etc/install, /usr/sbin/install
6180 # SunOS /usr/etc/install
6181 # IRIX /sbin/install
6182 # AIX /bin/install
6183 # AmigaOS /C/install, which installs bootblocks on floppy discs
6184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6187 # OS/2's system install, which has a completely different semantic
6188 # ./install, which can be erroneously created by make from ./install.sh.
6189 # Reject install programs that cannot install multiple files.
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6191 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6192 if test -z "$INSTALL"; then
6193 if ${ac_cv_path_install+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201     # Account for people who put trailing slashes in PATH elements.
6202 case $as_dir/ in #((
6203   ./ | .// | /[cC]/* | \
6204   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6205   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6206   /usr/ucb/* ) ;;
6207   *)
6208     # OSF1 and SCO ODT 3.0 have their own names for install.
6209     # Don't use installbsd from OSF since it installs stuff as root
6210     # by default.
6211     for ac_prog in ginstall scoinst install; do
6212       for ac_exec_ext in '' $ac_executable_extensions; do
6213         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6214           if test $ac_prog = install &&
6215             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6216             # AIX install.  It has an incompatible calling convention.
6217             :
6218           elif test $ac_prog = install &&
6219             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6220             # program-specific install script used by HP pwplus--don't use.
6221             :
6222           else
6223             rm -rf conftest.one conftest.two conftest.dir
6224             echo one > conftest.one
6225             echo two > conftest.two
6226             mkdir conftest.dir
6227             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6228               test -s conftest.one && test -s conftest.two &&
6229               test -s conftest.dir/conftest.one &&
6230               test -s conftest.dir/conftest.two
6231             then
6232               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6233               break 3
6234             fi
6235           fi
6236         fi
6237       done
6238     done
6239     ;;
6240 esac
6241
6242   done
6243 IFS=$as_save_IFS
6244
6245 rm -rf conftest.one conftest.two conftest.dir
6246
6247 fi
6248   if test "${ac_cv_path_install+set}" = set; then
6249     INSTALL=$ac_cv_path_install
6250   else
6251     # As a last resort, use the slow shell script.  Don't cache a
6252     # value for INSTALL within a source directory, because that will
6253     # break other packages using the cache if that directory is
6254     # removed, or if the value is a relative name.
6255     INSTALL=$ac_install_sh
6256   fi
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6259 $as_echo "$INSTALL" >&6; }
6260
6261 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6262 # It thinks the first close brace ends the variable substitution.
6263 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6264
6265 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6266
6267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6268
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6270 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6271 if test -z "$MKDIR_P"; then
6272   if ${ac_cv_path_mkdir+:} false; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280     for ac_prog in mkdir gmkdir; do
6281          for ac_exec_ext in '' $ac_executable_extensions; do
6282            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6283            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6284              'mkdir (GNU coreutils) '* | \
6285              'mkdir (coreutils) '* | \
6286              'mkdir (fileutils) '4.1*)
6287                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6288                break 3;;
6289            esac
6290          done
6291        done
6292   done
6293 IFS=$as_save_IFS
6294
6295 fi
6296
6297   test -d ./--version && rmdir ./--version
6298   if test "${ac_cv_path_mkdir+set}" = set; then
6299     MKDIR_P="$ac_cv_path_mkdir -p"
6300   else
6301     # As a last resort, use the slow shell script.  Don't cache a
6302     # value for MKDIR_P within a source directory, because that will
6303     # break other packages using the cache if that directory is
6304     # removed, or if the value is a relative name.
6305     MKDIR_P="$ac_install_sh -d"
6306   fi
6307 fi
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6309 $as_echo "$MKDIR_P" >&6; }
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6312 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6313 if ${ac_cv_path_SED+:} false; then :
6314   $as_echo_n "(cached) " >&6
6315 else
6316             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6317      for ac_i in 1 2 3 4 5 6 7; do
6318        ac_script="$ac_script$as_nl$ac_script"
6319      done
6320      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6321      { ac_script=; unset ac_script;}
6322      if test -z "$SED"; then
6323   ac_path_SED_found=false
6324   # Loop through the user's path and test for each of PROGNAME-LIST
6325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328   IFS=$as_save_IFS
6329   test -z "$as_dir" && as_dir=.
6330     for ac_prog in sed gsed; do
6331     for ac_exec_ext in '' $ac_executable_extensions; do
6332       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6333       as_fn_executable_p "$ac_path_SED" || continue
6334 # Check for GNU ac_path_SED and select it if it is found.
6335   # Check for GNU $ac_path_SED
6336 case `"$ac_path_SED" --version 2>&1` in
6337 *GNU*)
6338   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6339 *)
6340   ac_count=0
6341   $as_echo_n 0123456789 >"conftest.in"
6342   while :
6343   do
6344     cat "conftest.in" "conftest.in" >"conftest.tmp"
6345     mv "conftest.tmp" "conftest.in"
6346     cp "conftest.in" "conftest.nl"
6347     $as_echo '' >> "conftest.nl"
6348     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6349     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6350     as_fn_arith $ac_count + 1 && ac_count=$as_val
6351     if test $ac_count -gt ${ac_path_SED_max-0}; then
6352       # Best one so far, save it but keep looking for a better one
6353       ac_cv_path_SED="$ac_path_SED"
6354       ac_path_SED_max=$ac_count
6355     fi
6356     # 10*(2^10) chars as input seems more than enough
6357     test $ac_count -gt 10 && break
6358   done
6359   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6360 esac
6361
6362       $ac_path_SED_found && break 3
6363     done
6364   done
6365   done
6366 IFS=$as_save_IFS
6367   if test -z "$ac_cv_path_SED"; then
6368     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6369   fi
6370 else
6371   ac_cv_path_SED=$SED
6372 fi
6373
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6376 $as_echo "$ac_cv_path_SED" >&6; }
6377  SED="$ac_cv_path_SED"
6378   rm -f conftest.sed
6379
6380
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6382 $as_echo_n "checking whether NLS is requested... " >&6; }
6383     # Check whether --enable-nls was given.
6384 if test "${enable_nls+set}" = set; then :
6385   enableval=$enable_nls; USE_NLS=$enableval
6386 else
6387   USE_NLS=yes
6388 fi
6389
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6391 $as_echo "$USE_NLS" >&6; }
6392
6393
6394
6395
6396       GETTEXT_MACRO_VERSION=0.18
6397
6398
6399
6400
6401 # Prepare PATH_SEPARATOR.
6402 # The user is always right.
6403 if test "${PATH_SEPARATOR+set}" != set; then
6404   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6405   # contains only /bin. Note that ksh looks also at the FPATH variable,
6406   # so we have to set that as well for the test.
6407   PATH_SEPARATOR=:
6408   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6409     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6410            || PATH_SEPARATOR=';'
6411        }
6412 fi
6413
6414 # Find out how to test for executable files. Don't use a zero-byte file,
6415 # as systems may use methods other than mode bits to determine executability.
6416 cat >conf$$.file <<_ASEOF
6417 #! /bin/sh
6418 exit 0
6419 _ASEOF
6420 chmod +x conf$$.file
6421 if test -x conf$$.file >/dev/null 2>&1; then
6422   ac_executable_p="test -x"
6423 else
6424   ac_executable_p="test -f"
6425 fi
6426 rm -f conf$$.file
6427
6428 # Extract the first word of "msgfmt", so it can be a program name with args.
6429 set dummy msgfmt; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_path_MSGFMT+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   case "$MSGFMT" in
6436   [\\/]* | ?:[\\/]*)
6437     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6438     ;;
6439   *)
6440     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6441     for ac_dir in $PATH; do
6442       IFS="$ac_save_IFS"
6443       test -z "$ac_dir" && ac_dir=.
6444       for ac_exec_ext in '' $ac_executable_extensions; do
6445         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6446           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6447           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6448      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6449             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6450             break 2
6451           fi
6452         fi
6453       done
6454     done
6455     IFS="$ac_save_IFS"
6456   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6457     ;;
6458 esac
6459 fi
6460 MSGFMT="$ac_cv_path_MSGFMT"
6461 if test "$MSGFMT" != ":"; then
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6463 $as_echo "$MSGFMT" >&6; }
6464 else
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468
6469   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6470 set dummy gmsgfmt; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_path_GMSGFMT+:} false; then :
6474   $as_echo_n "(cached) " >&6
6475 else
6476   case $GMSGFMT in
6477   [\\/]* | ?:[\\/]*)
6478   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6479   ;;
6480   *)
6481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495
6496   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6497   ;;
6498 esac
6499 fi
6500 GMSGFMT=$ac_cv_path_GMSGFMT
6501 if test -n "$GMSGFMT"; then
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6503 $as_echo "$GMSGFMT" >&6; }
6504 else
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6507 fi
6508
6509
6510
6511     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6512     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6513     *) MSGFMT_015=$MSGFMT ;;
6514   esac
6515
6516   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6517     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6518     *) GMSGFMT_015=$GMSGFMT ;;
6519   esac
6520
6521
6522
6523 # Prepare PATH_SEPARATOR.
6524 # The user is always right.
6525 if test "${PATH_SEPARATOR+set}" != set; then
6526   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6527   # contains only /bin. Note that ksh looks also at the FPATH variable,
6528   # so we have to set that as well for the test.
6529   PATH_SEPARATOR=:
6530   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6531     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6532            || PATH_SEPARATOR=';'
6533        }
6534 fi
6535
6536 # Find out how to test for executable files. Don't use a zero-byte file,
6537 # as systems may use methods other than mode bits to determine executability.
6538 cat >conf$$.file <<_ASEOF
6539 #! /bin/sh
6540 exit 0
6541 _ASEOF
6542 chmod +x conf$$.file
6543 if test -x conf$$.file >/dev/null 2>&1; then
6544   ac_executable_p="test -x"
6545 else
6546   ac_executable_p="test -f"
6547 fi
6548 rm -f conf$$.file
6549
6550 # Extract the first word of "xgettext", so it can be a program name with args.
6551 set dummy xgettext; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_path_XGETTEXT+:} false; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   case "$XGETTEXT" in
6558   [\\/]* | ?:[\\/]*)
6559     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6560     ;;
6561   *)
6562     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6563     for ac_dir in $PATH; do
6564       IFS="$ac_save_IFS"
6565       test -z "$ac_dir" && ac_dir=.
6566       for ac_exec_ext in '' $ac_executable_extensions; do
6567         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6568           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6569           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6570      (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
6571             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6572             break 2
6573           fi
6574         fi
6575       done
6576     done
6577     IFS="$ac_save_IFS"
6578   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6579     ;;
6580 esac
6581 fi
6582 XGETTEXT="$ac_cv_path_XGETTEXT"
6583 if test "$XGETTEXT" != ":"; then
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6585 $as_echo "$XGETTEXT" >&6; }
6586 else
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591     rm -f messages.po
6592
6593     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6594     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6595     *) XGETTEXT_015=$XGETTEXT ;;
6596   esac
6597
6598
6599
6600 # Prepare PATH_SEPARATOR.
6601 # The user is always right.
6602 if test "${PATH_SEPARATOR+set}" != set; then
6603   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6604   # contains only /bin. Note that ksh looks also at the FPATH variable,
6605   # so we have to set that as well for the test.
6606   PATH_SEPARATOR=:
6607   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6608     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6609            || PATH_SEPARATOR=';'
6610        }
6611 fi
6612
6613 # Find out how to test for executable files. Don't use a zero-byte file,
6614 # as systems may use methods other than mode bits to determine executability.
6615 cat >conf$$.file <<_ASEOF
6616 #! /bin/sh
6617 exit 0
6618 _ASEOF
6619 chmod +x conf$$.file
6620 if test -x conf$$.file >/dev/null 2>&1; then
6621   ac_executable_p="test -x"
6622 else
6623   ac_executable_p="test -f"
6624 fi
6625 rm -f conf$$.file
6626
6627 # Extract the first word of "msgmerge", so it can be a program name with args.
6628 set dummy msgmerge; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_path_MSGMERGE+:} false; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   case "$MSGMERGE" in
6635   [\\/]* | ?:[\\/]*)
6636     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6637     ;;
6638   *)
6639     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6640     for ac_dir in $PATH; do
6641       IFS="$ac_save_IFS"
6642       test -z "$ac_dir" && ac_dir=.
6643       for ac_exec_ext in '' $ac_executable_extensions; do
6644         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6645           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6646           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6647             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6648             break 2
6649           fi
6650         fi
6651       done
6652     done
6653     IFS="$ac_save_IFS"
6654   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6655     ;;
6656 esac
6657 fi
6658 MSGMERGE="$ac_cv_path_MSGMERGE"
6659 if test "$MSGMERGE" != ":"; then
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6661 $as_echo "$MSGMERGE" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667
6668         test -n "$localedir" || localedir='${datadir}/locale'
6669
6670
6671     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6672
6673
6674   ac_config_commands="$ac_config_commands po-directories"
6675
6676
6677
6678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6679 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6680 if ${ac_cv_gnu_library_2+:} false; then :
6681   $as_echo_n "(cached) " >&6
6682 else
6683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685
6686 #include <features.h>
6687 #ifdef __GNU_LIBRARY__
6688  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6689   Lucky GNU user
6690  #endif
6691 #endif
6692
6693 _ACEOF
6694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6695   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6696   ac_cv_gnu_library_2=yes
6697 else
6698   ac_cv_gnu_library_2=no
6699 fi
6700 rm -f conftest*
6701
6702
6703
6704 fi
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6706 $as_echo "$ac_cv_gnu_library_2" >&6; }
6707
6708     GLIBC2="$ac_cv_gnu_library_2"
6709
6710
6711 if test -n "$ac_tool_prefix"; then
6712   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_RANLIB+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$RANLIB"; then
6720   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727     for ac_exec_ext in '' $ac_executable_extensions; do
6728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734   done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 RANLIB=$ac_cv_prog_RANLIB
6740 if test -n "$RANLIB"; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6742 $as_echo "$RANLIB" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_RANLIB"; then
6751   ac_ct_RANLIB=$RANLIB
6752   # Extract the first word of "ranlib", so it can be a program name with args.
6753 set dummy ranlib; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   if test -n "$ac_ct_RANLIB"; then
6760   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767     for ac_exec_ext in '' $ac_executable_extensions; do
6768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769     ac_cv_prog_ac_ct_RANLIB="ranlib"
6770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774   done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6780 if test -n "$ac_ct_RANLIB"; then
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6782 $as_echo "$ac_ct_RANLIB" >&6; }
6783 else
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788   if test "x$ac_ct_RANLIB" = x; then
6789     RANLIB=":"
6790   else
6791     case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797     RANLIB=$ac_ct_RANLIB
6798   fi
6799 else
6800   RANLIB="$ac_cv_prog_RANLIB"
6801 fi
6802
6803
6804
6805   CFLAG_VISIBILITY=
6806   HAVE_VISIBILITY=0
6807   if test -n "$GCC"; then
6808                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6809 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6810     if ${gl_cv_cc_vis_werror+:} false; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813
6814       gl_save_CFLAGS="$CFLAGS"
6815       CFLAGS="$CFLAGS -Werror"
6816       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h.  */
6818
6819 int
6820 main ()
6821 {
6822
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828   gl_cv_cc_vis_werror=yes
6829 else
6830   gl_cv_cc_vis_werror=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833       CFLAGS="$gl_save_CFLAGS"
6834 fi
6835
6836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6837 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6839 $as_echo_n "checking for simple visibility declarations... " >&6; }
6840     if ${gl_cv_cc_visibility+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843
6844       gl_save_CFLAGS="$CFLAGS"
6845       CFLAGS="$CFLAGS -fvisibility=hidden"
6846                                     if test $gl_cv_cc_vis_werror = yes; then
6847         CFLAGS="$CFLAGS -Werror"
6848       fi
6849       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h.  */
6851 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6852              extern __attribute__((__visibility__("default"))) int exportedvar;
6853              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6854              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6855              void dummyfunc (void) {}
6856
6857 int
6858 main ()
6859 {
6860
6861   ;
6862   return 0;
6863 }
6864 _ACEOF
6865 if ac_fn_c_try_compile "$LINENO"; then :
6866   gl_cv_cc_visibility=yes
6867 else
6868   gl_cv_cc_visibility=no
6869 fi
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871       CFLAGS="$gl_save_CFLAGS"
6872 fi
6873
6874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6875 $as_echo "$gl_cv_cc_visibility" >&6; }
6876     if test $gl_cv_cc_visibility = yes; then
6877       CFLAG_VISIBILITY="-fvisibility=hidden"
6878       HAVE_VISIBILITY=1
6879     fi
6880   fi
6881
6882
6883
6884 cat >>confdefs.h <<_ACEOF
6885 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6886 _ACEOF
6887
6888
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6890 $as_echo_n "checking for inline... " >&6; }
6891 if ${ac_cv_c_inline+:} false; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894   ac_cv_c_inline=no
6895 for ac_kw in inline __inline__ __inline; do
6896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h.  */
6898 #ifndef __cplusplus
6899 typedef int foo_t;
6900 static $ac_kw foo_t static_foo () {return 0; }
6901 $ac_kw foo_t foo () {return 0; }
6902 #endif
6903
6904 _ACEOF
6905 if ac_fn_c_try_compile "$LINENO"; then :
6906   ac_cv_c_inline=$ac_kw
6907 fi
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909   test "$ac_cv_c_inline" != no && break
6910 done
6911
6912 fi
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6914 $as_echo "$ac_cv_c_inline" >&6; }
6915
6916 case $ac_cv_c_inline in
6917   inline | yes) ;;
6918   *)
6919     case $ac_cv_c_inline in
6920       no) ac_val=;;
6921       *) ac_val=$ac_cv_c_inline;;
6922     esac
6923     cat >>confdefs.h <<_ACEOF
6924 #ifndef __cplusplus
6925 #define inline $ac_val
6926 #endif
6927 _ACEOF
6928     ;;
6929 esac
6930
6931 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6932 if test "x$ac_cv_type_size_t" = xyes; then :
6933
6934 else
6935
6936 cat >>confdefs.h <<_ACEOF
6937 #define size_t unsigned int
6938 _ACEOF
6939
6940 fi
6941
6942
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6944 $as_echo_n "checking for stdint.h... " >&6; }
6945 if ${gl_cv_header_stdint_h+:} false; then :
6946   $as_echo_n "(cached) " >&6
6947 else
6948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h.  */
6950 #include <sys/types.h>
6951             #include <stdint.h>
6952 int
6953 main ()
6954 {
6955 uintmax_t i = (uintmax_t) -1; return !i;
6956   ;
6957   return 0;
6958 }
6959 _ACEOF
6960 if ac_fn_c_try_compile "$LINENO"; then :
6961   gl_cv_header_stdint_h=yes
6962 else
6963   gl_cv_header_stdint_h=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6968 $as_echo "$gl_cv_header_stdint_h" >&6; }
6969   if test $gl_cv_header_stdint_h = yes; then
6970
6971 cat >>confdefs.h <<_ACEOF
6972 #define HAVE_STDINT_H_WITH_UINTMAX 1
6973 _ACEOF
6974
6975   fi
6976
6977 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6978 # for constant arguments.  Useless!
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6980 $as_echo_n "checking for working alloca.h... " >&6; }
6981 if ${ac_cv_working_alloca_h+:} false; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h.  */
6986 #include <alloca.h>
6987 int
6988 main ()
6989 {
6990 char *p = (char *) alloca (2 * sizeof (int));
6991                           if (p) return 0;
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 if ac_fn_c_try_link "$LINENO"; then :
6997   ac_cv_working_alloca_h=yes
6998 else
6999   ac_cv_working_alloca_h=no
7000 fi
7001 rm -f core conftest.err conftest.$ac_objext \
7002     conftest$ac_exeext conftest.$ac_ext
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7005 $as_echo "$ac_cv_working_alloca_h" >&6; }
7006 if test $ac_cv_working_alloca_h = yes; then
7007
7008 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7009
7010 fi
7011
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7013 $as_echo_n "checking for alloca... " >&6; }
7014 if ${ac_cv_func_alloca_works+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h.  */
7019 #ifdef __GNUC__
7020 # define alloca __builtin_alloca
7021 #else
7022 # ifdef _MSC_VER
7023 #  include <malloc.h>
7024 #  define alloca _alloca
7025 # else
7026 #  ifdef HAVE_ALLOCA_H
7027 #   include <alloca.h>
7028 #  else
7029 #   ifdef _AIX
7030  #pragma alloca
7031 #   else
7032 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7033 void *alloca (size_t);
7034 #    endif
7035 #   endif
7036 #  endif
7037 # endif
7038 #endif
7039
7040 int
7041 main ()
7042 {
7043 char *p = (char *) alloca (1);
7044                                     if (p) return 0;
7045   ;
7046   return 0;
7047 }
7048 _ACEOF
7049 if ac_fn_c_try_link "$LINENO"; then :
7050   ac_cv_func_alloca_works=yes
7051 else
7052   ac_cv_func_alloca_works=no
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext \
7055     conftest$ac_exeext conftest.$ac_ext
7056 fi
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7058 $as_echo "$ac_cv_func_alloca_works" >&6; }
7059
7060 if test $ac_cv_func_alloca_works = yes; then
7061
7062 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7063
7064 else
7065   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7066 # that cause trouble.  Some versions do not even contain alloca or
7067 # contain a buggy version.  If you still want to use their alloca,
7068 # use ar to extract alloca.o from them instead of compiling alloca.c.
7069
7070 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7071
7072 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7073
7074
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7076 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7077 if ${ac_cv_os_cray+:} false; then :
7078   $as_echo_n "(cached) " >&6
7079 else
7080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h.  */
7082 #if defined CRAY && ! defined CRAY2
7083 webecray
7084 #else
7085 wenotbecray
7086 #endif
7087
7088 _ACEOF
7089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7090   $EGREP "webecray" >/dev/null 2>&1; then :
7091   ac_cv_os_cray=yes
7092 else
7093   ac_cv_os_cray=no
7094 fi
7095 rm -f conftest*
7096
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7099 $as_echo "$ac_cv_os_cray" >&6; }
7100 if test $ac_cv_os_cray = yes; then
7101   for ac_func in _getb67 GETB67 getb67; do
7102     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7105
7106 cat >>confdefs.h <<_ACEOF
7107 #define CRAY_STACKSEG_END $ac_func
7108 _ACEOF
7109
7110     break
7111 fi
7112
7113   done
7114 fi
7115
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7117 $as_echo_n "checking stack direction for C alloca... " >&6; }
7118 if ${ac_cv_c_stack_direction+:} false; then :
7119   $as_echo_n "(cached) " >&6
7120 else
7121   if test "$cross_compiling" = yes; then :
7122   ac_cv_c_stack_direction=0
7123 else
7124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h.  */
7126 $ac_includes_default
7127 int
7128 find_stack_direction (int *addr, int depth)
7129 {
7130   int dir, dummy = 0;
7131   if (! addr)
7132     addr = &dummy;
7133   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7134   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7135   return dir + dummy;
7136 }
7137
7138 int
7139 main (int argc, char **argv)
7140 {
7141   return find_stack_direction (0, argc + !argv + 20) < 0;
7142 }
7143 _ACEOF
7144 if ac_fn_c_try_run "$LINENO"; then :
7145   ac_cv_c_stack_direction=1
7146 else
7147   ac_cv_c_stack_direction=-1
7148 fi
7149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7150   conftest.$ac_objext conftest.beam conftest.$ac_ext
7151 fi
7152
7153 fi
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7155 $as_echo "$ac_cv_c_stack_direction" >&6; }
7156 cat >>confdefs.h <<_ACEOF
7157 #define STACK_DIRECTION $ac_cv_c_stack_direction
7158 _ACEOF
7159
7160
7161 fi
7162
7163
7164
7165
7166   for ac_header in $ac_header_list
7167 do :
7168   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7169 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7170 "
7171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7172   cat >>confdefs.h <<_ACEOF
7173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7174 _ACEOF
7175
7176 fi
7177
7178 done
7179
7180
7181
7182
7183
7184
7185
7186
7187 for ac_func in getpagesize
7188 do :
7189   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7190 if test "x$ac_cv_func_getpagesize" = xyes; then :
7191   cat >>confdefs.h <<_ACEOF
7192 #define HAVE_GETPAGESIZE 1
7193 _ACEOF
7194
7195 fi
7196 done
7197
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7199 $as_echo_n "checking for working mmap... " >&6; }
7200 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7201   $as_echo_n "(cached) " >&6
7202 else
7203   if test "$cross_compiling" = yes; then :
7204   ac_cv_func_mmap_fixed_mapped=no
7205 else
7206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h.  */
7208 $ac_includes_default
7209 /* malloc might have been renamed as rpl_malloc. */
7210 #undef malloc
7211
7212 /* Thanks to Mike Haertel and Jim Avera for this test.
7213    Here is a matrix of mmap possibilities:
7214         mmap private not fixed
7215         mmap private fixed at somewhere currently unmapped
7216         mmap private fixed at somewhere already mapped
7217         mmap shared not fixed
7218         mmap shared fixed at somewhere currently unmapped
7219         mmap shared fixed at somewhere already mapped
7220    For private mappings, we should verify that changes cannot be read()
7221    back from the file, nor mmap's back from the file at a different
7222    address.  (There have been systems where private was not correctly
7223    implemented like the infamous i386 svr4.0, and systems where the
7224    VM page cache was not coherent with the file system buffer cache
7225    like early versions of FreeBSD and possibly contemporary NetBSD.)
7226    For shared mappings, we should conversely verify that changes get
7227    propagated back to all the places they're supposed to be.
7228
7229    Grep wants private fixed already mapped.
7230    The main things grep needs to know about mmap are:
7231    * does it exist and is it safe to write into the mmap'd area
7232    * how to use it (BSD variants)  */
7233
7234 #include <fcntl.h>
7235 #include <sys/mman.h>
7236
7237 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7238 char *malloc ();
7239 #endif
7240
7241 /* This mess was copied from the GNU getpagesize.h.  */
7242 #ifndef HAVE_GETPAGESIZE
7243 # ifdef _SC_PAGESIZE
7244 #  define getpagesize() sysconf(_SC_PAGESIZE)
7245 # else /* no _SC_PAGESIZE */
7246 #  ifdef HAVE_SYS_PARAM_H
7247 #   include <sys/param.h>
7248 #   ifdef EXEC_PAGESIZE
7249 #    define getpagesize() EXEC_PAGESIZE
7250 #   else /* no EXEC_PAGESIZE */
7251 #    ifdef NBPG
7252 #     define getpagesize() NBPG * CLSIZE
7253 #     ifndef CLSIZE
7254 #      define CLSIZE 1
7255 #     endif /* no CLSIZE */
7256 #    else /* no NBPG */
7257 #     ifdef NBPC
7258 #      define getpagesize() NBPC
7259 #     else /* no NBPC */
7260 #      ifdef PAGESIZE
7261 #       define getpagesize() PAGESIZE
7262 #      endif /* PAGESIZE */
7263 #     endif /* no NBPC */
7264 #    endif /* no NBPG */
7265 #   endif /* no EXEC_PAGESIZE */
7266 #  else /* no HAVE_SYS_PARAM_H */
7267 #   define getpagesize() 8192   /* punt totally */
7268 #  endif /* no HAVE_SYS_PARAM_H */
7269 # endif /* no _SC_PAGESIZE */
7270
7271 #endif /* no HAVE_GETPAGESIZE */
7272
7273 int
7274 main ()
7275 {
7276   char *data, *data2, *data3;
7277   const char *cdata2;
7278   int i, pagesize;
7279   int fd, fd2;
7280
7281   pagesize = getpagesize ();
7282
7283   /* First, make a file with some known garbage in it. */
7284   data = (char *) malloc (pagesize);
7285   if (!data)
7286     return 1;
7287   for (i = 0; i < pagesize; ++i)
7288     *(data + i) = rand ();
7289   umask (0);
7290   fd = creat ("conftest.mmap", 0600);
7291   if (fd < 0)
7292     return 2;
7293   if (write (fd, data, pagesize) != pagesize)
7294     return 3;
7295   close (fd);
7296
7297   /* Next, check that the tail of a page is zero-filled.  File must have
7298      non-zero length, otherwise we risk SIGBUS for entire page.  */
7299   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7300   if (fd2 < 0)
7301     return 4;
7302   cdata2 = "";
7303   if (write (fd2, cdata2, 1) != 1)
7304     return 5;
7305   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7306   if (data2 == MAP_FAILED)
7307     return 6;
7308   for (i = 0; i < pagesize; ++i)
7309     if (*(data2 + i))
7310       return 7;
7311   close (fd2);
7312   if (munmap (data2, pagesize))
7313     return 8;
7314
7315   /* Next, try to mmap the file at a fixed address which already has
7316      something else allocated at it.  If we can, also make sure that
7317      we see the same garbage.  */
7318   fd = open ("conftest.mmap", O_RDWR);
7319   if (fd < 0)
7320     return 9;
7321   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7322                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7323     return 10;
7324   for (i = 0; i < pagesize; ++i)
7325     if (*(data + i) != *(data2 + i))
7326       return 11;
7327
7328   /* Finally, make sure that changes to the mapped area do not
7329      percolate back to the file as seen by read().  (This is a bug on
7330      some variants of i386 svr4.0.)  */
7331   for (i = 0; i < pagesize; ++i)
7332     *(data2 + i) = *(data2 + i) + 1;
7333   data3 = (char *) malloc (pagesize);
7334   if (!data3)
7335     return 12;
7336   if (read (fd, data3, pagesize) != pagesize)
7337     return 13;
7338   for (i = 0; i < pagesize; ++i)
7339     if (*(data + i) != *(data3 + i))
7340       return 14;
7341   close (fd);
7342   return 0;
7343 }
7344 _ACEOF
7345 if ac_fn_c_try_run "$LINENO"; then :
7346   ac_cv_func_mmap_fixed_mapped=yes
7347 else
7348   ac_cv_func_mmap_fixed_mapped=no
7349 fi
7350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7351   conftest.$ac_objext conftest.beam conftest.$ac_ext
7352 fi
7353
7354 fi
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7356 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7357 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7358
7359 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7360
7361 fi
7362 rm -f conftest.mmap conftest.txt
7363
7364
7365
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7367 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7368 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371
7372       gt_cv_int_divbyzero_sigfpe=
7373       case "$host_os" in
7374         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7375           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7376           # compiling. If we were to perform the real test, 1 Crash Report
7377           # dialog window would pop up.
7378           case "$host_cpu" in
7379             i[34567]86 | x86_64)
7380               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7381           esac
7382           ;;
7383       esac
7384       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7385         if test "$cross_compiling" = yes; then :
7386
7387             # Guess based on the CPU.
7388             case "$host_cpu" in
7389               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7390                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7391               *)
7392                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7393             esac
7394
7395 else
7396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h.  */
7398
7399 #include <stdlib.h>
7400 #include <signal.h>
7401
7402 static void
7403 sigfpe_handler (int sig)
7404 {
7405   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7406   exit (sig != SIGFPE);
7407 }
7408
7409 int x = 1;
7410 int y = 0;
7411 int z;
7412 int nan;
7413
7414 int main ()
7415 {
7416   signal (SIGFPE, sigfpe_handler);
7417 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7418 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7419   signal (SIGTRAP, sigfpe_handler);
7420 #endif
7421 /* Linux/SPARC yields signal SIGILL.  */
7422 #if defined (__sparc__) && defined (__linux__)
7423   signal (SIGILL, sigfpe_handler);
7424 #endif
7425
7426   z = x / y;
7427   nan = y / y;
7428   exit (2);
7429 }
7430
7431 _ACEOF
7432 if ac_fn_c_try_run "$LINENO"; then :
7433   gt_cv_int_divbyzero_sigfpe=yes
7434 else
7435   gt_cv_int_divbyzero_sigfpe=no
7436 fi
7437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7438   conftest.$ac_objext conftest.beam conftest.$ac_ext
7439 fi
7440
7441       fi
7442
7443 fi
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7445 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7446   case "$gt_cv_int_divbyzero_sigfpe" in
7447     *yes) value=1;;
7448     *) value=0;;
7449   esac
7450
7451 cat >>confdefs.h <<_ACEOF
7452 #define INTDIV0_RAISES_SIGFPE $value
7453 _ACEOF
7454
7455
7456
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7458 $as_echo_n "checking for inttypes.h... " >&6; }
7459 if ${gl_cv_header_inttypes_h+:} false; then :
7460   $as_echo_n "(cached) " >&6
7461 else
7462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h.  */
7464
7465 #include <sys/types.h>
7466 #include <inttypes.h>
7467
7468 int
7469 main ()
7470 {
7471 uintmax_t i = (uintmax_t) -1; return !i;
7472   ;
7473   return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477   gl_cv_header_inttypes_h=yes
7478 else
7479   gl_cv_header_inttypes_h=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7484 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7485   if test $gl_cv_header_inttypes_h = yes; then
7486
7487 cat >>confdefs.h <<_ACEOF
7488 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7489 _ACEOF
7490
7491   fi
7492
7493
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7495 $as_echo_n "checking for unsigned long long int... " >&6; }
7496 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   ac_cv_type_unsigned_long_long_int=yes
7500      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7501        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h.  */
7503
7504   /* For now, do not test the preprocessor; as of 2007 there are too many
7505          implementations with broken preprocessors.  Perhaps this can
7506          be revisited in 2012.  In the meantime, code should not expect
7507          #if to work with literals wider than 32 bits.  */
7508       /* Test literals.  */
7509       long long int ll = 9223372036854775807ll;
7510       long long int nll = -9223372036854775807LL;
7511       unsigned long long int ull = 18446744073709551615ULL;
7512       /* Test constant expressions.   */
7513       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7514                      ? 1 : -1)];
7515       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7516                      ? 1 : -1)];
7517       int i = 63;
7518 int
7519 main ()
7520 {
7521 /* Test availability of runtime routines for shift and division.  */
7522       long long int llmax = 9223372036854775807ll;
7523       unsigned long long int ullmax = 18446744073709551615ull;
7524       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7525               | (llmax / ll) | (llmax % ll)
7526               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7527               | (ullmax / ull) | (ullmax % ull));
7528   ;
7529   return 0;
7530 }
7531
7532 _ACEOF
7533 if ac_fn_c_try_link "$LINENO"; then :
7534
7535 else
7536   ac_cv_type_unsigned_long_long_int=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext \
7539     conftest$ac_exeext conftest.$ac_ext
7540      fi
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7543 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7544   if test $ac_cv_type_unsigned_long_long_int = yes; then
7545
7546 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7547
7548   fi
7549
7550
7551
7552
7553   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7554
7555     test $ac_cv_type_unsigned_long_long_int = yes \
7556       && ac_type='unsigned long long' \
7557       || ac_type='unsigned long'
7558
7559 cat >>confdefs.h <<_ACEOF
7560 #define uintmax_t $ac_type
7561 _ACEOF
7562
7563   else
7564
7565 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7566
7567   fi
7568
7569
7570   for ac_header in inttypes.h
7571 do :
7572   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7573 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7574   cat >>confdefs.h <<_ACEOF
7575 #define HAVE_INTTYPES_H 1
7576 _ACEOF
7577
7578 fi
7579
7580 done
7581
7582   if test $ac_cv_header_inttypes_h = yes; then
7583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7584 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7585 if ${gt_cv_inttypes_pri_broken+:} false; then :
7586   $as_echo_n "(cached) " >&6
7587 else
7588
7589         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h.  */
7591
7592 #include <inttypes.h>
7593 #ifdef PRId32
7594 char *p = PRId32;
7595 #endif
7596
7597 int
7598 main ()
7599 {
7600
7601   ;
7602   return 0;
7603 }
7604 _ACEOF
7605 if ac_fn_c_try_compile "$LINENO"; then :
7606   gt_cv_inttypes_pri_broken=no
7607 else
7608   gt_cv_inttypes_pri_broken=yes
7609 fi
7610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7614 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7615   fi
7616   if test "$gt_cv_inttypes_pri_broken" = yes; then
7617
7618 cat >>confdefs.h <<_ACEOF
7619 #define PRI_MACROS_BROKEN 1
7620 _ACEOF
7621
7622     PRI_MACROS_BROKEN=1
7623   else
7624     PRI_MACROS_BROKEN=0
7625   fi
7626
7627
7628
7629
7630
7631
7632
7633   # Check whether --enable-threads was given.
7634 if test "${enable_threads+set}" = set; then :
7635   enableval=$enable_threads; gl_use_threads=$enableval
7636 else
7637   if test -n "$gl_use_threads_default"; then
7638        gl_use_threads="$gl_use_threads_default"
7639      else
7640        case "$host_os" in
7641                                                                osf*) gl_use_threads=no ;;
7642          cygwin*)
7643                case `uname -r` in
7644                  1.[0-5].*) gl_use_threads=no ;;
7645                  *)         gl_use_threads=yes ;;
7646                esac
7647                ;;
7648          *)    gl_use_threads=yes ;;
7649        esac
7650      fi
7651
7652 fi
7653
7654   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7655     # For using <pthread.h>:
7656     case "$host_os" in
7657       osf*)
7658         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7659         # groks <pthread.h>. cc also understands the flag -pthread, but
7660         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7661         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7662         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7663         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7664         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7665         ;;
7666     esac
7667     # Some systems optimize for single-threaded programs by default, and
7668     # need special flags to disable these optimizations. For example, the
7669     # definition of 'errno' in <errno.h>.
7670     case "$host_os" in
7671       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7672       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7673     esac
7674   fi
7675
7676
7677
7678
7679
7680       if test "X$prefix" = "XNONE"; then
7681     acl_final_prefix="$ac_default_prefix"
7682   else
7683     acl_final_prefix="$prefix"
7684   fi
7685   if test "X$exec_prefix" = "XNONE"; then
7686     acl_final_exec_prefix='${prefix}'
7687   else
7688     acl_final_exec_prefix="$exec_prefix"
7689   fi
7690   acl_save_prefix="$prefix"
7691   prefix="$acl_final_prefix"
7692   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7693   prefix="$acl_save_prefix"
7694
7695
7696
7697 # Check whether --with-gnu-ld was given.
7698 if test "${with_gnu_ld+set}" = set; then :
7699   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7700 else
7701   with_gnu_ld=no
7702 fi
7703
7704 # Prepare PATH_SEPARATOR.
7705 # The user is always right.
7706 if test "${PATH_SEPARATOR+set}" != set; then
7707   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7708   # contains only /bin. Note that ksh looks also at the FPATH variable,
7709   # so we have to set that as well for the test.
7710   PATH_SEPARATOR=:
7711   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7712     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7713            || PATH_SEPARATOR=';'
7714        }
7715 fi
7716
7717 ac_prog=ld
7718 if test "$GCC" = yes; then
7719   # Check if gcc -print-prog-name=ld gives a path.
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7721 $as_echo_n "checking for ld used by $CC... " >&6; }
7722   case $host in
7723   *-*-mingw*)
7724     # gcc leaves a trailing carriage return which upsets mingw
7725     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7726   *)
7727     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7728   esac
7729   case $ac_prog in
7730     # Accept absolute paths.
7731     [\\/]* | ?:[\\/]*)
7732       re_direlt='/[^/][^/]*/\.\./'
7733       # Canonicalize the pathname of ld
7734       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7735       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7736         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7737       done
7738       test -z "$LD" && LD="$ac_prog"
7739       ;;
7740   "")
7741     # If it fails, then pretend we aren't using GCC.
7742     ac_prog=ld
7743     ;;
7744   *)
7745     # If it is relative, then search for the first ld in PATH.
7746     with_gnu_ld=unknown
7747     ;;
7748   esac
7749 elif test "$with_gnu_ld" = yes; then
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7751 $as_echo_n "checking for GNU ld... " >&6; }
7752 else
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7754 $as_echo_n "checking for non-GNU ld... " >&6; }
7755 fi
7756 if ${acl_cv_path_LD+:} false; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   if test -z "$LD"; then
7760   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7761   for ac_dir in $PATH; do
7762     IFS="$acl_save_ifs"
7763     test -z "$ac_dir" && ac_dir=.
7764     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7765       acl_cv_path_LD="$ac_dir/$ac_prog"
7766       # Check to see if the program is GNU ld.  I'd rather use --version,
7767       # but apparently some variants of GNU ld only accept -v.
7768       # Break only if it was the GNU/non-GNU ld that we prefer.
7769       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7770       *GNU* | *'with BFD'*)
7771         test "$with_gnu_ld" != no && break
7772         ;;
7773       *)
7774         test "$with_gnu_ld" != yes && break
7775         ;;
7776       esac
7777     fi
7778   done
7779   IFS="$acl_save_ifs"
7780 else
7781   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7782 fi
7783 fi
7784
7785 LD="$acl_cv_path_LD"
7786 if test -n "$LD"; then
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7788 $as_echo "$LD" >&6; }
7789 else
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7795 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7796 if ${acl_cv_prog_gnu_ld+:} false; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7800 case `$LD -v 2>&1 </dev/null` in
7801 *GNU* | *'with BFD'*)
7802   acl_cv_prog_gnu_ld=yes
7803   ;;
7804 *)
7805   acl_cv_prog_gnu_ld=no
7806   ;;
7807 esac
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7810 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7811 with_gnu_ld=$acl_cv_prog_gnu_ld
7812
7813
7814
7815
7816                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7817 $as_echo_n "checking for shared library run path origin... " >&6; }
7818 if ${acl_cv_rpath+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821
7822     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7823     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7824     . ./conftest.sh
7825     rm -f ./conftest.sh
7826     acl_cv_rpath=done
7827
7828 fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7830 $as_echo "$acl_cv_rpath" >&6; }
7831   wl="$acl_cv_wl"
7832   acl_libext="$acl_cv_libext"
7833   acl_shlibext="$acl_cv_shlibext"
7834   acl_libname_spec="$acl_cv_libname_spec"
7835   acl_library_names_spec="$acl_cv_library_names_spec"
7836   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7837   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7838   acl_hardcode_direct="$acl_cv_hardcode_direct"
7839   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7840     # Check whether --enable-rpath was given.
7841 if test "${enable_rpath+set}" = set; then :
7842   enableval=$enable_rpath; :
7843 else
7844   enable_rpath=yes
7845 fi
7846
7847
7848
7849
7850   acl_libdirstem=lib
7851   acl_libdirstem2=
7852   case "$host_os" in
7853     solaris*)
7854                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7855 $as_echo_n "checking for 64-bit host... " >&6; }
7856 if ${gl_cv_solaris_64bit+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h.  */
7861
7862 #ifdef _LP64
7863 sixtyfour bits
7864 #endif
7865
7866 _ACEOF
7867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7868   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7869   gl_cv_solaris_64bit=yes
7870 else
7871   gl_cv_solaris_64bit=no
7872 fi
7873 rm -f conftest*
7874
7875
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7878 $as_echo "$gl_cv_solaris_64bit" >&6; }
7879       if test $gl_cv_solaris_64bit = yes; then
7880         acl_libdirstem=lib/64
7881         case "$host_cpu" in
7882           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7883           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7884         esac
7885       fi
7886       ;;
7887     *)
7888       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7889       if test -n "$searchpath"; then
7890         acl_save_IFS="${IFS=    }"; IFS=":"
7891         for searchdir in $searchpath; do
7892           if test -d "$searchdir"; then
7893             case "$searchdir" in
7894               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7895               */../ | */.. )
7896                 # Better ignore directories of this form. They are misleading.
7897                 ;;
7898               *) searchdir=`cd "$searchdir" && pwd`
7899                  case "$searchdir" in
7900                    */lib64 ) acl_libdirstem=lib64 ;;
7901                  esac ;;
7902             esac
7903           fi
7904         done
7905         IFS="$acl_save_IFS"
7906       fi
7907       ;;
7908   esac
7909   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7910
7911
7912
7913   gl_threads_api=none
7914   LIBTHREAD=
7915   LTLIBTHREAD=
7916   LIBMULTITHREAD=
7917   LTLIBMULTITHREAD=
7918   if test "$gl_use_threads" != no; then
7919         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7920 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7921 if ${gl_cv_have_weak+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   gl_cv_have_weak=no
7925               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h.  */
7927 extern void xyzzy ();
7928 #pragma weak xyzzy
7929 int
7930 main ()
7931 {
7932 xyzzy();
7933   ;
7934   return 0;
7935 }
7936 _ACEOF
7937 if ac_fn_c_try_link "$LINENO"; then :
7938   gl_cv_have_weak=maybe
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941     conftest$ac_exeext conftest.$ac_ext
7942        if test $gl_cv_have_weak = maybe; then
7943                            if test "$cross_compiling" = yes; then :
7944                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h.  */
7946 #ifdef __ELF__
7947                Extensible Linking Format
7948                #endif
7949
7950 _ACEOF
7951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7952   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7953   gl_cv_have_weak="guessing yes"
7954 else
7955   gl_cv_have_weak="guessing no"
7956 fi
7957 rm -f conftest*
7958
7959
7960 else
7961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h.  */
7963
7964 #include <stdio.h>
7965 #pragma weak fputs
7966 int main ()
7967 {
7968   return (fputs == NULL);
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_run "$LINENO"; then :
7972   gl_cv_have_weak=yes
7973 else
7974   gl_cv_have_weak=no
7975 fi
7976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7977   conftest.$ac_objext conftest.beam conftest.$ac_ext
7978 fi
7979
7980        fi
7981
7982 fi
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7984 $as_echo "$gl_cv_have_weak" >&6; }
7985     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7986       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7987       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7988       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7989 if test "x$ac_cv_header_pthread_h" = xyes; then :
7990   gl_have_pthread_h=yes
7991 else
7992   gl_have_pthread_h=no
7993 fi
7994
7995
7996       if test "$gl_have_pthread_h" = yes; then
7997         # Other possible tests:
7998         #   -lpthreads (FSU threads, PCthreads)
7999         #   -lgthreads
8000         gl_have_pthread=
8001         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
8002         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
8003         # the second one only in libpthread, and lock.c needs it.
8004         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h.  */
8006 #include <pthread.h>
8007 int
8008 main ()
8009 {
8010 pthread_mutex_lock((pthread_mutex_t*)0);
8011                pthread_mutexattr_init((pthread_mutexattr_t*)0);
8012   ;
8013   return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_link "$LINENO"; then :
8017   gl_have_pthread=yes
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext \
8020     conftest$ac_exeext conftest.$ac_ext
8021         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
8022         # since it is defined as a macro on OSF/1.)
8023         if test -n "$gl_have_pthread"; then
8024           # The program links fine without libpthread. But it may actually
8025           # need to link with libpthread in order to create multiple threads.
8026           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8027 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8028 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8029   $as_echo_n "(cached) " >&6
8030 else
8031   ac_check_lib_save_LIBS=$LIBS
8032 LIBS="-lpthread  $LIBS"
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h.  */
8035
8036 /* Override any GCC internal prototype to avoid an error.
8037    Use char because int might match the return type of a GCC
8038    builtin and then its argument prototype would still apply.  */
8039 #ifdef __cplusplus
8040 extern "C"
8041 #endif
8042 char pthread_kill ();
8043 int
8044 main ()
8045 {
8046 return pthread_kill ();
8047   ;
8048   return 0;
8049 }
8050 _ACEOF
8051 if ac_fn_c_try_link "$LINENO"; then :
8052   ac_cv_lib_pthread_pthread_kill=yes
8053 else
8054   ac_cv_lib_pthread_pthread_kill=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext \
8057     conftest$ac_exeext conftest.$ac_ext
8058 LIBS=$ac_check_lib_save_LIBS
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8061 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8062 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8063   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8064              # On Solaris and HP-UX, most pthread functions exist also in libc.
8065              # Therefore pthread_in_use() needs to actually try to create a
8066              # thread: pthread_create from libc will fail, whereas
8067              # pthread_create will actually create a thread.
8068              case "$host_os" in
8069                solaris* | hpux*)
8070
8071 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8072
8073              esac
8074
8075 fi
8076
8077         else
8078           # Some library is needed. Try libpthread and libc_r.
8079           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8080 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8081 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   ac_check_lib_save_LIBS=$LIBS
8085 LIBS="-lpthread  $LIBS"
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h.  */
8088
8089 /* Override any GCC internal prototype to avoid an error.
8090    Use char because int might match the return type of a GCC
8091    builtin and then its argument prototype would still apply.  */
8092 #ifdef __cplusplus
8093 extern "C"
8094 #endif
8095 char pthread_kill ();
8096 int
8097 main ()
8098 {
8099 return pthread_kill ();
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 if ac_fn_c_try_link "$LINENO"; then :
8105   ac_cv_lib_pthread_pthread_kill=yes
8106 else
8107   ac_cv_lib_pthread_pthread_kill=no
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext \
8110     conftest$ac_exeext conftest.$ac_ext
8111 LIBS=$ac_check_lib_save_LIBS
8112 fi
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8114 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8115 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8116   gl_have_pthread=yes
8117              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8118              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8119 fi
8120
8121           if test -z "$gl_have_pthread"; then
8122             # For FreeBSD 4.
8123             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8124 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8125 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   ac_check_lib_save_LIBS=$LIBS
8129 LIBS="-lc_r  $LIBS"
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h.  */
8132
8133 /* Override any GCC internal prototype to avoid an error.
8134    Use char because int might match the return type of a GCC
8135    builtin and then its argument prototype would still apply.  */
8136 #ifdef __cplusplus
8137 extern "C"
8138 #endif
8139 char pthread_kill ();
8140 int
8141 main ()
8142 {
8143 return pthread_kill ();
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 if ac_fn_c_try_link "$LINENO"; then :
8149   ac_cv_lib_c_r_pthread_kill=yes
8150 else
8151   ac_cv_lib_c_r_pthread_kill=no
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext \
8154     conftest$ac_exeext conftest.$ac_ext
8155 LIBS=$ac_check_lib_save_LIBS
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8158 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8159 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8160   gl_have_pthread=yes
8161                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8162                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8163 fi
8164
8165           fi
8166         fi
8167         if test -n "$gl_have_pthread"; then
8168           gl_threads_api=posix
8169
8170 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8171
8172           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8173             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8174
8175 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8176
8177               LIBTHREAD=
8178               LTLIBTHREAD=
8179             fi
8180           fi
8181         fi
8182       fi
8183     fi
8184     if test -z "$gl_have_pthread"; then
8185       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8186         gl_have_solaristhread=
8187         gl_save_LIBS="$LIBS"
8188         LIBS="$LIBS -lthread"
8189         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h.  */
8191
8192 #include <thread.h>
8193 #include <synch.h>
8194
8195 int
8196 main ()
8197 {
8198 thr_self();
8199   ;
8200   return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_link "$LINENO"; then :
8204   gl_have_solaristhread=yes
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext \
8207     conftest$ac_exeext conftest.$ac_ext
8208         LIBS="$gl_save_LIBS"
8209         if test -n "$gl_have_solaristhread"; then
8210           gl_threads_api=solaris
8211           LIBTHREAD=-lthread
8212           LTLIBTHREAD=-lthread
8213           LIBMULTITHREAD="$LIBTHREAD"
8214           LTLIBMULTITHREAD="$LTLIBTHREAD"
8215
8216 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8217
8218           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8219
8220 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8221
8222             LIBTHREAD=
8223             LTLIBTHREAD=
8224           fi
8225         fi
8226       fi
8227     fi
8228     if test "$gl_use_threads" = pth; then
8229       gl_save_CPPFLAGS="$CPPFLAGS"
8230
8231
8232
8233
8234
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8236 $as_echo_n "checking how to link with libpth... " >&6; }
8237 if ${ac_cv_libpth_libs+:} false; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240
8241
8242
8243
8244
8245
8246
8247
8248     use_additional=yes
8249
8250   acl_save_prefix="$prefix"
8251   prefix="$acl_final_prefix"
8252   acl_save_exec_prefix="$exec_prefix"
8253   exec_prefix="$acl_final_exec_prefix"
8254
8255     eval additional_includedir=\"$includedir\"
8256     eval additional_libdir=\"$libdir\"
8257
8258   exec_prefix="$acl_save_exec_prefix"
8259   prefix="$acl_save_prefix"
8260
8261
8262 # Check whether --with-libpth-prefix was given.
8263 if test "${with_libpth_prefix+set}" = set; then :
8264   withval=$with_libpth_prefix;
8265     if test "X$withval" = "Xno"; then
8266       use_additional=no
8267     else
8268       if test "X$withval" = "X"; then
8269
8270   acl_save_prefix="$prefix"
8271   prefix="$acl_final_prefix"
8272   acl_save_exec_prefix="$exec_prefix"
8273   exec_prefix="$acl_final_exec_prefix"
8274
8275           eval additional_includedir=\"$includedir\"
8276           eval additional_libdir=\"$libdir\"
8277
8278   exec_prefix="$acl_save_exec_prefix"
8279   prefix="$acl_save_prefix"
8280
8281       else
8282         additional_includedir="$withval/include"
8283         additional_libdir="$withval/$acl_libdirstem"
8284         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8285            && ! test -d "$withval/$acl_libdirstem"; then
8286           additional_libdir="$withval/$acl_libdirstem2"
8287         fi
8288       fi
8289     fi
8290
8291 fi
8292
8293       LIBPTH=
8294   LTLIBPTH=
8295   INCPTH=
8296   LIBPTH_PREFIX=
8297       HAVE_LIBPTH=
8298   rpathdirs=
8299   ltrpathdirs=
8300   names_already_handled=
8301   names_next_round='pth '
8302   while test -n "$names_next_round"; do
8303     names_this_round="$names_next_round"
8304     names_next_round=
8305     for name in $names_this_round; do
8306       already_handled=
8307       for n in $names_already_handled; do
8308         if test "$n" = "$name"; then
8309           already_handled=yes
8310           break
8311         fi
8312       done
8313       if test -z "$already_handled"; then
8314         names_already_handled="$names_already_handled $name"
8315                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8316         eval value=\"\$HAVE_LIB$uppername\"
8317         if test -n "$value"; then
8318           if test "$value" = yes; then
8319             eval value=\"\$LIB$uppername\"
8320             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8321             eval value=\"\$LTLIB$uppername\"
8322             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8323           else
8324                                     :
8325           fi
8326         else
8327                               found_dir=
8328           found_la=
8329           found_so=
8330           found_a=
8331           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8332           if test -n "$acl_shlibext"; then
8333             shrext=".$acl_shlibext"             # typically: shrext=.so
8334           else
8335             shrext=
8336           fi
8337           if test $use_additional = yes; then
8338             dir="$additional_libdir"
8339                                     if test -n "$acl_shlibext"; then
8340               if test -f "$dir/$libname$shrext"; then
8341                 found_dir="$dir"
8342                 found_so="$dir/$libname$shrext"
8343               else
8344                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8345                   ver=`(cd "$dir" && \
8346                         for f in "$libname$shrext".*; do echo "$f"; done \
8347                         | sed -e "s,^$libname$shrext\\\\.,," \
8348                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8349                         | sed 1q ) 2>/dev/null`
8350                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8351                     found_dir="$dir"
8352                     found_so="$dir/$libname$shrext.$ver"
8353                   fi
8354                 else
8355                   eval library_names=\"$acl_library_names_spec\"
8356                   for f in $library_names; do
8357                     if test -f "$dir/$f"; then
8358                       found_dir="$dir"
8359                       found_so="$dir/$f"
8360                       break
8361                     fi
8362                   done
8363                 fi
8364               fi
8365             fi
8366                         if test "X$found_dir" = "X"; then
8367               if test -f "$dir/$libname.$acl_libext"; then
8368                 found_dir="$dir"
8369                 found_a="$dir/$libname.$acl_libext"
8370               fi
8371             fi
8372             if test "X$found_dir" != "X"; then
8373               if test -f "$dir/$libname.la"; then
8374                 found_la="$dir/$libname.la"
8375               fi
8376             fi
8377           fi
8378           if test "X$found_dir" = "X"; then
8379             for x in $LDFLAGS $LTLIBPTH; do
8380
8381   acl_save_prefix="$prefix"
8382   prefix="$acl_final_prefix"
8383   acl_save_exec_prefix="$exec_prefix"
8384   exec_prefix="$acl_final_exec_prefix"
8385   eval x=\"$x\"
8386   exec_prefix="$acl_save_exec_prefix"
8387   prefix="$acl_save_prefix"
8388
8389               case "$x" in
8390                 -L*)
8391                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8392                                     if test -n "$acl_shlibext"; then
8393                     if test -f "$dir/$libname$shrext"; then
8394                       found_dir="$dir"
8395                       found_so="$dir/$libname$shrext"
8396                     else
8397                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8398                         ver=`(cd "$dir" && \
8399                               for f in "$libname$shrext".*; do echo "$f"; done \
8400                               | sed -e "s,^$libname$shrext\\\\.,," \
8401                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8402                               | sed 1q ) 2>/dev/null`
8403                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8404                           found_dir="$dir"
8405                           found_so="$dir/$libname$shrext.$ver"
8406                         fi
8407                       else
8408                         eval library_names=\"$acl_library_names_spec\"
8409                         for f in $library_names; do
8410                           if test -f "$dir/$f"; then
8411                             found_dir="$dir"
8412                             found_so="$dir/$f"
8413                             break
8414                           fi
8415                         done
8416                       fi
8417                     fi
8418                   fi
8419                                     if test "X$found_dir" = "X"; then
8420                     if test -f "$dir/$libname.$acl_libext"; then
8421                       found_dir="$dir"
8422                       found_a="$dir/$libname.$acl_libext"
8423                     fi
8424                   fi
8425                   if test "X$found_dir" != "X"; then
8426                     if test -f "$dir/$libname.la"; then
8427                       found_la="$dir/$libname.la"
8428                     fi
8429                   fi
8430                   ;;
8431               esac
8432               if test "X$found_dir" != "X"; then
8433                 break
8434               fi
8435             done
8436           fi
8437           if test "X$found_dir" != "X"; then
8438                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8439             if test "X$found_so" != "X"; then
8440                                                         if test "$enable_rpath" = no \
8441                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8442                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8443                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8444               else
8445                                                                                 haveit=
8446                 for x in $ltrpathdirs; do
8447                   if test "X$x" = "X$found_dir"; then
8448                     haveit=yes
8449                     break
8450                   fi
8451                 done
8452                 if test -z "$haveit"; then
8453                   ltrpathdirs="$ltrpathdirs $found_dir"
8454                 fi
8455                                 if test "$acl_hardcode_direct" = yes; then
8456                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8457                 else
8458                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8459                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8460                                                             haveit=
8461                     for x in $rpathdirs; do
8462                       if test "X$x" = "X$found_dir"; then
8463                         haveit=yes
8464                         break
8465                       fi
8466                     done
8467                     if test -z "$haveit"; then
8468                       rpathdirs="$rpathdirs $found_dir"
8469                     fi
8470                   else
8471                                                                                 haveit=
8472                     for x in $LDFLAGS $LIBPTH; 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-L$found_dir"; then
8483                         haveit=yes
8484                         break
8485                       fi
8486                     done
8487                     if test -z "$haveit"; then
8488                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8489                     fi
8490                     if test "$acl_hardcode_minus_L" != no; then
8491                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8492                     else
8493                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8494                     fi
8495                   fi
8496                 fi
8497               fi
8498             else
8499               if test "X$found_a" != "X"; then
8500                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8501               else
8502                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8503               fi
8504             fi
8505                         additional_includedir=
8506             case "$found_dir" in
8507               */$acl_libdirstem | */$acl_libdirstem/)
8508                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8509                 if test "$name" = 'pth'; then
8510                   LIBPTH_PREFIX="$basedir"
8511                 fi
8512                 additional_includedir="$basedir/include"
8513                 ;;
8514               */$acl_libdirstem2 | */$acl_libdirstem2/)
8515                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8516                 if test "$name" = 'pth'; then
8517                   LIBPTH_PREFIX="$basedir"
8518                 fi
8519                 additional_includedir="$basedir/include"
8520                 ;;
8521             esac
8522             if test "X$additional_includedir" != "X"; then
8523                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8524                 haveit=
8525                 if test "X$additional_includedir" = "X/usr/local/include"; then
8526                   if test -n "$GCC"; then
8527                     case $host_os in
8528                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8529                     esac
8530                   fi
8531                 fi
8532                 if test -z "$haveit"; then
8533                   for x in $CPPFLAGS $INCPTH; do
8534
8535   acl_save_prefix="$prefix"
8536   prefix="$acl_final_prefix"
8537   acl_save_exec_prefix="$exec_prefix"
8538   exec_prefix="$acl_final_exec_prefix"
8539   eval x=\"$x\"
8540   exec_prefix="$acl_save_exec_prefix"
8541   prefix="$acl_save_prefix"
8542
8543                     if test "X$x" = "X-I$additional_includedir"; then
8544                       haveit=yes
8545                       break
8546                     fi
8547                   done
8548                   if test -z "$haveit"; then
8549                     if test -d "$additional_includedir"; then
8550                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8551                     fi
8552                   fi
8553                 fi
8554               fi
8555             fi
8556                         if test -n "$found_la"; then
8557                                                         save_libdir="$libdir"
8558               case "$found_la" in
8559                 */* | *\\*) . "$found_la" ;;
8560                 *) . "./$found_la" ;;
8561               esac
8562               libdir="$save_libdir"
8563                             for dep in $dependency_libs; do
8564                 case "$dep" in
8565                   -L*)
8566                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8567                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8568                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8569                       haveit=
8570                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8571                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8572                         if test -n "$GCC"; then
8573                           case $host_os in
8574                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8575                           esac
8576                         fi
8577                       fi
8578                       if test -z "$haveit"; then
8579                         haveit=
8580                         for x in $LDFLAGS $LIBPTH; do
8581
8582   acl_save_prefix="$prefix"
8583   prefix="$acl_final_prefix"
8584   acl_save_exec_prefix="$exec_prefix"
8585   exec_prefix="$acl_final_exec_prefix"
8586   eval x=\"$x\"
8587   exec_prefix="$acl_save_exec_prefix"
8588   prefix="$acl_save_prefix"
8589
8590                           if test "X$x" = "X-L$additional_libdir"; then
8591                             haveit=yes
8592                             break
8593                           fi
8594                         done
8595                         if test -z "$haveit"; then
8596                           if test -d "$additional_libdir"; then
8597                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8598                           fi
8599                         fi
8600                         haveit=
8601                         for x in $LDFLAGS $LTLIBPTH; do
8602
8603   acl_save_prefix="$prefix"
8604   prefix="$acl_final_prefix"
8605   acl_save_exec_prefix="$exec_prefix"
8606   exec_prefix="$acl_final_exec_prefix"
8607   eval x=\"$x\"
8608   exec_prefix="$acl_save_exec_prefix"
8609   prefix="$acl_save_prefix"
8610
8611                           if test "X$x" = "X-L$additional_libdir"; then
8612                             haveit=yes
8613                             break
8614                           fi
8615                         done
8616                         if test -z "$haveit"; then
8617                           if test -d "$additional_libdir"; then
8618                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8619                           fi
8620                         fi
8621                       fi
8622                     fi
8623                     ;;
8624                   -R*)
8625                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8626                     if test "$enable_rpath" != no; then
8627                                                                   haveit=
8628                       for x in $rpathdirs; do
8629                         if test "X$x" = "X$dir"; then
8630                           haveit=yes
8631                           break
8632                         fi
8633                       done
8634                       if test -z "$haveit"; then
8635                         rpathdirs="$rpathdirs $dir"
8636                       fi
8637                                                                   haveit=
8638                       for x in $ltrpathdirs; do
8639                         if test "X$x" = "X$dir"; then
8640                           haveit=yes
8641                           break
8642                         fi
8643                       done
8644                       if test -z "$haveit"; then
8645                         ltrpathdirs="$ltrpathdirs $dir"
8646                       fi
8647                     fi
8648                     ;;
8649                   -l*)
8650                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8651                     ;;
8652                   *.la)
8653                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8654                     ;;
8655                   *)
8656                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8657                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8658                     ;;
8659                 esac
8660               done
8661             fi
8662           else
8663                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8664             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8665           fi
8666         fi
8667       fi
8668     done
8669   done
8670   if test "X$rpathdirs" != "X"; then
8671     if test -n "$acl_hardcode_libdir_separator"; then
8672                         alldirs=
8673       for found_dir in $rpathdirs; do
8674         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8675       done
8676             acl_save_libdir="$libdir"
8677       libdir="$alldirs"
8678       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8679       libdir="$acl_save_libdir"
8680       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8681     else
8682             for found_dir in $rpathdirs; do
8683         acl_save_libdir="$libdir"
8684         libdir="$found_dir"
8685         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8686         libdir="$acl_save_libdir"
8687         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8688       done
8689     fi
8690   fi
8691   if test "X$ltrpathdirs" != "X"; then
8692             for found_dir in $ltrpathdirs; do
8693       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8694     done
8695   fi
8696
8697
8698
8699
8700
8701
8702     ac_cv_libpth_libs="$LIBPTH"
8703     ac_cv_libpth_ltlibs="$LTLIBPTH"
8704     ac_cv_libpth_cppflags="$INCPTH"
8705     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8706
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8709 $as_echo "$ac_cv_libpth_libs" >&6; }
8710   LIBPTH="$ac_cv_libpth_libs"
8711   LTLIBPTH="$ac_cv_libpth_ltlibs"
8712   INCPTH="$ac_cv_libpth_cppflags"
8713   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8714
8715   for element in $INCPTH; do
8716     haveit=
8717     for x in $CPPFLAGS; do
8718
8719   acl_save_prefix="$prefix"
8720   prefix="$acl_final_prefix"
8721   acl_save_exec_prefix="$exec_prefix"
8722   exec_prefix="$acl_final_exec_prefix"
8723   eval x=\"$x\"
8724   exec_prefix="$acl_save_exec_prefix"
8725   prefix="$acl_save_prefix"
8726
8727       if test "X$x" = "X$element"; then
8728         haveit=yes
8729         break
8730       fi
8731     done
8732     if test -z "$haveit"; then
8733       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8734     fi
8735   done
8736
8737
8738
8739
8740       HAVE_LIBPTH=yes
8741
8742
8743
8744       gl_have_pth=
8745       gl_save_LIBS="$LIBS"
8746       LIBS="$LIBS $LIBPTH"
8747       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h.  */
8749 #include <pth.h>
8750 int
8751 main ()
8752 {
8753 pth_self();
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_link "$LINENO"; then :
8759   gl_have_pth=yes
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext \
8762     conftest$ac_exeext conftest.$ac_ext
8763       LIBS="$gl_save_LIBS"
8764       if test -n "$gl_have_pth"; then
8765         gl_threads_api=pth
8766         LIBTHREAD="$LIBPTH"
8767         LTLIBTHREAD="$LTLIBPTH"
8768         LIBMULTITHREAD="$LIBTHREAD"
8769         LTLIBMULTITHREAD="$LTLIBTHREAD"
8770
8771 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8772
8773         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8774           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8775
8776 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8777
8778             LIBTHREAD=
8779             LTLIBTHREAD=
8780           fi
8781         fi
8782       else
8783         CPPFLAGS="$gl_save_CPPFLAGS"
8784       fi
8785     fi
8786     if test -z "$gl_have_pthread"; then
8787       case "$gl_use_threads" in
8788         yes | windows | win32) # The 'win32' is for backward compatibility.
8789           if { case "$host_os" in
8790                  mingw*) true;;
8791                  *) false;;
8792                esac
8793              }; then
8794             gl_threads_api=windows
8795
8796 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8797
8798           fi
8799           ;;
8800       esac
8801     fi
8802   fi
8803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8804 $as_echo_n "checking for multithread API to use... " >&6; }
8805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8806 $as_echo "$gl_threads_api" >&6; }
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818   if test "$gl_threads_api" = posix; then
8819     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8820     # pthread_rwlock_* functions.
8821     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8822 "
8823 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8824
8825 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8826
8827 fi
8828
8829     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h.  */
8832
8833       #include <pthread.h>
8834 int
8835 main ()
8836 {
8837
8838 #if __FreeBSD__ == 4
8839 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8840 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8841        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8842 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8843 #else
8844 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8845 return !x;
8846 #endif
8847
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 if ac_fn_c_try_compile "$LINENO"; then :
8853
8854 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8855
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858   fi
8859   :
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872     use_additional=yes
8873
8874   acl_save_prefix="$prefix"
8875   prefix="$acl_final_prefix"
8876   acl_save_exec_prefix="$exec_prefix"
8877   exec_prefix="$acl_final_exec_prefix"
8878
8879     eval additional_includedir=\"$includedir\"
8880     eval additional_libdir=\"$libdir\"
8881
8882   exec_prefix="$acl_save_exec_prefix"
8883   prefix="$acl_save_prefix"
8884
8885
8886 # Check whether --with-libiconv-prefix was given.
8887 if test "${with_libiconv_prefix+set}" = set; then :
8888   withval=$with_libiconv_prefix;
8889     if test "X$withval" = "Xno"; then
8890       use_additional=no
8891     else
8892       if test "X$withval" = "X"; then
8893
8894   acl_save_prefix="$prefix"
8895   prefix="$acl_final_prefix"
8896   acl_save_exec_prefix="$exec_prefix"
8897   exec_prefix="$acl_final_exec_prefix"
8898
8899           eval additional_includedir=\"$includedir\"
8900           eval additional_libdir=\"$libdir\"
8901
8902   exec_prefix="$acl_save_exec_prefix"
8903   prefix="$acl_save_prefix"
8904
8905       else
8906         additional_includedir="$withval/include"
8907         additional_libdir="$withval/$acl_libdirstem"
8908         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8909            && ! test -d "$withval/$acl_libdirstem"; then
8910           additional_libdir="$withval/$acl_libdirstem2"
8911         fi
8912       fi
8913     fi
8914
8915 fi
8916
8917       LIBICONV=
8918   LTLIBICONV=
8919   INCICONV=
8920   LIBICONV_PREFIX=
8921       HAVE_LIBICONV=
8922   rpathdirs=
8923   ltrpathdirs=
8924   names_already_handled=
8925   names_next_round='iconv '
8926   while test -n "$names_next_round"; do
8927     names_this_round="$names_next_round"
8928     names_next_round=
8929     for name in $names_this_round; do
8930       already_handled=
8931       for n in $names_already_handled; do
8932         if test "$n" = "$name"; then
8933           already_handled=yes
8934           break
8935         fi
8936       done
8937       if test -z "$already_handled"; then
8938         names_already_handled="$names_already_handled $name"
8939                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8940         eval value=\"\$HAVE_LIB$uppername\"
8941         if test -n "$value"; then
8942           if test "$value" = yes; then
8943             eval value=\"\$LIB$uppername\"
8944             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8945             eval value=\"\$LTLIB$uppername\"
8946             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8947           else
8948                                     :
8949           fi
8950         else
8951                               found_dir=
8952           found_la=
8953           found_so=
8954           found_a=
8955           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8956           if test -n "$acl_shlibext"; then
8957             shrext=".$acl_shlibext"             # typically: shrext=.so
8958           else
8959             shrext=
8960           fi
8961           if test $use_additional = yes; then
8962             dir="$additional_libdir"
8963                                     if test -n "$acl_shlibext"; then
8964               if test -f "$dir/$libname$shrext"; then
8965                 found_dir="$dir"
8966                 found_so="$dir/$libname$shrext"
8967               else
8968                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8969                   ver=`(cd "$dir" && \
8970                         for f in "$libname$shrext".*; do echo "$f"; done \
8971                         | sed -e "s,^$libname$shrext\\\\.,," \
8972                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8973                         | sed 1q ) 2>/dev/null`
8974                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8975                     found_dir="$dir"
8976                     found_so="$dir/$libname$shrext.$ver"
8977                   fi
8978                 else
8979                   eval library_names=\"$acl_library_names_spec\"
8980                   for f in $library_names; do
8981                     if test -f "$dir/$f"; then
8982                       found_dir="$dir"
8983                       found_so="$dir/$f"
8984                       break
8985                     fi
8986                   done
8987                 fi
8988               fi
8989             fi
8990                         if test "X$found_dir" = "X"; then
8991               if test -f "$dir/$libname.$acl_libext"; then
8992                 found_dir="$dir"
8993                 found_a="$dir/$libname.$acl_libext"
8994               fi
8995             fi
8996             if test "X$found_dir" != "X"; then
8997               if test -f "$dir/$libname.la"; then
8998                 found_la="$dir/$libname.la"
8999               fi
9000             fi
9001           fi
9002           if test "X$found_dir" = "X"; then
9003             for x in $LDFLAGS $LTLIBICONV; do
9004
9005   acl_save_prefix="$prefix"
9006   prefix="$acl_final_prefix"
9007   acl_save_exec_prefix="$exec_prefix"
9008   exec_prefix="$acl_final_exec_prefix"
9009   eval x=\"$x\"
9010   exec_prefix="$acl_save_exec_prefix"
9011   prefix="$acl_save_prefix"
9012
9013               case "$x" in
9014                 -L*)
9015                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9016                                     if test -n "$acl_shlibext"; then
9017                     if test -f "$dir/$libname$shrext"; then
9018                       found_dir="$dir"
9019                       found_so="$dir/$libname$shrext"
9020                     else
9021                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9022                         ver=`(cd "$dir" && \
9023                               for f in "$libname$shrext".*; do echo "$f"; done \
9024                               | sed -e "s,^$libname$shrext\\\\.,," \
9025                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9026                               | sed 1q ) 2>/dev/null`
9027                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9028                           found_dir="$dir"
9029                           found_so="$dir/$libname$shrext.$ver"
9030                         fi
9031                       else
9032                         eval library_names=\"$acl_library_names_spec\"
9033                         for f in $library_names; do
9034                           if test -f "$dir/$f"; then
9035                             found_dir="$dir"
9036                             found_so="$dir/$f"
9037                             break
9038                           fi
9039                         done
9040                       fi
9041                     fi
9042                   fi
9043                                     if test "X$found_dir" = "X"; then
9044                     if test -f "$dir/$libname.$acl_libext"; then
9045                       found_dir="$dir"
9046                       found_a="$dir/$libname.$acl_libext"
9047                     fi
9048                   fi
9049                   if test "X$found_dir" != "X"; then
9050                     if test -f "$dir/$libname.la"; then
9051                       found_la="$dir/$libname.la"
9052                     fi
9053                   fi
9054                   ;;
9055               esac
9056               if test "X$found_dir" != "X"; then
9057                 break
9058               fi
9059             done
9060           fi
9061           if test "X$found_dir" != "X"; then
9062                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9063             if test "X$found_so" != "X"; then
9064                                                         if test "$enable_rpath" = no \
9065                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9066                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9067                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9068               else
9069                                                                                 haveit=
9070                 for x in $ltrpathdirs; do
9071                   if test "X$x" = "X$found_dir"; then
9072                     haveit=yes
9073                     break
9074                   fi
9075                 done
9076                 if test -z "$haveit"; then
9077                   ltrpathdirs="$ltrpathdirs $found_dir"
9078                 fi
9079                                 if test "$acl_hardcode_direct" = yes; then
9080                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9081                 else
9082                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9083                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9084                                                             haveit=
9085                     for x in $rpathdirs; do
9086                       if test "X$x" = "X$found_dir"; then
9087                         haveit=yes
9088                         break
9089                       fi
9090                     done
9091                     if test -z "$haveit"; then
9092                       rpathdirs="$rpathdirs $found_dir"
9093                     fi
9094                   else
9095                                                                                 haveit=
9096                     for x in $LDFLAGS $LIBICONV; 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-L$found_dir"; then
9107                         haveit=yes
9108                         break
9109                       fi
9110                     done
9111                     if test -z "$haveit"; then
9112                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9113                     fi
9114                     if test "$acl_hardcode_minus_L" != no; then
9115                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9116                     else
9117                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9118                     fi
9119                   fi
9120                 fi
9121               fi
9122             else
9123               if test "X$found_a" != "X"; then
9124                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9125               else
9126                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9127               fi
9128             fi
9129                         additional_includedir=
9130             case "$found_dir" in
9131               */$acl_libdirstem | */$acl_libdirstem/)
9132                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9133                 if test "$name" = 'iconv'; then
9134                   LIBICONV_PREFIX="$basedir"
9135                 fi
9136                 additional_includedir="$basedir/include"
9137                 ;;
9138               */$acl_libdirstem2 | */$acl_libdirstem2/)
9139                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9140                 if test "$name" = 'iconv'; then
9141                   LIBICONV_PREFIX="$basedir"
9142                 fi
9143                 additional_includedir="$basedir/include"
9144                 ;;
9145             esac
9146             if test "X$additional_includedir" != "X"; then
9147                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9148                 haveit=
9149                 if test "X$additional_includedir" = "X/usr/local/include"; then
9150                   if test -n "$GCC"; then
9151                     case $host_os in
9152                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9153                     esac
9154                   fi
9155                 fi
9156                 if test -z "$haveit"; then
9157                   for x in $CPPFLAGS $INCICONV; do
9158
9159   acl_save_prefix="$prefix"
9160   prefix="$acl_final_prefix"
9161   acl_save_exec_prefix="$exec_prefix"
9162   exec_prefix="$acl_final_exec_prefix"
9163   eval x=\"$x\"
9164   exec_prefix="$acl_save_exec_prefix"
9165   prefix="$acl_save_prefix"
9166
9167                     if test "X$x" = "X-I$additional_includedir"; then
9168                       haveit=yes
9169                       break
9170                     fi
9171                   done
9172                   if test -z "$haveit"; then
9173                     if test -d "$additional_includedir"; then
9174                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9175                     fi
9176                   fi
9177                 fi
9178               fi
9179             fi
9180                         if test -n "$found_la"; then
9181                                                         save_libdir="$libdir"
9182               case "$found_la" in
9183                 */* | *\\*) . "$found_la" ;;
9184                 *) . "./$found_la" ;;
9185               esac
9186               libdir="$save_libdir"
9187                             for dep in $dependency_libs; do
9188                 case "$dep" in
9189                   -L*)
9190                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9191                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9192                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9193                       haveit=
9194                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9195                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9196                         if test -n "$GCC"; then
9197                           case $host_os in
9198                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9199                           esac
9200                         fi
9201                       fi
9202                       if test -z "$haveit"; then
9203                         haveit=
9204                         for x in $LDFLAGS $LIBICONV; do
9205
9206   acl_save_prefix="$prefix"
9207   prefix="$acl_final_prefix"
9208   acl_save_exec_prefix="$exec_prefix"
9209   exec_prefix="$acl_final_exec_prefix"
9210   eval x=\"$x\"
9211   exec_prefix="$acl_save_exec_prefix"
9212   prefix="$acl_save_prefix"
9213
9214                           if test "X$x" = "X-L$additional_libdir"; then
9215                             haveit=yes
9216                             break
9217                           fi
9218                         done
9219                         if test -z "$haveit"; then
9220                           if test -d "$additional_libdir"; then
9221                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9222                           fi
9223                         fi
9224                         haveit=
9225                         for x in $LDFLAGS $LTLIBICONV; do
9226
9227   acl_save_prefix="$prefix"
9228   prefix="$acl_final_prefix"
9229   acl_save_exec_prefix="$exec_prefix"
9230   exec_prefix="$acl_final_exec_prefix"
9231   eval x=\"$x\"
9232   exec_prefix="$acl_save_exec_prefix"
9233   prefix="$acl_save_prefix"
9234
9235                           if test "X$x" = "X-L$additional_libdir"; then
9236                             haveit=yes
9237                             break
9238                           fi
9239                         done
9240                         if test -z "$haveit"; then
9241                           if test -d "$additional_libdir"; then
9242                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9243                           fi
9244                         fi
9245                       fi
9246                     fi
9247                     ;;
9248                   -R*)
9249                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9250                     if test "$enable_rpath" != no; then
9251                                                                   haveit=
9252                       for x in $rpathdirs; do
9253                         if test "X$x" = "X$dir"; then
9254                           haveit=yes
9255                           break
9256                         fi
9257                       done
9258                       if test -z "$haveit"; then
9259                         rpathdirs="$rpathdirs $dir"
9260                       fi
9261                                                                   haveit=
9262                       for x in $ltrpathdirs; do
9263                         if test "X$x" = "X$dir"; then
9264                           haveit=yes
9265                           break
9266                         fi
9267                       done
9268                       if test -z "$haveit"; then
9269                         ltrpathdirs="$ltrpathdirs $dir"
9270                       fi
9271                     fi
9272                     ;;
9273                   -l*)
9274                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9275                     ;;
9276                   *.la)
9277                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9278                     ;;
9279                   *)
9280                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9281                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9282                     ;;
9283                 esac
9284               done
9285             fi
9286           else
9287                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9288             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9289           fi
9290         fi
9291       fi
9292     done
9293   done
9294   if test "X$rpathdirs" != "X"; then
9295     if test -n "$acl_hardcode_libdir_separator"; then
9296                         alldirs=
9297       for found_dir in $rpathdirs; do
9298         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9299       done
9300             acl_save_libdir="$libdir"
9301       libdir="$alldirs"
9302       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9303       libdir="$acl_save_libdir"
9304       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9305     else
9306             for found_dir in $rpathdirs; do
9307         acl_save_libdir="$libdir"
9308         libdir="$found_dir"
9309         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9310         libdir="$acl_save_libdir"
9311         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9312       done
9313     fi
9314   fi
9315   if test "X$ltrpathdirs" != "X"; then
9316             for found_dir in $ltrpathdirs; do
9317       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9318     done
9319   fi
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332           am_save_CPPFLAGS="$CPPFLAGS"
9333
9334   for element in $INCICONV; do
9335     haveit=
9336     for x in $CPPFLAGS; do
9337
9338   acl_save_prefix="$prefix"
9339   prefix="$acl_final_prefix"
9340   acl_save_exec_prefix="$exec_prefix"
9341   exec_prefix="$acl_final_exec_prefix"
9342   eval x=\"$x\"
9343   exec_prefix="$acl_save_exec_prefix"
9344   prefix="$acl_save_prefix"
9345
9346       if test "X$x" = "X$element"; then
9347         haveit=yes
9348         break
9349       fi
9350     done
9351     if test -z "$haveit"; then
9352       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9353     fi
9354   done
9355
9356
9357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9358 $as_echo_n "checking for iconv... " >&6; }
9359 if ${am_cv_func_iconv+:} false; then :
9360   $as_echo_n "(cached) " >&6
9361 else
9362
9363     am_cv_func_iconv="no, consider installing GNU libiconv"
9364     am_cv_lib_iconv=no
9365     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h.  */
9367
9368 #include <stdlib.h>
9369 #include <iconv.h>
9370
9371 int
9372 main ()
9373 {
9374 iconv_t cd = iconv_open("","");
9375            iconv(cd,NULL,NULL,NULL,NULL);
9376            iconv_close(cd);
9377   ;
9378   return 0;
9379 }
9380 _ACEOF
9381 if ac_fn_c_try_link "$LINENO"; then :
9382   am_cv_func_iconv=yes
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext \
9385     conftest$ac_exeext conftest.$ac_ext
9386     if test "$am_cv_func_iconv" != yes; then
9387       am_save_LIBS="$LIBS"
9388       LIBS="$LIBS $LIBICONV"
9389       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h.  */
9391
9392 #include <stdlib.h>
9393 #include <iconv.h>
9394
9395 int
9396 main ()
9397 {
9398 iconv_t cd = iconv_open("","");
9399              iconv(cd,NULL,NULL,NULL,NULL);
9400              iconv_close(cd);
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 if ac_fn_c_try_link "$LINENO"; then :
9406   am_cv_lib_iconv=yes
9407         am_cv_func_iconv=yes
9408 fi
9409 rm -f core conftest.err conftest.$ac_objext \
9410     conftest$ac_exeext conftest.$ac_ext
9411       LIBS="$am_save_LIBS"
9412     fi
9413
9414 fi
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9416 $as_echo "$am_cv_func_iconv" >&6; }
9417   if test "$am_cv_func_iconv" = yes; then
9418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9419 $as_echo_n "checking for working iconv... " >&6; }
9420 if ${am_cv_func_iconv_works+:} false; then :
9421   $as_echo_n "(cached) " >&6
9422 else
9423
9424                   am_save_LIBS="$LIBS"
9425       if test $am_cv_lib_iconv = yes; then
9426         LIBS="$LIBS $LIBICONV"
9427       fi
9428       if test "$cross_compiling" = yes; then :
9429
9430          case "$host_os" in
9431            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9432            *)            am_cv_func_iconv_works="guessing yes" ;;
9433          esac
9434
9435 else
9436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h.  */
9438
9439 #include <iconv.h>
9440 #include <string.h>
9441 int main ()
9442 {
9443   int result = 0;
9444   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9445      returns.  */
9446   {
9447     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9448     if (cd_utf8_to_88591 != (iconv_t)(-1))
9449       {
9450         static const char input[] = "\342\202\254"; /* EURO SIGN */
9451         char buf[10];
9452         const char *inptr = input;
9453         size_t inbytesleft = strlen (input);
9454         char *outptr = buf;
9455         size_t outbytesleft = sizeof (buf);
9456         size_t res = iconv (cd_utf8_to_88591,
9457                             (char **) &inptr, &inbytesleft,
9458                             &outptr, &outbytesleft);
9459         if (res == 0)
9460           result |= 1;
9461         iconv_close (cd_utf8_to_88591);
9462       }
9463   }
9464   /* Test against Solaris 10 bug: Failures are not distinguishable from
9465      successful returns.  */
9466   {
9467     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9468     if (cd_ascii_to_88591 != (iconv_t)(-1))
9469       {
9470         static const char input[] = "\263";
9471         char buf[10];
9472         const char *inptr = input;
9473         size_t inbytesleft = strlen (input);
9474         char *outptr = buf;
9475         size_t outbytesleft = sizeof (buf);
9476         size_t res = iconv (cd_ascii_to_88591,
9477                             (char **) &inptr, &inbytesleft,
9478                             &outptr, &outbytesleft);
9479         if (res == 0)
9480           result |= 2;
9481         iconv_close (cd_ascii_to_88591);
9482       }
9483   }
9484   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9485   {
9486     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9487     if (cd_88591_to_utf8 != (iconv_t)(-1))
9488       {
9489         static const char input[] = "\304";
9490         static char buf[2] = { (char)0xDE, (char)0xAD };
9491         const char *inptr = input;
9492         size_t inbytesleft = 1;
9493         char *outptr = buf;
9494         size_t outbytesleft = 1;
9495         size_t res = iconv (cd_88591_to_utf8,
9496                             (char **) &inptr, &inbytesleft,
9497                             &outptr, &outbytesleft);
9498         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9499           result |= 4;
9500         iconv_close (cd_88591_to_utf8);
9501       }
9502   }
9503 #if 0 /* This bug could be worked around by the caller.  */
9504   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9505   {
9506     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9507     if (cd_88591_to_utf8 != (iconv_t)(-1))
9508       {
9509         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9510         char buf[50];
9511         const char *inptr = input;
9512         size_t inbytesleft = strlen (input);
9513         char *outptr = buf;
9514         size_t outbytesleft = sizeof (buf);
9515         size_t res = iconv (cd_88591_to_utf8,
9516                             (char **) &inptr, &inbytesleft,
9517                             &outptr, &outbytesleft);
9518         if ((int)res > 0)
9519           result |= 8;
9520         iconv_close (cd_88591_to_utf8);
9521       }
9522   }
9523 #endif
9524   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9525      provided.  */
9526   if (/* Try standardized names.  */
9527       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9528       /* Try IRIX, OSF/1 names.  */
9529       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9530       /* Try AIX names.  */
9531       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9532       /* Try HP-UX names.  */
9533       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9534     result |= 16;
9535   return result;
9536 }
9537 _ACEOF
9538 if ac_fn_c_try_run "$LINENO"; then :
9539   am_cv_func_iconv_works=yes
9540 else
9541   am_cv_func_iconv_works=no
9542 fi
9543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9544   conftest.$ac_objext conftest.beam conftest.$ac_ext
9545 fi
9546
9547       LIBS="$am_save_LIBS"
9548
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9551 $as_echo "$am_cv_func_iconv_works" >&6; }
9552     case "$am_cv_func_iconv_works" in
9553       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9554       *)   am_func_iconv=yes ;;
9555     esac
9556   else
9557     am_func_iconv=no am_cv_lib_iconv=no
9558   fi
9559   if test "$am_func_iconv" = yes; then
9560
9561 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9562
9563   fi
9564   if test "$am_cv_lib_iconv" = yes; then
9565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9566 $as_echo_n "checking how to link with libiconv... " >&6; }
9567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9568 $as_echo "$LIBICONV" >&6; }
9569   else
9570             CPPFLAGS="$am_save_CPPFLAGS"
9571     LIBICONV=
9572     LTLIBICONV=
9573   fi
9574
9575
9576
9577   if test "$am_cv_func_iconv" = yes; then
9578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9579 $as_echo_n "checking for iconv declaration... " >&6; }
9580     if ${am_cv_proto_iconv+:} false; then :
9581   $as_echo_n "(cached) " >&6
9582 else
9583
9584       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h.  */
9586
9587 #include <stdlib.h>
9588 #include <iconv.h>
9589 extern
9590 #ifdef __cplusplus
9591 "C"
9592 #endif
9593 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9594 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9595 #else
9596 size_t iconv();
9597 #endif
9598
9599 int
9600 main ()
9601 {
9602
9603   ;
9604   return 0;
9605 }
9606 _ACEOF
9607 if ac_fn_c_try_compile "$LINENO"; then :
9608   am_cv_proto_iconv_arg1=""
9609 else
9610   am_cv_proto_iconv_arg1="const"
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613       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);"
9614 fi
9615
9616     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9617     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9618          $am_cv_proto_iconv" >&5
9619 $as_echo "
9620          $am_cv_proto_iconv" >&6; }
9621
9622 cat >>confdefs.h <<_ACEOF
9623 #define ICONV_CONST $am_cv_proto_iconv_arg1
9624 _ACEOF
9625
9626
9627   fi
9628
9629
9630
9631
9632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h.  */
9634 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9635 int
9636 main ()
9637 {
9638
9639   ;
9640   return 0;
9641 }
9642 _ACEOF
9643 if ac_fn_c_try_link "$LINENO"; then :
9644
9645 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9646
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext \
9649     conftest$ac_exeext conftest.$ac_ext
9650
9651   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9652 do :
9653   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9654 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9656   cat >>confdefs.h <<_ACEOF
9657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9658 _ACEOF
9659
9660 fi
9661
9662 done
9663
9664   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9665     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9666     argz_stringify argz_next __fsetlocking
9667 do :
9668   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9669 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9670 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9671   cat >>confdefs.h <<_ACEOF
9672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9673 _ACEOF
9674
9675 fi
9676 done
9677
9678
9679           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9680 "
9681 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9682   ac_have_decl=1
9683 else
9684   ac_have_decl=0
9685 fi
9686
9687 cat >>confdefs.h <<_ACEOF
9688 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9689 _ACEOF
9690 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9691 "
9692 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9693   ac_have_decl=1
9694 else
9695   ac_have_decl=0
9696 fi
9697
9698 cat >>confdefs.h <<_ACEOF
9699 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9700 _ACEOF
9701
9702
9703
9704
9705                       for ac_prog in bison
9706 do
9707   # Extract the first word of "$ac_prog", so it can be a program name with args.
9708 set dummy $ac_prog; ac_word=$2
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 $as_echo_n "checking for $ac_word... " >&6; }
9711 if ${ac_cv_prog_INTLBISON+:} false; then :
9712   $as_echo_n "(cached) " >&6
9713 else
9714   if test -n "$INTLBISON"; then
9715   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9716 else
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9719 do
9720   IFS=$as_save_IFS
9721   test -z "$as_dir" && as_dir=.
9722     for ac_exec_ext in '' $ac_executable_extensions; do
9723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724     ac_cv_prog_INTLBISON="$ac_prog"
9725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726     break 2
9727   fi
9728 done
9729   done
9730 IFS=$as_save_IFS
9731
9732 fi
9733 fi
9734 INTLBISON=$ac_cv_prog_INTLBISON
9735 if test -n "$INTLBISON"; then
9736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9737 $as_echo "$INTLBISON" >&6; }
9738 else
9739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 $as_echo "no" >&6; }
9741 fi
9742
9743
9744   test -n "$INTLBISON" && break
9745 done
9746
9747   if test -z "$INTLBISON"; then
9748     ac_verc_fail=yes
9749   else
9750         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9751 $as_echo_n "checking version of bison... " >&6; }
9752     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9753     case $ac_prog_version in
9754       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9755       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9756          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9757       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9758     esac
9759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9760 $as_echo "$ac_prog_version" >&6; }
9761   fi
9762   if test $ac_verc_fail = yes; then
9763     INTLBISON=:
9764   fi
9765
9766
9767
9768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9769 $as_echo_n "checking for long long int... " >&6; }
9770 if ${ac_cv_type_long_long_int+:} false; then :
9771   $as_echo_n "(cached) " >&6
9772 else
9773   ac_cv_type_long_long_int=yes
9774       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9775         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9776         if test $ac_cv_type_long_long_int = yes; then
9777                                         if test "$cross_compiling" = yes; then :
9778   :
9779 else
9780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h.  */
9782 #include <limits.h>
9783                  #ifndef LLONG_MAX
9784                  # define HALF \
9785                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9786                  # define LLONG_MAX (HALF - 1 + HALF)
9787                  #endif
9788 int
9789 main ()
9790 {
9791 long long int n = 1;
9792                  int i;
9793                  for (i = 0; ; i++)
9794                    {
9795                      long long int m = n << i;
9796                      if (m >> i != n)
9797                        return 1;
9798                      if (LLONG_MAX / 2 < m)
9799                        break;
9800                    }
9801                  return 0;
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 if ac_fn_c_try_run "$LINENO"; then :
9807
9808 else
9809   ac_cv_type_long_long_int=no
9810 fi
9811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9812   conftest.$ac_objext conftest.beam conftest.$ac_ext
9813 fi
9814
9815         fi
9816       fi
9817 fi
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9819 $as_echo "$ac_cv_type_long_long_int" >&6; }
9820   if test $ac_cv_type_long_long_int = yes; then
9821
9822 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9823
9824   fi
9825
9826
9827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9828 $as_echo_n "checking for wchar_t... " >&6; }
9829 if ${gt_cv_c_wchar_t+:} false; then :
9830   $as_echo_n "(cached) " >&6
9831 else
9832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h.  */
9834 #include <stddef.h>
9835             wchar_t foo = (wchar_t)'\0';
9836 int
9837 main ()
9838 {
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 if ac_fn_c_try_compile "$LINENO"; then :
9845   gt_cv_c_wchar_t=yes
9846 else
9847   gt_cv_c_wchar_t=no
9848 fi
9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9852 $as_echo "$gt_cv_c_wchar_t" >&6; }
9853   if test $gt_cv_c_wchar_t = yes; then
9854
9855 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9856
9857   fi
9858
9859
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9861 $as_echo_n "checking for wint_t... " >&6; }
9862 if ${gt_cv_c_wint_t+:} false; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h.  */
9867
9868 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9869    <wchar.h>.
9870    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9871    before <wchar.h>.  */
9872 #include <stddef.h>
9873 #include <stdio.h>
9874 #include <time.h>
9875 #include <wchar.h>
9876             wint_t foo = (wchar_t)'\0';
9877 int
9878 main ()
9879 {
9880
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 if ac_fn_c_try_compile "$LINENO"; then :
9886   gt_cv_c_wint_t=yes
9887 else
9888   gt_cv_c_wint_t=no
9889 fi
9890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891 fi
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9893 $as_echo "$gt_cv_c_wint_t" >&6; }
9894   if test $gt_cv_c_wint_t = yes; then
9895
9896 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9897
9898   fi
9899
9900
9901
9902
9903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9904 $as_echo_n "checking for intmax_t... " >&6; }
9905 if ${gt_cv_c_intmax_t+:} false; then :
9906   $as_echo_n "(cached) " >&6
9907 else
9908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h.  */
9910
9911 #include <stddef.h>
9912 #include <stdlib.h>
9913 #if HAVE_STDINT_H_WITH_UINTMAX
9914 #include <stdint.h>
9915 #endif
9916 #if HAVE_INTTYPES_H_WITH_UINTMAX
9917 #include <inttypes.h>
9918 #endif
9919
9920 int
9921 main ()
9922 {
9923 intmax_t x = -1;
9924             return !x;
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 if ac_fn_c_try_compile "$LINENO"; then :
9930   gt_cv_c_intmax_t=yes
9931 else
9932   gt_cv_c_intmax_t=no
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 fi
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9937 $as_echo "$gt_cv_c_intmax_t" >&6; }
9938   if test $gt_cv_c_intmax_t = yes; then
9939
9940 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9941
9942   fi
9943
9944
9945
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9947 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9948 if ${gt_cv_func_printf_posix+:} false; then :
9949   $as_echo_n "(cached) " >&6
9950 else
9951
9952       if test "$cross_compiling" = yes; then :
9953
9954           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h.  */
9956
9957 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9958   notposix
9959 #endif
9960
9961 _ACEOF
9962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9963   $EGREP "notposix" >/dev/null 2>&1; then :
9964   gt_cv_func_printf_posix="guessing no"
9965 else
9966   gt_cv_func_printf_posix="guessing yes"
9967 fi
9968 rm -f conftest*
9969
9970
9971 else
9972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h.  */
9974
9975 #include <stdio.h>
9976 #include <string.h>
9977 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9978    dollar expansion (possibly an autoconf bug).  */
9979 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9980 static char buf[100];
9981 int main ()
9982 {
9983   sprintf (buf, format, 33, 55);
9984   return (strcmp (buf, "55 33") != 0);
9985 }
9986 _ACEOF
9987 if ac_fn_c_try_run "$LINENO"; then :
9988   gt_cv_func_printf_posix=yes
9989 else
9990   gt_cv_func_printf_posix=no
9991 fi
9992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9993   conftest.$ac_objext conftest.beam conftest.$ac_ext
9994 fi
9995
9996
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9999 $as_echo "$gt_cv_func_printf_posix" >&6; }
10000   case $gt_cv_func_printf_posix in
10001     *yes)
10002
10003 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
10004
10005       ;;
10006   esac
10007
10008
10009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10010 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10011 if ${ac_cv_gnu_library_2_1+:} false; then :
10012   $as_echo_n "(cached) " >&6
10013 else
10014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h.  */
10016
10017 #include <features.h>
10018 #ifdef __GNU_LIBRARY__
10019  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10020   Lucky GNU user
10021  #endif
10022 #endif
10023 #ifdef __UCLIBC__
10024  Lucky user
10025 #endif
10026
10027 _ACEOF
10028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10029   $EGREP "Lucky" >/dev/null 2>&1; then :
10030   ac_cv_gnu_library_2_1=yes
10031 else
10032   ac_cv_gnu_library_2_1=no
10033 fi
10034 rm -f conftest*
10035
10036
10037
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10040 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10041
10042     GLIBC21="$ac_cv_gnu_library_2_1"
10043
10044
10045
10046   for ac_header in stdint.h
10047 do :
10048   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10049 if test "x$ac_cv_header_stdint_h" = xyes; then :
10050   cat >>confdefs.h <<_ACEOF
10051 #define HAVE_STDINT_H 1
10052 _ACEOF
10053
10054 fi
10055
10056 done
10057
10058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10059 $as_echo_n "checking for SIZE_MAX... " >&6; }
10060 if ${gl_cv_size_max+:} false; then :
10061   $as_echo_n "(cached) " >&6
10062 else
10063
10064     gl_cv_size_max=
10065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h.  */
10067
10068 #include <limits.h>
10069 #if HAVE_STDINT_H
10070 #include <stdint.h>
10071 #endif
10072 #ifdef SIZE_MAX
10073 Found it
10074 #endif
10075
10076 _ACEOF
10077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10078   $EGREP "Found it" >/dev/null 2>&1; then :
10079   gl_cv_size_max=yes
10080 fi
10081 rm -f conftest*
10082
10083     if test -z "$gl_cv_size_max"; then
10084                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
10085 #include <limits.h>"; then :
10086
10087 else
10088   size_t_bits_minus_1=
10089 fi
10090
10091       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10092
10093 else
10094   fits_in_uint=
10095 fi
10096
10097       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10098         if test $fits_in_uint = 1; then
10099                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h.  */
10101 #include <stddef.h>
10102                  extern size_t foo;
10103                  extern unsigned long foo;
10104
10105 int
10106 main ()
10107 {
10108
10109   ;
10110   return 0;
10111 }
10112 _ACEOF
10113 if ac_fn_c_try_compile "$LINENO"; then :
10114   fits_in_uint=0
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117         fi
10118                                 if test $fits_in_uint = 1; then
10119           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10120         else
10121           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10122         fi
10123       else
10124                 gl_cv_size_max='((size_t)~(size_t)0)'
10125       fi
10126     fi
10127
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10130 $as_echo "$gl_cv_size_max" >&6; }
10131   if test "$gl_cv_size_max" != yes; then
10132
10133 cat >>confdefs.h <<_ACEOF
10134 #define SIZE_MAX $gl_cv_size_max
10135 _ACEOF
10136
10137   fi
10138
10139
10140
10141
10142   for ac_header in stdint.h
10143 do :
10144   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10145 if test "x$ac_cv_header_stdint_h" = xyes; then :
10146   cat >>confdefs.h <<_ACEOF
10147 #define HAVE_STDINT_H 1
10148 _ACEOF
10149
10150 fi
10151
10152 done
10153
10154
10155
10156
10157
10158   for ac_func in $ac_func_list
10159 do :
10160   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10163   cat >>confdefs.h <<_ACEOF
10164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10165 _ACEOF
10166
10167 fi
10168 done
10169
10170
10171
10172
10173
10174
10175
10176
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10178 $as_echo_n "checking for working fcntl.h... " >&6; }
10179 if ${gl_cv_header_working_fcntl_h+:} false; then :
10180   $as_echo_n "(cached) " >&6
10181 else
10182   if test "$cross_compiling" = yes; then :
10183   gl_cv_header_working_fcntl_h=cross-compiling
10184 else
10185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h.  */
10187 #include <sys/types.h>
10188            #include <sys/stat.h>
10189            #if HAVE_UNISTD_H
10190            # include <unistd.h>
10191            #else /* on Windows with MSVC */
10192            # include <io.h>
10193            # include <stdlib.h>
10194            # defined sleep(n) _sleep ((n) * 1000)
10195            #endif
10196            #include <fcntl.h>
10197            #ifndef O_NOATIME
10198             #define O_NOATIME 0
10199            #endif
10200            #ifndef O_NOFOLLOW
10201             #define O_NOFOLLOW 0
10202            #endif
10203            static int const constants[] =
10204             {
10205               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10206               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10207             };
10208
10209 int
10210 main ()
10211 {
10212
10213             int result = !constants;
10214             #if HAVE_SYMLINK
10215             {
10216               static char const sym[] = "conftest.sym";
10217               if (symlink ("/dev/null", sym) != 0)
10218                 result |= 2;
10219               else
10220                 {
10221                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10222                   if (fd >= 0)
10223                     {
10224                       close (fd);
10225                       result |= 4;
10226                     }
10227                 }
10228               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10229                 result |= 2;
10230               else
10231                 {
10232                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10233                   if (fd >= 0)
10234                     {
10235                       close (fd);
10236                       result |= 4;
10237                     }
10238                 }
10239               unlink (sym);
10240             }
10241             #endif
10242             {
10243               static char const file[] = "confdefs.h";
10244               int fd = open (file, O_RDONLY | O_NOATIME);
10245               if (fd < 0)
10246                 result |= 8;
10247               else
10248                 {
10249                   struct stat st0;
10250                   if (fstat (fd, &st0) != 0)
10251                     result |= 16;
10252                   else
10253                     {
10254                       char c;
10255                       sleep (1);
10256                       if (read (fd, &c, 1) != 1)
10257                         result |= 24;
10258                       else
10259                         {
10260                           if (close (fd) != 0)
10261                             result |= 32;
10262                           else
10263                             {
10264                               struct stat st1;
10265                               if (stat (file, &st1) != 0)
10266                                 result |= 40;
10267                               else
10268                                 if (st0.st_atime != st1.st_atime)
10269                                   result |= 64;
10270                             }
10271                         }
10272                     }
10273                 }
10274             }
10275             return result;
10276   ;
10277   return 0;
10278 }
10279 _ACEOF
10280 if ac_fn_c_try_run "$LINENO"; then :
10281   gl_cv_header_working_fcntl_h=yes
10282 else
10283   case $? in #(
10284         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10285         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10286         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10287          *) gl_cv_header_working_fcntl_h='no';;
10288         esac
10289 fi
10290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10291   conftest.$ac_objext conftest.beam conftest.$ac_ext
10292 fi
10293
10294 fi
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10296 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10297
10298   case $gl_cv_header_working_fcntl_h in #(
10299   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10300   *) ac_val=1;;
10301   esac
10302
10303 cat >>confdefs.h <<_ACEOF
10304 #define HAVE_WORKING_O_NOATIME $ac_val
10305 _ACEOF
10306
10307
10308   case $gl_cv_header_working_fcntl_h in #(
10309   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10310   *) ac_val=1;;
10311   esac
10312
10313 cat >>confdefs.h <<_ACEOF
10314 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10315 _ACEOF
10316
10317
10318
10319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10320 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10321 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10322   $as_echo_n "(cached) " >&6
10323 else
10324   gt_save_LIBS="$LIBS"
10325      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10326      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h.  */
10328 #include <CoreFoundation/CFPreferences.h>
10329 int
10330 main ()
10331 {
10332 CFPreferencesCopyAppValue(NULL, NULL)
10333   ;
10334   return 0;
10335 }
10336 _ACEOF
10337 if ac_fn_c_try_link "$LINENO"; then :
10338   gt_cv_func_CFPreferencesCopyAppValue=yes
10339 else
10340   gt_cv_func_CFPreferencesCopyAppValue=no
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext \
10343     conftest$ac_exeext conftest.$ac_ext
10344      LIBS="$gt_save_LIBS"
10345 fi
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10347 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10348   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10349
10350 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10351
10352   fi
10353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10354 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10355 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   gt_save_LIBS="$LIBS"
10359      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10360      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h.  */
10362 #include <CoreFoundation/CFLocale.h>
10363 int
10364 main ()
10365 {
10366 CFLocaleCopyCurrent();
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 if ac_fn_c_try_link "$LINENO"; then :
10372   gt_cv_func_CFLocaleCopyCurrent=yes
10373 else
10374   gt_cv_func_CFLocaleCopyCurrent=no
10375 fi
10376 rm -f core conftest.err conftest.$ac_objext \
10377     conftest$ac_exeext conftest.$ac_ext
10378      LIBS="$gt_save_LIBS"
10379 fi
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10381 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10382   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10383
10384 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10385
10386   fi
10387   INTL_MACOSX_LIBS=
10388   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10389     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10390   fi
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401     case "$enable_silent_rules" in
10402     yes) INTL_DEFAULT_VERBOSITY=0;;
10403     no)  INTL_DEFAULT_VERBOSITY=1;;
10404     *)   INTL_DEFAULT_VERBOSITY=1;;
10405   esac
10406
10407
10408   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10409 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10410
10411 else
10412
10413 $as_echo "#define ptrdiff_t long" >>confdefs.h
10414
10415
10416 fi
10417
10418   for ac_header in features.h stddef.h stdlib.h string.h
10419 do :
10420   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10421 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10423   cat >>confdefs.h <<_ACEOF
10424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10425 _ACEOF
10426
10427 fi
10428
10429 done
10430
10431   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10432     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10433 do :
10434   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10436 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10437   cat >>confdefs.h <<_ACEOF
10438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10439 _ACEOF
10440
10441 fi
10442 done
10443
10444
10445       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10446 "
10447 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10448   ac_have_decl=1
10449 else
10450   ac_have_decl=0
10451 fi
10452
10453 cat >>confdefs.h <<_ACEOF
10454 #define HAVE_DECL__SNPRINTF $ac_have_decl
10455 _ACEOF
10456 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10457 "
10458 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10459   ac_have_decl=1
10460 else
10461   ac_have_decl=0
10462 fi
10463
10464 cat >>confdefs.h <<_ACEOF
10465 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10466 _ACEOF
10467
10468
10469           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10470 "
10471 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10472   ac_have_decl=1
10473 else
10474   ac_have_decl=0
10475 fi
10476
10477 cat >>confdefs.h <<_ACEOF
10478 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10479 _ACEOF
10480
10481
10482   case $gt_cv_func_printf_posix in
10483     *yes) HAVE_POSIX_PRINTF=1 ;;
10484     *) HAVE_POSIX_PRINTF=0 ;;
10485   esac
10486
10487   if test "$ac_cv_func_asprintf" = yes; then
10488     HAVE_ASPRINTF=1
10489   else
10490     HAVE_ASPRINTF=0
10491   fi
10492
10493   if test "$ac_cv_func_snprintf" = yes; then
10494     HAVE_SNPRINTF=1
10495   else
10496     HAVE_SNPRINTF=0
10497   fi
10498
10499   if test "$ac_cv_func_newlocale" = yes; then
10500     HAVE_NEWLOCALE=1
10501   else
10502     HAVE_NEWLOCALE=0
10503   fi
10504
10505   if test "$ac_cv_func_wprintf" = yes; then
10506     HAVE_WPRINTF=1
10507   else
10508     HAVE_WPRINTF=0
10509   fi
10510
10511
10512
10513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10514 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10515 if ${am_cv_langinfo_codeset+:} false; then :
10516   $as_echo_n "(cached) " >&6
10517 else
10518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h.  */
10520 #include <langinfo.h>
10521 int
10522 main ()
10523 {
10524 char* cs = nl_langinfo(CODESET); return !cs;
10525   ;
10526   return 0;
10527 }
10528 _ACEOF
10529 if ac_fn_c_try_link "$LINENO"; then :
10530   am_cv_langinfo_codeset=yes
10531 else
10532   am_cv_langinfo_codeset=no
10533 fi
10534 rm -f core conftest.err conftest.$ac_objext \
10535     conftest$ac_exeext conftest.$ac_ext
10536
10537 fi
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10539 $as_echo "$am_cv_langinfo_codeset" >&6; }
10540   if test $am_cv_langinfo_codeset = yes; then
10541
10542 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10543
10544   fi
10545
10546
10547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10548 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10549 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10550   $as_echo_n "(cached) " >&6
10551 else
10552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h.  */
10554 #include <locale.h>
10555 int
10556 main ()
10557 {
10558 return LC_MESSAGES
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"; then :
10564   gt_cv_val_LC_MESSAGES=yes
10565 else
10566   gt_cv_val_LC_MESSAGES=no
10567 fi
10568 rm -f core conftest.err conftest.$ac_objext \
10569     conftest$ac_exeext conftest.$ac_ext
10570 fi
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10572 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10573   if test $gt_cv_val_LC_MESSAGES = yes; then
10574
10575 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10576
10577   fi
10578
10579
10580                 if test "$enable_shared" = yes; then
10581     case "$host_os" in
10582       mingw* | cygwin*) is_woe32dll=yes ;;
10583       *) is_woe32dll=no ;;
10584     esac
10585   else
10586     is_woe32dll=no
10587   fi
10588   WOE32DLL=$is_woe32dll
10589
10590
10591       case "$host_os" in
10592     mingw* | cygwin*) is_woe32=yes ;;
10593     *) is_woe32=no ;;
10594   esac
10595   WOE32=$is_woe32
10596
10597   if test $WOE32 = yes; then
10598         if test -n "$ac_tool_prefix"; then
10599   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10600 set dummy ${ac_tool_prefix}windres; ac_word=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if ${ac_cv_prog_WINDRES+:} false; then :
10604   $as_echo_n "(cached) " >&6
10605 else
10606   if test -n "$WINDRES"; then
10607   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10608 else
10609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10611 do
10612   IFS=$as_save_IFS
10613   test -z "$as_dir" && as_dir=.
10614     for ac_exec_ext in '' $ac_executable_extensions; do
10615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10616     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618     break 2
10619   fi
10620 done
10621   done
10622 IFS=$as_save_IFS
10623
10624 fi
10625 fi
10626 WINDRES=$ac_cv_prog_WINDRES
10627 if test -n "$WINDRES"; then
10628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10629 $as_echo "$WINDRES" >&6; }
10630 else
10631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10633 fi
10634
10635
10636 fi
10637 if test -z "$ac_cv_prog_WINDRES"; then
10638   ac_ct_WINDRES=$WINDRES
10639   # Extract the first word of "windres", so it can be a program name with args.
10640 set dummy windres; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642 $as_echo_n "checking for $ac_word... " >&6; }
10643 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10644   $as_echo_n "(cached) " >&6
10645 else
10646   if test -n "$ac_ct_WINDRES"; then
10647   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10648 else
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10651 do
10652   IFS=$as_save_IFS
10653   test -z "$as_dir" && as_dir=.
10654     for ac_exec_ext in '' $ac_executable_extensions; do
10655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656     ac_cv_prog_ac_ct_WINDRES="windres"
10657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658     break 2
10659   fi
10660 done
10661   done
10662 IFS=$as_save_IFS
10663
10664 fi
10665 fi
10666 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10667 if test -n "$ac_ct_WINDRES"; then
10668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10669 $as_echo "$ac_ct_WINDRES" >&6; }
10670 else
10671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10673 fi
10674
10675   if test "x$ac_ct_WINDRES" = x; then
10676     WINDRES=""
10677   else
10678     case $cross_compiling:$ac_tool_warned in
10679 yes:)
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10682 ac_tool_warned=yes ;;
10683 esac
10684     WINDRES=$ac_ct_WINDRES
10685   fi
10686 else
10687   WINDRES="$ac_cv_prog_WINDRES"
10688 fi
10689
10690   fi
10691
10692               case "$host_os" in
10693     hpux*) LTLIBC="" ;;
10694     *)     LTLIBC="-lc" ;;
10695   esac
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10724 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10725 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10726   $as_echo_n "(cached) " >&6
10727 else
10728   gt_save_LIBS="$LIBS"
10729      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10730      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h.  */
10732 #include <CoreFoundation/CFPreferences.h>
10733 int
10734 main ()
10735 {
10736 CFPreferencesCopyAppValue(NULL, NULL)
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742   gt_cv_func_CFPreferencesCopyAppValue=yes
10743 else
10744   gt_cv_func_CFPreferencesCopyAppValue=no
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext \
10747     conftest$ac_exeext conftest.$ac_ext
10748      LIBS="$gt_save_LIBS"
10749 fi
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10751 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10752   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10753
10754 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10755
10756   fi
10757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10758 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10759 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10760   $as_echo_n "(cached) " >&6
10761 else
10762   gt_save_LIBS="$LIBS"
10763      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10764      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h.  */
10766 #include <CoreFoundation/CFLocale.h>
10767 int
10768 main ()
10769 {
10770 CFLocaleCopyCurrent();
10771   ;
10772   return 0;
10773 }
10774 _ACEOF
10775 if ac_fn_c_try_link "$LINENO"; then :
10776   gt_cv_func_CFLocaleCopyCurrent=yes
10777 else
10778   gt_cv_func_CFLocaleCopyCurrent=no
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext \
10781     conftest$ac_exeext conftest.$ac_ext
10782      LIBS="$gt_save_LIBS"
10783 fi
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10785 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10786   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10787
10788 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10789
10790   fi
10791   INTL_MACOSX_LIBS=
10792   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10793     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10794   fi
10795
10796
10797
10798
10799
10800
10801     BUILD_INCLUDED_LIBINTL=no
10802     USE_INCLUDED_LIBINTL=no
10803
10804   LIBINTL=
10805   LTLIBINTL=
10806   POSUB=
10807
10808     case " $gt_needs " in
10809     *" need-formatstring-macros "*) gt_api_version=3 ;;
10810     *" need-ngettext "*) gt_api_version=2 ;;
10811     *) gt_api_version=1 ;;
10812   esac
10813   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10814   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10815
10816     if test "$USE_NLS" = "yes"; then
10817     gt_use_preinstalled_gnugettext=no
10818
10819       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10820 $as_echo_n "checking whether included gettext is requested... " >&6; }
10821
10822 # Check whether --with-included-gettext was given.
10823 if test "${with_included_gettext+set}" = set; then :
10824   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10825 else
10826   nls_cv_force_use_gnu_gettext=no
10827 fi
10828
10829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10830 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10831
10832       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10833       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10834
10835
10836         if test $gt_api_version -ge 3; then
10837           gt_revision_test_code='
10838 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10839 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10840 #endif
10841 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10842 '
10843         else
10844           gt_revision_test_code=
10845         fi
10846         if test $gt_api_version -ge 2; then
10847           gt_expression_test_code=' + * ngettext ("", "", 0)'
10848         else
10849           gt_expression_test_code=
10850         fi
10851
10852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10853 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10854 if eval \${$gt_func_gnugettext_libc+:} false; then :
10855   $as_echo_n "(cached) " >&6
10856 else
10857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h.  */
10859
10860 #include <libintl.h>
10861 $gt_revision_test_code
10862 extern int _nl_msg_cat_cntr;
10863 extern int *_nl_domain_bindings;
10864
10865 int
10866 main ()
10867 {
10868
10869 bindtextdomain ("", "");
10870 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10871
10872   ;
10873   return 0;
10874 }
10875 _ACEOF
10876 if ac_fn_c_try_link "$LINENO"; then :
10877   eval "$gt_func_gnugettext_libc=yes"
10878 else
10879   eval "$gt_func_gnugettext_libc=no"
10880 fi
10881 rm -f core conftest.err conftest.$ac_objext \
10882     conftest$ac_exeext conftest.$ac_ext
10883 fi
10884 eval ac_res=\$$gt_func_gnugettext_libc
10885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10886 $as_echo "$ac_res" >&6; }
10887
10888         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10889
10890
10891
10892
10893
10894
10895
10896
10897     use_additional=yes
10898
10899   acl_save_prefix="$prefix"
10900   prefix="$acl_final_prefix"
10901   acl_save_exec_prefix="$exec_prefix"
10902   exec_prefix="$acl_final_exec_prefix"
10903
10904     eval additional_includedir=\"$includedir\"
10905     eval additional_libdir=\"$libdir\"
10906
10907   exec_prefix="$acl_save_exec_prefix"
10908   prefix="$acl_save_prefix"
10909
10910
10911 # Check whether --with-libintl-prefix was given.
10912 if test "${with_libintl_prefix+set}" = set; then :
10913   withval=$with_libintl_prefix;
10914     if test "X$withval" = "Xno"; then
10915       use_additional=no
10916     else
10917       if test "X$withval" = "X"; then
10918
10919   acl_save_prefix="$prefix"
10920   prefix="$acl_final_prefix"
10921   acl_save_exec_prefix="$exec_prefix"
10922   exec_prefix="$acl_final_exec_prefix"
10923
10924           eval additional_includedir=\"$includedir\"
10925           eval additional_libdir=\"$libdir\"
10926
10927   exec_prefix="$acl_save_exec_prefix"
10928   prefix="$acl_save_prefix"
10929
10930       else
10931         additional_includedir="$withval/include"
10932         additional_libdir="$withval/$acl_libdirstem"
10933         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10934            && ! test -d "$withval/$acl_libdirstem"; then
10935           additional_libdir="$withval/$acl_libdirstem2"
10936         fi
10937       fi
10938     fi
10939
10940 fi
10941
10942       LIBINTL=
10943   LTLIBINTL=
10944   INCINTL=
10945   LIBINTL_PREFIX=
10946       HAVE_LIBINTL=
10947   rpathdirs=
10948   ltrpathdirs=
10949   names_already_handled=
10950   names_next_round='intl '
10951   while test -n "$names_next_round"; do
10952     names_this_round="$names_next_round"
10953     names_next_round=
10954     for name in $names_this_round; do
10955       already_handled=
10956       for n in $names_already_handled; do
10957         if test "$n" = "$name"; then
10958           already_handled=yes
10959           break
10960         fi
10961       done
10962       if test -z "$already_handled"; then
10963         names_already_handled="$names_already_handled $name"
10964                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10965         eval value=\"\$HAVE_LIB$uppername\"
10966         if test -n "$value"; then
10967           if test "$value" = yes; then
10968             eval value=\"\$LIB$uppername\"
10969             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10970             eval value=\"\$LTLIB$uppername\"
10971             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10972           else
10973                                     :
10974           fi
10975         else
10976                               found_dir=
10977           found_la=
10978           found_so=
10979           found_a=
10980           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10981           if test -n "$acl_shlibext"; then
10982             shrext=".$acl_shlibext"             # typically: shrext=.so
10983           else
10984             shrext=
10985           fi
10986           if test $use_additional = yes; then
10987             dir="$additional_libdir"
10988                                     if test -n "$acl_shlibext"; then
10989               if test -f "$dir/$libname$shrext"; then
10990                 found_dir="$dir"
10991                 found_so="$dir/$libname$shrext"
10992               else
10993                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10994                   ver=`(cd "$dir" && \
10995                         for f in "$libname$shrext".*; do echo "$f"; done \
10996                         | sed -e "s,^$libname$shrext\\\\.,," \
10997                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10998                         | sed 1q ) 2>/dev/null`
10999                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11000                     found_dir="$dir"
11001                     found_so="$dir/$libname$shrext.$ver"
11002                   fi
11003                 else
11004                   eval library_names=\"$acl_library_names_spec\"
11005                   for f in $library_names; do
11006                     if test -f "$dir/$f"; then
11007                       found_dir="$dir"
11008                       found_so="$dir/$f"
11009                       break
11010                     fi
11011                   done
11012                 fi
11013               fi
11014             fi
11015                         if test "X$found_dir" = "X"; then
11016               if test -f "$dir/$libname.$acl_libext"; then
11017                 found_dir="$dir"
11018                 found_a="$dir/$libname.$acl_libext"
11019               fi
11020             fi
11021             if test "X$found_dir" != "X"; then
11022               if test -f "$dir/$libname.la"; then
11023                 found_la="$dir/$libname.la"
11024               fi
11025             fi
11026           fi
11027           if test "X$found_dir" = "X"; then
11028             for x in $LDFLAGS $LTLIBINTL; do
11029
11030   acl_save_prefix="$prefix"
11031   prefix="$acl_final_prefix"
11032   acl_save_exec_prefix="$exec_prefix"
11033   exec_prefix="$acl_final_exec_prefix"
11034   eval x=\"$x\"
11035   exec_prefix="$acl_save_exec_prefix"
11036   prefix="$acl_save_prefix"
11037
11038               case "$x" in
11039                 -L*)
11040                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11041                                     if test -n "$acl_shlibext"; then
11042                     if test -f "$dir/$libname$shrext"; then
11043                       found_dir="$dir"
11044                       found_so="$dir/$libname$shrext"
11045                     else
11046                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11047                         ver=`(cd "$dir" && \
11048                               for f in "$libname$shrext".*; do echo "$f"; done \
11049                               | sed -e "s,^$libname$shrext\\\\.,," \
11050                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11051                               | sed 1q ) 2>/dev/null`
11052                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11053                           found_dir="$dir"
11054                           found_so="$dir/$libname$shrext.$ver"
11055                         fi
11056                       else
11057                         eval library_names=\"$acl_library_names_spec\"
11058                         for f in $library_names; do
11059                           if test -f "$dir/$f"; then
11060                             found_dir="$dir"
11061                             found_so="$dir/$f"
11062                             break
11063                           fi
11064                         done
11065                       fi
11066                     fi
11067                   fi
11068                                     if test "X$found_dir" = "X"; then
11069                     if test -f "$dir/$libname.$acl_libext"; then
11070                       found_dir="$dir"
11071                       found_a="$dir/$libname.$acl_libext"
11072                     fi
11073                   fi
11074                   if test "X$found_dir" != "X"; then
11075                     if test -f "$dir/$libname.la"; then
11076                       found_la="$dir/$libname.la"
11077                     fi
11078                   fi
11079                   ;;
11080               esac
11081               if test "X$found_dir" != "X"; then
11082                 break
11083               fi
11084             done
11085           fi
11086           if test "X$found_dir" != "X"; then
11087                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11088             if test "X$found_so" != "X"; then
11089                                                         if test "$enable_rpath" = no \
11090                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11091                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11092                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11093               else
11094                                                                                 haveit=
11095                 for x in $ltrpathdirs; do
11096                   if test "X$x" = "X$found_dir"; then
11097                     haveit=yes
11098                     break
11099                   fi
11100                 done
11101                 if test -z "$haveit"; then
11102                   ltrpathdirs="$ltrpathdirs $found_dir"
11103                 fi
11104                                 if test "$acl_hardcode_direct" = yes; then
11105                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11106                 else
11107                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11108                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11109                                                             haveit=
11110                     for x in $rpathdirs; do
11111                       if test "X$x" = "X$found_dir"; then
11112                         haveit=yes
11113                         break
11114                       fi
11115                     done
11116                     if test -z "$haveit"; then
11117                       rpathdirs="$rpathdirs $found_dir"
11118                     fi
11119                   else
11120                                                                                 haveit=
11121                     for x in $LDFLAGS $LIBINTL; 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-L$found_dir"; then
11132                         haveit=yes
11133                         break
11134                       fi
11135                     done
11136                     if test -z "$haveit"; then
11137                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11138                     fi
11139                     if test "$acl_hardcode_minus_L" != no; then
11140                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11141                     else
11142                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11143                     fi
11144                   fi
11145                 fi
11146               fi
11147             else
11148               if test "X$found_a" != "X"; then
11149                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11150               else
11151                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11152               fi
11153             fi
11154                         additional_includedir=
11155             case "$found_dir" in
11156               */$acl_libdirstem | */$acl_libdirstem/)
11157                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11158                 if test "$name" = 'intl'; then
11159                   LIBINTL_PREFIX="$basedir"
11160                 fi
11161                 additional_includedir="$basedir/include"
11162                 ;;
11163               */$acl_libdirstem2 | */$acl_libdirstem2/)
11164                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11165                 if test "$name" = 'intl'; then
11166                   LIBINTL_PREFIX="$basedir"
11167                 fi
11168                 additional_includedir="$basedir/include"
11169                 ;;
11170             esac
11171             if test "X$additional_includedir" != "X"; then
11172                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11173                 haveit=
11174                 if test "X$additional_includedir" = "X/usr/local/include"; then
11175                   if test -n "$GCC"; then
11176                     case $host_os in
11177                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11178                     esac
11179                   fi
11180                 fi
11181                 if test -z "$haveit"; then
11182                   for x in $CPPFLAGS $INCINTL; do
11183
11184   acl_save_prefix="$prefix"
11185   prefix="$acl_final_prefix"
11186   acl_save_exec_prefix="$exec_prefix"
11187   exec_prefix="$acl_final_exec_prefix"
11188   eval x=\"$x\"
11189   exec_prefix="$acl_save_exec_prefix"
11190   prefix="$acl_save_prefix"
11191
11192                     if test "X$x" = "X-I$additional_includedir"; then
11193                       haveit=yes
11194                       break
11195                     fi
11196                   done
11197                   if test -z "$haveit"; then
11198                     if test -d "$additional_includedir"; then
11199                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11200                     fi
11201                   fi
11202                 fi
11203               fi
11204             fi
11205                         if test -n "$found_la"; then
11206                                                         save_libdir="$libdir"
11207               case "$found_la" in
11208                 */* | *\\*) . "$found_la" ;;
11209                 *) . "./$found_la" ;;
11210               esac
11211               libdir="$save_libdir"
11212                             for dep in $dependency_libs; do
11213                 case "$dep" in
11214                   -L*)
11215                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11216                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11217                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11218                       haveit=
11219                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11220                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11221                         if test -n "$GCC"; then
11222                           case $host_os in
11223                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11224                           esac
11225                         fi
11226                       fi
11227                       if test -z "$haveit"; then
11228                         haveit=
11229                         for x in $LDFLAGS $LIBINTL; do
11230
11231   acl_save_prefix="$prefix"
11232   prefix="$acl_final_prefix"
11233   acl_save_exec_prefix="$exec_prefix"
11234   exec_prefix="$acl_final_exec_prefix"
11235   eval x=\"$x\"
11236   exec_prefix="$acl_save_exec_prefix"
11237   prefix="$acl_save_prefix"
11238
11239                           if test "X$x" = "X-L$additional_libdir"; then
11240                             haveit=yes
11241                             break
11242                           fi
11243                         done
11244                         if test -z "$haveit"; then
11245                           if test -d "$additional_libdir"; then
11246                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11247                           fi
11248                         fi
11249                         haveit=
11250                         for x in $LDFLAGS $LTLIBINTL; do
11251
11252   acl_save_prefix="$prefix"
11253   prefix="$acl_final_prefix"
11254   acl_save_exec_prefix="$exec_prefix"
11255   exec_prefix="$acl_final_exec_prefix"
11256   eval x=\"$x\"
11257   exec_prefix="$acl_save_exec_prefix"
11258   prefix="$acl_save_prefix"
11259
11260                           if test "X$x" = "X-L$additional_libdir"; then
11261                             haveit=yes
11262                             break
11263                           fi
11264                         done
11265                         if test -z "$haveit"; then
11266                           if test -d "$additional_libdir"; then
11267                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11268                           fi
11269                         fi
11270                       fi
11271                     fi
11272                     ;;
11273                   -R*)
11274                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11275                     if test "$enable_rpath" != no; then
11276                                                                   haveit=
11277                       for x in $rpathdirs; do
11278                         if test "X$x" = "X$dir"; then
11279                           haveit=yes
11280                           break
11281                         fi
11282                       done
11283                       if test -z "$haveit"; then
11284                         rpathdirs="$rpathdirs $dir"
11285                       fi
11286                                                                   haveit=
11287                       for x in $ltrpathdirs; do
11288                         if test "X$x" = "X$dir"; then
11289                           haveit=yes
11290                           break
11291                         fi
11292                       done
11293                       if test -z "$haveit"; then
11294                         ltrpathdirs="$ltrpathdirs $dir"
11295                       fi
11296                     fi
11297                     ;;
11298                   -l*)
11299                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11300                     ;;
11301                   *.la)
11302                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11303                     ;;
11304                   *)
11305                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11306                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11307                     ;;
11308                 esac
11309               done
11310             fi
11311           else
11312                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11313             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11314           fi
11315         fi
11316       fi
11317     done
11318   done
11319   if test "X$rpathdirs" != "X"; then
11320     if test -n "$acl_hardcode_libdir_separator"; then
11321                         alldirs=
11322       for found_dir in $rpathdirs; do
11323         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11324       done
11325             acl_save_libdir="$libdir"
11326       libdir="$alldirs"
11327       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11328       libdir="$acl_save_libdir"
11329       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11330     else
11331             for found_dir in $rpathdirs; do
11332         acl_save_libdir="$libdir"
11333         libdir="$found_dir"
11334         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11335         libdir="$acl_save_libdir"
11336         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11337       done
11338     fi
11339   fi
11340   if test "X$ltrpathdirs" != "X"; then
11341             for found_dir in $ltrpathdirs; do
11342       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11343     done
11344   fi
11345
11346
11347
11348
11349
11350
11351           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11352 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11353 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11354   $as_echo_n "(cached) " >&6
11355 else
11356   gt_save_CPPFLAGS="$CPPFLAGS"
11357             CPPFLAGS="$CPPFLAGS $INCINTL"
11358             gt_save_LIBS="$LIBS"
11359             LIBS="$LIBS $LIBINTL"
11360                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h.  */
11362
11363 #include <libintl.h>
11364 $gt_revision_test_code
11365 extern int _nl_msg_cat_cntr;
11366 extern
11367 #ifdef __cplusplus
11368 "C"
11369 #endif
11370 const char *_nl_expand_alias (const char *);
11371
11372 int
11373 main ()
11374 {
11375
11376 bindtextdomain ("", "");
11377 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11378
11379   ;
11380   return 0;
11381 }
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384   eval "$gt_func_gnugettext_libintl=yes"
11385 else
11386   eval "$gt_func_gnugettext_libintl=no"
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext \
11389     conftest$ac_exeext conftest.$ac_ext
11390                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11391               LIBS="$LIBS $LIBICONV"
11392               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h.  */
11394
11395 #include <libintl.h>
11396 $gt_revision_test_code
11397 extern int _nl_msg_cat_cntr;
11398 extern
11399 #ifdef __cplusplus
11400 "C"
11401 #endif
11402 const char *_nl_expand_alias (const char *);
11403
11404 int
11405 main ()
11406 {
11407
11408 bindtextdomain ("", "");
11409 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11410
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416   LIBINTL="$LIBINTL $LIBICONV"
11417                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11418                  eval "$gt_func_gnugettext_libintl=yes"
11419
11420 fi
11421 rm -f core conftest.err conftest.$ac_objext \
11422     conftest$ac_exeext conftest.$ac_ext
11423             fi
11424             CPPFLAGS="$gt_save_CPPFLAGS"
11425             LIBS="$gt_save_LIBS"
11426 fi
11427 eval ac_res=\$$gt_func_gnugettext_libintl
11428                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11429 $as_echo "$ac_res" >&6; }
11430         fi
11431
11432                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11433            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11434                 && test "$PACKAGE" != gettext-runtime \
11435                 && test "$PACKAGE" != gettext-tools; }; then
11436           gt_use_preinstalled_gnugettext=yes
11437         else
11438                     LIBINTL=
11439           LTLIBINTL=
11440           INCINTL=
11441         fi
11442
11443
11444         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11445                               nls_cv_use_gnu_gettext=yes
11446         fi
11447       fi
11448
11449       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11450                 BUILD_INCLUDED_LIBINTL=yes
11451         USE_INCLUDED_LIBINTL=yes
11452         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11453         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11454         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11455       fi
11456
11457       CATOBJEXT=
11458       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11459          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11460                 CATOBJEXT=.gmo
11461       fi
11462
11463
11464     if test -n "$INTL_MACOSX_LIBS"; then
11465       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11466          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11467                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11468         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11469       fi
11470     fi
11471
11472     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11473        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11474
11475 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11476
11477     else
11478       USE_NLS=no
11479     fi
11480   fi
11481
11482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11483 $as_echo_n "checking whether to use NLS... " >&6; }
11484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11485 $as_echo "$USE_NLS" >&6; }
11486   if test "$USE_NLS" = "yes"; then
11487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11488 $as_echo_n "checking where the gettext function comes from... " >&6; }
11489     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11490       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11491         gt_source="external libintl"
11492       else
11493         gt_source="libc"
11494       fi
11495     else
11496       gt_source="included intl directory"
11497     fi
11498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11499 $as_echo "$gt_source" >&6; }
11500   fi
11501
11502   if test "$USE_NLS" = "yes"; then
11503
11504     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11505       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11506         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11507 $as_echo_n "checking how to link with libintl... " >&6; }
11508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11509 $as_echo "$LIBINTL" >&6; }
11510
11511   for element in $INCINTL; do
11512     haveit=
11513     for x in $CPPFLAGS; do
11514
11515   acl_save_prefix="$prefix"
11516   prefix="$acl_final_prefix"
11517   acl_save_exec_prefix="$exec_prefix"
11518   exec_prefix="$acl_final_exec_prefix"
11519   eval x=\"$x\"
11520   exec_prefix="$acl_save_exec_prefix"
11521   prefix="$acl_save_prefix"
11522
11523       if test "X$x" = "X$element"; then
11524         haveit=yes
11525         break
11526       fi
11527     done
11528     if test -z "$haveit"; then
11529       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11530     fi
11531   done
11532
11533       fi
11534
11535
11536 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11537
11538
11539 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11540
11541     fi
11542
11543         POSUB=po
11544   fi
11545
11546
11547             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11548       BUILD_INCLUDED_LIBINTL=yes
11549     fi
11550
11551
11552
11553
11554
11555         nls_cv_header_intl=
11556     nls_cv_header_libgt=
11557
11558         DATADIRNAME=share
11559
11560
11561         INSTOBJEXT=.mo
11562
11563
11564         GENCAT=gencat
11565
11566
11567         INTLOBJS=
11568     if test "$USE_INCLUDED_LIBINTL" = yes; then
11569       INTLOBJS="\$(GETTOBJS)"
11570     fi
11571
11572
11573         INTL_LIBTOOL_SUFFIX_PREFIX=
11574
11575
11576
11577     INTLLIBS="$LIBINTL"
11578
11579
11580
11581
11582
11583
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11586 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11587 set x ${MAKE-make}
11588 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11589 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592   cat >conftest.make <<\_ACEOF
11593 SHELL = /bin/sh
11594 all:
11595         @echo '@@@%%%=$(MAKE)=@@@%%%'
11596 _ACEOF
11597 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11598 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11599   *@@@%%%=?*=@@@%%%*)
11600     eval ac_cv_prog_make_${ac_make}_set=yes;;
11601   *)
11602     eval ac_cv_prog_make_${ac_make}_set=no;;
11603 esac
11604 rm -f conftest.make
11605 fi
11606 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11608 $as_echo "yes" >&6; }
11609   SET_MAKE=
11610 else
11611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11613   SET_MAKE="MAKE=${MAKE-make}"
11614 fi
11615
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11617 $as_echo_n "checking for GNU make... " >&6; }
11618 if ${_cv_gnu_make_command+:} false; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621   _cv_gnu_make_command='' ;
11622                 for a in "$MAKE" make gmake gnumake ; do
11623                         if test -z "$a" ; then continue ; fi ;
11624                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11625                                 _cv_gnu_make_command=$a ;
11626                                 break;
11627                         fi
11628                 done ;
11629
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11632 $as_echo "$_cv_gnu_make_command" >&6; } ;
11633         if test  "x$_cv_gnu_make_command" != "x"  ; then
11634                 ifGNUmake='' ;
11635                 ifNotGNUmake='#' ;
11636         else
11637                 ifGNUmake='#' ;
11638                 ifNotGNUmake='' ;
11639                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11640 $as_echo "\"Not found\"" >&6; };
11641         fi
11642
11643
11644
11645 # Extract the first word of "ln", so it can be a program name with args.
11646 set dummy ln; ac_word=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648 $as_echo_n "checking for $ac_word... " >&6; }
11649 if ${ac_cv_path_LN+:} false; then :
11650   $as_echo_n "(cached) " >&6
11651 else
11652   case $LN in
11653   [\\/]* | ?:[\\/]*)
11654   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11655   ;;
11656   *)
11657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $PATH
11659 do
11660   IFS=$as_save_IFS
11661   test -z "$as_dir" && as_dir=.
11662     for ac_exec_ext in '' $ac_executable_extensions; do
11663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11664     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11666     break 2
11667   fi
11668 done
11669   done
11670 IFS=$as_save_IFS
11671
11672   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11673   ;;
11674 esac
11675 fi
11676 LN=$ac_cv_path_LN
11677 if test -n "$LN"; then
11678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11679 $as_echo "$LN" >&6; }
11680 else
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11683 fi
11684
11685
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11687 $as_echo_n "checking whether ln -s works... " >&6; }
11688 LN_S=$as_ln_s
11689 if test "$LN_S" = "ln -s"; then
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11691 $as_echo "yes" >&6; }
11692 else
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11694 $as_echo "no, using $LN_S" >&6; }
11695 fi
11696
11697 # Extract the first word of "mv", so it can be a program name with args.
11698 set dummy mv; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if ${ac_cv_path_MV+:} false; then :
11702   $as_echo_n "(cached) " >&6
11703 else
11704   case $MV in
11705   [\\/]* | ?:[\\/]*)
11706   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11707   ;;
11708   *)
11709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11711 do
11712   IFS=$as_save_IFS
11713   test -z "$as_dir" && as_dir=.
11714     for ac_exec_ext in '' $ac_executable_extensions; do
11715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11716     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718     break 2
11719   fi
11720 done
11721   done
11722 IFS=$as_save_IFS
11723
11724   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11725   ;;
11726 esac
11727 fi
11728 MV=$ac_cv_path_MV
11729 if test -n "$MV"; then
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11731 $as_echo "$MV" >&6; }
11732 else
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 fi
11736
11737
11738 # Extract the first word of "cp", so it can be a program name with args.
11739 set dummy cp; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if ${ac_cv_path_CP+:} false; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745   case $CP in
11746   [\\/]* | ?:[\\/]*)
11747   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11748   ;;
11749   *)
11750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11752 do
11753   IFS=$as_save_IFS
11754   test -z "$as_dir" && as_dir=.
11755     for ac_exec_ext in '' $ac_executable_extensions; do
11756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11757     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759     break 2
11760   fi
11761 done
11762   done
11763 IFS=$as_save_IFS
11764
11765   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11766   ;;
11767 esac
11768 fi
11769 CP=$ac_cv_path_CP
11770 if test -n "$CP"; then
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11772 $as_echo "$CP" >&6; }
11773 else
11774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11776 fi
11777
11778
11779 # Extract the first word of "rm", so it can be a program name with args.
11780 set dummy rm; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782 $as_echo_n "checking for $ac_word... " >&6; }
11783 if ${ac_cv_path_RM+:} false; then :
11784   $as_echo_n "(cached) " >&6
11785 else
11786   case $RM in
11787   [\\/]* | ?:[\\/]*)
11788   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11789   ;;
11790   *)
11791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH
11793 do
11794   IFS=$as_save_IFS
11795   test -z "$as_dir" && as_dir=.
11796     for ac_exec_ext in '' $ac_executable_extensions; do
11797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11798     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800     break 2
11801   fi
11802 done
11803   done
11804 IFS=$as_save_IFS
11805
11806   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11807   ;;
11808 esac
11809 fi
11810 RM=$ac_cv_path_RM
11811 if test -n "$RM"; then
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11813 $as_echo "$RM" >&6; }
11814 else
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 fi
11818
11819
11820 # Extract the first word of "chmod", so it can be a program name with args.
11821 set dummy chmod; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_path_CHMOD+:} false; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   case $CHMOD in
11828   [\\/]* | ?:[\\/]*)
11829   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11830   ;;
11831   *)
11832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11834 do
11835   IFS=$as_save_IFS
11836   test -z "$as_dir" && as_dir=.
11837     for ac_exec_ext in '' $ac_executable_extensions; do
11838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841     break 2
11842   fi
11843 done
11844   done
11845 IFS=$as_save_IFS
11846
11847   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11848   ;;
11849 esac
11850 fi
11851 CHMOD=$ac_cv_path_CHMOD
11852 if test -n "$CHMOD"; then
11853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11854 $as_echo "$CHMOD" >&6; }
11855 else
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11858 fi
11859
11860
11861 for ac_prog in gawk mawk nawk awk
11862 do
11863   # Extract the first word of "$ac_prog", so it can be a program name with args.
11864 set dummy $ac_prog; ac_word=$2
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866 $as_echo_n "checking for $ac_word... " >&6; }
11867 if ${ac_cv_prog_AWK+:} false; then :
11868   $as_echo_n "(cached) " >&6
11869 else
11870   if test -n "$AWK"; then
11871   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11872 else
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11875 do
11876   IFS=$as_save_IFS
11877   test -z "$as_dir" && as_dir=.
11878     for ac_exec_ext in '' $ac_executable_extensions; do
11879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880     ac_cv_prog_AWK="$ac_prog"
11881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882     break 2
11883   fi
11884 done
11885   done
11886 IFS=$as_save_IFS
11887
11888 fi
11889 fi
11890 AWK=$ac_cv_prog_AWK
11891 if test -n "$AWK"; then
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11893 $as_echo "$AWK" >&6; }
11894 else
11895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897 fi
11898
11899
11900   test -n "$AWK" && break
11901 done
11902
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11904 $as_echo_n "checking for egrep... " >&6; }
11905 if ${ac_cv_path_EGREP+:} false; then :
11906   $as_echo_n "(cached) " >&6
11907 else
11908   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11909    then ac_cv_path_EGREP="$GREP -E"
11910    else
11911      if test -z "$EGREP"; then
11912   ac_path_EGREP_found=false
11913   # Loop through the user's path and test for each of PROGNAME-LIST
11914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11916 do
11917   IFS=$as_save_IFS
11918   test -z "$as_dir" && as_dir=.
11919     for ac_prog in egrep; do
11920     for ac_exec_ext in '' $ac_executable_extensions; do
11921       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11922       as_fn_executable_p "$ac_path_EGREP" || continue
11923 # Check for GNU ac_path_EGREP and select it if it is found.
11924   # Check for GNU $ac_path_EGREP
11925 case `"$ac_path_EGREP" --version 2>&1` in
11926 *GNU*)
11927   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11928 *)
11929   ac_count=0
11930   $as_echo_n 0123456789 >"conftest.in"
11931   while :
11932   do
11933     cat "conftest.in" "conftest.in" >"conftest.tmp"
11934     mv "conftest.tmp" "conftest.in"
11935     cp "conftest.in" "conftest.nl"
11936     $as_echo 'EGREP' >> "conftest.nl"
11937     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11938     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11939     as_fn_arith $ac_count + 1 && ac_count=$as_val
11940     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11941       # Best one so far, save it but keep looking for a better one
11942       ac_cv_path_EGREP="$ac_path_EGREP"
11943       ac_path_EGREP_max=$ac_count
11944     fi
11945     # 10*(2^10) chars as input seems more than enough
11946     test $ac_count -gt 10 && break
11947   done
11948   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11949 esac
11950
11951       $ac_path_EGREP_found && break 3
11952     done
11953   done
11954   done
11955 IFS=$as_save_IFS
11956   if test -z "$ac_cv_path_EGREP"; then
11957     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11958   fi
11959 else
11960   ac_cv_path_EGREP=$EGREP
11961 fi
11962
11963    fi
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11966 $as_echo "$ac_cv_path_EGREP" >&6; }
11967  EGREP="$ac_cv_path_EGREP"
11968
11969
11970 # Extract the first word of "sed", so it can be a program name with args.
11971 set dummy sed; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_path_SED+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   case $SED in
11978   [\\/]* | ?:[\\/]*)
11979   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11980   ;;
11981   *)
11982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11984 do
11985   IFS=$as_save_IFS
11986   test -z "$as_dir" && as_dir=.
11987     for ac_exec_ext in '' $ac_executable_extensions; do
11988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991     break 2
11992   fi
11993 done
11994   done
11995 IFS=$as_save_IFS
11996
11997   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11998   ;;
11999 esac
12000 fi
12001 SED=$ac_cv_path_SED
12002 if test -n "$SED"; then
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12004 $as_echo "$SED" >&6; }
12005 else
12006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12008 fi
12009
12010
12011 # Extract the first word of "perl", so it can be a program name with args.
12012 set dummy perl; ac_word=$2
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014 $as_echo_n "checking for $ac_word... " >&6; }
12015 if ${ac_cv_path_PERL+:} false; then :
12016   $as_echo_n "(cached) " >&6
12017 else
12018   case $PERL in
12019   [\\/]* | ?:[\\/]*)
12020   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12021   ;;
12022   *)
12023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12025 do
12026   IFS=$as_save_IFS
12027   test -z "$as_dir" && as_dir=.
12028     for ac_exec_ext in '' $ac_executable_extensions; do
12029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032     break 2
12033   fi
12034 done
12035   done
12036 IFS=$as_save_IFS
12037
12038   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12039   ;;
12040 esac
12041 fi
12042 PERL=$ac_cv_path_PERL
12043 if test -n "$PERL"; then
12044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12045 $as_echo "$PERL" >&6; }
12046 else
12047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12049 fi
12050
12051
12052 # Extract the first word of "ldconfig", so it can be a program name with args.
12053 set dummy ldconfig; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if ${ac_cv_path_LDCONFIG+:} false; then :
12057   $as_echo_n "(cached) " >&6
12058 else
12059   case $LDCONFIG in
12060   [\\/]* | ?:[\\/]*)
12061   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12062   ;;
12063   *)
12064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12066 do
12067   IFS=$as_save_IFS
12068   test -z "$as_dir" && as_dir=.
12069     for ac_exec_ext in '' $ac_executable_extensions; do
12070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12071     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073     break 2
12074   fi
12075 done
12076   done
12077 IFS=$as_save_IFS
12078
12079   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12080   ;;
12081 esac
12082 fi
12083 LDCONFIG=$ac_cv_path_LDCONFIG
12084 if test -n "$LDCONFIG"; then
12085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12086 $as_echo "$LDCONFIG" >&6; }
12087 else
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12090 fi
12091
12092
12093 if test -n "$ac_tool_prefix"; then
12094   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12095 set dummy ${ac_tool_prefix}ar; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_prog_AR+:} false; then :
12099   $as_echo_n "(cached) " >&6
12100 else
12101   if test -n "$AR"; then
12102   ac_cv_prog_AR="$AR" # Let the user override the test.
12103 else
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12106 do
12107   IFS=$as_save_IFS
12108   test -z "$as_dir" && as_dir=.
12109     for ac_exec_ext in '' $ac_executable_extensions; do
12110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111     ac_cv_prog_AR="${ac_tool_prefix}ar"
12112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113     break 2
12114   fi
12115 done
12116   done
12117 IFS=$as_save_IFS
12118
12119 fi
12120 fi
12121 AR=$ac_cv_prog_AR
12122 if test -n "$AR"; then
12123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12124 $as_echo "$AR" >&6; }
12125 else
12126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128 fi
12129
12130
12131 fi
12132 if test -z "$ac_cv_prog_AR"; then
12133   ac_ct_AR=$AR
12134   # Extract the first word of "ar", so it can be a program name with args.
12135 set dummy ar; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   if test -n "$ac_ct_AR"; then
12142   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12143 else
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12146 do
12147   IFS=$as_save_IFS
12148   test -z "$as_dir" && as_dir=.
12149     for ac_exec_ext in '' $ac_executable_extensions; do
12150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12151     ac_cv_prog_ac_ct_AR="ar"
12152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153     break 2
12154   fi
12155 done
12156   done
12157 IFS=$as_save_IFS
12158
12159 fi
12160 fi
12161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12162 if test -n "$ac_ct_AR"; then
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12164 $as_echo "$ac_ct_AR" >&6; }
12165 else
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12168 fi
12169
12170   if test "x$ac_ct_AR" = x; then
12171     AR="ar"
12172   else
12173     case $cross_compiling:$ac_tool_warned in
12174 yes:)
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12177 ac_tool_warned=yes ;;
12178 esac
12179     AR=$ac_ct_AR
12180   fi
12181 else
12182   AR="$ac_cv_prog_AR"
12183 fi
12184
12185 if test -n "$ac_tool_prefix"; then
12186   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 $as_echo_n "checking for $ac_word... " >&6; }
12190 if ${ac_cv_prog_RANLIB+:} false; then :
12191   $as_echo_n "(cached) " >&6
12192 else
12193   if test -n "$RANLIB"; then
12194   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12195 else
12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12198 do
12199   IFS=$as_save_IFS
12200   test -z "$as_dir" && as_dir=.
12201     for ac_exec_ext in '' $ac_executable_extensions; do
12202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12203     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205     break 2
12206   fi
12207 done
12208   done
12209 IFS=$as_save_IFS
12210
12211 fi
12212 fi
12213 RANLIB=$ac_cv_prog_RANLIB
12214 if test -n "$RANLIB"; then
12215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12216 $as_echo "$RANLIB" >&6; }
12217 else
12218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12220 fi
12221
12222
12223 fi
12224 if test -z "$ac_cv_prog_RANLIB"; then
12225   ac_ct_RANLIB=$RANLIB
12226   # Extract the first word of "ranlib", so it can be a program name with args.
12227 set dummy ranlib; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12231   $as_echo_n "(cached) " >&6
12232 else
12233   if test -n "$ac_ct_RANLIB"; then
12234   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12235 else
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239   IFS=$as_save_IFS
12240   test -z "$as_dir" && as_dir=.
12241     for ac_exec_ext in '' $ac_executable_extensions; do
12242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243     ac_cv_prog_ac_ct_RANLIB="ranlib"
12244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245     break 2
12246   fi
12247 done
12248   done
12249 IFS=$as_save_IFS
12250
12251 fi
12252 fi
12253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12254 if test -n "$ac_ct_RANLIB"; then
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12256 $as_echo "$ac_ct_RANLIB" >&6; }
12257 else
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 fi
12261
12262   if test "x$ac_ct_RANLIB" = x; then
12263     RANLIB=":"
12264   else
12265     case $cross_compiling:$ac_tool_warned in
12266 yes:)
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12269 ac_tool_warned=yes ;;
12270 esac
12271     RANLIB=$ac_ct_RANLIB
12272   fi
12273 else
12274   RANLIB="$ac_cv_prog_RANLIB"
12275 fi
12276
12277 if test -n "$ac_tool_prefix"; then
12278   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12279 set dummy ${ac_tool_prefix}strip; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if ${ac_cv_prog_STRIP+:} false; then :
12283   $as_echo_n "(cached) " >&6
12284 else
12285   if test -n "$STRIP"; then
12286   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12290 do
12291   IFS=$as_save_IFS
12292   test -z "$as_dir" && as_dir=.
12293     for ac_exec_ext in '' $ac_executable_extensions; do
12294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297     break 2
12298   fi
12299 done
12300   done
12301 IFS=$as_save_IFS
12302
12303 fi
12304 fi
12305 STRIP=$ac_cv_prog_STRIP
12306 if test -n "$STRIP"; then
12307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12308 $as_echo "$STRIP" >&6; }
12309 else
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312 fi
12313
12314
12315 fi
12316 if test -z "$ac_cv_prog_STRIP"; then
12317   ac_ct_STRIP=$STRIP
12318   # Extract the first word of "strip", so it can be a program name with args.
12319 set dummy strip; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   if test -n "$ac_ct_STRIP"; then
12326   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12330 do
12331   IFS=$as_save_IFS
12332   test -z "$as_dir" && as_dir=.
12333     for ac_exec_ext in '' $ac_executable_extensions; do
12334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12335     ac_cv_prog_ac_ct_STRIP="strip"
12336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337     break 2
12338   fi
12339 done
12340   done
12341 IFS=$as_save_IFS
12342
12343 fi
12344 fi
12345 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12346 if test -n "$ac_ct_STRIP"; then
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12348 $as_echo "$ac_ct_STRIP" >&6; }
12349 else
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 fi
12353
12354   if test "x$ac_ct_STRIP" = x; then
12355     STRIP=":"
12356   else
12357     case $cross_compiling:$ac_tool_warned in
12358 yes:)
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12361 ac_tool_warned=yes ;;
12362 esac
12363     STRIP=$ac_ct_STRIP
12364   fi
12365 else
12366   STRIP="$ac_cv_prog_STRIP"
12367 fi
12368
12369 # Extract the first word of "makeinfo", so it can be a program name with args.
12370 set dummy makeinfo; ac_word=$2
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372 $as_echo_n "checking for $ac_word... " >&6; }
12373 if ${ac_cv_prog_MAKEINFO+:} false; then :
12374   $as_echo_n "(cached) " >&6
12375 else
12376   if test -n "$MAKEINFO"; then
12377   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12378 else
12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12381 do
12382   IFS=$as_save_IFS
12383   test -z "$as_dir" && as_dir=.
12384     for ac_exec_ext in '' $ac_executable_extensions; do
12385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12386     ac_cv_prog_MAKEINFO="makeinfo"
12387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388     break 2
12389   fi
12390 done
12391   done
12392 IFS=$as_save_IFS
12393
12394 fi
12395 fi
12396 MAKEINFO=$ac_cv_prog_MAKEINFO
12397 if test -n "$MAKEINFO"; then
12398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12399 $as_echo "$MAKEINFO" >&6; }
12400 else
12401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12403 fi
12404
12405
12406 if test "_$MAKEINFO" = "_"; then
12407     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12408 else
12409     case "$MAKEINFO" in
12410       */missing.*)
12411         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12412 *** Makeinfo is missing. Info documentation will not be built." >&5
12413 $as_echo "$as_me: WARNING:
12414 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12415         ;;
12416       *)
12417         ;;
12418     esac
12419 fi
12420
12421
12422 # See if we need a separate native compiler.
12423 if test $cross_compiling = no; then
12424   BUILD_CC="$CC"
12425
12426 else
12427   for ac_prog in gcc cc
12428 do
12429   # Extract the first word of "$ac_prog", so it can be a program name with args.
12430 set dummy $ac_prog; ac_word=$2
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12432 $as_echo_n "checking for $ac_word... " >&6; }
12433 if ${ac_cv_prog_BUILD_CC+:} false; then :
12434   $as_echo_n "(cached) " >&6
12435 else
12436   if test -n "$BUILD_CC"; then
12437   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12438 else
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12441 do
12442   IFS=$as_save_IFS
12443   test -z "$as_dir" && as_dir=.
12444     for ac_exec_ext in '' $ac_executable_extensions; do
12445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446     ac_cv_prog_BUILD_CC="$ac_prog"
12447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448     break 2
12449   fi
12450 done
12451   done
12452 IFS=$as_save_IFS
12453
12454 fi
12455 fi
12456 BUILD_CC=$ac_cv_prog_BUILD_CC
12457 if test -n "$BUILD_CC"; then
12458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12459 $as_echo "$BUILD_CC" >&6; }
12460 else
12461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; }
12463 fi
12464
12465
12466   test -n "$BUILD_CC" && break
12467 done
12468
12469 fi
12470 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/acl.h       sys/disklabel.h         sys/disk.h      sys/file.h      sys/ioctl.h     sys/key.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/sysctl.h    sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h
12471 do :
12472   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12473 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12475   cat >>confdefs.h <<_ACEOF
12476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12477 _ACEOF
12478
12479 fi
12480
12481 done
12482
12483 for ac_header in net/if.h
12484 do :
12485   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12486 #if HAVE_SYS_TYPES_H
12487 #include <sys/types.h>
12488 #endif
12489 #if HAVE_SYS_SOCKET
12490 #include <sys/socket.h>
12491 #endif
12492
12493 "
12494 if test "x$ac_cv_header_net_if_h" = xyes; then :
12495   cat >>confdefs.h <<_ACEOF
12496 #define HAVE_NET_IF_H 1
12497 _ACEOF
12498
12499 fi
12500
12501 done
12502
12503 for ac_func in vprintf
12504 do :
12505   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12506 if test "x$ac_cv_func_vprintf" = xyes; then :
12507   cat >>confdefs.h <<_ACEOF
12508 #define HAVE_VPRINTF 1
12509 _ACEOF
12510
12511 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12512 if test "x$ac_cv_func__doprnt" = xyes; then :
12513
12514 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12515
12516 fi
12517
12518 fi
12519 done
12520
12521
12522 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12523 "
12524 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12525
12526 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12527
12528 fi
12529
12530 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12531 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12532
12533 cat >>confdefs.h <<_ACEOF
12534 #define HAVE_STRUCT_STAT_ST_ATIM 1
12535 _ACEOF
12536
12537
12538 fi
12539
12540 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12541 "
12542 if test "x$ac_cv_type_ssize_t" = xyes; then :
12543
12544 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12545
12546 fi
12547
12548 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12549 "
12550 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12551
12552 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12553
12554 fi
12555
12556 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12557                  #define _LARGEFILE64_SOURCE
12558                  #include <unistd.h>
12559 "
12560 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12561
12562 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12563
12564 fi
12565
12566 # The cast to long int works around a bug in the HP C Compiler
12567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12569 # This bug is HP SR number 8606223364.
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12571 $as_echo_n "checking size of short... " >&6; }
12572 if ${ac_cv_sizeof_short+:} false; then :
12573   $as_echo_n "(cached) " >&6
12574 else
12575   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12576
12577 else
12578   if test "$ac_cv_type_short" = yes; then
12579      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12581 as_fn_error 77 "cannot compute sizeof (short)
12582 See \`config.log' for more details" "$LINENO" 5; }
12583    else
12584      ac_cv_sizeof_short=0
12585    fi
12586 fi
12587
12588 fi
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12590 $as_echo "$ac_cv_sizeof_short" >&6; }
12591
12592
12593
12594 cat >>confdefs.h <<_ACEOF
12595 #define SIZEOF_SHORT $ac_cv_sizeof_short
12596 _ACEOF
12597
12598
12599 # The cast to long int works around a bug in the HP C Compiler
12600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12602 # This bug is HP SR number 8606223364.
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12604 $as_echo_n "checking size of int... " >&6; }
12605 if ${ac_cv_sizeof_int+:} false; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12609
12610 else
12611   if test "$ac_cv_type_int" = yes; then
12612      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12614 as_fn_error 77 "cannot compute sizeof (int)
12615 See \`config.log' for more details" "$LINENO" 5; }
12616    else
12617      ac_cv_sizeof_int=0
12618    fi
12619 fi
12620
12621 fi
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12623 $as_echo "$ac_cv_sizeof_int" >&6; }
12624
12625
12626
12627 cat >>confdefs.h <<_ACEOF
12628 #define SIZEOF_INT $ac_cv_sizeof_int
12629 _ACEOF
12630
12631
12632 # The cast to long int works around a bug in the HP C Compiler
12633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12635 # This bug is HP SR number 8606223364.
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12637 $as_echo_n "checking size of long... " >&6; }
12638 if ${ac_cv_sizeof_long+:} false; then :
12639   $as_echo_n "(cached) " >&6
12640 else
12641   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12642
12643 else
12644   if test "$ac_cv_type_long" = yes; then
12645      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12647 as_fn_error 77 "cannot compute sizeof (long)
12648 See \`config.log' for more details" "$LINENO" 5; }
12649    else
12650      ac_cv_sizeof_long=0
12651    fi
12652 fi
12653
12654 fi
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12656 $as_echo "$ac_cv_sizeof_long" >&6; }
12657
12658
12659
12660 cat >>confdefs.h <<_ACEOF
12661 #define SIZEOF_LONG $ac_cv_sizeof_long
12662 _ACEOF
12663
12664
12665 # The cast to long int works around a bug in the HP C Compiler
12666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12668 # This bug is HP SR number 8606223364.
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12670 $as_echo_n "checking size of long long... " >&6; }
12671 if ${ac_cv_sizeof_long_long+:} false; then :
12672   $as_echo_n "(cached) " >&6
12673 else
12674   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12675
12676 else
12677   if test "$ac_cv_type_long_long" = yes; then
12678      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12680 as_fn_error 77 "cannot compute sizeof (long long)
12681 See \`config.log' for more details" "$LINENO" 5; }
12682    else
12683      ac_cv_sizeof_long_long=0
12684    fi
12685 fi
12686
12687 fi
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12689 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12690
12691
12692
12693 cat >>confdefs.h <<_ACEOF
12694 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12695 _ACEOF
12696
12697
12698 # The cast to long int works around a bug in the HP C Compiler
12699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12701 # This bug is HP SR number 8606223364.
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12703 $as_echo_n "checking size of off_t... " >&6; }
12704 if ${ac_cv_sizeof_off_t+:} false; then :
12705   $as_echo_n "(cached) " >&6
12706 else
12707   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12708
12709 else
12710   if test "$ac_cv_type_off_t" = yes; then
12711      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12713 as_fn_error 77 "cannot compute sizeof (off_t)
12714 See \`config.log' for more details" "$LINENO" 5; }
12715    else
12716      ac_cv_sizeof_off_t=0
12717    fi
12718 fi
12719
12720 fi
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12722 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12723
12724
12725
12726 cat >>confdefs.h <<_ACEOF
12727 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12728 _ACEOF
12729
12730
12731 SIZEOF_SHORT=$ac_cv_sizeof_short
12732 SIZEOF_INT=$ac_cv_sizeof_int
12733 SIZEOF_LONG=$ac_cv_sizeof_long
12734 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12735 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12736
12737
12738
12739
12740
12741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12742 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12743 if ${ac_cv_c_bigendian+:} false; then :
12744   $as_echo_n "(cached) " >&6
12745 else
12746   ac_cv_c_bigendian=unknown
12747     # See if we're dealing with a universal compiler.
12748     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h.  */
12750 #ifndef __APPLE_CC__
12751                not a universal capable compiler
12752              #endif
12753              typedef int dummy;
12754
12755 _ACEOF
12756 if ac_fn_c_try_compile "$LINENO"; then :
12757
12758         # Check for potential -arch flags.  It is not universal unless
12759         # there are at least two -arch flags with different values.
12760         ac_arch=
12761         ac_prev=
12762         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12763          if test -n "$ac_prev"; then
12764            case $ac_word in
12765              i?86 | x86_64 | ppc | ppc64)
12766                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12767                  ac_arch=$ac_word
12768                else
12769                  ac_cv_c_bigendian=universal
12770                  break
12771                fi
12772                ;;
12773            esac
12774            ac_prev=
12775          elif test "x$ac_word" = "x-arch"; then
12776            ac_prev=arch
12777          fi
12778        done
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781     if test $ac_cv_c_bigendian = unknown; then
12782       # See if sys/param.h defines the BYTE_ORDER macro.
12783       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h.  */
12785 #include <sys/types.h>
12786              #include <sys/param.h>
12787
12788 int
12789 main ()
12790 {
12791 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12792                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12793                      && LITTLE_ENDIAN)
12794               bogus endian macros
12795              #endif
12796
12797   ;
12798   return 0;
12799 }
12800 _ACEOF
12801 if ac_fn_c_try_compile "$LINENO"; then :
12802   # It does; now see whether it defined to BIG_ENDIAN or not.
12803          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h.  */
12805 #include <sys/types.h>
12806                 #include <sys/param.h>
12807
12808 int
12809 main ()
12810 {
12811 #if BYTE_ORDER != BIG_ENDIAN
12812                  not big endian
12813                 #endif
12814
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 if ac_fn_c_try_compile "$LINENO"; then :
12820   ac_cv_c_bigendian=yes
12821 else
12822   ac_cv_c_bigendian=no
12823 fi
12824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825 fi
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827     fi
12828     if test $ac_cv_c_bigendian = unknown; then
12829       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12830       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h.  */
12832 #include <limits.h>
12833
12834 int
12835 main ()
12836 {
12837 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12838               bogus endian macros
12839              #endif
12840
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_compile "$LINENO"; then :
12846   # It does; now see whether it defined to _BIG_ENDIAN or not.
12847          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h.  */
12849 #include <limits.h>
12850
12851 int
12852 main ()
12853 {
12854 #ifndef _BIG_ENDIAN
12855                  not big endian
12856                 #endif
12857
12858   ;
12859   return 0;
12860 }
12861 _ACEOF
12862 if ac_fn_c_try_compile "$LINENO"; then :
12863   ac_cv_c_bigendian=yes
12864 else
12865   ac_cv_c_bigendian=no
12866 fi
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 fi
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870     fi
12871     if test $ac_cv_c_bigendian = unknown; then
12872       # Compile a test program.
12873       if test "$cross_compiling" = yes; then :
12874   # Try to guess by grepping values from an object file.
12875          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h.  */
12877 short int ascii_mm[] =
12878                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12879                 short int ascii_ii[] =
12880                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12881                 int use_ascii (int i) {
12882                   return ascii_mm[i] + ascii_ii[i];
12883                 }
12884                 short int ebcdic_ii[] =
12885                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12886                 short int ebcdic_mm[] =
12887                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12888                 int use_ebcdic (int i) {
12889                   return ebcdic_mm[i] + ebcdic_ii[i];
12890                 }
12891                 extern int foo;
12892
12893 int
12894 main ()
12895 {
12896 return use_ascii (foo) == use_ebcdic (foo);
12897   ;
12898   return 0;
12899 }
12900 _ACEOF
12901 if ac_fn_c_try_compile "$LINENO"; then :
12902   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12903               ac_cv_c_bigendian=yes
12904             fi
12905             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12906               if test "$ac_cv_c_bigendian" = unknown; then
12907                 ac_cv_c_bigendian=no
12908               else
12909                 # finding both strings is unlikely to happen, but who knows?
12910                 ac_cv_c_bigendian=unknown
12911               fi
12912             fi
12913 fi
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 else
12916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h.  */
12918 $ac_includes_default
12919 int
12920 main ()
12921 {
12922
12923              /* Are we little or big endian?  From Harbison&Steele.  */
12924              union
12925              {
12926                long int l;
12927                char c[sizeof (long int)];
12928              } u;
12929              u.l = 1;
12930              return u.c[sizeof (long int) - 1] == 1;
12931
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_run "$LINENO"; then :
12937   ac_cv_c_bigendian=no
12938 else
12939   ac_cv_c_bigendian=yes
12940 fi
12941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12942   conftest.$ac_objext conftest.beam conftest.$ac_ext
12943 fi
12944
12945     fi
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12948 $as_echo "$ac_cv_c_bigendian" >&6; }
12949  case $ac_cv_c_bigendian in #(
12950    yes)
12951      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12952 ;; #(
12953    no)
12954       ;; #(
12955    universal)
12956
12957 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12958
12959      ;; #(
12960    *)
12961      as_fn_error $? "unknown endianness
12962  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12963  esac
12964
12965 if test $cross_compiling = no; then
12966   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12967 else
12968   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12969 fi
12970 ASM_TYPES_HEADER=./asm_types.h
12971
12972 echo "/* These defines are needed for the public ext2fs.h header file */" \
12973      > public_config.h
12974 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12975   uniq tmp_config.$$ >> public_config.h
12976 else
12977   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12978 fi
12979 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12980   uniq tmp_config.$$ >> public_config.h
12981 else
12982   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12983 fi
12984 rm -f tmp_config.$$
12985 PUBLIC_CONFIG_HEADER=./public_config.h
12986
12987 for ac_header in inttypes.h
12988 do :
12989   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12990 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12991   cat >>confdefs.h <<_ACEOF
12992 #define HAVE_INTTYPES_H 1
12993 _ACEOF
12994
12995 fi
12996
12997 done
12998
12999 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13000 if test "x$ac_cv_type_intptr_t" = xyes; then :
13001
13002 cat >>confdefs.h <<_ACEOF
13003 #define HAVE_INTPTR_T 1
13004 _ACEOF
13005
13006
13007 fi
13008
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13010 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13011 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13012   $as_echo_n "(cached) " >&6
13013 else
13014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h.  */
13016 #include <sys/stat.h>
13017 int
13018 main ()
13019 {
13020 struct stat stat; stat.st_flags = 0;
13021   ;
13022   return 0;
13023 }
13024 _ACEOF
13025 if ac_fn_c_try_compile "$LINENO"; then :
13026   e2fsprogs_cv_struct_st_flags=yes
13027 else
13028   e2fsprogs_cv_struct_st_flags=no
13029 fi
13030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031 fi
13032
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13034 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13035 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13037 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13038   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13039   $as_echo_n "(cached) " >&6
13040 else
13041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h.  */
13043 #include <sys/stat.h>
13044 int
13045 main ()
13046 {
13047 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13048   ;
13049   return 0;
13050 }
13051 _ACEOF
13052 if ac_fn_c_try_compile "$LINENO"; then :
13053   e2fsprogs_cv_struct_st_flags_immut=yes
13054 else
13055   e2fsprogs_cv_struct_st_flags_immut=no
13056 fi
13057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058 fi
13059
13060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13061 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13062   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13063
13064 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13065
13066   fi
13067 fi
13068 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13069          #include <sys/socket.h>
13070 "
13071 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13072
13073 cat >>confdefs.h <<_ACEOF
13074 #define HAVE_SA_LEN 1
13075 _ACEOF
13076
13077 fi
13078
13079 if test -n "$BLKID_CMT"; then
13080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13081 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13082 if ${ac_cv_search_blkid_probe_all+:} false; then :
13083   $as_echo_n "(cached) " >&6
13084 else
13085   ac_func_search_save_LIBS=$LIBS
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h.  */
13088
13089 /* Override any GCC internal prototype to avoid an error.
13090    Use char because int might match the return type of a GCC
13091    builtin and then its argument prototype would still apply.  */
13092 #ifdef __cplusplus
13093 extern "C"
13094 #endif
13095 char blkid_probe_all ();
13096 int
13097 main ()
13098 {
13099 return blkid_probe_all ();
13100   ;
13101   return 0;
13102 }
13103 _ACEOF
13104 for ac_lib in '' blkid; do
13105   if test -z "$ac_lib"; then
13106     ac_res="none required"
13107   else
13108     ac_res=-l$ac_lib
13109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13110   fi
13111   if ac_fn_c_try_link "$LINENO"; then :
13112   ac_cv_search_blkid_probe_all=$ac_res
13113 fi
13114 rm -f core conftest.err conftest.$ac_objext \
13115     conftest$ac_exeext
13116   if ${ac_cv_search_blkid_probe_all+:} false; then :
13117   break
13118 fi
13119 done
13120 if ${ac_cv_search_blkid_probe_all+:} false; then :
13121
13122 else
13123   ac_cv_search_blkid_probe_all=no
13124 fi
13125 rm conftest.$ac_ext
13126 LIBS=$ac_func_search_save_LIBS
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13129 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13130 ac_res=$ac_cv_search_blkid_probe_all
13131 if test "$ac_res" != no; then :
13132   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13133
13134 fi
13135
13136 fi
13137 for ac_func in          __secure_getenv         add_key         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         keyctl  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   utimes  valloc
13138 do :
13139   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13140 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13141 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13142   cat >>confdefs.h <<_ACEOF
13143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13144 _ACEOF
13145
13146 fi
13147 done
13148
13149 SOCKET_LIB=''
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13151 $as_echo_n "checking for socket in -lsocket... " >&6; }
13152 if ${ac_cv_lib_socket_socket+:} false; then :
13153   $as_echo_n "(cached) " >&6
13154 else
13155   ac_check_lib_save_LIBS=$LIBS
13156 LIBS="-lsocket  $LIBS"
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h.  */
13159
13160 /* Override any GCC internal prototype to avoid an error.
13161    Use char because int might match the return type of a GCC
13162    builtin and then its argument prototype would still apply.  */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 char socket ();
13167 int
13168 main ()
13169 {
13170 return socket ();
13171   ;
13172   return 0;
13173 }
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"; then :
13176   ac_cv_lib_socket_socket=yes
13177 else
13178   ac_cv_lib_socket_socket=no
13179 fi
13180 rm -f core conftest.err conftest.$ac_objext \
13181     conftest$ac_exeext conftest.$ac_ext
13182 LIBS=$ac_check_lib_save_LIBS
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13185 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13186 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13187   SOCKET_LIB=-lsocket
13188 fi
13189
13190
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13192 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13193 if ${ac_cv_lib_magic_magic_file+:} false; then :
13194   $as_echo_n "(cached) " >&6
13195 else
13196   ac_check_lib_save_LIBS=$LIBS
13197 LIBS="-lmagic  $LIBS"
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h.  */
13200
13201 /* Override any GCC internal prototype to avoid an error.
13202    Use char because int might match the return type of a GCC
13203    builtin and then its argument prototype would still apply.  */
13204 #ifdef __cplusplus
13205 extern "C"
13206 #endif
13207 char magic_file ();
13208 int
13209 main ()
13210 {
13211 return magic_file ();
13212   ;
13213   return 0;
13214 }
13215 _ACEOF
13216 if ac_fn_c_try_link "$LINENO"; then :
13217   ac_cv_lib_magic_magic_file=yes
13218 else
13219   ac_cv_lib_magic_magic_file=no
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext \
13222     conftest$ac_exeext conftest.$ac_ext
13223 LIBS=$ac_check_lib_save_LIBS
13224 fi
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13226 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13227 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13228   MAGIC_LIB=-lmagic
13229 for ac_header in magic.h
13230 do :
13231   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13232 if test "x$ac_cv_header_magic_h" = xyes; then :
13233   cat >>confdefs.h <<_ACEOF
13234 #define HAVE_MAGIC_H 1
13235 _ACEOF
13236
13237 fi
13238
13239 done
13240
13241 fi
13242
13243 if test "$ac_cv_lib_dl_dlopen" = yes ; then
13244    MAGIC_LIB=$DLOPEN_LIB
13245 fi
13246
13247 FUSE_CMT=
13248 FUSE_LIB=
13249 # Check whether --enable-fuse2fs was given.
13250 if test "${enable_fuse2fs+set}" = set; then :
13251   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13252 then
13253         FUSE_CMT="#"
13254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13255 $as_echo "Disabling fuse2fs" >&6; }
13256 else
13257         for ac_header in pthread.h fuse.h
13258 do :
13259   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13261 #define FUSE_USE_VERSION 29
13262 "
13263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13264   cat >>confdefs.h <<_ACEOF
13265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13266 _ACEOF
13267
13268 else
13269   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13271 as_fn_error $? "Cannot find fuse2fs headers.
13272 See \`config.log' for more details" "$LINENO" 5; }
13273 fi
13274
13275 done
13276
13277
13278         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h.  */
13280 #define FUSE_USE_VERSION 29
13281 #ifdef __linux__
13282 #include <linux/fs.h>
13283 #include <linux/falloc.h>
13284 #include <linux/xattr.h>
13285 #endif
13286
13287 int
13288 main ()
13289 {
13290
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 if ac_fn_c_try_cpp "$LINENO"; then :
13296
13297 else
13298   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13300 as_fn_error $? "Cannot find fuse2fs Linux headers.
13301 See \`config.log' for more details" "$LINENO" 5; }
13302 fi
13303 rm -f conftest.err conftest.i conftest.$ac_ext
13304
13305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13306 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13307 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13308   $as_echo_n "(cached) " >&6
13309 else
13310   ac_check_lib_save_LIBS=$LIBS
13311 LIBS="-losxfuse  $LIBS"
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h.  */
13314
13315 /* Override any GCC internal prototype to avoid an error.
13316    Use char because int might match the return type of a GCC
13317    builtin and then its argument prototype would still apply.  */
13318 #ifdef __cplusplus
13319 extern "C"
13320 #endif
13321 char fuse_main ();
13322 int
13323 main ()
13324 {
13325 return fuse_main ();
13326   ;
13327   return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_link "$LINENO"; then :
13331   ac_cv_lib_osxfuse_fuse_main=yes
13332 else
13333   ac_cv_lib_osxfuse_fuse_main=no
13334 fi
13335 rm -f core conftest.err conftest.$ac_objext \
13336     conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13338 fi
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13340 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13341 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13342   FUSE_LIB=-losxfuse
13343 else
13344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13345 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13346 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13347   $as_echo_n "(cached) " >&6
13348 else
13349   ac_check_lib_save_LIBS=$LIBS
13350 LIBS="-lfuse  $LIBS"
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h.  */
13353
13354 /* Override any GCC internal prototype to avoid an error.
13355    Use char because int might match the return type of a GCC
13356    builtin and then its argument prototype would still apply.  */
13357 #ifdef __cplusplus
13358 extern "C"
13359 #endif
13360 char fuse_main ();
13361 int
13362 main ()
13363 {
13364 return fuse_main ();
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 if ac_fn_c_try_link "$LINENO"; then :
13370   ac_cv_lib_fuse_fuse_main=yes
13371 else
13372   ac_cv_lib_fuse_fuse_main=no
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext \
13375     conftest$ac_exeext conftest.$ac_ext
13376 LIBS=$ac_check_lib_save_LIBS
13377 fi
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13379 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13380 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13381   FUSE_LIB=-lfuse
13382 else
13383   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13385 as_fn_error $? "Cannot find fuse library.
13386 See \`config.log' for more details" "$LINENO" 5; }
13387 fi
13388
13389 fi
13390
13391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13392 $as_echo "Enabling fuse2fs" >&6; }
13393 fi
13394
13395 else
13396   for ac_header in pthread.h fuse.h
13397 do :
13398   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13399 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13400 #define FUSE_USE_VERSION 29
13401 #ifdef __linux__
13402 # include <linux/fs.h>
13403 # include <linux/falloc.h>
13404 # include <linux/xattr.h>
13405 #endif
13406 "
13407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13408   cat >>confdefs.h <<_ACEOF
13409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13410 _ACEOF
13411
13412 else
13413   FUSE_CMT="#"
13414 fi
13415
13416 done
13417
13418 if test -z "$FUSE_CMT"
13419 then
13420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13421 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13422 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-losxfuse  $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h.  */
13429
13430 /* Override any GCC internal prototype to avoid an error.
13431    Use char because int might match the return type of a GCC
13432    builtin and then its argument prototype would still apply.  */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char fuse_main ();
13437 int
13438 main ()
13439 {
13440 return fuse_main ();
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446   ac_cv_lib_osxfuse_fuse_main=yes
13447 else
13448   ac_cv_lib_osxfuse_fuse_main=no
13449 fi
13450 rm -f core conftest.err conftest.$ac_objext \
13451     conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13455 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13456 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13457   FUSE_LIB=-losxfuse
13458 else
13459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13460 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13461 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   ac_check_lib_save_LIBS=$LIBS
13465 LIBS="-lfuse  $LIBS"
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h.  */
13468
13469 /* Override any GCC internal prototype to avoid an error.
13470    Use char because int might match the return type of a GCC
13471    builtin and then its argument prototype would still apply.  */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 char fuse_main ();
13476 int
13477 main ()
13478 {
13479 return fuse_main ();
13480   ;
13481   return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"; then :
13485   ac_cv_lib_fuse_fuse_main=yes
13486 else
13487   ac_cv_lib_fuse_fuse_main=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext \
13490     conftest$ac_exeext conftest.$ac_ext
13491 LIBS=$ac_check_lib_save_LIBS
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13494 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13495 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13496   FUSE_LIB=-lfuse
13497 else
13498   FUSE_CMT="#"
13499 fi
13500
13501 fi
13502
13503 fi
13504 if test -z "$FUSE_CMT"
13505 then
13506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13507 $as_echo "Enabling fuse2fs by default." >&6; }
13508 fi
13509
13510 fi
13511
13512
13513
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13515 $as_echo_n "checking for optreset... " >&6; }
13516 if ${ac_cv_have_optreset+:} false; then :
13517   $as_echo_n "(cached) " >&6
13518 else
13519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h.  */
13521 #include <unistd.h>
13522
13523 _ACEOF
13524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13525   $EGREP "optreset" >/dev/null 2>&1; then :
13526   ac_cv_have_optreset=yes
13527 else
13528   ac_cv_have_optreset=no
13529 fi
13530 rm -f conftest*
13531
13532 fi
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13534 $as_echo "$ac_cv_have_optreset" >&6; }
13535 if test $ac_cv_have_optreset = yes; then
13536
13537 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13538
13539 fi
13540
13541 SEM_INIT_LIB=''
13542 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13543 if test "x$ac_cv_func_sem_init" = xyes; then :
13544
13545 else
13546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13547 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13548 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13549   $as_echo_n "(cached) " >&6
13550 else
13551   ac_check_lib_save_LIBS=$LIBS
13552 LIBS="-lpthread  $LIBS"
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h.  */
13555
13556 /* Override any GCC internal prototype to avoid an error.
13557    Use char because int might match the return type of a GCC
13558    builtin and then its argument prototype would still apply.  */
13559 #ifdef __cplusplus
13560 extern "C"
13561 #endif
13562 char sem_init ();
13563 int
13564 main ()
13565 {
13566 return sem_init ();
13567   ;
13568   return 0;
13569 }
13570 _ACEOF
13571 if ac_fn_c_try_link "$LINENO"; then :
13572   ac_cv_lib_pthread_sem_init=yes
13573 else
13574   ac_cv_lib_pthread_sem_init=no
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext \
13577     conftest$ac_exeext conftest.$ac_ext
13578 LIBS=$ac_check_lib_save_LIBS
13579 fi
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13581 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13582 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13583   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13584
13585         SEM_INIT_LIB=-lpthread
13586 else
13587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13588 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13589 if ${ac_cv_lib_rt_sem_init+:} false; then :
13590   $as_echo_n "(cached) " >&6
13591 else
13592   ac_check_lib_save_LIBS=$LIBS
13593 LIBS="-lrt  $LIBS"
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h.  */
13596
13597 /* Override any GCC internal prototype to avoid an error.
13598    Use char because int might match the return type of a GCC
13599    builtin and then its argument prototype would still apply.  */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 char sem_init ();
13604 int
13605 main ()
13606 {
13607 return sem_init ();
13608   ;
13609   return 0;
13610 }
13611 _ACEOF
13612 if ac_fn_c_try_link "$LINENO"; then :
13613   ac_cv_lib_rt_sem_init=yes
13614 else
13615   ac_cv_lib_rt_sem_init=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext \
13618     conftest$ac_exeext conftest.$ac_ext
13619 LIBS=$ac_check_lib_save_LIBS
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13622 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13623 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13624   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13625
13626         SEM_INIT_LIB=-lrt
13627 else
13628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13629 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13630 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13631   $as_echo_n "(cached) " >&6
13632 else
13633   ac_check_lib_save_LIBS=$LIBS
13634 LIBS="-lposix4  $LIBS"
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h.  */
13637
13638 /* Override any GCC internal prototype to avoid an error.
13639    Use char because int might match the return type of a GCC
13640    builtin and then its argument prototype would still apply.  */
13641 #ifdef __cplusplus
13642 extern "C"
13643 #endif
13644 char sem_init ();
13645 int
13646 main ()
13647 {
13648 return sem_init ();
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_link "$LINENO"; then :
13654   ac_cv_lib_posix4_sem_init=yes
13655 else
13656   ac_cv_lib_posix4_sem_init=no
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext \
13659     conftest$ac_exeext conftest.$ac_ext
13660 LIBS=$ac_check_lib_save_LIBS
13661 fi
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13663 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13664 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13665   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13666
13667         SEM_INIT_LIB=-lposix4
13668 fi
13669
13670 fi
13671
13672 fi
13673
13674 fi
13675
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13677 $as_echo_n "checking for unified diff option... " >&6; }
13678 if diff -u $0 $0 > /dev/null 2>&1 ; then
13679    UNI_DIFF_OPTS=-u
13680 else
13681    UNI_DIFF_OPTS=-c
13682 fi
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13684 $as_echo "$UNI_DIFF_OPTS" >&6; }
13685
13686 case "$host_os" in
13687 linux*)
13688
13689 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13690
13691         ;;
13692 esac
13693 LINUX_CMT="#"
13694 CYGWIN_CMT="#"
13695 UNIX_CMT=
13696 case "$host_os" in
13697 linux*)
13698         LINUX_CMT=
13699         ;;
13700 cygwin)
13701         CYGWIN_CMT=
13702         UNIX_CMT="#"
13703         ;;
13704 esac
13705
13706
13707
13708 case "$host_os" in
13709 linux* | gnu* | k*bsd*-gnu)
13710         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13711                 root_prefix="";
13712                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13713 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13714         fi
13715         ;;
13716 esac
13717 case "$host_os" in
13718 linux* | gnu* | k*bsd*-gnu)
13719         if test "$prefix" = NONE ; then
13720                 prefix="/usr";
13721                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13722 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13723                 if test "$mandir" = '${prefix}/man' ; then
13724                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13725 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13726                         mandir=/usr/share/man
13727                 fi
13728         fi
13729 ;;
13730 esac
13731 if test "$root_prefix" = NONE ; then
13732         if test "$prefix" = NONE ; then
13733                 root_prefix="$ac_default_prefix"
13734         else
13735                 root_prefix="$prefix"
13736         fi
13737         root_bindir=$bindir
13738         root_sbindir=$sbindir
13739         root_libdir=$libdir
13740         root_sysconfdir=$sysconfdir
13741 else
13742         root_bindir='${root_prefix}/bin'
13743         root_sbindir='${root_prefix}/sbin'
13744         root_libdir='${root_prefix}/lib'
13745         root_sysconfdir='${root_prefix}/etc'
13746 fi
13747 if test "$bindir" != '${exec_prefix}/bin'; then
13748     root_bindir=$bindir
13749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13750 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13751 fi
13752 if test "$sbindir" != '${exec_prefix}/sbin'; then
13753     root_sbindir=$sbindir
13754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13755 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13756 fi
13757 if test "$libdir" != '${exec_prefix}/lib'; then
13758     root_libdir=$libdir
13759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13760 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13761 fi
13762 if test "$sysconfdir" != '${prefix}/etc'; then
13763     root_sysconfdir=$sysconfdir
13764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13765 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13766 fi
13767
13768
13769
13770
13771
13772
13773 # Check whether --with-multiarch was given.
13774 if test "${with_multiarch+set}" = set; then :
13775   withval=$with_multiarch; if test "$withval" = "lib64"; then
13776     libdir=/usr/lib64
13777     root_libdir=/lib64
13778 else
13779     libdir=$libdir/$withval
13780     root_libdir=$root_libdir/$withval
13781 fi
13782
13783 fi
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13785 $as_echo_n "checking whether we can link with -static... " >&6; }
13786 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13787   $as_echo_n "(cached) " >&6
13788 else
13789   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h.  */
13792 #include <stdio.h>
13793 int
13794 main ()
13795 {
13796 fflush(stdout);
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 if ac_fn_c_try_link "$LINENO"; then :
13802   ac_cv_e2fsprogs_use_static=yes
13803 else
13804   ac_cv_e2fsprogs_use_static=no
13805 fi
13806 rm -f core conftest.err conftest.$ac_objext \
13807     conftest$ac_exeext conftest.$ac_ext
13808 LDFLAGS=$SAVE_LDFLAGS
13809 fi
13810
13811 case "$host_os" in
13812 solaris2.*)
13813         ac_cv_e2fsprogs_use_static=no
13814 ;;
13815 esac
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13817 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13818 LDFLAG_STATIC=
13819 if test $ac_cv_e2fsprogs_use_static = yes; then
13820         LDFLAG_STATIC=-static
13821 fi
13822
13823 case "$host_os" in
13824 darwin*)
13825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13826 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13827
13828 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13829
13830         ;;
13831 esac
13832 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13833 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13834
13835
13836 if test "$cross_compiling" = yes ; then
13837   DO_TEST_SUITE=
13838 else
13839   DO_TEST_SUITE=check
13840 fi
13841
13842 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13843 if test -n "$CPPFLAGS" ; then
13844         INCLUDES="$INCLUDES $CPPFLAGS"
13845 fi
13846 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13847         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13848 fi
13849 if test -n "$WITH_DIET_LIBC" ; then
13850         INCLUDES="$INCLUDES -D_REENTRANT"
13851 fi
13852
13853
13854         MKINSTALLDIRS=
13855   if test -n "$ac_aux_dir"; then
13856     case "$ac_aux_dir" in
13857       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13858       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13859     esac
13860   fi
13861   if test -z "$MKINSTALLDIRS"; then
13862     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13863   fi
13864
13865
13866 if test $cross_compiling = no; then
13867    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13868    BUILD_LDFLAGS="$LDFLAGS"
13869 fi
13870
13871
13872 test -d lib || mkdir lib
13873 test -d include || mkdir include
13874 test -d include/linux || mkdir include/linux
13875 test -d include/asm || mkdir include/asm
13876 if test -z "$UUID_CMT" ; then
13877         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13878                 lib/uuid/uuid_types.h"
13879 fi
13880 if test -z "$BLKID_CMT" ; then
13881         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13882                 lib/blkid/blkid_types.h"
13883 fi
13884 for i in MCONFIG Makefile e2fsprogs.spec \
13885         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13886         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13887         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13888         $uuid_out_list $blkid_out_list lib/quota/Makefile \
13889         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13890         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13891         debugfs/Makefile tests/Makefile tests/progs/Makefile \
13892         resize/Makefile doc/Makefile intl/Makefile \
13893         intl/libgnuintl.h po/Makefile.in ; do
13894         if test -d `dirname ${srcdir}/$i` ; then
13895                 outlist="$outlist $i"
13896         fi
13897 done
13898 ac_config_files="$ac_config_files $outlist"
13899
13900 cat >confcache <<\_ACEOF
13901 # This file is a shell script that caches the results of configure
13902 # tests run on this system so they can be shared between configure
13903 # scripts and configure runs, see configure's option --config-cache.
13904 # It is not useful on other systems.  If it contains results you don't
13905 # want to keep, you may remove or edit it.
13906 #
13907 # config.status only pays attention to the cache file if you give it
13908 # the --recheck option to rerun configure.
13909 #
13910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13912 # following values.
13913
13914 _ACEOF
13915
13916 # The following way of writing the cache mishandles newlines in values,
13917 # but we know of no workaround that is simple, portable, and efficient.
13918 # So, we kill variables containing newlines.
13919 # Ultrix sh set writes to stderr and can't be redirected directly,
13920 # and sets the high bit in the cache file unless we assign to the vars.
13921 (
13922   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13923     eval ac_val=\$$ac_var
13924     case $ac_val in #(
13925     *${as_nl}*)
13926       case $ac_var in #(
13927       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13929       esac
13930       case $ac_var in #(
13931       _ | IFS | as_nl) ;; #(
13932       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13933       *) { eval $ac_var=; unset $ac_var;} ;;
13934       esac ;;
13935     esac
13936   done
13937
13938   (set) 2>&1 |
13939     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13940     *${as_nl}ac_space=\ *)
13941       # `set' does not quote correctly, so add quotes: double-quote
13942       # substitution turns \\\\ into \\, and sed turns \\ into \.
13943       sed -n \
13944         "s/'/'\\\\''/g;
13945           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13946       ;; #(
13947     *)
13948       # `set' quotes correctly as required by POSIX, so do not add quotes.
13949       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13950       ;;
13951     esac |
13952     sort
13953 ) |
13954   sed '
13955      /^ac_cv_env_/b end
13956      t clear
13957      :clear
13958      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13959      t end
13960      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13961      :end' >>confcache
13962 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13963   if test -w "$cache_file"; then
13964     if test "x$cache_file" != "x/dev/null"; then
13965       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13966 $as_echo "$as_me: updating cache $cache_file" >&6;}
13967       if test ! -f "$cache_file" || test -h "$cache_file"; then
13968         cat confcache >"$cache_file"
13969       else
13970         case $cache_file in #(
13971         */* | ?:*)
13972           mv -f confcache "$cache_file"$$ &&
13973           mv -f "$cache_file"$$ "$cache_file" ;; #(
13974         *)
13975           mv -f confcache "$cache_file" ;;
13976         esac
13977       fi
13978     fi
13979   else
13980     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13981 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13982   fi
13983 fi
13984 rm -f confcache
13985
13986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13987 # Let make expand exec_prefix.
13988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13989
13990 DEFS=-DHAVE_CONFIG_H
13991
13992 ac_libobjs=
13993 ac_ltlibobjs=
13994 U=
13995 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13996   # 1. Remove the extension, and $U if already installed.
13997   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13998   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13999   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14000   #    will be set to the directory where LIBOBJS objects are built.
14001   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14002   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14003 done
14004 LIBOBJS=$ac_libobjs
14005
14006 LTLIBOBJS=$ac_ltlibobjs
14007
14008
14009
14010
14011 : "${CONFIG_STATUS=./config.status}"
14012 ac_write_fail=0
14013 ac_clean_files_save=$ac_clean_files
14014 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14016 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14017 as_write_fail=0
14018 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14019 #! $SHELL
14020 # Generated by $as_me.
14021 # Run this file to recreate the current configuration.
14022 # Compiler output produced by configure, useful for debugging
14023 # configure, is in config.log if it exists.
14024
14025 debug=false
14026 ac_cs_recheck=false
14027 ac_cs_silent=false
14028
14029 SHELL=\${CONFIG_SHELL-$SHELL}
14030 export SHELL
14031 _ASEOF
14032 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14033 ## -------------------- ##
14034 ## M4sh Initialization. ##
14035 ## -------------------- ##
14036
14037 # Be more Bourne compatible
14038 DUALCASE=1; export DUALCASE # for MKS sh
14039 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14040   emulate sh
14041   NULLCMD=:
14042   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14043   # is contrary to our usage.  Disable this feature.
14044   alias -g '${1+"$@"}'='"$@"'
14045   setopt NO_GLOB_SUBST
14046 else
14047   case `(set -o) 2>/dev/null` in #(
14048   *posix*) :
14049     set -o posix ;; #(
14050   *) :
14051      ;;
14052 esac
14053 fi
14054
14055
14056 as_nl='
14057 '
14058 export as_nl
14059 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14060 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14063 # Prefer a ksh shell builtin over an external printf program on Solaris,
14064 # but without wasting forks for bash or zsh.
14065 if test -z "$BASH_VERSION$ZSH_VERSION" \
14066     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14067   as_echo='print -r --'
14068   as_echo_n='print -rn --'
14069 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14070   as_echo='printf %s\n'
14071   as_echo_n='printf %s'
14072 else
14073   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14074     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14075     as_echo_n='/usr/ucb/echo -n'
14076   else
14077     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14078     as_echo_n_body='eval
14079       arg=$1;
14080       case $arg in #(
14081       *"$as_nl"*)
14082         expr "X$arg" : "X\\(.*\\)$as_nl";
14083         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14084       esac;
14085       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14086     '
14087     export as_echo_n_body
14088     as_echo_n='sh -c $as_echo_n_body as_echo'
14089   fi
14090   export as_echo_body
14091   as_echo='sh -c $as_echo_body as_echo'
14092 fi
14093
14094 # The user is always right.
14095 if test "${PATH_SEPARATOR+set}" != set; then
14096   PATH_SEPARATOR=:
14097   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14098     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14099       PATH_SEPARATOR=';'
14100   }
14101 fi
14102
14103
14104 # IFS
14105 # We need space, tab and new line, in precisely that order.  Quoting is
14106 # there to prevent editors from complaining about space-tab.
14107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14108 # splitting by setting IFS to empty value.)
14109 IFS=" ""        $as_nl"
14110
14111 # Find who we are.  Look in the path if we contain no directory separator.
14112 as_myself=
14113 case $0 in #((
14114   *[\\/]* ) as_myself=$0 ;;
14115   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14117 do
14118   IFS=$as_save_IFS
14119   test -z "$as_dir" && as_dir=.
14120     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14121   done
14122 IFS=$as_save_IFS
14123
14124      ;;
14125 esac
14126 # We did not find ourselves, most probably we were run as `sh COMMAND'
14127 # in which case we are not to be found in the path.
14128 if test "x$as_myself" = x; then
14129   as_myself=$0
14130 fi
14131 if test ! -f "$as_myself"; then
14132   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14133   exit 1
14134 fi
14135
14136 # Unset variables that we do not need and which cause bugs (e.g. in
14137 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14138 # suppresses any "Segmentation fault" message there.  '((' could
14139 # trigger a bug in pdksh 5.2.14.
14140 for as_var in BASH_ENV ENV MAIL MAILPATH
14141 do eval test x\${$as_var+set} = xset \
14142   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14143 done
14144 PS1='$ '
14145 PS2='> '
14146 PS4='+ '
14147
14148 # NLS nuisances.
14149 LC_ALL=C
14150 export LC_ALL
14151 LANGUAGE=C
14152 export LANGUAGE
14153
14154 # CDPATH.
14155 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14156
14157
14158 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14159 # ----------------------------------------
14160 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14161 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14162 # script with STATUS, using 1 if that was 0.
14163 as_fn_error ()
14164 {
14165   as_status=$1; test $as_status -eq 0 && as_status=1
14166   if test "$4"; then
14167     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14168     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14169   fi
14170   $as_echo "$as_me: error: $2" >&2
14171   as_fn_exit $as_status
14172 } # as_fn_error
14173
14174
14175 # as_fn_set_status STATUS
14176 # -----------------------
14177 # Set $? to STATUS, without forking.
14178 as_fn_set_status ()
14179 {
14180   return $1
14181 } # as_fn_set_status
14182
14183 # as_fn_exit STATUS
14184 # -----------------
14185 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14186 as_fn_exit ()
14187 {
14188   set +e
14189   as_fn_set_status $1
14190   exit $1
14191 } # as_fn_exit
14192
14193 # as_fn_unset VAR
14194 # ---------------
14195 # Portably unset VAR.
14196 as_fn_unset ()
14197 {
14198   { eval $1=; unset $1;}
14199 }
14200 as_unset=as_fn_unset
14201 # as_fn_append VAR VALUE
14202 # ----------------------
14203 # Append the text in VALUE to the end of the definition contained in VAR. Take
14204 # advantage of any shell optimizations that allow amortized linear growth over
14205 # repeated appends, instead of the typical quadratic growth present in naive
14206 # implementations.
14207 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14208   eval 'as_fn_append ()
14209   {
14210     eval $1+=\$2
14211   }'
14212 else
14213   as_fn_append ()
14214   {
14215     eval $1=\$$1\$2
14216   }
14217 fi # as_fn_append
14218
14219 # as_fn_arith ARG...
14220 # ------------------
14221 # Perform arithmetic evaluation on the ARGs, and store the result in the
14222 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14223 # must be portable across $(()) and expr.
14224 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14225   eval 'as_fn_arith ()
14226   {
14227     as_val=$(( $* ))
14228   }'
14229 else
14230   as_fn_arith ()
14231   {
14232     as_val=`expr "$@" || test $? -eq 1`
14233   }
14234 fi # as_fn_arith
14235
14236
14237 if expr a : '\(a\)' >/dev/null 2>&1 &&
14238    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14239   as_expr=expr
14240 else
14241   as_expr=false
14242 fi
14243
14244 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14245   as_basename=basename
14246 else
14247   as_basename=false
14248 fi
14249
14250 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14251   as_dirname=dirname
14252 else
14253   as_dirname=false
14254 fi
14255
14256 as_me=`$as_basename -- "$0" ||
14257 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14258          X"$0" : 'X\(//\)$' \| \
14259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14260 $as_echo X/"$0" |
14261     sed '/^.*\/\([^/][^/]*\)\/*$/{
14262             s//\1/
14263             q
14264           }
14265           /^X\/\(\/\/\)$/{
14266             s//\1/
14267             q
14268           }
14269           /^X\/\(\/\).*/{
14270             s//\1/
14271             q
14272           }
14273           s/.*/./; q'`
14274
14275 # Avoid depending upon Character Ranges.
14276 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14277 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14278 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14279 as_cr_digits='0123456789'
14280 as_cr_alnum=$as_cr_Letters$as_cr_digits
14281
14282 ECHO_C= ECHO_N= ECHO_T=
14283 case `echo -n x` in #(((((
14284 -n*)
14285   case `echo 'xy\c'` in
14286   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14287   xy)  ECHO_C='\c';;
14288   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14289        ECHO_T=' ';;
14290   esac;;
14291 *)
14292   ECHO_N='-n';;
14293 esac
14294
14295 rm -f conf$$ conf$$.exe conf$$.file
14296 if test -d conf$$.dir; then
14297   rm -f conf$$.dir/conf$$.file
14298 else
14299   rm -f conf$$.dir
14300   mkdir conf$$.dir 2>/dev/null
14301 fi
14302 if (echo >conf$$.file) 2>/dev/null; then
14303   if ln -s conf$$.file conf$$ 2>/dev/null; then
14304     as_ln_s='ln -s'
14305     # ... but there are two gotchas:
14306     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14307     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14308     # In both cases, we have to default to `cp -pR'.
14309     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14310       as_ln_s='cp -pR'
14311   elif ln conf$$.file conf$$ 2>/dev/null; then
14312     as_ln_s=ln
14313   else
14314     as_ln_s='cp -pR'
14315   fi
14316 else
14317   as_ln_s='cp -pR'
14318 fi
14319 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14320 rmdir conf$$.dir 2>/dev/null
14321
14322
14323 # as_fn_mkdir_p
14324 # -------------
14325 # Create "$as_dir" as a directory, including parents if necessary.
14326 as_fn_mkdir_p ()
14327 {
14328
14329   case $as_dir in #(
14330   -*) as_dir=./$as_dir;;
14331   esac
14332   test -d "$as_dir" || eval $as_mkdir_p || {
14333     as_dirs=
14334     while :; do
14335       case $as_dir in #(
14336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14337       *) as_qdir=$as_dir;;
14338       esac
14339       as_dirs="'$as_qdir' $as_dirs"
14340       as_dir=`$as_dirname -- "$as_dir" ||
14341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14342          X"$as_dir" : 'X\(//\)[^/]' \| \
14343          X"$as_dir" : 'X\(//\)$' \| \
14344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14345 $as_echo X"$as_dir" |
14346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14347             s//\1/
14348             q
14349           }
14350           /^X\(\/\/\)[^/].*/{
14351             s//\1/
14352             q
14353           }
14354           /^X\(\/\/\)$/{
14355             s//\1/
14356             q
14357           }
14358           /^X\(\/\).*/{
14359             s//\1/
14360             q
14361           }
14362           s/.*/./; q'`
14363       test -d "$as_dir" && break
14364     done
14365     test -z "$as_dirs" || eval "mkdir $as_dirs"
14366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14367
14368
14369 } # as_fn_mkdir_p
14370 if mkdir -p . 2>/dev/null; then
14371   as_mkdir_p='mkdir -p "$as_dir"'
14372 else
14373   test -d ./-p && rmdir ./-p
14374   as_mkdir_p=false
14375 fi
14376
14377
14378 # as_fn_executable_p FILE
14379 # -----------------------
14380 # Test if FILE is an executable regular file.
14381 as_fn_executable_p ()
14382 {
14383   test -f "$1" && test -x "$1"
14384 } # as_fn_executable_p
14385 as_test_x='test -x'
14386 as_executable_p=as_fn_executable_p
14387
14388 # Sed expression to map a string onto a valid CPP name.
14389 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14390
14391 # Sed expression to map a string onto a valid variable name.
14392 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14393
14394
14395 exec 6>&1
14396 ## ----------------------------------- ##
14397 ## Main body of $CONFIG_STATUS script. ##
14398 ## ----------------------------------- ##
14399 _ASEOF
14400 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14401
14402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14403 # Save the log message, to keep $0 and so on meaningful, and to
14404 # report actual input values of CONFIG_FILES etc. instead of their
14405 # values after options handling.
14406 ac_log="
14407 This file was extended by $as_me, which was
14408 generated by GNU Autoconf 2.69.  Invocation command line was
14409
14410   CONFIG_FILES    = $CONFIG_FILES
14411   CONFIG_HEADERS  = $CONFIG_HEADERS
14412   CONFIG_LINKS    = $CONFIG_LINKS
14413   CONFIG_COMMANDS = $CONFIG_COMMANDS
14414   $ $0 $@
14415
14416 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14417 "
14418
14419 _ACEOF
14420
14421 case $ac_config_files in *"
14422 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14423 esac
14424
14425 case $ac_config_headers in *"
14426 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14427 esac
14428
14429
14430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14431 # Files that config.status was made for.
14432 config_files="$ac_config_files"
14433 config_headers="$ac_config_headers"
14434 config_commands="$ac_config_commands"
14435
14436 _ACEOF
14437
14438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14439 ac_cs_usage="\
14440 \`$as_me' instantiates files and other configuration actions
14441 from templates according to the current configuration.  Unless the files
14442 and actions are specified as TAGs, all are instantiated by default.
14443
14444 Usage: $0 [OPTION]... [TAG]...
14445
14446   -h, --help       print this help, then exit
14447   -V, --version    print version number and configuration settings, then exit
14448       --config     print configuration, then exit
14449   -q, --quiet, --silent
14450                    do not print progress messages
14451   -d, --debug      don't remove temporary files
14452       --recheck    update $as_me by reconfiguring in the same conditions
14453       --file=FILE[:TEMPLATE]
14454                    instantiate the configuration file FILE
14455       --header=FILE[:TEMPLATE]
14456                    instantiate the configuration header FILE
14457
14458 Configuration files:
14459 $config_files
14460
14461 Configuration headers:
14462 $config_headers
14463
14464 Configuration commands:
14465 $config_commands
14466
14467 Report bugs to the package provider."
14468
14469 _ACEOF
14470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14471 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14472 ac_cs_version="\\
14473 config.status
14474 configured by $0, generated by GNU Autoconf 2.69,
14475   with options \\"\$ac_cs_config\\"
14476
14477 Copyright (C) 2012 Free Software Foundation, Inc.
14478 This config.status script is free software; the Free Software Foundation
14479 gives unlimited permission to copy, distribute and modify it."
14480
14481 ac_pwd='$ac_pwd'
14482 srcdir='$srcdir'
14483 INSTALL='$INSTALL'
14484 MKDIR_P='$MKDIR_P'
14485 AWK='$AWK'
14486 test -n "\$AWK" || AWK=awk
14487 _ACEOF
14488
14489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14490 # The default lists apply if the user does not specify any file.
14491 ac_need_defaults=:
14492 while test $# != 0
14493 do
14494   case $1 in
14495   --*=?*)
14496     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14497     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14498     ac_shift=:
14499     ;;
14500   --*=)
14501     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14502     ac_optarg=
14503     ac_shift=:
14504     ;;
14505   *)
14506     ac_option=$1
14507     ac_optarg=$2
14508     ac_shift=shift
14509     ;;
14510   esac
14511
14512   case $ac_option in
14513   # Handling of the options.
14514   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14515     ac_cs_recheck=: ;;
14516   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14517     $as_echo "$ac_cs_version"; exit ;;
14518   --config | --confi | --conf | --con | --co | --c )
14519     $as_echo "$ac_cs_config"; exit ;;
14520   --debug | --debu | --deb | --de | --d | -d )
14521     debug=: ;;
14522   --file | --fil | --fi | --f )
14523     $ac_shift
14524     case $ac_optarg in
14525     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14526     '') as_fn_error $? "missing file argument" ;;
14527     esac
14528     as_fn_append CONFIG_FILES " '$ac_optarg'"
14529     ac_need_defaults=false;;
14530   --header | --heade | --head | --hea )
14531     $ac_shift
14532     case $ac_optarg in
14533     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14534     esac
14535     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14536     ac_need_defaults=false;;
14537   --he | --h)
14538     # Conflict between --help and --header
14539     as_fn_error $? "ambiguous option: \`$1'
14540 Try \`$0 --help' for more information.";;
14541   --help | --hel | -h )
14542     $as_echo "$ac_cs_usage"; exit ;;
14543   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14544   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14545     ac_cs_silent=: ;;
14546
14547   # This is an error.
14548   -*) as_fn_error $? "unrecognized option: \`$1'
14549 Try \`$0 --help' for more information." ;;
14550
14551   *) as_fn_append ac_config_targets " $1"
14552      ac_need_defaults=false ;;
14553
14554   esac
14555   shift
14556 done
14557
14558 ac_configure_extra_args=
14559
14560 if $ac_cs_silent; then
14561   exec 6>/dev/null
14562   ac_configure_extra_args="$ac_configure_extra_args --silent"
14563 fi
14564
14565 _ACEOF
14566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14567 if \$ac_cs_recheck; then
14568   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14569   shift
14570   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14571   CONFIG_SHELL='$SHELL'
14572   export CONFIG_SHELL
14573   exec "\$@"
14574 fi
14575
14576 _ACEOF
14577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14578 exec 5>>config.log
14579 {
14580   echo
14581   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14582 ## Running $as_me. ##
14583 _ASBOX
14584   $as_echo "$ac_log"
14585 } >&5
14586
14587 _ACEOF
14588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14589 #
14590 # INIT-COMMANDS
14591 #
14592 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14593     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14594     # from automake < 1.5.
14595     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14596     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14597     LINGUAS="${LINGUAS-%UNSET%}"
14598
14599
14600 _ACEOF
14601
14602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14603
14604 # Handling of arguments.
14605 for ac_config_target in $ac_config_targets
14606 do
14607   case $ac_config_target in
14608     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14609     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14610     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14611
14612   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14613   esac
14614 done
14615
14616
14617 # If the user did not use the arguments to specify the items to instantiate,
14618 # then the envvar interface is used.  Set only those that are not.
14619 # We use the long form for the default assignment because of an extremely
14620 # bizarre bug on SunOS 4.1.3.
14621 if $ac_need_defaults; then
14622   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14623   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14624   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14625 fi
14626
14627 # Have a temporary directory for convenience.  Make it in the build tree
14628 # simply because there is no reason against having it here, and in addition,
14629 # creating and moving files from /tmp can sometimes cause problems.
14630 # Hook for its removal unless debugging.
14631 # Note that there is a small window in which the directory will not be cleaned:
14632 # after its creation but before its name has been assigned to `$tmp'.
14633 $debug ||
14634 {
14635   tmp= ac_tmp=
14636   trap 'exit_status=$?
14637   : "${ac_tmp:=$tmp}"
14638   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14639 ' 0
14640   trap 'as_fn_exit 1' 1 2 13 15
14641 }
14642 # Create a (secure) tmp directory for tmp files.
14643
14644 {
14645   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14646   test -d "$tmp"
14647 }  ||
14648 {
14649   tmp=./conf$$-$RANDOM
14650   (umask 077 && mkdir "$tmp")
14651 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14652 ac_tmp=$tmp
14653
14654 # Set up the scripts for CONFIG_FILES section.
14655 # No need to generate them if there are no CONFIG_FILES.
14656 # This happens for instance with `./config.status config.h'.
14657 if test -n "$CONFIG_FILES"; then
14658
14659 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14660   ac_cs_awk_getline=:
14661   ac_cs_awk_pipe_init=
14662   ac_cs_awk_read_file='
14663       while ((getline aline < (F[key])) > 0)
14664         print(aline)
14665       close(F[key])'
14666   ac_cs_awk_pipe_fini=
14667 else
14668   ac_cs_awk_getline=false
14669   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14670   ac_cs_awk_read_file='
14671       print "|#_!!_#|"
14672       print "cat " F[key] " &&"
14673       '$ac_cs_awk_pipe_init
14674   # The final `:' finishes the AND list.
14675   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14676 fi
14677 ac_cr=`echo X | tr X '\015'`
14678 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14679 # But we know of no other shell where ac_cr would be empty at this
14680 # point, so we can use a bashism as a fallback.
14681 if test "x$ac_cr" = x; then
14682   eval ac_cr=\$\'\\r\'
14683 fi
14684 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14685 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14686   ac_cs_awk_cr='\\r'
14687 else
14688   ac_cs_awk_cr=$ac_cr
14689 fi
14690
14691 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14692 _ACEOF
14693
14694 # Create commands to substitute file output variables.
14695 {
14696   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14697   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14698   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14699   echo "_ACAWK" &&
14700   echo "_ACEOF"
14701 } >conf$$files.sh &&
14702 . ./conf$$files.sh ||
14703   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14704 rm -f conf$$files.sh
14705
14706 {
14707   echo "cat >conf$$subs.awk <<_ACEOF" &&
14708   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14709   echo "_ACEOF"
14710 } >conf$$subs.sh ||
14711   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14712 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14713 ac_delim='%!_!# '
14714 for ac_last_try in false false false false false :; do
14715   . ./conf$$subs.sh ||
14716     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14717
14718   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14719   if test $ac_delim_n = $ac_delim_num; then
14720     break
14721   elif $ac_last_try; then
14722     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14723   else
14724     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14725   fi
14726 done
14727 rm -f conf$$subs.sh
14728
14729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14730 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14731 _ACEOF
14732 sed -n '
14733 h
14734 s/^/S["/; s/!.*/"]=/
14735 p
14736 g
14737 s/^[^!]*!//
14738 :repl
14739 t repl
14740 s/'"$ac_delim"'$//
14741 t delim
14742 :nl
14743 h
14744 s/\(.\{148\}\)..*/\1/
14745 t more1
14746 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14747 p
14748 n
14749 b repl
14750 :more1
14751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14752 p
14753 g
14754 s/.\{148\}//
14755 t nl
14756 :delim
14757 h
14758 s/\(.\{148\}\)..*/\1/
14759 t more2
14760 s/["\\]/\\&/g; s/^/"/; s/$/"/
14761 p
14762 b
14763 :more2
14764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14765 p
14766 g
14767 s/.\{148\}//
14768 t delim
14769 ' <conf$$subs.awk | sed '
14770 /^[^""]/{
14771   N
14772   s/\n//
14773 }
14774 ' >>$CONFIG_STATUS || ac_write_fail=1
14775 rm -f conf$$subs.awk
14776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14777 _ACAWK
14778 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14779   for (key in S) S_is_set[key] = 1
14780   FS = "\a"
14781   \$ac_cs_awk_pipe_init
14782 }
14783 {
14784   line = $ 0
14785   nfields = split(line, field, "@")
14786   substed = 0
14787   len = length(field[1])
14788   for (i = 2; i < nfields; i++) {
14789     key = field[i]
14790     keylen = length(key)
14791     if (S_is_set[key]) {
14792       value = S[key]
14793       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14794       len += length(value) + length(field[++i])
14795       substed = 1
14796     } else
14797       len += 1 + keylen
14798   }
14799   if (nfields == 3 && !substed) {
14800     key = field[2]
14801     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14802       \$ac_cs_awk_read_file
14803       next
14804     }
14805   }
14806   print line
14807 }
14808 \$ac_cs_awk_pipe_fini
14809 _ACAWK
14810 _ACEOF
14811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14812 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14813   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14814 else
14815   cat
14816 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14817   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14818 _ACEOF
14819
14820 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14821 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14822 # trailing colons and then remove the whole line if VPATH becomes empty
14823 # (actually we leave an empty line to preserve line numbers).
14824 if test "x$srcdir" = x.; then
14825   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14826 h
14827 s///
14828 s/^/:/
14829 s/[      ]*$/:/
14830 s/:\$(srcdir):/:/g
14831 s/:\${srcdir}:/:/g
14832 s/:@srcdir@:/:/g
14833 s/^:*//
14834 s/:*$//
14835 x
14836 s/\(=[   ]*\).*/\1/
14837 G
14838 s/\n//
14839 s/^[^=]*=[       ]*$//
14840 }'
14841 fi
14842
14843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14844 fi # test -n "$CONFIG_FILES"
14845
14846 # Set up the scripts for CONFIG_HEADERS section.
14847 # No need to generate them if there are no CONFIG_HEADERS.
14848 # This happens for instance with `./config.status Makefile'.
14849 if test -n "$CONFIG_HEADERS"; then
14850 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14851 BEGIN {
14852 _ACEOF
14853
14854 # Transform confdefs.h into an awk script `defines.awk', embedded as
14855 # here-document in config.status, that substitutes the proper values into
14856 # config.h.in to produce config.h.
14857
14858 # Create a delimiter string that does not exist in confdefs.h, to ease
14859 # handling of long lines.
14860 ac_delim='%!_!# '
14861 for ac_last_try in false false :; do
14862   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14863   if test -z "$ac_tt"; then
14864     break
14865   elif $ac_last_try; then
14866     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14867   else
14868     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14869   fi
14870 done
14871
14872 # For the awk script, D is an array of macro values keyed by name,
14873 # likewise P contains macro parameters if any.  Preserve backslash
14874 # newline sequences.
14875
14876 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14877 sed -n '
14878 s/.\{148\}/&'"$ac_delim"'/g
14879 t rset
14880 :rset
14881 s/^[     ]*#[    ]*define[       ][      ]*/ /
14882 t def
14883 d
14884 :def
14885 s/\\$//
14886 t bsnl
14887 s/["\\]/\\&/g
14888 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14889 D["\1"]=" \3"/p
14890 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14891 d
14892 :bsnl
14893 s/["\\]/\\&/g
14894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14895 D["\1"]=" \3\\\\\\n"\\/p
14896 t cont
14897 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14898 t cont
14899 d
14900 :cont
14901 n
14902 s/.\{148\}/&'"$ac_delim"'/g
14903 t clear
14904 :clear
14905 s/\\$//
14906 t bsnlc
14907 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14908 d
14909 :bsnlc
14910 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14911 b cont
14912 ' <confdefs.h | sed '
14913 s/'"$ac_delim"'/"\\\
14914 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14915
14916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14917   for (key in D) D_is_set[key] = 1
14918   FS = "\a"
14919 }
14920 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14921   line = \$ 0
14922   split(line, arg, " ")
14923   if (arg[1] == "#") {
14924     defundef = arg[2]
14925     mac1 = arg[3]
14926   } else {
14927     defundef = substr(arg[1], 2)
14928     mac1 = arg[2]
14929   }
14930   split(mac1, mac2, "(") #)
14931   macro = mac2[1]
14932   prefix = substr(line, 1, index(line, defundef) - 1)
14933   if (D_is_set[macro]) {
14934     # Preserve the white space surrounding the "#".
14935     print prefix "define", macro P[macro] D[macro]
14936     next
14937   } else {
14938     # Replace #undef with comments.  This is necessary, for example,
14939     # in the case of _POSIX_SOURCE, which is predefined and required
14940     # on some systems where configure will not decide to define it.
14941     if (defundef == "undef") {
14942       print "/*", prefix defundef, macro, "*/"
14943       next
14944     }
14945   }
14946 }
14947 { print }
14948 _ACAWK
14949 _ACEOF
14950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14951   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14952 fi # test -n "$CONFIG_HEADERS"
14953
14954
14955 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14956 shift
14957 for ac_tag
14958 do
14959   case $ac_tag in
14960   :[FHLC]) ac_mode=$ac_tag; continue;;
14961   esac
14962   case $ac_mode$ac_tag in
14963   :[FHL]*:*);;
14964   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14965   :[FH]-) ac_tag=-:-;;
14966   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14967   esac
14968   ac_save_IFS=$IFS
14969   IFS=:
14970   set x $ac_tag
14971   IFS=$ac_save_IFS
14972   shift
14973   ac_file=$1
14974   shift
14975
14976   case $ac_mode in
14977   :L) ac_source=$1;;
14978   :[FH])
14979     ac_file_inputs=
14980     for ac_f
14981     do
14982       case $ac_f in
14983       -) ac_f="$ac_tmp/stdin";;
14984       *) # Look for the file first in the build tree, then in the source tree
14985          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14986          # because $ac_f cannot contain `:'.
14987          test -f "$ac_f" ||
14988            case $ac_f in
14989            [\\/$]*) false;;
14990            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14991            esac ||
14992            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14993       esac
14994       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14995       as_fn_append ac_file_inputs " '$ac_f'"
14996     done
14997
14998     # Let's still pretend it is `configure' which instantiates (i.e., don't
14999     # use $as_me), people would be surprised to read:
15000     #    /* config.h.  Generated by config.status.  */
15001     configure_input='Generated from '`
15002           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15003         `' by configure.'
15004     if test x"$ac_file" != x-; then
15005       configure_input="$ac_file.  $configure_input"
15006       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15007 $as_echo "$as_me: creating $ac_file" >&6;}
15008     fi
15009     # Neutralize special characters interpreted by sed in replacement strings.
15010     case $configure_input in #(
15011     *\&* | *\|* | *\\* )
15012        ac_sed_conf_input=`$as_echo "$configure_input" |
15013        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15014     *) ac_sed_conf_input=$configure_input;;
15015     esac
15016
15017     case $ac_tag in
15018     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15019       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15020     esac
15021     ;;
15022   esac
15023
15024   ac_dir=`$as_dirname -- "$ac_file" ||
15025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15026          X"$ac_file" : 'X\(//\)[^/]' \| \
15027          X"$ac_file" : 'X\(//\)$' \| \
15028          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15029 $as_echo X"$ac_file" |
15030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15031             s//\1/
15032             q
15033           }
15034           /^X\(\/\/\)[^/].*/{
15035             s//\1/
15036             q
15037           }
15038           /^X\(\/\/\)$/{
15039             s//\1/
15040             q
15041           }
15042           /^X\(\/\).*/{
15043             s//\1/
15044             q
15045           }
15046           s/.*/./; q'`
15047   as_dir="$ac_dir"; as_fn_mkdir_p
15048   ac_builddir=.
15049
15050 case "$ac_dir" in
15051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15052 *)
15053   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15054   # A ".." for each directory in $ac_dir_suffix.
15055   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15056   case $ac_top_builddir_sub in
15057   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15058   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15059   esac ;;
15060 esac
15061 ac_abs_top_builddir=$ac_pwd
15062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15063 # for backward compatibility:
15064 ac_top_builddir=$ac_top_build_prefix
15065
15066 case $srcdir in
15067   .)  # We are building in place.
15068     ac_srcdir=.
15069     ac_top_srcdir=$ac_top_builddir_sub
15070     ac_abs_top_srcdir=$ac_pwd ;;
15071   [\\/]* | ?:[\\/]* )  # Absolute name.
15072     ac_srcdir=$srcdir$ac_dir_suffix;
15073     ac_top_srcdir=$srcdir
15074     ac_abs_top_srcdir=$srcdir ;;
15075   *) # Relative name.
15076     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15077     ac_top_srcdir=$ac_top_build_prefix$srcdir
15078     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15079 esac
15080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15081
15082
15083   case $ac_mode in
15084   :F)
15085   #
15086   # CONFIG_FILE
15087   #
15088
15089   case $INSTALL in
15090   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15091   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15092   esac
15093   ac_MKDIR_P=$MKDIR_P
15094   case $MKDIR_P in
15095   [\\/$]* | ?:[\\/]* ) ;;
15096   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15097   esac
15098 _ACEOF
15099
15100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15101 # If the template does not know about datarootdir, expand it.
15102 # FIXME: This hack should be removed a few years after 2.60.
15103 ac_datarootdir_hack=; ac_datarootdir_seen=
15104 ac_sed_dataroot='
15105 /datarootdir/ {
15106   p
15107   q
15108 }
15109 /@datadir@/p
15110 /@docdir@/p
15111 /@infodir@/p
15112 /@localedir@/p
15113 /@mandir@/p'
15114 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15115 *datarootdir*) ac_datarootdir_seen=yes;;
15116 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15117   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15118 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15119 _ACEOF
15120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121   ac_datarootdir_hack='
15122   s&@datadir@&$datadir&g
15123   s&@docdir@&$docdir&g
15124   s&@infodir@&$infodir&g
15125   s&@localedir@&$localedir&g
15126   s&@mandir@&$mandir&g
15127   s&\\\${datarootdir}&$datarootdir&g' ;;
15128 esac
15129 _ACEOF
15130
15131 # Neutralize VPATH when `$srcdir' = `.'.
15132 # Shell code in configure.ac might set extrasub.
15133 # FIXME: do we really want to maintain this feature?
15134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15135 ac_sed_extra="$ac_vpsub
15136 $extrasub
15137 _ACEOF
15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139 :t
15140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15141 s|@configure_input@|$ac_sed_conf_input|;t t
15142 s&@top_builddir@&$ac_top_builddir_sub&;t t
15143 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15144 s&@srcdir@&$ac_srcdir&;t t
15145 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15146 s&@top_srcdir@&$ac_top_srcdir&;t t
15147 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15148 s&@builddir@&$ac_builddir&;t t
15149 s&@abs_builddir@&$ac_abs_builddir&;t t
15150 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15151 s&@INSTALL@&$ac_INSTALL&;t t
15152 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15153 $ac_datarootdir_hack
15154 "
15155 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15156 if $ac_cs_awk_getline; then
15157   $AWK -f "$ac_tmp/subs.awk"
15158 else
15159   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15160 fi \
15161   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15162
15163 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15164   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15165   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15166       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15167   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15168 which seems to be undefined.  Please make sure it is defined" >&5
15169 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15170 which seems to be undefined.  Please make sure it is defined" >&2;}
15171
15172   rm -f "$ac_tmp/stdin"
15173   case $ac_file in
15174   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15175   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15176   esac \
15177   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15178  ;;
15179   :H)
15180   #
15181   # CONFIG_HEADER
15182   #
15183   if test x"$ac_file" != x-; then
15184     {
15185       $as_echo "/* $configure_input  */" \
15186       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15187     } >"$ac_tmp/config.h" \
15188       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15189     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15190       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15191 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15192     else
15193       rm -f "$ac_file"
15194       mv "$ac_tmp/config.h" "$ac_file" \
15195         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15196     fi
15197   else
15198     $as_echo "/* $configure_input  */" \
15199       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15200       || as_fn_error $? "could not create -" "$LINENO" 5
15201   fi
15202  ;;
15203
15204   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15205 $as_echo "$as_me: executing $ac_file commands" >&6;}
15206  ;;
15207   esac
15208
15209
15210   case $ac_file$ac_mode in
15211     "po-directories":C)
15212     for ac_file in $CONFIG_FILES; do
15213       # Support "outfile[:infile[:infile...]]"
15214       case "$ac_file" in
15215         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15216       esac
15217       # PO directories have a Makefile.in generated from Makefile.in.in.
15218       case "$ac_file" in */Makefile.in)
15219         # Adjust a relative srcdir.
15220         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15221         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15222         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15223         # In autoconf-2.13 it is called $ac_given_srcdir.
15224         # In autoconf-2.50 it is called $srcdir.
15225         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15226         case "$ac_given_srcdir" in
15227           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15228           /*) top_srcdir="$ac_given_srcdir" ;;
15229           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15230         esac
15231         # Treat a directory as a PO directory if and only if it has a
15232         # POTFILES.in file. This allows packages to have multiple PO
15233         # directories under different names or in different locations.
15234         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15235           rm -f "$ac_dir/POTFILES"
15236           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15237           gt_tab=`printf '\t'`
15238           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"
15239           POMAKEFILEDEPS="POTFILES.in"
15240           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15241           # on $ac_dir but don't depend on user-specified configuration
15242           # parameters.
15243           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15244             # The LINGUAS file contains the set of available languages.
15245             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15246               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15247             fi
15248             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15249             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15250             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15251             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15252           else
15253             # The set of available languages was given in configure.in.
15254             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15255             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15256           fi
15257           # Compute POFILES
15258           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15259           # Compute UPDATEPOFILES
15260           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15261           # Compute DUMMYPOFILES
15262           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15263           # Compute GMOFILES
15264           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15265           case "$ac_given_srcdir" in
15266             .) srcdirpre= ;;
15267             *) srcdirpre='$(srcdir)/' ;;
15268           esac
15269           POFILES=
15270           UPDATEPOFILES=
15271           DUMMYPOFILES=
15272           GMOFILES=
15273           for lang in $ALL_LINGUAS; do
15274             POFILES="$POFILES $srcdirpre$lang.po"
15275             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15276             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15277             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15278           done
15279           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15280           # environment variable.
15281           INST_LINGUAS=
15282           if test -n "$ALL_LINGUAS"; then
15283             for presentlang in $ALL_LINGUAS; do
15284               useit=no
15285               if test "%UNSET%" != "$LINGUAS"; then
15286                 desiredlanguages="$LINGUAS"
15287               else
15288                 desiredlanguages="$ALL_LINGUAS"
15289               fi
15290               for desiredlang in $desiredlanguages; do
15291                 # Use the presentlang catalog if desiredlang is
15292                 #   a. equal to presentlang, or
15293                 #   b. a variant of presentlang (because in this case,
15294                 #      presentlang can be used as a fallback for messages
15295                 #      which are not translated in the desiredlang catalog).
15296                 case "$desiredlang" in
15297                   "$presentlang"*) useit=yes;;
15298                 esac
15299               done
15300               if test $useit = yes; then
15301                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15302               fi
15303             done
15304           fi
15305           CATALOGS=
15306           if test -n "$INST_LINGUAS"; then
15307             for lang in $INST_LINGUAS; do
15308               CATALOGS="$CATALOGS $lang.gmo"
15309             done
15310           fi
15311           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15312           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"
15313           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15314             if test -f "$f"; then
15315               case "$f" in
15316                 *.orig | *.bak | *~) ;;
15317                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15318               esac
15319             fi
15320           done
15321         fi
15322         ;;
15323       esac
15324     done ;;
15325
15326   esac
15327 done # for ac_tag
15328
15329
15330 as_fn_exit 0
15331 _ACEOF
15332 ac_clean_files=$ac_clean_files_save
15333
15334 test $ac_write_fail = 0 ||
15335   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15336
15337
15338 # configure is writing to config.log, and then calls config.status.
15339 # config.status does its own redirection, appending to config.log.
15340 # Unfortunately, on DOS this fails, as config.log is still kept open
15341 # by configure, so config.status won't be able to write to it; its
15342 # output is simply discarded.  So we exec the FD to /dev/null,
15343 # effectively closing config.log, so it can be properly (re)opened and
15344 # appended to by config.status.  When coming back to configure, we
15345 # need to make the FD available again.
15346 if test "$no_create" != yes; then
15347   ac_cs_success=:
15348   ac_config_status_args=
15349   test "$silent" = yes &&
15350     ac_config_status_args="$ac_config_status_args --quiet"
15351   exec 5>/dev/null
15352   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15353   exec 5>>config.log
15354   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15355   # would make configure fail if this is the last instruction.
15356   $ac_cs_success || as_fn_exit 1
15357 fi
15358 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15359   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15360 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15361 fi
15362
15363 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi