Whamcloud - gitweb
Update configure script to reflect changes from commit 62bc243f1bf
[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 LDFLAGS_SHLIB
629 CFLAGS_STLIB
630 CFLAGS_SHLIB
631 BUILD_LDFLAGS
632 BUILD_CFLAGS
633 MKINSTALLDIRS
634 INCLUDES
635 DO_TEST_SUITE
636 ET_DIR
637 SS_DIR
638 LDFLAGS_STATIC
639 root_sysconfdir
640 root_libdir
641 root_sbindir
642 root_bindir
643 root_prefix
644 UNIX_CMT
645 CYGWIN_CMT
646 LINUX_CMT
647 UNI_DIFF_OPTS
648 SEM_INIT_LIB
649 FUSE_CMT
650 FUSE_LIB
651 CLOCK_GETTIME_LIB
652 MAGIC_LIB
653 SOCKET_LIB
654 SIZEOF_TIME_T
655 SIZEOF_OFF_T
656 SIZEOF_LONG_LONG
657 SIZEOF_LONG
658 SIZEOF_INT
659 SIZEOF_SHORT
660 BUILD_CC
661 MAKEINFO
662 STRIP
663 AR
664 LDCONFIG
665 PERL
666 AWK
667 CHMOD
668 RM
669 CP
670 MV
671 LN_S
672 LN
673 ifNotGNUmake
674 ifGNUmake
675 BINARY_TYPE
676 POSUB
677 LTLIBINTL
678 LIBINTL
679 INTLLIBS
680 INTL_LIBTOOL_SUFFIX_PREFIX
681 INTLOBJS
682 GENCAT
683 INSTOBJEXT
684 DATADIRNAME
685 CATOBJEXT
686 USE_INCLUDED_LIBINTL
687 BUILD_INCLUDED_LIBINTL
688 LTLIBC
689 WINDRES
690 WOE32
691 WOE32DLL
692 HAVE_WPRINTF
693 HAVE_NEWLOCALE
694 HAVE_SNPRINTF
695 HAVE_ASPRINTF
696 HAVE_POSIX_PRINTF
697 INTL_DEFAULT_VERBOSITY
698 INTL_MACOSX_LIBS
699 GLIBC21
700 INTLBISON
701 LTLIBICONV
702 LIBICONV
703 LTLIBMULTITHREAD
704 LIBMULTITHREAD
705 LTLIBTHREAD
706 LIBTHREAD
707 LIBPTH_PREFIX
708 LTLIBPTH
709 LIBPTH
710 PRI_MACROS_BROKEN
711 ALLOCA
712 HAVE_VISIBILITY
713 CFLAG_VISIBILITY
714 RANLIB
715 GLIBC2
716 XGETTEXT_EXTRA_OPTIONS
717 MSGMERGE
718 XGETTEXT_015
719 XGETTEXT
720 GMSGFMT_015
721 MSGFMT_015
722 GMSGFMT
723 MSGFMT
724 GETTEXT_MACRO_VERSION
725 USE_NLS
726 SED
727 MKDIR_P
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 SET_MAKE
732 VERSION
733 PACKAGE
734 GETTEXT_PACKAGE
735 TDB_MAN_COMMENT
736 TDB_CMT
737 UUIDD_CMT
738 E2INITRD_MAN
739 E2INITRD_PROG
740 FSCK_MAN
741 FSCK_PROG
742 DEFRAG_CMT
743 RESIZER_CMT
744 IMAGER_CMT
745 DEBUGFS_CMT
746 BLKID_CMT
747 DEPPROFILED_LIBBLKID
748 PROFILED_LIBBLKID
749 DEPSTATIC_LIBBLKID
750 STATIC_LIBBLKID
751 DEPLIBBLKID
752 LIBBLKID
753 UUID_CMT
754 DEPPROFILED_LIBUUID
755 PROFILED_LIBUUID
756 DEPSTATIC_LIBUUID
757 STATIC_LIBUUID
758 DEPLIBUUID
759 LIBUUID
760 PKG_CONFIG_LIBDIR
761 PKG_CONFIG_PATH
762 PKG_CONFIG
763 TEST_IO_CMT
764 PRIVATE_LIBS_CMT
765 LDFLAG_DYNAMIC
766 PROFILED_LIB_EXT
767 STATIC_LIB_EXT
768 LIB_EXT
769 PROFILE_CMT
770 BSDLIB_CMT
771 ELF_CMT
772 Q
773 ES
774 E
775 LINK_BUILD_FLAGS
776 SYMLINK_RELATIVE
777 LINK_INSTALL_FLAGS
778 MAINTAINER_CMT
779 EGREP
780 GREP
781 CPP
782 RDYNAMIC
783 DLOPEN_LIB
784 OBJEXT
785 EXEEXT
786 ac_ct_CC
787 CPPFLAGS
788 LDFLAGS
789 CFLAGS
790 CC
791 host_os
792 host_vendor
793 host_cpu
794 host
795 build_os
796 build_vendor
797 build_cpu
798 build
799 E2FSPROGS_PKGVER
800 E2FSPROGS_VERSION
801 E2FSPROGS_DAY
802 E2FSPROGS_MONTH
803 E2FSPROGS_YEAR
804 target_alias
805 host_alias
806 build_alias
807 LIBS
808 ECHO_T
809 ECHO_N
810 ECHO_C
811 DEFS
812 mandir
813 localedir
814 libdir
815 psdir
816 pdfdir
817 dvidir
818 htmldir
819 infodir
820 docdir
821 oldincludedir
822 includedir
823 runstatedir
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_hardening
868 enable_jbd_debug
869 enable_blkid_debug
870 enable_testio_debug
871 enable_libuuid
872 enable_libblkid
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_tdb
884 enable_bmap_stats
885 enable_bmap_stats_ops
886 enable_nls
887 enable_threads
888 with_gnu_ld
889 enable_rpath
890 with_libpth_prefix
891 with_libiconv_prefix
892 with_included_gettext
893 with_libintl_prefix
894 enable_fuse2fs
895 with_multiarch
896 '
897       ac_precious_vars='build_alias
898 host_alias
899 target_alias
900 CC
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 CPP
906 PKG_CONFIG
907 PKG_CONFIG_PATH
908 PKG_CONFIG_LIBDIR'
909
910
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 ac_unrecognized_opts=
915 ac_unrecognized_sep=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
932
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 runstatedir='${localstatedir}/run'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
959
960 ac_prev=
961 ac_dashdash=
962 for ac_option
963 do
964   # If the previous option needs an argument, assign it.
965   if test -n "$ac_prev"; then
966     eval $ac_prev=\$ac_option
967     ac_prev=
968     continue
969   fi
970
971   case $ac_option in
972   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973   *=)   ac_optarg= ;;
974   *)    ac_optarg=yes ;;
975   esac
976
977   # Accept the important Cygnus configure options, so we can diagnose typos.
978
979   case $ac_dashdash$ac_option in
980   --)
981     ac_dashdash=yes ;;
982
983   -bindir | --bindir | --bindi | --bind | --bin | --bi)
984     ac_prev=bindir ;;
985   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986     bindir=$ac_optarg ;;
987
988   -build | --build | --buil | --bui | --bu)
989     ac_prev=build_alias ;;
990   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991     build_alias=$ac_optarg ;;
992
993   -cache-file | --cache-file | --cache-fil | --cache-fi \
994   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995     ac_prev=cache_file ;;
996   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998     cache_file=$ac_optarg ;;
999
1000   --config-cache | -C)
1001     cache_file=config.cache ;;
1002
1003   -datadir | --datadir | --datadi | --datad)
1004     ac_prev=datadir ;;
1005   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006     datadir=$ac_optarg ;;
1007
1008   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009   | --dataroo | --dataro | --datar)
1010     ac_prev=datarootdir ;;
1011   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013     datarootdir=$ac_optarg ;;
1014
1015   -disable-* | --disable-*)
1016     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019       as_fn_error $? "invalid feature name: $ac_useropt"
1020     ac_useropt_orig=$ac_useropt
1021     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022     case $ac_user_opts in
1023       *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027          ac_unrecognized_sep=', ';;
1028     esac
1029     eval enable_$ac_useropt=no ;;
1030
1031   -docdir | --docdir | --docdi | --doc | --do)
1032     ac_prev=docdir ;;
1033   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034     docdir=$ac_optarg ;;
1035
1036   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037     ac_prev=dvidir ;;
1038   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039     dvidir=$ac_optarg ;;
1040
1041   -enable-* | --enable-*)
1042     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045       as_fn_error $? "invalid feature name: $ac_useropt"
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval enable_$ac_useropt=\$ac_optarg ;;
1056
1057   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059   | --exec | --exe | --ex)
1060     ac_prev=exec_prefix ;;
1061   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063   | --exec=* | --exe=* | --ex=*)
1064     exec_prefix=$ac_optarg ;;
1065
1066   -gas | --gas | --ga | --g)
1067     # Obsolete; use --with-gas.
1068     with_gas=yes ;;
1069
1070   -help | --help | --hel | --he | -h)
1071     ac_init_help=long ;;
1072   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073     ac_init_help=recursive ;;
1074   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075     ac_init_help=short ;;
1076
1077   -host | --host | --hos | --ho)
1078     ac_prev=host_alias ;;
1079   -host=* | --host=* | --hos=* | --ho=*)
1080     host_alias=$ac_optarg ;;
1081
1082   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083     ac_prev=htmldir ;;
1084   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085   | --ht=*)
1086     htmldir=$ac_optarg ;;
1087
1088   -includedir | --includedir | --includedi | --included | --include \
1089   | --includ | --inclu | --incl | --inc)
1090     ac_prev=includedir ;;
1091   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092   | --includ=* | --inclu=* | --incl=* | --inc=*)
1093     includedir=$ac_optarg ;;
1094
1095   -infodir | --infodir | --infodi | --infod | --info | --inf)
1096     ac_prev=infodir ;;
1097   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098     infodir=$ac_optarg ;;
1099
1100   -libdir | --libdir | --libdi | --libd)
1101     ac_prev=libdir ;;
1102   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103     libdir=$ac_optarg ;;
1104
1105   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106   | --libexe | --libex | --libe)
1107     ac_prev=libexecdir ;;
1108   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109   | --libexe=* | --libex=* | --libe=*)
1110     libexecdir=$ac_optarg ;;
1111
1112   -localedir | --localedir | --localedi | --localed | --locale)
1113     ac_prev=localedir ;;
1114   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115     localedir=$ac_optarg ;;
1116
1117   -localstatedir | --localstatedir | --localstatedi | --localstated \
1118   | --localstate | --localstat | --localsta | --localst | --locals)
1119     ac_prev=localstatedir ;;
1120   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122     localstatedir=$ac_optarg ;;
1123
1124   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125     ac_prev=mandir ;;
1126   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127     mandir=$ac_optarg ;;
1128
1129   -nfp | --nfp | --nf)
1130     # Obsolete; use --without-fp.
1131     with_fp=no ;;
1132
1133   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134   | --no-cr | --no-c | -n)
1135     no_create=yes ;;
1136
1137   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139     no_recursion=yes ;;
1140
1141   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143   | --oldin | --oldi | --old | --ol | --o)
1144     ac_prev=oldincludedir ;;
1145   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148     oldincludedir=$ac_optarg ;;
1149
1150   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151     ac_prev=prefix ;;
1152   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153     prefix=$ac_optarg ;;
1154
1155   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156   | --program-pre | --program-pr | --program-p)
1157     ac_prev=program_prefix ;;
1158   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160     program_prefix=$ac_optarg ;;
1161
1162   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163   | --program-suf | --program-su | --program-s)
1164     ac_prev=program_suffix ;;
1165   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167     program_suffix=$ac_optarg ;;
1168
1169   -program-transform-name | --program-transform-name \
1170   | --program-transform-nam | --program-transform-na \
1171   | --program-transform-n | --program-transform- \
1172   | --program-transform | --program-transfor \
1173   | --program-transfo | --program-transf \
1174   | --program-trans | --program-tran \
1175   | --progr-tra | --program-tr | --program-t)
1176     ac_prev=program_transform_name ;;
1177   -program-transform-name=* | --program-transform-name=* \
1178   | --program-transform-nam=* | --program-transform-na=* \
1179   | --program-transform-n=* | --program-transform-=* \
1180   | --program-transform=* | --program-transfor=* \
1181   | --program-transfo=* | --program-transf=* \
1182   | --program-trans=* | --program-tran=* \
1183   | --progr-tra=* | --program-tr=* | --program-t=*)
1184     program_transform_name=$ac_optarg ;;
1185
1186   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187     ac_prev=pdfdir ;;
1188   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189     pdfdir=$ac_optarg ;;
1190
1191   -psdir | --psdir | --psdi | --psd | --ps)
1192     ac_prev=psdir ;;
1193   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194     psdir=$ac_optarg ;;
1195
1196   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197   | -silent | --silent | --silen | --sile | --sil)
1198     silent=yes ;;
1199
1200   -runstatedir | --runstatedir | --runstatedi | --runstated \
1201   | --runstate | --runstat | --runsta | --runst | --runs \
1202   | --run | --ru | --r)
1203     ac_prev=runstatedir ;;
1204   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1205   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1206   | --run=* | --ru=* | --r=*)
1207     runstatedir=$ac_optarg ;;
1208
1209   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210     ac_prev=sbindir ;;
1211   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212   | --sbi=* | --sb=*)
1213     sbindir=$ac_optarg ;;
1214
1215   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217   | --sharedst | --shareds | --shared | --share | --shar \
1218   | --sha | --sh)
1219     ac_prev=sharedstatedir ;;
1220   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223   | --sha=* | --sh=*)
1224     sharedstatedir=$ac_optarg ;;
1225
1226   -site | --site | --sit)
1227     ac_prev=site ;;
1228   -site=* | --site=* | --sit=*)
1229     site=$ac_optarg ;;
1230
1231   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232     ac_prev=srcdir ;;
1233   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234     srcdir=$ac_optarg ;;
1235
1236   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237   | --syscon | --sysco | --sysc | --sys | --sy)
1238     ac_prev=sysconfdir ;;
1239   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241     sysconfdir=$ac_optarg ;;
1242
1243   -target | --target | --targe | --targ | --tar | --ta | --t)
1244     ac_prev=target_alias ;;
1245   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246     target_alias=$ac_optarg ;;
1247
1248   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249     verbose=yes ;;
1250
1251   -version | --version | --versio | --versi | --vers | -V)
1252     ac_init_version=: ;;
1253
1254   -with-* | --with-*)
1255     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258       as_fn_error $? "invalid package name: $ac_useropt"
1259     ac_useropt_orig=$ac_useropt
1260     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261     case $ac_user_opts in
1262       *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266          ac_unrecognized_sep=', ';;
1267     esac
1268     eval with_$ac_useropt=\$ac_optarg ;;
1269
1270   -without-* | --without-*)
1271     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274       as_fn_error $? "invalid package name: $ac_useropt"
1275     ac_useropt_orig=$ac_useropt
1276     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277     case $ac_user_opts in
1278       *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282          ac_unrecognized_sep=', ';;
1283     esac
1284     eval with_$ac_useropt=no ;;
1285
1286   --x)
1287     # Obsolete; use --with-x.
1288     with_x=yes ;;
1289
1290   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291   | --x-incl | --x-inc | --x-in | --x-i)
1292     ac_prev=x_includes ;;
1293   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295     x_includes=$ac_optarg ;;
1296
1297   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299     ac_prev=x_libraries ;;
1300   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302     x_libraries=$ac_optarg ;;
1303
1304   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1306     ;;
1307
1308   *=*)
1309     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310     # Reject names that are not valid shell variable names.
1311     case $ac_envvar in #(
1312       '' | [0-9]* | *[!_$as_cr_alnum]* )
1313       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314     esac
1315     eval $ac_envvar=\$ac_optarg
1316     export $ac_envvar ;;
1317
1318   *)
1319     # FIXME: should be removed in autoconf 3.0.
1320     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324     ;;
1325
1326   esac
1327 done
1328
1329 if test -n "$ac_prev"; then
1330   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331   as_fn_error $? "missing argument to $ac_option"
1332 fi
1333
1334 if test -n "$ac_unrecognized_opts"; then
1335   case $enable_option_checking in
1336     no) ;;
1337     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339   esac
1340 fi
1341
1342 # Check all directory arguments for consistency.
1343 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344                 datadir sysconfdir sharedstatedir localstatedir includedir \
1345                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346                 libdir localedir mandir runstatedir
1347 do
1348   eval ac_val=\$$ac_var
1349   # Remove trailing slashes.
1350   case $ac_val in
1351     */ )
1352       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353       eval $ac_var=\$ac_val;;
1354   esac
1355   # Be sure to have absolute directory names.
1356   case $ac_val in
1357     [\\/$]* | ?:[\\/]* )  continue;;
1358     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359   esac
1360   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1361 done
1362
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1369
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372   if test "x$build_alias" = x; then
1373     cross_compiling=maybe
1374   elif test "x$build_alias" != "x$host_alias"; then
1375     cross_compiling=yes
1376   fi
1377 fi
1378
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382 test "$silent" = yes && exec 6>/dev/null
1383
1384
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388   as_fn_error $? "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390   as_fn_error $? "pwd does not report name of working directory"
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395   ac_srcdir_defaulted=yes
1396   # Try the directory containing this script, then the parent directory.
1397   ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399          X"$as_myself" : 'X\(//\)[^/]' \| \
1400          X"$as_myself" : 'X\(//\)$' \| \
1401          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)[^/].*/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\).*/{
1416             s//\1/
1417             q
1418           }
1419           s/.*/./; q'`
1420   srcdir=$ac_confdir
1421   if test ! -r "$srcdir/$ac_unique_file"; then
1422     srcdir=..
1423   fi
1424 else
1425   ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 fi
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434         pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437   srcdir=.
1438 fi
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_env_${ac_var}_value=\$${ac_var}
1448   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1451
1452 #
1453 # Report the --help message.
1454 #
1455 if test "$ac_init_help" = "long"; then
1456   # Omit some internal or obsolete options to make the list less imposing.
1457   # This message is too long to be a string in the A/UX 3.1 sh.
1458   cat <<_ACEOF
1459 \`configure' configures this package to adapt to many kinds of systems.
1460
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE.  See below for descriptions of some of the useful variables.
1465
1466 Defaults for the options are specified in brackets.
1467
1468 Configuration:
1469   -h, --help              display this help and exit
1470       --help=short        display options specific to this package
1471       --help=recursive    display the short help of all the included packages
1472   -V, --version           display version information and exit
1473   -q, --quiet, --silent   do not print \`checking ...' messages
1474       --cache-file=FILE   cache test results in FILE [disabled]
1475   -C, --config-cache      alias for \`--cache-file=config.cache'
1476   -n, --no-create         do not create output files
1477       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1478
1479 Installation directories:
1480   --prefix=PREFIX         install architecture-independent files in PREFIX
1481                           [$ac_default_prefix]
1482   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1483                           [PREFIX]
1484
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1489
1490 For better control, use the options below.
1491
1492 Fine tuning of the installation directories:
1493   --bindir=DIR            user executables [EPREFIX/bin]
1494   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1495   --libexecdir=DIR        program executables [EPREFIX/libexec]
1496   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1497   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1498   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1499   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1500   --libdir=DIR            object code libraries [EPREFIX/lib]
1501   --includedir=DIR        C header files [PREFIX/include]
1502   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1503   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1504   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1505   --infodir=DIR           info documentation [DATAROOTDIR/info]
1506   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1507   --mandir=DIR            man documentation [DATAROOTDIR/man]
1508   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1509   --htmldir=DIR           html documentation [DOCDIR]
1510   --dvidir=DIR            dvi documentation [DOCDIR]
1511   --pdfdir=DIR            pdf documentation [DOCDIR]
1512   --psdir=DIR             ps documentation [DOCDIR]
1513 _ACEOF
1514
1515   cat <<\_ACEOF
1516
1517 System types:
1518   --build=BUILD     configure for building on BUILD [guessed]
1519   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524
1525   cat <<\_ACEOF
1526
1527 Optional Features:
1528   --disable-option-checking  ignore unrecognized --enable/--with options
1529   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1530   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1531   --enable-maintainer-mode enable makefile rules useful for maintainers
1532   --enable-symlink-install use symlinks when installing instead of hard links
1533   --enable-relative-symlinks use relative symlinks when installing
1534
1535   --enable-symlink-build  use symlinks while building instead of hard links
1536   --enable-verbose-makecmds enable verbose make command output
1537   --enable-elf-shlibs     select ELF shared libraries
1538   --enable-bsd-shlibs     select BSD shared libraries
1539   --enable-profile        build profiling libraries
1540   --enable-gcov           build for coverage testing using gcov
1541   --enable-hardening              build for coverage testing using gcov
1542   --enable-jbd-debug      enable journal debugging
1543   --enable-blkid-debug    enable blkid debugging
1544   --disable-testio-debug  disable the use of the test I/O manager for debugging
1545   --enable-libuuid        build and use private uuid library
1546   --enable-libblkid       build and use private blkid library
1547   --disable-backtrace     disable use backtrace
1548   --disable-debugfs       disable support of debugfs program
1549   --disable-imager        disable support of e2image program
1550   --disable-resizer       disable support of e2resize program
1551   --disable-defrag        disable support of e4defrag program
1552   --enable-fsck           build fsck wrapper program
1553   --enable-e2initrd-helper build e2initrd-helper program
1554   --disable-tls           disable use of thread local support
1555   --disable-uuidd         disable building the uuid daemon
1556   --disable-mmp           disable support mmp, Multi Mount Protection
1557   --disable-tdb           disable tdb support
1558   --disable-bmap-stats    disable collection of bitmap stats.
1559   --enable-bmap-stats-ops enable collection of additional bitmap stats
1560   --disable-nls           do not use Native Language Support
1561   --enable-threads={posix|solaris|pth|windows}
1562                           specify multithreading API
1563   --disable-threads       build without multithread safety
1564   --disable-rpath         do not hardcode runtime library paths
1565   --disable-fuse2fs       do not build fuse2fs
1566
1567 Optional Packages:
1568   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1569   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1570   --with-diet-libc        use diet libc
1571   --with-cc               no longer supported, use CC= instead
1572   --with-ccopts           no longer supported, use CFLAGS= instead
1573   --with-ldopts           no longer supported, use LDFLAGS= instead
1574   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1575   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1576   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1577   --without-libpth-prefix     don't search for libpth in includedir and libdir
1578   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1579   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1580   --with-included-gettext use the GNU gettext library included here
1581   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1582   --without-libintl-prefix     don't search for libintl in includedir and libdir
1583   --with-multiarch=ARCH specify the multiarch triplet
1584
1585 Some influential environment variables:
1586   CC          C compiler command
1587   CFLAGS      C compiler flags
1588   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1589               nonstandard directory <lib dir>
1590   LIBS        libraries to pass to the linker, e.g. -l<library>
1591   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1592               you have headers in a nonstandard directory <include dir>
1593   CPP         C preprocessor
1594   PKG_CONFIG  path to pkg-config utility
1595   PKG_CONFIG_PATH
1596               directories to add to pkg-config's search path
1597   PKG_CONFIG_LIBDIR
1598               path overriding pkg-config's built-in search path
1599
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1602
1603 Report bugs to the package provider.
1604 _ACEOF
1605 ac_status=$?
1606 fi
1607
1608 if test "$ac_init_help" = "recursive"; then
1609   # If there are subdirs, report their specific --help.
1610   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611     test -d "$ac_dir" ||
1612       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613       continue
1614     ac_builddir=.
1615
1616 case "$ac_dir" in
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *)
1619   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620   # A ".." for each directory in $ac_dir_suffix.
1621   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622   case $ac_top_builddir_sub in
1623   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625   esac ;;
1626 esac
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1631
1632 case $srcdir in
1633   .)  # We are building in place.
1634     ac_srcdir=.
1635     ac_top_srcdir=$ac_top_builddir_sub
1636     ac_abs_top_srcdir=$ac_pwd ;;
1637   [\\/]* | ?:[\\/]* )  # Absolute name.
1638     ac_srcdir=$srcdir$ac_dir_suffix;
1639     ac_top_srcdir=$srcdir
1640     ac_abs_top_srcdir=$srcdir ;;
1641   *) # Relative name.
1642     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643     ac_top_srcdir=$ac_top_build_prefix$srcdir
1644     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 esac
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
1648     cd "$ac_dir" || { ac_status=$?; continue; }
1649     # Check for guested configure.
1650     if test -f "$ac_srcdir/configure.gnu"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653     elif test -f "$ac_srcdir/configure"; then
1654       echo &&
1655       $SHELL "$ac_srcdir/configure" --help=recursive
1656     else
1657       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658     fi || ac_status=$?
1659     cd "$ac_pwd" || { ac_status=$?; break; }
1660   done
1661 fi
1662
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1665   cat <<\_ACEOF
1666 configure
1667 generated by GNU Autoconf 2.69
1668
1669 Copyright (C) 2012 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1672 _ACEOF
1673   exit
1674 fi
1675
1676 ## ------------------------ ##
1677 ## Autoconf initialization. ##
1678 ## ------------------------ ##
1679
1680 # ac_fn_c_try_compile LINENO
1681 # --------------------------
1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_compile ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   rm -f conftest.$ac_objext
1687   if { { ac_try="$ac_compile"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_compile") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && {
1703          test -z "$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        } && test -s conftest.$ac_objext; then :
1706   ac_retval=0
1707 else
1708   $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711         ac_retval=1
1712 fi
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_compile
1717
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_link ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   rm -f conftest.$ac_objext conftest$ac_exeext
1725   if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_link") 2>conftest.err
1733   ac_status=$?
1734   if test -s conftest.err; then
1735     grep -v '^ *+' conftest.err >conftest.er1
1736     cat conftest.er1 >&5
1737     mv -f conftest.er1 conftest.err
1738   fi
1739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; } && {
1741          test -z "$ac_c_werror_flag" ||
1742          test ! -s conftest.err
1743        } && test -s conftest$ac_exeext && {
1744          test "$cross_compiling" = yes ||
1745          test -x conftest$ac_exeext
1746        }; then :
1747   ac_retval=0
1748 else
1749   $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752         ac_retval=1
1753 fi
1754   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756   # interfere with the next link command; also delete a directory that is
1757   # left behind by Apple's compiler.  We do this before executing the actions.
1758   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760   as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_link
1763
1764 # ac_fn_c_try_cpp LINENO
1765 # ----------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_cpp ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778   ac_status=$?
1779   if test -s conftest.err; then
1780     grep -v '^ *+' conftest.err >conftest.er1
1781     cat conftest.er1 >&5
1782     mv -f conftest.er1 conftest.err
1783   fi
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; } > conftest.i && {
1786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787          test ! -s conftest.err
1788        }; then :
1789   ac_retval=0
1790 else
1791   $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794     ac_retval=1
1795 fi
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797   as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_cpp
1800
1801 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804 # the include files in INCLUDES and setting the cache variable VAR
1805 # accordingly.
1806 ac_fn_c_check_header_mongrel ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   if eval \${$3+:} false; then :
1810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813   $as_echo_n "(cached) " >&6
1814 fi
1815 eval ac_res=\$$3
1816                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 else
1819   # Is the header compilable?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821 $as_echo_n "checking $2 usability... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h.  */
1824 $4
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828   ac_header_compiler=yes
1829 else
1830   ac_header_compiler=no
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834 $as_echo "$ac_header_compiler" >&6; }
1835
1836 # Is the header present?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838 $as_echo_n "checking $2 presence... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h.  */
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_cpp "$LINENO"; then :
1844   ac_header_preproc=yes
1845 else
1846   ac_header_preproc=no
1847 fi
1848 rm -f conftest.err conftest.i conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850 $as_echo "$ac_header_preproc" >&6; }
1851
1852 # So?  What about this header?
1853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854   yes:no: )
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859     ;;
1860   no:yes:* )
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1864 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1868 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871     ;;
1872 esac
1873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876   $as_echo_n "(cached) " >&6
1877 else
1878   eval "$3=\$ac_header_compiler"
1879 fi
1880 eval ac_res=\$$3
1881                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 fi
1884   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_header_mongrel
1887
1888 # ac_fn_c_try_run LINENO
1889 # ----------------------
1890 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1891 # that executables *can* be run.
1892 ac_fn_c_try_run ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   if { { ac_try="$ac_link"
1896 case "(($ac_try" in
1897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898   *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902   (eval "$ac_link") 2>&5
1903   ac_status=$?
1904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906   { { case "(($ac_try" in
1907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908   *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912   (eval "$ac_try") 2>&5
1913   ac_status=$?
1914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915   test $ac_status = 0; }; }; then :
1916   ac_retval=0
1917 else
1918   $as_echo "$as_me: program exited with status $ac_status" >&5
1919        $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922        ac_retval=$ac_status
1923 fi
1924   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926   as_fn_set_status $ac_retval
1927
1928 } # ac_fn_c_try_run
1929
1930 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists and can be compiled using the include files in
1933 # INCLUDES, setting the cache variable VAR accordingly.
1934 ac_fn_c_check_header_compile ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940   $as_echo_n "(cached) " >&6
1941 else
1942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h.  */
1944 $4
1945 #include <$2>
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948   eval "$3=yes"
1949 else
1950   eval "$3=no"
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_check_header_compile
1960
1961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962 # -------------------------------------------
1963 # Tests whether TYPE exists after having included INCLUDES, setting cache
1964 # variable VAR accordingly.
1965 ac_fn_c_check_type ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971   $as_echo_n "(cached) " >&6
1972 else
1973   eval "$3=no"
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   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 int
1991 main ()
1992 {
1993 if (sizeof (($2)))
1994             return 0;
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000
2001 else
2002   eval "$3=yes"
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_c_check_type
2014
2015 # ac_fn_c_check_func LINENO FUNC VAR
2016 # ----------------------------------
2017 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2018 ac_fn_c_check_func ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024   $as_echo_n "(cached) " >&6
2025 else
2026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2030 #define $2 innocuous_$2
2031
2032 /* System header to define __stub macros and hopefully few prototypes,
2033     which can conflict with char $2 (); below.
2034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2035     <limits.h> exists even on freestanding compilers.  */
2036
2037 #ifdef __STDC__
2038 # include <limits.h>
2039 #else
2040 # include <assert.h>
2041 #endif
2042
2043 #undef $2
2044
2045 /* Override any GCC internal prototype to avoid an error.
2046    Use char because int might match the return type of a GCC
2047    builtin and then its argument prototype would still apply.  */
2048 #ifdef __cplusplus
2049 extern "C"
2050 #endif
2051 char $2 ();
2052 /* The GNU C library defines this for functions which it implements
2053     to always fail with ENOSYS.  Some functions are actually named
2054     something starting with __ and the normal name is an alias.  */
2055 #if defined __stub_$2 || defined __stub___$2
2056 choke me
2057 #endif
2058
2059 int
2060 main ()
2061 {
2062 return $2 ();
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_link "$LINENO"; then :
2068   eval "$3=yes"
2069 else
2070   eval "$3=no"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext \
2073     conftest$ac_exeext conftest.$ac_ext
2074 fi
2075 eval ac_res=\$$3
2076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080 } # ac_fn_c_check_func
2081
2082 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2083 # ---------------------------------------------
2084 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2085 # accordingly.
2086 ac_fn_c_check_decl ()
2087 {
2088   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089   as_decl_name=`echo $2|sed 's/ *(.*//'`
2090   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2092 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2093 if eval \${$3+:} false; then :
2094   $as_echo_n "(cached) " >&6
2095 else
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 #ifndef $as_decl_name
2103 #ifdef __cplusplus
2104   (void) $as_decl_use;
2105 #else
2106   (void) $as_decl_name;
2107 #endif
2108 #endif
2109
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115   eval "$3=yes"
2116 else
2117   eval "$3=no"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 eval ac_res=\$$3
2122                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126 } # ac_fn_c_check_decl
2127
2128 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2129 # --------------------------------------------
2130 # Tries to find the compile-time value of EXPR in a program that includes
2131 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2132 # computed
2133 ac_fn_c_compute_int ()
2134 {
2135   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136   if test "$cross_compiling" = yes; then
2137     # Depending upon the size, compute the lo and hi bounds.
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 int
2142 main ()
2143 {
2144 static int test_array [1 - 2 * !(($2) >= 0)];
2145 test_array [0] = 0;
2146 return test_array [0];
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153   ac_lo=0 ac_mid=0
2154   while :; do
2155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 $4
2158 int
2159 main ()
2160 {
2161 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 test_array [0] = 0;
2163 return test_array [0];
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170   ac_hi=$ac_mid; break
2171 else
2172   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2173                         if test $ac_lo -le $ac_mid; then
2174                           ac_lo= ac_hi=
2175                           break
2176                         fi
2177                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180   done
2181 else
2182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h.  */
2184 $4
2185 int
2186 main ()
2187 {
2188 static int test_array [1 - 2 * !(($2) < 0)];
2189 test_array [0] = 0;
2190 return test_array [0];
2191
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197   ac_hi=-1 ac_mid=-1
2198   while :; do
2199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h.  */
2201 $4
2202 int
2203 main ()
2204 {
2205 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2206 test_array [0] = 0;
2207 return test_array [0];
2208
2209   ;
2210   return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214   ac_lo=$ac_mid; break
2215 else
2216   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2217                         if test $ac_mid -le $ac_hi; then
2218                           ac_lo= ac_hi=
2219                           break
2220                         fi
2221                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2222 fi
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224   done
2225 else
2226   ac_lo= ac_hi=
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 # Binary search between lo and hi bounds.
2232 while test "x$ac_lo" != "x$ac_hi"; do
2233   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h.  */
2236 $4
2237 int
2238 main ()
2239 {
2240 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2241 test_array [0] = 0;
2242 return test_array [0];
2243
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249   ac_hi=$ac_mid
2250 else
2251   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 done
2255 case $ac_lo in #((
2256 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2257 '') ac_retval=1 ;;
2258 esac
2259   else
2260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 static long int longval () { return $2; }
2264 static unsigned long int ulongval () { return $2; }
2265 #include <stdio.h>
2266 #include <stdlib.h>
2267 int
2268 main ()
2269 {
2270
2271   FILE *f = fopen ("conftest.val", "w");
2272   if (! f)
2273     return 1;
2274   if (($2) < 0)
2275     {
2276       long int i = longval ();
2277       if (i != ($2))
2278         return 1;
2279       fprintf (f, "%ld", i);
2280     }
2281   else
2282     {
2283       unsigned long int i = ulongval ();
2284       if (i != ($2))
2285         return 1;
2286       fprintf (f, "%lu", i);
2287     }
2288   /* Do not output a trailing newline, as this causes \r\n confusion
2289      on some platforms.  */
2290   return ferror (f) || fclose (f) != 0;
2291
2292   ;
2293   return 0;
2294 }
2295 _ACEOF
2296 if ac_fn_c_try_run "$LINENO"; then :
2297   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2298 else
2299   ac_retval=1
2300 fi
2301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2302   conftest.$ac_objext conftest.beam conftest.$ac_ext
2303 rm -f conftest.val
2304
2305   fi
2306   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307   as_fn_set_status $ac_retval
2308
2309 } # ac_fn_c_compute_int
2310
2311 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2312 # ----------------------------------------------------
2313 # Tries to find if the field MEMBER exists in type AGGR, after including
2314 # INCLUDES, setting cache variable VAR accordingly.
2315 ac_fn_c_check_member ()
2316 {
2317   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2319 $as_echo_n "checking for $2.$3... " >&6; }
2320 if eval \${$4+:} false; then :
2321   $as_echo_n "(cached) " >&6
2322 else
2323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $5
2326 int
2327 main ()
2328 {
2329 static $2 ac_aggr;
2330 if (ac_aggr.$3)
2331 return 0;
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337   eval "$4=yes"
2338 else
2339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h.  */
2341 $5
2342 int
2343 main ()
2344 {
2345 static $2 ac_aggr;
2346 if (sizeof ac_aggr.$3)
2347 return 0;
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353   eval "$4=yes"
2354 else
2355   eval "$4=no"
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 fi
2361 eval ac_res=\$$4
2362                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365
2366 } # ac_fn_c_check_member
2367 cat >config.log <<_ACEOF
2368 This file contains any messages produced by compilers while
2369 running configure, to aid debugging if configure makes a mistake.
2370
2371 It was created by $as_me, which was
2372 generated by GNU Autoconf 2.69.  Invocation command line was
2373
2374   $ $0 $@
2375
2376 _ACEOF
2377 exec 5>>config.log
2378 {
2379 cat <<_ASUNAME
2380 ## --------- ##
2381 ## Platform. ##
2382 ## --------- ##
2383
2384 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389
2390 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2392
2393 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2394 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2395 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2396 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2397 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2398 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2399 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2400
2401 _ASUNAME
2402
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408     $as_echo "PATH: $as_dir"
2409   done
2410 IFS=$as_save_IFS
2411
2412 } >&5
2413
2414 cat >&5 <<_ACEOF
2415
2416
2417 ## ----------- ##
2418 ## Core tests. ##
2419 ## ----------- ##
2420
2421 _ACEOF
2422
2423
2424 # Keep a trace of the command line.
2425 # Strip out --no-create and --no-recursion so they do not pile up.
2426 # Strip out --silent because we don't want to record it for future runs.
2427 # Also quote any args containing shell meta-characters.
2428 # Make two passes to allow for proper duplicate-argument suppression.
2429 ac_configure_args=
2430 ac_configure_args0=
2431 ac_configure_args1=
2432 ac_must_keep_next=false
2433 for ac_pass in 1 2
2434 do
2435   for ac_arg
2436   do
2437     case $ac_arg in
2438     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440     | -silent | --silent | --silen | --sile | --sil)
2441       continue ;;
2442     *\'*)
2443       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2444     esac
2445     case $ac_pass in
2446     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2447     2)
2448       as_fn_append ac_configure_args1 " '$ac_arg'"
2449       if test $ac_must_keep_next = true; then
2450         ac_must_keep_next=false # Got value, back to normal.
2451       else
2452         case $ac_arg in
2453           *=* | --config-cache | -C | -disable-* | --disable-* \
2454           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456           | -with-* | --with-* | -without-* | --without-* | --x)
2457             case "$ac_configure_args0 " in
2458               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459             esac
2460             ;;
2461           -* ) ac_must_keep_next=true ;;
2462         esac
2463       fi
2464       as_fn_append ac_configure_args " '$ac_arg'"
2465       ;;
2466     esac
2467   done
2468 done
2469 { ac_configure_args0=; unset ac_configure_args0;}
2470 { ac_configure_args1=; unset ac_configure_args1;}
2471
2472 # When interrupted or exit'd, cleanup temporary files, and complete
2473 # config.log.  We remove comments because anyway the quotes in there
2474 # would cause problems or look ugly.
2475 # WARNING: Use '\'' to represent an apostrophe within the trap.
2476 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477 trap 'exit_status=$?
2478   # Save into config.log some information that might help in debugging.
2479   {
2480     echo
2481
2482     $as_echo "## ---------------- ##
2483 ## Cache variables. ##
2484 ## ---------------- ##"
2485     echo
2486     # The following way of writing the cache mishandles newlines in values,
2487 (
2488   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489     eval ac_val=\$$ac_var
2490     case $ac_val in #(
2491     *${as_nl}*)
2492       case $ac_var in #(
2493       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2495       esac
2496       case $ac_var in #(
2497       _ | IFS | as_nl) ;; #(
2498       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499       *) { eval $ac_var=; unset $ac_var;} ;;
2500       esac ;;
2501     esac
2502   done
2503   (set) 2>&1 |
2504     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505     *${as_nl}ac_space=\ *)
2506       sed -n \
2507         "s/'\''/'\''\\\\'\'''\''/g;
2508           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509       ;; #(
2510     *)
2511       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2512       ;;
2513     esac |
2514     sort
2515 )
2516     echo
2517
2518     $as_echo "## ----------------- ##
2519 ## Output variables. ##
2520 ## ----------------- ##"
2521     echo
2522     for ac_var in $ac_subst_vars
2523     do
2524       eval ac_val=\$$ac_var
2525       case $ac_val in
2526       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527       esac
2528       $as_echo "$ac_var='\''$ac_val'\''"
2529     done | sort
2530     echo
2531
2532     if test -n "$ac_subst_files"; then
2533       $as_echo "## ------------------- ##
2534 ## File substitutions. ##
2535 ## ------------------- ##"
2536       echo
2537       for ac_var in $ac_subst_files
2538       do
2539         eval ac_val=\$$ac_var
2540         case $ac_val in
2541         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542         esac
2543         $as_echo "$ac_var='\''$ac_val'\''"
2544       done | sort
2545       echo
2546     fi
2547
2548     if test -s confdefs.h; then
2549       $as_echo "## ----------- ##
2550 ## confdefs.h. ##
2551 ## ----------- ##"
2552       echo
2553       cat confdefs.h
2554       echo
2555     fi
2556     test "$ac_signal" != 0 &&
2557       $as_echo "$as_me: caught signal $ac_signal"
2558     $as_echo "$as_me: exit $exit_status"
2559   } >&5
2560   rm -f core *.core core.conftest.* &&
2561     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2562     exit $exit_status
2563 ' 0
2564 for ac_signal in 1 2 13 15; do
2565   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2566 done
2567 ac_signal=0
2568
2569 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2570 rm -f -r conftest* confdefs.h
2571
2572 $as_echo "/* confdefs.h */" > confdefs.h
2573
2574 # Predefined preprocessor variables.
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_NAME "$PACKAGE_NAME"
2578 _ACEOF
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2582 _ACEOF
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2586 _ACEOF
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_STRING "$PACKAGE_STRING"
2590 _ACEOF
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2594 _ACEOF
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_URL "$PACKAGE_URL"
2598 _ACEOF
2599
2600
2601 # Let the site file select an alternate cache file if it wants to.
2602 # Prefer an explicitly selected file to automatically selected ones.
2603 ac_site_file1=NONE
2604 ac_site_file2=NONE
2605 if test -n "$CONFIG_SITE"; then
2606   # We do not want a PATH search for config.site.
2607   case $CONFIG_SITE in #((
2608     -*)  ac_site_file1=./$CONFIG_SITE;;
2609     */*) ac_site_file1=$CONFIG_SITE;;
2610     *)   ac_site_file1=./$CONFIG_SITE;;
2611   esac
2612 elif test "x$prefix" != xNONE; then
2613   ac_site_file1=$prefix/share/config.site
2614   ac_site_file2=$prefix/etc/config.site
2615 else
2616   ac_site_file1=$ac_default_prefix/share/config.site
2617   ac_site_file2=$ac_default_prefix/etc/config.site
2618 fi
2619 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2620 do
2621   test "x$ac_site_file" = xNONE && continue
2622   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2623     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625     sed 's/^/| /' "$ac_site_file" >&5
2626     . "$ac_site_file" \
2627       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error $? "failed to load site script $ac_site_file
2630 See \`config.log' for more details" "$LINENO" 5; }
2631   fi
2632 done
2633
2634 if test -r "$cache_file"; then
2635   # Some versions of bash will fail to source /dev/null (special files
2636   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2637   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2638     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639 $as_echo "$as_me: loading cache $cache_file" >&6;}
2640     case $cache_file in
2641       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642       *)                      . "./$cache_file";;
2643     esac
2644   fi
2645 else
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647 $as_echo "$as_me: creating cache $cache_file" >&6;}
2648   >$cache_file
2649 fi
2650
2651 gt_needs="$gt_needs "
2652 as_fn_append ac_header_list " stdlib.h"
2653 as_fn_append ac_header_list " unistd.h"
2654 as_fn_append ac_header_list " sys/param.h"
2655 as_fn_append ac_func_list " symlink"
2656 # Check that the precious variables saved in the cache have kept the same
2657 # value.
2658 ac_cache_corrupted=false
2659 for ac_var in $ac_precious_vars; do
2660   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2661   eval ac_new_set=\$ac_env_${ac_var}_set
2662   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2663   eval ac_new_val=\$ac_env_${ac_var}_value
2664   case $ac_old_set,$ac_new_set in
2665     set,)
2666       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2667 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2668       ac_cache_corrupted=: ;;
2669     ,set)
2670       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2671 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2672       ac_cache_corrupted=: ;;
2673     ,);;
2674     *)
2675       if test "x$ac_old_val" != "x$ac_new_val"; then
2676         # differences in whitespace do not lead to failure.
2677         ac_old_val_w=`echo x $ac_old_val`
2678         ac_new_val_w=`echo x $ac_new_val`
2679         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2680           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2681 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2682           ac_cache_corrupted=:
2683         else
2684           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2685 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2686           eval $ac_var=\$ac_old_val
2687         fi
2688         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2689 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2690         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2691 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2692       fi;;
2693   esac
2694   # Pass precious variables to config.status.
2695   if test "$ac_new_set" = set; then
2696     case $ac_new_val in
2697     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2698     *) ac_arg=$ac_var=$ac_new_val ;;
2699     esac
2700     case " $ac_configure_args " in
2701       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2702       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2703     esac
2704   fi
2705 done
2706 if $ac_cache_corrupted; then
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2710 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2711   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2712 fi
2713 ## -------------------- ##
2714 ## Main body of script. ##
2715 ## -------------------- ##
2716
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
2723
2724
2725 ac_aux_dir=
2726 for ac_dir in config "$srcdir"/config; do
2727   if test -f "$ac_dir/install-sh"; then
2728     ac_aux_dir=$ac_dir
2729     ac_install_sh="$ac_aux_dir/install-sh -c"
2730     break
2731   elif test -f "$ac_dir/install.sh"; then
2732     ac_aux_dir=$ac_dir
2733     ac_install_sh="$ac_aux_dir/install.sh -c"
2734     break
2735   elif test -f "$ac_dir/shtool"; then
2736     ac_aux_dir=$ac_dir
2737     ac_install_sh="$ac_aux_dir/shtool install -c"
2738     break
2739   fi
2740 done
2741 if test -z "$ac_aux_dir"; then
2742   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2743 fi
2744
2745 # These three variables are undocumented and unsupported,
2746 # and are intended to be withdrawn in a future Autoconf release.
2747 # They can cause serious problems if a builder's source tree is in a directory
2748 # whose full name contains unusual characters.
2749 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2750 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2751 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2752
2753
2754 ac_config_headers="$ac_config_headers lib/config.h"
2755
2756
2757 MCONFIG=./MCONFIG
2758
2759 BINARY_TYPE=bin
2760 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2761         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2762 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2763         | tr \" " "`
2764 E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2765 MONTH=`echo $DATE | awk -F- '{print $2}'`
2766 YEAR=`echo $DATE | awk -F- '{print $3}'`
2767
2768 if expr $YEAR ">" 1900 > /dev/null ; then
2769         E2FSPROGS_YEAR=$YEAR
2770 elif expr $YEAR ">" 90 >/dev/null ; then
2771         E2FSPROGS_YEAR=19$YEAR
2772 else
2773         E2FSPROGS_YEAR=20$YEAR
2774 fi
2775
2776 case $MONTH in
2777 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2778 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2779 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2780 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2781 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2782 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2783 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2784 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2785 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2786 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2787 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2788 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2789 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2790 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2791 esac
2792
2793 base_ver=`echo $E2FSPROGS_VERSION | \
2794                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2795
2796 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2797
2798 case $E2FSPROGS_VERSION in
2799 *-WIP|pre-*)
2800         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2801         ;;
2802 *)
2803         E2FSPROGS_PKGVER="$base_ver"
2804         ;;
2805 esac
2806
2807 unset DATE MONTH YEAR base_ver pre_vers date_spec
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2809 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2811 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2812
2813
2814
2815
2816
2817 WITH_DIET_LIBC=
2818
2819 # Check whether --with-diet-libc was given.
2820 if test "${with_diet_libc+set}" = set; then :
2821   withval=$with_diet_libc; CC="diet cc -nostdinc"
2822 WITH_DIET_LIBC=yes
2823 if test -z "$LIBS"
2824 then
2825         LIBS="-lcompat"
2826 else
2827         LIBS="$LIBS -lcompat"
2828 fi
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2830 $as_echo "CC=$CC" >&6; }
2831 fi
2832 # Make sure we can run config.sub.
2833 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2834   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2835
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2837 $as_echo_n "checking build system type... " >&6; }
2838 if ${ac_cv_build+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   ac_build_alias=$build_alias
2842 test "x$ac_build_alias" = x &&
2843   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2844 test "x$ac_build_alias" = x &&
2845   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2846 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2847   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2848
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2851 $as_echo "$ac_cv_build" >&6; }
2852 case $ac_cv_build in
2853 *-*-*) ;;
2854 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2855 esac
2856 build=$ac_cv_build
2857 ac_save_IFS=$IFS; IFS='-'
2858 set x $ac_cv_build
2859 shift
2860 build_cpu=$1
2861 build_vendor=$2
2862 shift; shift
2863 # Remember, the first character of IFS is used to create $*,
2864 # except with old shells:
2865 build_os=$*
2866 IFS=$ac_save_IFS
2867 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2868
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2871 $as_echo_n "checking host system type... " >&6; }
2872 if ${ac_cv_host+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if test "x$host_alias" = x; then
2876   ac_cv_host=$ac_cv_build
2877 else
2878   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2879     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2880 fi
2881
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2884 $as_echo "$ac_cv_host" >&6; }
2885 case $ac_cv_host in
2886 *-*-*) ;;
2887 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2888 esac
2889 host=$ac_cv_host
2890 ac_save_IFS=$IFS; IFS='-'
2891 set x $ac_cv_host
2892 shift
2893 host_cpu=$1
2894 host_vendor=$2
2895 shift; shift
2896 # Remember, the first character of IFS is used to create $*,
2897 # except with old shells:
2898 host_os=$*
2899 IFS=$ac_save_IFS
2900 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2901
2902
2903 DLOPEN_LIB=''
2904 ac_ext=c
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909 if test -n "$ac_tool_prefix"; then
2910   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if test -n "$CC"; then
2918   ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925     for ac_exec_ext in '' $ac_executable_extensions; do
2926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929     break 2
2930   fi
2931 done
2932   done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2941 else
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947 fi
2948 if test -z "$ac_cv_prog_CC"; then
2949   ac_ct_CC=$CC
2950   # Extract the first word of "gcc", so it can be a program name with args.
2951 set dummy gcc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2955   $as_echo_n "(cached) " >&6
2956 else
2957   if test -n "$ac_ct_CC"; then
2958   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963   IFS=$as_save_IFS
2964   test -z "$as_dir" && as_dir=.
2965     for ac_exec_ext in '' $ac_executable_extensions; do
2966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967     ac_cv_prog_ac_ct_CC="gcc"
2968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969     break 2
2970   fi
2971 done
2972   done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980 $as_echo "$ac_ct_CC" >&6; }
2981 else
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2984 fi
2985
2986   if test "x$ac_ct_CC" = x; then
2987     CC=""
2988   else
2989     case $cross_compiling:$ac_tool_warned in
2990 yes:)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2993 ac_tool_warned=yes ;;
2994 esac
2995     CC=$ac_ct_CC
2996   fi
2997 else
2998   CC="$ac_cv_prog_CC"
2999 fi
3000
3001 if test -z "$CC"; then
3002           if test -n "$ac_tool_prefix"; then
3003     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if test -n "$CC"; then
3011   ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020     ac_cv_prog_CC="${ac_tool_prefix}cc"
3021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022     break 2
3023   fi
3024 done
3025   done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039
3040   fi
3041 fi
3042 if test -z "$CC"; then
3043   # Extract the first word of "cc", so it can be a program name with args.
3044 set dummy cc; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if ${ac_cv_prog_CC+:} false; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050   if test -n "$CC"; then
3051   ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053   ac_prog_rejected=no
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3062        ac_prog_rejected=yes
3063        continue
3064      fi
3065     ac_cv_prog_CC="cc"
3066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070   done
3071 IFS=$as_save_IFS
3072
3073 if test $ac_prog_rejected = yes; then
3074   # We found a bogon in the path, so make sure we never use it.
3075   set dummy $ac_cv_prog_CC
3076   shift
3077   if test $# != 0; then
3078     # We chose a different compiler from the bogus one.
3079     # However, it has the same basename, so the bogon will be chosen
3080     # first if we set CC to just the basename; use the full file name.
3081     shift
3082     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3083   fi
3084 fi
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097 fi
3098 if test -z "$CC"; then
3099   if test -n "$ac_tool_prefix"; then
3100   for ac_prog in cl.exe
3101   do
3102     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107   $as_echo_n "(cached) " >&6
3108 else
3109   if test -n "$CC"; then
3110   ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117     for ac_exec_ext in '' $ac_executable_extensions; do
3118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124   done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139     test -n "$CC" && break
3140   done
3141 fi
3142 if test -z "$CC"; then
3143   ac_ct_CC=$CC
3144   for ac_prog in cl.exe
3145 do
3146   # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   if test -n "$ac_ct_CC"; then
3154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159   IFS=$as_save_IFS
3160   test -z "$as_dir" && as_dir=.
3161     for ac_exec_ext in '' $ac_executable_extensions; do
3162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163     ac_cv_prog_ac_ct_CC="$ac_prog"
3164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165     break 2
3166   fi
3167 done
3168   done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176 $as_echo "$ac_ct_CC" >&6; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183   test -n "$ac_ct_CC" && break
3184 done
3185
3186   if test "x$ac_ct_CC" = x; then
3187     CC=""
3188   else
3189     case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195     CC=$ac_ct_CC
3196   fi
3197 fi
3198
3199 fi
3200
3201
3202 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "no acceptable C compiler found in \$PATH
3205 See \`config.log' for more details" "$LINENO" 5; }
3206
3207 # Provide some information about the compiler.
3208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3209 set X $ac_compile
3210 ac_compiler=$2
3211 for ac_option in --version -v -V -qversion; do
3212   { { ac_try="$ac_compiler $ac_option >&5"
3213 case "(($ac_try" in
3214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215   *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3220   ac_status=$?
3221   if test -s conftest.err; then
3222     sed '10a\
3223 ... rest of stderr output deleted ...
3224          10q' conftest.err >conftest.er1
3225     cat conftest.er1 >&5
3226   fi
3227   rm -f conftest.er1 conftest.err
3228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229   test $ac_status = 0; }
3230 done
3231
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h.  */
3234
3235 int
3236 main ()
3237 {
3238
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 ac_clean_files_save=$ac_clean_files
3244 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3245 # Try to create an executable without -o first, disregard a.out.
3246 # It will help us diagnose broken compilers, and finding out an intuition
3247 # of exeext.
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3249 $as_echo_n "checking whether the C compiler works... " >&6; }
3250 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3251
3252 # The possible output files:
3253 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3254
3255 ac_rmfiles=
3256 for ac_file in $ac_files
3257 do
3258   case $ac_file in
3259     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3260     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3261   esac
3262 done
3263 rm -f $ac_rmfiles
3264
3265 if { { ac_try="$ac_link_default"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272   (eval "$ac_link_default") 2>&5
3273   ac_status=$?
3274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275   test $ac_status = 0; }; then :
3276   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3277 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3278 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3279 # so that the user can short-circuit this test for compilers unknown to
3280 # Autoconf.
3281 for ac_file in $ac_files ''
3282 do
3283   test -f "$ac_file" || continue
3284   case $ac_file in
3285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3286         ;;
3287     [ab].out )
3288         # We found the default executable, but exeext='' is most
3289         # certainly right.
3290         break;;
3291     *.* )
3292         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3293         then :; else
3294            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295         fi
3296         # We set ac_cv_exeext here because the later test for it is not
3297         # safe: cross compilers may not add the suffix if given an `-o'
3298         # argument, so we may need to know it at that point already.
3299         # Even if this section looks crufty: it has the advantage of
3300         # actually working.
3301         break;;
3302     * )
3303         break;;
3304   esac
3305 done
3306 test "$ac_cv_exeext" = no && ac_cv_exeext=
3307
3308 else
3309   ac_file=''
3310 fi
3311 if test -z "$ac_file"; then :
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error 77 "C compiler cannot create executables
3320 See \`config.log' for more details" "$LINENO" 5; }
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3326 $as_echo_n "checking for C compiler default output file name... " >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3328 $as_echo "$ac_file" >&6; }
3329 ac_exeext=$ac_cv_exeext
3330
3331 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3332 ac_clean_files=$ac_clean_files_save
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3334 $as_echo_n "checking for suffix of executables... " >&6; }
3335 if { { ac_try="$ac_link"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342   (eval "$ac_link") 2>&5
3343   ac_status=$?
3344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345   test $ac_status = 0; }; then :
3346   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 # `rm'.
3350 for ac_file in conftest.exe conftest conftest.*; do
3351   test -f "$ac_file" || continue
3352   case $ac_file in
3353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355           break;;
3356     * ) break;;
3357   esac
3358 done
3359 else
3360   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details" "$LINENO" 5; }
3364 fi
3365 rm -f conftest conftest$ac_cv_exeext
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3367 $as_echo "$ac_cv_exeext" >&6; }
3368
3369 rm -f conftest.$ac_ext
3370 EXEEXT=$ac_cv_exeext
3371 ac_exeext=$EXEEXT
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h.  */
3374 #include <stdio.h>
3375 int
3376 main ()
3377 {
3378 FILE *f = fopen ("conftest.out", "w");
3379  return ferror (f) || fclose (f) != 0;
3380
3381   ;
3382   return 0;
3383 }
3384 _ACEOF
3385 ac_clean_files="$ac_clean_files conftest.out"
3386 # Check that the compiler produces executables we can run.  If not, either
3387 # the compiler is broken, or we cross compile.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3389 $as_echo_n "checking whether we are cross compiling... " >&6; }
3390 if test "$cross_compiling" != yes; then
3391   { { ac_try="$ac_link"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398   (eval "$ac_link") 2>&5
3399   ac_status=$?
3400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401   test $ac_status = 0; }
3402   if { ac_try='./conftest$ac_cv_exeext'
3403   { { case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409   (eval "$ac_try") 2>&5
3410   ac_status=$?
3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412   test $ac_status = 0; }; }; then
3413     cross_compiling=no
3414   else
3415     if test "$cross_compiling" = maybe; then
3416         cross_compiling=yes
3417     else
3418         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot run C compiled programs.
3421 If you meant to cross compile, use \`--host'.
3422 See \`config.log' for more details" "$LINENO" 5; }
3423     fi
3424   fi
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3428
3429 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3430 ac_clean_files=$ac_clean_files_save
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3432 $as_echo_n "checking for suffix of object files... " >&6; }
3433 if ${ac_cv_objext+:} false; then :
3434   $as_echo_n "(cached) " >&6
3435 else
3436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 rm -f conftest.o conftest.obj
3448 if { { ac_try="$ac_compile"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455   (eval "$ac_compile") 2>&5
3456   ac_status=$?
3457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458   test $ac_status = 0; }; then :
3459   for ac_file in conftest.o conftest.obj conftest.*; do
3460   test -f "$ac_file" || continue;
3461   case $ac_file in
3462     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3463     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464        break;;
3465   esac
3466 done
3467 else
3468   $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of object files: cannot compile
3474 See \`config.log' for more details" "$LINENO" 5; }
3475 fi
3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3479 $as_echo "$ac_cv_objext" >&6; }
3480 OBJEXT=$ac_cv_objext
3481 ac_objext=$OBJEXT
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3484 if ${ac_cv_c_compiler_gnu+:} false; then :
3485   $as_echo_n "(cached) " >&6
3486 else
3487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h.  */
3489
3490 int
3491 main ()
3492 {
3493 #ifndef __GNUC__
3494        choke me
3495 #endif
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502   ac_compiler_gnu=yes
3503 else
3504   ac_compiler_gnu=no
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3508
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3511 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3512 if test $ac_compiler_gnu = yes; then
3513   GCC=yes
3514 else
3515   GCC=
3516 fi
3517 ac_test_CFLAGS=${CFLAGS+set}
3518 ac_save_CFLAGS=$CFLAGS
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3520 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3521 if ${ac_cv_prog_cc_g+:} false; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   ac_save_c_werror_flag=$ac_c_werror_flag
3525    ac_c_werror_flag=yes
3526    ac_cv_prog_cc_g=no
3527    CFLAGS="-g"
3528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540   ac_cv_prog_cc_g=yes
3541 else
3542   CFLAGS=""
3543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555
3556 else
3557   ac_c_werror_flag=$ac_save_c_werror_flag
3558          CFLAGS="-g"
3559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h.  */
3561
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571   ac_cv_prog_cc_g=yes
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578    ac_c_werror_flag=$ac_save_c_werror_flag
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3581 $as_echo "$ac_cv_prog_cc_g" >&6; }
3582 if test "$ac_test_CFLAGS" = set; then
3583   CFLAGS=$ac_save_CFLAGS
3584 elif test $ac_cv_prog_cc_g = yes; then
3585   if test "$GCC" = yes; then
3586     CFLAGS="-g -O2"
3587   else
3588     CFLAGS="-g"
3589   fi
3590 else
3591   if test "$GCC" = yes; then
3592     CFLAGS="-O2"
3593   else
3594     CFLAGS=
3595   fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3599 if ${ac_cv_prog_cc_c89+:} false; then :
3600   $as_echo_n "(cached) " >&6
3601 else
3602   ac_cv_prog_cc_c89=no
3603 ac_save_CC=$CC
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h.  */
3606 #include <stdarg.h>
3607 #include <stdio.h>
3608 struct stat;
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3613      char **p;
3614      int i;
3615 {
3616   return p[i];
3617 }
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3619 {
3620   char *s;
3621   va_list v;
3622   va_start (v,p);
3623   s = g (p, va_arg (v,int));
3624   va_end (v);
3625   return s;
3626 }
3627
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3629    function prototypes and stuff, but not '\xHH' hex character constants.
3630    These don't provoke an error unfortunately, instead are silently treated
3631    as 'x'.  The following induces an error, until -std is added to get
3632    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3633    array size at least.  It's necessary to write '\x00'==0 to get something
3634    that's true only with -std.  */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638    inside strings and character constants.  */
3639 #define FOO(x) 'x'
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 int argc;
3647 char **argv;
3648 int
3649 main ()
3650 {
3651 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 do
3659   CC="$ac_save_CC $ac_arg"
3660   if ac_fn_c_try_compile "$LINENO"; then :
3661   ac_cv_prog_cc_c89=$ac_arg
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext
3664   test "x$ac_cv_prog_cc_c89" != "xno" && break
3665 done
3666 rm -f conftest.$ac_ext
3667 CC=$ac_save_CC
3668
3669 fi
3670 # AC_CACHE_VAL
3671 case "x$ac_cv_prog_cc_c89" in
3672   x)
3673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3674 $as_echo "none needed" >&6; } ;;
3675   xno)
3676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3677 $as_echo "unsupported" >&6; } ;;
3678   *)
3679     CC="$CC $ac_cv_prog_cc_c89"
3680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3682 esac
3683 if test "x$ac_cv_prog_cc_c89" != xno; then :
3684
3685 fi
3686
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3695 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3696 if ${ac_cv_lib_dl_dlopen+:} false; then :
3697   $as_echo_n "(cached) " >&6
3698 else
3699   ac_check_lib_save_LIBS=$LIBS
3700 LIBS="-ldl  $LIBS"
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h.  */
3703
3704 /* Override any GCC internal prototype to avoid an error.
3705    Use char because int might match the return type of a GCC
3706    builtin and then its argument prototype would still apply.  */
3707 #ifdef __cplusplus
3708 extern "C"
3709 #endif
3710 char dlopen ();
3711 int
3712 main ()
3713 {
3714 return dlopen ();
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_link "$LINENO"; then :
3720   ac_cv_lib_dl_dlopen=yes
3721 else
3722   ac_cv_lib_dl_dlopen=no
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext \
3725     conftest$ac_exeext conftest.$ac_ext
3726 LIBS=$ac_check_lib_save_LIBS
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3729 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3730 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3731   DLOPEN_LIB=-ldl
3732 fi
3733
3734
3735
3736 # Check whether --with-cc was given.
3737 if test "${with_cc+set}" = set; then :
3738   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3739 fi
3740
3741
3742 # Check whether --with-ccopts was given.
3743 if test "${with_ccopts+set}" = set; then :
3744   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3745 fi
3746
3747
3748 # Check whether --with-ldopts was given.
3749 if test "${with_ldopts+set}" = set; then :
3750   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3751 fi
3752
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 if test -n "$ac_tool_prefix"; then
3759   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_CC+:} false; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   if test -n "$CC"; then
3767   ac_cv_prog_CC="$CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774     for ac_exec_ext in '' $ac_executable_extensions; do
3775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781   done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 CC=$ac_cv_prog_CC
3787 if test -n "$CC"; then
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 $as_echo "$CC" >&6; }
3790 else
3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3794
3795
3796 fi
3797 if test -z "$ac_cv_prog_CC"; then
3798   ac_ct_CC=$CC
3799   # Extract the first word of "gcc", so it can be a program name with args.
3800 set dummy gcc; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   if test -n "$ac_ct_CC"; then
3807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814     for ac_exec_ext in '' $ac_executable_extensions; do
3815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_prog_ac_ct_CC="gcc"
3817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821   done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3827 if test -n "$ac_ct_CC"; then
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3829 $as_echo "$ac_ct_CC" >&6; }
3830 else
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835   if test "x$ac_ct_CC" = x; then
3836     CC=""
3837   else
3838     case $cross_compiling:$ac_tool_warned in
3839 yes:)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3843 esac
3844     CC=$ac_ct_CC
3845   fi
3846 else
3847   CC="$ac_cv_prog_CC"
3848 fi
3849
3850 if test -z "$CC"; then
3851           if test -n "$ac_tool_prefix"; then
3852     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}cc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -n "$CC"; then
3860   ac_cv_prog_CC="$CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869     ac_cv_prog_CC="${ac_tool_prefix}cc"
3870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871     break 2
3872   fi
3873 done
3874   done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 CC=$ac_cv_prog_CC
3880 if test -n "$CC"; then
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888
3889   fi
3890 fi
3891 if test -z "$CC"; then
3892   # Extract the first word of "cc", so it can be a program name with args.
3893 set dummy cc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   if test -n "$CC"; then
3900   ac_cv_prog_CC="$CC" # Let the user override the test.
3901 else
3902   ac_prog_rejected=no
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3911        ac_prog_rejected=yes
3912        continue
3913      fi
3914     ac_cv_prog_CC="cc"
3915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919   done
3920 IFS=$as_save_IFS
3921
3922 if test $ac_prog_rejected = yes; then
3923   # We found a bogon in the path, so make sure we never use it.
3924   set dummy $ac_cv_prog_CC
3925   shift
3926   if test $# != 0; then
3927     # We chose a different compiler from the bogus one.
3928     # However, it has the same basename, so the bogon will be chosen
3929     # first if we set CC to just the basename; use the full file name.
3930     shift
3931     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3932   fi
3933 fi
3934 fi
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3940 else
3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 fi
3944
3945
3946 fi
3947 if test -z "$CC"; then
3948   if test -n "$ac_tool_prefix"; then
3949   for ac_prog in cl.exe
3950   do
3951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if ${ac_cv_prog_CC+:} false; then :
3956   $as_echo_n "(cached) " >&6
3957 else
3958   if test -n "$CC"; then
3959   ac_cv_prog_CC="$CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966     for ac_exec_ext in '' $ac_executable_extensions; do
3967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973   done
3974 IFS=$as_save_IFS
3975
3976 fi
3977 fi
3978 CC=$ac_cv_prog_CC
3979 if test -n "$CC"; then
3980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981 $as_echo "$CC" >&6; }
3982 else
3983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3985 fi
3986
3987
3988     test -n "$CC" && break
3989   done
3990 fi
3991 if test -z "$CC"; then
3992   ac_ct_CC=$CC
3993   for ac_prog in cl.exe
3994 do
3995   # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002   if test -n "$ac_ct_CC"; then
4003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010     for ac_exec_ext in '' $ac_executable_extensions; do
4011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012     ac_cv_prog_ac_ct_CC="$ac_prog"
4013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014     break 2
4015   fi
4016 done
4017   done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023 if test -n "$ac_ct_CC"; then
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025 $as_echo "$ac_ct_CC" >&6; }
4026 else
4027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031
4032   test -n "$ac_ct_CC" && break
4033 done
4034
4035   if test "x$ac_ct_CC" = x; then
4036     CC=""
4037   else
4038     case $cross_compiling:$ac_tool_warned in
4039 yes:)
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4042 ac_tool_warned=yes ;;
4043 esac
4044     CC=$ac_ct_CC
4045   fi
4046 fi
4047
4048 fi
4049
4050
4051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "no acceptable C compiler found in \$PATH
4054 See \`config.log' for more details" "$LINENO" 5; }
4055
4056 # Provide some information about the compiler.
4057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4058 set X $ac_compile
4059 ac_compiler=$2
4060 for ac_option in --version -v -V -qversion; do
4061   { { ac_try="$ac_compiler $ac_option >&5"
4062 case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067 $as_echo "$ac_try_echo"; } >&5
4068   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4069   ac_status=$?
4070   if test -s conftest.err; then
4071     sed '10a\
4072 ... rest of stderr output deleted ...
4073          10q' conftest.err >conftest.er1
4074     cat conftest.er1 >&5
4075   fi
4076   rm -f conftest.er1 conftest.err
4077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078   test $ac_status = 0; }
4079 done
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4082 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4083 if ${ac_cv_c_compiler_gnu+:} false; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h.  */
4088
4089 int
4090 main ()
4091 {
4092 #ifndef __GNUC__
4093        choke me
4094 #endif
4095
4096   ;
4097   return 0;
4098 }
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101   ac_compiler_gnu=yes
4102 else
4103   ac_compiler_gnu=no
4104 fi
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4107
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4110 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4111 if test $ac_compiler_gnu = yes; then
4112   GCC=yes
4113 else
4114   GCC=
4115 fi
4116 ac_test_CFLAGS=${CFLAGS+set}
4117 ac_save_CFLAGS=$CFLAGS
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4119 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4120 if ${ac_cv_prog_cc_g+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   ac_save_c_werror_flag=$ac_c_werror_flag
4124    ac_c_werror_flag=yes
4125    ac_cv_prog_cc_g=no
4126    CFLAGS="-g"
4127    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139   ac_cv_prog_cc_g=yes
4140 else
4141   CFLAGS=""
4142       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h.  */
4144
4145 int
4146 main ()
4147 {
4148
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154
4155 else
4156   ac_c_werror_flag=$ac_save_c_werror_flag
4157          CFLAGS="-g"
4158          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h.  */
4160
4161 int
4162 main ()
4163 {
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170   ac_cv_prog_cc_g=yes
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 fi
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 fi
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177    ac_c_werror_flag=$ac_save_c_werror_flag
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4180 $as_echo "$ac_cv_prog_cc_g" >&6; }
4181 if test "$ac_test_CFLAGS" = set; then
4182   CFLAGS=$ac_save_CFLAGS
4183 elif test $ac_cv_prog_cc_g = yes; then
4184   if test "$GCC" = yes; then
4185     CFLAGS="-g -O2"
4186   else
4187     CFLAGS="-g"
4188   fi
4189 else
4190   if test "$GCC" = yes; then
4191     CFLAGS="-O2"
4192   else
4193     CFLAGS=
4194   fi
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4197 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4198 if ${ac_cv_prog_cc_c89+:} false; then :
4199   $as_echo_n "(cached) " >&6
4200 else
4201   ac_cv_prog_cc_c89=no
4202 ac_save_CC=$CC
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h.  */
4205 #include <stdarg.h>
4206 #include <stdio.h>
4207 struct stat;
4208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4209 struct buf { int x; };
4210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4211 static char *e (p, i)
4212      char **p;
4213      int i;
4214 {
4215   return p[i];
4216 }
4217 static char *f (char * (*g) (char **, int), char **p, ...)
4218 {
4219   char *s;
4220   va_list v;
4221   va_start (v,p);
4222   s = g (p, va_arg (v,int));
4223   va_end (v);
4224   return s;
4225 }
4226
4227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4228    function prototypes and stuff, but not '\xHH' hex character constants.
4229    These don't provoke an error unfortunately, instead are silently treated
4230    as 'x'.  The following induces an error, until -std is added to get
4231    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4232    array size at least.  It's necessary to write '\x00'==0 to get something
4233    that's true only with -std.  */
4234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4235
4236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4237    inside strings and character constants.  */
4238 #define FOO(x) 'x'
4239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4240
4241 int test (int i, double x);
4242 struct s1 {int (*f) (int a);};
4243 struct s2 {int (*f) (double a);};
4244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4245 int argc;
4246 char **argv;
4247 int
4248 main ()
4249 {
4250 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4256         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4257 do
4258   CC="$ac_save_CC $ac_arg"
4259   if ac_fn_c_try_compile "$LINENO"; then :
4260   ac_cv_prog_cc_c89=$ac_arg
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext
4263   test "x$ac_cv_prog_cc_c89" != "xno" && break
4264 done
4265 rm -f conftest.$ac_ext
4266 CC=$ac_save_CC
4267
4268 fi
4269 # AC_CACHE_VAL
4270 case "x$ac_cv_prog_cc_c89" in
4271   x)
4272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4273 $as_echo "none needed" >&6; } ;;
4274   xno)
4275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276 $as_echo "unsupported" >&6; } ;;
4277   *)
4278     CC="$CC $ac_cv_prog_cc_c89"
4279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4281 esac
4282 if test "x$ac_cv_prog_cc_c89" != xno; then :
4283
4284 fi
4285
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
4292 if test "$GCC" = yes; then
4293    RDYNAMIC="-rdynamic"
4294
4295 fi
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4303 # On Suns, sometimes $CPP names a directory.
4304 if test -n "$CPP" && test -d "$CPP"; then
4305   CPP=
4306 fi
4307 if test -z "$CPP"; then
4308   if ${ac_cv_prog_CPP+:} false; then :
4309   $as_echo_n "(cached) " >&6
4310 else
4311       # Double quotes because CPP needs to be expanded
4312     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4313     do
4314       ac_preproc_ok=false
4315 for ac_c_preproc_warn_flag in '' yes
4316 do
4317   # Use a header file that comes with gcc, so configuring glibc
4318   # with a fresh cross-compiler works.
4319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320   # <limits.h> exists even on freestanding compilers.
4321   # On the NeXT, cc -E runs the code through the compiler's parser,
4322   # not just through cpp. "Syntax error" is here to catch this case.
4323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h.  */
4325 #ifdef __STDC__
4326 # include <limits.h>
4327 #else
4328 # include <assert.h>
4329 #endif
4330                      Syntax error
4331 _ACEOF
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4333
4334 else
4335   # Broken: fails on valid input.
4336 continue
4337 fi
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4339
4340   # OK, works on sane cases.  Now check whether nonexistent headers
4341   # can be detected and how.
4342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h.  */
4344 #include <ac_nonexistent.h>
4345 _ACEOF
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347   # Broken: success on invalid input.
4348 continue
4349 else
4350   # Passes both tests.
4351 ac_preproc_ok=:
4352 break
4353 fi
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4355
4356 done
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4360   break
4361 fi
4362
4363     done
4364     ac_cv_prog_CPP=$CPP
4365
4366 fi
4367   CPP=$ac_cv_prog_CPP
4368 else
4369   ac_cv_prog_CPP=$CPP
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4372 $as_echo "$CPP" >&6; }
4373 ac_preproc_ok=false
4374 for ac_c_preproc_warn_flag in '' yes
4375 do
4376   # Use a header file that comes with gcc, so configuring glibc
4377   # with a fresh cross-compiler works.
4378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4379   # <limits.h> exists even on freestanding compilers.
4380   # On the NeXT, cc -E runs the code through the compiler's parser,
4381   # not just through cpp. "Syntax error" is here to catch this case.
4382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h.  */
4384 #ifdef __STDC__
4385 # include <limits.h>
4386 #else
4387 # include <assert.h>
4388 #endif
4389                      Syntax error
4390 _ACEOF
4391 if ac_fn_c_try_cpp "$LINENO"; then :
4392
4393 else
4394   # Broken: fails on valid input.
4395 continue
4396 fi
4397 rm -f conftest.err conftest.i conftest.$ac_ext
4398
4399   # OK, works on sane cases.  Now check whether nonexistent headers
4400   # can be detected and how.
4401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h.  */
4403 #include <ac_nonexistent.h>
4404 _ACEOF
4405 if ac_fn_c_try_cpp "$LINENO"; then :
4406   # Broken: success on invalid input.
4407 continue
4408 else
4409   # Passes both tests.
4410 ac_preproc_ok=:
4411 break
4412 fi
4413 rm -f conftest.err conftest.i conftest.$ac_ext
4414
4415 done
4416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4417 rm -f conftest.i conftest.err conftest.$ac_ext
4418 if $ac_preproc_ok; then :
4419
4420 else
4421   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4423 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4424 See \`config.log' for more details" "$LINENO" 5; }
4425 fi
4426
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4434 $as_echo_n "checking for additional special compiler flags... " >&6; }
4435 if test "$GCC" = yes
4436 then
4437     case "$host_cpu" in
4438         alpha)          addcflags="-mieee" ;;
4439     esac
4440 fi
4441 if test "x$addcflags" != x
4442 then
4443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4444 $as_echo "$addcflags" >&6; }
4445     CFLAGS="$addcflags $CFLAGS"
4446 else
4447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4448 $as_echo "(none)" >&6; }
4449 fi
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4452 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4453 if ${ac_cv_path_GREP+:} false; then :
4454   $as_echo_n "(cached) " >&6
4455 else
4456   if test -z "$GREP"; then
4457   ac_path_GREP_found=false
4458   # Loop through the user's path and test for each of PROGNAME-LIST
4459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464     for ac_prog in grep ggrep; do
4465     for ac_exec_ext in '' $ac_executable_extensions; do
4466       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4467       as_fn_executable_p "$ac_path_GREP" || continue
4468 # Check for GNU ac_path_GREP and select it if it is found.
4469   # Check for GNU $ac_path_GREP
4470 case `"$ac_path_GREP" --version 2>&1` in
4471 *GNU*)
4472   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4473 *)
4474   ac_count=0
4475   $as_echo_n 0123456789 >"conftest.in"
4476   while :
4477   do
4478     cat "conftest.in" "conftest.in" >"conftest.tmp"
4479     mv "conftest.tmp" "conftest.in"
4480     cp "conftest.in" "conftest.nl"
4481     $as_echo 'GREP' >> "conftest.nl"
4482     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4483     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4484     as_fn_arith $ac_count + 1 && ac_count=$as_val
4485     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4486       # Best one so far, save it but keep looking for a better one
4487       ac_cv_path_GREP="$ac_path_GREP"
4488       ac_path_GREP_max=$ac_count
4489     fi
4490     # 10*(2^10) chars as input seems more than enough
4491     test $ac_count -gt 10 && break
4492   done
4493   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494 esac
4495
4496       $ac_path_GREP_found && break 3
4497     done
4498   done
4499   done
4500 IFS=$as_save_IFS
4501   if test -z "$ac_cv_path_GREP"; then
4502     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4503   fi
4504 else
4505   ac_cv_path_GREP=$GREP
4506 fi
4507
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4510 $as_echo "$ac_cv_path_GREP" >&6; }
4511  GREP="$ac_cv_path_GREP"
4512
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4515 $as_echo_n "checking for egrep... " >&6; }
4516 if ${ac_cv_path_EGREP+:} false; then :
4517   $as_echo_n "(cached) " >&6
4518 else
4519   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4520    then ac_cv_path_EGREP="$GREP -E"
4521    else
4522      if test -z "$EGREP"; then
4523   ac_path_EGREP_found=false
4524   # Loop through the user's path and test for each of PROGNAME-LIST
4525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530     for ac_prog in egrep; do
4531     for ac_exec_ext in '' $ac_executable_extensions; do
4532       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4533       as_fn_executable_p "$ac_path_EGREP" || continue
4534 # Check for GNU ac_path_EGREP and select it if it is found.
4535   # Check for GNU $ac_path_EGREP
4536 case `"$ac_path_EGREP" --version 2>&1` in
4537 *GNU*)
4538   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4539 *)
4540   ac_count=0
4541   $as_echo_n 0123456789 >"conftest.in"
4542   while :
4543   do
4544     cat "conftest.in" "conftest.in" >"conftest.tmp"
4545     mv "conftest.tmp" "conftest.in"
4546     cp "conftest.in" "conftest.nl"
4547     $as_echo 'EGREP' >> "conftest.nl"
4548     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4549     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4550     as_fn_arith $ac_count + 1 && ac_count=$as_val
4551     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4552       # Best one so far, save it but keep looking for a better one
4553       ac_cv_path_EGREP="$ac_path_EGREP"
4554       ac_path_EGREP_max=$ac_count
4555     fi
4556     # 10*(2^10) chars as input seems more than enough
4557     test $ac_count -gt 10 && break
4558   done
4559   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560 esac
4561
4562       $ac_path_EGREP_found && break 3
4563     done
4564   done
4565   done
4566 IFS=$as_save_IFS
4567   if test -z "$ac_cv_path_EGREP"; then
4568     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569   fi
4570 else
4571   ac_cv_path_EGREP=$EGREP
4572 fi
4573
4574    fi
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4577 $as_echo "$ac_cv_path_EGREP" >&6; }
4578  EGREP="$ac_cv_path_EGREP"
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4582 $as_echo_n "checking for ANSI C header files... " >&6; }
4583 if ${ac_cv_header_stdc+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588 #include <stdlib.h>
4589 #include <stdarg.h>
4590 #include <string.h>
4591 #include <float.h>
4592
4593 int
4594 main ()
4595 {
4596
4597   ;
4598   return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602   ac_cv_header_stdc=yes
4603 else
4604   ac_cv_header_stdc=no
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607
4608 if test $ac_cv_header_stdc = yes; then
4609   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h.  */
4612 #include <string.h>
4613
4614 _ACEOF
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616   $EGREP "memchr" >/dev/null 2>&1; then :
4617
4618 else
4619   ac_cv_header_stdc=no
4620 fi
4621 rm -f conftest*
4622
4623 fi
4624
4625 if test $ac_cv_header_stdc = yes; then
4626   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629 #include <stdlib.h>
4630
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633   $EGREP "free" >/dev/null 2>&1; then :
4634
4635 else
4636   ac_cv_header_stdc=no
4637 fi
4638 rm -f conftest*
4639
4640 fi
4641
4642 if test $ac_cv_header_stdc = yes; then
4643   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4644   if test "$cross_compiling" = yes; then :
4645   :
4646 else
4647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h.  */
4649 #include <ctype.h>
4650 #include <stdlib.h>
4651 #if ((' ' & 0x0FF) == 0x020)
4652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4654 #else
4655 # define ISLOWER(c) \
4656                    (('a' <= (c) && (c) <= 'i') \
4657                      || ('j' <= (c) && (c) <= 'r') \
4658                      || ('s' <= (c) && (c) <= 'z'))
4659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4660 #endif
4661
4662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4663 int
4664 main ()
4665 {
4666   int i;
4667   for (i = 0; i < 256; i++)
4668     if (XOR (islower (i), ISLOWER (i))
4669         || toupper (i) != TOUPPER (i))
4670       return 2;
4671   return 0;
4672 }
4673 _ACEOF
4674 if ac_fn_c_try_run "$LINENO"; then :
4675
4676 else
4677   ac_cv_header_stdc=no
4678 fi
4679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4680   conftest.$ac_objext conftest.beam conftest.$ac_ext
4681 fi
4682
4683 fi
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4686 $as_echo "$ac_cv_header_stdc" >&6; }
4687 if test $ac_cv_header_stdc = yes; then
4688
4689 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4690
4691 fi
4692
4693 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4694 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4695                   inttypes.h stdint.h unistd.h
4696 do :
4697   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4699 "
4700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4701   cat >>confdefs.h <<_ACEOF
4702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4703 _ACEOF
4704
4705 fi
4706
4707 done
4708
4709
4710
4711   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4712 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4713   MINIX=yes
4714 else
4715   MINIX=
4716 fi
4717
4718
4719   if test "$MINIX" = yes; then
4720
4721 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4722
4723
4724 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4725
4726
4727 $as_echo "#define _MINIX 1" >>confdefs.h
4728
4729   fi
4730
4731
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4733 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4734 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h.  */
4739
4740 #         define __EXTENSIONS__ 1
4741           $ac_includes_default
4742 int
4743 main ()
4744 {
4745
4746   ;
4747   return 0;
4748 }
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751   ac_cv_safe_to_define___extensions__=yes
4752 else
4753   ac_cv_safe_to_define___extensions__=no
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4758 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4759   test $ac_cv_safe_to_define___extensions__ = yes &&
4760     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4761
4762   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4763
4764   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4765
4766   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4767
4768   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4769
4770
4771 LIB_EXT=.a
4772 STATIC_LIB_EXT=.a
4773 PROFILED_LIB_EXT=.a
4774
4775 # Check whether --with-root-prefix was given.
4776 if test "${with_root_prefix+set}" = set; then :
4777   withval=$with_root_prefix; root_prefix=$withval
4778 else
4779   root_prefix=NONE
4780 fi
4781 # Check whether --enable-maintainer-mode was given.
4782 if test "${enable_maintainer_mode+set}" = set; then :
4783   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4784 then
4785         MAINTAINER_CMT=#
4786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4787 $as_echo "Disabling maintainer mode" >&6; }
4788 else
4789         MAINTAINER_CMT=
4790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4791 $as_echo "Enabling maintainer mode" >&6; }
4792 fi
4793
4794 else
4795   MAINTAINER_CMT=#
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4797 $as_echo "Disabling maintainer mode by default" >&6; }
4798
4799 fi
4800
4801
4802 # Check whether --enable-symlink-install was given.
4803 if test "${enable_symlink_install+set}" = set; then :
4804   enableval=$enable_symlink_install; if test "$enableval" = "no"
4805 then
4806         LINK_INSTALL_FLAGS=-f
4807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4808 $as_echo "Disabling symlinks for install" >&6; }
4809 else
4810         LINK_INSTALL_FLAGS=-sf
4811         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4812 $as_echo "Enabling symlinks for install" >&6; }
4813 fi
4814
4815 else
4816   LINK_INSTALL_FLAGS=-f
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4818 $as_echo "Disabling symlinks for install by default" >&6; }
4819
4820 fi
4821
4822
4823 relative_symlink_defined=
4824 # Check whether --enable-relative-symlinks was given.
4825 if test "${enable_relative_symlinks+set}" = set; then :
4826   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4827 then
4828         SYMLINK_RELATIVE=
4829         relative_symlink_defined=yes
4830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4831 $as_echo "Disabling relative symlinks for install" >&6; }
4832 else
4833         SYMLINK_RELATIVE=--relative
4834         relative_symlink_defined=yes
4835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4836 $as_echo "Enabling relative symlinks for install" >&6; }
4837 fi
4838 fi
4839
4840 # Check whether --enable-symlink-relative-symlinks was given.
4841 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4842   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4843 then
4844         SYMLINK_RELATIVE=yes
4845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4846 $as_echo "Disabling relative symlinks for install" >&6; }
4847 else
4848         SYMLINK_RELATIVE=--relative
4849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4850 $as_echo "Enabling relative symlinks for install" >&6; }
4851 fi
4852
4853 else
4854   if test -z "$relative_symlink_defined"
4855 then
4856         SYMLINK_RELATIVE=
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4858 $as_echo "Disabling relative symlinks for install by default" >&6; }
4859 fi
4860
4861 fi
4862
4863
4864 # Check whether --enable-symlink-build was given.
4865 if test "${enable_symlink_build+set}" = set; then :
4866   enableval=$enable_symlink_build; if test "$enableval" = "no"
4867 then
4868         LINK_BUILD_FLAGS=
4869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4870 $as_echo "Disabling symlinks for build" >&6; }
4871 else
4872         LINK_BUILD_FLAGS=-s
4873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4874 $as_echo "Enabling symlinks for build" >&6; }
4875 fi
4876
4877 else
4878   LINK_BUILD_FLAGS=
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4880 $as_echo "Disabling symlinks for build by default" >&6; }
4881
4882 fi
4883
4884
4885 # Check whether --enable-verbose-makecmds was given.
4886 if test "${enable_verbose_makecmds+set}" = set; then :
4887   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4888 then
4889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4890 $as_echo "Disabling verbose make commands" >&6; }
4891         E=@echo
4892         ES=echo
4893         Q=@
4894 else
4895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4896 $as_echo "Enabling verbose make commands" >&6; }
4897         E=@\\#
4898         ES=\\#
4899         Q=
4900 fi
4901
4902 else
4903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4904 $as_echo "Disabling verbose make commands" >&6; }
4905 E=@echo
4906 ES=echo
4907 Q=@
4908
4909 fi
4910
4911
4912
4913
4914 E2_PKG_CONFIG_STATIC=--static
4915 LDFLAG_DYNAMIC=
4916 PRIVATE_LIBS_CMT=
4917 # Check whether --enable-elf-shlibs was given.
4918 if test "${enable_elf_shlibs+set}" = set; then :
4919   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4920 then
4921         ELF_CMT=#
4922         MAKEFILE_ELF=/dev/null
4923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4924 $as_echo "Disabling ELF shared libraries" >&6; }
4925 else
4926         E2_PKG_CONFIG_STATIC=
4927         ELF_CMT=
4928         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4929         case "$host_os" in
4930         solaris2.*)
4931                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4932         ;;
4933         esac
4934         BINARY_TYPE=elfbin
4935         LIB_EXT=.so
4936         PRIVATE_LIBS_CMT=#
4937         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4938         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4939 $as_echo "Enabling ELF shared libraries" >&6; }
4940 fi
4941
4942 else
4943   MAKEFILE_ELF=/dev/null
4944 ELF_CMT=#
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4946 $as_echo "Disabling ELF shared libraries by default" >&6; }
4947
4948 fi
4949
4950
4951
4952 # Check whether --enable-bsd-shlibs was given.
4953 if test "${enable_bsd_shlibs+set}" = set; then :
4954   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4955 then
4956         BSDLIB_CMT=#
4957         MAKEFILE_BSDLIB=/dev/null
4958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4959 $as_echo "Disabling BSD shared libraries" >&6; }
4960 else
4961         E2_PKG_CONFIG_STATIC=
4962         BSDLIB_CMT=
4963         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4964         LIB_EXT=.so
4965         case "$host_os" in
4966         darwin*)
4967                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4968                 LIB_EXT=.dylib
4969         ;;
4970         esac
4971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4972 $as_echo "Enabling BSD shared libraries" >&6; }
4973 fi
4974
4975 else
4976   MAKEFILE_BSDLIB=/dev/null
4977 BSDLIB_CMT=#
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4979 $as_echo "Disabling BSD shared libraries by default" >&6; }
4980
4981 fi
4982
4983
4984
4985 # Check whether --enable-profile was given.
4986 if test "${enable_profile+set}" = set; then :
4987   enableval=$enable_profile; if test "$enableval" = "no"
4988 then
4989         PROFILE_CMT=#
4990         MAKEFILE_PROFILE=/dev/null
4991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4992 $as_echo "Disabling profiling libraries" >&6; }
4993 else
4994         PROFILE_CMT=
4995         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4996         PROFILED_LIB_EXT=_p.a
4997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4998 $as_echo "Building profiling libraries" >&6; }
4999 fi
5000
5001 else
5002   PROFILE_CMT=#
5003 MAKEFILE_PROFILE=/dev/null
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5005 $as_echo "Disabling profiling libraries by default" >&6; }
5006
5007 fi
5008
5009
5010
5011 # Check whether --enable-gcov was given.
5012 if test "${enable_gcov+set}" = set; then :
5013   enableval=$enable_gcov; if test "$enableval" = "yes"
5014 then
5015         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5016         LDFLAGS="-fprofile-arcs -ftest-coverage"
5017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5018 $as_echo "Enabling gcov support" >&6; }
5019 fi
5020
5021 fi
5022
5023 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5024 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5025 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5026 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5027 # Check whether --enable-hardening was given.
5028 if test "${enable_hardening+set}" = set; then :
5029   enableval=$enable_hardening; if test "$enableval" = "yes"
5030 then
5031         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5032         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5033         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5034         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5035         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5036         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5037         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5038         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5040 $as_echo "Enabling hardening support" >&6; }
5041 fi
5042
5043 fi
5044
5045
5046
5047
5048
5049
5050 # Check whether --enable-jbd-debug was given.
5051 if test "${enable_jbd_debug+set}" = set; then :
5052   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5053 then
5054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5055 $as_echo "Disabling journal debugging" >&6; }
5056 else
5057
5058 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5059
5060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5061 $as_echo "Enabling journal debugging" >&6; }
5062 fi
5063
5064 else
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5066 $as_echo "Disabling journal debugging by default" >&6; }
5067
5068 fi
5069
5070 # Check whether --enable-blkid-debug was given.
5071 if test "${enable_blkid_debug+set}" = set; then :
5072   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5073 then
5074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5075 $as_echo "Disabling blkid debugging" >&6; }
5076 else
5077
5078 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5079
5080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5081 $as_echo "Enabling blkid debugging" >&6; }
5082 fi
5083
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5086 $as_echo "Disabling blkid debugging by default" >&6; }
5087
5088 fi
5089
5090 # Check whether --enable-testio-debug was given.
5091 if test "${enable_testio_debug+set}" = set; then :
5092   enableval=$enable_testio_debug;
5093 if test "$enableval" = "no"
5094 then
5095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5096 $as_echo "Disabling testio debugging" >&6; }
5097         TEST_IO_CMT="#"
5098 else
5099         TEST_IO_CMT=
5100         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5101
5102         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5103 $as_echo "Enabling testio debugging" >&6; }
5104 fi
5105
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5108 $as_echo "Enabling testio debugging by default" >&6; }
5109 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5110
5111 TEST_IO_CMT=
5112
5113 fi
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5124         if test -n "$ac_tool_prefix"; then
5125   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5130   $as_echo_n "(cached) " >&6
5131 else
5132   case $PKG_CONFIG in
5133   [\\/]* | ?:[\\/]*)
5134   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5135   ;;
5136   *)
5137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142     for ac_exec_ext in '' $ac_executable_extensions; do
5143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149   done
5150 IFS=$as_save_IFS
5151
5152   ;;
5153 esac
5154 fi
5155 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5156 if test -n "$PKG_CONFIG"; then
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5158 $as_echo "$PKG_CONFIG" >&6; }
5159 else
5160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5162 fi
5163
5164
5165 fi
5166 if test -z "$ac_cv_path_PKG_CONFIG"; then
5167   ac_pt_PKG_CONFIG=$PKG_CONFIG
5168   # Extract the first word of "pkg-config", so it can be a program name with args.
5169 set dummy pkg-config; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   case $ac_pt_PKG_CONFIG in
5176   [\\/]* | ?:[\\/]*)
5177   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5178   ;;
5179   *)
5180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185     for ac_exec_ext in '' $ac_executable_extensions; do
5186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192   done
5193 IFS=$as_save_IFS
5194
5195   ;;
5196 esac
5197 fi
5198 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5199 if test -n "$ac_pt_PKG_CONFIG"; then
5200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5201 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5202 else
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206
5207   if test "x$ac_pt_PKG_CONFIG" = x; then
5208     PKG_CONFIG=""
5209   else
5210     case $cross_compiling:$ac_tool_warned in
5211 yes:)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned=yes ;;
5215 esac
5216     PKG_CONFIG=$ac_pt_PKG_CONFIG
5217   fi
5218 else
5219   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5220 fi
5221
5222 fi
5223 if test -n "$PKG_CONFIG"; then
5224         _pkg_min_version=0.9.0
5225         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5226 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5227         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5228                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5230         else
5231                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233                 PKG_CONFIG=""
5234         fi
5235 fi
5236 LIBUUID=
5237 DEPLIBUUID=
5238 STATIC_LIBUUID=
5239 DEPSTATIC_LIBUUID=
5240 PROFILED_LIBUUID=
5241 DEPPROFILED_LIBUUID=
5242 UUID_CMT=
5243 # Check whether --enable-libuuid was given.
5244 if test "${enable_libuuid+set}" = set; then :
5245   enableval=$enable_libuuid; if test "$enableval" = "no"
5246 then
5247         if test -z "$PKG_CONFIG"; then
5248                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5249         fi
5250
5251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5252 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5253 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   ac_check_lib_save_LIBS=$LIBS
5257 LIBS="-luuid  $LIBS"
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h.  */
5260
5261 /* Override any GCC internal prototype to avoid an error.
5262    Use char because int might match the return type of a GCC
5263    builtin and then its argument prototype would still apply.  */
5264 #ifdef __cplusplus
5265 extern "C"
5266 #endif
5267 char uuid_generate ();
5268 int
5269 main ()
5270 {
5271 return uuid_generate ();
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 if ac_fn_c_try_link "$LINENO"; then :
5277   ac_cv_lib_uuid_uuid_generate=yes
5278 else
5279   ac_cv_lib_uuid_uuid_generate=no
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext \
5282     conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5286 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5287 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5288   LIBUUID=`$PKG_CONFIG --libs uuid`;
5289                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5290 else
5291   as_fn_error $? "external uuid library not found" "$LINENO" 5
5292 fi
5293
5294         PROFILED_LIBUUID=$LIBUUID
5295         UUID_CMT=#
5296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5297 $as_echo "Disabling private uuid library" >&6; }
5298 else
5299         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5300         DEPLIBUUID=$LIBUUID
5301         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5302         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5303         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5304         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5306 $as_echo "Enabling private uuid library" >&6; }
5307 fi
5308
5309 else
5310   if test -n "$PKG_CONFIG"; then
5311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5312 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5313 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   ac_check_lib_save_LIBS=$LIBS
5317 LIBS="-luuid  $LIBS"
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h.  */
5320
5321 /* Override any GCC internal prototype to avoid an error.
5322    Use char because int might match the return type of a GCC
5323    builtin and then its argument prototype would still apply.  */
5324 #ifdef __cplusplus
5325 extern "C"
5326 #endif
5327 char uuid_generate ();
5328 int
5329 main ()
5330 {
5331 return uuid_generate ();
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 if ac_fn_c_try_link "$LINENO"; then :
5337   ac_cv_lib_uuid_uuid_generate=yes
5338 else
5339   ac_cv_lib_uuid_uuid_generate=no
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext \
5342     conftest$ac_exeext conftest.$ac_ext
5343 LIBS=$ac_check_lib_save_LIBS
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5346 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5347 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5348   LIBUUID=`$PKG_CONFIG --libs uuid`;
5349                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5350 fi
5351
5352 fi
5353 if test -n "$LIBUUID"; then
5354         PROFILED_LIBUUID=$LIBUUID
5355         UUID_CMT=#
5356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5357 $as_echo "Using system uuid by default" >&6; }
5358 else
5359         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5360         DEPLIBUUID=$LIBUUID
5361         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5362         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5363         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5364         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5366 $as_echo "Enabling private uuid library by default" >&6; }
5367 fi
5368
5369 fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5386         if test -n "$ac_tool_prefix"; then
5387   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5388 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5392   $as_echo_n "(cached) " >&6
5393 else
5394   case $PKG_CONFIG in
5395   [\\/]* | ?:[\\/]*)
5396   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5397   ;;
5398   *)
5399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402   IFS=$as_save_IFS
5403   test -z "$as_dir" && as_dir=.
5404     for ac_exec_ext in '' $ac_executable_extensions; do
5405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408     break 2
5409   fi
5410 done
5411   done
5412 IFS=$as_save_IFS
5413
5414   ;;
5415 esac
5416 fi
5417 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5418 if test -n "$PKG_CONFIG"; then
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5420 $as_echo "$PKG_CONFIG" >&6; }
5421 else
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 fi
5428 if test -z "$ac_cv_path_PKG_CONFIG"; then
5429   ac_pt_PKG_CONFIG=$PKG_CONFIG
5430   # Extract the first word of "pkg-config", so it can be a program name with args.
5431 set dummy pkg-config; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5435   $as_echo_n "(cached) " >&6
5436 else
5437   case $ac_pt_PKG_CONFIG in
5438   [\\/]* | ?:[\\/]*)
5439   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5440   ;;
5441   *)
5442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447     for ac_exec_ext in '' $ac_executable_extensions; do
5448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454   done
5455 IFS=$as_save_IFS
5456
5457   ;;
5458 esac
5459 fi
5460 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5461 if test -n "$ac_pt_PKG_CONFIG"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5463 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469   if test "x$ac_pt_PKG_CONFIG" = x; then
5470     PKG_CONFIG=""
5471   else
5472     case $cross_compiling:$ac_tool_warned in
5473 yes:)
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476 ac_tool_warned=yes ;;
5477 esac
5478     PKG_CONFIG=$ac_pt_PKG_CONFIG
5479   fi
5480 else
5481   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5482 fi
5483
5484 fi
5485 if test -n "$PKG_CONFIG"; then
5486         _pkg_min_version=0.9.0
5487         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5488 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5489         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5490                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491 $as_echo "yes" >&6; }
5492         else
5493                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495                 PKG_CONFIG=""
5496         fi
5497 fi
5498 LIBBLKID=
5499 DEPLIBBLKID=
5500 STATIC_LIBBLKID=
5501 DEPSTATIC_LIBBLKID=
5502 PROFILED_LIBBLKID=
5503 DEPPROFILED_LIBBLKID=
5504 BLKID_CMT=
5505
5506 # Check whether --enable-libblkid was given.
5507 if test "${enable_libblkid+set}" = set; then :
5508   enableval=$enable_libblkid; if test "$enableval" = "no"
5509 then
5510         if test -z "$PKG_CONFIG"; then
5511                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5512         fi
5513
5514         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5515 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5516 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   ac_check_lib_save_LIBS=$LIBS
5520 LIBS="-lblkid -luuid $LIBS"
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h.  */
5523
5524 /* Override any GCC internal prototype to avoid an error.
5525    Use char because int might match the return type of a GCC
5526    builtin and then its argument prototype would still apply.  */
5527 #ifdef __cplusplus
5528 extern "C"
5529 #endif
5530 char blkid_get_cache ();
5531 int
5532 main ()
5533 {
5534 return blkid_get_cache ();
5535   ;
5536   return 0;
5537 }
5538 _ACEOF
5539 if ac_fn_c_try_link "$LINENO"; then :
5540   ac_cv_lib_blkid_blkid_get_cache=yes
5541 else
5542   ac_cv_lib_blkid_blkid_get_cache=no
5543 fi
5544 rm -f core conftest.err conftest.$ac_objext \
5545     conftest$ac_exeext conftest.$ac_ext
5546 LIBS=$ac_check_lib_save_LIBS
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5549 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5550 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5551   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5552                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5553 else
5554   as_fn_error $? "external blkid library not found" "$LINENO" 5
5555 fi
5556
5557         BLKID_CMT=#
5558         PROFILED_LIBBLKID=$LIBBLKID
5559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5560 $as_echo "Disabling private blkid library" >&6; }
5561 else
5562         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5563         DEPLIBBLKID=$LIBBLKID
5564         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5565         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5566         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5567         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5568         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5569
5570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5571 $as_echo "Enabling private blkid library" >&6; }
5572 fi
5573
5574 else
5575   if test -n "$PKG_CONFIG"; then
5576         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5577 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5578 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   ac_check_lib_save_LIBS=$LIBS
5582 LIBS="-lblkid  $LIBS"
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h.  */
5585
5586 /* Override any GCC internal prototype to avoid an error.
5587    Use char because int might match the return type of a GCC
5588    builtin and then its argument prototype would still apply.  */
5589 #ifdef __cplusplus
5590 extern "C"
5591 #endif
5592 char blkid_get_cache ();
5593 int
5594 main ()
5595 {
5596 return blkid_get_cache ();
5597   ;
5598   return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_link "$LINENO"; then :
5602   ac_cv_lib_blkid_blkid_get_cache=yes
5603 else
5604   ac_cv_lib_blkid_blkid_get_cache=no
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext \
5607     conftest$ac_exeext conftest.$ac_ext
5608 LIBS=$ac_check_lib_save_LIBS
5609 fi
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5611 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5612 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5613   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5614                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5615 fi
5616
5617 fi
5618 if test -n "$LIBBLKID"; then
5619         BLKID_CMT=#
5620         PROFILED_LIBBLKID=$LIBBLKID
5621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5622 $as_echo "Using system blkid library by default" >&6; }
5623 else
5624         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5625         DEPLIBBLKID=$LIBBLKID
5626         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5627         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5628         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5629         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5630         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5631
5632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5633 $as_echo "Enabling private blkid library by default" >&6; }
5634 fi
5635
5636 fi
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 # Check whether --enable-backtrace was given.
5647 if test "${enable_backtrace+set}" = set; then :
5648   enableval=$enable_backtrace; if test "$enableval" = "no"
5649 then
5650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5651 $as_echo "Disabling use of backtrace" >&6; }
5652         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5653
5654 else
5655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5656 $as_echo "Enabling use of backtrace" >&6; }
5657 fi
5658
5659 else
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5661 $as_echo "Enabling use of backtrace by default" >&6; }
5662
5663 fi
5664
5665 # Check whether --enable-debugfs was given.
5666 if test "${enable_debugfs+set}" = set; then :
5667   enableval=$enable_debugfs; if test "$enableval" = "no"
5668 then
5669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5670 $as_echo "Disabling debugfs support" >&6; }
5671         DEBUGFS_CMT="#"
5672 else
5673         DEBUGFS_CMT=
5674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5675 $as_echo "Enabling debugfs support" >&6; }
5676 fi
5677
5678 else
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5680 $as_echo "Enabling debugfs support by default" >&6; }
5681 DEBUGFS_CMT=
5682
5683 fi
5684
5685
5686 # Check whether --enable-imager was given.
5687 if test "${enable_imager+set}" = set; then :
5688   enableval=$enable_imager; if test "$enableval" = "no"
5689 then
5690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5691 $as_echo "Disabling e2image support" >&6; }
5692         IMAGER_CMT="#"
5693 else
5694         IMAGER_CMT=
5695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5696 $as_echo "Enabling e2image support" >&6; }
5697 fi
5698
5699 else
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5701 $as_echo "Enabling e2image support by default" >&6; }
5702 IMAGER_CMT=
5703
5704 fi
5705
5706
5707 # Check whether --enable-resizer was given.
5708 if test "${enable_resizer+set}" = set; then :
5709   enableval=$enable_resizer; if test "$enableval" = "no"
5710 then
5711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5712 $as_echo "Disabling e2resize support" >&6; }
5713         RESIZER_CMT="#"
5714 else
5715         RESIZER_CMT=
5716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5717 $as_echo "Enabling e2resize support" >&6; }
5718 fi
5719
5720 else
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5722 $as_echo "Enabling e2resize support by default" >&6; }
5723 RESIZER_CMT=
5724
5725 fi
5726
5727
5728 # Check whether --enable-defrag was given.
5729 if test "${enable_defrag+set}" = set; then :
5730   enableval=$enable_defrag; if test "$enableval" = "no"
5731 then
5732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5733 $as_echo "Disabling e4defrag support" >&6; }
5734         DEFRAG_CMT="#"
5735 else
5736         DEFRAG_CMT=
5737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5738 $as_echo "Enabling e4defrag support" >&6; }
5739 fi
5740
5741 else
5742   if test -z "$WITH_DIET_LIBC"
5743 then
5744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5745 $as_echo "Enabling e4defrag support by default" >&6; }
5746         DEFRAG_CMT=
5747 else
5748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5749 $as_echo "Disabling e4defrag support by default" >&6; }
5750         DEFRAG_CMT="#"
5751 fi
5752
5753 fi
5754
5755
5756 # Check whether --enable-fsck was given.
5757 if test "${enable_fsck+set}" = set; then :
5758   enableval=$enable_fsck; if test "$enableval" = "no"
5759 then
5760         FSCK_PROG='' FSCK_MAN=''
5761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5762 $as_echo "Not building fsck wrapper" >&6; }
5763 else
5764         FSCK_PROG=fsck FSCK_MAN=fsck.8
5765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5766 $as_echo "Building fsck wrapper" >&6; }
5767 fi
5768
5769 else
5770   case "$host_os" in
5771   gnu*)
5772     FSCK_PROG='' FSCK_MAN=''
5773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5774 $as_echo "Not building fsck wrapper by default" >&6; }
5775     ;;
5776   *)
5777     FSCK_PROG=fsck FSCK_MAN=fsck.8
5778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5779 $as_echo "Building fsck wrapper by default" >&6; }
5780 esac
5781
5782 fi
5783
5784
5785
5786 # Check whether --enable-e2initrd-helper was given.
5787 if test "${enable_e2initrd_helper+set}" = set; then :
5788   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5789 then
5790         E2INITRD_PROG='' E2INITRD_MAN=''
5791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5792 $as_echo "Not building e2initrd helper" >&6; }
5793 else
5794         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5796 $as_echo "Building e2initrd helper" >&6; }
5797 fi
5798
5799 else
5800   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5802 $as_echo "Building e2initrd helper by default" >&6; }
5803
5804 fi
5805
5806
5807
5808 # Check whether --enable-tls was given.
5809 if test "${enable_tls+set}" = set; then :
5810   enableval=$enable_tls; if test "$enableval" = "no"
5811 then
5812         try_tls=""
5813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5814 $as_echo "Disabling thread local support" >&6; }
5815 else
5816         try_tls="yes"
5817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5818 $as_echo "Enabling thread local support" >&6; }
5819 fi
5820
5821 else
5822   if test -n "$WITH_DIET_LIBC"
5823 then
5824         try_tls=""
5825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5826 $as_echo "Diet libc does not support thread local support" >&6; }
5827 else
5828         try_tls="yes"
5829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5830 $as_echo "Try using thread local support by default" >&6; }
5831 fi
5832
5833 fi
5834
5835 if test "$try_tls" = "yes"
5836 then
5837
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5839 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5840   if ${ac_cv_tls+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843
5844     ax_tls_keywords="__thread __declspec(thread) none"
5845     for ax_tls_keyword in $ax_tls_keywords; do
5846        case $ax_tls_keyword in
5847           none) ac_cv_tls=none ; break ;;
5848           *)
5849              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h.  */
5851 #include <stdlib.h>
5852                  static void
5853                  foo(void) {
5854                  static  $ax_tls_keyword  int bar;
5855                  exit(1);
5856                  }
5857 int
5858 main ()
5859 {
5860
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 if ac_fn_c_try_compile "$LINENO"; then :
5866   ac_cv_tls=$ax_tls_keyword ; break
5867 else
5868   ac_cv_tls=none
5869
5870 fi
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872           esac
5873     done
5874
5875 fi
5876
5877
5878   if test "$ac_cv_tls" != "none"; then
5879
5880 cat >>confdefs.h <<_ACEOF
5881 #define TLS $ac_cv_tls
5882 _ACEOF
5883
5884   fi
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5886 $as_echo "$ac_cv_tls" >&6; }
5887
5888 fi
5889
5890 # Check whether --enable-uuidd was given.
5891 if test "${enable_uuidd+set}" = set; then :
5892   enableval=$enable_uuidd; if test "$enableval" = "no"
5893 then
5894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5895 $as_echo "Not building uuidd" >&6; }
5896         UUIDD_CMT="#"
5897 else
5898         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5899
5900         UUIDD_CMT=""
5901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5902 $as_echo "Building uuidd" >&6; }
5903 fi
5904
5905 else
5906   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5907
5908 if test -z "$UUID_CMT"
5909 then
5910         UUIDD_CMT=""
5911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5912 $as_echo "Building uuidd by default" >&6; }
5913 else
5914         UUIDD_CMT="#"
5915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5916 $as_echo "Disabling uuidd by default" >&6; }
5917 fi
5918
5919 fi
5920
5921
5922
5923 # Check whether --enable-mmp was given.
5924 if test "${enable_mmp+set}" = set; then :
5925   enableval=$enable_mmp; if test "$enableval" = "no"
5926 then
5927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5928 $as_echo "Disabling mmp support" >&6; }
5929 else
5930         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5931 $as_echo "Enabling mmp support" >&6; }
5932         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5933
5934 fi
5935
5936 else
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5938 $as_echo "Enabling mmp support by default" >&6; }
5939 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5940
5941
5942 fi
5943
5944
5945 # Check whether --enable-tdb was given.
5946 if test "${enable_tdb+set}" = set; then :
5947   enableval=$enable_tdb; if test "$enableval" = "no"
5948 then
5949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5950 $as_echo "Disabling tdb support" >&6; }
5951         TDB_CMT="#"
5952         TDB_MAN_COMMENT='.\"'
5953 else
5954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5955 $as_echo "Enabling tdb support" >&6; }
5956         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5957
5958         TDB_CMT=""
5959         TDB_MAN_COMMENT=""
5960 fi
5961
5962 else
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5964 $as_echo "Enabling mmp support by default" >&6; }
5965 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5966
5967 TDB_CMT=""
5968 TDB_MAN_COMMENT=""
5969
5970 fi
5971
5972
5973
5974
5975 # Check whether --enable-bmap-stats was given.
5976 if test "${enable_bmap_stats+set}" = set; then :
5977   enableval=$enable_bmap_stats; if test "$enableval" = "no"
5978 then
5979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5980 $as_echo "Disabling bitmap statistics support" >&6; }
5981 else
5982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5983 $as_echo "Enabling bitmap statistics support" >&6; }
5984         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5985
5986 fi
5987
5988 else
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5990 $as_echo "Enabling bitmap statistics support by default" >&6; }
5991 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5992
5993
5994 fi
5995
5996
5997 # Check whether --enable-bmap-stats-ops was given.
5998 if test "${enable_bmap_stats_ops+set}" = set; then :
5999   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6000 then
6001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6002 $as_echo "Disabling additional bitmap statistics" >&6; }
6003 else
6004                 if test "x${enable_bmap_stats}" = "xno"; then :
6005   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6007 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6008 See \`config.log' for more details" "$LINENO" 5; }
6009 fi
6010
6011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6012 $as_echo "Enabling additional bitmap statistics" >&6; }
6013         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6014
6015 fi
6016
6017 else
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6019 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6020
6021 fi
6022
6023 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6024
6025 GETTEXT_PACKAGE=e2fsprogs
6026 PACKAGE=e2fsprogs
6027 VERSION="$E2FSPROGS_VERSION"
6028 VERSION=0.14.1
6029
6030 cat >>confdefs.h <<_ACEOF
6031 #define PACKAGE "$PACKAGE"
6032 _ACEOF
6033
6034
6035 cat >>confdefs.h <<_ACEOF
6036 #define VERSION "$VERSION"
6037 _ACEOF
6038
6039
6040
6041
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6044 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6045 set x ${MAKE-make}
6046 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6047 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6048   $as_echo_n "(cached) " >&6
6049 else
6050   cat >conftest.make <<\_ACEOF
6051 SHELL = /bin/sh
6052 all:
6053         @echo '@@@%%%=$(MAKE)=@@@%%%'
6054 _ACEOF
6055 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6057   *@@@%%%=?*=@@@%%%*)
6058     eval ac_cv_prog_make_${ac_make}_set=yes;;
6059   *)
6060     eval ac_cv_prog_make_${ac_make}_set=no;;
6061 esac
6062 rm -f conftest.make
6063 fi
6064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6066 $as_echo "yes" >&6; }
6067   SET_MAKE=
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071   SET_MAKE="MAKE=${MAKE-make}"
6072 fi
6073
6074 # Find a good install program.  We prefer a C program (faster),
6075 # so one script is as good as another.  But avoid the broken or
6076 # incompatible versions:
6077 # SysV /etc/install, /usr/sbin/install
6078 # SunOS /usr/etc/install
6079 # IRIX /sbin/install
6080 # AIX /bin/install
6081 # AmigaOS /C/install, which installs bootblocks on floppy discs
6082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6085 # OS/2's system install, which has a completely different semantic
6086 # ./install, which can be erroneously created by make from ./install.sh.
6087 # Reject install programs that cannot install multiple files.
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6089 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6090 if test -z "$INSTALL"; then
6091 if ${ac_cv_path_install+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097   IFS=$as_save_IFS
6098   test -z "$as_dir" && as_dir=.
6099     # Account for people who put trailing slashes in PATH elements.
6100 case $as_dir/ in #((
6101   ./ | .// | /[cC]/* | \
6102   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6103   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6104   /usr/ucb/* ) ;;
6105   *)
6106     # OSF1 and SCO ODT 3.0 have their own names for install.
6107     # Don't use installbsd from OSF since it installs stuff as root
6108     # by default.
6109     for ac_prog in ginstall scoinst install; do
6110       for ac_exec_ext in '' $ac_executable_extensions; do
6111         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6112           if test $ac_prog = install &&
6113             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6114             # AIX install.  It has an incompatible calling convention.
6115             :
6116           elif test $ac_prog = install &&
6117             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6118             # program-specific install script used by HP pwplus--don't use.
6119             :
6120           else
6121             rm -rf conftest.one conftest.two conftest.dir
6122             echo one > conftest.one
6123             echo two > conftest.two
6124             mkdir conftest.dir
6125             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6126               test -s conftest.one && test -s conftest.two &&
6127               test -s conftest.dir/conftest.one &&
6128               test -s conftest.dir/conftest.two
6129             then
6130               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6131               break 3
6132             fi
6133           fi
6134         fi
6135       done
6136     done
6137     ;;
6138 esac
6139
6140   done
6141 IFS=$as_save_IFS
6142
6143 rm -rf conftest.one conftest.two conftest.dir
6144
6145 fi
6146   if test "${ac_cv_path_install+set}" = set; then
6147     INSTALL=$ac_cv_path_install
6148   else
6149     # As a last resort, use the slow shell script.  Don't cache a
6150     # value for INSTALL within a source directory, because that will
6151     # break other packages using the cache if that directory is
6152     # removed, or if the value is a relative name.
6153     INSTALL=$ac_install_sh
6154   fi
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6157 $as_echo "$INSTALL" >&6; }
6158
6159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6160 # It thinks the first close brace ends the variable substitution.
6161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6162
6163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6164
6165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6168 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6169 if test -z "$MKDIR_P"; then
6170   if ${ac_cv_path_mkdir+:} false; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6175 do
6176   IFS=$as_save_IFS
6177   test -z "$as_dir" && as_dir=.
6178     for ac_prog in mkdir gmkdir; do
6179          for ac_exec_ext in '' $ac_executable_extensions; do
6180            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6181            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6182              'mkdir (GNU coreutils) '* | \
6183              'mkdir (coreutils) '* | \
6184              'mkdir (fileutils) '4.1*)
6185                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6186                break 3;;
6187            esac
6188          done
6189        done
6190   done
6191 IFS=$as_save_IFS
6192
6193 fi
6194
6195   test -d ./--version && rmdir ./--version
6196   if test "${ac_cv_path_mkdir+set}" = set; then
6197     MKDIR_P="$ac_cv_path_mkdir -p"
6198   else
6199     # As a last resort, use the slow shell script.  Don't cache a
6200     # value for MKDIR_P within a source directory, because that will
6201     # break other packages using the cache if that directory is
6202     # removed, or if the value is a relative name.
6203     MKDIR_P="$ac_install_sh -d"
6204   fi
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6207 $as_echo "$MKDIR_P" >&6; }
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6210 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6211 if ${ac_cv_path_SED+:} false; then :
6212   $as_echo_n "(cached) " >&6
6213 else
6214             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6215      for ac_i in 1 2 3 4 5 6 7; do
6216        ac_script="$ac_script$as_nl$ac_script"
6217      done
6218      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6219      { ac_script=; unset ac_script;}
6220      if test -z "$SED"; then
6221   ac_path_SED_found=false
6222   # Loop through the user's path and test for each of PROGNAME-LIST
6223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228     for ac_prog in sed gsed; do
6229     for ac_exec_ext in '' $ac_executable_extensions; do
6230       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6231       as_fn_executable_p "$ac_path_SED" || continue
6232 # Check for GNU ac_path_SED and select it if it is found.
6233   # Check for GNU $ac_path_SED
6234 case `"$ac_path_SED" --version 2>&1` in
6235 *GNU*)
6236   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6237 *)
6238   ac_count=0
6239   $as_echo_n 0123456789 >"conftest.in"
6240   while :
6241   do
6242     cat "conftest.in" "conftest.in" >"conftest.tmp"
6243     mv "conftest.tmp" "conftest.in"
6244     cp "conftest.in" "conftest.nl"
6245     $as_echo '' >> "conftest.nl"
6246     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6247     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6248     as_fn_arith $ac_count + 1 && ac_count=$as_val
6249     if test $ac_count -gt ${ac_path_SED_max-0}; then
6250       # Best one so far, save it but keep looking for a better one
6251       ac_cv_path_SED="$ac_path_SED"
6252       ac_path_SED_max=$ac_count
6253     fi
6254     # 10*(2^10) chars as input seems more than enough
6255     test $ac_count -gt 10 && break
6256   done
6257   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6258 esac
6259
6260       $ac_path_SED_found && break 3
6261     done
6262   done
6263   done
6264 IFS=$as_save_IFS
6265   if test -z "$ac_cv_path_SED"; then
6266     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6267   fi
6268 else
6269   ac_cv_path_SED=$SED
6270 fi
6271
6272 fi
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6274 $as_echo "$ac_cv_path_SED" >&6; }
6275  SED="$ac_cv_path_SED"
6276   rm -f conftest.sed
6277
6278
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6280 $as_echo_n "checking whether NLS is requested... " >&6; }
6281     # Check whether --enable-nls was given.
6282 if test "${enable_nls+set}" = set; then :
6283   enableval=$enable_nls; USE_NLS=$enableval
6284 else
6285   USE_NLS=yes
6286 fi
6287
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6289 $as_echo "$USE_NLS" >&6; }
6290
6291
6292
6293
6294       GETTEXT_MACRO_VERSION=0.18
6295
6296
6297
6298
6299 # Prepare PATH_SEPARATOR.
6300 # The user is always right.
6301 if test "${PATH_SEPARATOR+set}" != set; then
6302   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6303   # contains only /bin. Note that ksh looks also at the FPATH variable,
6304   # so we have to set that as well for the test.
6305   PATH_SEPARATOR=:
6306   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6307     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6308            || PATH_SEPARATOR=';'
6309        }
6310 fi
6311
6312 # Find out how to test for executable files. Don't use a zero-byte file,
6313 # as systems may use methods other than mode bits to determine executability.
6314 cat >conf$$.file <<_ASEOF
6315 #! /bin/sh
6316 exit 0
6317 _ASEOF
6318 chmod +x conf$$.file
6319 if test -x conf$$.file >/dev/null 2>&1; then
6320   ac_executable_p="test -x"
6321 else
6322   ac_executable_p="test -f"
6323 fi
6324 rm -f conf$$.file
6325
6326 # Extract the first word of "msgfmt", so it can be a program name with args.
6327 set dummy msgfmt; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_path_MSGFMT+:} false; then :
6331   $as_echo_n "(cached) " >&6
6332 else
6333   case "$MSGFMT" in
6334   [\\/]* | ?:[\\/]*)
6335     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6336     ;;
6337   *)
6338     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6339     for ac_dir in $PATH; do
6340       IFS="$ac_save_IFS"
6341       test -z "$ac_dir" && ac_dir=.
6342       for ac_exec_ext in '' $ac_executable_extensions; do
6343         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6344           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6345           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6346      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6347             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6348             break 2
6349           fi
6350         fi
6351       done
6352     done
6353     IFS="$ac_save_IFS"
6354   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6355     ;;
6356 esac
6357 fi
6358 MSGFMT="$ac_cv_path_MSGFMT"
6359 if test "$MSGFMT" != ":"; then
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6361 $as_echo "$MSGFMT" >&6; }
6362 else
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6365 fi
6366
6367   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6368 set dummy gmsgfmt; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_path_GMSGFMT+:} false; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   case $GMSGFMT in
6375   [\\/]* | ?:[\\/]*)
6376   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6377   ;;
6378   *)
6379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384     for ac_exec_ext in '' $ac_executable_extensions; do
6385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391   done
6392 IFS=$as_save_IFS
6393
6394   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6395   ;;
6396 esac
6397 fi
6398 GMSGFMT=$ac_cv_path_GMSGFMT
6399 if test -n "$GMSGFMT"; then
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6401 $as_echo "$GMSGFMT" >&6; }
6402 else
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406
6407
6408
6409     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6410     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6411     *) MSGFMT_015=$MSGFMT ;;
6412   esac
6413
6414   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6415     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6416     *) GMSGFMT_015=$GMSGFMT ;;
6417   esac
6418
6419
6420
6421 # Prepare PATH_SEPARATOR.
6422 # The user is always right.
6423 if test "${PATH_SEPARATOR+set}" != set; then
6424   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6425   # contains only /bin. Note that ksh looks also at the FPATH variable,
6426   # so we have to set that as well for the test.
6427   PATH_SEPARATOR=:
6428   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6429     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6430            || PATH_SEPARATOR=';'
6431        }
6432 fi
6433
6434 # Find out how to test for executable files. Don't use a zero-byte file,
6435 # as systems may use methods other than mode bits to determine executability.
6436 cat >conf$$.file <<_ASEOF
6437 #! /bin/sh
6438 exit 0
6439 _ASEOF
6440 chmod +x conf$$.file
6441 if test -x conf$$.file >/dev/null 2>&1; then
6442   ac_executable_p="test -x"
6443 else
6444   ac_executable_p="test -f"
6445 fi
6446 rm -f conf$$.file
6447
6448 # Extract the first word of "xgettext", so it can be a program name with args.
6449 set dummy xgettext; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_path_XGETTEXT+:} false; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   case "$XGETTEXT" in
6456   [\\/]* | ?:[\\/]*)
6457     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6458     ;;
6459   *)
6460     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6461     for ac_dir in $PATH; do
6462       IFS="$ac_save_IFS"
6463       test -z "$ac_dir" && ac_dir=.
6464       for ac_exec_ext in '' $ac_executable_extensions; do
6465         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6466           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6467           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6468      (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
6469             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6470             break 2
6471           fi
6472         fi
6473       done
6474     done
6475     IFS="$ac_save_IFS"
6476   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6477     ;;
6478 esac
6479 fi
6480 XGETTEXT="$ac_cv_path_XGETTEXT"
6481 if test "$XGETTEXT" != ":"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6483 $as_echo "$XGETTEXT" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489     rm -f messages.po
6490
6491     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6492     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6493     *) XGETTEXT_015=$XGETTEXT ;;
6494   esac
6495
6496
6497
6498 # Prepare PATH_SEPARATOR.
6499 # The user is always right.
6500 if test "${PATH_SEPARATOR+set}" != set; then
6501   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6502   # contains only /bin. Note that ksh looks also at the FPATH variable,
6503   # so we have to set that as well for the test.
6504   PATH_SEPARATOR=:
6505   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6506     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6507            || PATH_SEPARATOR=';'
6508        }
6509 fi
6510
6511 # Find out how to test for executable files. Don't use a zero-byte file,
6512 # as systems may use methods other than mode bits to determine executability.
6513 cat >conf$$.file <<_ASEOF
6514 #! /bin/sh
6515 exit 0
6516 _ASEOF
6517 chmod +x conf$$.file
6518 if test -x conf$$.file >/dev/null 2>&1; then
6519   ac_executable_p="test -x"
6520 else
6521   ac_executable_p="test -f"
6522 fi
6523 rm -f conf$$.file
6524
6525 # Extract the first word of "msgmerge", so it can be a program name with args.
6526 set dummy msgmerge; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_path_MSGMERGE+:} false; then :
6530   $as_echo_n "(cached) " >&6
6531 else
6532   case "$MSGMERGE" in
6533   [\\/]* | ?:[\\/]*)
6534     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6535     ;;
6536   *)
6537     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6538     for ac_dir in $PATH; do
6539       IFS="$ac_save_IFS"
6540       test -z "$ac_dir" && ac_dir=.
6541       for ac_exec_ext in '' $ac_executable_extensions; do
6542         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6543           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6544           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6545             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6546             break 2
6547           fi
6548         fi
6549       done
6550     done
6551     IFS="$ac_save_IFS"
6552   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6553     ;;
6554 esac
6555 fi
6556 MSGMERGE="$ac_cv_path_MSGMERGE"
6557 if test "$MSGMERGE" != ":"; then
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6559 $as_echo "$MSGMERGE" >&6; }
6560 else
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6563 fi
6564
6565
6566         test -n "$localedir" || localedir='${datadir}/locale'
6567
6568
6569     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6570
6571
6572   ac_config_commands="$ac_config_commands po-directories"
6573
6574
6575
6576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6577 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6578 if ${ac_cv_gnu_library_2+:} false; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h.  */
6583
6584 #include <features.h>
6585 #ifdef __GNU_LIBRARY__
6586  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6587   Lucky GNU user
6588  #endif
6589 #endif
6590
6591 _ACEOF
6592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6593   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6594   ac_cv_gnu_library_2=yes
6595 else
6596   ac_cv_gnu_library_2=no
6597 fi
6598 rm -f conftest*
6599
6600
6601
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6604 $as_echo "$ac_cv_gnu_library_2" >&6; }
6605
6606     GLIBC2="$ac_cv_gnu_library_2"
6607
6608
6609 if test -n "$ac_tool_prefix"; then
6610   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_RANLIB+:} false; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   if test -n "$RANLIB"; then
6618   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625     for ac_exec_ext in '' $ac_executable_extensions; do
6626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632   done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 RANLIB=$ac_cv_prog_RANLIB
6638 if test -n "$RANLIB"; then
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6640 $as_echo "$RANLIB" >&6; }
6641 else
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646
6647 fi
6648 if test -z "$ac_cv_prog_RANLIB"; then
6649   ac_ct_RANLIB=$RANLIB
6650   # Extract the first word of "ranlib", so it can be a program name with args.
6651 set dummy ranlib; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   if test -n "$ac_ct_RANLIB"; then
6658   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665     for ac_exec_ext in '' $ac_executable_extensions; do
6666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667     ac_cv_prog_ac_ct_RANLIB="ranlib"
6668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672   done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6678 if test -n "$ac_ct_RANLIB"; then
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6680 $as_echo "$ac_ct_RANLIB" >&6; }
6681 else
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686   if test "x$ac_ct_RANLIB" = x; then
6687     RANLIB=":"
6688   else
6689     case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6694 esac
6695     RANLIB=$ac_ct_RANLIB
6696   fi
6697 else
6698   RANLIB="$ac_cv_prog_RANLIB"
6699 fi
6700
6701
6702
6703   CFLAG_VISIBILITY=
6704   HAVE_VISIBILITY=0
6705   if test -n "$GCC"; then
6706                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6707 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6708     if ${gl_cv_cc_vis_werror+:} false; then :
6709   $as_echo_n "(cached) " >&6
6710 else
6711
6712       gl_save_CFLAGS="$CFLAGS"
6713       CFLAGS="$CFLAGS -Werror"
6714       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h.  */
6716
6717 int
6718 main ()
6719 {
6720
6721   ;
6722   return 0;
6723 }
6724 _ACEOF
6725 if ac_fn_c_try_compile "$LINENO"; then :
6726   gl_cv_cc_vis_werror=yes
6727 else
6728   gl_cv_cc_vis_werror=no
6729 fi
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731       CFLAGS="$gl_save_CFLAGS"
6732 fi
6733
6734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6735 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6737 $as_echo_n "checking for simple visibility declarations... " >&6; }
6738     if ${gl_cv_cc_visibility+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741
6742       gl_save_CFLAGS="$CFLAGS"
6743       CFLAGS="$CFLAGS -fvisibility=hidden"
6744                                     if test $gl_cv_cc_vis_werror = yes; then
6745         CFLAGS="$CFLAGS -Werror"
6746       fi
6747       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h.  */
6749 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6750              extern __attribute__((__visibility__("default"))) int exportedvar;
6751              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6752              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6753              void dummyfunc (void) {}
6754
6755 int
6756 main ()
6757 {
6758
6759   ;
6760   return 0;
6761 }
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764   gl_cv_cc_visibility=yes
6765 else
6766   gl_cv_cc_visibility=no
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769       CFLAGS="$gl_save_CFLAGS"
6770 fi
6771
6772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6773 $as_echo "$gl_cv_cc_visibility" >&6; }
6774     if test $gl_cv_cc_visibility = yes; then
6775       CFLAG_VISIBILITY="-fvisibility=hidden"
6776       HAVE_VISIBILITY=1
6777     fi
6778   fi
6779
6780
6781
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6784 _ACEOF
6785
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6788 $as_echo_n "checking for inline... " >&6; }
6789 if ${ac_cv_c_inline+:} false; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   ac_cv_c_inline=no
6793 for ac_kw in inline __inline__ __inline; do
6794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h.  */
6796 #ifndef __cplusplus
6797 typedef int foo_t;
6798 static $ac_kw foo_t static_foo () {return 0; }
6799 $ac_kw foo_t foo () {return 0; }
6800 #endif
6801
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804   ac_cv_c_inline=$ac_kw
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807   test "$ac_cv_c_inline" != no && break
6808 done
6809
6810 fi
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6812 $as_echo "$ac_cv_c_inline" >&6; }
6813
6814 case $ac_cv_c_inline in
6815   inline | yes) ;;
6816   *)
6817     case $ac_cv_c_inline in
6818       no) ac_val=;;
6819       *) ac_val=$ac_cv_c_inline;;
6820     esac
6821     cat >>confdefs.h <<_ACEOF
6822 #ifndef __cplusplus
6823 #define inline $ac_val
6824 #endif
6825 _ACEOF
6826     ;;
6827 esac
6828
6829 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6830 if test "x$ac_cv_type_size_t" = xyes; then :
6831
6832 else
6833
6834 cat >>confdefs.h <<_ACEOF
6835 #define size_t unsigned int
6836 _ACEOF
6837
6838 fi
6839
6840
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6842 $as_echo_n "checking for stdint.h... " >&6; }
6843 if ${gl_cv_header_stdint_h+:} false; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h.  */
6848 #include <sys/types.h>
6849             #include <stdint.h>
6850 int
6851 main ()
6852 {
6853 uintmax_t i = (uintmax_t) -1; return !i;
6854   ;
6855   return 0;
6856 }
6857 _ACEOF
6858 if ac_fn_c_try_compile "$LINENO"; then :
6859   gl_cv_header_stdint_h=yes
6860 else
6861   gl_cv_header_stdint_h=no
6862 fi
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 fi
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6866 $as_echo "$gl_cv_header_stdint_h" >&6; }
6867   if test $gl_cv_header_stdint_h = yes; then
6868
6869 cat >>confdefs.h <<_ACEOF
6870 #define HAVE_STDINT_H_WITH_UINTMAX 1
6871 _ACEOF
6872
6873   fi
6874
6875 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6876 # for constant arguments.  Useless!
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6878 $as_echo_n "checking for working alloca.h... " >&6; }
6879 if ${ac_cv_working_alloca_h+:} false; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h.  */
6884 #include <alloca.h>
6885 int
6886 main ()
6887 {
6888 char *p = (char *) alloca (2 * sizeof (int));
6889                           if (p) return 0;
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 if ac_fn_c_try_link "$LINENO"; then :
6895   ac_cv_working_alloca_h=yes
6896 else
6897   ac_cv_working_alloca_h=no
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext \
6900     conftest$ac_exeext conftest.$ac_ext
6901 fi
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6903 $as_echo "$ac_cv_working_alloca_h" >&6; }
6904 if test $ac_cv_working_alloca_h = yes; then
6905
6906 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6907
6908 fi
6909
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6911 $as_echo_n "checking for alloca... " >&6; }
6912 if ${ac_cv_func_alloca_works+:} false; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h.  */
6917 #ifdef __GNUC__
6918 # define alloca __builtin_alloca
6919 #else
6920 # ifdef _MSC_VER
6921 #  include <malloc.h>
6922 #  define alloca _alloca
6923 # else
6924 #  ifdef HAVE_ALLOCA_H
6925 #   include <alloca.h>
6926 #  else
6927 #   ifdef _AIX
6928  #pragma alloca
6929 #   else
6930 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6931 void *alloca (size_t);
6932 #    endif
6933 #   endif
6934 #  endif
6935 # endif
6936 #endif
6937
6938 int
6939 main ()
6940 {
6941 char *p = (char *) alloca (1);
6942                                     if (p) return 0;
6943   ;
6944   return 0;
6945 }
6946 _ACEOF
6947 if ac_fn_c_try_link "$LINENO"; then :
6948   ac_cv_func_alloca_works=yes
6949 else
6950   ac_cv_func_alloca_works=no
6951 fi
6952 rm -f core conftest.err conftest.$ac_objext \
6953     conftest$ac_exeext conftest.$ac_ext
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6956 $as_echo "$ac_cv_func_alloca_works" >&6; }
6957
6958 if test $ac_cv_func_alloca_works = yes; then
6959
6960 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6961
6962 else
6963   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6964 # that cause trouble.  Some versions do not even contain alloca or
6965 # contain a buggy version.  If you still want to use their alloca,
6966 # use ar to extract alloca.o from them instead of compiling alloca.c.
6967
6968 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6969
6970 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6971
6972
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6974 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6975 if ${ac_cv_os_cray+:} false; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h.  */
6980 #if defined CRAY && ! defined CRAY2
6981 webecray
6982 #else
6983 wenotbecray
6984 #endif
6985
6986 _ACEOF
6987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6988   $EGREP "webecray" >/dev/null 2>&1; then :
6989   ac_cv_os_cray=yes
6990 else
6991   ac_cv_os_cray=no
6992 fi
6993 rm -f conftest*
6994
6995 fi
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6997 $as_echo "$ac_cv_os_cray" >&6; }
6998 if test $ac_cv_os_cray = yes; then
6999   for ac_func in _getb67 GETB67 getb67; do
7000     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7001 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7002 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7003
7004 cat >>confdefs.h <<_ACEOF
7005 #define CRAY_STACKSEG_END $ac_func
7006 _ACEOF
7007
7008     break
7009 fi
7010
7011   done
7012 fi
7013
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7015 $as_echo_n "checking stack direction for C alloca... " >&6; }
7016 if ${ac_cv_c_stack_direction+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   if test "$cross_compiling" = yes; then :
7020   ac_cv_c_stack_direction=0
7021 else
7022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h.  */
7024 $ac_includes_default
7025 int
7026 find_stack_direction (int *addr, int depth)
7027 {
7028   int dir, dummy = 0;
7029   if (! addr)
7030     addr = &dummy;
7031   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7032   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7033   return dir + dummy;
7034 }
7035
7036 int
7037 main (int argc, char **argv)
7038 {
7039   return find_stack_direction (0, argc + !argv + 20) < 0;
7040 }
7041 _ACEOF
7042 if ac_fn_c_try_run "$LINENO"; then :
7043   ac_cv_c_stack_direction=1
7044 else
7045   ac_cv_c_stack_direction=-1
7046 fi
7047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7048   conftest.$ac_objext conftest.beam conftest.$ac_ext
7049 fi
7050
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7053 $as_echo "$ac_cv_c_stack_direction" >&6; }
7054 cat >>confdefs.h <<_ACEOF
7055 #define STACK_DIRECTION $ac_cv_c_stack_direction
7056 _ACEOF
7057
7058
7059 fi
7060
7061
7062
7063
7064   for ac_header in $ac_header_list
7065 do :
7066   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7067 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7068 "
7069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7070   cat >>confdefs.h <<_ACEOF
7071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7072 _ACEOF
7073
7074 fi
7075
7076 done
7077
7078
7079
7080
7081
7082
7083
7084
7085 for ac_func in getpagesize
7086 do :
7087   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7088 if test "x$ac_cv_func_getpagesize" = xyes; then :
7089   cat >>confdefs.h <<_ACEOF
7090 #define HAVE_GETPAGESIZE 1
7091 _ACEOF
7092
7093 fi
7094 done
7095
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7097 $as_echo_n "checking for working mmap... " >&6; }
7098 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   if test "$cross_compiling" = yes; then :
7102   ac_cv_func_mmap_fixed_mapped=no
7103 else
7104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h.  */
7106 $ac_includes_default
7107 /* malloc might have been renamed as rpl_malloc. */
7108 #undef malloc
7109
7110 /* Thanks to Mike Haertel and Jim Avera for this test.
7111    Here is a matrix of mmap possibilities:
7112         mmap private not fixed
7113         mmap private fixed at somewhere currently unmapped
7114         mmap private fixed at somewhere already mapped
7115         mmap shared not fixed
7116         mmap shared fixed at somewhere currently unmapped
7117         mmap shared fixed at somewhere already mapped
7118    For private mappings, we should verify that changes cannot be read()
7119    back from the file, nor mmap's back from the file at a different
7120    address.  (There have been systems where private was not correctly
7121    implemented like the infamous i386 svr4.0, and systems where the
7122    VM page cache was not coherent with the file system buffer cache
7123    like early versions of FreeBSD and possibly contemporary NetBSD.)
7124    For shared mappings, we should conversely verify that changes get
7125    propagated back to all the places they're supposed to be.
7126
7127    Grep wants private fixed already mapped.
7128    The main things grep needs to know about mmap are:
7129    * does it exist and is it safe to write into the mmap'd area
7130    * how to use it (BSD variants)  */
7131
7132 #include <fcntl.h>
7133 #include <sys/mman.h>
7134
7135 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7136 char *malloc ();
7137 #endif
7138
7139 /* This mess was copied from the GNU getpagesize.h.  */
7140 #ifndef HAVE_GETPAGESIZE
7141 # ifdef _SC_PAGESIZE
7142 #  define getpagesize() sysconf(_SC_PAGESIZE)
7143 # else /* no _SC_PAGESIZE */
7144 #  ifdef HAVE_SYS_PARAM_H
7145 #   include <sys/param.h>
7146 #   ifdef EXEC_PAGESIZE
7147 #    define getpagesize() EXEC_PAGESIZE
7148 #   else /* no EXEC_PAGESIZE */
7149 #    ifdef NBPG
7150 #     define getpagesize() NBPG * CLSIZE
7151 #     ifndef CLSIZE
7152 #      define CLSIZE 1
7153 #     endif /* no CLSIZE */
7154 #    else /* no NBPG */
7155 #     ifdef NBPC
7156 #      define getpagesize() NBPC
7157 #     else /* no NBPC */
7158 #      ifdef PAGESIZE
7159 #       define getpagesize() PAGESIZE
7160 #      endif /* PAGESIZE */
7161 #     endif /* no NBPC */
7162 #    endif /* no NBPG */
7163 #   endif /* no EXEC_PAGESIZE */
7164 #  else /* no HAVE_SYS_PARAM_H */
7165 #   define getpagesize() 8192   /* punt totally */
7166 #  endif /* no HAVE_SYS_PARAM_H */
7167 # endif /* no _SC_PAGESIZE */
7168
7169 #endif /* no HAVE_GETPAGESIZE */
7170
7171 int
7172 main ()
7173 {
7174   char *data, *data2, *data3;
7175   const char *cdata2;
7176   int i, pagesize;
7177   int fd, fd2;
7178
7179   pagesize = getpagesize ();
7180
7181   /* First, make a file with some known garbage in it. */
7182   data = (char *) malloc (pagesize);
7183   if (!data)
7184     return 1;
7185   for (i = 0; i < pagesize; ++i)
7186     *(data + i) = rand ();
7187   umask (0);
7188   fd = creat ("conftest.mmap", 0600);
7189   if (fd < 0)
7190     return 2;
7191   if (write (fd, data, pagesize) != pagesize)
7192     return 3;
7193   close (fd);
7194
7195   /* Next, check that the tail of a page is zero-filled.  File must have
7196      non-zero length, otherwise we risk SIGBUS for entire page.  */
7197   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7198   if (fd2 < 0)
7199     return 4;
7200   cdata2 = "";
7201   if (write (fd2, cdata2, 1) != 1)
7202     return 5;
7203   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7204   if (data2 == MAP_FAILED)
7205     return 6;
7206   for (i = 0; i < pagesize; ++i)
7207     if (*(data2 + i))
7208       return 7;
7209   close (fd2);
7210   if (munmap (data2, pagesize))
7211     return 8;
7212
7213   /* Next, try to mmap the file at a fixed address which already has
7214      something else allocated at it.  If we can, also make sure that
7215      we see the same garbage.  */
7216   fd = open ("conftest.mmap", O_RDWR);
7217   if (fd < 0)
7218     return 9;
7219   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7220                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7221     return 10;
7222   for (i = 0; i < pagesize; ++i)
7223     if (*(data + i) != *(data2 + i))
7224       return 11;
7225
7226   /* Finally, make sure that changes to the mapped area do not
7227      percolate back to the file as seen by read().  (This is a bug on
7228      some variants of i386 svr4.0.)  */
7229   for (i = 0; i < pagesize; ++i)
7230     *(data2 + i) = *(data2 + i) + 1;
7231   data3 = (char *) malloc (pagesize);
7232   if (!data3)
7233     return 12;
7234   if (read (fd, data3, pagesize) != pagesize)
7235     return 13;
7236   for (i = 0; i < pagesize; ++i)
7237     if (*(data + i) != *(data3 + i))
7238       return 14;
7239   close (fd);
7240   return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_run "$LINENO"; then :
7244   ac_cv_func_mmap_fixed_mapped=yes
7245 else
7246   ac_cv_func_mmap_fixed_mapped=no
7247 fi
7248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7249   conftest.$ac_objext conftest.beam conftest.$ac_ext
7250 fi
7251
7252 fi
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7254 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7255 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7256
7257 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7258
7259 fi
7260 rm -f conftest.mmap conftest.txt
7261
7262
7263
7264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7265 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7266 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269
7270       gt_cv_int_divbyzero_sigfpe=
7271       case "$host_os" in
7272         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7273           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7274           # compiling. If we were to perform the real test, 1 Crash Report
7275           # dialog window would pop up.
7276           case "$host_cpu" in
7277             i[34567]86 | x86_64)
7278               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7279           esac
7280           ;;
7281       esac
7282       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7283         if test "$cross_compiling" = yes; then :
7284
7285             # Guess based on the CPU.
7286             case "$host_cpu" in
7287               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7288                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7289               *)
7290                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7291             esac
7292
7293 else
7294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h.  */
7296
7297 #include <stdlib.h>
7298 #include <signal.h>
7299
7300 static void
7301 sigfpe_handler (int sig)
7302 {
7303   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7304   exit (sig != SIGFPE);
7305 }
7306
7307 int x = 1;
7308 int y = 0;
7309 int z;
7310 int nan;
7311
7312 int main ()
7313 {
7314   signal (SIGFPE, sigfpe_handler);
7315 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7316 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7317   signal (SIGTRAP, sigfpe_handler);
7318 #endif
7319 /* Linux/SPARC yields signal SIGILL.  */
7320 #if defined (__sparc__) && defined (__linux__)
7321   signal (SIGILL, sigfpe_handler);
7322 #endif
7323
7324   z = x / y;
7325   nan = y / y;
7326   exit (2);
7327 }
7328
7329 _ACEOF
7330 if ac_fn_c_try_run "$LINENO"; then :
7331   gt_cv_int_divbyzero_sigfpe=yes
7332 else
7333   gt_cv_int_divbyzero_sigfpe=no
7334 fi
7335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7336   conftest.$ac_objext conftest.beam conftest.$ac_ext
7337 fi
7338
7339       fi
7340
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7343 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7344   case "$gt_cv_int_divbyzero_sigfpe" in
7345     *yes) value=1;;
7346     *) value=0;;
7347   esac
7348
7349 cat >>confdefs.h <<_ACEOF
7350 #define INTDIV0_RAISES_SIGFPE $value
7351 _ACEOF
7352
7353
7354
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7356 $as_echo_n "checking for inttypes.h... " >&6; }
7357 if ${gl_cv_header_inttypes_h+:} false; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h.  */
7362
7363 #include <sys/types.h>
7364 #include <inttypes.h>
7365
7366 int
7367 main ()
7368 {
7369 uintmax_t i = (uintmax_t) -1; return !i;
7370   ;
7371   return 0;
7372 }
7373 _ACEOF
7374 if ac_fn_c_try_compile "$LINENO"; then :
7375   gl_cv_header_inttypes_h=yes
7376 else
7377   gl_cv_header_inttypes_h=no
7378 fi
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7382 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7383   if test $gl_cv_header_inttypes_h = yes; then
7384
7385 cat >>confdefs.h <<_ACEOF
7386 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7387 _ACEOF
7388
7389   fi
7390
7391
7392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7393 $as_echo_n "checking for unsigned long long int... " >&6; }
7394 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   ac_cv_type_unsigned_long_long_int=yes
7398      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7399        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h.  */
7401
7402   /* For now, do not test the preprocessor; as of 2007 there are too many
7403          implementations with broken preprocessors.  Perhaps this can
7404          be revisited in 2012.  In the meantime, code should not expect
7405          #if to work with literals wider than 32 bits.  */
7406       /* Test literals.  */
7407       long long int ll = 9223372036854775807ll;
7408       long long int nll = -9223372036854775807LL;
7409       unsigned long long int ull = 18446744073709551615ULL;
7410       /* Test constant expressions.   */
7411       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7412                      ? 1 : -1)];
7413       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7414                      ? 1 : -1)];
7415       int i = 63;
7416 int
7417 main ()
7418 {
7419 /* Test availability of runtime routines for shift and division.  */
7420       long long int llmax = 9223372036854775807ll;
7421       unsigned long long int ullmax = 18446744073709551615ull;
7422       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7423               | (llmax / ll) | (llmax % ll)
7424               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7425               | (ullmax / ull) | (ullmax % ull));
7426   ;
7427   return 0;
7428 }
7429
7430 _ACEOF
7431 if ac_fn_c_try_link "$LINENO"; then :
7432
7433 else
7434   ac_cv_type_unsigned_long_long_int=no
7435 fi
7436 rm -f core conftest.err conftest.$ac_objext \
7437     conftest$ac_exeext conftest.$ac_ext
7438      fi
7439 fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7441 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7442   if test $ac_cv_type_unsigned_long_long_int = yes; then
7443
7444 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7445
7446   fi
7447
7448
7449
7450
7451   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7452
7453     test $ac_cv_type_unsigned_long_long_int = yes \
7454       && ac_type='unsigned long long' \
7455       || ac_type='unsigned long'
7456
7457 cat >>confdefs.h <<_ACEOF
7458 #define uintmax_t $ac_type
7459 _ACEOF
7460
7461   else
7462
7463 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7464
7465   fi
7466
7467
7468   for ac_header in inttypes.h
7469 do :
7470   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7471 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7472   cat >>confdefs.h <<_ACEOF
7473 #define HAVE_INTTYPES_H 1
7474 _ACEOF
7475
7476 fi
7477
7478 done
7479
7480   if test $ac_cv_header_inttypes_h = yes; then
7481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7482 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7483 if ${gt_cv_inttypes_pri_broken+:} false; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486
7487         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h.  */
7489
7490 #include <inttypes.h>
7491 #ifdef PRId32
7492 char *p = PRId32;
7493 #endif
7494
7495 int
7496 main ()
7497 {
7498
7499   ;
7500   return 0;
7501 }
7502 _ACEOF
7503 if ac_fn_c_try_compile "$LINENO"; then :
7504   gt_cv_inttypes_pri_broken=no
7505 else
7506   gt_cv_inttypes_pri_broken=yes
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509
7510 fi
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7512 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7513   fi
7514   if test "$gt_cv_inttypes_pri_broken" = yes; then
7515
7516 cat >>confdefs.h <<_ACEOF
7517 #define PRI_MACROS_BROKEN 1
7518 _ACEOF
7519
7520     PRI_MACROS_BROKEN=1
7521   else
7522     PRI_MACROS_BROKEN=0
7523   fi
7524
7525
7526
7527
7528
7529
7530
7531   # Check whether --enable-threads was given.
7532 if test "${enable_threads+set}" = set; then :
7533   enableval=$enable_threads; gl_use_threads=$enableval
7534 else
7535   if test -n "$gl_use_threads_default"; then
7536        gl_use_threads="$gl_use_threads_default"
7537      else
7538        case "$host_os" in
7539                                                                osf*) gl_use_threads=no ;;
7540          cygwin*)
7541                case `uname -r` in
7542                  1.[0-5].*) gl_use_threads=no ;;
7543                  *)         gl_use_threads=yes ;;
7544                esac
7545                ;;
7546          *)    gl_use_threads=yes ;;
7547        esac
7548      fi
7549
7550 fi
7551
7552   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7553     # For using <pthread.h>:
7554     case "$host_os" in
7555       osf*)
7556         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7557         # groks <pthread.h>. cc also understands the flag -pthread, but
7558         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7559         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7560         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7561         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7562         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7563         ;;
7564     esac
7565     # Some systems optimize for single-threaded programs by default, and
7566     # need special flags to disable these optimizations. For example, the
7567     # definition of 'errno' in <errno.h>.
7568     case "$host_os" in
7569       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7570       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7571     esac
7572   fi
7573
7574
7575
7576
7577
7578       if test "X$prefix" = "XNONE"; then
7579     acl_final_prefix="$ac_default_prefix"
7580   else
7581     acl_final_prefix="$prefix"
7582   fi
7583   if test "X$exec_prefix" = "XNONE"; then
7584     acl_final_exec_prefix='${prefix}'
7585   else
7586     acl_final_exec_prefix="$exec_prefix"
7587   fi
7588   acl_save_prefix="$prefix"
7589   prefix="$acl_final_prefix"
7590   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7591   prefix="$acl_save_prefix"
7592
7593
7594
7595 # Check whether --with-gnu-ld was given.
7596 if test "${with_gnu_ld+set}" = set; then :
7597   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7598 else
7599   with_gnu_ld=no
7600 fi
7601
7602 # Prepare PATH_SEPARATOR.
7603 # The user is always right.
7604 if test "${PATH_SEPARATOR+set}" != set; then
7605   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7606   # contains only /bin. Note that ksh looks also at the FPATH variable,
7607   # so we have to set that as well for the test.
7608   PATH_SEPARATOR=:
7609   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7610     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7611            || PATH_SEPARATOR=';'
7612        }
7613 fi
7614
7615 ac_prog=ld
7616 if test "$GCC" = yes; then
7617   # Check if gcc -print-prog-name=ld gives a path.
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7619 $as_echo_n "checking for ld used by $CC... " >&6; }
7620   case $host in
7621   *-*-mingw*)
7622     # gcc leaves a trailing carriage return which upsets mingw
7623     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7624   *)
7625     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7626   esac
7627   case $ac_prog in
7628     # Accept absolute paths.
7629     [\\/]* | ?:[\\/]*)
7630       re_direlt='/[^/][^/]*/\.\./'
7631       # Canonicalize the pathname of ld
7632       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7633       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7634         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7635       done
7636       test -z "$LD" && LD="$ac_prog"
7637       ;;
7638   "")
7639     # If it fails, then pretend we aren't using GCC.
7640     ac_prog=ld
7641     ;;
7642   *)
7643     # If it is relative, then search for the first ld in PATH.
7644     with_gnu_ld=unknown
7645     ;;
7646   esac
7647 elif test "$with_gnu_ld" = yes; then
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7649 $as_echo_n "checking for GNU ld... " >&6; }
7650 else
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7652 $as_echo_n "checking for non-GNU ld... " >&6; }
7653 fi
7654 if ${acl_cv_path_LD+:} false; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   if test -z "$LD"; then
7658   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7659   for ac_dir in $PATH; do
7660     IFS="$acl_save_ifs"
7661     test -z "$ac_dir" && ac_dir=.
7662     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7663       acl_cv_path_LD="$ac_dir/$ac_prog"
7664       # Check to see if the program is GNU ld.  I'd rather use --version,
7665       # but apparently some variants of GNU ld only accept -v.
7666       # Break only if it was the GNU/non-GNU ld that we prefer.
7667       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7668       *GNU* | *'with BFD'*)
7669         test "$with_gnu_ld" != no && break
7670         ;;
7671       *)
7672         test "$with_gnu_ld" != yes && break
7673         ;;
7674       esac
7675     fi
7676   done
7677   IFS="$acl_save_ifs"
7678 else
7679   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7680 fi
7681 fi
7682
7683 LD="$acl_cv_path_LD"
7684 if test -n "$LD"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7686 $as_echo "$LD" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7693 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7694 if ${acl_cv_prog_gnu_ld+:} false; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7698 case `$LD -v 2>&1 </dev/null` in
7699 *GNU* | *'with BFD'*)
7700   acl_cv_prog_gnu_ld=yes
7701   ;;
7702 *)
7703   acl_cv_prog_gnu_ld=no
7704   ;;
7705 esac
7706 fi
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7708 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7709 with_gnu_ld=$acl_cv_prog_gnu_ld
7710
7711
7712
7713
7714                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7715 $as_echo_n "checking for shared library run path origin... " >&6; }
7716 if ${acl_cv_rpath+:} false; then :
7717   $as_echo_n "(cached) " >&6
7718 else
7719
7720     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7721     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7722     . ./conftest.sh
7723     rm -f ./conftest.sh
7724     acl_cv_rpath=done
7725
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7728 $as_echo "$acl_cv_rpath" >&6; }
7729   wl="$acl_cv_wl"
7730   acl_libext="$acl_cv_libext"
7731   acl_shlibext="$acl_cv_shlibext"
7732   acl_libname_spec="$acl_cv_libname_spec"
7733   acl_library_names_spec="$acl_cv_library_names_spec"
7734   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7735   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7736   acl_hardcode_direct="$acl_cv_hardcode_direct"
7737   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7738     # Check whether --enable-rpath was given.
7739 if test "${enable_rpath+set}" = set; then :
7740   enableval=$enable_rpath; :
7741 else
7742   enable_rpath=yes
7743 fi
7744
7745
7746
7747
7748   acl_libdirstem=lib
7749   acl_libdirstem2=
7750   case "$host_os" in
7751     solaris*)
7752                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7753 $as_echo_n "checking for 64-bit host... " >&6; }
7754 if ${gl_cv_solaris_64bit+:} false; then :
7755   $as_echo_n "(cached) " >&6
7756 else
7757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h.  */
7759
7760 #ifdef _LP64
7761 sixtyfour bits
7762 #endif
7763
7764 _ACEOF
7765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7766   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7767   gl_cv_solaris_64bit=yes
7768 else
7769   gl_cv_solaris_64bit=no
7770 fi
7771 rm -f conftest*
7772
7773
7774 fi
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7776 $as_echo "$gl_cv_solaris_64bit" >&6; }
7777       if test $gl_cv_solaris_64bit = yes; then
7778         acl_libdirstem=lib/64
7779         case "$host_cpu" in
7780           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7781           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7782         esac
7783       fi
7784       ;;
7785     *)
7786       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7787       if test -n "$searchpath"; then
7788         acl_save_IFS="${IFS=    }"; IFS=":"
7789         for searchdir in $searchpath; do
7790           if test -d "$searchdir"; then
7791             case "$searchdir" in
7792               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7793               */../ | */.. )
7794                 # Better ignore directories of this form. They are misleading.
7795                 ;;
7796               *) searchdir=`cd "$searchdir" && pwd`
7797                  case "$searchdir" in
7798                    */lib64 ) acl_libdirstem=lib64 ;;
7799                  esac ;;
7800             esac
7801           fi
7802         done
7803         IFS="$acl_save_IFS"
7804       fi
7805       ;;
7806   esac
7807   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7808
7809
7810
7811   gl_threads_api=none
7812   LIBTHREAD=
7813   LTLIBTHREAD=
7814   LIBMULTITHREAD=
7815   LTLIBMULTITHREAD=
7816   if test "$gl_use_threads" != no; then
7817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7818 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7819 if ${gl_cv_have_weak+:} false; then :
7820   $as_echo_n "(cached) " >&6
7821 else
7822   gl_cv_have_weak=no
7823               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h.  */
7825 extern void xyzzy ();
7826 #pragma weak xyzzy
7827 int
7828 main ()
7829 {
7830 xyzzy();
7831   ;
7832   return 0;
7833 }
7834 _ACEOF
7835 if ac_fn_c_try_link "$LINENO"; then :
7836   gl_cv_have_weak=maybe
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext \
7839     conftest$ac_exeext conftest.$ac_ext
7840        if test $gl_cv_have_weak = maybe; then
7841                            if test "$cross_compiling" = yes; then :
7842                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h.  */
7844 #ifdef __ELF__
7845                Extensible Linking Format
7846                #endif
7847
7848 _ACEOF
7849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7850   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7851   gl_cv_have_weak="guessing yes"
7852 else
7853   gl_cv_have_weak="guessing no"
7854 fi
7855 rm -f conftest*
7856
7857
7858 else
7859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h.  */
7861
7862 #include <stdio.h>
7863 #pragma weak fputs
7864 int main ()
7865 {
7866   return (fputs == NULL);
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_run "$LINENO"; then :
7870   gl_cv_have_weak=yes
7871 else
7872   gl_cv_have_weak=no
7873 fi
7874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7875   conftest.$ac_objext conftest.beam conftest.$ac_ext
7876 fi
7877
7878        fi
7879
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7882 $as_echo "$gl_cv_have_weak" >&6; }
7883     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7884       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7885       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7886       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7887 if test "x$ac_cv_header_pthread_h" = xyes; then :
7888   gl_have_pthread_h=yes
7889 else
7890   gl_have_pthread_h=no
7891 fi
7892
7893
7894       if test "$gl_have_pthread_h" = yes; then
7895         # Other possible tests:
7896         #   -lpthreads (FSU threads, PCthreads)
7897         #   -lgthreads
7898         gl_have_pthread=
7899         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7900         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7901         # the second one only in libpthread, and lock.c needs it.
7902         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h.  */
7904 #include <pthread.h>
7905 int
7906 main ()
7907 {
7908 pthread_mutex_lock((pthread_mutex_t*)0);
7909                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 if ac_fn_c_try_link "$LINENO"; then :
7915   gl_have_pthread=yes
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext \
7918     conftest$ac_exeext conftest.$ac_ext
7919         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7920         # since it is defined as a macro on OSF/1.)
7921         if test -n "$gl_have_pthread"; then
7922           # The program links fine without libpthread. But it may actually
7923           # need to link with libpthread in order to create multiple threads.
7924           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7925 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7926 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7927   $as_echo_n "(cached) " >&6
7928 else
7929   ac_check_lib_save_LIBS=$LIBS
7930 LIBS="-lpthread  $LIBS"
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h.  */
7933
7934 /* Override any GCC internal prototype to avoid an error.
7935    Use char because int might match the return type of a GCC
7936    builtin and then its argument prototype would still apply.  */
7937 #ifdef __cplusplus
7938 extern "C"
7939 #endif
7940 char pthread_kill ();
7941 int
7942 main ()
7943 {
7944 return pthread_kill ();
7945   ;
7946   return 0;
7947 }
7948 _ACEOF
7949 if ac_fn_c_try_link "$LINENO"; then :
7950   ac_cv_lib_pthread_pthread_kill=yes
7951 else
7952   ac_cv_lib_pthread_pthread_kill=no
7953 fi
7954 rm -f core conftest.err conftest.$ac_objext \
7955     conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7957 fi
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7959 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7960 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7961   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7962              # On Solaris and HP-UX, most pthread functions exist also in libc.
7963              # Therefore pthread_in_use() needs to actually try to create a
7964              # thread: pthread_create from libc will fail, whereas
7965              # pthread_create will actually create a thread.
7966              case "$host_os" in
7967                solaris* | hpux*)
7968
7969 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7970
7971              esac
7972
7973 fi
7974
7975         else
7976           # Some library is needed. Try libpthread and libc_r.
7977           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7978 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7979 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7980   $as_echo_n "(cached) " >&6
7981 else
7982   ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-lpthread  $LIBS"
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h.  */
7986
7987 /* Override any GCC internal prototype to avoid an error.
7988    Use char because int might match the return type of a GCC
7989    builtin and then its argument prototype would still apply.  */
7990 #ifdef __cplusplus
7991 extern "C"
7992 #endif
7993 char pthread_kill ();
7994 int
7995 main ()
7996 {
7997 return pthread_kill ();
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 if ac_fn_c_try_link "$LINENO"; then :
8003   ac_cv_lib_pthread_pthread_kill=yes
8004 else
8005   ac_cv_lib_pthread_pthread_kill=no
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext \
8008     conftest$ac_exeext conftest.$ac_ext
8009 LIBS=$ac_check_lib_save_LIBS
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8012 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8013 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8014   gl_have_pthread=yes
8015              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8016              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8017 fi
8018
8019           if test -z "$gl_have_pthread"; then
8020             # For FreeBSD 4.
8021             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8022 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8023 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   ac_check_lib_save_LIBS=$LIBS
8027 LIBS="-lc_r  $LIBS"
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h.  */
8030
8031 /* Override any GCC internal prototype to avoid an error.
8032    Use char because int might match the return type of a GCC
8033    builtin and then its argument prototype would still apply.  */
8034 #ifdef __cplusplus
8035 extern "C"
8036 #endif
8037 char pthread_kill ();
8038 int
8039 main ()
8040 {
8041 return pthread_kill ();
8042   ;
8043   return 0;
8044 }
8045 _ACEOF
8046 if ac_fn_c_try_link "$LINENO"; then :
8047   ac_cv_lib_c_r_pthread_kill=yes
8048 else
8049   ac_cv_lib_c_r_pthread_kill=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext \
8052     conftest$ac_exeext conftest.$ac_ext
8053 LIBS=$ac_check_lib_save_LIBS
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8056 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8057 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8058   gl_have_pthread=yes
8059                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8060                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8061 fi
8062
8063           fi
8064         fi
8065         if test -n "$gl_have_pthread"; then
8066           gl_threads_api=posix
8067
8068 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8069
8070           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8071             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8072
8073 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8074
8075               LIBTHREAD=
8076               LTLIBTHREAD=
8077             fi
8078           fi
8079         fi
8080       fi
8081     fi
8082     if test -z "$gl_have_pthread"; then
8083       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8084         gl_have_solaristhread=
8085         gl_save_LIBS="$LIBS"
8086         LIBS="$LIBS -lthread"
8087         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h.  */
8089
8090 #include <thread.h>
8091 #include <synch.h>
8092
8093 int
8094 main ()
8095 {
8096 thr_self();
8097   ;
8098   return 0;
8099 }
8100 _ACEOF
8101 if ac_fn_c_try_link "$LINENO"; then :
8102   gl_have_solaristhread=yes
8103 fi
8104 rm -f core conftest.err conftest.$ac_objext \
8105     conftest$ac_exeext conftest.$ac_ext
8106         LIBS="$gl_save_LIBS"
8107         if test -n "$gl_have_solaristhread"; then
8108           gl_threads_api=solaris
8109           LIBTHREAD=-lthread
8110           LTLIBTHREAD=-lthread
8111           LIBMULTITHREAD="$LIBTHREAD"
8112           LTLIBMULTITHREAD="$LTLIBTHREAD"
8113
8114 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8115
8116           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8117
8118 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8119
8120             LIBTHREAD=
8121             LTLIBTHREAD=
8122           fi
8123         fi
8124       fi
8125     fi
8126     if test "$gl_use_threads" = pth; then
8127       gl_save_CPPFLAGS="$CPPFLAGS"
8128
8129
8130
8131
8132
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8134 $as_echo_n "checking how to link with libpth... " >&6; }
8135 if ${ac_cv_libpth_libs+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138
8139
8140
8141
8142
8143
8144
8145
8146     use_additional=yes
8147
8148   acl_save_prefix="$prefix"
8149   prefix="$acl_final_prefix"
8150   acl_save_exec_prefix="$exec_prefix"
8151   exec_prefix="$acl_final_exec_prefix"
8152
8153     eval additional_includedir=\"$includedir\"
8154     eval additional_libdir=\"$libdir\"
8155
8156   exec_prefix="$acl_save_exec_prefix"
8157   prefix="$acl_save_prefix"
8158
8159
8160 # Check whether --with-libpth-prefix was given.
8161 if test "${with_libpth_prefix+set}" = set; then :
8162   withval=$with_libpth_prefix;
8163     if test "X$withval" = "Xno"; then
8164       use_additional=no
8165     else
8166       if test "X$withval" = "X"; then
8167
8168   acl_save_prefix="$prefix"
8169   prefix="$acl_final_prefix"
8170   acl_save_exec_prefix="$exec_prefix"
8171   exec_prefix="$acl_final_exec_prefix"
8172
8173           eval additional_includedir=\"$includedir\"
8174           eval additional_libdir=\"$libdir\"
8175
8176   exec_prefix="$acl_save_exec_prefix"
8177   prefix="$acl_save_prefix"
8178
8179       else
8180         additional_includedir="$withval/include"
8181         additional_libdir="$withval/$acl_libdirstem"
8182         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8183            && ! test -d "$withval/$acl_libdirstem"; then
8184           additional_libdir="$withval/$acl_libdirstem2"
8185         fi
8186       fi
8187     fi
8188
8189 fi
8190
8191       LIBPTH=
8192   LTLIBPTH=
8193   INCPTH=
8194   LIBPTH_PREFIX=
8195       HAVE_LIBPTH=
8196   rpathdirs=
8197   ltrpathdirs=
8198   names_already_handled=
8199   names_next_round='pth '
8200   while test -n "$names_next_round"; do
8201     names_this_round="$names_next_round"
8202     names_next_round=
8203     for name in $names_this_round; do
8204       already_handled=
8205       for n in $names_already_handled; do
8206         if test "$n" = "$name"; then
8207           already_handled=yes
8208           break
8209         fi
8210       done
8211       if test -z "$already_handled"; then
8212         names_already_handled="$names_already_handled $name"
8213                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8214         eval value=\"\$HAVE_LIB$uppername\"
8215         if test -n "$value"; then
8216           if test "$value" = yes; then
8217             eval value=\"\$LIB$uppername\"
8218             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8219             eval value=\"\$LTLIB$uppername\"
8220             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8221           else
8222                                     :
8223           fi
8224         else
8225                               found_dir=
8226           found_la=
8227           found_so=
8228           found_a=
8229           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8230           if test -n "$acl_shlibext"; then
8231             shrext=".$acl_shlibext"             # typically: shrext=.so
8232           else
8233             shrext=
8234           fi
8235           if test $use_additional = yes; then
8236             dir="$additional_libdir"
8237                                     if test -n "$acl_shlibext"; then
8238               if test -f "$dir/$libname$shrext"; then
8239                 found_dir="$dir"
8240                 found_so="$dir/$libname$shrext"
8241               else
8242                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8243                   ver=`(cd "$dir" && \
8244                         for f in "$libname$shrext".*; do echo "$f"; done \
8245                         | sed -e "s,^$libname$shrext\\\\.,," \
8246                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8247                         | sed 1q ) 2>/dev/null`
8248                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8249                     found_dir="$dir"
8250                     found_so="$dir/$libname$shrext.$ver"
8251                   fi
8252                 else
8253                   eval library_names=\"$acl_library_names_spec\"
8254                   for f in $library_names; do
8255                     if test -f "$dir/$f"; then
8256                       found_dir="$dir"
8257                       found_so="$dir/$f"
8258                       break
8259                     fi
8260                   done
8261                 fi
8262               fi
8263             fi
8264                         if test "X$found_dir" = "X"; then
8265               if test -f "$dir/$libname.$acl_libext"; then
8266                 found_dir="$dir"
8267                 found_a="$dir/$libname.$acl_libext"
8268               fi
8269             fi
8270             if test "X$found_dir" != "X"; then
8271               if test -f "$dir/$libname.la"; then
8272                 found_la="$dir/$libname.la"
8273               fi
8274             fi
8275           fi
8276           if test "X$found_dir" = "X"; then
8277             for x in $LDFLAGS $LTLIBPTH; do
8278
8279   acl_save_prefix="$prefix"
8280   prefix="$acl_final_prefix"
8281   acl_save_exec_prefix="$exec_prefix"
8282   exec_prefix="$acl_final_exec_prefix"
8283   eval x=\"$x\"
8284   exec_prefix="$acl_save_exec_prefix"
8285   prefix="$acl_save_prefix"
8286
8287               case "$x" in
8288                 -L*)
8289                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8290                                     if test -n "$acl_shlibext"; then
8291                     if test -f "$dir/$libname$shrext"; then
8292                       found_dir="$dir"
8293                       found_so="$dir/$libname$shrext"
8294                     else
8295                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8296                         ver=`(cd "$dir" && \
8297                               for f in "$libname$shrext".*; do echo "$f"; done \
8298                               | sed -e "s,^$libname$shrext\\\\.,," \
8299                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8300                               | sed 1q ) 2>/dev/null`
8301                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8302                           found_dir="$dir"
8303                           found_so="$dir/$libname$shrext.$ver"
8304                         fi
8305                       else
8306                         eval library_names=\"$acl_library_names_spec\"
8307                         for f in $library_names; do
8308                           if test -f "$dir/$f"; then
8309                             found_dir="$dir"
8310                             found_so="$dir/$f"
8311                             break
8312                           fi
8313                         done
8314                       fi
8315                     fi
8316                   fi
8317                                     if test "X$found_dir" = "X"; then
8318                     if test -f "$dir/$libname.$acl_libext"; then
8319                       found_dir="$dir"
8320                       found_a="$dir/$libname.$acl_libext"
8321                     fi
8322                   fi
8323                   if test "X$found_dir" != "X"; then
8324                     if test -f "$dir/$libname.la"; then
8325                       found_la="$dir/$libname.la"
8326                     fi
8327                   fi
8328                   ;;
8329               esac
8330               if test "X$found_dir" != "X"; then
8331                 break
8332               fi
8333             done
8334           fi
8335           if test "X$found_dir" != "X"; then
8336                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8337             if test "X$found_so" != "X"; then
8338                                                         if test "$enable_rpath" = no \
8339                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8340                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8341                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8342               else
8343                                                                                 haveit=
8344                 for x in $ltrpathdirs; do
8345                   if test "X$x" = "X$found_dir"; then
8346                     haveit=yes
8347                     break
8348                   fi
8349                 done
8350                 if test -z "$haveit"; then
8351                   ltrpathdirs="$ltrpathdirs $found_dir"
8352                 fi
8353                                 if test "$acl_hardcode_direct" = yes; then
8354                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8355                 else
8356                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8357                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8358                                                             haveit=
8359                     for x in $rpathdirs; do
8360                       if test "X$x" = "X$found_dir"; then
8361                         haveit=yes
8362                         break
8363                       fi
8364                     done
8365                     if test -z "$haveit"; then
8366                       rpathdirs="$rpathdirs $found_dir"
8367                     fi
8368                   else
8369                                                                                 haveit=
8370                     for x in $LDFLAGS $LIBPTH; do
8371
8372   acl_save_prefix="$prefix"
8373   prefix="$acl_final_prefix"
8374   acl_save_exec_prefix="$exec_prefix"
8375   exec_prefix="$acl_final_exec_prefix"
8376   eval x=\"$x\"
8377   exec_prefix="$acl_save_exec_prefix"
8378   prefix="$acl_save_prefix"
8379
8380                       if test "X$x" = "X-L$found_dir"; then
8381                         haveit=yes
8382                         break
8383                       fi
8384                     done
8385                     if test -z "$haveit"; then
8386                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8387                     fi
8388                     if test "$acl_hardcode_minus_L" != no; then
8389                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8390                     else
8391                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8392                     fi
8393                   fi
8394                 fi
8395               fi
8396             else
8397               if test "X$found_a" != "X"; then
8398                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8399               else
8400                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8401               fi
8402             fi
8403                         additional_includedir=
8404             case "$found_dir" in
8405               */$acl_libdirstem | */$acl_libdirstem/)
8406                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8407                 if test "$name" = 'pth'; then
8408                   LIBPTH_PREFIX="$basedir"
8409                 fi
8410                 additional_includedir="$basedir/include"
8411                 ;;
8412               */$acl_libdirstem2 | */$acl_libdirstem2/)
8413                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8414                 if test "$name" = 'pth'; then
8415                   LIBPTH_PREFIX="$basedir"
8416                 fi
8417                 additional_includedir="$basedir/include"
8418                 ;;
8419             esac
8420             if test "X$additional_includedir" != "X"; then
8421                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8422                 haveit=
8423                 if test "X$additional_includedir" = "X/usr/local/include"; then
8424                   if test -n "$GCC"; then
8425                     case $host_os in
8426                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8427                     esac
8428                   fi
8429                 fi
8430                 if test -z "$haveit"; then
8431                   for x in $CPPFLAGS $INCPTH; do
8432
8433   acl_save_prefix="$prefix"
8434   prefix="$acl_final_prefix"
8435   acl_save_exec_prefix="$exec_prefix"
8436   exec_prefix="$acl_final_exec_prefix"
8437   eval x=\"$x\"
8438   exec_prefix="$acl_save_exec_prefix"
8439   prefix="$acl_save_prefix"
8440
8441                     if test "X$x" = "X-I$additional_includedir"; then
8442                       haveit=yes
8443                       break
8444                     fi
8445                   done
8446                   if test -z "$haveit"; then
8447                     if test -d "$additional_includedir"; then
8448                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8449                     fi
8450                   fi
8451                 fi
8452               fi
8453             fi
8454                         if test -n "$found_la"; then
8455                                                         save_libdir="$libdir"
8456               case "$found_la" in
8457                 */* | *\\*) . "$found_la" ;;
8458                 *) . "./$found_la" ;;
8459               esac
8460               libdir="$save_libdir"
8461                             for dep in $dependency_libs; do
8462                 case "$dep" in
8463                   -L*)
8464                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8465                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8466                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8467                       haveit=
8468                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8469                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8470                         if test -n "$GCC"; then
8471                           case $host_os in
8472                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8473                           esac
8474                         fi
8475                       fi
8476                       if test -z "$haveit"; then
8477                         haveit=
8478                         for x in $LDFLAGS $LIBPTH; do
8479
8480   acl_save_prefix="$prefix"
8481   prefix="$acl_final_prefix"
8482   acl_save_exec_prefix="$exec_prefix"
8483   exec_prefix="$acl_final_exec_prefix"
8484   eval x=\"$x\"
8485   exec_prefix="$acl_save_exec_prefix"
8486   prefix="$acl_save_prefix"
8487
8488                           if test "X$x" = "X-L$additional_libdir"; then
8489                             haveit=yes
8490                             break
8491                           fi
8492                         done
8493                         if test -z "$haveit"; then
8494                           if test -d "$additional_libdir"; then
8495                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8496                           fi
8497                         fi
8498                         haveit=
8499                         for x in $LDFLAGS $LTLIBPTH; do
8500
8501   acl_save_prefix="$prefix"
8502   prefix="$acl_final_prefix"
8503   acl_save_exec_prefix="$exec_prefix"
8504   exec_prefix="$acl_final_exec_prefix"
8505   eval x=\"$x\"
8506   exec_prefix="$acl_save_exec_prefix"
8507   prefix="$acl_save_prefix"
8508
8509                           if test "X$x" = "X-L$additional_libdir"; then
8510                             haveit=yes
8511                             break
8512                           fi
8513                         done
8514                         if test -z "$haveit"; then
8515                           if test -d "$additional_libdir"; then
8516                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8517                           fi
8518                         fi
8519                       fi
8520                     fi
8521                     ;;
8522                   -R*)
8523                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8524                     if test "$enable_rpath" != no; then
8525                                                                   haveit=
8526                       for x in $rpathdirs; do
8527                         if test "X$x" = "X$dir"; then
8528                           haveit=yes
8529                           break
8530                         fi
8531                       done
8532                       if test -z "$haveit"; then
8533                         rpathdirs="$rpathdirs $dir"
8534                       fi
8535                                                                   haveit=
8536                       for x in $ltrpathdirs; do
8537                         if test "X$x" = "X$dir"; then
8538                           haveit=yes
8539                           break
8540                         fi
8541                       done
8542                       if test -z "$haveit"; then
8543                         ltrpathdirs="$ltrpathdirs $dir"
8544                       fi
8545                     fi
8546                     ;;
8547                   -l*)
8548                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8549                     ;;
8550                   *.la)
8551                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8552                     ;;
8553                   *)
8554                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8555                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8556                     ;;
8557                 esac
8558               done
8559             fi
8560           else
8561                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8562             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8563           fi
8564         fi
8565       fi
8566     done
8567   done
8568   if test "X$rpathdirs" != "X"; then
8569     if test -n "$acl_hardcode_libdir_separator"; then
8570                         alldirs=
8571       for found_dir in $rpathdirs; do
8572         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8573       done
8574             acl_save_libdir="$libdir"
8575       libdir="$alldirs"
8576       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8577       libdir="$acl_save_libdir"
8578       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8579     else
8580             for found_dir in $rpathdirs; do
8581         acl_save_libdir="$libdir"
8582         libdir="$found_dir"
8583         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8584         libdir="$acl_save_libdir"
8585         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8586       done
8587     fi
8588   fi
8589   if test "X$ltrpathdirs" != "X"; then
8590             for found_dir in $ltrpathdirs; do
8591       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8592     done
8593   fi
8594
8595
8596
8597
8598
8599
8600     ac_cv_libpth_libs="$LIBPTH"
8601     ac_cv_libpth_ltlibs="$LTLIBPTH"
8602     ac_cv_libpth_cppflags="$INCPTH"
8603     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8604
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8607 $as_echo "$ac_cv_libpth_libs" >&6; }
8608   LIBPTH="$ac_cv_libpth_libs"
8609   LTLIBPTH="$ac_cv_libpth_ltlibs"
8610   INCPTH="$ac_cv_libpth_cppflags"
8611   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8612
8613   for element in $INCPTH; do
8614     haveit=
8615     for x in $CPPFLAGS; do
8616
8617   acl_save_prefix="$prefix"
8618   prefix="$acl_final_prefix"
8619   acl_save_exec_prefix="$exec_prefix"
8620   exec_prefix="$acl_final_exec_prefix"
8621   eval x=\"$x\"
8622   exec_prefix="$acl_save_exec_prefix"
8623   prefix="$acl_save_prefix"
8624
8625       if test "X$x" = "X$element"; then
8626         haveit=yes
8627         break
8628       fi
8629     done
8630     if test -z "$haveit"; then
8631       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8632     fi
8633   done
8634
8635
8636
8637
8638       HAVE_LIBPTH=yes
8639
8640
8641
8642       gl_have_pth=
8643       gl_save_LIBS="$LIBS"
8644       LIBS="$LIBS $LIBPTH"
8645       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h.  */
8647 #include <pth.h>
8648 int
8649 main ()
8650 {
8651 pth_self();
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 if ac_fn_c_try_link "$LINENO"; then :
8657   gl_have_pth=yes
8658 fi
8659 rm -f core conftest.err conftest.$ac_objext \
8660     conftest$ac_exeext conftest.$ac_ext
8661       LIBS="$gl_save_LIBS"
8662       if test -n "$gl_have_pth"; then
8663         gl_threads_api=pth
8664         LIBTHREAD="$LIBPTH"
8665         LTLIBTHREAD="$LTLIBPTH"
8666         LIBMULTITHREAD="$LIBTHREAD"
8667         LTLIBMULTITHREAD="$LTLIBTHREAD"
8668
8669 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8670
8671         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8672           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8673
8674 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8675
8676             LIBTHREAD=
8677             LTLIBTHREAD=
8678           fi
8679         fi
8680       else
8681         CPPFLAGS="$gl_save_CPPFLAGS"
8682       fi
8683     fi
8684     if test -z "$gl_have_pthread"; then
8685       case "$gl_use_threads" in
8686         yes | windows | win32) # The 'win32' is for backward compatibility.
8687           if { case "$host_os" in
8688                  mingw*) true;;
8689                  *) false;;
8690                esac
8691              }; then
8692             gl_threads_api=windows
8693
8694 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8695
8696           fi
8697           ;;
8698       esac
8699     fi
8700   fi
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8702 $as_echo_n "checking for multithread API to use... " >&6; }
8703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8704 $as_echo "$gl_threads_api" >&6; }
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716   if test "$gl_threads_api" = posix; then
8717     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8718     # pthread_rwlock_* functions.
8719     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8720 "
8721 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8722
8723 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8724
8725 fi
8726
8727     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8728     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h.  */
8730
8731       #include <pthread.h>
8732 int
8733 main ()
8734 {
8735
8736 #if __FreeBSD__ == 4
8737 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8738 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8739        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8740 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8741 #else
8742 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8743 return !x;
8744 #endif
8745
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 if ac_fn_c_try_compile "$LINENO"; then :
8751
8752 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8753
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756   fi
8757   :
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770     use_additional=yes
8771
8772   acl_save_prefix="$prefix"
8773   prefix="$acl_final_prefix"
8774   acl_save_exec_prefix="$exec_prefix"
8775   exec_prefix="$acl_final_exec_prefix"
8776
8777     eval additional_includedir=\"$includedir\"
8778     eval additional_libdir=\"$libdir\"
8779
8780   exec_prefix="$acl_save_exec_prefix"
8781   prefix="$acl_save_prefix"
8782
8783
8784 # Check whether --with-libiconv-prefix was given.
8785 if test "${with_libiconv_prefix+set}" = set; then :
8786   withval=$with_libiconv_prefix;
8787     if test "X$withval" = "Xno"; then
8788       use_additional=no
8789     else
8790       if test "X$withval" = "X"; then
8791
8792   acl_save_prefix="$prefix"
8793   prefix="$acl_final_prefix"
8794   acl_save_exec_prefix="$exec_prefix"
8795   exec_prefix="$acl_final_exec_prefix"
8796
8797           eval additional_includedir=\"$includedir\"
8798           eval additional_libdir=\"$libdir\"
8799
8800   exec_prefix="$acl_save_exec_prefix"
8801   prefix="$acl_save_prefix"
8802
8803       else
8804         additional_includedir="$withval/include"
8805         additional_libdir="$withval/$acl_libdirstem"
8806         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8807            && ! test -d "$withval/$acl_libdirstem"; then
8808           additional_libdir="$withval/$acl_libdirstem2"
8809         fi
8810       fi
8811     fi
8812
8813 fi
8814
8815       LIBICONV=
8816   LTLIBICONV=
8817   INCICONV=
8818   LIBICONV_PREFIX=
8819       HAVE_LIBICONV=
8820   rpathdirs=
8821   ltrpathdirs=
8822   names_already_handled=
8823   names_next_round='iconv '
8824   while test -n "$names_next_round"; do
8825     names_this_round="$names_next_round"
8826     names_next_round=
8827     for name in $names_this_round; do
8828       already_handled=
8829       for n in $names_already_handled; do
8830         if test "$n" = "$name"; then
8831           already_handled=yes
8832           break
8833         fi
8834       done
8835       if test -z "$already_handled"; then
8836         names_already_handled="$names_already_handled $name"
8837                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8838         eval value=\"\$HAVE_LIB$uppername\"
8839         if test -n "$value"; then
8840           if test "$value" = yes; then
8841             eval value=\"\$LIB$uppername\"
8842             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8843             eval value=\"\$LTLIB$uppername\"
8844             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8845           else
8846                                     :
8847           fi
8848         else
8849                               found_dir=
8850           found_la=
8851           found_so=
8852           found_a=
8853           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8854           if test -n "$acl_shlibext"; then
8855             shrext=".$acl_shlibext"             # typically: shrext=.so
8856           else
8857             shrext=
8858           fi
8859           if test $use_additional = yes; then
8860             dir="$additional_libdir"
8861                                     if test -n "$acl_shlibext"; then
8862               if test -f "$dir/$libname$shrext"; then
8863                 found_dir="$dir"
8864                 found_so="$dir/$libname$shrext"
8865               else
8866                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8867                   ver=`(cd "$dir" && \
8868                         for f in "$libname$shrext".*; do echo "$f"; done \
8869                         | sed -e "s,^$libname$shrext\\\\.,," \
8870                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8871                         | sed 1q ) 2>/dev/null`
8872                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8873                     found_dir="$dir"
8874                     found_so="$dir/$libname$shrext.$ver"
8875                   fi
8876                 else
8877                   eval library_names=\"$acl_library_names_spec\"
8878                   for f in $library_names; do
8879                     if test -f "$dir/$f"; then
8880                       found_dir="$dir"
8881                       found_so="$dir/$f"
8882                       break
8883                     fi
8884                   done
8885                 fi
8886               fi
8887             fi
8888                         if test "X$found_dir" = "X"; then
8889               if test -f "$dir/$libname.$acl_libext"; then
8890                 found_dir="$dir"
8891                 found_a="$dir/$libname.$acl_libext"
8892               fi
8893             fi
8894             if test "X$found_dir" != "X"; then
8895               if test -f "$dir/$libname.la"; then
8896                 found_la="$dir/$libname.la"
8897               fi
8898             fi
8899           fi
8900           if test "X$found_dir" = "X"; then
8901             for x in $LDFLAGS $LTLIBICONV; do
8902
8903   acl_save_prefix="$prefix"
8904   prefix="$acl_final_prefix"
8905   acl_save_exec_prefix="$exec_prefix"
8906   exec_prefix="$acl_final_exec_prefix"
8907   eval x=\"$x\"
8908   exec_prefix="$acl_save_exec_prefix"
8909   prefix="$acl_save_prefix"
8910
8911               case "$x" in
8912                 -L*)
8913                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8914                                     if test -n "$acl_shlibext"; then
8915                     if test -f "$dir/$libname$shrext"; then
8916                       found_dir="$dir"
8917                       found_so="$dir/$libname$shrext"
8918                     else
8919                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8920                         ver=`(cd "$dir" && \
8921                               for f in "$libname$shrext".*; do echo "$f"; done \
8922                               | sed -e "s,^$libname$shrext\\\\.,," \
8923                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8924                               | sed 1q ) 2>/dev/null`
8925                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8926                           found_dir="$dir"
8927                           found_so="$dir/$libname$shrext.$ver"
8928                         fi
8929                       else
8930                         eval library_names=\"$acl_library_names_spec\"
8931                         for f in $library_names; do
8932                           if test -f "$dir/$f"; then
8933                             found_dir="$dir"
8934                             found_so="$dir/$f"
8935                             break
8936                           fi
8937                         done
8938                       fi
8939                     fi
8940                   fi
8941                                     if test "X$found_dir" = "X"; then
8942                     if test -f "$dir/$libname.$acl_libext"; then
8943                       found_dir="$dir"
8944                       found_a="$dir/$libname.$acl_libext"
8945                     fi
8946                   fi
8947                   if test "X$found_dir" != "X"; then
8948                     if test -f "$dir/$libname.la"; then
8949                       found_la="$dir/$libname.la"
8950                     fi
8951                   fi
8952                   ;;
8953               esac
8954               if test "X$found_dir" != "X"; then
8955                 break
8956               fi
8957             done
8958           fi
8959           if test "X$found_dir" != "X"; then
8960                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8961             if test "X$found_so" != "X"; then
8962                                                         if test "$enable_rpath" = no \
8963                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8964                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8965                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8966               else
8967                                                                                 haveit=
8968                 for x in $ltrpathdirs; do
8969                   if test "X$x" = "X$found_dir"; then
8970                     haveit=yes
8971                     break
8972                   fi
8973                 done
8974                 if test -z "$haveit"; then
8975                   ltrpathdirs="$ltrpathdirs $found_dir"
8976                 fi
8977                                 if test "$acl_hardcode_direct" = yes; then
8978                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8979                 else
8980                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8981                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8982                                                             haveit=
8983                     for x in $rpathdirs; do
8984                       if test "X$x" = "X$found_dir"; then
8985                         haveit=yes
8986                         break
8987                       fi
8988                     done
8989                     if test -z "$haveit"; then
8990                       rpathdirs="$rpathdirs $found_dir"
8991                     fi
8992                   else
8993                                                                                 haveit=
8994                     for x in $LDFLAGS $LIBICONV; do
8995
8996   acl_save_prefix="$prefix"
8997   prefix="$acl_final_prefix"
8998   acl_save_exec_prefix="$exec_prefix"
8999   exec_prefix="$acl_final_exec_prefix"
9000   eval x=\"$x\"
9001   exec_prefix="$acl_save_exec_prefix"
9002   prefix="$acl_save_prefix"
9003
9004                       if test "X$x" = "X-L$found_dir"; then
9005                         haveit=yes
9006                         break
9007                       fi
9008                     done
9009                     if test -z "$haveit"; then
9010                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9011                     fi
9012                     if test "$acl_hardcode_minus_L" != no; then
9013                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9014                     else
9015                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9016                     fi
9017                   fi
9018                 fi
9019               fi
9020             else
9021               if test "X$found_a" != "X"; then
9022                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9023               else
9024                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9025               fi
9026             fi
9027                         additional_includedir=
9028             case "$found_dir" in
9029               */$acl_libdirstem | */$acl_libdirstem/)
9030                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9031                 if test "$name" = 'iconv'; then
9032                   LIBICONV_PREFIX="$basedir"
9033                 fi
9034                 additional_includedir="$basedir/include"
9035                 ;;
9036               */$acl_libdirstem2 | */$acl_libdirstem2/)
9037                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9038                 if test "$name" = 'iconv'; then
9039                   LIBICONV_PREFIX="$basedir"
9040                 fi
9041                 additional_includedir="$basedir/include"
9042                 ;;
9043             esac
9044             if test "X$additional_includedir" != "X"; then
9045                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9046                 haveit=
9047                 if test "X$additional_includedir" = "X/usr/local/include"; then
9048                   if test -n "$GCC"; then
9049                     case $host_os in
9050                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9051                     esac
9052                   fi
9053                 fi
9054                 if test -z "$haveit"; then
9055                   for x in $CPPFLAGS $INCICONV; do
9056
9057   acl_save_prefix="$prefix"
9058   prefix="$acl_final_prefix"
9059   acl_save_exec_prefix="$exec_prefix"
9060   exec_prefix="$acl_final_exec_prefix"
9061   eval x=\"$x\"
9062   exec_prefix="$acl_save_exec_prefix"
9063   prefix="$acl_save_prefix"
9064
9065                     if test "X$x" = "X-I$additional_includedir"; then
9066                       haveit=yes
9067                       break
9068                     fi
9069                   done
9070                   if test -z "$haveit"; then
9071                     if test -d "$additional_includedir"; then
9072                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9073                     fi
9074                   fi
9075                 fi
9076               fi
9077             fi
9078                         if test -n "$found_la"; then
9079                                                         save_libdir="$libdir"
9080               case "$found_la" in
9081                 */* | *\\*) . "$found_la" ;;
9082                 *) . "./$found_la" ;;
9083               esac
9084               libdir="$save_libdir"
9085                             for dep in $dependency_libs; do
9086                 case "$dep" in
9087                   -L*)
9088                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9089                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9090                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9091                       haveit=
9092                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9093                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9094                         if test -n "$GCC"; then
9095                           case $host_os in
9096                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9097                           esac
9098                         fi
9099                       fi
9100                       if test -z "$haveit"; then
9101                         haveit=
9102                         for x in $LDFLAGS $LIBICONV; do
9103
9104   acl_save_prefix="$prefix"
9105   prefix="$acl_final_prefix"
9106   acl_save_exec_prefix="$exec_prefix"
9107   exec_prefix="$acl_final_exec_prefix"
9108   eval x=\"$x\"
9109   exec_prefix="$acl_save_exec_prefix"
9110   prefix="$acl_save_prefix"
9111
9112                           if test "X$x" = "X-L$additional_libdir"; then
9113                             haveit=yes
9114                             break
9115                           fi
9116                         done
9117                         if test -z "$haveit"; then
9118                           if test -d "$additional_libdir"; then
9119                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9120                           fi
9121                         fi
9122                         haveit=
9123                         for x in $LDFLAGS $LTLIBICONV; do
9124
9125   acl_save_prefix="$prefix"
9126   prefix="$acl_final_prefix"
9127   acl_save_exec_prefix="$exec_prefix"
9128   exec_prefix="$acl_final_exec_prefix"
9129   eval x=\"$x\"
9130   exec_prefix="$acl_save_exec_prefix"
9131   prefix="$acl_save_prefix"
9132
9133                           if test "X$x" = "X-L$additional_libdir"; then
9134                             haveit=yes
9135                             break
9136                           fi
9137                         done
9138                         if test -z "$haveit"; then
9139                           if test -d "$additional_libdir"; then
9140                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9141                           fi
9142                         fi
9143                       fi
9144                     fi
9145                     ;;
9146                   -R*)
9147                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9148                     if test "$enable_rpath" != no; then
9149                                                                   haveit=
9150                       for x in $rpathdirs; do
9151                         if test "X$x" = "X$dir"; then
9152                           haveit=yes
9153                           break
9154                         fi
9155                       done
9156                       if test -z "$haveit"; then
9157                         rpathdirs="$rpathdirs $dir"
9158                       fi
9159                                                                   haveit=
9160                       for x in $ltrpathdirs; do
9161                         if test "X$x" = "X$dir"; then
9162                           haveit=yes
9163                           break
9164                         fi
9165                       done
9166                       if test -z "$haveit"; then
9167                         ltrpathdirs="$ltrpathdirs $dir"
9168                       fi
9169                     fi
9170                     ;;
9171                   -l*)
9172                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9173                     ;;
9174                   *.la)
9175                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9176                     ;;
9177                   *)
9178                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9179                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9180                     ;;
9181                 esac
9182               done
9183             fi
9184           else
9185                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9186             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9187           fi
9188         fi
9189       fi
9190     done
9191   done
9192   if test "X$rpathdirs" != "X"; then
9193     if test -n "$acl_hardcode_libdir_separator"; then
9194                         alldirs=
9195       for found_dir in $rpathdirs; do
9196         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9197       done
9198             acl_save_libdir="$libdir"
9199       libdir="$alldirs"
9200       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9201       libdir="$acl_save_libdir"
9202       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9203     else
9204             for found_dir in $rpathdirs; do
9205         acl_save_libdir="$libdir"
9206         libdir="$found_dir"
9207         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9208         libdir="$acl_save_libdir"
9209         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9210       done
9211     fi
9212   fi
9213   if test "X$ltrpathdirs" != "X"; then
9214             for found_dir in $ltrpathdirs; do
9215       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9216     done
9217   fi
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230           am_save_CPPFLAGS="$CPPFLAGS"
9231
9232   for element in $INCICONV; do
9233     haveit=
9234     for x in $CPPFLAGS; do
9235
9236   acl_save_prefix="$prefix"
9237   prefix="$acl_final_prefix"
9238   acl_save_exec_prefix="$exec_prefix"
9239   exec_prefix="$acl_final_exec_prefix"
9240   eval x=\"$x\"
9241   exec_prefix="$acl_save_exec_prefix"
9242   prefix="$acl_save_prefix"
9243
9244       if test "X$x" = "X$element"; then
9245         haveit=yes
9246         break
9247       fi
9248     done
9249     if test -z "$haveit"; then
9250       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9251     fi
9252   done
9253
9254
9255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9256 $as_echo_n "checking for iconv... " >&6; }
9257 if ${am_cv_func_iconv+:} false; then :
9258   $as_echo_n "(cached) " >&6
9259 else
9260
9261     am_cv_func_iconv="no, consider installing GNU libiconv"
9262     am_cv_lib_iconv=no
9263     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h.  */
9265
9266 #include <stdlib.h>
9267 #include <iconv.h>
9268
9269 int
9270 main ()
9271 {
9272 iconv_t cd = iconv_open("","");
9273            iconv(cd,NULL,NULL,NULL,NULL);
9274            iconv_close(cd);
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_link "$LINENO"; then :
9280   am_cv_func_iconv=yes
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext \
9283     conftest$ac_exeext conftest.$ac_ext
9284     if test "$am_cv_func_iconv" != yes; then
9285       am_save_LIBS="$LIBS"
9286       LIBS="$LIBS $LIBICONV"
9287       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h.  */
9289
9290 #include <stdlib.h>
9291 #include <iconv.h>
9292
9293 int
9294 main ()
9295 {
9296 iconv_t cd = iconv_open("","");
9297              iconv(cd,NULL,NULL,NULL,NULL);
9298              iconv_close(cd);
9299   ;
9300   return 0;
9301 }
9302 _ACEOF
9303 if ac_fn_c_try_link "$LINENO"; then :
9304   am_cv_lib_iconv=yes
9305         am_cv_func_iconv=yes
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext \
9308     conftest$ac_exeext conftest.$ac_ext
9309       LIBS="$am_save_LIBS"
9310     fi
9311
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9314 $as_echo "$am_cv_func_iconv" >&6; }
9315   if test "$am_cv_func_iconv" = yes; then
9316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9317 $as_echo_n "checking for working iconv... " >&6; }
9318 if ${am_cv_func_iconv_works+:} false; then :
9319   $as_echo_n "(cached) " >&6
9320 else
9321
9322                   am_save_LIBS="$LIBS"
9323       if test $am_cv_lib_iconv = yes; then
9324         LIBS="$LIBS $LIBICONV"
9325       fi
9326       if test "$cross_compiling" = yes; then :
9327
9328          case "$host_os" in
9329            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9330            *)            am_cv_func_iconv_works="guessing yes" ;;
9331          esac
9332
9333 else
9334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h.  */
9336
9337 #include <iconv.h>
9338 #include <string.h>
9339 int main ()
9340 {
9341   int result = 0;
9342   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9343      returns.  */
9344   {
9345     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9346     if (cd_utf8_to_88591 != (iconv_t)(-1))
9347       {
9348         static const char input[] = "\342\202\254"; /* EURO SIGN */
9349         char buf[10];
9350         const char *inptr = input;
9351         size_t inbytesleft = strlen (input);
9352         char *outptr = buf;
9353         size_t outbytesleft = sizeof (buf);
9354         size_t res = iconv (cd_utf8_to_88591,
9355                             (char **) &inptr, &inbytesleft,
9356                             &outptr, &outbytesleft);
9357         if (res == 0)
9358           result |= 1;
9359         iconv_close (cd_utf8_to_88591);
9360       }
9361   }
9362   /* Test against Solaris 10 bug: Failures are not distinguishable from
9363      successful returns.  */
9364   {
9365     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9366     if (cd_ascii_to_88591 != (iconv_t)(-1))
9367       {
9368         static const char input[] = "\263";
9369         char buf[10];
9370         const char *inptr = input;
9371         size_t inbytesleft = strlen (input);
9372         char *outptr = buf;
9373         size_t outbytesleft = sizeof (buf);
9374         size_t res = iconv (cd_ascii_to_88591,
9375                             (char **) &inptr, &inbytesleft,
9376                             &outptr, &outbytesleft);
9377         if (res == 0)
9378           result |= 2;
9379         iconv_close (cd_ascii_to_88591);
9380       }
9381   }
9382   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9383   {
9384     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9385     if (cd_88591_to_utf8 != (iconv_t)(-1))
9386       {
9387         static const char input[] = "\304";
9388         static char buf[2] = { (char)0xDE, (char)0xAD };
9389         const char *inptr = input;
9390         size_t inbytesleft = 1;
9391         char *outptr = buf;
9392         size_t outbytesleft = 1;
9393         size_t res = iconv (cd_88591_to_utf8,
9394                             (char **) &inptr, &inbytesleft,
9395                             &outptr, &outbytesleft);
9396         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9397           result |= 4;
9398         iconv_close (cd_88591_to_utf8);
9399       }
9400   }
9401 #if 0 /* This bug could be worked around by the caller.  */
9402   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9403   {
9404     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9405     if (cd_88591_to_utf8 != (iconv_t)(-1))
9406       {
9407         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9408         char buf[50];
9409         const char *inptr = input;
9410         size_t inbytesleft = strlen (input);
9411         char *outptr = buf;
9412         size_t outbytesleft = sizeof (buf);
9413         size_t res = iconv (cd_88591_to_utf8,
9414                             (char **) &inptr, &inbytesleft,
9415                             &outptr, &outbytesleft);
9416         if ((int)res > 0)
9417           result |= 8;
9418         iconv_close (cd_88591_to_utf8);
9419       }
9420   }
9421 #endif
9422   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9423      provided.  */
9424   if (/* Try standardized names.  */
9425       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9426       /* Try IRIX, OSF/1 names.  */
9427       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9428       /* Try AIX names.  */
9429       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9430       /* Try HP-UX names.  */
9431       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9432     result |= 16;
9433   return result;
9434 }
9435 _ACEOF
9436 if ac_fn_c_try_run "$LINENO"; then :
9437   am_cv_func_iconv_works=yes
9438 else
9439   am_cv_func_iconv_works=no
9440 fi
9441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9442   conftest.$ac_objext conftest.beam conftest.$ac_ext
9443 fi
9444
9445       LIBS="$am_save_LIBS"
9446
9447 fi
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9449 $as_echo "$am_cv_func_iconv_works" >&6; }
9450     case "$am_cv_func_iconv_works" in
9451       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9452       *)   am_func_iconv=yes ;;
9453     esac
9454   else
9455     am_func_iconv=no am_cv_lib_iconv=no
9456   fi
9457   if test "$am_func_iconv" = yes; then
9458
9459 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9460
9461   fi
9462   if test "$am_cv_lib_iconv" = yes; then
9463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9464 $as_echo_n "checking how to link with libiconv... " >&6; }
9465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9466 $as_echo "$LIBICONV" >&6; }
9467   else
9468             CPPFLAGS="$am_save_CPPFLAGS"
9469     LIBICONV=
9470     LTLIBICONV=
9471   fi
9472
9473
9474
9475   if test "$am_cv_func_iconv" = yes; then
9476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9477 $as_echo_n "checking for iconv declaration... " >&6; }
9478     if ${am_cv_proto_iconv+:} false; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481
9482       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h.  */
9484
9485 #include <stdlib.h>
9486 #include <iconv.h>
9487 extern
9488 #ifdef __cplusplus
9489 "C"
9490 #endif
9491 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9492 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9493 #else
9494 size_t iconv();
9495 #endif
9496
9497 int
9498 main ()
9499 {
9500
9501   ;
9502   return 0;
9503 }
9504 _ACEOF
9505 if ac_fn_c_try_compile "$LINENO"; then :
9506   am_cv_proto_iconv_arg1=""
9507 else
9508   am_cv_proto_iconv_arg1="const"
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511       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);"
9512 fi
9513
9514     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9515     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9516          $am_cv_proto_iconv" >&5
9517 $as_echo "
9518          $am_cv_proto_iconv" >&6; }
9519
9520 cat >>confdefs.h <<_ACEOF
9521 #define ICONV_CONST $am_cv_proto_iconv_arg1
9522 _ACEOF
9523
9524
9525   fi
9526
9527
9528
9529
9530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h.  */
9532 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9533 int
9534 main ()
9535 {
9536
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542
9543 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9544
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547     conftest$ac_exeext conftest.$ac_ext
9548
9549   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9550 do :
9551   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9552 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9553 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9554   cat >>confdefs.h <<_ACEOF
9555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9556 _ACEOF
9557
9558 fi
9559
9560 done
9561
9562   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9563     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9564     argz_stringify argz_next __fsetlocking
9565 do :
9566   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9567 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9568 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9569   cat >>confdefs.h <<_ACEOF
9570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9571 _ACEOF
9572
9573 fi
9574 done
9575
9576
9577           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9578 "
9579 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9580   ac_have_decl=1
9581 else
9582   ac_have_decl=0
9583 fi
9584
9585 cat >>confdefs.h <<_ACEOF
9586 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9587 _ACEOF
9588 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9589 "
9590 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9591   ac_have_decl=1
9592 else
9593   ac_have_decl=0
9594 fi
9595
9596 cat >>confdefs.h <<_ACEOF
9597 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9598 _ACEOF
9599
9600
9601
9602
9603                       for ac_prog in bison
9604 do
9605   # Extract the first word of "$ac_prog", so it can be a program name with args.
9606 set dummy $ac_prog; ac_word=$2
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9608 $as_echo_n "checking for $ac_word... " >&6; }
9609 if ${ac_cv_prog_INTLBISON+:} false; then :
9610   $as_echo_n "(cached) " >&6
9611 else
9612   if test -n "$INTLBISON"; then
9613   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9614 else
9615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616 for as_dir in $PATH
9617 do
9618   IFS=$as_save_IFS
9619   test -z "$as_dir" && as_dir=.
9620     for ac_exec_ext in '' $ac_executable_extensions; do
9621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9622     ac_cv_prog_INTLBISON="$ac_prog"
9623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9624     break 2
9625   fi
9626 done
9627   done
9628 IFS=$as_save_IFS
9629
9630 fi
9631 fi
9632 INTLBISON=$ac_cv_prog_INTLBISON
9633 if test -n "$INTLBISON"; then
9634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9635 $as_echo "$INTLBISON" >&6; }
9636 else
9637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9639 fi
9640
9641
9642   test -n "$INTLBISON" && break
9643 done
9644
9645   if test -z "$INTLBISON"; then
9646     ac_verc_fail=yes
9647   else
9648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9649 $as_echo_n "checking version of bison... " >&6; }
9650     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9651     case $ac_prog_version in
9652       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9653       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9654          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9655       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9656     esac
9657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9658 $as_echo "$ac_prog_version" >&6; }
9659   fi
9660   if test $ac_verc_fail = yes; then
9661     INTLBISON=:
9662   fi
9663
9664
9665
9666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9667 $as_echo_n "checking for long long int... " >&6; }
9668 if ${ac_cv_type_long_long_int+:} false; then :
9669   $as_echo_n "(cached) " >&6
9670 else
9671   ac_cv_type_long_long_int=yes
9672       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9673         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9674         if test $ac_cv_type_long_long_int = yes; then
9675                                         if test "$cross_compiling" = yes; then :
9676   :
9677 else
9678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h.  */
9680 #include <limits.h>
9681                  #ifndef LLONG_MAX
9682                  # define HALF \
9683                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9684                  # define LLONG_MAX (HALF - 1 + HALF)
9685                  #endif
9686 int
9687 main ()
9688 {
9689 long long int n = 1;
9690                  int i;
9691                  for (i = 0; ; i++)
9692                    {
9693                      long long int m = n << i;
9694                      if (m >> i != n)
9695                        return 1;
9696                      if (LLONG_MAX / 2 < m)
9697                        break;
9698                    }
9699                  return 0;
9700   ;
9701   return 0;
9702 }
9703 _ACEOF
9704 if ac_fn_c_try_run "$LINENO"; then :
9705
9706 else
9707   ac_cv_type_long_long_int=no
9708 fi
9709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9710   conftest.$ac_objext conftest.beam conftest.$ac_ext
9711 fi
9712
9713         fi
9714       fi
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9717 $as_echo "$ac_cv_type_long_long_int" >&6; }
9718   if test $ac_cv_type_long_long_int = yes; then
9719
9720 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9721
9722   fi
9723
9724
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9726 $as_echo_n "checking for wchar_t... " >&6; }
9727 if ${gt_cv_c_wchar_t+:} false; then :
9728   $as_echo_n "(cached) " >&6
9729 else
9730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h.  */
9732 #include <stddef.h>
9733             wchar_t foo = (wchar_t)'\0';
9734 int
9735 main ()
9736 {
9737
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"; then :
9743   gt_cv_c_wchar_t=yes
9744 else
9745   gt_cv_c_wchar_t=no
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 fi
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9750 $as_echo "$gt_cv_c_wchar_t" >&6; }
9751   if test $gt_cv_c_wchar_t = yes; then
9752
9753 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9754
9755   fi
9756
9757
9758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9759 $as_echo_n "checking for wint_t... " >&6; }
9760 if ${gt_cv_c_wint_t+:} false; then :
9761   $as_echo_n "(cached) " >&6
9762 else
9763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h.  */
9765
9766 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9767    <wchar.h>.
9768    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9769    before <wchar.h>.  */
9770 #include <stddef.h>
9771 #include <stdio.h>
9772 #include <time.h>
9773 #include <wchar.h>
9774             wint_t foo = (wchar_t)'\0';
9775 int
9776 main ()
9777 {
9778
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 if ac_fn_c_try_compile "$LINENO"; then :
9784   gt_cv_c_wint_t=yes
9785 else
9786   gt_cv_c_wint_t=no
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9791 $as_echo "$gt_cv_c_wint_t" >&6; }
9792   if test $gt_cv_c_wint_t = yes; then
9793
9794 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9795
9796   fi
9797
9798
9799
9800
9801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9802 $as_echo_n "checking for intmax_t... " >&6; }
9803 if ${gt_cv_c_intmax_t+:} false; then :
9804   $as_echo_n "(cached) " >&6
9805 else
9806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h.  */
9808
9809 #include <stddef.h>
9810 #include <stdlib.h>
9811 #if HAVE_STDINT_H_WITH_UINTMAX
9812 #include <stdint.h>
9813 #endif
9814 #if HAVE_INTTYPES_H_WITH_UINTMAX
9815 #include <inttypes.h>
9816 #endif
9817
9818 int
9819 main ()
9820 {
9821 intmax_t x = -1;
9822             return !x;
9823   ;
9824   return 0;
9825 }
9826 _ACEOF
9827 if ac_fn_c_try_compile "$LINENO"; then :
9828   gt_cv_c_intmax_t=yes
9829 else
9830   gt_cv_c_intmax_t=no
9831 fi
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9835 $as_echo "$gt_cv_c_intmax_t" >&6; }
9836   if test $gt_cv_c_intmax_t = yes; then
9837
9838 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9839
9840   fi
9841
9842
9843
9844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9845 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9846 if ${gt_cv_func_printf_posix+:} false; then :
9847   $as_echo_n "(cached) " >&6
9848 else
9849
9850       if test "$cross_compiling" = yes; then :
9851
9852           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h.  */
9854
9855 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9856   notposix
9857 #endif
9858
9859 _ACEOF
9860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861   $EGREP "notposix" >/dev/null 2>&1; then :
9862   gt_cv_func_printf_posix="guessing no"
9863 else
9864   gt_cv_func_printf_posix="guessing yes"
9865 fi
9866 rm -f conftest*
9867
9868
9869 else
9870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h.  */
9872
9873 #include <stdio.h>
9874 #include <string.h>
9875 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9876    dollar expansion (possibly an autoconf bug).  */
9877 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9878 static char buf[100];
9879 int main ()
9880 {
9881   sprintf (buf, format, 33, 55);
9882   return (strcmp (buf, "55 33") != 0);
9883 }
9884 _ACEOF
9885 if ac_fn_c_try_run "$LINENO"; then :
9886   gt_cv_func_printf_posix=yes
9887 else
9888   gt_cv_func_printf_posix=no
9889 fi
9890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9891   conftest.$ac_objext conftest.beam conftest.$ac_ext
9892 fi
9893
9894
9895 fi
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9897 $as_echo "$gt_cv_func_printf_posix" >&6; }
9898   case $gt_cv_func_printf_posix in
9899     *yes)
9900
9901 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9902
9903       ;;
9904   esac
9905
9906
9907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9908 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9909 if ${ac_cv_gnu_library_2_1+:} false; then :
9910   $as_echo_n "(cached) " >&6
9911 else
9912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h.  */
9914
9915 #include <features.h>
9916 #ifdef __GNU_LIBRARY__
9917  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9918   Lucky GNU user
9919  #endif
9920 #endif
9921 #ifdef __UCLIBC__
9922  Lucky user
9923 #endif
9924
9925 _ACEOF
9926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9927   $EGREP "Lucky" >/dev/null 2>&1; then :
9928   ac_cv_gnu_library_2_1=yes
9929 else
9930   ac_cv_gnu_library_2_1=no
9931 fi
9932 rm -f conftest*
9933
9934
9935
9936 fi
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9938 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9939
9940     GLIBC21="$ac_cv_gnu_library_2_1"
9941
9942
9943
9944   for ac_header in stdint.h
9945 do :
9946   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9947 if test "x$ac_cv_header_stdint_h" = xyes; then :
9948   cat >>confdefs.h <<_ACEOF
9949 #define HAVE_STDINT_H 1
9950 _ACEOF
9951
9952 fi
9953
9954 done
9955
9956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9957 $as_echo_n "checking for SIZE_MAX... " >&6; }
9958 if ${gl_cv_size_max+:} false; then :
9959   $as_echo_n "(cached) " >&6
9960 else
9961
9962     gl_cv_size_max=
9963     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h.  */
9965
9966 #include <limits.h>
9967 #if HAVE_STDINT_H
9968 #include <stdint.h>
9969 #endif
9970 #ifdef SIZE_MAX
9971 Found it
9972 #endif
9973
9974 _ACEOF
9975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9976   $EGREP "Found it" >/dev/null 2>&1; then :
9977   gl_cv_size_max=yes
9978 fi
9979 rm -f conftest*
9980
9981     if test -z "$gl_cv_size_max"; then
9982                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
9983 #include <limits.h>"; then :
9984
9985 else
9986   size_t_bits_minus_1=
9987 fi
9988
9989       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
9990
9991 else
9992   fits_in_uint=
9993 fi
9994
9995       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9996         if test $fits_in_uint = 1; then
9997                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h.  */
9999 #include <stddef.h>
10000                  extern size_t foo;
10001                  extern unsigned long foo;
10002
10003 int
10004 main ()
10005 {
10006
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 if ac_fn_c_try_compile "$LINENO"; then :
10012   fits_in_uint=0
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015         fi
10016                                 if test $fits_in_uint = 1; then
10017           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10018         else
10019           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10020         fi
10021       else
10022                 gl_cv_size_max='((size_t)~(size_t)0)'
10023       fi
10024     fi
10025
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10028 $as_echo "$gl_cv_size_max" >&6; }
10029   if test "$gl_cv_size_max" != yes; then
10030
10031 cat >>confdefs.h <<_ACEOF
10032 #define SIZE_MAX $gl_cv_size_max
10033 _ACEOF
10034
10035   fi
10036
10037
10038
10039
10040   for ac_header in stdint.h
10041 do :
10042   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10043 if test "x$ac_cv_header_stdint_h" = xyes; then :
10044   cat >>confdefs.h <<_ACEOF
10045 #define HAVE_STDINT_H 1
10046 _ACEOF
10047
10048 fi
10049
10050 done
10051
10052
10053
10054
10055
10056   for ac_func in $ac_func_list
10057 do :
10058   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10059 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10060 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10061   cat >>confdefs.h <<_ACEOF
10062 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10063 _ACEOF
10064
10065 fi
10066 done
10067
10068
10069
10070
10071
10072
10073
10074
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10076 $as_echo_n "checking for working fcntl.h... " >&6; }
10077 if ${gl_cv_header_working_fcntl_h+:} false; then :
10078   $as_echo_n "(cached) " >&6
10079 else
10080   if test "$cross_compiling" = yes; then :
10081   gl_cv_header_working_fcntl_h=cross-compiling
10082 else
10083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h.  */
10085 #include <sys/types.h>
10086            #include <sys/stat.h>
10087            #if HAVE_UNISTD_H
10088            # include <unistd.h>
10089            #else /* on Windows with MSVC */
10090            # include <io.h>
10091            # include <stdlib.h>
10092            # defined sleep(n) _sleep ((n) * 1000)
10093            #endif
10094            #include <fcntl.h>
10095            #ifndef O_NOATIME
10096             #define O_NOATIME 0
10097            #endif
10098            #ifndef O_NOFOLLOW
10099             #define O_NOFOLLOW 0
10100            #endif
10101            static int const constants[] =
10102             {
10103               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10104               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10105             };
10106
10107 int
10108 main ()
10109 {
10110
10111             int result = !constants;
10112             #if HAVE_SYMLINK
10113             {
10114               static char const sym[] = "conftest.sym";
10115               if (symlink ("/dev/null", sym) != 0)
10116                 result |= 2;
10117               else
10118                 {
10119                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10120                   if (fd >= 0)
10121                     {
10122                       close (fd);
10123                       result |= 4;
10124                     }
10125                 }
10126               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10127                 result |= 2;
10128               else
10129                 {
10130                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10131                   if (fd >= 0)
10132                     {
10133                       close (fd);
10134                       result |= 4;
10135                     }
10136                 }
10137               unlink (sym);
10138             }
10139             #endif
10140             {
10141               static char const file[] = "confdefs.h";
10142               int fd = open (file, O_RDONLY | O_NOATIME);
10143               if (fd < 0)
10144                 result |= 8;
10145               else
10146                 {
10147                   struct stat st0;
10148                   if (fstat (fd, &st0) != 0)
10149                     result |= 16;
10150                   else
10151                     {
10152                       char c;
10153                       sleep (1);
10154                       if (read (fd, &c, 1) != 1)
10155                         result |= 24;
10156                       else
10157                         {
10158                           if (close (fd) != 0)
10159                             result |= 32;
10160                           else
10161                             {
10162                               struct stat st1;
10163                               if (stat (file, &st1) != 0)
10164                                 result |= 40;
10165                               else
10166                                 if (st0.st_atime != st1.st_atime)
10167                                   result |= 64;
10168                             }
10169                         }
10170                     }
10171                 }
10172             }
10173             return result;
10174   ;
10175   return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_c_try_run "$LINENO"; then :
10179   gl_cv_header_working_fcntl_h=yes
10180 else
10181   case $? in #(
10182         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10183         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10184         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10185          *) gl_cv_header_working_fcntl_h='no';;
10186         esac
10187 fi
10188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10189   conftest.$ac_objext conftest.beam conftest.$ac_ext
10190 fi
10191
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10194 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10195
10196   case $gl_cv_header_working_fcntl_h in #(
10197   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10198   *) ac_val=1;;
10199   esac
10200
10201 cat >>confdefs.h <<_ACEOF
10202 #define HAVE_WORKING_O_NOATIME $ac_val
10203 _ACEOF
10204
10205
10206   case $gl_cv_header_working_fcntl_h in #(
10207   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10208   *) ac_val=1;;
10209   esac
10210
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10213 _ACEOF
10214
10215
10216
10217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10218 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10219 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10220   $as_echo_n "(cached) " >&6
10221 else
10222   gt_save_LIBS="$LIBS"
10223      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10224      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h.  */
10226 #include <CoreFoundation/CFPreferences.h>
10227 int
10228 main ()
10229 {
10230 CFPreferencesCopyAppValue(NULL, NULL)
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236   gt_cv_func_CFPreferencesCopyAppValue=yes
10237 else
10238   gt_cv_func_CFPreferencesCopyAppValue=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241     conftest$ac_exeext conftest.$ac_ext
10242      LIBS="$gt_save_LIBS"
10243 fi
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10245 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10246   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10247
10248 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10249
10250   fi
10251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10252 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10253 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   gt_save_LIBS="$LIBS"
10257      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10258      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h.  */
10260 #include <CoreFoundation/CFLocale.h>
10261 int
10262 main ()
10263 {
10264 CFLocaleCopyCurrent();
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"; then :
10270   gt_cv_func_CFLocaleCopyCurrent=yes
10271 else
10272   gt_cv_func_CFLocaleCopyCurrent=no
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275     conftest$ac_exeext conftest.$ac_ext
10276      LIBS="$gt_save_LIBS"
10277 fi
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10279 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10280   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10281
10282 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10283
10284   fi
10285   INTL_MACOSX_LIBS=
10286   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10287     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10288   fi
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299     case "$enable_silent_rules" in
10300     yes) INTL_DEFAULT_VERBOSITY=0;;
10301     no)  INTL_DEFAULT_VERBOSITY=1;;
10302     *)   INTL_DEFAULT_VERBOSITY=1;;
10303   esac
10304
10305
10306   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10307 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10308
10309 else
10310
10311 $as_echo "#define ptrdiff_t long" >>confdefs.h
10312
10313
10314 fi
10315
10316   for ac_header in features.h stddef.h stdlib.h string.h
10317 do :
10318   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10319 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10321   cat >>confdefs.h <<_ACEOF
10322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10323 _ACEOF
10324
10325 fi
10326
10327 done
10328
10329   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10330     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10331 do :
10332   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10334 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10335   cat >>confdefs.h <<_ACEOF
10336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10337 _ACEOF
10338
10339 fi
10340 done
10341
10342
10343       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10344 "
10345 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10346   ac_have_decl=1
10347 else
10348   ac_have_decl=0
10349 fi
10350
10351 cat >>confdefs.h <<_ACEOF
10352 #define HAVE_DECL__SNPRINTF $ac_have_decl
10353 _ACEOF
10354 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10355 "
10356 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10357   ac_have_decl=1
10358 else
10359   ac_have_decl=0
10360 fi
10361
10362 cat >>confdefs.h <<_ACEOF
10363 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10364 _ACEOF
10365
10366
10367           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10368 "
10369 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10370   ac_have_decl=1
10371 else
10372   ac_have_decl=0
10373 fi
10374
10375 cat >>confdefs.h <<_ACEOF
10376 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10377 _ACEOF
10378
10379
10380   case $gt_cv_func_printf_posix in
10381     *yes) HAVE_POSIX_PRINTF=1 ;;
10382     *) HAVE_POSIX_PRINTF=0 ;;
10383   esac
10384
10385   if test "$ac_cv_func_asprintf" = yes; then
10386     HAVE_ASPRINTF=1
10387   else
10388     HAVE_ASPRINTF=0
10389   fi
10390
10391   if test "$ac_cv_func_snprintf" = yes; then
10392     HAVE_SNPRINTF=1
10393   else
10394     HAVE_SNPRINTF=0
10395   fi
10396
10397   if test "$ac_cv_func_newlocale" = yes; then
10398     HAVE_NEWLOCALE=1
10399   else
10400     HAVE_NEWLOCALE=0
10401   fi
10402
10403   if test "$ac_cv_func_wprintf" = yes; then
10404     HAVE_WPRINTF=1
10405   else
10406     HAVE_WPRINTF=0
10407   fi
10408
10409
10410
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10412 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10413 if ${am_cv_langinfo_codeset+:} false; then :
10414   $as_echo_n "(cached) " >&6
10415 else
10416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h.  */
10418 #include <langinfo.h>
10419 int
10420 main ()
10421 {
10422 char* cs = nl_langinfo(CODESET); return !cs;
10423   ;
10424   return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428   am_cv_langinfo_codeset=yes
10429 else
10430   am_cv_langinfo_codeset=no
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext \
10433     conftest$ac_exeext conftest.$ac_ext
10434
10435 fi
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10437 $as_echo "$am_cv_langinfo_codeset" >&6; }
10438   if test $am_cv_langinfo_codeset = yes; then
10439
10440 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10441
10442   fi
10443
10444
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10446 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10447 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10448   $as_echo_n "(cached) " >&6
10449 else
10450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h.  */
10452 #include <locale.h>
10453 int
10454 main ()
10455 {
10456 return LC_MESSAGES
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_link "$LINENO"; then :
10462   gt_cv_val_LC_MESSAGES=yes
10463 else
10464   gt_cv_val_LC_MESSAGES=no
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext \
10467     conftest$ac_exeext conftest.$ac_ext
10468 fi
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10470 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10471   if test $gt_cv_val_LC_MESSAGES = yes; then
10472
10473 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10474
10475   fi
10476
10477
10478                 if test "$enable_shared" = yes; then
10479     case "$host_os" in
10480       mingw* | cygwin*) is_woe32dll=yes ;;
10481       *) is_woe32dll=no ;;
10482     esac
10483   else
10484     is_woe32dll=no
10485   fi
10486   WOE32DLL=$is_woe32dll
10487
10488
10489       case "$host_os" in
10490     mingw* | cygwin*) is_woe32=yes ;;
10491     *) is_woe32=no ;;
10492   esac
10493   WOE32=$is_woe32
10494
10495   if test $WOE32 = yes; then
10496         if test -n "$ac_tool_prefix"; then
10497   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10498 set dummy ${ac_tool_prefix}windres; ac_word=$2
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500 $as_echo_n "checking for $ac_word... " >&6; }
10501 if ${ac_cv_prog_WINDRES+:} false; then :
10502   $as_echo_n "(cached) " >&6
10503 else
10504   if test -n "$WINDRES"; then
10505   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10506 else
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10509 do
10510   IFS=$as_save_IFS
10511   test -z "$as_dir" && as_dir=.
10512     for ac_exec_ext in '' $ac_executable_extensions; do
10513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10514     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516     break 2
10517   fi
10518 done
10519   done
10520 IFS=$as_save_IFS
10521
10522 fi
10523 fi
10524 WINDRES=$ac_cv_prog_WINDRES
10525 if test -n "$WINDRES"; then
10526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10527 $as_echo "$WINDRES" >&6; }
10528 else
10529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10531 fi
10532
10533
10534 fi
10535 if test -z "$ac_cv_prog_WINDRES"; then
10536   ac_ct_WINDRES=$WINDRES
10537   # Extract the first word of "windres", so it can be a program name with args.
10538 set dummy windres; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10542   $as_echo_n "(cached) " >&6
10543 else
10544   if test -n "$ac_ct_WINDRES"; then
10545   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10546 else
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10549 do
10550   IFS=$as_save_IFS
10551   test -z "$as_dir" && as_dir=.
10552     for ac_exec_ext in '' $ac_executable_extensions; do
10553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554     ac_cv_prog_ac_ct_WINDRES="windres"
10555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556     break 2
10557   fi
10558 done
10559   done
10560 IFS=$as_save_IFS
10561
10562 fi
10563 fi
10564 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10565 if test -n "$ac_ct_WINDRES"; then
10566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10567 $as_echo "$ac_ct_WINDRES" >&6; }
10568 else
10569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10571 fi
10572
10573   if test "x$ac_ct_WINDRES" = x; then
10574     WINDRES=""
10575   else
10576     case $cross_compiling:$ac_tool_warned in
10577 yes:)
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10580 ac_tool_warned=yes ;;
10581 esac
10582     WINDRES=$ac_ct_WINDRES
10583   fi
10584 else
10585   WINDRES="$ac_cv_prog_WINDRES"
10586 fi
10587
10588   fi
10589
10590               case "$host_os" in
10591     hpux*) LTLIBC="" ;;
10592     *)     LTLIBC="-lc" ;;
10593   esac
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10622 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10623 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10624   $as_echo_n "(cached) " >&6
10625 else
10626   gt_save_LIBS="$LIBS"
10627      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10628      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h.  */
10630 #include <CoreFoundation/CFPreferences.h>
10631 int
10632 main ()
10633 {
10634 CFPreferencesCopyAppValue(NULL, NULL)
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640   gt_cv_func_CFPreferencesCopyAppValue=yes
10641 else
10642   gt_cv_func_CFPreferencesCopyAppValue=no
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext \
10645     conftest$ac_exeext conftest.$ac_ext
10646      LIBS="$gt_save_LIBS"
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10649 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10650   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10651
10652 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10653
10654   fi
10655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10656 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10657 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10658   $as_echo_n "(cached) " >&6
10659 else
10660   gt_save_LIBS="$LIBS"
10661      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10662      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h.  */
10664 #include <CoreFoundation/CFLocale.h>
10665 int
10666 main ()
10667 {
10668 CFLocaleCopyCurrent();
10669   ;
10670   return 0;
10671 }
10672 _ACEOF
10673 if ac_fn_c_try_link "$LINENO"; then :
10674   gt_cv_func_CFLocaleCopyCurrent=yes
10675 else
10676   gt_cv_func_CFLocaleCopyCurrent=no
10677 fi
10678 rm -f core conftest.err conftest.$ac_objext \
10679     conftest$ac_exeext conftest.$ac_ext
10680      LIBS="$gt_save_LIBS"
10681 fi
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10683 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10684   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10685
10686 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10687
10688   fi
10689   INTL_MACOSX_LIBS=
10690   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10691     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10692   fi
10693
10694
10695
10696
10697
10698
10699     BUILD_INCLUDED_LIBINTL=no
10700     USE_INCLUDED_LIBINTL=no
10701
10702   LIBINTL=
10703   LTLIBINTL=
10704   POSUB=
10705
10706     case " $gt_needs " in
10707     *" need-formatstring-macros "*) gt_api_version=3 ;;
10708     *" need-ngettext "*) gt_api_version=2 ;;
10709     *) gt_api_version=1 ;;
10710   esac
10711   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10712   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10713
10714     if test "$USE_NLS" = "yes"; then
10715     gt_use_preinstalled_gnugettext=no
10716
10717       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10718 $as_echo_n "checking whether included gettext is requested... " >&6; }
10719
10720 # Check whether --with-included-gettext was given.
10721 if test "${with_included_gettext+set}" = set; then :
10722   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10723 else
10724   nls_cv_force_use_gnu_gettext=no
10725 fi
10726
10727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10728 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10729
10730       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10731       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10732
10733
10734         if test $gt_api_version -ge 3; then
10735           gt_revision_test_code='
10736 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10737 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10738 #endif
10739 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10740 '
10741         else
10742           gt_revision_test_code=
10743         fi
10744         if test $gt_api_version -ge 2; then
10745           gt_expression_test_code=' + * ngettext ("", "", 0)'
10746         else
10747           gt_expression_test_code=
10748         fi
10749
10750         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10751 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10752 if eval \${$gt_func_gnugettext_libc+:} false; then :
10753   $as_echo_n "(cached) " >&6
10754 else
10755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h.  */
10757
10758 #include <libintl.h>
10759 $gt_revision_test_code
10760 extern int _nl_msg_cat_cntr;
10761 extern int *_nl_domain_bindings;
10762
10763 int
10764 main ()
10765 {
10766
10767 bindtextdomain ("", "");
10768 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10769
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775   eval "$gt_func_gnugettext_libc=yes"
10776 else
10777   eval "$gt_func_gnugettext_libc=no"
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780     conftest$ac_exeext conftest.$ac_ext
10781 fi
10782 eval ac_res=\$$gt_func_gnugettext_libc
10783                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10784 $as_echo "$ac_res" >&6; }
10785
10786         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10787
10788
10789
10790
10791
10792
10793
10794
10795     use_additional=yes
10796
10797   acl_save_prefix="$prefix"
10798   prefix="$acl_final_prefix"
10799   acl_save_exec_prefix="$exec_prefix"
10800   exec_prefix="$acl_final_exec_prefix"
10801
10802     eval additional_includedir=\"$includedir\"
10803     eval additional_libdir=\"$libdir\"
10804
10805   exec_prefix="$acl_save_exec_prefix"
10806   prefix="$acl_save_prefix"
10807
10808
10809 # Check whether --with-libintl-prefix was given.
10810 if test "${with_libintl_prefix+set}" = set; then :
10811   withval=$with_libintl_prefix;
10812     if test "X$withval" = "Xno"; then
10813       use_additional=no
10814     else
10815       if test "X$withval" = "X"; then
10816
10817   acl_save_prefix="$prefix"
10818   prefix="$acl_final_prefix"
10819   acl_save_exec_prefix="$exec_prefix"
10820   exec_prefix="$acl_final_exec_prefix"
10821
10822           eval additional_includedir=\"$includedir\"
10823           eval additional_libdir=\"$libdir\"
10824
10825   exec_prefix="$acl_save_exec_prefix"
10826   prefix="$acl_save_prefix"
10827
10828       else
10829         additional_includedir="$withval/include"
10830         additional_libdir="$withval/$acl_libdirstem"
10831         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10832            && ! test -d "$withval/$acl_libdirstem"; then
10833           additional_libdir="$withval/$acl_libdirstem2"
10834         fi
10835       fi
10836     fi
10837
10838 fi
10839
10840       LIBINTL=
10841   LTLIBINTL=
10842   INCINTL=
10843   LIBINTL_PREFIX=
10844       HAVE_LIBINTL=
10845   rpathdirs=
10846   ltrpathdirs=
10847   names_already_handled=
10848   names_next_round='intl '
10849   while test -n "$names_next_round"; do
10850     names_this_round="$names_next_round"
10851     names_next_round=
10852     for name in $names_this_round; do
10853       already_handled=
10854       for n in $names_already_handled; do
10855         if test "$n" = "$name"; then
10856           already_handled=yes
10857           break
10858         fi
10859       done
10860       if test -z "$already_handled"; then
10861         names_already_handled="$names_already_handled $name"
10862                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10863         eval value=\"\$HAVE_LIB$uppername\"
10864         if test -n "$value"; then
10865           if test "$value" = yes; then
10866             eval value=\"\$LIB$uppername\"
10867             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10868             eval value=\"\$LTLIB$uppername\"
10869             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10870           else
10871                                     :
10872           fi
10873         else
10874                               found_dir=
10875           found_la=
10876           found_so=
10877           found_a=
10878           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10879           if test -n "$acl_shlibext"; then
10880             shrext=".$acl_shlibext"             # typically: shrext=.so
10881           else
10882             shrext=
10883           fi
10884           if test $use_additional = yes; then
10885             dir="$additional_libdir"
10886                                     if test -n "$acl_shlibext"; then
10887               if test -f "$dir/$libname$shrext"; then
10888                 found_dir="$dir"
10889                 found_so="$dir/$libname$shrext"
10890               else
10891                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10892                   ver=`(cd "$dir" && \
10893                         for f in "$libname$shrext".*; do echo "$f"; done \
10894                         | sed -e "s,^$libname$shrext\\\\.,," \
10895                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10896                         | sed 1q ) 2>/dev/null`
10897                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10898                     found_dir="$dir"
10899                     found_so="$dir/$libname$shrext.$ver"
10900                   fi
10901                 else
10902                   eval library_names=\"$acl_library_names_spec\"
10903                   for f in $library_names; do
10904                     if test -f "$dir/$f"; then
10905                       found_dir="$dir"
10906                       found_so="$dir/$f"
10907                       break
10908                     fi
10909                   done
10910                 fi
10911               fi
10912             fi
10913                         if test "X$found_dir" = "X"; then
10914               if test -f "$dir/$libname.$acl_libext"; then
10915                 found_dir="$dir"
10916                 found_a="$dir/$libname.$acl_libext"
10917               fi
10918             fi
10919             if test "X$found_dir" != "X"; then
10920               if test -f "$dir/$libname.la"; then
10921                 found_la="$dir/$libname.la"
10922               fi
10923             fi
10924           fi
10925           if test "X$found_dir" = "X"; then
10926             for x in $LDFLAGS $LTLIBINTL; do
10927
10928   acl_save_prefix="$prefix"
10929   prefix="$acl_final_prefix"
10930   acl_save_exec_prefix="$exec_prefix"
10931   exec_prefix="$acl_final_exec_prefix"
10932   eval x=\"$x\"
10933   exec_prefix="$acl_save_exec_prefix"
10934   prefix="$acl_save_prefix"
10935
10936               case "$x" in
10937                 -L*)
10938                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10939                                     if test -n "$acl_shlibext"; then
10940                     if test -f "$dir/$libname$shrext"; then
10941                       found_dir="$dir"
10942                       found_so="$dir/$libname$shrext"
10943                     else
10944                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10945                         ver=`(cd "$dir" && \
10946                               for f in "$libname$shrext".*; do echo "$f"; done \
10947                               | sed -e "s,^$libname$shrext\\\\.,," \
10948                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10949                               | sed 1q ) 2>/dev/null`
10950                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10951                           found_dir="$dir"
10952                           found_so="$dir/$libname$shrext.$ver"
10953                         fi
10954                       else
10955                         eval library_names=\"$acl_library_names_spec\"
10956                         for f in $library_names; do
10957                           if test -f "$dir/$f"; then
10958                             found_dir="$dir"
10959                             found_so="$dir/$f"
10960                             break
10961                           fi
10962                         done
10963                       fi
10964                     fi
10965                   fi
10966                                     if test "X$found_dir" = "X"; then
10967                     if test -f "$dir/$libname.$acl_libext"; then
10968                       found_dir="$dir"
10969                       found_a="$dir/$libname.$acl_libext"
10970                     fi
10971                   fi
10972                   if test "X$found_dir" != "X"; then
10973                     if test -f "$dir/$libname.la"; then
10974                       found_la="$dir/$libname.la"
10975                     fi
10976                   fi
10977                   ;;
10978               esac
10979               if test "X$found_dir" != "X"; then
10980                 break
10981               fi
10982             done
10983           fi
10984           if test "X$found_dir" != "X"; then
10985                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10986             if test "X$found_so" != "X"; then
10987                                                         if test "$enable_rpath" = no \
10988                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10989                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10990                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10991               else
10992                                                                                 haveit=
10993                 for x in $ltrpathdirs; do
10994                   if test "X$x" = "X$found_dir"; then
10995                     haveit=yes
10996                     break
10997                   fi
10998                 done
10999                 if test -z "$haveit"; then
11000                   ltrpathdirs="$ltrpathdirs $found_dir"
11001                 fi
11002                                 if test "$acl_hardcode_direct" = yes; then
11003                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11004                 else
11005                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11006                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11007                                                             haveit=
11008                     for x in $rpathdirs; do
11009                       if test "X$x" = "X$found_dir"; then
11010                         haveit=yes
11011                         break
11012                       fi
11013                     done
11014                     if test -z "$haveit"; then
11015                       rpathdirs="$rpathdirs $found_dir"
11016                     fi
11017                   else
11018                                                                                 haveit=
11019                     for x in $LDFLAGS $LIBINTL; do
11020
11021   acl_save_prefix="$prefix"
11022   prefix="$acl_final_prefix"
11023   acl_save_exec_prefix="$exec_prefix"
11024   exec_prefix="$acl_final_exec_prefix"
11025   eval x=\"$x\"
11026   exec_prefix="$acl_save_exec_prefix"
11027   prefix="$acl_save_prefix"
11028
11029                       if test "X$x" = "X-L$found_dir"; then
11030                         haveit=yes
11031                         break
11032                       fi
11033                     done
11034                     if test -z "$haveit"; then
11035                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11036                     fi
11037                     if test "$acl_hardcode_minus_L" != no; then
11038                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11039                     else
11040                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11041                     fi
11042                   fi
11043                 fi
11044               fi
11045             else
11046               if test "X$found_a" != "X"; then
11047                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11048               else
11049                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11050               fi
11051             fi
11052                         additional_includedir=
11053             case "$found_dir" in
11054               */$acl_libdirstem | */$acl_libdirstem/)
11055                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11056                 if test "$name" = 'intl'; then
11057                   LIBINTL_PREFIX="$basedir"
11058                 fi
11059                 additional_includedir="$basedir/include"
11060                 ;;
11061               */$acl_libdirstem2 | */$acl_libdirstem2/)
11062                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11063                 if test "$name" = 'intl'; then
11064                   LIBINTL_PREFIX="$basedir"
11065                 fi
11066                 additional_includedir="$basedir/include"
11067                 ;;
11068             esac
11069             if test "X$additional_includedir" != "X"; then
11070                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11071                 haveit=
11072                 if test "X$additional_includedir" = "X/usr/local/include"; then
11073                   if test -n "$GCC"; then
11074                     case $host_os in
11075                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11076                     esac
11077                   fi
11078                 fi
11079                 if test -z "$haveit"; then
11080                   for x in $CPPFLAGS $INCINTL; do
11081
11082   acl_save_prefix="$prefix"
11083   prefix="$acl_final_prefix"
11084   acl_save_exec_prefix="$exec_prefix"
11085   exec_prefix="$acl_final_exec_prefix"
11086   eval x=\"$x\"
11087   exec_prefix="$acl_save_exec_prefix"
11088   prefix="$acl_save_prefix"
11089
11090                     if test "X$x" = "X-I$additional_includedir"; then
11091                       haveit=yes
11092                       break
11093                     fi
11094                   done
11095                   if test -z "$haveit"; then
11096                     if test -d "$additional_includedir"; then
11097                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11098                     fi
11099                   fi
11100                 fi
11101               fi
11102             fi
11103                         if test -n "$found_la"; then
11104                                                         save_libdir="$libdir"
11105               case "$found_la" in
11106                 */* | *\\*) . "$found_la" ;;
11107                 *) . "./$found_la" ;;
11108               esac
11109               libdir="$save_libdir"
11110                             for dep in $dependency_libs; do
11111                 case "$dep" in
11112                   -L*)
11113                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11114                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11115                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11116                       haveit=
11117                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11118                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11119                         if test -n "$GCC"; then
11120                           case $host_os in
11121                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11122                           esac
11123                         fi
11124                       fi
11125                       if test -z "$haveit"; then
11126                         haveit=
11127                         for x in $LDFLAGS $LIBINTL; do
11128
11129   acl_save_prefix="$prefix"
11130   prefix="$acl_final_prefix"
11131   acl_save_exec_prefix="$exec_prefix"
11132   exec_prefix="$acl_final_exec_prefix"
11133   eval x=\"$x\"
11134   exec_prefix="$acl_save_exec_prefix"
11135   prefix="$acl_save_prefix"
11136
11137                           if test "X$x" = "X-L$additional_libdir"; then
11138                             haveit=yes
11139                             break
11140                           fi
11141                         done
11142                         if test -z "$haveit"; then
11143                           if test -d "$additional_libdir"; then
11144                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11145                           fi
11146                         fi
11147                         haveit=
11148                         for x in $LDFLAGS $LTLIBINTL; do
11149
11150   acl_save_prefix="$prefix"
11151   prefix="$acl_final_prefix"
11152   acl_save_exec_prefix="$exec_prefix"
11153   exec_prefix="$acl_final_exec_prefix"
11154   eval x=\"$x\"
11155   exec_prefix="$acl_save_exec_prefix"
11156   prefix="$acl_save_prefix"
11157
11158                           if test "X$x" = "X-L$additional_libdir"; then
11159                             haveit=yes
11160                             break
11161                           fi
11162                         done
11163                         if test -z "$haveit"; then
11164                           if test -d "$additional_libdir"; then
11165                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11166                           fi
11167                         fi
11168                       fi
11169                     fi
11170                     ;;
11171                   -R*)
11172                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11173                     if test "$enable_rpath" != no; then
11174                                                                   haveit=
11175                       for x in $rpathdirs; do
11176                         if test "X$x" = "X$dir"; then
11177                           haveit=yes
11178                           break
11179                         fi
11180                       done
11181                       if test -z "$haveit"; then
11182                         rpathdirs="$rpathdirs $dir"
11183                       fi
11184                                                                   haveit=
11185                       for x in $ltrpathdirs; do
11186                         if test "X$x" = "X$dir"; then
11187                           haveit=yes
11188                           break
11189                         fi
11190                       done
11191                       if test -z "$haveit"; then
11192                         ltrpathdirs="$ltrpathdirs $dir"
11193                       fi
11194                     fi
11195                     ;;
11196                   -l*)
11197                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11198                     ;;
11199                   *.la)
11200                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11201                     ;;
11202                   *)
11203                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11204                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11205                     ;;
11206                 esac
11207               done
11208             fi
11209           else
11210                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11211             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11212           fi
11213         fi
11214       fi
11215     done
11216   done
11217   if test "X$rpathdirs" != "X"; then
11218     if test -n "$acl_hardcode_libdir_separator"; then
11219                         alldirs=
11220       for found_dir in $rpathdirs; do
11221         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11222       done
11223             acl_save_libdir="$libdir"
11224       libdir="$alldirs"
11225       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11226       libdir="$acl_save_libdir"
11227       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11228     else
11229             for found_dir in $rpathdirs; do
11230         acl_save_libdir="$libdir"
11231         libdir="$found_dir"
11232         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11233         libdir="$acl_save_libdir"
11234         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11235       done
11236     fi
11237   fi
11238   if test "X$ltrpathdirs" != "X"; then
11239             for found_dir in $ltrpathdirs; do
11240       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11241     done
11242   fi
11243
11244
11245
11246
11247
11248
11249           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11250 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11251 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11252   $as_echo_n "(cached) " >&6
11253 else
11254   gt_save_CPPFLAGS="$CPPFLAGS"
11255             CPPFLAGS="$CPPFLAGS $INCINTL"
11256             gt_save_LIBS="$LIBS"
11257             LIBS="$LIBS $LIBINTL"
11258                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h.  */
11260
11261 #include <libintl.h>
11262 $gt_revision_test_code
11263 extern int _nl_msg_cat_cntr;
11264 extern
11265 #ifdef __cplusplus
11266 "C"
11267 #endif
11268 const char *_nl_expand_alias (const char *);
11269
11270 int
11271 main ()
11272 {
11273
11274 bindtextdomain ("", "");
11275 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11276
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 if ac_fn_c_try_link "$LINENO"; then :
11282   eval "$gt_func_gnugettext_libintl=yes"
11283 else
11284   eval "$gt_func_gnugettext_libintl=no"
11285 fi
11286 rm -f core conftest.err conftest.$ac_objext \
11287     conftest$ac_exeext conftest.$ac_ext
11288                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11289               LIBS="$LIBS $LIBICONV"
11290               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h.  */
11292
11293 #include <libintl.h>
11294 $gt_revision_test_code
11295 extern int _nl_msg_cat_cntr;
11296 extern
11297 #ifdef __cplusplus
11298 "C"
11299 #endif
11300 const char *_nl_expand_alias (const char *);
11301
11302 int
11303 main ()
11304 {
11305
11306 bindtextdomain ("", "");
11307 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11308
11309   ;
11310   return 0;
11311 }
11312 _ACEOF
11313 if ac_fn_c_try_link "$LINENO"; then :
11314   LIBINTL="$LIBINTL $LIBICONV"
11315                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11316                  eval "$gt_func_gnugettext_libintl=yes"
11317
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext \
11320     conftest$ac_exeext conftest.$ac_ext
11321             fi
11322             CPPFLAGS="$gt_save_CPPFLAGS"
11323             LIBS="$gt_save_LIBS"
11324 fi
11325 eval ac_res=\$$gt_func_gnugettext_libintl
11326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11327 $as_echo "$ac_res" >&6; }
11328         fi
11329
11330                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11331            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11332                 && test "$PACKAGE" != gettext-runtime \
11333                 && test "$PACKAGE" != gettext-tools; }; then
11334           gt_use_preinstalled_gnugettext=yes
11335         else
11336                     LIBINTL=
11337           LTLIBINTL=
11338           INCINTL=
11339         fi
11340
11341
11342         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11343                               nls_cv_use_gnu_gettext=yes
11344         fi
11345       fi
11346
11347       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11348                 BUILD_INCLUDED_LIBINTL=yes
11349         USE_INCLUDED_LIBINTL=yes
11350         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11351         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11352         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11353       fi
11354
11355       CATOBJEXT=
11356       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11357          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11358                 CATOBJEXT=.gmo
11359       fi
11360
11361
11362     if test -n "$INTL_MACOSX_LIBS"; then
11363       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11364          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11365                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11366         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11367       fi
11368     fi
11369
11370     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11371        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11372
11373 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11374
11375     else
11376       USE_NLS=no
11377     fi
11378   fi
11379
11380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11381 $as_echo_n "checking whether to use NLS... " >&6; }
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11383 $as_echo "$USE_NLS" >&6; }
11384   if test "$USE_NLS" = "yes"; then
11385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11386 $as_echo_n "checking where the gettext function comes from... " >&6; }
11387     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11388       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11389         gt_source="external libintl"
11390       else
11391         gt_source="libc"
11392       fi
11393     else
11394       gt_source="included intl directory"
11395     fi
11396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11397 $as_echo "$gt_source" >&6; }
11398   fi
11399
11400   if test "$USE_NLS" = "yes"; then
11401
11402     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11403       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11405 $as_echo_n "checking how to link with libintl... " >&6; }
11406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11407 $as_echo "$LIBINTL" >&6; }
11408
11409   for element in $INCINTL; do
11410     haveit=
11411     for x in $CPPFLAGS; do
11412
11413   acl_save_prefix="$prefix"
11414   prefix="$acl_final_prefix"
11415   acl_save_exec_prefix="$exec_prefix"
11416   exec_prefix="$acl_final_exec_prefix"
11417   eval x=\"$x\"
11418   exec_prefix="$acl_save_exec_prefix"
11419   prefix="$acl_save_prefix"
11420
11421       if test "X$x" = "X$element"; then
11422         haveit=yes
11423         break
11424       fi
11425     done
11426     if test -z "$haveit"; then
11427       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11428     fi
11429   done
11430
11431       fi
11432
11433
11434 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11435
11436
11437 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11438
11439     fi
11440
11441         POSUB=po
11442   fi
11443
11444
11445             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11446       BUILD_INCLUDED_LIBINTL=yes
11447     fi
11448
11449
11450
11451
11452
11453         nls_cv_header_intl=
11454     nls_cv_header_libgt=
11455
11456         DATADIRNAME=share
11457
11458
11459         INSTOBJEXT=.mo
11460
11461
11462         GENCAT=gencat
11463
11464
11465         INTLOBJS=
11466     if test "$USE_INCLUDED_LIBINTL" = yes; then
11467       INTLOBJS="\$(GETTOBJS)"
11468     fi
11469
11470
11471         INTL_LIBTOOL_SUFFIX_PREFIX=
11472
11473
11474
11475     INTLLIBS="$LIBINTL"
11476
11477
11478
11479
11480
11481
11482
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11484 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11485 set x ${MAKE-make}
11486 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11487 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11488   $as_echo_n "(cached) " >&6
11489 else
11490   cat >conftest.make <<\_ACEOF
11491 SHELL = /bin/sh
11492 all:
11493         @echo '@@@%%%=$(MAKE)=@@@%%%'
11494 _ACEOF
11495 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11496 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11497   *@@@%%%=?*=@@@%%%*)
11498     eval ac_cv_prog_make_${ac_make}_set=yes;;
11499   *)
11500     eval ac_cv_prog_make_${ac_make}_set=no;;
11501 esac
11502 rm -f conftest.make
11503 fi
11504 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11506 $as_echo "yes" >&6; }
11507   SET_MAKE=
11508 else
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11511   SET_MAKE="MAKE=${MAKE-make}"
11512 fi
11513
11514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11515 $as_echo_n "checking for GNU make... " >&6; }
11516 if ${_cv_gnu_make_command+:} false; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   _cv_gnu_make_command='' ;
11520                 for a in "$MAKE" make gmake gnumake ; do
11521                         if test -z "$a" ; then continue ; fi ;
11522                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11523                                 _cv_gnu_make_command=$a ;
11524                                 break;
11525                         fi
11526                 done ;
11527
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11530 $as_echo "$_cv_gnu_make_command" >&6; } ;
11531         if test  "x$_cv_gnu_make_command" != "x"  ; then
11532                 ifGNUmake='' ;
11533                 ifNotGNUmake='#' ;
11534         else
11535                 ifGNUmake='#' ;
11536                 ifNotGNUmake='' ;
11537                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11538 $as_echo "\"Not found\"" >&6; };
11539         fi
11540
11541
11542
11543 # Extract the first word of "ln", so it can be a program name with args.
11544 set dummy ln; ac_word=$2
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546 $as_echo_n "checking for $ac_word... " >&6; }
11547 if ${ac_cv_path_LN+:} false; then :
11548   $as_echo_n "(cached) " >&6
11549 else
11550   case $LN in
11551   [\\/]* | ?:[\\/]*)
11552   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11553   ;;
11554   *)
11555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558   IFS=$as_save_IFS
11559   test -z "$as_dir" && as_dir=.
11560     for ac_exec_ext in '' $ac_executable_extensions; do
11561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564     break 2
11565   fi
11566 done
11567   done
11568 IFS=$as_save_IFS
11569
11570   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11571   ;;
11572 esac
11573 fi
11574 LN=$ac_cv_path_LN
11575 if test -n "$LN"; then
11576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11577 $as_echo "$LN" >&6; }
11578 else
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11581 fi
11582
11583
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11585 $as_echo_n "checking whether ln -s works... " >&6; }
11586 LN_S=$as_ln_s
11587 if test "$LN_S" = "ln -s"; then
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11590 else
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11592 $as_echo "no, using $LN_S" >&6; }
11593 fi
11594
11595 # Extract the first word of "mv", so it can be a program name with args.
11596 set dummy mv; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_path_MV+:} false; then :
11600   $as_echo_n "(cached) " >&6
11601 else
11602   case $MV in
11603   [\\/]* | ?:[\\/]*)
11604   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11605   ;;
11606   *)
11607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11609 do
11610   IFS=$as_save_IFS
11611   test -z "$as_dir" && as_dir=.
11612     for ac_exec_ext in '' $ac_executable_extensions; do
11613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616     break 2
11617   fi
11618 done
11619   done
11620 IFS=$as_save_IFS
11621
11622   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11623   ;;
11624 esac
11625 fi
11626 MV=$ac_cv_path_MV
11627 if test -n "$MV"; then
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11629 $as_echo "$MV" >&6; }
11630 else
11631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11633 fi
11634
11635
11636 # Extract the first word of "cp", so it can be a program name with args.
11637 set dummy cp; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_path_CP+:} false; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   case $CP in
11644   [\\/]* | ?:[\\/]*)
11645   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11646   ;;
11647   *)
11648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11650 do
11651   IFS=$as_save_IFS
11652   test -z "$as_dir" && as_dir=.
11653     for ac_exec_ext in '' $ac_executable_extensions; do
11654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657     break 2
11658   fi
11659 done
11660   done
11661 IFS=$as_save_IFS
11662
11663   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11664   ;;
11665 esac
11666 fi
11667 CP=$ac_cv_path_CP
11668 if test -n "$CP"; then
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11670 $as_echo "$CP" >&6; }
11671 else
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11674 fi
11675
11676
11677 # Extract the first word of "rm", so it can be a program name with args.
11678 set dummy rm; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_path_RM+:} false; then :
11682   $as_echo_n "(cached) " >&6
11683 else
11684   case $RM in
11685   [\\/]* | ?:[\\/]*)
11686   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11687   ;;
11688   *)
11689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692   IFS=$as_save_IFS
11693   test -z "$as_dir" && as_dir=.
11694     for ac_exec_ext in '' $ac_executable_extensions; do
11695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11696     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698     break 2
11699   fi
11700 done
11701   done
11702 IFS=$as_save_IFS
11703
11704   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11705   ;;
11706 esac
11707 fi
11708 RM=$ac_cv_path_RM
11709 if test -n "$RM"; then
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11711 $as_echo "$RM" >&6; }
11712 else
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11715 fi
11716
11717
11718 # Extract the first word of "chmod", so it can be a program name with args.
11719 set dummy chmod; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_path_CHMOD+:} false; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725   case $CHMOD in
11726   [\\/]* | ?:[\\/]*)
11727   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11728   ;;
11729   *)
11730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11732 do
11733   IFS=$as_save_IFS
11734   test -z "$as_dir" && as_dir=.
11735     for ac_exec_ext in '' $ac_executable_extensions; do
11736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739     break 2
11740   fi
11741 done
11742   done
11743 IFS=$as_save_IFS
11744
11745   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11746   ;;
11747 esac
11748 fi
11749 CHMOD=$ac_cv_path_CHMOD
11750 if test -n "$CHMOD"; then
11751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11752 $as_echo "$CHMOD" >&6; }
11753 else
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756 fi
11757
11758
11759 for ac_prog in gawk mawk nawk awk
11760 do
11761   # Extract the first word of "$ac_prog", so it can be a program name with args.
11762 set dummy $ac_prog; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_prog_AWK+:} false; then :
11766   $as_echo_n "(cached) " >&6
11767 else
11768   if test -n "$AWK"; then
11769   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11770 else
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11773 do
11774   IFS=$as_save_IFS
11775   test -z "$as_dir" && as_dir=.
11776     for ac_exec_ext in '' $ac_executable_extensions; do
11777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778     ac_cv_prog_AWK="$ac_prog"
11779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780     break 2
11781   fi
11782 done
11783   done
11784 IFS=$as_save_IFS
11785
11786 fi
11787 fi
11788 AWK=$ac_cv_prog_AWK
11789 if test -n "$AWK"; then
11790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11791 $as_echo "$AWK" >&6; }
11792 else
11793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11795 fi
11796
11797
11798   test -n "$AWK" && break
11799 done
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11802 $as_echo_n "checking for egrep... " >&6; }
11803 if ${ac_cv_path_EGREP+:} false; then :
11804   $as_echo_n "(cached) " >&6
11805 else
11806   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11807    then ac_cv_path_EGREP="$GREP -E"
11808    else
11809      if test -z "$EGREP"; then
11810   ac_path_EGREP_found=false
11811   # Loop through the user's path and test for each of PROGNAME-LIST
11812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11814 do
11815   IFS=$as_save_IFS
11816   test -z "$as_dir" && as_dir=.
11817     for ac_prog in egrep; do
11818     for ac_exec_ext in '' $ac_executable_extensions; do
11819       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11820       as_fn_executable_p "$ac_path_EGREP" || continue
11821 # Check for GNU ac_path_EGREP and select it if it is found.
11822   # Check for GNU $ac_path_EGREP
11823 case `"$ac_path_EGREP" --version 2>&1` in
11824 *GNU*)
11825   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11826 *)
11827   ac_count=0
11828   $as_echo_n 0123456789 >"conftest.in"
11829   while :
11830   do
11831     cat "conftest.in" "conftest.in" >"conftest.tmp"
11832     mv "conftest.tmp" "conftest.in"
11833     cp "conftest.in" "conftest.nl"
11834     $as_echo 'EGREP' >> "conftest.nl"
11835     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11836     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11837     as_fn_arith $ac_count + 1 && ac_count=$as_val
11838     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11839       # Best one so far, save it but keep looking for a better one
11840       ac_cv_path_EGREP="$ac_path_EGREP"
11841       ac_path_EGREP_max=$ac_count
11842     fi
11843     # 10*(2^10) chars as input seems more than enough
11844     test $ac_count -gt 10 && break
11845   done
11846   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11847 esac
11848
11849       $ac_path_EGREP_found && break 3
11850     done
11851   done
11852   done
11853 IFS=$as_save_IFS
11854   if test -z "$ac_cv_path_EGREP"; then
11855     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11856   fi
11857 else
11858   ac_cv_path_EGREP=$EGREP
11859 fi
11860
11861    fi
11862 fi
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11864 $as_echo "$ac_cv_path_EGREP" >&6; }
11865  EGREP="$ac_cv_path_EGREP"
11866
11867
11868 # Extract the first word of "sed", so it can be a program name with args.
11869 set dummy sed; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_path_SED+:} false; then :
11873   $as_echo_n "(cached) " >&6
11874 else
11875   case $SED in
11876   [\\/]* | ?:[\\/]*)
11877   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11878   ;;
11879   *)
11880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11882 do
11883   IFS=$as_save_IFS
11884   test -z "$as_dir" && as_dir=.
11885     for ac_exec_ext in '' $ac_executable_extensions; do
11886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11887     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889     break 2
11890   fi
11891 done
11892   done
11893 IFS=$as_save_IFS
11894
11895   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11896   ;;
11897 esac
11898 fi
11899 SED=$ac_cv_path_SED
11900 if test -n "$SED"; then
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11902 $as_echo "$SED" >&6; }
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907
11908
11909 # Extract the first word of "perl", so it can be a program name with args.
11910 set dummy perl; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if ${ac_cv_path_PERL+:} false; then :
11914   $as_echo_n "(cached) " >&6
11915 else
11916   case $PERL in
11917   [\\/]* | ?:[\\/]*)
11918   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11919   ;;
11920   *)
11921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924   IFS=$as_save_IFS
11925   test -z "$as_dir" && as_dir=.
11926     for ac_exec_ext in '' $ac_executable_extensions; do
11927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930     break 2
11931   fi
11932 done
11933   done
11934 IFS=$as_save_IFS
11935
11936   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11937   ;;
11938 esac
11939 fi
11940 PERL=$ac_cv_path_PERL
11941 if test -n "$PERL"; then
11942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11943 $as_echo "$PERL" >&6; }
11944 else
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 $as_echo "no" >&6; }
11947 fi
11948
11949
11950 # Extract the first word of "ldconfig", so it can be a program name with args.
11951 set dummy ldconfig; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_path_LDCONFIG+:} false; then :
11955   $as_echo_n "(cached) " >&6
11956 else
11957   case $LDCONFIG in
11958   [\\/]* | ?:[\\/]*)
11959   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11960   ;;
11961   *)
11962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965   IFS=$as_save_IFS
11966   test -z "$as_dir" && as_dir=.
11967     for ac_exec_ext in '' $ac_executable_extensions; do
11968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971     break 2
11972   fi
11973 done
11974   done
11975 IFS=$as_save_IFS
11976
11977   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11978   ;;
11979 esac
11980 fi
11981 LDCONFIG=$ac_cv_path_LDCONFIG
11982 if test -n "$LDCONFIG"; then
11983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11984 $as_echo "$LDCONFIG" >&6; }
11985 else
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11988 fi
11989
11990
11991 if test -n "$ac_tool_prefix"; then
11992   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11993 set dummy ${ac_tool_prefix}ar; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_prog_AR+:} false; then :
11997   $as_echo_n "(cached) " >&6
11998 else
11999   if test -n "$AR"; then
12000   ac_cv_prog_AR="$AR" # Let the user override the test.
12001 else
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005   IFS=$as_save_IFS
12006   test -z "$as_dir" && as_dir=.
12007     for ac_exec_ext in '' $ac_executable_extensions; do
12008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12009     ac_cv_prog_AR="${ac_tool_prefix}ar"
12010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011     break 2
12012   fi
12013 done
12014   done
12015 IFS=$as_save_IFS
12016
12017 fi
12018 fi
12019 AR=$ac_cv_prog_AR
12020 if test -n "$AR"; then
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12022 $as_echo "$AR" >&6; }
12023 else
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12026 fi
12027
12028
12029 fi
12030 if test -z "$ac_cv_prog_AR"; then
12031   ac_ct_AR=$AR
12032   # Extract the first word of "ar", so it can be a program name with args.
12033 set dummy ar; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039   if test -n "$ac_ct_AR"; then
12040   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12041 else
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12044 do
12045   IFS=$as_save_IFS
12046   test -z "$as_dir" && as_dir=.
12047     for ac_exec_ext in '' $ac_executable_extensions; do
12048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049     ac_cv_prog_ac_ct_AR="ar"
12050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051     break 2
12052   fi
12053 done
12054   done
12055 IFS=$as_save_IFS
12056
12057 fi
12058 fi
12059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12060 if test -n "$ac_ct_AR"; then
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12062 $as_echo "$ac_ct_AR" >&6; }
12063 else
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 fi
12067
12068   if test "x$ac_ct_AR" = x; then
12069     AR="ar"
12070   else
12071     case $cross_compiling:$ac_tool_warned in
12072 yes:)
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075 ac_tool_warned=yes ;;
12076 esac
12077     AR=$ac_ct_AR
12078   fi
12079 else
12080   AR="$ac_cv_prog_AR"
12081 fi
12082
12083 if test -n "$ac_tool_prefix"; then
12084   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if ${ac_cv_prog_RANLIB+:} false; then :
12089   $as_echo_n "(cached) " >&6
12090 else
12091   if test -n "$RANLIB"; then
12092   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097   IFS=$as_save_IFS
12098   test -z "$as_dir" && as_dir=.
12099     for ac_exec_ext in '' $ac_executable_extensions; do
12100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12101     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103     break 2
12104   fi
12105 done
12106   done
12107 IFS=$as_save_IFS
12108
12109 fi
12110 fi
12111 RANLIB=$ac_cv_prog_RANLIB
12112 if test -n "$RANLIB"; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12114 $as_echo "$RANLIB" >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121 fi
12122 if test -z "$ac_cv_prog_RANLIB"; then
12123   ac_ct_RANLIB=$RANLIB
12124   # Extract the first word of "ranlib", so it can be a program name with args.
12125 set dummy ranlib; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131   if test -n "$ac_ct_RANLIB"; then
12132   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12133 else
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12136 do
12137   IFS=$as_save_IFS
12138   test -z "$as_dir" && as_dir=.
12139     for ac_exec_ext in '' $ac_executable_extensions; do
12140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12141     ac_cv_prog_ac_ct_RANLIB="ranlib"
12142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143     break 2
12144   fi
12145 done
12146   done
12147 IFS=$as_save_IFS
12148
12149 fi
12150 fi
12151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12152 if test -n "$ac_ct_RANLIB"; then
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12154 $as_echo "$ac_ct_RANLIB" >&6; }
12155 else
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158 fi
12159
12160   if test "x$ac_ct_RANLIB" = x; then
12161     RANLIB=":"
12162   else
12163     case $cross_compiling:$ac_tool_warned in
12164 yes:)
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12167 ac_tool_warned=yes ;;
12168 esac
12169     RANLIB=$ac_ct_RANLIB
12170   fi
12171 else
12172   RANLIB="$ac_cv_prog_RANLIB"
12173 fi
12174
12175 if test -n "$ac_tool_prefix"; then
12176   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12177 set dummy ${ac_tool_prefix}strip; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if ${ac_cv_prog_STRIP+:} false; then :
12181   $as_echo_n "(cached) " >&6
12182 else
12183   if test -n "$STRIP"; then
12184   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12185 else
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12188 do
12189   IFS=$as_save_IFS
12190   test -z "$as_dir" && as_dir=.
12191     for ac_exec_ext in '' $ac_executable_extensions; do
12192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12193     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195     break 2
12196   fi
12197 done
12198   done
12199 IFS=$as_save_IFS
12200
12201 fi
12202 fi
12203 STRIP=$ac_cv_prog_STRIP
12204 if test -n "$STRIP"; then
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12206 $as_echo "$STRIP" >&6; }
12207 else
12208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12210 fi
12211
12212
12213 fi
12214 if test -z "$ac_cv_prog_STRIP"; then
12215   ac_ct_STRIP=$STRIP
12216   # Extract the first word of "strip", so it can be a program name with args.
12217 set dummy strip; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12221   $as_echo_n "(cached) " >&6
12222 else
12223   if test -n "$ac_ct_STRIP"; then
12224   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12225 else
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227 for as_dir in $PATH
12228 do
12229   IFS=$as_save_IFS
12230   test -z "$as_dir" && as_dir=.
12231     for ac_exec_ext in '' $ac_executable_extensions; do
12232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12233     ac_cv_prog_ac_ct_STRIP="strip"
12234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12235     break 2
12236   fi
12237 done
12238   done
12239 IFS=$as_save_IFS
12240
12241 fi
12242 fi
12243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12244 if test -n "$ac_ct_STRIP"; then
12245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12246 $as_echo "$ac_ct_STRIP" >&6; }
12247 else
12248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12250 fi
12251
12252   if test "x$ac_ct_STRIP" = x; then
12253     STRIP=":"
12254   else
12255     case $cross_compiling:$ac_tool_warned in
12256 yes:)
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12259 ac_tool_warned=yes ;;
12260 esac
12261     STRIP=$ac_ct_STRIP
12262   fi
12263 else
12264   STRIP="$ac_cv_prog_STRIP"
12265 fi
12266
12267 # Extract the first word of "makeinfo", so it can be a program name with args.
12268 set dummy makeinfo; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if ${ac_cv_prog_MAKEINFO+:} false; then :
12272   $as_echo_n "(cached) " >&6
12273 else
12274   if test -n "$MAKEINFO"; then
12275   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12276 else
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278 for as_dir in $PATH
12279 do
12280   IFS=$as_save_IFS
12281   test -z "$as_dir" && as_dir=.
12282     for ac_exec_ext in '' $ac_executable_extensions; do
12283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12284     ac_cv_prog_MAKEINFO="makeinfo"
12285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12286     break 2
12287   fi
12288 done
12289   done
12290 IFS=$as_save_IFS
12291
12292 fi
12293 fi
12294 MAKEINFO=$ac_cv_prog_MAKEINFO
12295 if test -n "$MAKEINFO"; then
12296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12297 $as_echo "$MAKEINFO" >&6; }
12298 else
12299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301 fi
12302
12303
12304 if test "_$MAKEINFO" = "_"; then
12305     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12306 else
12307     case "$MAKEINFO" in
12308       */missing.*)
12309         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12310 *** Makeinfo is missing. Info documentation will not be built." >&5
12311 $as_echo "$as_me: WARNING:
12312 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12313         ;;
12314       *)
12315         ;;
12316     esac
12317 fi
12318
12319
12320 # See if we need a separate native compiler.
12321 if test $cross_compiling = no; then
12322   BUILD_CC="$CC"
12323
12324 else
12325   for ac_prog in gcc cc
12326 do
12327   # Extract the first word of "$ac_prog", so it can be a program name with args.
12328 set dummy $ac_prog; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if ${ac_cv_prog_BUILD_CC+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   if test -n "$BUILD_CC"; then
12335   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12336 else
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12339 do
12340   IFS=$as_save_IFS
12341   test -z "$as_dir" && as_dir=.
12342     for ac_exec_ext in '' $ac_executable_extensions; do
12343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344     ac_cv_prog_BUILD_CC="$ac_prog"
12345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346     break 2
12347   fi
12348 done
12349   done
12350 IFS=$as_save_IFS
12351
12352 fi
12353 fi
12354 BUILD_CC=$ac_cv_prog_BUILD_CC
12355 if test -n "$BUILD_CC"; then
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12357 $as_echo "$BUILD_CC" >&6; }
12358 else
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12361 fi
12362
12363
12364   test -n "$BUILD_CC" && break
12365 done
12366
12367 fi
12368 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
12369 do :
12370   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12371 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12373   cat >>confdefs.h <<_ACEOF
12374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12375 _ACEOF
12376
12377 fi
12378
12379 done
12380
12381 for ac_header in net/if.h
12382 do :
12383   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12384 #if HAVE_SYS_TYPES_H
12385 #include <sys/types.h>
12386 #endif
12387 #if HAVE_SYS_SOCKET
12388 #include <sys/socket.h>
12389 #endif
12390
12391 "
12392 if test "x$ac_cv_header_net_if_h" = xyes; then :
12393   cat >>confdefs.h <<_ACEOF
12394 #define HAVE_NET_IF_H 1
12395 _ACEOF
12396
12397 fi
12398
12399 done
12400
12401 for ac_func in vprintf
12402 do :
12403   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12404 if test "x$ac_cv_func_vprintf" = xyes; then :
12405   cat >>confdefs.h <<_ACEOF
12406 #define HAVE_VPRINTF 1
12407 _ACEOF
12408
12409 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12410 if test "x$ac_cv_func__doprnt" = xyes; then :
12411
12412 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12413
12414 fi
12415
12416 fi
12417 done
12418
12419
12420 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12421 "
12422 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12423
12424 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12425
12426 fi
12427
12428 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12429 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12430
12431 cat >>confdefs.h <<_ACEOF
12432 #define HAVE_STRUCT_STAT_ST_ATIM 1
12433 _ACEOF
12434
12435
12436 fi
12437
12438 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12439 "
12440 if test "x$ac_cv_type_ssize_t" = xyes; then :
12441
12442 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12443
12444 fi
12445
12446 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12447 "
12448 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12449
12450 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12451
12452 fi
12453
12454 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12455                  #define _LARGEFILE64_SOURCE
12456                  #include <unistd.h>
12457 "
12458 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12459
12460 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12461
12462 fi
12463
12464 # The cast to long int works around a bug in the HP C Compiler
12465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12467 # This bug is HP SR number 8606223364.
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12469 $as_echo_n "checking size of short... " >&6; }
12470 if ${ac_cv_sizeof_short+:} false; then :
12471   $as_echo_n "(cached) " >&6
12472 else
12473   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12474
12475 else
12476   if test "$ac_cv_type_short" = yes; then
12477      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12479 as_fn_error 77 "cannot compute sizeof (short)
12480 See \`config.log' for more details" "$LINENO" 5; }
12481    else
12482      ac_cv_sizeof_short=0
12483    fi
12484 fi
12485
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12488 $as_echo "$ac_cv_sizeof_short" >&6; }
12489
12490
12491
12492 cat >>confdefs.h <<_ACEOF
12493 #define SIZEOF_SHORT $ac_cv_sizeof_short
12494 _ACEOF
12495
12496
12497 # The cast to long int works around a bug in the HP C Compiler
12498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12500 # This bug is HP SR number 8606223364.
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12502 $as_echo_n "checking size of int... " >&6; }
12503 if ${ac_cv_sizeof_int+:} false; then :
12504   $as_echo_n "(cached) " >&6
12505 else
12506   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12507
12508 else
12509   if test "$ac_cv_type_int" = yes; then
12510      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12512 as_fn_error 77 "cannot compute sizeof (int)
12513 See \`config.log' for more details" "$LINENO" 5; }
12514    else
12515      ac_cv_sizeof_int=0
12516    fi
12517 fi
12518
12519 fi
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12521 $as_echo "$ac_cv_sizeof_int" >&6; }
12522
12523
12524
12525 cat >>confdefs.h <<_ACEOF
12526 #define SIZEOF_INT $ac_cv_sizeof_int
12527 _ACEOF
12528
12529
12530 # The cast to long int works around a bug in the HP C Compiler
12531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12533 # This bug is HP SR number 8606223364.
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12535 $as_echo_n "checking size of long... " >&6; }
12536 if ${ac_cv_sizeof_long+:} false; then :
12537   $as_echo_n "(cached) " >&6
12538 else
12539   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12540
12541 else
12542   if test "$ac_cv_type_long" = yes; then
12543      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12545 as_fn_error 77 "cannot compute sizeof (long)
12546 See \`config.log' for more details" "$LINENO" 5; }
12547    else
12548      ac_cv_sizeof_long=0
12549    fi
12550 fi
12551
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12554 $as_echo "$ac_cv_sizeof_long" >&6; }
12555
12556
12557
12558 cat >>confdefs.h <<_ACEOF
12559 #define SIZEOF_LONG $ac_cv_sizeof_long
12560 _ACEOF
12561
12562
12563 # The cast to long int works around a bug in the HP C Compiler
12564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12566 # This bug is HP SR number 8606223364.
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12568 $as_echo_n "checking size of long long... " >&6; }
12569 if ${ac_cv_sizeof_long_long+:} false; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12573
12574 else
12575   if test "$ac_cv_type_long_long" = yes; then
12576      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12578 as_fn_error 77 "cannot compute sizeof (long long)
12579 See \`config.log' for more details" "$LINENO" 5; }
12580    else
12581      ac_cv_sizeof_long_long=0
12582    fi
12583 fi
12584
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12587 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12588
12589
12590
12591 cat >>confdefs.h <<_ACEOF
12592 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12593 _ACEOF
12594
12595
12596 # The cast to long int works around a bug in the HP C Compiler
12597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12599 # This bug is HP SR number 8606223364.
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12601 $as_echo_n "checking size of off_t... " >&6; }
12602 if ${ac_cv_sizeof_off_t+:} false; then :
12603   $as_echo_n "(cached) " >&6
12604 else
12605   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12606
12607 else
12608   if test "$ac_cv_type_off_t" = yes; then
12609      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12611 as_fn_error 77 "cannot compute sizeof (off_t)
12612 See \`config.log' for more details" "$LINENO" 5; }
12613    else
12614      ac_cv_sizeof_off_t=0
12615    fi
12616 fi
12617
12618 fi
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12620 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12621
12622
12623
12624 cat >>confdefs.h <<_ACEOF
12625 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12626 _ACEOF
12627
12628
12629 # The cast to long int works around a bug in the HP C Compiler
12630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12632 # This bug is HP SR number 8606223364.
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12634 $as_echo_n "checking size of time_t... " >&6; }
12635 if ${ac_cv_sizeof_time_t+:} false; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12639
12640 else
12641   if test "$ac_cv_type_time_t" = yes; then
12642      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12644 as_fn_error 77 "cannot compute sizeof (time_t)
12645 See \`config.log' for more details" "$LINENO" 5; }
12646    else
12647      ac_cv_sizeof_time_t=0
12648    fi
12649 fi
12650
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12653 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12654
12655
12656
12657 cat >>confdefs.h <<_ACEOF
12658 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12659 _ACEOF
12660
12661
12662 SIZEOF_SHORT=$ac_cv_sizeof_short
12663 SIZEOF_INT=$ac_cv_sizeof_int
12664 SIZEOF_LONG=$ac_cv_sizeof_long
12665 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12666 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12667 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12668
12669
12670
12671
12672
12673
12674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12675 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12676 if ${ac_cv_c_bigendian+:} false; then :
12677   $as_echo_n "(cached) " >&6
12678 else
12679   ac_cv_c_bigendian=unknown
12680     # See if we're dealing with a universal compiler.
12681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683 #ifndef __APPLE_CC__
12684                not a universal capable compiler
12685              #endif
12686              typedef int dummy;
12687
12688 _ACEOF
12689 if ac_fn_c_try_compile "$LINENO"; then :
12690
12691         # Check for potential -arch flags.  It is not universal unless
12692         # there are at least two -arch flags with different values.
12693         ac_arch=
12694         ac_prev=
12695         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12696          if test -n "$ac_prev"; then
12697            case $ac_word in
12698              i?86 | x86_64 | ppc | ppc64)
12699                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12700                  ac_arch=$ac_word
12701                else
12702                  ac_cv_c_bigendian=universal
12703                  break
12704                fi
12705                ;;
12706            esac
12707            ac_prev=
12708          elif test "x$ac_word" = "x-arch"; then
12709            ac_prev=arch
12710          fi
12711        done
12712 fi
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714     if test $ac_cv_c_bigendian = unknown; then
12715       # See if sys/param.h defines the BYTE_ORDER macro.
12716       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h.  */
12718 #include <sys/types.h>
12719              #include <sys/param.h>
12720
12721 int
12722 main ()
12723 {
12724 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12725                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12726                      && LITTLE_ENDIAN)
12727               bogus endian macros
12728              #endif
12729
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 if ac_fn_c_try_compile "$LINENO"; then :
12735   # It does; now see whether it defined to BIG_ENDIAN or not.
12736          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h.  */
12738 #include <sys/types.h>
12739                 #include <sys/param.h>
12740
12741 int
12742 main ()
12743 {
12744 #if BYTE_ORDER != BIG_ENDIAN
12745                  not big endian
12746                 #endif
12747
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 if ac_fn_c_try_compile "$LINENO"; then :
12753   ac_cv_c_bigendian=yes
12754 else
12755   ac_cv_c_bigendian=no
12756 fi
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758 fi
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760     fi
12761     if test $ac_cv_c_bigendian = unknown; then
12762       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12763       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h.  */
12765 #include <limits.h>
12766
12767 int
12768 main ()
12769 {
12770 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12771               bogus endian macros
12772              #endif
12773
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_compile "$LINENO"; then :
12779   # It does; now see whether it defined to _BIG_ENDIAN or not.
12780          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h.  */
12782 #include <limits.h>
12783
12784 int
12785 main ()
12786 {
12787 #ifndef _BIG_ENDIAN
12788                  not big endian
12789                 #endif
12790
12791   ;
12792   return 0;
12793 }
12794 _ACEOF
12795 if ac_fn_c_try_compile "$LINENO"; then :
12796   ac_cv_c_bigendian=yes
12797 else
12798   ac_cv_c_bigendian=no
12799 fi
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801 fi
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803     fi
12804     if test $ac_cv_c_bigendian = unknown; then
12805       # Compile a test program.
12806       if test "$cross_compiling" = yes; then :
12807   # Try to guess by grepping values from an object file.
12808          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h.  */
12810 short int ascii_mm[] =
12811                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12812                 short int ascii_ii[] =
12813                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12814                 int use_ascii (int i) {
12815                   return ascii_mm[i] + ascii_ii[i];
12816                 }
12817                 short int ebcdic_ii[] =
12818                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12819                 short int ebcdic_mm[] =
12820                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12821                 int use_ebcdic (int i) {
12822                   return ebcdic_mm[i] + ebcdic_ii[i];
12823                 }
12824                 extern int foo;
12825
12826 int
12827 main ()
12828 {
12829 return use_ascii (foo) == use_ebcdic (foo);
12830   ;
12831   return 0;
12832 }
12833 _ACEOF
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12836               ac_cv_c_bigendian=yes
12837             fi
12838             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12839               if test "$ac_cv_c_bigendian" = unknown; then
12840                 ac_cv_c_bigendian=no
12841               else
12842                 # finding both strings is unlikely to happen, but who knows?
12843                 ac_cv_c_bigendian=unknown
12844               fi
12845             fi
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848 else
12849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h.  */
12851 $ac_includes_default
12852 int
12853 main ()
12854 {
12855
12856              /* Are we little or big endian?  From Harbison&Steele.  */
12857              union
12858              {
12859                long int l;
12860                char c[sizeof (long int)];
12861              } u;
12862              u.l = 1;
12863              return u.c[sizeof (long int) - 1] == 1;
12864
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 if ac_fn_c_try_run "$LINENO"; then :
12870   ac_cv_c_bigendian=no
12871 else
12872   ac_cv_c_bigendian=yes
12873 fi
12874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12875   conftest.$ac_objext conftest.beam conftest.$ac_ext
12876 fi
12877
12878     fi
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12881 $as_echo "$ac_cv_c_bigendian" >&6; }
12882  case $ac_cv_c_bigendian in #(
12883    yes)
12884      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12885 ;; #(
12886    no)
12887       ;; #(
12888    universal)
12889
12890 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12891
12892      ;; #(
12893    *)
12894      as_fn_error $? "unknown endianness
12895  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12896  esac
12897
12898 if test $cross_compiling = no; then
12899   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12900 else
12901   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12902 fi
12903 ASM_TYPES_HEADER=./asm_types.h
12904
12905 echo "/* These defines are needed for the public ext2fs.h header file */" \
12906      > public_config.h
12907 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12908   uniq tmp_config.$$ >> public_config.h
12909 else
12910   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12911 fi
12912 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12913   uniq tmp_config.$$ >> public_config.h
12914 else
12915   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12916 fi
12917 rm -f tmp_config.$$
12918 PUBLIC_CONFIG_HEADER=./public_config.h
12919
12920 for ac_header in inttypes.h
12921 do :
12922   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12923 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12924   cat >>confdefs.h <<_ACEOF
12925 #define HAVE_INTTYPES_H 1
12926 _ACEOF
12927
12928 fi
12929
12930 done
12931
12932 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12933 if test "x$ac_cv_type_intptr_t" = xyes; then :
12934
12935 cat >>confdefs.h <<_ACEOF
12936 #define HAVE_INTPTR_T 1
12937 _ACEOF
12938
12939
12940 fi
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12943 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12944 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12945   $as_echo_n "(cached) " >&6
12946 else
12947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h.  */
12949 #include <sys/stat.h>
12950 int
12951 main ()
12952 {
12953 struct stat stat; stat.st_flags = 0;
12954   ;
12955   return 0;
12956 }
12957 _ACEOF
12958 if ac_fn_c_try_compile "$LINENO"; then :
12959   e2fsprogs_cv_struct_st_flags=yes
12960 else
12961   e2fsprogs_cv_struct_st_flags=no
12962 fi
12963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964 fi
12965
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12967 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12968 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12970 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12971   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12972   $as_echo_n "(cached) " >&6
12973 else
12974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h.  */
12976 #include <sys/stat.h>
12977 int
12978 main ()
12979 {
12980 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12981   ;
12982   return 0;
12983 }
12984 _ACEOF
12985 if ac_fn_c_try_compile "$LINENO"; then :
12986   e2fsprogs_cv_struct_st_flags_immut=yes
12987 else
12988   e2fsprogs_cv_struct_st_flags_immut=no
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991 fi
12992
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12994 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12995   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12996
12997 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12998
12999   fi
13000 fi
13001 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13002          #include <sys/socket.h>
13003 "
13004 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13005
13006 cat >>confdefs.h <<_ACEOF
13007 #define HAVE_SA_LEN 1
13008 _ACEOF
13009
13010 fi
13011
13012 if test -n "$BLKID_CMT"; then
13013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13014 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13015 if ${ac_cv_search_blkid_probe_all+:} false; then :
13016   $as_echo_n "(cached) " >&6
13017 else
13018   ac_func_search_save_LIBS=$LIBS
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h.  */
13021
13022 /* Override any GCC internal prototype to avoid an error.
13023    Use char because int might match the return type of a GCC
13024    builtin and then its argument prototype would still apply.  */
13025 #ifdef __cplusplus
13026 extern "C"
13027 #endif
13028 char blkid_probe_all ();
13029 int
13030 main ()
13031 {
13032 return blkid_probe_all ();
13033   ;
13034   return 0;
13035 }
13036 _ACEOF
13037 for ac_lib in '' blkid; do
13038   if test -z "$ac_lib"; then
13039     ac_res="none required"
13040   else
13041     ac_res=-l$ac_lib
13042     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13043   fi
13044   if ac_fn_c_try_link "$LINENO"; then :
13045   ac_cv_search_blkid_probe_all=$ac_res
13046 fi
13047 rm -f core conftest.err conftest.$ac_objext \
13048     conftest$ac_exeext
13049   if ${ac_cv_search_blkid_probe_all+:} false; then :
13050   break
13051 fi
13052 done
13053 if ${ac_cv_search_blkid_probe_all+:} false; then :
13054
13055 else
13056   ac_cv_search_blkid_probe_all=no
13057 fi
13058 rm conftest.$ac_ext
13059 LIBS=$ac_func_search_save_LIBS
13060 fi
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13062 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13063 ac_res=$ac_cv_search_blkid_probe_all
13064 if test "$ac_res" != no; then :
13065   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13066
13067 fi
13068
13069 fi
13070 if test -n "$DLOPEN_LIB" ; then
13071    ac_cv_func_dlopen=yes
13072 fi
13073 for ac_func in          __secure_getenv         add_key         backtrace       blkid_probe_get_topology        blkid_probe_enable_partitions   chflags         dlopen  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
13074 do :
13075   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13077 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13078   cat >>confdefs.h <<_ACEOF
13079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13080 _ACEOF
13081
13082 fi
13083 done
13084
13085 SOCKET_LIB=''
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13087 $as_echo_n "checking for socket in -lsocket... " >&6; }
13088 if ${ac_cv_lib_socket_socket+:} false; then :
13089   $as_echo_n "(cached) " >&6
13090 else
13091   ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-lsocket  $LIBS"
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h.  */
13095
13096 /* Override any GCC internal prototype to avoid an error.
13097    Use char because int might match the return type of a GCC
13098    builtin and then its argument prototype would still apply.  */
13099 #ifdef __cplusplus
13100 extern "C"
13101 #endif
13102 char socket ();
13103 int
13104 main ()
13105 {
13106 return socket ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 if ac_fn_c_try_link "$LINENO"; then :
13112   ac_cv_lib_socket_socket=yes
13113 else
13114   ac_cv_lib_socket_socket=no
13115 fi
13116 rm -f core conftest.err conftest.$ac_objext \
13117     conftest$ac_exeext conftest.$ac_ext
13118 LIBS=$ac_check_lib_save_LIBS
13119 fi
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13121 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13122 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13123   SOCKET_LIB=-lsocket
13124 fi
13125
13126
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13128 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13129 if ${ac_cv_lib_magic_magic_file+:} false; then :
13130   $as_echo_n "(cached) " >&6
13131 else
13132   ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lmagic  $LIBS"
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h.  */
13136
13137 /* Override any GCC internal prototype to avoid an error.
13138    Use char because int might match the return type of a GCC
13139    builtin and then its argument prototype would still apply.  */
13140 #ifdef __cplusplus
13141 extern "C"
13142 #endif
13143 char magic_file ();
13144 int
13145 main ()
13146 {
13147 return magic_file ();
13148   ;
13149   return 0;
13150 }
13151 _ACEOF
13152 if ac_fn_c_try_link "$LINENO"; then :
13153   ac_cv_lib_magic_magic_file=yes
13154 else
13155   ac_cv_lib_magic_magic_file=no
13156 fi
13157 rm -f core conftest.err conftest.$ac_objext \
13158     conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13160 fi
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13162 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13163 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13164   MAGIC_LIB=-lmagic
13165 for ac_header in magic.h
13166 do :
13167   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13168 if test "x$ac_cv_header_magic_h" = xyes; then :
13169   cat >>confdefs.h <<_ACEOF
13170 #define HAVE_MAGIC_H 1
13171 _ACEOF
13172
13173 fi
13174
13175 done
13176
13177 fi
13178
13179 if test "$ac_cv_func_dlopen" = yes ; then
13180    MAGIC_LIB=$DLOPEN_LIB
13181 fi
13182
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13184 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13185 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188   ac_check_lib_save_LIBS=$LIBS
13189 LIBS="-lrt  $LIBS"
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h.  */
13192
13193 /* Override any GCC internal prototype to avoid an error.
13194    Use char because int might match the return type of a GCC
13195    builtin and then its argument prototype would still apply.  */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 char clock_gettime ();
13200 int
13201 main ()
13202 {
13203 return clock_gettime ();
13204   ;
13205   return 0;
13206 }
13207 _ACEOF
13208 if ac_fn_c_try_link "$LINENO"; then :
13209   ac_cv_lib_rt_clock_gettime=yes
13210 else
13211   ac_cv_lib_rt_clock_gettime=no
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext \
13214     conftest$ac_exeext conftest.$ac_ext
13215 LIBS=$ac_check_lib_save_LIBS
13216 fi
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13218 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13219 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13220   CLOCK_GETTIME_LIB=-lrt
13221 fi
13222
13223
13224 FUSE_CMT=
13225 FUSE_LIB=
13226 # Check whether --enable-fuse2fs was given.
13227 if test "${enable_fuse2fs+set}" = set; then :
13228   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13229 then
13230         FUSE_CMT="#"
13231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13232 $as_echo "Disabling fuse2fs" >&6; }
13233 else
13234         for ac_header in pthread.h fuse.h
13235 do :
13236   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13237 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13238 #define FUSE_USE_VERSION 29
13239 "
13240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13241   cat >>confdefs.h <<_ACEOF
13242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13243 _ACEOF
13244
13245 else
13246   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13248 as_fn_error $? "Cannot find fuse2fs headers.
13249 See \`config.log' for more details" "$LINENO" 5; }
13250 fi
13251
13252 done
13253
13254
13255         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h.  */
13257 #define FUSE_USE_VERSION 29
13258 #ifdef __linux__
13259 #include <linux/fs.h>
13260 #include <linux/falloc.h>
13261 #include <linux/xattr.h>
13262 #endif
13263
13264 int
13265 main ()
13266 {
13267
13268   ;
13269   return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_cpp "$LINENO"; then :
13273
13274 else
13275   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13277 as_fn_error $? "Cannot find fuse2fs Linux headers.
13278 See \`config.log' for more details" "$LINENO" 5; }
13279 fi
13280 rm -f conftest.err conftest.i conftest.$ac_ext
13281
13282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13283 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13284 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13285   $as_echo_n "(cached) " >&6
13286 else
13287   ac_check_lib_save_LIBS=$LIBS
13288 LIBS="-losxfuse  $LIBS"
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h.  */
13291
13292 /* Override any GCC internal prototype to avoid an error.
13293    Use char because int might match the return type of a GCC
13294    builtin and then its argument prototype would still apply.  */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 char fuse_main ();
13299 int
13300 main ()
13301 {
13302 return fuse_main ();
13303   ;
13304   return 0;
13305 }
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"; then :
13308   ac_cv_lib_osxfuse_fuse_main=yes
13309 else
13310   ac_cv_lib_osxfuse_fuse_main=no
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext \
13313     conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13317 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13318 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13319   FUSE_LIB=-losxfuse
13320 else
13321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13322 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13323 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13324   $as_echo_n "(cached) " >&6
13325 else
13326   ac_check_lib_save_LIBS=$LIBS
13327 LIBS="-lfuse  $LIBS"
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h.  */
13330
13331 /* Override any GCC internal prototype to avoid an error.
13332    Use char because int might match the return type of a GCC
13333    builtin and then its argument prototype would still apply.  */
13334 #ifdef __cplusplus
13335 extern "C"
13336 #endif
13337 char fuse_main ();
13338 int
13339 main ()
13340 {
13341 return fuse_main ();
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_c_try_link "$LINENO"; then :
13347   ac_cv_lib_fuse_fuse_main=yes
13348 else
13349   ac_cv_lib_fuse_fuse_main=no
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext \
13352     conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13356 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13357 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13358   FUSE_LIB=-lfuse
13359 else
13360   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13362 as_fn_error $? "Cannot find fuse library.
13363 See \`config.log' for more details" "$LINENO" 5; }
13364 fi
13365
13366 fi
13367
13368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13369 $as_echo "Enabling fuse2fs" >&6; }
13370 fi
13371
13372 else
13373   for ac_header in pthread.h fuse.h
13374 do :
13375   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13376 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13377 #define FUSE_USE_VERSION 29
13378 #ifdef __linux__
13379 # include <linux/fs.h>
13380 # include <linux/falloc.h>
13381 # include <linux/xattr.h>
13382 #endif
13383 "
13384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13385   cat >>confdefs.h <<_ACEOF
13386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13387 _ACEOF
13388
13389 else
13390   FUSE_CMT="#"
13391 fi
13392
13393 done
13394
13395 if test -z "$FUSE_CMT"
13396 then
13397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13398 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13399 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13400   $as_echo_n "(cached) " >&6
13401 else
13402   ac_check_lib_save_LIBS=$LIBS
13403 LIBS="-losxfuse  $LIBS"
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h.  */
13406
13407 /* Override any GCC internal prototype to avoid an error.
13408    Use char because int might match the return type of a GCC
13409    builtin and then its argument prototype would still apply.  */
13410 #ifdef __cplusplus
13411 extern "C"
13412 #endif
13413 char fuse_main ();
13414 int
13415 main ()
13416 {
13417 return fuse_main ();
13418   ;
13419   return 0;
13420 }
13421 _ACEOF
13422 if ac_fn_c_try_link "$LINENO"; then :
13423   ac_cv_lib_osxfuse_fuse_main=yes
13424 else
13425   ac_cv_lib_osxfuse_fuse_main=no
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext \
13428     conftest$ac_exeext conftest.$ac_ext
13429 LIBS=$ac_check_lib_save_LIBS
13430 fi
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13432 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13433 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13434   FUSE_LIB=-losxfuse
13435 else
13436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13437 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13438 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13439   $as_echo_n "(cached) " >&6
13440 else
13441   ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-lfuse  $LIBS"
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h.  */
13445
13446 /* Override any GCC internal prototype to avoid an error.
13447    Use char because int might match the return type of a GCC
13448    builtin and then its argument prototype would still apply.  */
13449 #ifdef __cplusplus
13450 extern "C"
13451 #endif
13452 char fuse_main ();
13453 int
13454 main ()
13455 {
13456 return fuse_main ();
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"; then :
13462   ac_cv_lib_fuse_fuse_main=yes
13463 else
13464   ac_cv_lib_fuse_fuse_main=no
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext \
13467     conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13471 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13472 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13473   FUSE_LIB=-lfuse
13474 else
13475   FUSE_CMT="#"
13476 fi
13477
13478 fi
13479
13480 fi
13481 if test -z "$FUSE_CMT"
13482 then
13483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13484 $as_echo "Enabling fuse2fs by default." >&6; }
13485 fi
13486
13487 fi
13488
13489
13490
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13492 $as_echo_n "checking for optreset... " >&6; }
13493 if ${ac_cv_have_optreset+:} false; then :
13494   $as_echo_n "(cached) " >&6
13495 else
13496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h.  */
13498 #include <unistd.h>
13499
13500 _ACEOF
13501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13502   $EGREP "optreset" >/dev/null 2>&1; then :
13503   ac_cv_have_optreset=yes
13504 else
13505   ac_cv_have_optreset=no
13506 fi
13507 rm -f conftest*
13508
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13511 $as_echo "$ac_cv_have_optreset" >&6; }
13512 if test $ac_cv_have_optreset = yes; then
13513
13514 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13515
13516 fi
13517
13518 SEM_INIT_LIB=''
13519 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13520 if test "x$ac_cv_func_sem_init" = xyes; then :
13521
13522 else
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13524 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13525 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13526   $as_echo_n "(cached) " >&6
13527 else
13528   ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-lpthread  $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h.  */
13532
13533 /* Override any GCC internal prototype to avoid an error.
13534    Use char because int might match the return type of a GCC
13535    builtin and then its argument prototype would still apply.  */
13536 #ifdef __cplusplus
13537 extern "C"
13538 #endif
13539 char sem_init ();
13540 int
13541 main ()
13542 {
13543 return sem_init ();
13544   ;
13545   return 0;
13546 }
13547 _ACEOF
13548 if ac_fn_c_try_link "$LINENO"; then :
13549   ac_cv_lib_pthread_sem_init=yes
13550 else
13551   ac_cv_lib_pthread_sem_init=no
13552 fi
13553 rm -f core conftest.err conftest.$ac_objext \
13554     conftest$ac_exeext conftest.$ac_ext
13555 LIBS=$ac_check_lib_save_LIBS
13556 fi
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13558 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13559 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13560   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13561
13562         SEM_INIT_LIB=-lpthread
13563 else
13564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13565 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13566 if ${ac_cv_lib_rt_sem_init+:} false; then :
13567   $as_echo_n "(cached) " >&6
13568 else
13569   ac_check_lib_save_LIBS=$LIBS
13570 LIBS="-lrt  $LIBS"
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h.  */
13573
13574 /* Override any GCC internal prototype to avoid an error.
13575    Use char because int might match the return type of a GCC
13576    builtin and then its argument prototype would still apply.  */
13577 #ifdef __cplusplus
13578 extern "C"
13579 #endif
13580 char sem_init ();
13581 int
13582 main ()
13583 {
13584 return sem_init ();
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 if ac_fn_c_try_link "$LINENO"; then :
13590   ac_cv_lib_rt_sem_init=yes
13591 else
13592   ac_cv_lib_rt_sem_init=no
13593 fi
13594 rm -f core conftest.err conftest.$ac_objext \
13595     conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13597 fi
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13599 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13600 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13601   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13602
13603         SEM_INIT_LIB=-lrt
13604 else
13605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13606 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13607 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13608   $as_echo_n "(cached) " >&6
13609 else
13610   ac_check_lib_save_LIBS=$LIBS
13611 LIBS="-lposix4  $LIBS"
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h.  */
13614
13615 /* Override any GCC internal prototype to avoid an error.
13616    Use char because int might match the return type of a GCC
13617    builtin and then its argument prototype would still apply.  */
13618 #ifdef __cplusplus
13619 extern "C"
13620 #endif
13621 char sem_init ();
13622 int
13623 main ()
13624 {
13625 return sem_init ();
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 if ac_fn_c_try_link "$LINENO"; then :
13631   ac_cv_lib_posix4_sem_init=yes
13632 else
13633   ac_cv_lib_posix4_sem_init=no
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext \
13636     conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13638 fi
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13640 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13641 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13642   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13643
13644         SEM_INIT_LIB=-lposix4
13645 fi
13646
13647 fi
13648
13649 fi
13650
13651 fi
13652
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13654 $as_echo_n "checking for unified diff option... " >&6; }
13655 if diff -u $0 $0 > /dev/null 2>&1 ; then
13656    UNI_DIFF_OPTS=-u
13657 else
13658    UNI_DIFF_OPTS=-c
13659 fi
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13661 $as_echo "$UNI_DIFF_OPTS" >&6; }
13662
13663 case "$host_os" in
13664 linux*)
13665
13666 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13667
13668         ;;
13669 esac
13670 LINUX_CMT="#"
13671 CYGWIN_CMT="#"
13672 UNIX_CMT=
13673 case "$host_os" in
13674 linux*)
13675         LINUX_CMT=
13676         ;;
13677 cygwin)
13678         CYGWIN_CMT=
13679         UNIX_CMT="#"
13680         ;;
13681 esac
13682
13683
13684
13685 case "$host_os" in
13686 linux* | gnu* | k*bsd*-gnu)
13687         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13688                 root_prefix="";
13689                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13690 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13691         fi
13692         ;;
13693 esac
13694 case "$host_os" in
13695 linux* | gnu* | k*bsd*-gnu)
13696         if test "$prefix" = NONE ; then
13697                 prefix="/usr";
13698                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13699 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13700                 if test "$mandir" = '${prefix}/man' ; then
13701                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13702 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13703                         mandir=/usr/share/man
13704                 fi
13705         fi
13706 ;;
13707 esac
13708 if test "$root_prefix" = NONE ; then
13709         if test "$prefix" = NONE ; then
13710                 root_prefix="$ac_default_prefix"
13711         else
13712                 root_prefix="$prefix"
13713         fi
13714         root_bindir=$bindir
13715         root_sbindir=$sbindir
13716         root_libdir=$libdir
13717         root_sysconfdir=$sysconfdir
13718 else
13719         root_bindir='${root_prefix}/bin'
13720         root_sbindir='${root_prefix}/sbin'
13721         root_libdir='${root_prefix}/lib'
13722         root_sysconfdir='${root_prefix}/etc'
13723 fi
13724 if test "$bindir" != '${exec_prefix}/bin'; then
13725     root_bindir=$bindir
13726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13727 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13728 fi
13729 if test "$sbindir" != '${exec_prefix}/sbin'; then
13730     root_sbindir=$sbindir
13731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13732 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13733 fi
13734 if test "$libdir" != '${exec_prefix}/lib'; then
13735     root_libdir=$libdir
13736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13737 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13738 fi
13739 if test "$sysconfdir" != '${prefix}/etc'; then
13740     root_sysconfdir=$sysconfdir
13741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13742 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13743 fi
13744
13745
13746
13747
13748
13749
13750 # Check whether --with-multiarch was given.
13751 if test "${with_multiarch+set}" = set; then :
13752   withval=$with_multiarch; if test "$withval" = "lib64"; then
13753     libdir=/usr/lib64
13754     root_libdir=/lib64
13755 else
13756     libdir=$libdir/$withval
13757     root_libdir=$root_libdir/$withval
13758 fi
13759
13760 fi
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13762 $as_echo_n "checking whether we can link with -static... " >&6; }
13763 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13764   $as_echo_n "(cached) " >&6
13765 else
13766   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h.  */
13769 #include <stdio.h>
13770 int
13771 main ()
13772 {
13773 fflush(stdout);
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 if ac_fn_c_try_link "$LINENO"; then :
13779   ac_cv_e2fsprogs_use_static=yes
13780 else
13781   ac_cv_e2fsprogs_use_static=no
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext \
13784     conftest$ac_exeext conftest.$ac_ext
13785 LDFLAGS=$SAVE_LDFLAGS
13786 fi
13787
13788 case "$host_os" in
13789 solaris2.*)
13790         ac_cv_e2fsprogs_use_static=no
13791 ;;
13792 esac
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13794 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13795 if test $ac_cv_e2fsprogs_use_static = yes; then
13796         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13797 fi
13798
13799 case "$host_os" in
13800 darwin*)
13801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13802 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13803
13804 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13805
13806         ;;
13807 esac
13808 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13809 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13810
13811
13812 if test "$cross_compiling" = yes ; then
13813   DO_TEST_SUITE=
13814 else
13815   DO_TEST_SUITE=check
13816 fi
13817
13818 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13819 if test -n "$CPPFLAGS" ; then
13820         INCLUDES="$INCLUDES $CPPFLAGS"
13821 fi
13822 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13823         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13824 fi
13825 if test -n "$WITH_DIET_LIBC" ; then
13826         INCLUDES="$INCLUDES -D_REENTRANT"
13827 fi
13828
13829
13830         MKINSTALLDIRS=
13831   if test -n "$ac_aux_dir"; then
13832     case "$ac_aux_dir" in
13833       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13834       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13835     esac
13836   fi
13837   if test -z "$MKINSTALLDIRS"; then
13838     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13839   fi
13840
13841
13842 if test $cross_compiling = no; then
13843    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13844    BUILD_LDFLAGS="$LDFLAGS"
13845 fi
13846
13847
13848 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13849 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13850 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13851
13852
13853
13854 test -d lib || mkdir lib
13855 test -d include || mkdir include
13856 test -d include/linux || mkdir include/linux
13857 test -d include/asm || mkdir include/asm
13858 if test -z "$UUID_CMT" ; then
13859         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13860                 lib/uuid/uuid_types.h"
13861 fi
13862 if test -z "$BLKID_CMT" ; then
13863         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13864                 lib/blkid/blkid_types.h"
13865 fi
13866 for i in MCONFIG Makefile e2fsprogs.spec \
13867         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13868         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13869         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13870         $uuid_out_list $blkid_out_list lib/support/Makefile \
13871         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13872         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13873         debugfs/Makefile tests/Makefile tests/progs/Makefile \
13874         resize/Makefile doc/Makefile intl/Makefile \
13875         intl/libgnuintl.h po/Makefile.in ; do
13876         if test -d `dirname ${srcdir}/$i` ; then
13877                 outlist="$outlist $i"
13878         fi
13879 done
13880 ac_config_files="$ac_config_files $outlist"
13881
13882 cat >confcache <<\_ACEOF
13883 # This file is a shell script that caches the results of configure
13884 # tests run on this system so they can be shared between configure
13885 # scripts and configure runs, see configure's option --config-cache.
13886 # It is not useful on other systems.  If it contains results you don't
13887 # want to keep, you may remove or edit it.
13888 #
13889 # config.status only pays attention to the cache file if you give it
13890 # the --recheck option to rerun configure.
13891 #
13892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13894 # following values.
13895
13896 _ACEOF
13897
13898 # The following way of writing the cache mishandles newlines in values,
13899 # but we know of no workaround that is simple, portable, and efficient.
13900 # So, we kill variables containing newlines.
13901 # Ultrix sh set writes to stderr and can't be redirected directly,
13902 # and sets the high bit in the cache file unless we assign to the vars.
13903 (
13904   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13905     eval ac_val=\$$ac_var
13906     case $ac_val in #(
13907     *${as_nl}*)
13908       case $ac_var in #(
13909       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13911       esac
13912       case $ac_var in #(
13913       _ | IFS | as_nl) ;; #(
13914       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13915       *) { eval $ac_var=; unset $ac_var;} ;;
13916       esac ;;
13917     esac
13918   done
13919
13920   (set) 2>&1 |
13921     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13922     *${as_nl}ac_space=\ *)
13923       # `set' does not quote correctly, so add quotes: double-quote
13924       # substitution turns \\\\ into \\, and sed turns \\ into \.
13925       sed -n \
13926         "s/'/'\\\\''/g;
13927           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13928       ;; #(
13929     *)
13930       # `set' quotes correctly as required by POSIX, so do not add quotes.
13931       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13932       ;;
13933     esac |
13934     sort
13935 ) |
13936   sed '
13937      /^ac_cv_env_/b end
13938      t clear
13939      :clear
13940      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13941      t end
13942      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13943      :end' >>confcache
13944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13945   if test -w "$cache_file"; then
13946     if test "x$cache_file" != "x/dev/null"; then
13947       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13948 $as_echo "$as_me: updating cache $cache_file" >&6;}
13949       if test ! -f "$cache_file" || test -h "$cache_file"; then
13950         cat confcache >"$cache_file"
13951       else
13952         case $cache_file in #(
13953         */* | ?:*)
13954           mv -f confcache "$cache_file"$$ &&
13955           mv -f "$cache_file"$$ "$cache_file" ;; #(
13956         *)
13957           mv -f confcache "$cache_file" ;;
13958         esac
13959       fi
13960     fi
13961   else
13962     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13963 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13964   fi
13965 fi
13966 rm -f confcache
13967
13968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13969 # Let make expand exec_prefix.
13970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13971
13972 DEFS=-DHAVE_CONFIG_H
13973
13974 ac_libobjs=
13975 ac_ltlibobjs=
13976 U=
13977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13978   # 1. Remove the extension, and $U if already installed.
13979   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13980   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13981   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13982   #    will be set to the directory where LIBOBJS objects are built.
13983   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13984   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13985 done
13986 LIBOBJS=$ac_libobjs
13987
13988 LTLIBOBJS=$ac_ltlibobjs
13989
13990
13991
13992
13993 : "${CONFIG_STATUS=./config.status}"
13994 ac_write_fail=0
13995 ac_clean_files_save=$ac_clean_files
13996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13998 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13999 as_write_fail=0
14000 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14001 #! $SHELL
14002 # Generated by $as_me.
14003 # Run this file to recreate the current configuration.
14004 # Compiler output produced by configure, useful for debugging
14005 # configure, is in config.log if it exists.
14006
14007 debug=false
14008 ac_cs_recheck=false
14009 ac_cs_silent=false
14010
14011 SHELL=\${CONFIG_SHELL-$SHELL}
14012 export SHELL
14013 _ASEOF
14014 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14015 ## -------------------- ##
14016 ## M4sh Initialization. ##
14017 ## -------------------- ##
14018
14019 # Be more Bourne compatible
14020 DUALCASE=1; export DUALCASE # for MKS sh
14021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14022   emulate sh
14023   NULLCMD=:
14024   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14025   # is contrary to our usage.  Disable this feature.
14026   alias -g '${1+"$@"}'='"$@"'
14027   setopt NO_GLOB_SUBST
14028 else
14029   case `(set -o) 2>/dev/null` in #(
14030   *posix*) :
14031     set -o posix ;; #(
14032   *) :
14033      ;;
14034 esac
14035 fi
14036
14037
14038 as_nl='
14039 '
14040 export as_nl
14041 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14042 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14045 # Prefer a ksh shell builtin over an external printf program on Solaris,
14046 # but without wasting forks for bash or zsh.
14047 if test -z "$BASH_VERSION$ZSH_VERSION" \
14048     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14049   as_echo='print -r --'
14050   as_echo_n='print -rn --'
14051 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14052   as_echo='printf %s\n'
14053   as_echo_n='printf %s'
14054 else
14055   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14056     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14057     as_echo_n='/usr/ucb/echo -n'
14058   else
14059     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14060     as_echo_n_body='eval
14061       arg=$1;
14062       case $arg in #(
14063       *"$as_nl"*)
14064         expr "X$arg" : "X\\(.*\\)$as_nl";
14065         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14066       esac;
14067       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14068     '
14069     export as_echo_n_body
14070     as_echo_n='sh -c $as_echo_n_body as_echo'
14071   fi
14072   export as_echo_body
14073   as_echo='sh -c $as_echo_body as_echo'
14074 fi
14075
14076 # The user is always right.
14077 if test "${PATH_SEPARATOR+set}" != set; then
14078   PATH_SEPARATOR=:
14079   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14080     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14081       PATH_SEPARATOR=';'
14082   }
14083 fi
14084
14085
14086 # IFS
14087 # We need space, tab and new line, in precisely that order.  Quoting is
14088 # there to prevent editors from complaining about space-tab.
14089 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14090 # splitting by setting IFS to empty value.)
14091 IFS=" ""        $as_nl"
14092
14093 # Find who we are.  Look in the path if we contain no directory separator.
14094 as_myself=
14095 case $0 in #((
14096   *[\\/]* ) as_myself=$0 ;;
14097   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098 for as_dir in $PATH
14099 do
14100   IFS=$as_save_IFS
14101   test -z "$as_dir" && as_dir=.
14102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14103   done
14104 IFS=$as_save_IFS
14105
14106      ;;
14107 esac
14108 # We did not find ourselves, most probably we were run as `sh COMMAND'
14109 # in which case we are not to be found in the path.
14110 if test "x$as_myself" = x; then
14111   as_myself=$0
14112 fi
14113 if test ! -f "$as_myself"; then
14114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14115   exit 1
14116 fi
14117
14118 # Unset variables that we do not need and which cause bugs (e.g. in
14119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14120 # suppresses any "Segmentation fault" message there.  '((' could
14121 # trigger a bug in pdksh 5.2.14.
14122 for as_var in BASH_ENV ENV MAIL MAILPATH
14123 do eval test x\${$as_var+set} = xset \
14124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14125 done
14126 PS1='$ '
14127 PS2='> '
14128 PS4='+ '
14129
14130 # NLS nuisances.
14131 LC_ALL=C
14132 export LC_ALL
14133 LANGUAGE=C
14134 export LANGUAGE
14135
14136 # CDPATH.
14137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14138
14139
14140 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14141 # ----------------------------------------
14142 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14143 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14144 # script with STATUS, using 1 if that was 0.
14145 as_fn_error ()
14146 {
14147   as_status=$1; test $as_status -eq 0 && as_status=1
14148   if test "$4"; then
14149     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14150     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14151   fi
14152   $as_echo "$as_me: error: $2" >&2
14153   as_fn_exit $as_status
14154 } # as_fn_error
14155
14156
14157 # as_fn_set_status STATUS
14158 # -----------------------
14159 # Set $? to STATUS, without forking.
14160 as_fn_set_status ()
14161 {
14162   return $1
14163 } # as_fn_set_status
14164
14165 # as_fn_exit STATUS
14166 # -----------------
14167 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14168 as_fn_exit ()
14169 {
14170   set +e
14171   as_fn_set_status $1
14172   exit $1
14173 } # as_fn_exit
14174
14175 # as_fn_unset VAR
14176 # ---------------
14177 # Portably unset VAR.
14178 as_fn_unset ()
14179 {
14180   { eval $1=; unset $1;}
14181 }
14182 as_unset=as_fn_unset
14183 # as_fn_append VAR VALUE
14184 # ----------------------
14185 # Append the text in VALUE to the end of the definition contained in VAR. Take
14186 # advantage of any shell optimizations that allow amortized linear growth over
14187 # repeated appends, instead of the typical quadratic growth present in naive
14188 # implementations.
14189 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14190   eval 'as_fn_append ()
14191   {
14192     eval $1+=\$2
14193   }'
14194 else
14195   as_fn_append ()
14196   {
14197     eval $1=\$$1\$2
14198   }
14199 fi # as_fn_append
14200
14201 # as_fn_arith ARG...
14202 # ------------------
14203 # Perform arithmetic evaluation on the ARGs, and store the result in the
14204 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14205 # must be portable across $(()) and expr.
14206 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14207   eval 'as_fn_arith ()
14208   {
14209     as_val=$(( $* ))
14210   }'
14211 else
14212   as_fn_arith ()
14213   {
14214     as_val=`expr "$@" || test $? -eq 1`
14215   }
14216 fi # as_fn_arith
14217
14218
14219 if expr a : '\(a\)' >/dev/null 2>&1 &&
14220    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14221   as_expr=expr
14222 else
14223   as_expr=false
14224 fi
14225
14226 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14227   as_basename=basename
14228 else
14229   as_basename=false
14230 fi
14231
14232 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14233   as_dirname=dirname
14234 else
14235   as_dirname=false
14236 fi
14237
14238 as_me=`$as_basename -- "$0" ||
14239 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14240          X"$0" : 'X\(//\)$' \| \
14241          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14242 $as_echo X/"$0" |
14243     sed '/^.*\/\([^/][^/]*\)\/*$/{
14244             s//\1/
14245             q
14246           }
14247           /^X\/\(\/\/\)$/{
14248             s//\1/
14249             q
14250           }
14251           /^X\/\(\/\).*/{
14252             s//\1/
14253             q
14254           }
14255           s/.*/./; q'`
14256
14257 # Avoid depending upon Character Ranges.
14258 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14259 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14260 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14261 as_cr_digits='0123456789'
14262 as_cr_alnum=$as_cr_Letters$as_cr_digits
14263
14264 ECHO_C= ECHO_N= ECHO_T=
14265 case `echo -n x` in #(((((
14266 -n*)
14267   case `echo 'xy\c'` in
14268   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14269   xy)  ECHO_C='\c';;
14270   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14271        ECHO_T=' ';;
14272   esac;;
14273 *)
14274   ECHO_N='-n';;
14275 esac
14276
14277 rm -f conf$$ conf$$.exe conf$$.file
14278 if test -d conf$$.dir; then
14279   rm -f conf$$.dir/conf$$.file
14280 else
14281   rm -f conf$$.dir
14282   mkdir conf$$.dir 2>/dev/null
14283 fi
14284 if (echo >conf$$.file) 2>/dev/null; then
14285   if ln -s conf$$.file conf$$ 2>/dev/null; then
14286     as_ln_s='ln -s'
14287     # ... but there are two gotchas:
14288     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14289     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14290     # In both cases, we have to default to `cp -pR'.
14291     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14292       as_ln_s='cp -pR'
14293   elif ln conf$$.file conf$$ 2>/dev/null; then
14294     as_ln_s=ln
14295   else
14296     as_ln_s='cp -pR'
14297   fi
14298 else
14299   as_ln_s='cp -pR'
14300 fi
14301 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14302 rmdir conf$$.dir 2>/dev/null
14303
14304
14305 # as_fn_mkdir_p
14306 # -------------
14307 # Create "$as_dir" as a directory, including parents if necessary.
14308 as_fn_mkdir_p ()
14309 {
14310
14311   case $as_dir in #(
14312   -*) as_dir=./$as_dir;;
14313   esac
14314   test -d "$as_dir" || eval $as_mkdir_p || {
14315     as_dirs=
14316     while :; do
14317       case $as_dir in #(
14318       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14319       *) as_qdir=$as_dir;;
14320       esac
14321       as_dirs="'$as_qdir' $as_dirs"
14322       as_dir=`$as_dirname -- "$as_dir" ||
14323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14324          X"$as_dir" : 'X\(//\)[^/]' \| \
14325          X"$as_dir" : 'X\(//\)$' \| \
14326          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14327 $as_echo X"$as_dir" |
14328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14329             s//\1/
14330             q
14331           }
14332           /^X\(\/\/\)[^/].*/{
14333             s//\1/
14334             q
14335           }
14336           /^X\(\/\/\)$/{
14337             s//\1/
14338             q
14339           }
14340           /^X\(\/\).*/{
14341             s//\1/
14342             q
14343           }
14344           s/.*/./; q'`
14345       test -d "$as_dir" && break
14346     done
14347     test -z "$as_dirs" || eval "mkdir $as_dirs"
14348   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14349
14350
14351 } # as_fn_mkdir_p
14352 if mkdir -p . 2>/dev/null; then
14353   as_mkdir_p='mkdir -p "$as_dir"'
14354 else
14355   test -d ./-p && rmdir ./-p
14356   as_mkdir_p=false
14357 fi
14358
14359
14360 # as_fn_executable_p FILE
14361 # -----------------------
14362 # Test if FILE is an executable regular file.
14363 as_fn_executable_p ()
14364 {
14365   test -f "$1" && test -x "$1"
14366 } # as_fn_executable_p
14367 as_test_x='test -x'
14368 as_executable_p=as_fn_executable_p
14369
14370 # Sed expression to map a string onto a valid CPP name.
14371 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14372
14373 # Sed expression to map a string onto a valid variable name.
14374 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14375
14376
14377 exec 6>&1
14378 ## ----------------------------------- ##
14379 ## Main body of $CONFIG_STATUS script. ##
14380 ## ----------------------------------- ##
14381 _ASEOF
14382 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14383
14384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14385 # Save the log message, to keep $0 and so on meaningful, and to
14386 # report actual input values of CONFIG_FILES etc. instead of their
14387 # values after options handling.
14388 ac_log="
14389 This file was extended by $as_me, which was
14390 generated by GNU Autoconf 2.69.  Invocation command line was
14391
14392   CONFIG_FILES    = $CONFIG_FILES
14393   CONFIG_HEADERS  = $CONFIG_HEADERS
14394   CONFIG_LINKS    = $CONFIG_LINKS
14395   CONFIG_COMMANDS = $CONFIG_COMMANDS
14396   $ $0 $@
14397
14398 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14399 "
14400
14401 _ACEOF
14402
14403 case $ac_config_files in *"
14404 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14405 esac
14406
14407 case $ac_config_headers in *"
14408 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14409 esac
14410
14411
14412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14413 # Files that config.status was made for.
14414 config_files="$ac_config_files"
14415 config_headers="$ac_config_headers"
14416 config_commands="$ac_config_commands"
14417
14418 _ACEOF
14419
14420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14421 ac_cs_usage="\
14422 \`$as_me' instantiates files and other configuration actions
14423 from templates according to the current configuration.  Unless the files
14424 and actions are specified as TAGs, all are instantiated by default.
14425
14426 Usage: $0 [OPTION]... [TAG]...
14427
14428   -h, --help       print this help, then exit
14429   -V, --version    print version number and configuration settings, then exit
14430       --config     print configuration, then exit
14431   -q, --quiet, --silent
14432                    do not print progress messages
14433   -d, --debug      don't remove temporary files
14434       --recheck    update $as_me by reconfiguring in the same conditions
14435       --file=FILE[:TEMPLATE]
14436                    instantiate the configuration file FILE
14437       --header=FILE[:TEMPLATE]
14438                    instantiate the configuration header FILE
14439
14440 Configuration files:
14441 $config_files
14442
14443 Configuration headers:
14444 $config_headers
14445
14446 Configuration commands:
14447 $config_commands
14448
14449 Report bugs to the package provider."
14450
14451 _ACEOF
14452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14453 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14454 ac_cs_version="\\
14455 config.status
14456 configured by $0, generated by GNU Autoconf 2.69,
14457   with options \\"\$ac_cs_config\\"
14458
14459 Copyright (C) 2012 Free Software Foundation, Inc.
14460 This config.status script is free software; the Free Software Foundation
14461 gives unlimited permission to copy, distribute and modify it."
14462
14463 ac_pwd='$ac_pwd'
14464 srcdir='$srcdir'
14465 INSTALL='$INSTALL'
14466 MKDIR_P='$MKDIR_P'
14467 AWK='$AWK'
14468 test -n "\$AWK" || AWK=awk
14469 _ACEOF
14470
14471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14472 # The default lists apply if the user does not specify any file.
14473 ac_need_defaults=:
14474 while test $# != 0
14475 do
14476   case $1 in
14477   --*=?*)
14478     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14479     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14480     ac_shift=:
14481     ;;
14482   --*=)
14483     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14484     ac_optarg=
14485     ac_shift=:
14486     ;;
14487   *)
14488     ac_option=$1
14489     ac_optarg=$2
14490     ac_shift=shift
14491     ;;
14492   esac
14493
14494   case $ac_option in
14495   # Handling of the options.
14496   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14497     ac_cs_recheck=: ;;
14498   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14499     $as_echo "$ac_cs_version"; exit ;;
14500   --config | --confi | --conf | --con | --co | --c )
14501     $as_echo "$ac_cs_config"; exit ;;
14502   --debug | --debu | --deb | --de | --d | -d )
14503     debug=: ;;
14504   --file | --fil | --fi | --f )
14505     $ac_shift
14506     case $ac_optarg in
14507     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14508     '') as_fn_error $? "missing file argument" ;;
14509     esac
14510     as_fn_append CONFIG_FILES " '$ac_optarg'"
14511     ac_need_defaults=false;;
14512   --header | --heade | --head | --hea )
14513     $ac_shift
14514     case $ac_optarg in
14515     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14516     esac
14517     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14518     ac_need_defaults=false;;
14519   --he | --h)
14520     # Conflict between --help and --header
14521     as_fn_error $? "ambiguous option: \`$1'
14522 Try \`$0 --help' for more information.";;
14523   --help | --hel | -h )
14524     $as_echo "$ac_cs_usage"; exit ;;
14525   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14526   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14527     ac_cs_silent=: ;;
14528
14529   # This is an error.
14530   -*) as_fn_error $? "unrecognized option: \`$1'
14531 Try \`$0 --help' for more information." ;;
14532
14533   *) as_fn_append ac_config_targets " $1"
14534      ac_need_defaults=false ;;
14535
14536   esac
14537   shift
14538 done
14539
14540 ac_configure_extra_args=
14541
14542 if $ac_cs_silent; then
14543   exec 6>/dev/null
14544   ac_configure_extra_args="$ac_configure_extra_args --silent"
14545 fi
14546
14547 _ACEOF
14548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14549 if \$ac_cs_recheck; then
14550   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14551   shift
14552   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14553   CONFIG_SHELL='$SHELL'
14554   export CONFIG_SHELL
14555   exec "\$@"
14556 fi
14557
14558 _ACEOF
14559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14560 exec 5>>config.log
14561 {
14562   echo
14563   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14564 ## Running $as_me. ##
14565 _ASBOX
14566   $as_echo "$ac_log"
14567 } >&5
14568
14569 _ACEOF
14570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14571 #
14572 # INIT-COMMANDS
14573 #
14574 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14575     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14576     # from automake < 1.5.
14577     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14578     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14579     LINGUAS="${LINGUAS-%UNSET%}"
14580
14581
14582 _ACEOF
14583
14584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14585
14586 # Handling of arguments.
14587 for ac_config_target in $ac_config_targets
14588 do
14589   case $ac_config_target in
14590     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14591     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14592     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14593
14594   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14595   esac
14596 done
14597
14598
14599 # If the user did not use the arguments to specify the items to instantiate,
14600 # then the envvar interface is used.  Set only those that are not.
14601 # We use the long form for the default assignment because of an extremely
14602 # bizarre bug on SunOS 4.1.3.
14603 if $ac_need_defaults; then
14604   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14605   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14606   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14607 fi
14608
14609 # Have a temporary directory for convenience.  Make it in the build tree
14610 # simply because there is no reason against having it here, and in addition,
14611 # creating and moving files from /tmp can sometimes cause problems.
14612 # Hook for its removal unless debugging.
14613 # Note that there is a small window in which the directory will not be cleaned:
14614 # after its creation but before its name has been assigned to `$tmp'.
14615 $debug ||
14616 {
14617   tmp= ac_tmp=
14618   trap 'exit_status=$?
14619   : "${ac_tmp:=$tmp}"
14620   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14621 ' 0
14622   trap 'as_fn_exit 1' 1 2 13 15
14623 }
14624 # Create a (secure) tmp directory for tmp files.
14625
14626 {
14627   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14628   test -d "$tmp"
14629 }  ||
14630 {
14631   tmp=./conf$$-$RANDOM
14632   (umask 077 && mkdir "$tmp")
14633 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14634 ac_tmp=$tmp
14635
14636 # Set up the scripts for CONFIG_FILES section.
14637 # No need to generate them if there are no CONFIG_FILES.
14638 # This happens for instance with `./config.status config.h'.
14639 if test -n "$CONFIG_FILES"; then
14640
14641 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14642   ac_cs_awk_getline=:
14643   ac_cs_awk_pipe_init=
14644   ac_cs_awk_read_file='
14645       while ((getline aline < (F[key])) > 0)
14646         print(aline)
14647       close(F[key])'
14648   ac_cs_awk_pipe_fini=
14649 else
14650   ac_cs_awk_getline=false
14651   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14652   ac_cs_awk_read_file='
14653       print "|#_!!_#|"
14654       print "cat " F[key] " &&"
14655       '$ac_cs_awk_pipe_init
14656   # The final `:' finishes the AND list.
14657   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14658 fi
14659 ac_cr=`echo X | tr X '\015'`
14660 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14661 # But we know of no other shell where ac_cr would be empty at this
14662 # point, so we can use a bashism as a fallback.
14663 if test "x$ac_cr" = x; then
14664   eval ac_cr=\$\'\\r\'
14665 fi
14666 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14667 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14668   ac_cs_awk_cr='\\r'
14669 else
14670   ac_cs_awk_cr=$ac_cr
14671 fi
14672
14673 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14674 _ACEOF
14675
14676 # Create commands to substitute file output variables.
14677 {
14678   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14679   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14680   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14681   echo "_ACAWK" &&
14682   echo "_ACEOF"
14683 } >conf$$files.sh &&
14684 . ./conf$$files.sh ||
14685   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14686 rm -f conf$$files.sh
14687
14688 {
14689   echo "cat >conf$$subs.awk <<_ACEOF" &&
14690   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14691   echo "_ACEOF"
14692 } >conf$$subs.sh ||
14693   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14694 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14695 ac_delim='%!_!# '
14696 for ac_last_try in false false false false false :; do
14697   . ./conf$$subs.sh ||
14698     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14699
14700   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14701   if test $ac_delim_n = $ac_delim_num; then
14702     break
14703   elif $ac_last_try; then
14704     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14705   else
14706     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14707   fi
14708 done
14709 rm -f conf$$subs.sh
14710
14711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14712 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14713 _ACEOF
14714 sed -n '
14715 h
14716 s/^/S["/; s/!.*/"]=/
14717 p
14718 g
14719 s/^[^!]*!//
14720 :repl
14721 t repl
14722 s/'"$ac_delim"'$//
14723 t delim
14724 :nl
14725 h
14726 s/\(.\{148\}\)..*/\1/
14727 t more1
14728 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14729 p
14730 n
14731 b repl
14732 :more1
14733 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14734 p
14735 g
14736 s/.\{148\}//
14737 t nl
14738 :delim
14739 h
14740 s/\(.\{148\}\)..*/\1/
14741 t more2
14742 s/["\\]/\\&/g; s/^/"/; s/$/"/
14743 p
14744 b
14745 :more2
14746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14747 p
14748 g
14749 s/.\{148\}//
14750 t delim
14751 ' <conf$$subs.awk | sed '
14752 /^[^""]/{
14753   N
14754   s/\n//
14755 }
14756 ' >>$CONFIG_STATUS || ac_write_fail=1
14757 rm -f conf$$subs.awk
14758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14759 _ACAWK
14760 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14761   for (key in S) S_is_set[key] = 1
14762   FS = "\a"
14763   \$ac_cs_awk_pipe_init
14764 }
14765 {
14766   line = $ 0
14767   nfields = split(line, field, "@")
14768   substed = 0
14769   len = length(field[1])
14770   for (i = 2; i < nfields; i++) {
14771     key = field[i]
14772     keylen = length(key)
14773     if (S_is_set[key]) {
14774       value = S[key]
14775       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14776       len += length(value) + length(field[++i])
14777       substed = 1
14778     } else
14779       len += 1 + keylen
14780   }
14781   if (nfields == 3 && !substed) {
14782     key = field[2]
14783     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14784       \$ac_cs_awk_read_file
14785       next
14786     }
14787   }
14788   print line
14789 }
14790 \$ac_cs_awk_pipe_fini
14791 _ACAWK
14792 _ACEOF
14793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14794 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14795   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14796 else
14797   cat
14798 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14799   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14800 _ACEOF
14801
14802 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14803 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14804 # trailing colons and then remove the whole line if VPATH becomes empty
14805 # (actually we leave an empty line to preserve line numbers).
14806 if test "x$srcdir" = x.; then
14807   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14808 h
14809 s///
14810 s/^/:/
14811 s/[      ]*$/:/
14812 s/:\$(srcdir):/:/g
14813 s/:\${srcdir}:/:/g
14814 s/:@srcdir@:/:/g
14815 s/^:*//
14816 s/:*$//
14817 x
14818 s/\(=[   ]*\).*/\1/
14819 G
14820 s/\n//
14821 s/^[^=]*=[       ]*$//
14822 }'
14823 fi
14824
14825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14826 fi # test -n "$CONFIG_FILES"
14827
14828 # Set up the scripts for CONFIG_HEADERS section.
14829 # No need to generate them if there are no CONFIG_HEADERS.
14830 # This happens for instance with `./config.status Makefile'.
14831 if test -n "$CONFIG_HEADERS"; then
14832 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14833 BEGIN {
14834 _ACEOF
14835
14836 # Transform confdefs.h into an awk script `defines.awk', embedded as
14837 # here-document in config.status, that substitutes the proper values into
14838 # config.h.in to produce config.h.
14839
14840 # Create a delimiter string that does not exist in confdefs.h, to ease
14841 # handling of long lines.
14842 ac_delim='%!_!# '
14843 for ac_last_try in false false :; do
14844   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14845   if test -z "$ac_tt"; then
14846     break
14847   elif $ac_last_try; then
14848     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14849   else
14850     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14851   fi
14852 done
14853
14854 # For the awk script, D is an array of macro values keyed by name,
14855 # likewise P contains macro parameters if any.  Preserve backslash
14856 # newline sequences.
14857
14858 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14859 sed -n '
14860 s/.\{148\}/&'"$ac_delim"'/g
14861 t rset
14862 :rset
14863 s/^[     ]*#[    ]*define[       ][      ]*/ /
14864 t def
14865 d
14866 :def
14867 s/\\$//
14868 t bsnl
14869 s/["\\]/\\&/g
14870 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14871 D["\1"]=" \3"/p
14872 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14873 d
14874 :bsnl
14875 s/["\\]/\\&/g
14876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14877 D["\1"]=" \3\\\\\\n"\\/p
14878 t cont
14879 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14880 t cont
14881 d
14882 :cont
14883 n
14884 s/.\{148\}/&'"$ac_delim"'/g
14885 t clear
14886 :clear
14887 s/\\$//
14888 t bsnlc
14889 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14890 d
14891 :bsnlc
14892 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14893 b cont
14894 ' <confdefs.h | sed '
14895 s/'"$ac_delim"'/"\\\
14896 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14897
14898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14899   for (key in D) D_is_set[key] = 1
14900   FS = "\a"
14901 }
14902 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14903   line = \$ 0
14904   split(line, arg, " ")
14905   if (arg[1] == "#") {
14906     defundef = arg[2]
14907     mac1 = arg[3]
14908   } else {
14909     defundef = substr(arg[1], 2)
14910     mac1 = arg[2]
14911   }
14912   split(mac1, mac2, "(") #)
14913   macro = mac2[1]
14914   prefix = substr(line, 1, index(line, defundef) - 1)
14915   if (D_is_set[macro]) {
14916     # Preserve the white space surrounding the "#".
14917     print prefix "define", macro P[macro] D[macro]
14918     next
14919   } else {
14920     # Replace #undef with comments.  This is necessary, for example,
14921     # in the case of _POSIX_SOURCE, which is predefined and required
14922     # on some systems where configure will not decide to define it.
14923     if (defundef == "undef") {
14924       print "/*", prefix defundef, macro, "*/"
14925       next
14926     }
14927   }
14928 }
14929 { print }
14930 _ACAWK
14931 _ACEOF
14932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14933   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14934 fi # test -n "$CONFIG_HEADERS"
14935
14936
14937 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14938 shift
14939 for ac_tag
14940 do
14941   case $ac_tag in
14942   :[FHLC]) ac_mode=$ac_tag; continue;;
14943   esac
14944   case $ac_mode$ac_tag in
14945   :[FHL]*:*);;
14946   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14947   :[FH]-) ac_tag=-:-;;
14948   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14949   esac
14950   ac_save_IFS=$IFS
14951   IFS=:
14952   set x $ac_tag
14953   IFS=$ac_save_IFS
14954   shift
14955   ac_file=$1
14956   shift
14957
14958   case $ac_mode in
14959   :L) ac_source=$1;;
14960   :[FH])
14961     ac_file_inputs=
14962     for ac_f
14963     do
14964       case $ac_f in
14965       -) ac_f="$ac_tmp/stdin";;
14966       *) # Look for the file first in the build tree, then in the source tree
14967          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14968          # because $ac_f cannot contain `:'.
14969          test -f "$ac_f" ||
14970            case $ac_f in
14971            [\\/$]*) false;;
14972            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14973            esac ||
14974            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14975       esac
14976       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14977       as_fn_append ac_file_inputs " '$ac_f'"
14978     done
14979
14980     # Let's still pretend it is `configure' which instantiates (i.e., don't
14981     # use $as_me), people would be surprised to read:
14982     #    /* config.h.  Generated by config.status.  */
14983     configure_input='Generated from '`
14984           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14985         `' by configure.'
14986     if test x"$ac_file" != x-; then
14987       configure_input="$ac_file.  $configure_input"
14988       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14989 $as_echo "$as_me: creating $ac_file" >&6;}
14990     fi
14991     # Neutralize special characters interpreted by sed in replacement strings.
14992     case $configure_input in #(
14993     *\&* | *\|* | *\\* )
14994        ac_sed_conf_input=`$as_echo "$configure_input" |
14995        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14996     *) ac_sed_conf_input=$configure_input;;
14997     esac
14998
14999     case $ac_tag in
15000     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15001       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15002     esac
15003     ;;
15004   esac
15005
15006   ac_dir=`$as_dirname -- "$ac_file" ||
15007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15008          X"$ac_file" : 'X\(//\)[^/]' \| \
15009          X"$ac_file" : 'X\(//\)$' \| \
15010          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15011 $as_echo X"$ac_file" |
15012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15013             s//\1/
15014             q
15015           }
15016           /^X\(\/\/\)[^/].*/{
15017             s//\1/
15018             q
15019           }
15020           /^X\(\/\/\)$/{
15021             s//\1/
15022             q
15023           }
15024           /^X\(\/\).*/{
15025             s//\1/
15026             q
15027           }
15028           s/.*/./; q'`
15029   as_dir="$ac_dir"; as_fn_mkdir_p
15030   ac_builddir=.
15031
15032 case "$ac_dir" in
15033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15034 *)
15035   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15036   # A ".." for each directory in $ac_dir_suffix.
15037   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15038   case $ac_top_builddir_sub in
15039   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15040   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15041   esac ;;
15042 esac
15043 ac_abs_top_builddir=$ac_pwd
15044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15045 # for backward compatibility:
15046 ac_top_builddir=$ac_top_build_prefix
15047
15048 case $srcdir in
15049   .)  # We are building in place.
15050     ac_srcdir=.
15051     ac_top_srcdir=$ac_top_builddir_sub
15052     ac_abs_top_srcdir=$ac_pwd ;;
15053   [\\/]* | ?:[\\/]* )  # Absolute name.
15054     ac_srcdir=$srcdir$ac_dir_suffix;
15055     ac_top_srcdir=$srcdir
15056     ac_abs_top_srcdir=$srcdir ;;
15057   *) # Relative name.
15058     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15059     ac_top_srcdir=$ac_top_build_prefix$srcdir
15060     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15061 esac
15062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15063
15064
15065   case $ac_mode in
15066   :F)
15067   #
15068   # CONFIG_FILE
15069   #
15070
15071   case $INSTALL in
15072   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15073   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15074   esac
15075   ac_MKDIR_P=$MKDIR_P
15076   case $MKDIR_P in
15077   [\\/$]* | ?:[\\/]* ) ;;
15078   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15079   esac
15080 _ACEOF
15081
15082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15083 # If the template does not know about datarootdir, expand it.
15084 # FIXME: This hack should be removed a few years after 2.60.
15085 ac_datarootdir_hack=; ac_datarootdir_seen=
15086 ac_sed_dataroot='
15087 /datarootdir/ {
15088   p
15089   q
15090 }
15091 /@datadir@/p
15092 /@docdir@/p
15093 /@infodir@/p
15094 /@localedir@/p
15095 /@mandir@/p'
15096 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15097 *datarootdir*) ac_datarootdir_seen=yes;;
15098 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15099   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15100 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15101 _ACEOF
15102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15103   ac_datarootdir_hack='
15104   s&@datadir@&$datadir&g
15105   s&@docdir@&$docdir&g
15106   s&@infodir@&$infodir&g
15107   s&@localedir@&$localedir&g
15108   s&@mandir@&$mandir&g
15109   s&\\\${datarootdir}&$datarootdir&g' ;;
15110 esac
15111 _ACEOF
15112
15113 # Neutralize VPATH when `$srcdir' = `.'.
15114 # Shell code in configure.ac might set extrasub.
15115 # FIXME: do we really want to maintain this feature?
15116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15117 ac_sed_extra="$ac_vpsub
15118 $extrasub
15119 _ACEOF
15120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15121 :t
15122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15123 s|@configure_input@|$ac_sed_conf_input|;t t
15124 s&@top_builddir@&$ac_top_builddir_sub&;t t
15125 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15126 s&@srcdir@&$ac_srcdir&;t t
15127 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15128 s&@top_srcdir@&$ac_top_srcdir&;t t
15129 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15130 s&@builddir@&$ac_builddir&;t t
15131 s&@abs_builddir@&$ac_abs_builddir&;t t
15132 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15133 s&@INSTALL@&$ac_INSTALL&;t t
15134 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15135 $ac_datarootdir_hack
15136 "
15137 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15138 if $ac_cs_awk_getline; then
15139   $AWK -f "$ac_tmp/subs.awk"
15140 else
15141   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15142 fi \
15143   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15144
15145 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15146   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15147   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15148       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15149   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15150 which seems to be undefined.  Please make sure it is defined" >&5
15151 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15152 which seems to be undefined.  Please make sure it is defined" >&2;}
15153
15154   rm -f "$ac_tmp/stdin"
15155   case $ac_file in
15156   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15157   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15158   esac \
15159   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15160  ;;
15161   :H)
15162   #
15163   # CONFIG_HEADER
15164   #
15165   if test x"$ac_file" != x-; then
15166     {
15167       $as_echo "/* $configure_input  */" \
15168       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15169     } >"$ac_tmp/config.h" \
15170       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15171     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15172       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15173 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15174     else
15175       rm -f "$ac_file"
15176       mv "$ac_tmp/config.h" "$ac_file" \
15177         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15178     fi
15179   else
15180     $as_echo "/* $configure_input  */" \
15181       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15182       || as_fn_error $? "could not create -" "$LINENO" 5
15183   fi
15184  ;;
15185
15186   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15187 $as_echo "$as_me: executing $ac_file commands" >&6;}
15188  ;;
15189   esac
15190
15191
15192   case $ac_file$ac_mode in
15193     "po-directories":C)
15194     for ac_file in $CONFIG_FILES; do
15195       # Support "outfile[:infile[:infile...]]"
15196       case "$ac_file" in
15197         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15198       esac
15199       # PO directories have a Makefile.in generated from Makefile.in.in.
15200       case "$ac_file" in */Makefile.in)
15201         # Adjust a relative srcdir.
15202         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15203         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15204         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15205         # In autoconf-2.13 it is called $ac_given_srcdir.
15206         # In autoconf-2.50 it is called $srcdir.
15207         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15208         case "$ac_given_srcdir" in
15209           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15210           /*) top_srcdir="$ac_given_srcdir" ;;
15211           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15212         esac
15213         # Treat a directory as a PO directory if and only if it has a
15214         # POTFILES.in file. This allows packages to have multiple PO
15215         # directories under different names or in different locations.
15216         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15217           rm -f "$ac_dir/POTFILES"
15218           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15219           gt_tab=`printf '\t'`
15220           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"
15221           POMAKEFILEDEPS="POTFILES.in"
15222           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15223           # on $ac_dir but don't depend on user-specified configuration
15224           # parameters.
15225           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15226             # The LINGUAS file contains the set of available languages.
15227             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15228               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15229             fi
15230             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15231             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15232             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15233             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15234           else
15235             # The set of available languages was given in configure.in.
15236             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15237             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15238           fi
15239           # Compute POFILES
15240           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15241           # Compute UPDATEPOFILES
15242           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15243           # Compute DUMMYPOFILES
15244           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15245           # Compute GMOFILES
15246           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15247           case "$ac_given_srcdir" in
15248             .) srcdirpre= ;;
15249             *) srcdirpre='$(srcdir)/' ;;
15250           esac
15251           POFILES=
15252           UPDATEPOFILES=
15253           DUMMYPOFILES=
15254           GMOFILES=
15255           for lang in $ALL_LINGUAS; do
15256             POFILES="$POFILES $srcdirpre$lang.po"
15257             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15258             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15259             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15260           done
15261           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15262           # environment variable.
15263           INST_LINGUAS=
15264           if test -n "$ALL_LINGUAS"; then
15265             for presentlang in $ALL_LINGUAS; do
15266               useit=no
15267               if test "%UNSET%" != "$LINGUAS"; then
15268                 desiredlanguages="$LINGUAS"
15269               else
15270                 desiredlanguages="$ALL_LINGUAS"
15271               fi
15272               for desiredlang in $desiredlanguages; do
15273                 # Use the presentlang catalog if desiredlang is
15274                 #   a. equal to presentlang, or
15275                 #   b. a variant of presentlang (because in this case,
15276                 #      presentlang can be used as a fallback for messages
15277                 #      which are not translated in the desiredlang catalog).
15278                 case "$desiredlang" in
15279                   "$presentlang"*) useit=yes;;
15280                 esac
15281               done
15282               if test $useit = yes; then
15283                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15284               fi
15285             done
15286           fi
15287           CATALOGS=
15288           if test -n "$INST_LINGUAS"; then
15289             for lang in $INST_LINGUAS; do
15290               CATALOGS="$CATALOGS $lang.gmo"
15291             done
15292           fi
15293           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15294           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"
15295           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15296             if test -f "$f"; then
15297               case "$f" in
15298                 *.orig | *.bak | *~) ;;
15299                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15300               esac
15301             fi
15302           done
15303         fi
15304         ;;
15305       esac
15306     done ;;
15307
15308   esac
15309 done # for ac_tag
15310
15311
15312 as_fn_exit 0
15313 _ACEOF
15314 ac_clean_files=$ac_clean_files_save
15315
15316 test $ac_write_fail = 0 ||
15317   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15318
15319
15320 # configure is writing to config.log, and then calls config.status.
15321 # config.status does its own redirection, appending to config.log.
15322 # Unfortunately, on DOS this fails, as config.log is still kept open
15323 # by configure, so config.status won't be able to write to it; its
15324 # output is simply discarded.  So we exec the FD to /dev/null,
15325 # effectively closing config.log, so it can be properly (re)opened and
15326 # appended to by config.status.  When coming back to configure, we
15327 # need to make the FD available again.
15328 if test "$no_create" != yes; then
15329   ac_cs_success=:
15330   ac_config_status_args=
15331   test "$silent" = yes &&
15332     ac_config_status_args="$ac_config_status_args --quiet"
15333   exec 5>/dev/null
15334   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15335   exec 5>>config.log
15336   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15337   # would make configure fail if this is the last instruction.
15338   $ac_cs_success || as_fn_exit 1
15339 fi
15340 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15341   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15342 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15343 fi
15344
15345 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi